1 2014-11-26 Mark Wielaard <mjw@redhat.com>
3 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
4 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
6 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
8 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
9 that there can be only one stack adjustment in the prologue
10 with tests to detect specific disallowed stack adjustments.
12 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
14 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
17 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
19 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
20 the instruction as well as reading it from memory.
21 (nios2_match_add): New.
22 (nios2_match_sub): New.
23 (nios2_match_addi): New.
24 (nios2_match_orhi): New.
25 (nios2_match_stw): New.
26 (nios2_match_ldw): New.
27 (nios2_match_rdctl): New.
28 (enum branch_condition): New.
29 (nios2_match_branch): New.
30 (nios2_match_jmpi): New.
31 (nios2_match_calli): New.
32 (nios2_match_jmpr): New.
33 (nios2_match_callr): New.
34 (nios2_match_break): New.
35 (nios2_match_trap): New.
36 (nios2_in_epilogue_p): Rewrite to use new functions.
37 (nios2_analyze_prologue): Likewise.
38 (nios2_skip_prologue): Delete unused local limit_pc.
39 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
40 (nios2_get_next_pc): Rewrite to use new functions.
42 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
44 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
46 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
48 Pushed by Joel Brobecker <brobecker@adacore.com>
49 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
50 elements pi_len by the size of the elements before calling
52 (inf_validate_task_sc): Likewise, and properly deallocate the
55 2014-11-23 Doug Evans <xdje42@gmail.com>
57 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
58 number and name if present. All callers updated.
59 (dump_fn_fieldlists): Fix indentation of args.
61 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
63 * MAINTAINERS (Write After Approval): Add myself.
65 2014-11-23 Joel Brobecker <brobecker@adacore.com>
67 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
68 to a bp_call_dummy breakpoint type.
70 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
72 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
73 registering the signal handler.
75 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
77 * event-top.h (call_stdin_event_handler_again_p): Declare.
78 * event-top.c (call_stdin_event_handler_again_p): Define.
79 (stdin_event_handler): Use it.
80 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
81 handler again if there is pending input following a
84 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
86 Pushed by Joel Brobecker <brobecker@adacore.com>
87 * linux-fork.c (checkpoint_command): Print index of new
88 checkpoint in response message.
90 2014-11-23 Yao Qi <yao@codesourcery.com>
92 * valprint.c (read_string): Move local variables 'found_nul',
93 'chunksize' and 'limit' to inner scope. Update comments.
95 2014-11-22 Doug Evans <xdje42@gmail.com>
97 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
99 (search_symbols): Fix comments and whitespace.
101 2014-11-22 Doug Evans <xdje42@gmail.com>
103 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
105 2014-11-21 Doug Evans <dje@google.com>
107 * psymtab.c (psymtab_search_name): Fix whitespace.
109 2014-11-21 Yao Qi <yao@codesourcery.com>
111 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
113 * gnulib/import/Makefile.am: Re-generated.
114 * gnulib/import/Makefile.in: Likewise.
115 * gnulib/import/m4/gnulib-cache.m4: Likewise.
117 2014-11-21 Yao Qi <yao@codesourcery.com>
119 * gdb_wchar.h: Include wchar.h and wctype.h.
120 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
121 include wchar.h and wctype.h.
122 Don't check HAVE_WCHAR_H.
124 2014-11-21 Yao Qi <yao@codesourcery.com>
126 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
128 * gnulib/import/Makefile.am: Re-generated.
129 * gnulib/import/Makefile.in: Likewise.
130 * gnulib/import/m4/gnulib-cache.m4: Likewise.
132 2014-11-21 Yao Qi <yao@codesourcery.com>
134 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
136 * gnulib/import/Makefile.am: Re-generated.
137 * gnulib/import/Makefile.in: Likewise.
138 * gnulib/import/m4/gnulib-cache.m4: Likewise.
140 2014-11-21 Yao Qi <yao@codesourcery.com>
142 * common/common-defs.h: Include alloca.h
143 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
144 * configure: Re-generated.
145 * defs.h: Remove code handling alloca.
146 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
149 2014-11-21 Yao Qi <yao@codesourcery.com>
151 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
153 * gnulib/import/Makefile.am: Re-generated.
154 * gnulib/import/Makefile.in: Likewise..
155 * gnulib/import/m4/gnulib-cache.m4: Likewise.
157 2014-11-21 Yao Qi <yao@codesourcery.com>
159 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
162 2014-11-21 Joel Brobecker <brobecker@adacore.com>
164 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
165 flag_unsigned if HIGH_BOUND is constant and negative.
167 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
170 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
171 modifier from "struct gdbarch" when compiling without Expat (XML)
173 (get_syscall_by_number): Likewise.
174 (get_syscall_by_name): Likewise.
175 (get_syscall_names): Likewise.
177 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
180 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
181 set_xml_syscall_file_name to provide gdbarch.
182 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
183 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
184 * breakpoint.c (print_it_catch_syscall): Adjust call to
185 get_syscall_by_number to provide gdbarch.
186 (print_one_catch_syscall): Likewise.
187 (print_mention_catch_syscall): Likewise.
188 (print_recreate_catch_syscall): Likewise.
189 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
190 and get_syscall_by_name to provide gdbarch.
191 (catch_syscall_completer): Adjust call to get_syscall_names to
193 * gdbarch.c: Regenerate.
194 * gdbarch.h: Likewise.
195 * gdbarch.sh: Forward declare "struct syscalls_info".
196 (xml_syscall_file): New variable.
197 (syscalls_info): Likewise.
198 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
199 set_xml_syscall_file_name to provide gdbarch.
200 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
201 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
202 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
203 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
204 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
205 * xml-syscall.c: Include gdbarch.h.
206 (set_xml_syscall_file_name): Accept gdbarch parameter.
207 (get_syscall_by_number): Likewise.
208 (get_syscall_by_name): Likewise.
209 (get_syscall_names): Likewise.
210 (my_gdb_datadir): Delete global variable.
211 (struct syscalls_info) <my_gdb_datadir>: New variable.
212 (struct syscalls_info) <sysinfo>: Rename variable to
214 (sysinfo): Delete global variable.
215 (have_initialized_sysinfo): Likewise.
216 (xml_syscall_file): Likewise.
217 (sysinfo_free_syscalls_desc): Rename to...
218 (syscalls_info_free_syscalls_desc): ... this.
219 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
220 code to the new layout of "struct syscalls_info".
221 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
223 (syscall_create_syscall_desc): Likewise.
224 (syscall_start_syscall): Likewise.
225 (syscall_parse_xml): Likewise.
226 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
227 (init_sysinfo): Rename to...
228 (init_syscalls_info): ...this. Add gdbarch as a parameter.
229 Adjust function to deal with gdbarch.
230 (xml_get_syscall_number): Delete parameter sysinfo. Accept
231 gdbarch as a parameter. Adjust code.
232 (xml_get_syscall_name): Likewise.
233 (xml_list_of_syscalls): Likewise.
234 (set_xml_syscall_file_name): Accept gdbarch as parameter.
235 (get_syscall_by_number): Likewise.
236 (get_syscall_by_name): Likewise.
237 (get_syscall_names): Likewise.
238 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
239 (get_syscall_by_number): Likewise.
240 (get_syscall_by_name): Likewise.
241 (get_syscall_names): Likewise.
243 2014-11-20 Doug Evans <xdje42@gmail.com>
245 Split struct symtab into two: struct symtab and compunit_symtab.
246 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
247 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
248 to "struct compunit_symtab *". All callers updated.
249 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
250 "struct symtab *" argument to "struct compunit_symtab *".
252 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
253 result to "struct compunit_symtab *". All callers updated.
254 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
255 Change result to "struct compunit_symtab *". All callers updated.
256 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
257 hange type to "struct compunit_symtab *". All uses updated.
258 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
259 Change type to "struct compunit_symtab *". All uses updated.
260 * buildsym.c (struct buildsym_compunit): New struct.
261 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
262 (buildsym_compunit): New static global.
263 (finish_block_internal): Update to fetch objfile from
265 (make_blockvector): Delete objfile argument.
266 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
267 debugformat, producer.
268 (start_buildsym_compunit): New function.
269 (free_buildsym_compunit): Renamed from free_subfiles_list.
271 (patch_subfile_names): Rewrite to use buildsym_compunit.
272 (get_compunit_symtab): New function.
273 (get_macro_table): Delete argument comp_dir. All callers updated.
274 (start_symtab): Change result to "struct compunit_symtab *".
275 All callers updated. Create the subfile of the main source file.
276 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
277 (reset_symtab_globals): Update.
278 (end_symtab_get_static_block): Update to use buildsym_compunit.
279 (end_symtab_without_blockvector): Rewrite.
280 (end_symtab_with_blockvector): Change result to
281 "struct compunit_symtab *". All callers updated.
282 Update to use buildsym_compunit. Don't set symtab->dirname,
283 instead set it in the compunit.
284 Explicitly make sure main symtab is first in its list.
285 Set debugformat, producer, blockvector, block_line_section, and
286 macrotable in the compunit.
287 (end_symtab_from_static_block): Change result to
288 "struct compunit_symtab *". All callers updated.
289 (end_symtab, end_expandable_symtab): Ditto.
290 (set_missing_symtab): Change symtab argument to
291 "struct compunit_symtab *". All callers updated.
292 (augment_type_symtab): Ditto.
293 (record_debugformat): Update to use buildsym_compunit.
294 (record_producer): Update to use buildsym_compunit.
295 * buildsym.h (struct subfile) <dirname>: Delete.
296 <producer, debugformat>: Delete.
297 <buildsym_compunit>: New member.
298 (get_compunit_symtab): Declare.
299 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
300 from primary_symtab. Change type to "struct compunit_symtab *".
302 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
304 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
305 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
306 symtab. Change type to "struct compunit_symtab *". All uses updated.
307 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
309 (dw2_find_last_source_symtab): Ditto.
310 (dw2_lookup_symbol): Ditto.
311 (recursively_find_pc_sect_compunit_symtab): Renamed from
312 recursively_find_pc_sect_symtab. Change result to
313 "struct compunit_symtab *". All callers updated.
314 (dw2_find_pc_sect_compunit_symtab): Renamed from
315 dw2_find_pc_sect_symtab. Change result to
316 "struct compunit_symtab *". All callers updated.
317 (get_compunit_symtab): Renamed from get_symtab. Change result to
318 "struct compunit_symtab *". All callers updated.
319 (recursively_compute_inclusions): Change type of immediate_parent
320 argument to "struct compunit_symtab *". All callers updated.
321 (compute_compunit_symtab_includes): Renamed from
322 compute_symtab_includes. All callers updated. Rewrite to compute
323 includes of compunit_symtabs and not symtabs.
324 (process_full_comp_unit): Update to work with struct compunit_symtab.
325 (process_full_type_unit): Ditto.
326 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
327 (dwarf_decode_lines): Remove special case handling of main subfile.
328 (macro_start_file): Delete argument comp_dir. All callers updated.
329 (dwarf_decode_macro_bytes): Ditto.
330 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
331 use struct compunit_symtab.
332 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
333 * jit.c (finalize_symtab): Build compunit_symtab.
334 * jv-lang.c (get_java_class_symtab): Change result to
335 "struct compunit_symtab *". All callers updated.
336 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
337 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
338 comp_dir. Change type to "struct compunit_symtab *".
340 (new_macro_table): Change comp_dir argument to cust,
341 "struct compunit_symtab *". All callers updated.
342 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
343 nr_primary_symtabs. All uses updated.
344 (count_symtabs_and_blocks): Update to handle compunits.
345 (report_command_stats): Update output, "primary symtabs" renamed to
347 * mdebugread.c (new_symtab): Change result to
348 "struct compunit_symtab *". All callers updated.
349 (parse_procedure): Change type of search_symtab argument to
350 "struct compunit_symtab *". All callers updated.
351 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
353 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
354 symtabs. Change type to "struct compunit_symtab *". All uses updated.
355 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
357 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
359 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
360 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
361 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
362 symtab. Change type to "struct compunit_symtab *". All uses updated.
363 * psymtab.c (psymtab_to_symtab): Change result type to
364 "struct compunit_symtab *". All callers updated.
365 (find_pc_sect_compunit_symtab_from_partial): Renamed from
366 find_pc_sect_symtab_from_partial. Change result type to
367 "struct compunit_symtab *". All callers updated.
368 (lookup_symbol_aux_psymtabs): Change result type to
369 "struct compunit_symtab *". All callers updated.
370 (find_last_source_symtab_from_partial): Ditto.
371 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
372 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
373 and macro_table from compunit.
374 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
375 type to "struct compunit_symtab *". All callers updated.
376 (debug_qf_lookup_symbol): Ditto.
377 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
378 debug_qf_find_pc_sect_symtab, change result type to
379 "struct compunit_symtab *". All callers updated.
380 * symfile.c (allocate_symtab): Delete objfile argument.
382 (allocate_compunit_symtab): New function.
383 (add_compunit_symtab_to_objfile): New function.
384 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
385 Change result type to "struct compunit_symtab *". All uses updated.
386 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
387 Change result type to "struct compunit_symtab *". All uses updated.
388 * symmisc.c (print_objfile_statistics): Compute blockvector count in
390 (dump_symtab_1): Update test for primary source symtab.
391 (maintenance_info_symtabs): Update to handle compunit symtabs.
392 (maintenance_check_symtabs): Ditto.
393 * symtab.c (set_primary_symtab): Delete.
394 (compunit_primary_filetab): New function.
395 (compunit_language): New function.
396 (iterate_over_some_symtabs): Change type of arguments "first",
397 "after_last" to "struct compunit_symtab *". All callers updated.
398 Update to loop over symtabs in each compunit.
399 (error_in_psymtab_expansion): Rename symtab argument to cust,
400 and change type to "struct compunit_symtab *". All callers updated.
401 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
402 Change result type to "struct compunit_symtab *". All callers updated.
403 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
404 Change result type to "struct compunit_symtab *". All callers updated.
405 (find_pc_sect_line): Only loop over symtabs within selected compunit
406 instead of all symtabs in the objfile.
407 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
408 <compunit_symtab> New member.
409 <block_line_section>: Moved to compunit_symtab.
410 <locations_valid>: Ditto.
411 <epilogue_unwind_valid>: Ditto.
412 <macro_table>: Ditto.
414 <debugformat>: Ditto.
417 <call_site_htab>: Ditto.
421 (SYMTAB_COMPUNIT): New macro.
422 (SYMTAB_BLOCKVECTOR): Update definition.
423 (SYMTAB_OBJFILE): Update definition.
424 (SYMTAB_DIRNAME): Update definition.
425 (struct compunit_symtab): New type. Common members among all source
426 symtabs within a compilation unit moved here. All uses updated.
427 (COMPUNIT_OBJFILE): New macro.
428 (COMPUNIT_FILETABS): New macro.
429 (COMPUNIT_DEBUGFORMAT): New macro.
430 (COMPUNIT_PRODUCER): New macro.
431 (COMPUNIT_DIRNAME): New macro.
432 (COMPUNIT_BLOCKVECTOR): New macro.
433 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
434 (COMPUNIT_LOCATIONS_VALID): New macro.
435 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
436 (COMPUNIT_CALL_SITE_HTAB): New macro.
437 (COMPUNIT_MACRO_TABLE): New macro.
438 (ALL_COMPUNIT_FILETABS): New macro.
439 (compunit_symtab_ptr): New typedef.
440 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
442 2014-11-20 Joel Brobecker <brobecker@adacore.com>
444 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
445 if the TYPE_CODE of range_type's base type does not match
446 the TYPE_CODE of encoding_type's base type.
448 2014-11-19 Joel Brobecker <brobecker@adacore.com>
450 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
453 2014-11-19 Joel Brobecker <brobecker@adacore.com>
455 * ada-lang.c (ada_is_redundant_range_encoding): New function.
456 (ada_is_redundant_index_type_desc): New function.
457 (to_fixed_array_type): Ignore parallel XA type if redundant.
459 2014-11-19 Joel Brobecker <brobecker@adacore.com>
461 * ada-lang.c (constrained_packed_array_type): Set the length
462 of the return array as if both bounds where zero if that
463 returned array's index type is dynamic.
465 2014-11-19 Yao Qi <yao@codesourcery.com>
467 * config/i386/go32.mh (CC): Remove.
469 2014-11-18 Doug Evans <xdje42@gmail.com>
471 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
474 2014-11-18 Doug Evans <xdje42@gmail.com>
476 * buildsym.c (buildsym_objfile): New static global.
477 (buildsym_comp_dir): New static global.
478 (finish_block_internal): Delete arg objfile. All callers updated.
479 (finish_block): Delete arg objfile. All callers updated.
480 (start_subfile): Delete arg dirname. All callers updated.
481 (patch_subfile_names): Update buildsym_comp_dir.
482 (get_macro_table): Delete arg objfile. All callers updated.
483 (start_symtab): New arg objfile. All callers updated.
484 Rename arg dirname to comp_dir.
485 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
486 (end_symtab_get_static_block): Delete arg objfile. All callers
488 (end_symtab_without_blockvector): Ditto.
489 (end_symtab_with_blockvector): Ditto.
490 (end_symtab_from_static_block): Ditto.
492 (end_expandable_symtab): Ditto.
493 (augment_type_symtab): Ditto.
494 * coffread.c (coff_start_symtab): New arg objfile. All callers
497 2014-11-18 Doug Evans <xdje42@gmail.com>
499 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
502 2014-11-18 Doug Evans <xdje42@gmail.com>
504 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
505 symtab.dirname updated to use it.
507 2014-11-18 Doug Evans <xdje42@gmail.com>
509 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
510 symtab.objfile updated to use it.
512 2014-11-18 Doug Evans <xdje42@gmail.com>
514 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
516 2014-11-18 Doug Evans <xdje42@gmail.com>
518 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
520 * findvar.c (default_read_var_value): Ditto.
521 * jv-lang.c (add_class_symtab_symbol): Ditto.
522 * parse.c (operator_check_standard): Ditto.
523 * printcmd.c (address_info): Ditto.
524 * symtab.c (fixup_symbol_section): Ditto.
525 (skip_prologue_sal): Ditto.
526 * tracepoint.c (scope_info): Ditto.
527 * valops.c (find_function_in_inferior): Ditto.
528 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
529 * python/py-symbol.c (set_symbol): Ditto.
531 2014-11-18 Doug Evans <xdje42@gmail.com>
533 * buildsym.c (main_subfile): New static global.
534 (free_subfiles_list): New function.
535 (start_symtab): Set main_subfile.
536 (restart_symtab): Replace init of subfiles, current_subfile with
537 call to free_subfiles_list.
538 (watch_main_source_file_lossage): Use main_subfile.
539 (reset_symtab_globals): Replace init of current_subfile with call
540 to free_subfiles_list.
541 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
542 functions, split out from ...
543 (end_symtab_from_static_block): ... here. Rewrite to call them.
545 2014-11-18 Doug Evans <xdje42@gmail.com>
547 The result of symtab expansion is always a primary symtab.
548 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
549 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
550 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
551 (psymtab_to_symtab): Add comment and assert.
552 (map_matching_symbols_psymtab): Remove unnecessary test for
555 2014-11-15 Doug Evans <xdje42@gmail.com>
558 * symtab.c (find_pc_line_symtab): New function.
559 * symtab.h (find_pc_line_symtab): Declare.
560 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
562 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
563 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
564 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
565 * tui/tui-win.c (make_visible_with_new_height): Ditto.
566 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
567 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
569 2014-11-15 Doug Evans <xdje42@gmail.com>
571 * symtab.c (expand_symtab_containing_pc): Renamed from
572 find_pc_sect_symtab_via_partial. All callers updated.
574 2014-11-15 Yao Qi <yao@codesourcery.com>
576 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
578 2014-11-14 Joel Brobecker <brobecker@adacore.com>
580 * common/common-defs.h: Move <stdarg.h> #include ahead of
583 2014-11-14 Pedro Alves <palves@redhat.com>
585 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
586 [!PHONY_ICONV] (gdb_iconv): New function.
587 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
589 2014-11-13 Doug Evans <dje@google.com>
592 * dwarf2read.c (find_slot_in_mapped_hash): Handle
593 "(anonymous namespace)".
595 2014-11-13 Doug Evans <dje@google.com>
597 * dwarf2read.c (update_enumeration_type_from_children): Avoid
600 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
602 * NEWS (maint set target-async): Fix typo.
604 2014-11-12 Pedro Alves <palves@redhat.com>
606 * infrun.c (enum infwait_states, infwait_state): Delete.
608 2014-11-12 Pedro Alves <palves@redhat.com>
610 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
611 Rewrite stepping over a permanent breakpoint.
612 (thread_still_needs_step_over, proceed): Don't set
613 stepping_over_breakpoint for permanent breakpoints.
614 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
615 single-step breakpoints out of the target on hardware step
617 (process_event_stop_test): If stepping a permanent breakpoint
618 doesn't hit the step-resume breakpoint, delete the step-resume
620 (switch_back_to_stepped_thread): Also check if the stepped thread
621 has advanced already on hardware step targets.
622 (currently_stepping): Return true if the thread stepped a
625 2014-11-12 Pedro Alves <palves@redhat.com>
627 Mark locations as permanent, not the whole breakpoint.
628 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
629 (mark_breakpoints_out): Don't mark permanent breakpoints as
631 (breakpoint_init_inferior): Use mark_breakpoints_out.
632 (breakpoint_here_p): Adjust.
633 (bpstat_stop_status, describe_other_breakpoints): Remove handling
634 of permanent breakpoints.
635 (make_breakpoint_permanent): Mark each location as permanent,
636 instead of marking the breakpoint.
637 (add_location_to_breakpoint): If the location is permanent, mark
638 it as such, and as inserted.
639 (init_breakpoint_sal): Don't make the breakpoint permanent here.
640 (bp_location_compare, update_global_location_list): Adjust.
641 (update_breakpoint_locations): Don't make the breakpoint permanent
643 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
645 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
646 (struct bp_location) <permanent>: New field.
647 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
648 reference to bp_permanent.
650 2014-11-12 Pedro Alves <palves@redhat.com>
652 * arch-utils.c (default_skip_permanent_breakpoint): New function.
653 * arch-utils.h (default_skip_permanent_breakpoint): New
655 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
656 Install default_skip_permanent_breakpoint as default method.
657 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
658 (i386_gdbarch_init): Don't install it.
659 * infrun.c (resume): Assume there's always a
660 gdbarch_skip_permanent_breakpoint implementation.
661 * gdbarch.h, gdbarch.c: Regenerate.
663 2014-11-11 Daniel Colascione <dancol@dancol.org>
665 Warn about cross-PID-namespace debugging.
666 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
667 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
668 * linux-thread-db.c (check_pid_namespace_match): New function.
669 (thread_db_inferior_created): Call it.
671 2014-11-10 Doug Evans <xdje42@gmail.com>
673 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
674 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
676 2014-11-10 Doug Evans <xdje42@gmail.com>
678 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
680 2014-11-10 Doug Evans <xdje42@gmail.com>
683 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
684 (lookup_static_symbol): Move definition to new location and rewrite.
685 (lookup_symbol_in_objfile): New function.
686 (lookup_symbol_global_iterator_cb): Call it.
688 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
690 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
692 2014-11-07 Pedro Alves <palves@redhat.com>
694 * infrun.c (process_event_stop_test) <subroutine check>: Don't
695 check if we did a "nexti" inside a prologue.
696 * symtab.c (in_prologue): Delete function.
697 * symtab.h (in_prologue): Delete declaration.
699 2014-11-06 Doug Evans <xdje42@gmail.com>
701 * symtab.h (lookup_global_symbol): Improve function comment.
703 2014-11-06 Doug Evans <xdje42@gmail.com>
705 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
707 * symtab.h (lookup_global_symbol): Update decl.
708 (lookup_static_symbol): Move decl to better location.
710 2014-11-06 Doug Evans <xdje42@gmail.com>
712 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
714 2014-11-06 Doug Evans <xdje42@gmail.com>
716 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
718 (lookup_symbol_in_all_objfiles): Renamed from
719 lookup_symbol_aux_symtabs. All callers updated.
720 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
722 (lookup_symbol_in_objfile_symtabs): Renamed from
723 lookup_symbol_aux_objfile. All callers updated.
725 2014-11-06 Doug Evans <xdje42@gmail.com>
727 * symtab.c (lookup_symbol_in_block): Renamed from
728 lookup_symbol_aux_block. All callers updated.
730 2014-11-06 Doug Evans <xdje42@gmail.com>
732 * symtab.c (lookup_static_symbol): Renamed from
733 lookup_static_symbol_aux. All callers updated.
734 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
737 2014-11-06 Doug Evans <xdje42@gmail.com>
739 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
740 * block.c (block_lookup_symbol): Use it.
741 * cp-support.c (make_symbol_overload_list_block): Use it.
742 * symtab.c (iterate_over_symbols): Use it.
744 2014-11-06 Doug Evans <xdje42@gmail.com>
746 * symtab.c (lookup_block_symbol): Moved to ...
747 * block.c (block_lookup_symbol): ... here and renamed.
749 * block.h (block_lookup_symbol): Declare.
750 * symtab.h (lookup_block_symbol): Delete.
752 2014-11-06 Doug Evans <xdje42@gmail.com>
754 * ada-lang.c (ada_make_symbol_completion_list): Use
755 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
756 * symtab.c (lookup_objfile_from_block): Ditto.
758 2014-11-06 Doug Evans <xdje42@gmail.com>
760 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
763 2014-11-06 Doug Evans <xdje42@gmail.com>
765 * objfiles.c (get_objfile_arch): Constify.
766 * objfiles.h (get_objfile_arch): Update prototype.
767 * solib.c (solib_global_lookup): Fetch arch from objfile,
770 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
772 * nios2-tdep.c (wild_insn): Delete.
773 (profiler_insn, irqentry_insn): Delete.
774 (nios2_match_sequence): Delete.
775 (nios2_analyze_prologue): Update comments. Remove matching
776 of obsolete profiler_insn and irqentry_insn sequences.
778 2014-11-05 Alan Modra <amodra@gmail.com>
780 * charset.c (convert_between_encodings): Shrink obstack using
782 * minsyms.c (install_minimal_symbols): Likewise.
783 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
784 to char* before doing pointer arithmetic.
786 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
788 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
790 2014-11-04 Pedro Alves <palves@redhat.com>
792 * breakpoint.c (breakpoint_thread_match): Delete function.
793 * breakpoint.h (breakpoint_thread_match): Delete declaration.
795 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
798 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
799 the method args also under EVAL_SKIP when evaluating method
800 calls under EVAL_SKIP.
802 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
804 * dwarf2loc.c (read_pieced_value): Do big endian
805 processing only if gdb_regnum is not -1.
806 (write_pieced_value): Ditto.
808 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
810 * arm-linux-tdep.c (arm_linux_init_abi): Use
811 info.byte_order_for_code to choose endianity of breakpoint
812 instructions snippets.
814 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
816 * arm-tdep.c (extract_arm_insn): Use
817 gdbarch_byte_order_for_code to read arm instruction.
819 2014-11-02 Doug Evans <xdje42@gmail.com>
821 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
823 2014-11-02 Doug Evans <xdje42@gmail.com>
825 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
826 main_subfile before returning.
828 2014-10-31 Doug Evans <xdje42@gmail.com>
830 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
831 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
833 2014-10-31 Doug Evans <xdje42@gmail.com>
835 * valops.c (value_cast_pointers): Fix whitespace.
836 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
839 2014-10-30 Doug Evans <dje@google.com>
841 * NEWS: Mention ability add attributes to gdb.Objfile and
842 gdb.Progspace objects.
843 * python/py-objfile.c (objfile_object): New member dict.
844 (objfpy_dealloc): Py_XDECREF dict.
845 (objfpy_initialize): Initialize dict.
846 (objfile_getset): Add __dict__.
847 (objfile_object_type): Set tp_dictoffset member.
848 * python/py-progspace.c (progspace_object): New member dict.
849 (pspy_dealloc): Py_XDECREF dict.
850 (pspy_initialize): Initialize dict.
851 (pspace_getset): Add __dict__.
852 (pspace_object_type): Set tp_dictoffset member.
854 2014-10-30 Yao Qi <yao@codesourcery.com>
856 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
857 replace '\\' with '\\\\'.
859 2014-10-29 Joel Brobecker <brobecker@adacore.com>
863 2014-10-29 Pedro Alves <palves@redhat.com>
866 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
867 instead of assuming a thread with a stepping range is always
870 2014-10-29 Pedro Alves <palves@redhat.com>
873 * event-top.c (change_line_handler): Call
874 gdb_rl_callback_handler_remove instead of
875 rl_callback_handler_remove.
876 (callback_handler_installed): New global.
877 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
878 (gdb_rl_callback_handler_reinstall): New functions.
879 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
880 gdb_rl_callback_handler_install instead of
881 rl_callback_handler_remove and rl_callback_handler_install.
882 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
883 instead of rl_callback_handler_remove.
884 * event-top.h (gdb_rl_callback_handler_remove)
885 (gdb_rl_callback_handler_install)
886 (gdb_rl_callback_handler_reinstall): New declarations.
887 * infrun.c (reinstall_readline_callback_handler_cleanup): New
889 (fetch_inferior_event): Install it.
890 * top.c (gdb_readline_wrapper_line) Call
891 gdb_rl_callback_handler_remove instead of
892 rl_callback_handler_remove.
893 (gdb_readline_wrapper_cleanup): Don't call
894 rl_callback_handler_install.
896 2014-10-29 Pedro Alves <palves@redhat.com>
898 * event-top.c (command_line_handler): Clear the first byte of
899 linebuffer, when it is first allocated.
901 2014-10-29 Pedro Alves <palves@redhat.com>
903 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
906 2014-10-29 Pedro Alves <palves@redhat.com>
910 * tui/tui-interp.c (tui_is_toplevel): Delete global.
911 (tui_allowed_p): Delete function.
912 * tui/tui.c: Include "interps.h".
913 (tui_enable): Don't use tui_allowed_p. Error out here with
914 detailed error messages if the TUI is the top level interpreter,
915 or if output is not a terminal. Use newterm instead of initscr,
916 and error out if initializing the terminal fails. Also error out if
917 the terminal doesn't support cursor addressing.
918 * tui/tui.h (tui_allowed_p): Delete declaration.
920 2014-10-29 Joel Brobecker <brobecker@adacore.com>
922 * arm-tdep.c (arm_skip_stack_protector): Return early if
923 address loaded by first "ldr" instruction does not have
924 a corresponding minimal symbol. Update comment.
926 2014-10-29 Yao Qi <yao@codesourcery.com>
928 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
929 loaded address correctly of ldr instruction.
931 2014-10-28 Pedro Alves <palves@redhat.com>
934 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
936 * infrun.c (resume) <stepping breakpoint instruction>: Set the
937 thread's stepped_breakpoint field. Skip if reverse debugging.
939 (init_thread_stepping_state, handle_signal_stop): Clear the
940 thread's stepped_breakpoint field.
942 2014-10-27 Pedro Alves <palves@redhat.com>
944 * remote.c (remote_thread_alive): New, factored out from ...
945 (remote_thread_alive): ... this.
946 (remote_update_thread_list): Bail out before deleting threads if
947 the target returned an empty list, and, the current thread has a
950 2014-10-27 Pedro Alves <palves@redhat.com>
952 * infrun.c (handle_signal_stop): Also skip handlers when a random
953 signal arrives while handling a "stepi" or a "nexti". Set the
954 thread's 'step_after_step_resume_breakpoint' flag.
956 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
958 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
959 (arm_record_ld_st_imm_offset): Reimplement to cover all
960 load/store cases for ARM opcode 010.
961 (arm_record_ld_st_multiple): Reimplement to cover all
962 load/store cases for ARM opcode 100.
964 2014-10-26 Doug Evans <xdje42@gmail.com>
966 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
968 2014-10-26 Doug Evans <xdje42@gmail.com>
970 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
971 parameter "kind" to "block_index".
972 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
974 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
976 2014-10-26 Doug Evans <xdje42@gmail.com>
978 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
980 2014-10-26 Doug Evans <xdje42@gmail.com>
982 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
985 2014-10-26 Doug Evans <xdje42@gmail.com>
987 * parser-defs.h (block_found): Move decl from here ...
988 * symtab.h (block_found): ... to here.
990 2014-10-26 Doug Evans <xdje42@gmail.com>
992 * symtab.h (struct field_of_this_result): Fix typo in comment.
993 (lookup_symbol_in_language): Move function comment here.
994 (lookup_symbol): Improve function comment.
995 (basic_lookup_symbol_nonlocal): Ditto.
996 (lookup_symbol_static, lookup_symbol_global): Ditto.
997 (lookup_symbol_aux_block): Ditto.
998 (lookup_language_this): Add function comment.
999 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1001 (lookup_block_symbol): Improve function comment.
1002 (lookup_struct): Fix capitalization in function comment.
1003 (lookup_transparent_type): Add function comment.
1004 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1005 Improve function comment.
1006 (lookup_objfile_from_block): Add function comment.
1007 * symtab.c (lookup_symbol_in_language): Update function comment.
1008 (lookup_symbol, lookup_language_this): Ditto.
1009 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1010 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1011 (basic_lookup_symbol_nonlocal): Ditto.
1012 (lookup_symbol_static, lookup_symbol_global): Ditto.
1013 (lookup_transparent_type, lookup_block_symbol): Ditto.
1015 2014-10-25 Doug Evans <xdje42@gmail.com>
1017 * symtab.c (types_info): Delete forward decl.
1018 (functions_info, variables_info, sources_info): Ditto.
1019 (_initialize_symtab): Rewrite forward decl to use
1020 initialize_file_ftype.
1022 2014-10-25 Doug Evans <xdje42@gmail.com>
1024 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1026 2014-10-25 Doug Evans <xdje42@gmail.com>
1028 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1029 of local var child_die.
1031 2014-10-24 Don Breazeal <donb@codesourcery.com>
1033 * infrun.c (follow_fork_inferior): Update fork message printing
1034 to use target_terminal_ours_for_output instead of
1035 target_terminal_ours, to use _() for all format strings, to print
1036 "vfork" instead of "fork" for vforks, and to add a detach message.
1037 (handle_vfork_child_exec_or_exit): Update message printing to use
1038 target_terminal_ours_for_output instead of target_terminal_ours, to
1039 use _() for all format strings, and to fix some formatting.
1041 2014-10-24 Pedro Alves <palves@redhat.com>
1043 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1044 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1045 * config/vax/vax.mh: Delete.
1046 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1047 obsolete configurations section.
1048 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1049 * vax-nat.c: Delete file.
1051 2014-10-24 Pedro Alves <palves@redhat.com>
1053 * NEWS (Removed targets): Add OS/arch column.
1055 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1057 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1058 on the arg type of a constructor only if it is of reference type.
1060 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1062 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1063 accessors and constants from nios2 opcodes update.
1064 (nios2_get_next_pc): Likewise.
1066 2014-10-19 Doug Evans <xdje42@gmail.com>
1068 * gdbthread.h (set_running): Fix comment.
1069 (set_executing, finish_thread_state): Fix comment.
1071 2014-10-18 Doug Evans <xdje42@gmail.com>
1073 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1075 2014-10-17 Doug Evans <dje@google.com>
1077 * NEWS: Mention new event gdb.clear_objfiles.
1078 * python/py-event.h (emit_clear_objfiles_event): Clear
1079 * python/py-events.h (events_object): New member clear_objfiles.
1080 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1082 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1083 emit clear_objfiles event.
1084 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1086 (emit_clear_objfiles_event): New function.
1087 (clear_objfiles): New event.
1088 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1090 * python/python.c (_initialize_python): Call
1091 gdbpy_initialize_clear_objfiles_event.
1093 2014-10-17 Doug Evans <dje@google.com>
1095 * NEWS: Mention new gdb.Objfile.progspace attribute.
1096 * python/py-objfile.c (objfpy_get_progspace): New function.
1097 (objfile_getset): New entry for "progspace".
1099 2014-10-17 Pedro Alves <palves@redhat.com>
1102 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1103 returns a copy of the input.
1104 (run_command_1, continue_command, step_1, jump_command)
1105 (signal_command, until_command, advance_command, finish_command)
1106 (attach_command): Adjust and install a cleanup to free the
1109 2014-10-17 Pedro Alves <palves@redhat.com>
1112 * infcmd.c (continue_1): If continuing all threads in the
1113 foreground, make sure the inferior's terminal settings are put in
1116 2014-10-17 Pedro Alves <palves@redhat.com>
1119 * annotate.c (annotate_breakpoints_invalid): Use
1120 target_terminal_our_for_output instead of target_terminal_ours.
1121 Give back the terminal to the target.
1122 (annotate_frames_invalid): Likewise.
1124 2014-10-17 Pedro Alves <palves@redhat.com>
1126 * target.c (enum terminal_state): New enum.
1127 (terminal_state): New global.
1128 (target_terminal_init): New function.
1129 (target_terminal_inferior): Skip if inferior already owns the
1131 (target_terminal_ours, target_terminal_ours_for_output): New
1133 * target.h (target_terminal_init): Convert to function prototype.
1134 (target_terminal_ours_for_output): Convert to function prototype
1136 (target_terminal_ours): Convert to function prototype and tweak
1138 * windows-nat.c (do_initial_windows_stuff): Call
1139 target_terminal_init instead of child_terminal_init_with_pgrp.
1141 2014-10-17 Pedro Alves <palves@redhat.com>
1143 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1144 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1145 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1147 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1148 * ada-lang.h [__alpha__ && __osf__]
1149 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1150 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1151 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1153 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1155 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1156 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1157 * configure: Regenerate.
1158 * configure.ac: Remove references to osf.
1159 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1160 section. Remove all other references to osf.
1161 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1162 Remove all other references to osf.
1163 * dec-thread.c: Delete file.
1164 * defs.h (GDB_OSABI_OSF1): Delete.
1165 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1167 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1168 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1170 (unconditionally_kill_inferior)
1171 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1172 * solib-osf.c: Delete file.
1174 2014-10-17 Pedro Alves <palves@redhat.com>
1176 * remote.c (clear_threads_listing_context): Move higher up, out of
1177 the HAVE_LIBEXPAT guard.
1179 2014-10-16 Tristan Gingold <gingold@adacore.com>
1181 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1182 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1185 2014-10-15 Pedro Alves <palves@redhat.com>
1187 * dec-thread.c (dec_thread_count_gdb_threads)
1188 (dec_thread_add_gdb_thread): Delete.
1189 (dec_thread_update_thread_list): Delete.
1190 (dec_thread_find_new_threads): Rename to ...
1191 (dec_thread_update_thread_list): ... this. Delete GDB-size
1192 threads that are no longer found in dec_thread_list.
1193 (resync_thread_list): Delete.
1194 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1197 2014-10-15 Pedro Alves <palves@redhat.com>
1199 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1200 * remote.c (remote_update_thread_list): Skip calling prune_threads
1201 if any thread listing method is supported, and instead walk over
1202 the set of remote threads listed, deleting those that are not
1203 found in GDB's thread list.
1205 2014-10-15 Pedro Alves <palves@redhat.com>
1207 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1208 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1209 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1210 (bsd_uthread_target): Adjust.
1211 * corelow.c (core_open): Adjust.
1212 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1213 (dec_thread_update_thread_list): New function.
1214 (init_dec_thread_ops): Adjust.
1215 * gdbthread.h (prune_threads): New declaration.
1216 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1217 (thread_db_update_thread_list): ... this. Call prune_threads.
1218 (init_thread_db_ops): Adjust.
1219 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1220 (procfs_update_thread_list): ... this. Call prune_threads.
1221 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1223 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1224 (obsd_update_thread_list): ... this. Call prune_threads.
1225 (obsd_add_target): Adjust.
1226 * procfs.c (procfs_target): Adjust.
1227 (procfs_notice_thread): Update comment.
1228 (procfs_find_new_threads): Rename to ...
1229 (procfs_update_thread_list): ... this. Call prune_threads.
1230 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1232 (ravenscar_wait): Adjust.
1233 (ravenscar_find_new_threads): Rename to ...
1234 (ravenscar_update_thread_list): ... this. Call prune_threads.
1235 (init_ravenscar_thread_ops): Adjust.
1236 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1237 (record_btrace_update_thread_list): ... this. Adjust comment.
1238 (init_record_btrace_ops): Adjust.
1239 * remote.c (remote_threads_info): Rename to ...
1240 (remote_update_thread_list): ... this. Call prune_threads.
1241 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1243 * sol-thread.c (check_for_thread_db): Adjust.
1244 (sol_find_new_threads_callback): Rename to ...
1245 (sol_update_thread_list_callback): ... this.
1246 (sol_find_new_threads): Rename to ...
1247 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1248 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1249 * target-delegates.c: Regenerate.
1250 * target.c (target_find_new_threads): Rename to ...
1251 (target_update_thread_list): ... this.
1252 * target.h (struct target_ops): Rename to_find_new_threads field
1253 to to_update_thread_list.
1254 (target_find_new_threads): Rename to ...
1255 (target_update_thread_list): ... this.
1256 * thread.c (prune_threads): Make extern.
1257 (update_thread_list): Adjust.
1259 2014-10-15 Pedro Alves <palves@redhat.com>
1261 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1262 Add describing comment. Return -1 if the qL packet is not
1264 (struct thread_item, thread_item_t): Move higher up in
1265 the file. Add comments.
1266 (struct threads_parsing_context): Move higher up in
1267 the file, add comments, and remote to ...
1268 (struct threads_listing_context): ... this.
1269 (remote_newthread_step): Don't add the thread to GDB's thread
1270 database here. Instead push it to the thread_listing_context
1272 (remote_find_new_threads): Rename to ...
1273 (remote_get_threads_with_ql): ... this. Add target_ops and
1274 targets_listing_context parameters. Pass down context.
1275 (start_thread): Adjust.
1276 (clear_threads_parsing_context): Rename to ...
1277 (clear_threads_listing_context): ... this.
1278 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1279 remote_threads_info.
1280 (remote_get_threads_with_qthreadinfo): Ditto.
1281 (remote_threads_info): Reimplement.
1283 2014-10-15 Pedro Alves <palves@redhat.com>
1285 * infrun.c (resume): Don't force displaced-stepping for all
1286 single-steps on software single-stepping archs.
1288 2014-10-15 Pedro Alves <palves@redhat.com>
1290 * breakpoint.c (single_step_breakpoints): Delete global.
1291 (insert_single_step_breakpoint): Adjust to store the breakpoint
1292 pointer in the current thread.
1293 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1294 (cancel_single_step_breakpoints): Delete functions.
1295 (breakpoint_has_location_inserted_here): Make extern.
1296 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1298 * breakpoint.h (breakpoint_has_location_inserted_here): New
1300 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1301 (cancel_single_step_breakpoints): Remove declarations.
1302 * gdbthread.h (struct thread_control_state)
1303 <single_step_breakpoints>: New field.
1304 (delete_single_step_breakpoints)
1305 (thread_has_single_step_breakpoints_set)
1306 (thread_has_single_step_breakpoint_here): New declarations.
1307 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1308 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1309 (singlestep_pc): Delete globals.
1310 (infrun_thread_ptid_changed): Remove references to removed
1312 (resume_cleanups): Delete the current thread's single-step
1314 (maybe_software_singlestep): Remove references to removed globals.
1315 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1316 delete_single_step_breakpoints.
1317 (init_wait_for_inferior): Remove references to removed globals.
1318 (delete_thread_infrun_breakpoints): Delete the thread's
1319 single-step breakpoints too.
1320 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1321 single-step breakpoints here.
1322 (delete_stopped_threads_single_step_breakpoints): New function.
1323 (adjust_pc_after_break): Adjust to use
1324 thread_has_single_step_breakpoints_set.
1325 (handle_inferior_event): Remove references to removed globals.
1326 Use delete_stopped_threads_single_step_breakpoints.
1327 (handle_signal_stop): Adjust to per-thread single-step
1328 breakpoints. Swap test order to do cheaper tests first.
1329 (switch_back_to_stepped_thread): Extend debug output. Remove
1330 references to removed globals.
1331 * record-full.c (record_full_wait_1): Adjust to per-thread
1332 single-step breakpoints.
1333 * thread.c (delete_single_step_breakpoints)
1334 (thread_has_single_step_breakpoints_set)
1335 (thread_has_single_step_breakpoint_here): New functions.
1336 (clear_thread_inferior_resources): Also delete the thread's
1337 single-step breakpoints.
1339 2014-10-15 Pedro Alves <palves@redhat.com>
1341 * thread.c (delete_thread_breakpoint): New function.
1342 (delete_step_resume_breakpoint)
1343 (delete_exception_resume_breakpoint): Use it.
1344 (delete_at_next_stop): New function.
1345 (clear_thread_inferior_resources): Use delete_at_next_stop.
1347 2014-10-15 Pedro Alves <palves@redhat.com>
1349 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1350 (breakpoint_inserted_here_p): ... here. Remove special case for
1351 software single-step breakpoints.
1352 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1353 (software_breakpoint_inserted_here_p): ... here. Remove special
1354 case for software single-step breakpoints.
1355 (bp_target_info_copy_insertion_state)
1356 (deprecated_insert_raw_breakpoint)
1357 (deprecated_remove_raw_breakpoint): Delete functions.
1358 * breakpoint.h (deprecated_insert_raw_breakpoint)
1359 (deprecated_remove_raw_breakpoint): Remove declarations.
1361 2014-10-15 Pedro Alves <palves@redhat.com>
1364 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1365 Delete array globals.
1366 (single_step_breakpoints): New global.
1367 (breakpoint_xfer_memory): Remove special handling for single-step
1369 (update_breakpoints_after_exec): Delete bp_single_step
1371 (detach_breakpoints): Remove special handling for single-step
1373 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1374 (bpstat_stop_status): Add comment.
1375 (bpstat_what, bptype_string, print_one_breakpoint_location)
1376 (adjust_breakpoint_address, init_bp_location): Handle
1378 (new_single_step_breakpoint): New function.
1379 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1380 handling for single-step breakpoints.
1381 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1382 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1384 (detach_single_step_breakpoints, find_single_step_breakpoint):
1386 (breakpoint_has_location_inserted_here): New function.
1387 (single_step_breakpoint_inserted_here_p): Rewrite.
1388 * breakpoint.h: Remove FIXME.
1389 (enum bptype) <bp_single_step>: New enum value.
1390 (insert_single_step_breakpoint): Update comment.
1391 * infrun.c (resume_cleanups)
1392 (delete_step_thread_step_resume_breakpoint): Remove single-step
1394 (fetch_inferior_event): Install a cleanup that removes infrun
1396 (switch_back_to_stepped_thread) <expect thread advanced also>:
1397 Clear step-over info.
1399 2014-10-15 Pedro Alves <palves@redhat.com>
1401 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1402 (delete_thread_infrun_breakpoints): New function, with parts
1403 salvaged from delete_step_resume_breakpoint_callback.
1404 (delete_step_thread_step_resume_breakpoint): Delete.
1405 (for_each_just_stopped_thread_callback_func): New typedef.
1406 (for_each_just_stopped_thread): New function.
1407 (delete_just_stopped_threads_infrun_breakpoints): New function.
1408 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1409 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1411 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1413 2014-10-15 Pedro Alves <palves@redhat.com>
1415 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1416 trying to step past a non-steppable watchpoint.
1417 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1419 * infrun.c (struct step_over_info): Add new field
1420 'nonsteppable_watchpoint_p' and adjust comments.
1421 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1423 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1424 (stepping_past_nonsteppable_watchpoint): New function.
1425 (step_over_info_valid_p): Also return true if stepping past a
1426 nonsteppable watchpoint.
1427 (proceed): Adjust call to set_step_over_info. Remove reference to
1429 (init_wait_for_inferior): Remove reference to init_infwait_state.
1430 (waiton_ptid): Delete global.
1431 (struct execution_control_state)
1432 <stepped_after_stopped_by_watchpoint>: Delete field.
1433 (wait_for_inferior, fetch_inferior_event): Always pass
1434 minus_one_ptid to target_wait.
1435 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1437 (init_infwait_state): Delete function.
1438 (handle_inferior_event): Remove infwait_state handling.
1439 (handle_signal_stop) <watchpoints handling>: Adjust after
1440 stepped_after_stopped_by_watchpoint removal. Don't remove
1441 breakpoints here nor set infwait_state. Set the thread's
1442 stepping_over_watchpoint flag, and call keep_going instead.
1443 (keep_going): Handle stepping_over_watchpoint. Adjust
1444 set_step_over_info calls.
1445 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1448 2014-10-15 Pedro Alves <palves@redhat.com>
1450 * infrun.c (step_over_info_valid_p): New function.
1451 (resume): Use step_over_info_valid_p instead of checking the
1452 threads's trap_expected flag.
1454 2014-10-15 Doug Evans <dje@google.com>
1455 Walfred Tedeschi <walfred.tedeschi@intel.com>
1458 * python/lib/gdb/__init__.py (packages): Add "printer".
1459 * python/lib/gdb/command/bound_registers.py: Moved to ...
1460 * python/lib/gdb/printer/bound_registers.py: ... here.
1461 Add printer to global set of builtin printers. Rename printer from
1462 "bound" to "mpx_bound128".
1463 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1464 registered as global "builtin" printer.
1465 (add_builtin_pretty_printer): New function.
1466 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1467 gdb/printer/__init__.py.
1469 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1471 * Makefile.in (SFILES): Remove d-support.c.
1472 (COMMON_OBS): Remove d-support.o.
1473 * d-lang.h (d_parse_symbol): Remove declaration.
1474 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1475 * d-support.c: Remove file.
1477 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479 * gdb/infrun.c (process_event_stop_test): Apply
1480 gdbarch_addr_bits_remove to longjmp resume address.
1482 2014-10-15 Pedro Alves <palves@redhat.com>
1484 * regformats/microblaze.dat: Delete file.
1486 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1488 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1489 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1491 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1493 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1496 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1500 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1501 with qualified args.
1503 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1505 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1506 of the case where the second operand is a pointer.
1507 <BINOP_SUB>: Likewise.
1509 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1511 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1512 only if it is not NULL.
1513 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1514 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1515 (struct probe_ops) <clear_semaphore>: Likewise.
1516 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1518 (stop_tracing): Likewise, for clear_semaphore.
1520 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1522 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1523 using language_c, instead of current_language.
1525 2014-10-13 Doug Evans <dje@google.com>
1527 * python/py-objfile.c (objfpy_initialize): New function.
1528 (objfpy_new, objfile_to_objfile_object): Call it.
1529 * python/py-progspace.c (pspy_initialize): New function.
1530 (pspy_new, pspace_to_pspace_object): Call it.
1532 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1533 Jan Kratochvil <jan.kratochvil@redhat.com>
1535 Fix "save breakpoints" for "catch" command.
1536 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1539 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1541 Fix "save breakpoints" for "disable $bpnum" command.
1542 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1544 2014-10-10 Pedro Alves <palves@redhat.com>
1546 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1547 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1548 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1549 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1551 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1552 * configure.ac: Remove references to IRIX.
1553 * configure.host: Add *-*-irix* to the obsolete hosts section.
1554 Remove all other references to irix.
1555 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1558 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1560 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1561 isn't valid, release the tdesc arch data and return NULL.
1563 2014-10-10 Pedro Alves <palves@redhat.com>
1565 * linux-tdep.c: Include observer.h.
1566 (linux_inferior_data): New global.
1567 (struct linux_info): New structure.
1568 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1569 (get_linux_inferior_data): New functions.
1570 (linux_vsyscall_range): Rename to ...
1571 (linux_vsyscall_range_raw): ... this.
1572 (linux_vsyscall_range): New function; handles caching.
1573 (_initialize_linux_tdep): Register linux_inferior_data. Install
1574 inferior_exit and inferior_appeared observers.
1576 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1577 Pedro Alves <palves@redhat.com>
1580 * solib-svr4.c (svr4_read_so_list): Rename to ...
1581 (svr4_current_sos_1): ... this and change the function comment.
1582 (svr4_current_sos): New function.
1584 2014-10-10 Pedro Alves <palves@redhat.com>
1586 * arch-utils.c (default_vsyscall_range): New function.
1587 * arch-utils.h (default_vsyscall_range): New declaration.
1588 * gdbarch.sh (vsyscall_range): New hook.
1589 * gdbarch.h, gdbarch.c: Regenerate.
1590 * linux-tdep.c (linux_vsyscall_range): New function.
1591 (linux_init_abi): Install linux_vsyscall_range as
1592 vsyscall_range gdbarch hook.
1593 * memrange.c (address_in_mem_range): New function.
1594 * memrange.h (address_in_mem_range): New declaration.
1595 * symfile-mem.c (find_vdso_size): Delete function.
1596 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1598 2014-10-10 Pedro Alves <palves@redhat.com>
1600 * infrun.c (normal_stop): Fix typo in comment.
1602 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1605 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1606 typo when using logical AND to determine instruction type.
1608 2014-10-09 Yao Qi <yao@codesourcery.com>
1610 * infrun.c (handle_signal_stop): Remove local variable
1613 2014-10-08 Stan Shebs <stan@codesourcery.com>
1615 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1617 2014-10-08 Gary Benson <gbenson@redhat.com>
1619 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1621 2014-10-08 Gary Benson <gbenson@redhat.com>
1623 * common/common-defs.h: Include common-exceptions.h.
1624 * exceptions.h: Do not include common-exceptions.h.
1626 2014-10-08 Gary Benson <gbenson@redhat.com>
1628 * common/common-defs.h: Include cleanups.h.
1629 * common/common-exceptions.c: Do not include cleanups.h.
1630 * utils.h: Likewise.
1632 2014-10-08 Gary Benson <gbenson@redhat.com>
1634 * ada-lang.c: Do not include exceptions.h.
1635 * ada-valprint.c: Likewise.
1636 * amd64-tdep.c: Likewise.
1637 * auto-load.c: Likewise.
1638 * block.c: Likewise.
1639 * break-catch-throw.c: Likewise.
1640 * breakpoint.c: Likewise.
1641 * btrace.c: Likewise.
1642 * c-lang.c: Likewise.
1643 * cli/cli-cmds.c: Likewise.
1644 * cli/cli-interp.c: Likewise.
1645 * cli/cli-script.c: Likewise.
1646 * completer.c: Likewise.
1647 * corefile.c: Likewise.
1648 * corelow.c: Likewise.
1649 * cp-abi.c: Likewise.
1650 * cp-support.c: Likewise.
1651 * cp-valprint.c: Likewise.
1652 * darwin-nat.c: Likewise.
1653 * dwarf2-frame-tailcall.c: Likewise.
1654 * dwarf2-frame.c: Likewise.
1655 * dwarf2loc.c: Likewise.
1656 * dwarf2read.c: Likewise.
1658 * event-loop.c: Likewise.
1659 * event-top.c: Likewise.
1660 * f-valprint.c: Likewise.
1661 * frame-unwind.c: Likewise.
1662 * frame.c: Likewise.
1663 * gdbtypes.c: Likewise.
1664 * gnu-v2-abi.c: Likewise.
1665 * gnu-v3-abi.c: Likewise.
1666 * guile/scm-auto-load.c: Likewise.
1667 * guile/scm-breakpoint.c: Likewise.
1668 * guile/scm-cmd.c: Likewise.
1669 * guile/scm-frame.c: Likewise.
1670 * guile/scm-lazy-string.c: Likewise.
1671 * guile/scm-param.c: Likewise.
1672 * guile/scm-symbol.c: Likewise.
1673 * guile/scm-type.c: Likewise.
1674 * hppa-hpux-tdep.c: Likewise.
1675 * i386-tdep.c: Likewise.
1676 * inf-loop.c: Likewise.
1677 * infcall.c: Likewise.
1678 * infcmd.c: Likewise.
1679 * infrun.c: Likewise.
1680 * interps.c: Likewise.
1681 * interps.h: Likewise.
1683 * linespec.c: Likewise.
1684 * linux-nat.c: Likewise.
1685 * linux-thread-db.c: Likewise.
1686 * m32r-rom.c: Likewise.
1688 * memory-map.c: Likewise.
1689 * mi/mi-cmd-break.c: Likewise.
1690 * mi/mi-cmd-stack.c: Likewise.
1691 * mi/mi-interp.c: Likewise.
1692 * mi/mi-main.c: Likewise.
1693 * monitor.c: Likewise.
1694 * nto-procfs.c: Likewise.
1695 * objc-lang.c: Likewise.
1696 * p-valprint.c: Likewise.
1697 * parse.c: Likewise.
1698 * ppc-linux-tdep.c: Likewise.
1699 * printcmd.c: Likewise.
1700 * probe.c: Likewise.
1701 * python/py-auto-load.c: Likewise.
1702 * python/py-breakpoint.c: Likewise.
1703 * python/py-cmd.c: Likewise.
1704 * python/py-finishbreakpoint.c: Likewise.
1705 * python/py-frame.c: Likewise.
1706 * python/py-framefilter.c: Likewise.
1707 * python/py-function.c: Likewise.
1708 * python/py-gdb-readline.c: Likewise.
1709 * python/py-inferior.c: Likewise.
1710 * python/py-infthread.c: Likewise.
1711 * python/py-lazy-string.c: Likewise.
1712 * python/py-linetable.c: Likewise.
1713 * python/py-param.c: Likewise.
1714 * python/py-prettyprint.c: Likewise.
1715 * python/py-symbol.c: Likewise.
1716 * python/py-type.c: Likewise.
1717 * python/py-value.c: Likewise.
1718 * python/python-internal.h: Likewise.
1719 * python/python.c: Likewise.
1720 * record-btrace.c: Likewise.
1721 * record-full.c: Likewise.
1722 * regcache.c: Likewise.
1723 * remote-fileio.c: Likewise.
1724 * remote-mips.c: Likewise.
1725 * remote.c: Likewise.
1726 * rs6000-aix-tdep.c: Likewise.
1727 * rs6000-nat.c: Likewise.
1729 * solib-darwin.c: Likewise.
1730 * solib-dsbt.c: Likewise.
1731 * solib-frv.c: Likewise.
1732 * solib-ia64-hpux.c: Likewise.
1733 * solib-spu.c: Likewise.
1734 * solib-svr4.c: Likewise.
1735 * solib.c: Likewise.
1736 * spu-tdep.c: Likewise.
1737 * stack.c: Likewise.
1738 * stap-probe.c: Likewise.
1739 * symfile-mem.c: Likewise.
1740 * symmisc.c: Likewise.
1741 * target.c: Likewise.
1742 * thread.c: Likewise.
1744 * tracepoint.c: Likewise.
1745 * tui/tui-interp.c: Likewise.
1746 * typeprint.c: Likewise.
1747 * utils.c: Likewise.
1748 * valarith.c: Likewise.
1749 * valops.c: Likewise.
1750 * valprint.c: Likewise.
1751 * value.c: Likewise.
1752 * varobj.c: Likewise.
1753 * windows-nat.c: Likewise.
1754 * xml-support.c: Likewise.
1756 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1758 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1760 (extended_mips16_next_pc): Update accordingly.
1762 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1764 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1766 (micromips_instruction_is_compact_branch): Likewise.
1767 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1768 or a compact jump, reaching a jump delay slot, or seeing a
1769 second non-prologue instruction.
1770 (micromips_scan_prologue): Also terminate scanning upon seeing a
1771 compact branch or jump, or reaching a branch or jump delay slot.
1772 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1773 or jump delay slot, or seeing a second non-prologue instruction.
1774 (mips32_instruction_has_delay_slot): Retain instruction
1775 examination code only, update arguments accordingly and move
1776 instruction fetch pieces to...
1777 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1778 (micromips_instruction_has_delay_slot): Likewise and to...
1779 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1780 (mips16_instruction_has_delay_slot): Likewise and to...
1781 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1782 (mips_single_step_through_delay): Update accordingly.
1783 (mips_adjust_breakpoint_address): Likewise.
1785 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1787 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1788 !mustbe32 also return 1 for 32-bit instructions.
1789 (mips16_instruction_has_delay_slot): Likewise. Add an
1790 explanatory comment.
1792 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1794 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1797 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1799 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1801 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1802 for the breakpoint's address. Don't preinitialize `placed_size'.
1803 (insert_bp_location): Set `reqstd_address' rather than
1805 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1806 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1808 (bkpt_remove_location): Likewise.
1809 (deprecated_insert_raw_breakpoint): Likewise.
1810 (deprecated_remove_raw_breakpoint): Likewise.
1811 (find_single_step_breakpoint): Likewise.
1812 * mem-break.c (default_memory_insert_breakpoint): Use
1813 `reqstd_address' for the breakpoint's address. Don't set
1814 `placed_address' or `placed_size' if breakpoint contents couldn't
1815 have been determined.
1816 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1817 the breakpoint's address.
1818 (remote_insert_hw_breakpoint): Likewise. Don't set
1819 `placed_address' or `placed_size' if breakpoint couldn't have been
1821 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1822 `reqstd_address' for the breakpoint's address.
1823 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1824 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1825 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1826 * microblaze-linux-tdep.c
1827 (microblaze_linux_memory_remove_breakpoint): Likewise.
1828 * monitor.c (monitor_insert_breakpoint): Likewise.
1829 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1830 (procfs_insert_hw_breakpoint): Likewise.
1831 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1832 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1833 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1834 * remote-mips.c (mips_insert_breakpoint): Likewise.
1835 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1837 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1839 * valops.c (value_assign): Check for bit field assignments
1840 before calling architecture-specific register value
1841 conversion functions.
1843 2014-10-03 Pierre Muller <muller@sourceware.org>
1845 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1847 2014-10-02 Pedro Alves <palves@redhat.com>
1849 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1850 threads_are_executing.
1851 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1853 * gdbthread.h (threads_are_executing): Declare.
1854 (handle_signal_stop) <random signals>: Don't print about the
1855 signal here if stopping.
1856 (end_stepping_range): Don't notify observers here.
1857 (normal_stop): Update the thread list. If stopped by a random
1858 signal or a stepping range ended, notify observers.
1859 * thread.c (threads_executing): New global.
1860 (init_thread_list): Clear 'threads_executing'.
1861 (set_executing): Set or clear 'threads_executing'.
1862 (threads_are_executing): New function.
1863 (update_threads_executing): New function.
1864 (update_thread_list): Use it.
1866 2014-10-02 Pedro Alves <palves@redhat.com>
1868 PR breakpoints/17431
1869 * breakpoint.c (update_breakpoints_after_exec): Don't create
1870 overlay, longjmp, std terminate nor exception breakpoints here.
1872 2014-10-02 Pedro Alves <palves@redhat.com>
1874 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1876 * inferior.c (find_inferior_for_program_space): Give preference to
1877 the current inferior.
1878 * inferior.h (find_inferior_for_program_space): Update comment.
1879 * progspace.c (switch_to_program_space_and_thread): Prefer the
1880 current inferior if it's bound to the program space requested. If
1881 the inferior found doesn't have a PID yet, don't bother looking up
1883 * progspace.h (switch_to_program_space_and_thread): Adjust
1885 * thread.c (any_thread_of_process, any_live_thread_of_process):
1886 Give preference to the current thread.
1888 2014-10-01 Pedro Alves <palves@redhat.com>
1890 * breakpoint.c (insert_bp_location): Error out if inserting a
1891 software breakpoint at a read-only address.
1892 * target.c (memory_xfer_check_region): New function, factored out
1894 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1896 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1897 against the memory region attributes.
1899 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1901 * NEWS: Announce new exit-code field in -list-thread-groups
1903 * inferior.c (exit_inferior_1): Don't clear exit code.
1904 (inferior_appeared): Clear exit code.
1905 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1908 2014-10-01 Pedro Alves <palves@redhat.com>
1910 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1911 GENERATED" along with emacs/vi read-only markers.
1912 * regformats/aarch64.dat: Regenerate.
1913 * regformats/arm-with-iwmmxt.dat: Regenerate.
1914 * regformats/arm-with-neon.dat: Regenerate.
1915 * regformats/arm-with-vfpv2.dat: Regenerate.
1916 * regformats/arm-with-vfpv3.dat: Regenerate.
1917 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1918 * regformats/i386/amd64-avx.dat: Regenerate.
1919 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1920 * regformats/i386/amd64-avx512.dat: Regenerate.
1921 * regformats/i386/amd64-linux.dat: Regenerate.
1922 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1923 * regformats/i386/amd64-mpx.dat: Regenerate.
1924 * regformats/i386/amd64.dat: Regenerate.
1925 * regformats/i386/i386-avx-linux.dat: Regenerate.
1926 * regformats/i386/i386-avx.dat: Regenerate.
1927 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1928 * regformats/i386/i386-avx512.dat: Regenerate.
1929 * regformats/i386/i386-linux.dat: Regenerate.
1930 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1931 * regformats/i386/i386-mmx.dat: Regenerate.
1932 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1933 * regformats/i386/i386-mpx.dat: Regenerate.
1934 * regformats/i386/i386.dat: Regenerate.
1935 * regformats/i386/x32-avx-linux.dat: Regenerate.
1936 * regformats/i386/x32-avx.dat: Regenerate.
1937 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1938 * regformats/i386/x32-avx512.dat: Regenerate.
1939 * regformats/i386/x32-linux.dat: Regenerate.
1940 * regformats/i386/x32.dat: Regenerate.
1941 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1942 * regformats/mips-dsp-linux.dat: Regenerate.
1943 * regformats/mips-linux.dat: Regenerate.
1944 * regformats/mips64-dsp-linux.dat: Regenerate.
1945 * regformats/mips64-linux.dat: Regenerate.
1946 * regformats/nios2-linux.dat: Regenerate.
1947 * regformats/rs6000/powerpc-32.dat: Regenerate.
1948 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1949 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1950 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1951 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1952 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1953 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1954 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1955 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1956 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1957 * regformats/s390-linux32.dat: Regenerate.
1958 * regformats/s390-linux32v1.dat: Regenerate.
1959 * regformats/s390-linux32v2.dat: Regenerate.
1960 * regformats/s390-linux64.dat: Regenerate.
1961 * regformats/s390-linux64v1.dat: Regenerate.
1962 * regformats/s390-linux64v2.dat: Regenerate.
1963 * regformats/s390-te-linux64.dat: Regenerate.
1964 * regformats/s390x-linux64.dat: Regenerate.
1965 * regformats/s390x-linux64v1.dat: Regenerate.
1966 * regformats/s390x-linux64v2.dat: Regenerate.
1967 * regformats/s390x-te-linux64.dat: Regenerate.
1968 * regformats/tic6x-c62x-linux.dat: Regenerate.
1969 * regformats/tic6x-c62x.dat: Regenerate.
1970 * regformats/tic6x-c64x-linux.dat: Regenerate.
1971 * regformats/tic6x-c64x.dat: Regenerate.
1972 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1973 * regformats/tic6x-c64xp.dat: Regenerate.
1975 2014-10-01 Pedro Alves <palves@redhat.com>
1977 * features/Makefile: Update comments.
1978 (XMLTOC): List all xml files we build C files from.
1979 (clean-cfiles): New rule.
1981 2014-10-01 Pedro Alves <palves@redhat.com>
1983 * features/i386/amd64-avx512-linux.c: Regenerate.
1984 * features/i386/amd64-avx512.c: Regenerate.
1985 * features/i386/x32-avx512-linux.c: Regenerate.
1986 * features/i386/x32-avx512.c: Regenerate.
1988 2014-10-01 Pedro Alves <palves@redhat.com>
1990 * features/Makefile (WHICH): Remove arm-with-m,
1991 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1993 2014-10-01 Pedro Alves <palves@redhat.com>
1995 * features/Makefile (clean): New rule.
1997 2014-10-01 Pedro Alves <palves@redhat.com>
1999 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2000 (zmm14h): Add missing end quotes.
2002 2014-10-01 Pedro Alves <palves@redhat.com>
2004 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2005 * features/aarch64.c: Regenerate.
2007 2014-09-30 Don Breazeal <donb@codesourcery.com>
2009 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2010 code so as to work with follow_fork_inferior.
2011 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2012 (inf_ttrace_create_inferior): Remove reference to
2013 inf_ttrace_vfork_ppid.
2014 (inf_ttrace_attach): Ditto.
2015 (inf_ttrace_detach): Ditto.
2016 (inf_ttrace_kill): Use current_inferior instead of
2017 inf_ttrace_vfork_ppid.
2018 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2019 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2020 inferior away from the parent.
2021 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2023 (follow_fork_inferior): New function.
2024 (follow_inferior_reset_breakpoints): Make function static.
2025 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2026 * linux-nat.c (linux_child_follow_fork): Move target-independent
2027 code to infrun.c:follow_fork_inferior.
2029 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2031 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2032 * gdbarch.c: Regenerate.
2033 * gdbarch.h: Likewise.
2034 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2035 gdbarch method 'regset_from_core_section'.
2036 (get_core_register_section): Remove handling for the case that
2037 regset == NULL and regset_from_core_section is defined.
2038 (get_core_registers): Drop check for deleted method.
2039 * procfs.c (procfs_do_thread_registers): Adjust comment.
2041 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2043 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2044 (linux_nat_make_corefile_notes): Remove.
2045 (linux_target_install_ops): Do not set target method
2046 'make_corefile_notes'.
2047 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2049 (linux_corefile_thread_callback): Instead of args->collect, call
2050 linux_collect_thread_registers.
2051 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2052 NULL unless there is a regset iterator.
2053 (linux_make_corefile_notes_1): Remove.
2054 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2055 by linux_make_corefile_notes.
2056 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2058 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2060 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2061 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2063 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2065 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2067 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2068 (xtensa_iterate_over_regset_sections): New.
2069 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2071 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2073 * vax-tdep.c (vax_regset_from_core_section): Remove.
2074 (vax_iterate_over_regset_sections): New.
2075 (vax_gdbarch_init): Adjust gdbarch initialization.
2077 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2079 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2080 (tilegx_regset_from_core_section): Remove.
2081 (tilegx_iterate_over_regset_sections): New.
2082 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2084 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2086 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2087 (sparc_iterate_over_regset_sections): New.
2088 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2089 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2091 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2092 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2093 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2094 target method 'make_corefile_notes'.
2096 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2098 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2099 'sizeof_gregset' and 'sizeof_fpregset'.
2100 * sh-tdep.c (sh_regset_from_core_section): Remove.
2101 (sh_iterate_over_regset_sections): New.
2102 (sh_gdbarch_init): Adjust gdbarch initialization.
2103 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2105 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2108 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2110 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2111 (score7_linux_iterate_over_regset_sections): New.
2112 (score_gdbarch_init): Adjust gdbarch initialization.
2114 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2116 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2118 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2119 method 'make_corefile_notes'.
2120 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2121 (ppcfbsd_regset_from_core_section): Remove.
2122 (ppcfbsd_iterate_over_regset_sections): New.
2123 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2125 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2126 (ppcnbsd_iterate_over_regset_sections): New.
2127 (ppcnbsd_init_abi): Adjust.
2128 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2129 (ppcobsd_iterate_over_regset_sections): New.
2130 (ppcobsd_init_abi): Adjust.
2131 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2132 (rs6000_aix_iterate_over_regset_sections): New.
2133 (rs6000_aix_init_osabi): Adjust.
2135 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2137 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2138 (nios2_regset_from_core_section): Remove.
2139 (nios2_iterate_over_regset_sections): New.
2140 (nios2_linux_init_abi): Adjust gdbarch initialization.
2142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2144 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2145 (am33_iterate_over_regset_sections): New.
2146 (am33_linux_init_osabi): Adjust gdbarch initialization.
2148 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2150 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2151 (mips_linux_iterate_over_regset_sections): New.
2152 (mips_linux_init_abi): Adjust gdbarch initialization.
2153 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2154 (mips64obsd_iterate_over_regset_sections): New.
2155 (mips64obsd_init_abi): Adjust.
2156 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2157 (mipsnbsd_iterate_over_regset_sections): New.
2158 (mipsnbsd_init_abi): Adjust.
2160 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2162 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2163 (m88k_iterate_over_regset_sections): New.
2164 (m88k_gdbarch_init): Adjust gdbarch initialization.
2166 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2168 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2169 (ia64_linux_iterate_over_regset_sections): New.
2170 (ia64_linux_init_abi): Adjust gdbarch initialization.
2172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2174 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2175 (m68kbsd_iterate_over_regset_sections): New.
2176 (m68kbsd_init_abi): Adjust gdbarch initialization.
2177 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2178 (m68k_linux_iterate_over_regset_sections): New.
2179 (m68k_linux_init_abi): Adjust gdbarch initialization.
2181 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2183 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2184 (m32r_linux_regset_from_core_section): Remove.
2185 (m32r_linux_iterate_over_regset_sections): New.
2186 (m32r_linux_init_abi): Adjust gdbarch initialization.
2188 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2190 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2191 (amd64obsd_iterate_over_regset_sections): New.
2192 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2193 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2195 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2196 regset_from_core_section initialization.
2197 * i386-tdep.c (i386_regset_from_core_section): Remove.
2198 (i386_iterate_over_regset_sections): New.
2199 (i386_gdbarch_init): Adjust gdbarch initialization.
2200 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2201 (i386_iterate_over_regset_sections): New prototype.
2202 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2204 (i386obsd_aout_iterate_over_regset_sections): New.
2205 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2206 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2208 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2209 (amd64fbsd_init_abi): Call fbsd_init_abi.
2210 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2211 (i386fbsd4_init_abi): Call fbsd_init_abi.
2212 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2213 target method 'make_corefile_notes'.
2214 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2216 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2218 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2219 (hppa_hpux_iterate_over_regset_sections): New.
2220 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2221 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2222 (hppa_linux_iterate_over_regset_sections): New.
2223 (hppa_linux_init_abi): Adjust.
2224 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2225 (hppanbsd_iterate_over_regset_sections): New.
2226 (hppanbsd_init_abi): Adjust.
2227 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2228 (hppaobsd_iterate_over_regset_sections): New.
2229 (hppaobsd_init_abi): Adjust.
2231 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2233 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2234 (frv_linux_iterate_over_regset_sections): New.
2235 (frv_linux_init_abi): Adjust gdbarch initialization.
2237 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2239 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2240 (armbsd_iterate_over_regset_sections): New prototype.
2241 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2242 (armbsd_iterate_over_regset_sections): New.
2243 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2246 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2248 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2249 (alpha_linux_iterate_over_regset_sections): New.
2250 (alpha_linux_init_abi): Adjust gdbarch initialization.
2251 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2253 (alphanbsd_iterate_over_regset_sections): New prototype.
2255 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2257 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2259 (aarch64_linux_iterate_over_regset_sections): New.
2260 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2262 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2264 * fbsd-tdep.c: New file.
2265 * fbsd-tdep.h: New file.
2266 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2267 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2268 (ALLDEPFILES): Add fbsd-tdep.c.
2270 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2272 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2274 * gdbarch.h: Regenerate.
2275 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2277 (get_core_register_section): Add parameter 'regset' and use it, if
2278 set. Add parameter 'min_size' and verify the bfd section size
2280 (get_core_registers_cb): Add parameter 'regset' and pass it to
2281 get_core_register section. For the "standard" register sections
2282 ".reg" and ".reg2", set an appropriate default for human_name.
2283 (get_core_registers): Don't abort when the gdbarch has an iterator
2284 but no regset_from_core_section. Add NULL/0 for parameters
2285 'regset'/'min_size' in calls to get_core_register_section.
2286 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2287 'regset' and use it instead of calling the
2288 regset_from_core_section gdbarch method.
2289 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2290 * i386-tdep.c (i386_supply_xstateregset)
2291 (i386_collect_xstateregset, i386_xstateregset): Moved to
2293 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2295 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2296 core file support only if the regset iterator hasn't been set.
2297 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2298 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2299 Moved from i386-tdep.c and renamed to *_linux*.
2300 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2301 each callback invocation. Allow any .reg-xstate size when reading
2303 * amd64-tdep.c (amd64_supply_xstateregset)
2304 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2306 (amd64_regset_from_core_section): Remove.
2307 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2308 install an amd64-specific regset_from_core_section gdbarch method.
2309 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2310 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2311 Moved from amd64-tdep.c and renamed to *_linux*.
2312 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2313 to each callback invocation. Allow any .reg-xstate size when
2314 reading from a core file.
2315 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2316 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2317 each callback invocation.
2318 (arm_linux_init_abi): No longer set the regset_from_core_section
2320 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2321 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2322 each callback invocation.
2323 (ppc_linux_init_abi): No longer set the regset_from_core_section
2325 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2326 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2327 (s390_regset_from_core_section): Remove.
2328 (s390_iterate_over_regset_sections): Add regset parameter to each
2329 callback invocation.
2330 (s390_gdbarch_init): No longer set the regset_from_core_section
2331 gdbarch method. Drop initialization of deleted tdep fields.
2333 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2335 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2336 (amd64_linux_iterate_over_regset_sections): New.
2337 (amd64_linux_init_abi_common): Don't install the regset section
2338 list, but the new iterator in gdbarch.
2339 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2340 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2341 (arm_linux_iterate_over_regset_sections): ...here. New function.
2342 (arm_linux_init_abi): Set iterator instead of section list.
2343 * corelow.c (get_core_registers_cb): New function, logic moved
2345 (get_core_registers): ...loop body here. Use new iterator method
2346 instead of walking through the regset section list.
2347 * gdbarch.sh: Remove 'core_regset_sections'. New method
2348 'iterate_over_regset_sections'. New typedef
2349 'iterate_over_regset_sections_cb'.
2350 * gdbarch.c: Regenerate.
2351 * gdbarch.h: Likewise.
2352 * i386-linux-tdep.c (i386_linux_regset_sections)
2353 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2355 (i386_linux_iterate_over_regset_sections): New.
2356 (i386_linux_init_abi): Don't choose a regset section list, but
2357 install new iterator in gdbarch.
2358 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2359 (linux_collect_regset_section_cb): New function, logic moved
2361 (linux_collect_thread_registers): ...loop body here. Use iterator
2362 method instead of walking through list.
2363 (linux_make_corefile_notes_1): Check for presence of iterator
2364 method instead of regset section list.
2365 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2366 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2367 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2368 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2369 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2370 (ppc_linux_init_abi): Don't choose from above regset section
2371 lists, but install new iterator in gdbarch.
2372 * regset.h (struct core_regset_section): Remove.
2373 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2374 have_linux_v1, have_linux_v2, and have_tdb.
2375 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2376 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2377 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2378 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2379 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2380 (s390_iterate_over_regset_sections): ...here. New function. Use
2382 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2383 regset section lists, but install new iterator.
2385 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2387 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2389 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2391 * progspace.c (print_program_space): Don't prune program spaces
2392 before printing them.
2394 2014-09-25 Pedro Alves <palves@redhat.com>
2396 * infrun.c (user_visible_resume_ptid): Don't check
2397 singlestep_breakpoints_inserted_p.
2399 2014-09-25 Pedro Alves <palves@redhat.com>
2401 * breakpoint.c (should_be_inserted): Add debug output.
2403 2014-09-25 Pedro Alves <palves@redhat.com>
2405 * infrun.c (stepping_past_instruction_at)
2406 (clear_exit_convenience_vars): Point at infrun.h instead of
2408 (handle_signal_stop): Fix typo.
2410 2014-09-24 Yao Qi <yao@codesourcery.com>
2412 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2415 2014-09-22 Gary Benson <gbenson@redhat.com>
2417 * target.c (target_stop): Updated comment.
2419 2014-09-22 Gary Benson <gbenson@redhat.com>
2421 * target/target.h (target_stop_ptid): Renamed as...
2422 (target_stop_and_wait): New function. Updated comment.
2424 (target_continue_ptid): Renamed as...
2425 (target_continue_no_signal): New function. Updated comment.
2428 2014-09-22 Pedro Alves <palves@redhat.com>
2430 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2432 * breakpoint.c (enum ugll_insert_mode): New enum.
2433 (always_inserted_mode): Now a plain boolean.
2434 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2435 (breakpoints_always_inserted_mode): Delete.
2436 (breakpoints_should_be_inserted_now): New function.
2437 (insert_breakpoints): Pass UGLL_INSERT to
2438 update_global_location_list instead of calling
2439 insert_breakpoint_locations manually.
2440 (create_solib_event_breakpoint_1): New, factored out from ...
2441 (create_solib_event_breakpoint): ... this.
2442 (create_and_insert_solib_event_breakpoint): Use
2443 create_solib_event_breakpoint_1 instead of calling
2444 insert_breakpoint_locations manually.
2445 (update_global_location_list): Change parameter type from boolean
2446 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2447 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2448 (update_global_location_list_nothrow): Change parameter type from
2449 boolean to enum ugll_insert_mode.
2450 (_initialize_breakpoint): "breakpoint always-inserted" option is
2451 now a boolean command. Update help text.
2452 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2453 (breakpoints_should_be_inserted_now): New declaration.
2454 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2455 Remove breakpoints_always_inserted_mode check.
2456 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2457 * remote.c (remote_start_remote): Likewise.
2459 2014-09-22 Pedro Alves <palves@redhat.com>
2461 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2462 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2463 Instead, pass UGLL_INSERT to update_global_location_list.
2464 (update_global_location_list): Change parameter type from boolean
2465 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2466 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2467 (create_solib_event_breakpoint_1): New, factored out from ...
2468 (create_solib_event_breakpoint): ... this.
2469 (create_and_insert_solib_event_breakpoint): Use
2470 create_solib_event_breakpoint_1 instead of calling
2471 insert_breakpoint_locations manually.
2472 (update_global_location_list): Handle UGLL_INSERT.
2474 2014-09-22 Pedro Alves <palves@redhat.com>
2476 * breakpoint.c (enum ugll_insert_mode): New enum.
2477 (update_global_location_list)
2478 (update_global_location_list_nothrow): Change parameter type from
2479 boolean to enum ugll_insert_mode. All callers adjusted.
2481 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2483 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2484 SystemTap support in GDB.
2486 2014-09-19 Don Breazeal <donb@codesourcery.com>
2488 * linux-nat.c (linux_handle_extended_wait): Call
2489 linux_ptrace_get_extended_event.
2490 (wait_lwp): Call linux_is_extended_waitstatus.
2491 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2492 and linux_is_extended_waitstatus.
2493 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2494 linux_ptrace_get_extended_event.
2495 (linux_ptrace_get_extended_event): New function.
2496 (linux_is_extended_waitstatus): New function.
2497 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2498 (linux_is_extended_waitstatus): New declarations.
2500 2014-09-19 Yao Qi <yao@codesourcery.com>
2502 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2503 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2504 comments. Callers update.
2505 (dwarf_decode_lines): Likewise.
2506 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2507 comments. Skip the line table if 'lowpc' is greater than
2508 'address'. Don't check
2509 dwarf2_per_objfile->has_section_at_zero.
2511 2014-09-18 Doug Evans <dje@google.com>
2513 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2514 * python/py-symtab.c (stpy_get_producer): New function.
2515 (symtab_object_getset): Add "producer" attribute.
2517 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2520 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2521 (do_captured_read_memory_integer): Remove.
2522 (safe_read_memory_integer): Use target_read_memory directly instead
2523 of catching errors in do_captured_read_memory_integer.
2525 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2527 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2530 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2532 * objc-lang.c (find_implementation_from_class): Remove dead code.
2534 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2537 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2538 "fprintf_unfiltered (gdb_stdlog...)".
2540 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2542 PR breakpoints/12526
2543 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2545 * breakpoint.c (watch_command_1): Use these fields to retain
2546 bitfield information.
2547 (extract_bitfield_from_watchpoint_value): New function.
2548 (watchpoint_check): Use it.
2549 (update_watchpoint): Use it. Optimize the address and length of a
2550 HW watchpoint pointing to a bitfield.
2551 * value.h (unpack_value_bitfield): New prototype.
2552 * value.c (unpack_value_bitfield): Make extern.
2554 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2556 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2558 * gnu-nat.c (inf_threads): New function.
2559 * gnu-nat.h (inf_threads_ftype): New typedef.
2560 (inf_threads): New declaration.
2561 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2562 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2563 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2564 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2565 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2566 (i386_gnu_dr_get_control): New functions.
2567 (reg_addr): New structure.
2568 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2569 i386 debugging register hooks.
2570 * NEWS: Mention this.
2572 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2574 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2575 vector data transfer instructions.
2576 (arm_record_coproc_data_proc): Updated.
2578 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2580 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2581 arm_record_exreg_ld_st_insn.
2582 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2585 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2587 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2588 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2589 processing instructions.
2591 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2593 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2594 for advance SIMD struct ld/st insn.
2595 (thumb2_record_decode_insn_handler): Replace stub handler with
2596 thumb2_record_asimd_struct_ld_st.
2598 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2600 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2601 for asimd, vfp and coprocessor insns.
2602 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2603 and coprocessor insns.
2604 (thumb2_record_coproc_insn): New function.
2605 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2607 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2610 2014-09-13 Doug Evans <xdje42@gmail.com>
2612 * NEWS: Mention new "queue-signal" command.
2613 * infcmd.c (queue_signal_command): New function.
2614 (_initialize_infcmd): Add new queue-signal command.
2616 2014-09-13 Doug Evans <xdje42@gmail.com>
2618 * linux-nat.c (wait_lwp): Add debugging printf.
2619 (linux_nat_wait_1): Ditto.
2621 2014-09-12 Pedro Alves <palves@redhat.com>
2623 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2624 (create_and_insert_solib_event_breakpoint): New functions.
2625 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2626 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2627 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2628 (remove_dbx_link_breakpoint): Delete function.
2629 (insert_dbx_link_bpt_in_file): Use
2630 create_and_insert_solib_event_breakpoint instead of
2631 deprecated_insert_raw_breakpoint.
2632 (procfs_wait): Don't check whether we hit __dbx_link here.
2633 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2635 * solib-irix.c (base_breakpoint): Delete global.
2636 (disable_break): Delete function.
2637 (enable_break): Use create_solib_event_breakpoint
2638 instead of deprecated_insert_raw_breakpoint.
2639 (irix_solib_handle_event): New function.
2640 (irix_solib_create_inferior_hook): Don't run the target or disable
2641 the mapping-complete breakpoint here.
2642 (_initialize_irix_solib): Install irix_solib_handle_event as
2643 so_ops->handle_event hook.
2645 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2646 Ulrich Weigand <uweigand@de.ibm.com>
2649 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2650 instead of read_memory_unsigned_integer.
2652 2014-09-12 Gary Benson <gbenson@redhat.com>
2654 * nat/linux-waitpid.c: Include common-defs.h.
2655 [GDBSERVER]: Add FIXME comment.
2656 [!GDBSERVER]: Don't include defs.h or signal.h.
2657 (linux_debug) [!GDBSERVER]: Remove empty block.
2659 2014-09-12 Gary Benson <gbenson@redhat.com>
2661 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2662 Don't include defs.h or server.h.
2664 2014-09-12 Gary Benson <gbenson@redhat.com>
2666 * nat/linux-btrace.c: Include common-defs.h.
2667 Don't include defs.h, server.h or gdbthread.h.
2668 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2670 2014-09-12 Gary Benson <gbenson@redhat.com>
2672 * common/agent.c: Include common-defs.h.
2673 Don't include defs.h or server.h.
2674 * common/buffer.c: Likewise.
2675 * common/common-debug.c: Likewise.
2676 * common/common-utils.c: Likewise.
2677 * common/errors.c: Likewise.
2678 * common/filestuff.c: Likewise.
2679 * common/format.c: Likewise.
2680 * common/gdb_vecs.c: Likewise.
2681 * common/print-utils.c: Likewise.
2682 * common/ptid.c: Likewise.
2683 * common/rsp-low.c: Likewise.
2684 * common/signals.c: Likewise.
2685 * common/vec.c: Likewise.
2686 * common/xml-utils.c: Likewise.
2687 * nat/linux-osdata.c: Likewise.
2688 * nat/linux-procfs.c: Likewise.
2689 * nat/linux-ptrace.c: Likewise.
2690 * nat/mips-linux-watch.c: Likewise.
2691 * target/waitstatus.c: Likewise.
2693 2014-09-12 Tom Tromey <tromey@redhat.com>
2694 Gary Benson <gbenson@redhat.com>
2696 * common/common-regcache.h: New file.
2697 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2698 * regcache.h: Include common-regcache.h.
2699 (regcache_read_pc): Don't declare.
2700 * regcache.c (get_thread_regcache_for_ptid): New function.
2701 * nat/linux-btrace.c: Don't include regcache.h.
2702 Include common-regcache.h.
2703 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2705 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2707 * regcache.h (struct regset): Declare.
2709 2014-09-11 Pedro Alves <palves@redhat.com>
2712 * main.c: Include "infrun.h".
2713 (catch_command_errors, catch_command_errors_const): Wait for the
2714 foreground command to complete.
2715 * top.c (maybe_wait_sync_command_done): New function, factored out
2717 (maybe_wait_sync_command_done): ... here.
2718 * top.h (maybe_wait_sync_command_done): New declaration.
2720 2014-09-11 Tom Tromey <tromey@redhat.com>
2721 Gary Benson <gbenson@redhat.com>
2723 * common/symbol.h: New file.
2724 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2725 * minsyms.c (find_minimal_symbol_address): New function.
2726 * common/agent.c: Include common/symbol.h.
2727 [!GDBSERVER]: Don't include objfiles.h.
2728 (agent_look_up_symbols): Use find_minimal_symbol_address.
2730 2014-09-11 Gary Benson <gbenson@redhat.com>
2732 * target/target.h (target_stop_ptid, target_continue_ptid):
2734 * target.c (target_stop_ptid, target_continue_ptid): New
2736 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2737 (agent_run_command): Always use target_stop_ptid and
2738 target_continue_ptid.
2740 2014-09-11 Tom Tromey <tromey@redhat.com>
2741 Gary Benson <gbenson@redhat.com>
2743 * target/target.h: New file.
2744 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2745 * target.h: Include target/target.h.
2746 (target_read_memory, target_write_memory): Don't declare.
2747 * target.c (target_read_uint32): New function.
2748 * common/agent.c: Include target/target.h.
2749 [!GDBSERVER]: Don't include target.h.
2750 (helper_thread_id): Type changed to uint32_t.
2751 (agent_get_helper_thread_id): Use target_read_uint32.
2752 (agent_run_command): Always use target_read_memory and
2753 target_write_memory.
2754 (agent_capability): Type changed to uint32_t.
2755 (agent_capability_check): Use target_read_uint32.
2757 2014-09-11 Gary Benson <gbenson@redhat.com>
2759 * common/common-debug.h (show_debug_regs): Declare.
2760 * common/common-debug.c (show_debug_regs): Define.
2761 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2762 all uses with show_debug_regs. Replace all uses that considered
2763 debug_hw_points as a multi-value integer with straight boolean
2765 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2766 with show_debug_regs.
2767 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2768 all uses with show_debug_regs.
2769 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2770 uses with show_debug_regs.
2772 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2774 * findvar.c (address_from_register): Handle targets requiring
2775 a special conversion routine even for plain pointer types.
2777 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2779 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2780 (store_register): Do not call exec_one_dummy_insn.
2782 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2784 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2785 dereference it first. Use value_enclosing_type instead of
2787 (ada_array_length): Likewise.
2789 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2791 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2792 Adjust function implementation and documentation accordingly.
2793 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2794 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2795 Update call to ada_value_ptr_subscript.
2797 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2799 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2800 instead of VAL's type.
2802 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2804 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2806 2014-09-09 Doug Evans <xdje42@gmail.com>
2809 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2810 last parameter to pkg-config, not first.
2811 * configure.ac: Pass --with-guile provided pkg-config path to
2812 GDB_GUILE_PROGRAM_NAMES.
2813 * configure: Regenerate.
2815 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2817 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2820 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2822 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2823 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2824 the list of sections determining GDB_OSABI_IRIX.
2826 2014-09-09 James Hogan <james.hogan@imgtec.com>
2828 * MAINTAINERS (Write After Approval): Add "James Hogan".
2830 2014-09-09 James Hogan <james.hogan@imgtec.com>
2832 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2834 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2836 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2838 2014-09-08 Doug Evans <xdje42@gmail.com>
2841 * guile.c: #include <signal.h>.
2842 (_initialize_guile): Block SIGCHLD while initializing Guile.
2844 Replaces the following, which is reverted.
2846 2014-07-26 Doug Evans <xdje42@gmail.com>
2849 * configure.ac: Add check for header gc/gc.h.
2850 Add check for function setenv.
2851 * configure: Regenerate.
2852 * config.in: Regenerate.
2853 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2855 2014-09-08 Doug Evans <xdje42@gmail.com>
2857 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2858 with named constant. Fix style of pointer comparison.
2859 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2861 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2864 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2865 decide whether we display the command on "show user".
2866 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2867 printing command name.
2868 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2869 * cli/cli-decode.c (cli_user_command_p): Create helper function
2870 to verify whether cmd_list_element is a user-defined command.
2872 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2875 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2876 Fix goto out of TRY_CATCH.
2878 2014-09-06 Doug Evans <xdje42@gmail.com>
2879 Tom Tromey <tromey@redhat.com>
2882 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2883 $_any_caller_matches.
2884 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2885 * python/lib/gdb/function/caller_is.py: New file.
2887 2014-09-06 Doug Evans <xdje42@gmail.com>
2889 * infcmd.c (program_info): Fix typo.
2891 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2894 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2895 'number'. New variable 'has_digit'. Rewrite code to deal with
2896 subexpressions on SDT probes.
2898 2014-09-04 Pedro Alves <palves@redhat.com>
2900 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2901 the input is only one character long.
2903 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2906 * f-valprint.c (f_val_print): Specify the correct print option to
2907 use when printing integer values.
2909 2014-09-04 Gary Benson <gbenson@redhat.com>
2911 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2912 Remove code to cope with LWPs wrapped as PIDs.
2913 Add assertions to ensure no wrapped LWPs are passed.
2915 2014-09-04 Pedro Alves <palves@redhat.com>
2917 * value.c (value_ranges_copy_adjusted): New function, factored out
2919 (value_contents_copy_raw): ... here.
2920 (unpack_value_bits_as_long_1): Rename back to ...
2921 (unpack_bits_as_long): ... this. Remove 'original_value' and
2922 'result' parameters. Change return type to LONGEST.
2923 (unpack_value_bits_as_long): Delete.
2924 (unpack_value_field_as_long_1): Delete.
2925 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2926 (unpack_value_bitfield): New function.
2927 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2928 (value_fetch_lazy): Use unpack_value_bitfield.
2929 * value.h (unpack_value_bits_as_long): Delete declaration.
2931 2014-09-03 Sasha Smundak <asmundak@google.com>
2933 * python/py-frame.c (frapy_read_register): New function.
2935 2014-09-03 James Hogan <james.hogan@imgtec.com>
2937 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2938 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2940 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2943 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2945 (add_cmd): Set "completer_handle_brkchars" to NULL.
2946 * cli/cli-decode.h (struct cmd_list_element)
2947 <completer_handle_brkchars>: New field.
2948 * command.h (completer_ftype_void): New typedef.
2949 (set_cmd_completer_handle_brkchars): New prototype.
2950 * completer.c (set_gdb_completion_word_break_characters): New
2952 (complete_line_internal): Call "completer_handle_brkchars"
2953 callback from command.
2954 * completer.h: Include "command.h".
2955 (set_gdb_completion_word_break_characters): New prototype.
2956 * python/py-cmd.c (cmdpy_completer_helper): New function.
2957 (cmdpy_completer_handle_brkchars): New function.
2958 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2959 (cmdpy_init): Set completer_handle_brkchars to
2960 cmdpy_completer_handle_brkchars.
2962 2014-09-03 Gary Benson <gbenson@redhat.com>
2964 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2965 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2966 Loop conditions changed to equivalent form.
2967 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2968 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2969 ALL_DEBUG_ADDRESS_REGISTERS.
2971 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2973 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2976 2014-09-02 Doug Evans <dje@google.com>
2978 * typeprint.c (find_global_typedef): Fix comment.
2980 2014-09-02 Gary Benson <gbenson@redhat.com>
2982 * i386-nat.h: Renamed as...
2983 * x86-nat.h: New file. All type, function and variable name
2984 prefixes changed from "i386_" to "x86_". All references updated.
2985 * i386-nat.c: Renamed as...
2986 * x86-nat.c: New file. All type, function and variable name
2987 prefixes changed from "i386_" to "x86_". All references updated.
2988 * common/i386-xstate.h: Renamed as...
2989 * common/x86-xstate.h: New file. All type, function and variable
2990 name prefixes changed from "i386_" to "x86_". All references
2992 * nat/i386-cpuid.h: Renamed as...
2993 * nat/x86-cpuid.h: New file. All type, function and variable name
2994 prefixes changed from "i386_" to "x86_". All references updated.
2995 * nat/i386-gcc-cpuid.h: Renamed as...
2996 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2997 name prefixes changed from "i386_" to "x86_". All references
2999 * nat/i386-dregs.h: Renamed as...
3000 * nat/x86-dregs.h: New file. All type, function and variable name
3001 prefixes changed from "i386_" to "x86_". All references updated.
3002 * nat/i386-dregs.c: Renamed as...
3003 * nat/x86-dregs.c: New file. All type, function and variable name
3004 prefixes changed from "i386_" to "x86_". All references updated.
3006 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3008 * varobj.c (_initialize_varobj): Move to the end of file.
3010 2014-08-29 Gary Benson <gbenson@redhat.com>
3012 * common/common-exceptions.h: New file.
3013 * common/common-exceptions.c: Likewise.
3014 * Makefile.in (SFILES): Add common/common-exceptions.c.
3015 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3016 (COMMON_OBS): Add common-exceptions.o.
3017 (common-exceptions.o): New rule.
3018 * exceptions.h (common-exceptions.h): Include.
3019 (gdb_setjmp.h): Do not include.
3020 (return_reason): Moved to common-exceptions.h.
3021 (enum return_reason): Likewise.
3022 (RETURN_MASK): Likewise.
3023 (typedef return_mask): Likewise.
3024 (enum errors): Likewise.
3025 (struct gdb_exception): Likewise.
3026 (exceptions_state_mc_init): Likewise.
3027 (exceptions_state_mc_action_iter): Likewise.
3028 (exceptions_state_mc_action_iter_1): Likewise.
3029 (TRY_CATCH): Likewise.
3030 (throw_exception): Likewise.
3031 (throw_verror): Likewise.
3032 (throw_vquit): Likewise.
3033 (throw_error): Likewise.
3034 (throw_quit): Likewise.
3035 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3036 (enum catcher_action): Likewise.
3037 (struct catcher): Likewise.
3038 (current_catcher): Likewise.
3039 (catcher_list_size): Likewise.
3040 (exceptions_state_mc_init): Likewise.
3041 (catcher_pop): Likewise.
3042 (exceptions_state_mc): Likewise.
3043 (exceptions_state_mc_action_iter): Likewise.
3044 (exceptions_state_mc_action_iter_1): Likewise.
3045 (throw_exception): Likewise.
3046 (exception_messages): Likewise.
3047 (exception_messages_size): Likewise.
3048 (throw_it): Likewise.
3049 (throw_verror): Likewise.
3050 (throw_vquit): Likewise.
3051 (throw_error): Likewise.
3052 (throw_quit): Likewise.
3053 (prepare_to_throw_exception): New function.
3055 2014-08-29 Gary Benson <gbenson@redhat.com>
3057 * common/gdb_setjmp.h: New file.
3058 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3059 * configure.ac: Move sigsetjmp check...
3060 * common/common.m4: ...here.
3061 * configure: Regenerate.
3062 * cp-support.c (SIGJMP_BUF): Delete.
3063 (SIGSETJMP): Likewise.
3064 (SIGLONGJMP): Likewise.
3065 * exceptions.h (gdb_setjmp.h): Include.
3066 (setjmp.h): Do not include.
3067 (EXCEPTIONS_SIGJMP_BUF): Delete.
3068 (EXCEPTIONS_SIGSETJMP): Likewise.
3069 (EXCEPTIONS_SIGLONGJMP): Likewise.
3070 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3072 * exceptions.c: Likewise.
3074 2014-08-29 Gary Benson <gbenson@redhat.com>
3076 * cleanups.h: Moved to...
3077 * common/cleanups.h: New file.
3078 * cleanups.c: Moved to...
3079 * common/cleanups.c: New file. Include common-defs.h and
3080 cleanups.h. Do not include defs.h.
3081 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3082 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3083 (cleanups.o): New rule.
3085 2014-08-29 Gary Benson <gbenson@redhat.com>
3087 * common/errors.h (internal_warning): New declaration.
3088 (internal_vwarning): Likewise.
3089 * common/errors.c (internal_warning): New function.
3090 * utils.h (internal_warning): Don't declare.
3091 (internal_vwarning): Likewise.
3092 * utils.c (internal_warning): Removed.
3094 2014-08-29 Gary Benson <gbenson@redhat.com>
3096 * main.c (captured_main): Use warning during startup.
3097 Prefix startup warning messages with command name.
3099 2014-08-29 Gary Benson <gbenson@redhat.com>
3101 * main.c (captured_main): Handle usage errors with error.
3103 2014-08-29 Gary Benson <gbenson@redhat.com>
3105 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3106 exit pair with a call to error. Wrap the message with _().
3108 2014-08-29 Gary Benson <gbenson@redhat.com>
3110 * main.c (captured_main): Replace a fprintf/exit
3111 pair with a call to error. Wrap the message with _().
3113 2014-08-29 Gary Benson <gbenson@redhat.com>
3115 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3116 pairs with calls to error. Wrap the message with _().
3118 2014-08-29 Gary Benson <gbenson@redhat.com>
3120 * utils.c (vwarning): Protect calls to target_terminal_ours
3123 2014-08-29 Gary Benson <gbenson@redhat.com>
3125 * exceptions.c (print_flush): Protect calls to
3126 target_terminal_ours and wrap_here.
3128 2014-08-29 Gary Benson <gbenson@redhat.com>
3130 * utils.h (filtered_printing_initialized): New declaration.
3131 * utils.c (abort_with_message): New function.
3132 (internal_vproblem): Use abort_with_message for first level
3133 recursive internal problems, and if gdb_stderr is not set up.
3134 Protect calls to target_terminal_ours, begin_line and query.
3136 2014-08-28 Doug Evans <dje@google.com>
3138 * symtab.c (in_prologue): Move definition to better spot.
3139 (skip_prologue_using_sal): Ditto.
3141 2014-08-28 Doug Evans <dje@google.com>
3143 * symtab.c (find_function_start_sal): Move definition to better spot.
3145 2014-08-28 Yao Qi <yao@codesourcery.com>
3147 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3148 found_stack_adjust in forward scan. Remove condition check
3149 on found_stack_adjust which is always true. Indent the code.
3151 2014-08-28 Yao Qi <yao@codesourcery.com>
3153 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3154 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3155 (dwarf_decode_lines): Remove argument
3156 want_line_info. Remove condition check on want_line_info.
3159 2014-08-27 Doug Evans <dje@google.com>
3161 * dwarf2read.c (dwarf_record_line): Fix typo.
3163 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3165 * target.h (struct target_ops::to_terminal_save_ours): Remove
3167 (target_terminal_save_ours): Remove macro.
3168 * target-delegates.c: Regenerate.
3169 * inf-child.c (inf_child_target): Don't set the nonexistent
3170 field to_terminal_save_ours.
3171 * inferior.h (child_terminal_save_ours): Remove declaration.
3172 * terminal.h (gdb_save_tty_state): New declaration.
3173 * inflow.c (child_terminal_save_ours): Rename to ...
3174 (gdb_save_tty_state): ... this.
3175 * tui/tui.c: Include terminal.h.
3176 (tui_enable): Use gdb_save_tty_state instead of
3177 target_terminal_save_ours.
3178 (tui_disable): Likewise.
3180 2014-08-25 Doug Evans <dje@google.com>
3182 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3183 Pass NULL instead of 0 for context pointer.
3185 2014-08-25 Yao Qi <yao@codesourcery.com>
3187 * dwarf2read.c: Fix grammatical error.
3189 2014-08-24 Yao Qi <yao@codesourcery.com>
3191 * dwarf2read.c (scan_partial_symbols): Update comments.
3192 Rename argument 'need_pc' with 'set_addrmap'.
3193 (add_partial_namespace): Rename argument 'need_pc' with
3195 (add_partial_module): Likewise.
3196 (add_partial_subprogram): Likewise. Update comments.
3197 (dwarf2_name): Fix typo.
3199 2014-08-22 Doug Evans <dje@google.com>
3202 * dwarf2read.c (dwarf_record_line_p): New function.
3203 (dwarf_decode_lines_1): Ignore subsequent line number entries
3204 for the same line if any entry had a non-zero discriminator.
3206 2014-08-22 Doug Evans <dje@google.com>
3208 * buildsym.h (record_line_ftype): New typedef.
3209 (record_line): Use it.
3210 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3211 (dwarf_decode_lines_1): Call them.
3213 2014-08-22 Yao Qi <yao@codesourcery.com>
3215 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3216 (ctf_end): Remove code.
3218 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3220 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3221 (linux_make_corefile_notes): call update_thread_list, protected against
3224 2014-08-21 Pedro Alves <palves@redhat.com>
3226 * infcmd.c (attach_command): Remove comment.
3228 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3230 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3231 unsigned LONGEST to ULONGEST.
3233 2014-08-20 Pedro Alves <palves@redhat.com>
3235 * Makefile.in (check-read1): New rule.
3237 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3239 * value.c (value_from_contents_and_address): Strip resolved_type's
3240 typedef layers before checking its TYPE_DATA_LOCATION.
3242 2014-08-20 Pedro Alves <palves@redhat.com>
3244 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3246 2014-08-20 Yao Qi <yao@codesourcery.com>
3248 * amd64-tdep.c (amd64_classify): Add a blank line after the
3249 example. Move "*/" to a new line.
3250 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3251 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3252 * dwarf2read.c (psymtab_include_file_name): Likewise.
3254 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3255 Pedro Alves <palves@redhat.com>
3259 * ada-lang.c (coerce_unspec_val_to_type): Use
3260 value_contents_copy_raw.
3261 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3262 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3263 * cp-valprint.c (cp_print_value_fields): Let the common printing
3264 code handle optimized out values.
3265 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3266 * d-valprint.c (dynamic_array_type): Use
3267 value_bits_any_optimized_out.
3268 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3269 check_any_valid fields.
3270 (check_pieced_value_bits): Delete and inline ...
3271 (check_pieced_synthetic_pointer): ... here.
3272 (check_pieced_value_validity): Delete.
3273 (check_pieced_value_invalid): Delete.
3274 (pieced_value_funcs): Remove check_validity and check_any_valid
3276 (read_pieced_value): Use mark_value_bits_optimized_out.
3277 (write_pieced_value): Switch to use
3278 mark_value_bytes_optimized_out.
3279 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3280 of assuming the whole value is optimized out.
3281 * findvar.c (read_frame_register_value): Remove special handling
3282 of optimized out registers.
3283 (value_from_register): Use mark_value_bytes_optimized_out.
3284 * frame-unwind.c (frame_unwind_got_optimized): Use
3285 mark_value_bytes_optimized_out.
3286 * jv-valprint.c (java_value_print): Adjust.
3287 (java_print_value_fields): Let the common printing code handle
3288 optimized out values.
3289 * mips-tdep.c (mips_print_register): Remove special handling of
3290 optimized out registers.
3291 * opencl-lang.c (lval_func_check_validity): Delete.
3292 (lval_func_check_any_valid): Delete.
3293 (opencl_value_funcs): Remove check_validity and check_any_valid
3295 * p-valprint.c (pascal_object_print_value_fields): Let the common
3296 printing code handle optimized out values.
3297 * stack.c (read_frame_arg): Remove special handling of optimized
3298 out values. Fetch both VAL and ENTRYVAL before comparing
3299 contents. Adjust to value_available_contents_eq rename.
3300 * valprint.c (valprint_check_validity)
3301 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3302 (val_print_array_elements): Adjust.
3303 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3304 (value_bits_any_optimized_out): New function.
3305 (value_entirely_covered_by_range_vector): New function, factored
3306 out from value_entirely_unavailable.
3307 (value_entirely_unavailable): Reimplement.
3308 (value_entirely_optimized_out): New function.
3309 (insert_into_bit_range_vector): New function, factored out from
3310 mark_value_bits_unavailable.
3311 (mark_value_bits_unavailable): Reimplement.
3312 (struct ranges_and_idx): New struct.
3313 (find_first_range_overlap_and_match): New function, factored out
3314 from value_available_contents_bits_eq.
3315 (value_available_contents_bits_eq): Rename to ...
3316 (value_contents_bits_eq): ... this. Check both unavailable
3317 contents and optimized out contents.
3318 (value_available_contents_eq): Rename to ...
3319 (value_contents_eq): ... this.
3320 (allocate_value_lazy): Remove reference to the old optimized_out
3322 (allocate_optimized_out_value): Use
3323 mark_value_bytes_optimized_out.
3324 (require_not_optimized_out): Adjust to check whether the
3325 optimized_out vec is empty.
3326 (ranges_copy_adjusted): New function, factored out from
3327 value_contents_copy_raw.
3328 (value_contents_copy_raw): Also copy the optimized out ranges.
3329 Assert the destination ranges aren't optimized out.
3330 (value_contents_copy): Update comment, remove call to
3331 require_not_optimized_out.
3332 (value_contents_equal): Adjust to check whether the optimized_out
3334 (set_value_optimized_out, value_optimized_out_const): Delete.
3335 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3337 (value_entirely_optimized_out, value_bits_valid): Delete.
3338 (value_copy): Take a VEC copy of the 'optimized_out' field.
3339 (value_primitive_field): Remove special handling of optimized out.
3340 (value_fetch_lazy): Assert that lazy values have no unavailable
3341 regions. Use value_bits_any_optimized_out. Remove some special
3342 handling for optimized out values.
3343 * value.h: Add intro comment about <optimized out> and
3345 (struct lval_funcs): Remove check_validity and check_any_valid
3347 (set_value_optimized_out, value_optimized_out_const): Remove.
3348 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3350 (value_bits_any_optimized_out): New declaration.
3351 (value_bits_valid): Delete declaration.
3352 (value_available_contents_eq): Rename to ...
3353 (value_contents_eq): ... this, and extend comments.
3355 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3357 Fix -fsanitize=address on unreadable inferior strings.
3358 * valprint.c (val_print_string): Fix access before BUFFER.
3360 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3362 * target.c (target_struct_size): Remove.
3363 (target_struct_allocsize): Remove.
3364 (DEFAULT_ALLOCSIZE): Remove.
3365 (target_ops_p): New typedef.
3366 (DEF_VEC_P (target_ops_p)): New vector type.
3367 (target_structs): Change type to VEC (target_ops_p).
3368 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3369 (find_default_run_target): Rewrite for loop following changes to
3372 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3374 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3375 Adjust code accordingly. Adjust function description comment.
3377 2014-08-19 Yao Qi <yao@codesourcery.com>
3379 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3382 2014-08-19 Alan Modra <amodra@gmail.com>
3384 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3385 * config.in: Regenerate.
3386 * configure: Regenerate.
3388 2014-08-19 Tom Tromey <tromey@redhat.com>
3389 Gary Benson <gbenson@redhat.com>
3391 * common/common-debug.h: New file.
3392 * common/common-debug.c: Likewise.
3393 * debug.c: Likewise.
3394 * Makefile.in (SFILES): Add common/common-debug.c.
3395 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3396 (COMMON_OBS): Add common-debug.o and debug.o.
3397 (common-debug.o): New rule.
3398 * common/common-defs.h: Include common-debug.h.
3399 * common/agent.c (debug_agent_printf): New function.
3400 (DEBUG_AGENT): Redefine.
3401 * nat/i386-dregs.c (debug_printf): Undefine.
3403 2014-08-19 Gary Benson <gbenson@redhat.com>
3405 * common/common-defs.h: Include print-utils.h.
3406 * utils.h: Do not include print-utils.h.
3408 2014-08-19 Tom Tromey <tromey@redhat.com>
3409 Gary Benson <gbenson@redhat.com>
3411 * common/common-types.h: New file.
3412 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3413 * common/common-defs.h: Include common-types.h.
3414 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3417 2014-08-19 Tom Tromey <tromey@redhat.com>
3418 Gary Benson <gbenson@redhat.com>
3420 * common/errors.h: New file.
3421 * common/errors.c: Likewise.
3422 * Makefile.in (SFILES): Add common/errors.c.
3423 (HFILES_NO_SRCDIR): Add common/errors.h.
3424 (COMMON_OBS): Add errors.o.
3425 (errors.o): New rule.
3426 * common/common-defs.h: Include errors.h.
3427 * utils.h (perror_with_name, error, verror, warning, vwarning):
3429 * common/common-utils.h: (malloc_failure, internal_error):
3432 2014-08-19 Gary Benson <gbenson@redhat.com>
3434 * utils.c (internal_vproblem): Always print the message.
3436 2014-08-18 Doug Evans <dje@google.com>
3438 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3440 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3442 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3443 Return 0 if TYPE is dynamic.
3444 (print_range): Add handling of dynamic ranges.
3446 2014-08-18 Keven Boell <keven.boell@intel.com>
3447 Joel Brobecker <brobecker@adacore.com>
3449 * gdbtypes.h (struct main_type): Add field "data_location".
3450 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3451 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3452 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3453 a dynamic data location.
3454 (resolve_dynamic_type): Add DW_AT_data_location handling.
3455 (copy_recursive, copy_type): Copy the data_location information
3457 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3458 * value.c (value_from_contents_and_address): Add
3459 DW_AT_data_location handling.
3461 2014-08-18 Keven Boell <keven.boell@intel.com>
3462 Joel Brobecker <brobecker@adacore.com>
3464 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3465 field "get_object_address".
3466 * dwarf2expr.c (execute_stack_op): Add handling for
3467 DW_OP_push_object_address.
3468 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3469 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3470 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3471 (dwarf_expr_get_obj_addr): New function.
3472 (dwarf_expr_ctx_funcs): Add get_object_address field.
3473 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3474 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3475 (dwarf2_evaluate_property): Add parameter "address". Use it.
3476 (needs_get_obj_addr): New function.
3477 (needs_frame_ctx_funcs): Add get_object_address field.
3478 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3479 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3480 (resolve_dynamic_array): Likewise.
3482 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3484 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3485 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3486 fixed value for records and unions for which some GNAT encodings
3489 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3491 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3492 rewrite to avoid "else if" and "else" constructs. Should be
3493 a no-op in practice.
3495 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3497 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3500 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3503 * eval.c: Update all calls to find_overload_match.
3504 * valarith.c: Likewise.
3505 (value_user_defined_cpp_op, value_user_defined_op): New
3506 argument NOSIDE. Update all callers.
3507 * valops.c (find_overload_match): New argument NOSIDE.
3508 * value.h (find_overload_match): Update signature.
3510 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3512 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3513 'items' methods instead of 'iteritems' method on dictionaries.
3515 2014-08-15 Doug Evans <dje@google.com>
3517 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3520 2014-08-15 Doug Evans <dje@google.com>
3522 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3524 2014-08-15 Doug Evans <dje@google.com>
3526 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3528 2014-08-15 Doug Evans <dje@google.com>
3530 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3533 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3535 * dcache.h: Include target.h, to avoid compile time warnings.
3537 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3539 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3540 frame_info" partial declaration.
3541 * gdbarch.h: Regenerate.
3543 2014-08-15 Yao Qi <yao@codesourcery.com>
3545 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3546 Add parameter 'decode_for_pst_p'. Callers update.
3548 2014-08-13 Yao Qi <yao@codesourcery.com>
3551 * configure.ac: Use local variable 'pos'.
3552 * configure: Regenerated.
3554 2014-08-11 Doug Evans <dje@google.com>
3556 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3557 message, it is redundant with "Reading symbols from ..." message.
3559 2014-08-10 Doug Evans <xdje42@gmail.com>
3561 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3563 2014-08-09 Yao Qi <yao@codesourcery.com>
3566 * remote.c (remote_xfer_partial): Remove dead code.
3568 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3570 * ia64-linux-tdep.c: Include "regset.h".
3571 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3572 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3573 (ia64_linux_supply_fpregset): New function.
3574 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3575 (ia64_linux_regset_from_core_section): New function.
3576 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3579 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3581 * m68klinux-tdep.c: Include "regset.h".
3582 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3583 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3584 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3585 (m68k_linux_regset_from_core_section): New function.
3586 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3589 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3591 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3592 function. Move logic to...
3593 (tilegx_linux_regmap): ... this new register map.
3594 (tilegx_linux_regset): Refer to register map, replace supply
3595 method by regcache_supply_regset, and add collect method.
3596 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3597 TILEGX_FIRST_EASY_REGNUM.
3599 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3601 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3602 that calls regcache_supply_regset and handles the EPC register
3603 separately. Move main logic to...
3604 (score7_linux_gregmap): ... this new register map.
3605 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3606 (score7_linux_gregset): Refer to register map. Add collect method.
3607 (score7_linux_regset_from_core_section): Replace
3608 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3609 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3610 (struct regset): Delete unused forward declaraction.
3611 (struct pt_regs): Delete structure definition.
3612 (elf_gregset_t): Delete typedef.
3614 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3616 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3617 (nios2_core_regset): Add collect method.
3619 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3621 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3622 platform-independent and don't write to read-only input buffer.
3623 (m32r_linux_collect_gregset): New function.
3624 (m32r_linux_gregset): Add collect method.
3626 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3628 * hppa-linux-tdep.c (greg_map): Rename to...
3629 (hppa_linux_gregmap): ... this. Also convert to
3630 regcache_map_entry format.
3631 (hppa_linux_supply_regset): Delete function.
3632 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3633 (hppa_linux_fpregmap): ... this new register map.
3634 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3635 register map, replace supply method by regcache_supply_regset, and
3636 add collect method regcache_collect_regset.
3638 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3640 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3641 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3642 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3643 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3644 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3645 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3646 (frv_linux_supply_gregset): Replace main logic by call to
3647 regcache_supply_regset, but keep clearing gr32-gr63.
3648 (frv_linux_supply_fpregset): Delete function.
3649 (frv_linux_gregset): Refer to appropriate register map and add
3650 regcache_collect_regset as the collect method.
3651 (frv_linux_fpregset): Likewise. Also exchange the supply method
3652 by regcache_supply_regset.
3654 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3656 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3657 by call to alpha_supply_int_regs.
3658 (alpha_linux_collect_gregset): New function.
3659 (alpha_linux_supply_fpregset): Replace logic by call to
3660 alpha_supply_fp_regs.
3661 (alpha_linux_collect_fpregset): New function.
3662 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3664 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3666 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3667 by call to regcache_collect_regset.
3668 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3669 instead of aarch64_linux_supply_gregset/_fpregset.
3670 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3671 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3672 header file instead.
3673 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3674 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3675 functions. Move logic to ...
3676 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3678 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3679 refer to new register maps, replace *_regset_from_core by
3680 regcache_supply_regset, and also use regcache_collect_regset.
3681 * aarch64-linux-tdep.h: Include "regset.h".
3682 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3684 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3685 macros, moved from C source file.
3686 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3687 variable declarations.
3689 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3691 * s390-linux-nat.c: Include "regset.h".
3692 (regmap_gregset): Delete macro.
3693 (s390_64_regmap_gregset): New register map for
3694 regcache_supply/_collect_regset.
3695 (s390_64_gregset): New regset.
3696 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3697 (regmap_fpregset): Delete macro.
3698 (s390_native_supply, s390_native_collect): Delete functions.
3699 (supply_gregset, fill_gregset): Replace s390-specific regmap
3700 handling by a call to regcache_supply/_collect_regset.
3701 (supply_fpregset, fill_fpregset): Call regcache_supply/
3702 _collect_regset instead of s390_native_supply/_collect.
3703 (fetch_regset, store_regset): Likewise. Also change the last
3704 parameter to a regset instead of a regmap.
3705 (s390_linux_fetch_inferior_registers)
3706 (390_linux_store_inferior_registers): Adjust last parameter in
3707 calls to fetch_regset and store_regset.
3708 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3709 (s390_gregmap): ... this. Also make static const and convert to
3710 regcache_map_entry format.
3711 (s390x_regmap_gregset): Delete.
3712 (s390_regmap_fpregset): Rename to...
3713 (s390_fpregmap): ... this. Make static const and convert to
3714 regcache_map_entry format.
3715 (s390_regmap_upper, s390_regmap_last_break)
3716 (s390x_regmap_last_break, s390_regmap_system_call)
3717 (s390_regmap_tdb): Likewise.
3718 (s390_supply_regset, s390_collect_regset): Remove functions.
3719 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3721 (s390_gregset, s390_fpregset, s390_upper_regset)
3722 (s390_last_break_regset, s390x_last_break_regset)
3723 (s390_system_call_regset, s390_tdb_regset): Make global and
3724 replace s390_supply/_collect_regset by regcache_supply/
3726 (s390x_gregset): Delete.
3727 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3728 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3729 (s390_regmap_fpregset, s390_regmap_last_break)
3730 (s390x_regmap_last_break, s390_regmap_system_call)
3731 (s390_regmap_tdb): Delete global variable declarations.
3732 (s390_gregset, s390_fpregset, s390_last_break_regset)
3733 (s390x_last_break_regset, s390_system_call_regset)
3734 (s390_tdb_regset): New global variable declarations.
3736 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3738 * regcache.c: Include "regset.h".
3739 (regcache_transfer_regset): New local function.
3740 (regcache_supply_regset, regcache_collect_regset): New functions.
3741 * regcache.h (struct regcache_map_entry): New structure.
3742 (REGCACHE_MAP_SKIP): New enum value.
3743 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3745 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3747 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3748 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3749 (ppc_linux_collect_gregset ): Likewise.
3750 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3751 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3752 (ppc_collect_vrregset): Likewise.
3753 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3756 2014-08-07 Yao Qi <yao@codesourcery.com>
3758 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3759 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3760 * remote.c (remote_read_bytes): Likewise.
3762 2014-08-07 Yao Qi <yao@codesourcery.com>
3764 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3766 2014-08-07 Yao Qi <yao@codesourcery.com>
3769 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3770 TARGET_XFER_OK instead of 0.
3772 2014-08-07 Gary Benson <gbenson@redhat.com>
3774 * common/common-defs.h: Include errno.h.
3775 * defs.h: Do not include errno.h.
3776 * ada-typeprint.c: Likewise.
3777 * c-typeprint.c: Likewise.
3778 * core-regset.c: Likewise.
3779 * corefile.c: Likewise.
3780 * corelow.c: Likewise.
3781 * event-loop.c: Likewise.
3782 * f-typeprint.c: Likewise.
3783 * gnu-nat.c: Likewise.
3784 * go32-nat.c: Likewise.
3785 * i386gnu-nat.c: Likewise.
3786 * m2-typeprint.c: Likewise.
3787 * nat/linux-btrace.c: Likewise.
3788 * p-typeprint.c: Likewise.
3789 * procfs.c: Likewise.
3790 * remote-sim.c: Likewise.
3791 * rs6000-nat.c: Likewise.
3792 * target.c: Likewise.
3793 * typeprint.c: Likewise.
3794 * ui-file.c: Likewise.
3795 * valops.c: Likewise.
3796 * valprint.c: Likewise.
3798 2014-08-07 Gary Benson <gbenson@redhat.com>
3800 * common/common-defs.h: Include string.h.
3801 * aarch64-tdep.c: Do not include string.h.
3802 * ada-exp.y: Likewise.
3803 * ada-lang.c: Likewise.
3804 * ada-lex.l: Likewise.
3805 * ada-typeprint.c: Likewise.
3806 * ada-valprint.c: Likewise.
3807 * aix-thread.c: Likewise.
3808 * alpha-linux-tdep.c: Likewise.
3809 * alpha-mdebug-tdep.c: Likewise.
3810 * alpha-nat.c: Likewise.
3811 * alpha-osf1-tdep.c: Likewise.
3812 * alpha-tdep.c: Likewise.
3813 * alphanbsd-tdep.c: Likewise.
3814 * amd64-dicos-tdep.c: Likewise.
3815 * amd64-linux-tdep.c: Likewise.
3816 * amd64-nat.c: Likewise.
3817 * amd64-sol2-tdep.c: Likewise.
3818 * amd64fbsd-tdep.c: Likewise.
3819 * amd64obsd-tdep.c: Likewise.
3820 * arch-utils.c: Likewise.
3821 * arm-linux-nat.c: Likewise.
3822 * arm-linux-tdep.c: Likewise.
3823 * arm-tdep.c: Likewise.
3824 * arm-wince-tdep.c: Likewise.
3825 * armbsd-tdep.c: Likewise.
3826 * armnbsd-nat.c: Likewise.
3827 * armnbsd-tdep.c: Likewise.
3828 * armobsd-tdep.c: Likewise.
3829 * avr-tdep.c: Likewise.
3830 * ax-gdb.c: Likewise.
3831 * ax-general.c: Likewise.
3832 * bcache.c: Likewise.
3833 * bfin-tdep.c: Likewise.
3834 * breakpoint.c: Likewise.
3835 * build-id.c: Likewise.
3836 * buildsym.c: Likewise.
3837 * c-exp.y: Likewise.
3838 * c-lang.c: Likewise.
3839 * c-typeprint.c: Likewise.
3840 * c-valprint.c: Likewise.
3841 * charset.c: Likewise.
3842 * cli-out.c: Likewise.
3843 * cli/cli-cmds.c: Likewise.
3844 * cli/cli-decode.c: Likewise.
3845 * cli/cli-dump.c: Likewise.
3846 * cli/cli-interp.c: Likewise.
3847 * cli/cli-logging.c: Likewise.
3848 * cli/cli-script.c: Likewise.
3849 * cli/cli-setshow.c: Likewise.
3850 * cli/cli-utils.c: Likewise.
3851 * coffread.c: Likewise.
3852 * common/agent.c: Likewise.
3853 * common/buffer.c: Likewise.
3854 * common/buffer.h: Likewise.
3855 * common/common-utils.c: Likewise.
3856 * common/filestuff.c: Likewise.
3857 * common/filestuff.c: Likewise.
3858 * common/format.c: Likewise.
3859 * common/print-utils.c: Likewise.
3860 * common/rsp-low.c: Likewise.
3861 * common/signals.c: Likewise.
3862 * common/vec.h: Likewise.
3863 * common/xml-utils.c: Likewise.
3864 * core-regset.c: Likewise.
3865 * corefile.c: Likewise.
3866 * corelow.c: Likewise.
3867 * cp-abi.c: Likewise.
3868 * cp-name-parser.y: Likewise.
3869 * cp-support.c: Likewise.
3870 * cp-valprint.c: Likewise.
3871 * cris-tdep.c: Likewise.
3872 * d-exp.y: Likewise.
3873 * darwin-nat.c: Likewise.
3874 * dbxread.c: Likewise.
3875 * dcache.c: Likewise.
3876 * demangle.c: Likewise.
3877 * dicos-tdep.c: Likewise.
3878 * disasm.c: Likewise.
3879 * doublest.c: Likewise.
3880 * dsrec.c: Likewise.
3881 * dummy-frame.c: Likewise.
3882 * dwarf2-frame.c: Likewise.
3883 * dwarf2loc.c: Likewise.
3884 * dwarf2read.c: Likewise.
3885 * elfread.c: Likewise.
3886 * environ.c: Likewise.
3888 * event-loop.c: Likewise.
3889 * exceptions.c: Likewise.
3891 * expprint.c: Likewise.
3892 * f-exp.y: Likewise.
3893 * f-lang.c: Likewise.
3894 * f-typeprint.c: Likewise.
3895 * f-valprint.c: Likewise.
3896 * fbsd-nat.c: Likewise.
3897 * findcmd.c: Likewise.
3898 * findvar.c: Likewise.
3899 * fork-child.c: Likewise.
3900 * frame.c: Likewise.
3901 * frv-linux-tdep.c: Likewise.
3902 * frv-tdep.c: Likewise.
3904 * gdb_bfd.c: Likewise.
3905 * gdbarch.c: Likewise.
3906 * gdbarch.sh: Likewise.
3907 * gdbtypes.c: Likewise.
3908 * gnu-nat.c: Likewise.
3909 * gnu-v2-abi.c: Likewise.
3910 * gnu-v3-abi.c: Likewise.
3911 * go-exp.y: Likewise.
3912 * go-lang.c: Likewise.
3913 * go32-nat.c: Likewise.
3914 * guile/guile.c: Likewise.
3915 * guile/scm-auto-load.c: Likewise.
3916 * hppa-hpux-tdep.c: Likewise.
3917 * hppa-linux-nat.c: Likewise.
3918 * hppanbsd-tdep.c: Likewise.
3919 * hppaobsd-tdep.c: Likewise.
3920 * i386-cygwin-tdep.c: Likewise.
3921 * i386-dicos-tdep.c: Likewise.
3922 * i386-linux-tdep.c: Likewise.
3923 * i386-nto-tdep.c: Likewise.
3924 * i386-sol2-tdep.c: Likewise.
3925 * i386-tdep.c: Likewise.
3926 * i386bsd-tdep.c: Likewise.
3927 * i386gnu-nat.c: Likewise.
3928 * i386nbsd-tdep.c: Likewise.
3929 * i386obsd-tdep.c: Likewise.
3930 * i387-tdep.c: Likewise.
3931 * ia64-libunwind-tdep.c: Likewise.
3932 * ia64-linux-nat.c: Likewise.
3933 * inf-child.c: Likewise.
3934 * inf-ptrace.c: Likewise.
3935 * inf-ttrace.c: Likewise.
3936 * infcall.c: Likewise.
3937 * infcmd.c: Likewise.
3938 * inflow.c: Likewise.
3939 * infrun.c: Likewise.
3940 * interps.c: Likewise.
3941 * iq2000-tdep.c: Likewise.
3942 * irix5-nat.c: Likewise.
3943 * jv-exp.y: Likewise.
3944 * jv-lang.c: Likewise.
3945 * jv-typeprint.c: Likewise.
3946 * jv-valprint.c: Likewise.
3947 * language.c: Likewise.
3948 * linux-fork.c: Likewise.
3949 * linux-nat.c: Likewise.
3950 * lm32-tdep.c: Likewise.
3951 * m2-exp.y: Likewise.
3952 * m2-typeprint.c: Likewise.
3953 * m32c-tdep.c: Likewise.
3954 * m32r-linux-nat.c: Likewise.
3955 * m32r-linux-tdep.c: Likewise.
3956 * m32r-rom.c: Likewise.
3957 * m32r-tdep.c: Likewise.
3958 * m68hc11-tdep.c: Likewise.
3959 * m68k-tdep.c: Likewise.
3960 * m68kbsd-tdep.c: Likewise.
3961 * m68klinux-nat.c: Likewise.
3962 * m68klinux-tdep.c: Likewise.
3963 * m88k-tdep.c: Likewise.
3964 * machoread.c: Likewise.
3965 * macrocmd.c: Likewise.
3967 * mdebugread.c: Likewise.
3968 * mem-break.c: Likewise.
3969 * memattr.c: Likewise.
3970 * memory-map.c: Likewise.
3971 * mep-tdep.c: Likewise.
3972 * mi/mi-cmd-break.c: Likewise.
3973 * mi/mi-cmd-disas.c: Likewise.
3974 * mi/mi-cmd-env.c: Likewise.
3975 * mi/mi-cmd-stack.c: Likewise.
3976 * mi/mi-cmd-var.c: Likewise.
3977 * mi/mi-cmds.c: Likewise.
3978 * mi/mi-console.c: Likewise.
3979 * mi/mi-getopt.c: Likewise.
3980 * mi/mi-interp.c: Likewise.
3981 * mi/mi-main.c: Likewise.
3982 * mi/mi-parse.c: Likewise.
3983 * microblaze-rom.c: Likewise.
3984 * microblaze-tdep.c: Likewise.
3985 * mingw-hdep.c: Likewise.
3986 * minidebug.c: Likewise.
3987 * minsyms.c: Likewise.
3988 * mips-irix-tdep.c: Likewise.
3989 * mips-linux-tdep.c: Likewise.
3990 * mips-tdep.c: Likewise.
3991 * mips64obsd-tdep.c: Likewise.
3992 * mipsnbsd-tdep.c: Likewise.
3993 * mipsread.c: Likewise.
3994 * mn10300-linux-tdep.c: Likewise.
3995 * mn10300-tdep.c: Likewise.
3996 * monitor.c: Likewise.
3997 * moxie-tdep.c: Likewise.
3998 * mt-tdep.c: Likewise.
3999 * nat/linux-btrace.c: Likewise.
4000 * nat/linux-osdata.c: Likewise.
4001 * nat/linux-procfs.c: Likewise.
4002 * nat/linux-ptrace.c: Likewise.
4003 * nat/linux-waitpid.c: Likewise.
4004 * nbsd-tdep.c: Likewise.
4005 * nios2-linux-tdep.c: Likewise.
4006 * nto-procfs.c: Likewise.
4007 * nto-tdep.c: Likewise.
4008 * objc-lang.c: Likewise.
4009 * objfiles.c: Likewise.
4010 * opencl-lang.c: Likewise.
4011 * osabi.c: Likewise.
4012 * osdata.c: Likewise.
4013 * p-exp.y: Likewise.
4014 * p-lang.c: Likewise.
4015 * p-typeprint.c: Likewise.
4016 * parse.c: Likewise.
4017 * posix-hdep.c: Likewise.
4018 * ppc-linux-nat.c: Likewise.
4019 * ppc-sysv-tdep.c: Likewise.
4020 * ppcfbsd-tdep.c: Likewise.
4021 * ppcnbsd-tdep.c: Likewise.
4022 * ppcobsd-tdep.c: Likewise.
4023 * printcmd.c: Likewise.
4024 * procfs.c: Likewise.
4025 * prologue-value.c: Likewise.
4026 * python/py-auto-load.c: Likewise.
4027 * python/py-gdb-readline.c: Likewise.
4028 * ravenscar-thread.c: Likewise.
4029 * regcache.c: Likewise.
4030 * registry.c: Likewise.
4031 * remote-fileio.c: Likewise.
4032 * remote-m32r-sdi.c: Likewise.
4033 * remote-mips.c: Likewise.
4034 * remote-notif.c: Likewise.
4035 * remote-sim.c: Likewise.
4036 * remote.c: Likewise.
4037 * reverse.c: Likewise.
4038 * rs6000-aix-tdep.c: Likewise.
4039 * ser-base.c: Likewise.
4040 * ser-go32.c: Likewise.
4041 * ser-mingw.c: Likewise.
4042 * ser-pipe.c: Likewise.
4043 * ser-tcp.c: Likewise.
4044 * ser-unix.c: Likewise.
4045 * serial.c: Likewise.
4046 * sh-tdep.c: Likewise.
4047 * sh64-tdep.c: Likewise.
4048 * shnbsd-tdep.c: Likewise.
4050 * sol-thread.c: Likewise.
4051 * solib-dsbt.c: Likewise.
4052 * solib-frv.c: Likewise.
4053 * solib-osf.c: Likewise.
4054 * solib-som.c: Likewise.
4055 * solib-spu.c: Likewise.
4056 * solib-target.c: Likewise.
4057 * solib.c: Likewise.
4058 * somread.c: Likewise.
4059 * source.c: Likewise.
4060 * sparc-nat.c: Likewise.
4061 * sparc-sol2-tdep.c: Likewise.
4062 * sparc-tdep.c: Likewise.
4063 * sparc64-tdep.c: Likewise.
4064 * sparc64fbsd-tdep.c: Likewise.
4065 * sparc64nbsd-tdep.c: Likewise.
4066 * sparcnbsd-tdep.c: Likewise.
4067 * spu-linux-nat.c: Likewise.
4068 * spu-multiarch.c: Likewise.
4069 * spu-tdep.c: Likewise.
4070 * stabsread.c: Likewise.
4071 * stack.c: Likewise.
4072 * std-regs.c: Likewise.
4073 * symfile.c: Likewise.
4074 * symmisc.c: Likewise.
4075 * symtab.c: Likewise.
4076 * target.c: Likewise.
4077 * thread.c: Likewise.
4078 * tilegx-linux-nat.c: Likewise.
4079 * tilegx-tdep.c: Likewise.
4081 * tracepoint.c: Likewise.
4082 * tui/tui-command.c: Likewise.
4083 * tui/tui-data.c: Likewise.
4084 * tui/tui-disasm.c: Likewise.
4085 * tui/tui-file.c: Likewise.
4086 * tui/tui-layout.c: Likewise.
4087 * tui/tui-out.c: Likewise.
4088 * tui/tui-regs.c: Likewise.
4089 * tui/tui-source.c: Likewise.
4090 * tui/tui-stack.c: Likewise.
4091 * tui/tui-win.c: Likewise.
4092 * tui/tui-windata.c: Likewise.
4093 * tui/tui-winsource.c: Likewise.
4094 * typeprint.c: Likewise.
4095 * ui-file.c: Likewise.
4096 * ui-out.c: Likewise.
4097 * user-regs.c: Likewise.
4098 * utils.c: Likewise.
4099 * v850-tdep.c: Likewise.
4100 * valarith.c: Likewise.
4101 * valops.c: Likewise.
4102 * valprint.c: Likewise.
4103 * value.c: Likewise.
4104 * varobj.c: Likewise.
4105 * vax-tdep.c: Likewise.
4106 * vaxnbsd-tdep.c: Likewise.
4107 * vaxobsd-tdep.c: Likewise.
4108 * windows-nat.c: Likewise.
4109 * xcoffread.c: Likewise.
4110 * xml-support.c: Likewise.
4111 * xstormy16-tdep.c: Likewise.
4112 * xtensa-linux-nat.c: Likewise.
4114 2014-08-07 Gary Benson <gbenson@redhat.com>
4116 * common/common-defs.h: Include gdb_assert.h.
4117 * aarch64-tdep.c: Do not include gdb_assert.h.
4118 * addrmap.c: Likewise.
4119 * aix-thread.c: Likewise.
4120 * alpha-linux-tdep.c: Likewise.
4121 * alpha-mdebug-tdep.c: Likewise.
4122 * alphanbsd-tdep.c: Likewise.
4123 * amd64-nat.c: Likewise.
4124 * amd64-tdep.c: Likewise.
4125 * amd64bsd-nat.c: Likewise.
4126 * amd64fbsd-nat.c: Likewise.
4127 * amd64fbsd-tdep.c: Likewise.
4128 * amd64nbsd-nat.c: Likewise.
4129 * amd64nbsd-tdep.c: Likewise.
4130 * amd64obsd-nat.c: Likewise.
4131 * amd64obsd-tdep.c: Likewise.
4132 * arch-utils.c: Likewise.
4133 * arm-tdep.c: Likewise.
4134 * armbsd-tdep.c: Likewise.
4136 * bcache.c: Likewise.
4137 * bfin-tdep.c: Likewise.
4138 * blockframe.c: Likewise.
4139 * breakpoint.c: Likewise.
4140 * bsd-kvm.c: Likewise.
4141 * bsd-uthread.c: Likewise.
4142 * buildsym.c: Likewise.
4143 * c-exp.y: Likewise.
4144 * c-lang.c: Likewise.
4145 * charset.c: Likewise.
4146 * cleanups.c: Likewise.
4147 * cli-out.c: Likewise.
4148 * cli/cli-decode.c: Likewise.
4149 * cli/cli-dump.c: Likewise.
4150 * cli/cli-logging.c: Likewise.
4151 * cli/cli-script.c: Likewise.
4152 * cli/cli-utils.c: Likewise.
4153 * coffread.c: Likewise.
4154 * common/common-utils.c: Likewise.
4155 * common/queue.h: Likewise.
4156 * common/signals.c: Likewise.
4157 * common/vec.h: Likewise.
4158 * complaints.c: Likewise.
4159 * completer.c: Likewise.
4160 * corelow.c: Likewise.
4161 * cp-abi.c: Likewise.
4162 * cp-name-parser.y: Likewise.
4163 * cp-namespace.c: Likewise.
4164 * cp-support.c: Likewise.
4165 * cris-tdep.c: Likewise.
4166 * dbxread.c: Likewise.
4167 * dictionary.c: Likewise.
4168 * doublest.c: Likewise.
4169 * dsrec.c: Likewise.
4170 * dummy-frame.c: Likewise.
4171 * dwarf2-frame-tailcall.c: Likewise.
4172 * dwarf2-frame.c: Likewise.
4173 * dwarf2expr.c: Likewise.
4174 * dwarf2loc.c: Likewise.
4175 * dwarf2read.c: Likewise.
4177 * event-loop.c: Likewise.
4178 * exceptions.c: Likewise.
4179 * expprint.c: Likewise.
4180 * f-valprint.c: Likewise.
4181 * fbsd-nat.c: Likewise.
4182 * findvar.c: Likewise.
4183 * frame-unwind.c: Likewise.
4184 * frame.c: Likewise.
4185 * frv-tdep.c: Likewise.
4186 * gcore.c: Likewise.
4187 * gdb-dlfcn.c: Likewise.
4188 * gdb_bfd.c: Likewise.
4189 * gdbarch.c: Likewise.
4190 * gdbarch.sh: Likewise.
4191 * gdbtypes.c: Likewise.
4192 * gnu-nat.c: Likewise.
4193 * gnu-v3-abi.c: Likewise.
4194 * go-lang.c: Likewise.
4195 * guile/scm-exception.c: Likewise.
4196 * guile/scm-gsmob.c: Likewise.
4197 * guile/scm-lazy-string.c: Likewise.
4198 * guile/scm-math.c: Likewise.
4199 * guile/scm-pretty-print.c: Likewise.
4200 * guile/scm-safe-call.c: Likewise.
4201 * guile/scm-utils.c: Likewise.
4202 * guile/scm-value.c: Likewise.
4203 * h8300-tdep.c: Likewise.
4204 * hppa-hpux-nat.c: Likewise.
4205 * hppa-tdep.c: Likewise.
4206 * hppanbsd-tdep.c: Likewise.
4207 * hppaobsd-tdep.c: Likewise.
4208 * i386-darwin-nat.c: Likewise.
4209 * i386-darwin-tdep.c: Likewise.
4210 * i386-nto-tdep.c: Likewise.
4211 * i386-tdep.c: Likewise.
4212 * i386bsd-nat.c: Likewise.
4213 * i386fbsd-tdep.c: Likewise.
4214 * i386gnu-nat.c: Likewise.
4215 * i386nbsd-tdep.c: Likewise.
4216 * i386obsd-tdep.c: Likewise.
4217 * i387-tdep.c: Likewise.
4218 * ia64-libunwind-tdep.c: Likewise.
4219 * ia64-tdep.c: Likewise.
4220 * inf-ptrace.c: Likewise.
4221 * inf-ttrace.c: Likewise.
4222 * infcall.c: Likewise.
4223 * infcmd.c: Likewise.
4224 * infrun.c: Likewise.
4225 * inline-frame.c: Likewise.
4226 * interps.c: Likewise.
4227 * jv-lang.c: Likewise.
4228 * jv-typeprint.c: Likewise.
4229 * linux-fork.c: Likewise.
4230 * linux-nat.c: Likewise.
4231 * linux-thread-db.c: Likewise.
4232 * m32c-tdep.c: Likewise.
4233 * m32r-linux-nat.c: Likewise.
4234 * m32r-tdep.c: Likewise.
4235 * m68k-tdep.c: Likewise.
4236 * m68kbsd-nat.c: Likewise.
4237 * m68kbsd-tdep.c: Likewise.
4238 * m88k-tdep.c: Likewise.
4239 * machoread.c: Likewise.
4240 * macroexp.c: Likewise.
4241 * macrotab.c: Likewise.
4242 * maint.c: Likewise.
4243 * mdebugread.c: Likewise.
4244 * memory-map.c: Likewise.
4245 * mep-tdep.c: Likewise.
4246 * mi/mi-common.c: Likewise.
4247 * microblaze-tdep.c: Likewise.
4248 * mingw-hdep.c: Likewise.
4249 * mips-linux-nat.c: Likewise.
4250 * mips-linux-tdep.c: Likewise.
4251 * mips-tdep.c: Likewise.
4252 * mips64obsd-tdep.c: Likewise.
4253 * mipsnbsd-tdep.c: Likewise.
4254 * mn10300-linux-tdep.c: Likewise.
4255 * mn10300-tdep.c: Likewise.
4256 * moxie-tdep.c: Likewise.
4257 * mt-tdep.c: Likewise.
4258 * nat/linux-btrace.c: Likewise.
4259 * nat/linux-osdata.c: Likewise.
4260 * nat/linux-ptrace.c: Likewise.
4261 * nat/mips-linux-watch.c: Likewise.
4262 * nios2-linux-tdep.c: Likewise.
4263 * nios2-tdep.c: Likewise.
4264 * objc-lang.c: Likewise.
4265 * objfiles.c: Likewise.
4266 * obsd-nat.c: Likewise.
4267 * opencl-lang.c: Likewise.
4268 * osabi.c: Likewise.
4269 * parse.c: Likewise.
4270 * ppc-linux-nat.c: Likewise.
4271 * ppc-sysv-tdep.c: Likewise.
4272 * ppcfbsd-nat.c: Likewise.
4273 * ppcfbsd-tdep.c: Likewise.
4274 * ppcnbsd-nat.c: Likewise.
4275 * ppcnbsd-tdep.c: Likewise.
4276 * ppcobsd-nat.c: Likewise.
4277 * ppcobsd-tdep.c: Likewise.
4278 * printcmd.c: Likewise.
4279 * procfs.c: Likewise.
4280 * prologue-value.c: Likewise.
4281 * psymtab.c: Likewise.
4282 * python/py-lazy-string.c: Likewise.
4283 * python/py-value.c: Likewise.
4284 * regcache.c: Likewise.
4285 * reggroups.c: Likewise.
4286 * registry.c: Likewise.
4287 * remote-sim.c: Likewise.
4288 * remote.c: Likewise.
4289 * rs6000-aix-tdep.c: Likewise.
4290 * rs6000-tdep.c: Likewise.
4291 * s390-linux-tdep.c: Likewise.
4292 * score-tdep.c: Likewise.
4293 * ser-base.c: Likewise.
4294 * ser-mingw.c: Likewise.
4295 * sh-tdep.c: Likewise.
4296 * sh64-tdep.c: Likewise.
4297 * solib-darwin.c: Likewise.
4298 * solib-spu.c: Likewise.
4299 * solib-svr4.c: Likewise.
4300 * source.c: Likewise.
4301 * sparc-nat.c: Likewise.
4302 * sparc-sol2-tdep.c: Likewise.
4303 * sparc-tdep.c: Likewise.
4304 * sparc64-sol2-tdep.c: Likewise.
4305 * sparc64-tdep.c: Likewise.
4306 * sparc64fbsd-tdep.c: Likewise.
4307 * sparc64nbsd-tdep.c: Likewise.
4308 * sparc64obsd-tdep.c: Likewise.
4309 * sparcnbsd-tdep.c: Likewise.
4310 * sparcobsd-tdep.c: Likewise.
4311 * spu-multiarch.c: Likewise.
4312 * spu-tdep.c: Likewise.
4313 * stabsread.c: Likewise.
4314 * stack.c: Likewise.
4315 * symfile.c: Likewise.
4316 * symtab.c: Likewise.
4317 * target-descriptions.c: Likewise.
4318 * target-memory.c: Likewise.
4319 * target.c: Likewise.
4320 * tic6x-linux-tdep.c: Likewise.
4321 * tic6x-tdep.c: Likewise.
4322 * tilegx-linux-nat.c: Likewise.
4323 * tilegx-tdep.c: Likewise.
4325 * tramp-frame.c: Likewise.
4326 * tui/tui-out.c: Likewise.
4327 * tui/tui-winsource.c: Likewise.
4328 * ui-out.c: Likewise.
4329 * user-regs.c: Likewise.
4330 * utils.c: Likewise.
4331 * v850-tdep.c: Likewise.
4332 * valops.c: Likewise.
4333 * value.c: Likewise.
4334 * varobj.c: Likewise.
4335 * vax-nat.c: Likewise.
4336 * xml-syscall.c: Likewise.
4337 * xml-tdesc.c: Likewise.
4338 * xstormy16-tdep.c: Likewise.
4339 * xtensa-linux-nat.c: Likewise.
4340 * xtensa-tdep.c: Likewise.
4342 2014-08-07 Gary Benson <gbenson@redhat.com>
4344 * common/common-defs.h: Include common-utils.h.
4345 * defs.h: Do not include common-utils.h.
4346 * common/gdb_assert.h: Likewise.
4347 * darwin-nat.h: Likewise.
4348 * nat/linux-btrace.c: Likewise.
4349 * target/waitstatus.h: Likewise.
4351 2014-08-07 Gary Benson <gbenson@redhat.com>
4353 * common/common-defs.h: Include ptid.h.
4354 * defs.h: Do not include ptid.h.
4355 * inferior.h: Likewise.
4356 * infrun.h: Likewise.
4357 * nat/linux-btrace.h: Likewise.
4358 * nat/linux-osdata.h: Likewise.
4359 * target/waitstatus.h: Likewise.
4361 2014-08-07 Gary Benson <gbenson@redhat.com>
4363 * common/common-defs.h: Include gdb_locale.h.
4364 * defs.h: Do not include gdb_locale.h.
4366 2014-08-07 Gary Benson <gbenson@redhat.com>
4368 * common/common-defs.h: Include gdb/signals.h.
4369 * defs.h: Do not include gdb/signals.h.
4371 2014-08-07 Gary Benson <gbenson@redhat.com>
4373 * common/common-defs.h: Include pathmax.h.
4374 * defs.h: Do not include pathmax.h.
4376 2014-08-07 Gary Benson <gbenson@redhat.com>
4378 * common/common-defs.h: Include libiberty.h.
4379 * defs.h: Do not include libiberty.h.
4380 * common/queue.h: Likewise.
4381 * cp-name-parser.y: Likewise.
4382 * mi/mi-cmd-catch.c: Likewise.
4383 * python/python.c: Likewise.
4385 2014-08-07 Gary Benson <gbenson@redhat.com>
4387 * common/common-defs.h: Include ansidecl.h.
4388 * defs.h: Do not include ansidecl.h.
4389 * common/buffer.h: Likewise.
4390 * common/common-utils.h: Likewise.
4392 2014-08-07 Gary Benson <gbenson@redhat.com>
4394 * common/common-defs.h: Include stddef.h.
4395 * defs.h: Do not include stddef.h.
4396 * common/common-utils.h: Likewise.
4397 * amd64fbsd-nat.c: Likewise.
4398 * bcache.c: Likewise.
4399 * charset.c: Likewise.
4400 * common/buffer.h: Likewise.
4401 * common/vec.h: Likewise.
4402 * i386bsd-nat.c: Likewise.
4403 * nat/linux-btrace.h: Likewise.
4404 * ppcfbsd-nat.c: Likewise.
4405 * ppcnbsd-tdep.h: Likewise.
4406 * ppcobsd-nat.c: Likewise.
4407 * ppcobsd-tdep.h: Likewise.
4408 * python/py-gdb-readline.c: Likewise.
4410 2014-08-07 Gary Benson <gbenson@redhat.com>
4412 * common/common-defs.h: Include stdarg.h.
4413 * defs.h: Do not include stdarg.h.
4414 * ada-lang.c: Likewise.
4415 * common/common-utils.h: Likewise.
4416 * guile/scm-string.c: Likewise.
4417 * guile/scm-utils.c: Likewise.
4418 * m32c-tdep.c: Likewise.
4420 2014-08-07 Gary Benson <gbenson@redhat.com>
4422 * common/common-defs.h: Include stdlib.h.
4423 * defs.h: Do not include stdlib.h.
4424 * addrmap.c: Likewise.
4425 * bcache.c: Likewise.
4426 * common/buffer.c: Likewise.
4427 * common/common-utils.c: Likewise.
4428 * cp-name-parser.y: Likewise.
4429 * go32-nat.c: Likewise.
4430 * mn10300-linux-tdep.c: Likewise.
4431 * nat/linux-osdata.c: Likewise.
4432 * tui/tui.c: Likewise.
4433 * windows-nat.c: Likewise.
4435 2014-08-07 Gary Benson <gbenson@redhat.com>
4437 * common/common-defs.h: Include stdio.h.
4438 * defs.h: Do not include stdio.h.
4439 * ada-lang.c: Likewise.
4440 * common/buffer.c: Likewise.
4441 * common/common-utils.c: Likewise.
4442 * cp-name-parser.y: Likewise.
4443 * gnu-nat.c: Likewise.
4444 * go32-nat.c: Likewise.
4445 * i386gnu-nat.c: Likewise.
4446 * proc-api.c: Likewise.
4447 * proc-events.c: Likewise.
4448 * proc-flags.c: Likewise.
4449 * proc-why.c: Likewise.
4450 * python/python-internal.h: Likewise.
4451 * target-memory.c: Likewise.
4452 * tui/tui-io.c: Likewise.
4453 * tui/tui.c: Likewise.
4455 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4457 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4458 (scan_dyntag_auxv): Same.
4460 2014-08-06 Yao Qi <yao@codesourcery.com>
4462 * amd64-linux-nat.c: Remove duplicated include
4464 * i386-linux-nat.c: Likewise.
4466 2014-08-06 Yao Qi <yao@codesourcery.com>
4468 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4469 operand" with "Special opcode" in comments.
4471 2014-08-05 Gary Benson <gbenson@redhat.com>
4473 * interps.c (initialize_interps): Remove prototype.
4474 (interpreter_initialized): Remove static global.
4475 (interp_add): Do not call initialize_interps.
4476 (initialize_interps): Remove function.
4478 2014-08-05 Gary Benson <gbenson@redhat.com>
4480 * utils.c (vwarning): Remove spurious va_end.
4482 2014-08-05 Alan Modra <amodra@gmail.com>
4484 * charset.c (convert_between_encodings): Cast result of obstack_base.
4485 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4486 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4487 (read_unwind_info): Use size_t for some locals.
4488 * jit.c (finalize_symtab): Likewise.
4489 * utils.c (hashtab_obstack_allocate): Likewise.
4490 * symmisc.c (print_objfile_statistics): Update format strings.
4492 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4494 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4495 (Changes in GDB 7.8): ... here.
4497 2014-08-04 Tom Tromey <tromey@redhat.com>
4499 * target.c (set_targetdebug): New function.
4500 (initialize_targets): Pass set_targetdebug when creating "set
4503 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4505 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4506 if detecting a variable-sized field that is not the last field.
4507 Fix struct type length computation.
4509 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4511 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4514 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4516 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4517 Remove "+ 8" offset in computation of CHAIN_VMA.
4519 2014-07-31 Doug Evans <dje@google.com>
4521 * inflow.c (child_terminal_inferior): Add comment.
4522 (child_terminal_ours_for_output): Add comment.
4523 (child_terminal_ours): Add comment.
4524 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4525 (linux_nat_terminal_ours): Add comment.
4527 2014-07-31 Gary Benson <gbenson@redhat.com>
4529 * common/btrace-common.h: Do not include defs.h or server.h.
4530 * nat/mips-linux-watch.h: Likewise.
4531 * gdb-dlfcn.h: Do not include defs.h.
4532 * tracefile.h: Likewise.
4534 2014-07-30 Roland McGrath <mcgrathr@google.com>
4536 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4538 2014-07-30 Tom Tromey <tromey@redhat.com>
4540 * bsd-kvm.c (bsd_kvm_open): Constify.
4541 * corelow.c (core_open): Constify.
4542 * ctf.c (ctf_open): Constify.
4543 * dbug-rom.c (dbug_open): Constify.
4544 * exec.c (exec_open): Constify.
4545 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4546 * microblaze-rom.c (picobug_open): Constify.
4547 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4549 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4550 * record-btrace.c (record_btrace_open): Constify.
4551 * record-full.c (record_full_core_open_1, record_full_open_1)
4552 (record_full_open): Constify.
4553 * remote-m32r-sdi.c (m32r_open): Constify.
4554 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4555 (rockhopper_open, lsi_open): Constify.
4556 * remote-sim.c (gdbsim_open): Constify.
4557 * remote.c (remote_open, extended_remote_open, remote_open_1):
4559 * target.h (struct target_ops) <to_open>: Make "arg" const.
4560 * tracefile-tfile.c (tfile_open): Constify.
4562 2014-07-30 Tom Tromey <tromey@redhat.com>
4564 * breakpoint.c (map_breakpoint_numbers): Update.
4565 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4566 (get_number_const): New function.
4567 (get_number): Rewrite using get_number_const.
4568 (init_number_or_range): Make "string" const.
4569 (number_is_in_list): Make "list" const.
4570 * cli/cli-utils.h (get_number_const): Declare.
4571 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4572 (init_number_or_range, number_is_in_list): Update.
4573 * printcmd.c (map_display_numbers): Update.
4574 * value.c (value_from_history_ref): Constify.
4575 * value.h (value_from_history_ref): Update.
4577 2014-07-30 Tom Tromey <tromey@redhat.com>
4579 * corefile.c (hook_type, call_extra_exec_file_hooks)
4580 (specify_exec_file_hook): Constify.
4581 * exec.c (exec_file_attach): Make "filename" const.
4582 * gdbcore.h (deprecated_exec_file_display_hook)
4583 (specify_exec_file_hook, exec_file_attach): Constify.
4584 * main.c (captured_main): Use catch_command_errors_const.
4586 2014-07-30 Tom Tromey <tromey@redhat.com>
4588 * target.c (open_target): New function.
4589 (add_target_with_completer, add_deprecated_target_alias): Use
4590 set_cmd_sfunc, set_cmd_context.
4591 (debug_to_open): Remove.
4592 (setup_target_debug): Update.
4594 2014-07-30 Yao Qi <yao@codesourcery.com>
4596 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4598 * parse.c (exp_iterate): Update comments.
4600 2014-07-30 Gary Benson <gbenson@redhat.com>
4602 * common/common-defs.h: New file.
4603 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4604 * defs.h: Include common-defs.h.
4605 Do not include config.h or build-gnulib/config.h.
4607 2014-07-30 Gary Benson <gbenson@redhat.com>
4609 * common/common-utils.h: Do not include config.h.
4610 * nat/linux-btrace.h: Likewise.
4612 2014-07-30 Gary Benson <gbenson@redhat.com>
4614 * btrace.c: Include defs.h.
4615 * common/ptid.c: Include defs.h or server.h as appropriate.
4616 * nat/mips-linux-watch.c: Likewise.
4618 2014-07-29 Tom Tromey <tromey@redhat.com>
4620 * target.c (target_is_pushed): Simplify.
4622 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4626 2014-07-29 Yao Qi <yao@codesourcery.com>
4629 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4631 2014-07-28 Doug Evans <xdje42@gmail.com>
4634 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4635 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4638 2014-07-28 Will Newton <will.newton@linaro.org>
4640 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4641 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4642 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4643 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4644 (THUMB2_EABI_SYSCALL): Likewise.
4645 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4647 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4648 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4650 2014-07-27 Doug Evans <xdje42@gmail.com>
4652 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4654 2014-07-27 Doug Evans <xdje42@gmail.com>
4656 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4658 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4659 Doug Evans <xdje42@gmail.com>
4662 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4663 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4664 * configure.ac: Try to use guild to compile an scm file, if it fails
4665 then disable guile support.
4666 * configure: Regenerate.
4667 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4669 (GUILE_COMPILED_FILES): New variable.
4670 (GUILE_FILES) Update.
4671 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4672 (stamp-guile): Compile scm files.
4673 * guile/guile.c (boot_guile_support): New function.
4674 (standard_throw_args_p): New function.
4675 (print_standard_throw_error, print_throw_error): New functions.
4676 (handle_boot_error): New function.
4677 (initialize_scheme_side): Rewrite to call boot_guile_support.
4678 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4679 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4681 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4682 Doug Evans <xdje42@gmail.com>
4685 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4686 * guile/lib/gdb/support.scm: New file.
4687 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4688 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4690 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4692 (%assert-type): Ditto, and renamed to assert-type.
4693 (%exception-print-style): Delete.
4695 2014-07-26 Doug Evans <xdje42@gmail.com>
4698 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4699 * configure: Regenerate.
4700 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4702 (PYTHON_FILES): New variable.
4703 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4704 (GUILE_FILES): New variable.
4705 (stamp-python, install-python, uninstall-python): Handle empty
4707 (stamp-guile, install-guile, uninstall-guile): Ditto.
4709 2014-07-26 Doug Evans <xdje42@gmail.com>
4712 * guile/lib/gdb.scm (pretty-printers): Export.
4713 (set-pretty-printers!): Export.
4714 * guile/lib/gdb/printing.scm (gdb module): Update.
4715 (prepend-pretty-printer!, append-pretty-printer!): Update.
4716 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4717 (pretty_printer_list_var): Delete.
4718 (pretty_printer_list): New static global.
4719 (gdbscm_pretty_printers): New function.
4720 (gdbscm_set_pretty_printers_x): New function.
4721 (ppscm_find_pretty_printer_from_gdb): Update.
4722 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4723 (gdbscm_initialize_pretty_printers): Update.
4725 2014-07-26 Doug Evans <xdje42@gmail.com>
4728 * configure.ac: Add check for header gc/gc.h.
4729 Add check for function setenv.
4730 * configure: Regenerate.
4731 * config.in: Regenerate.
4732 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4734 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4736 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4737 variation in gdbarch matching.
4739 2014-07-25 Tom Tromey <tromey@redhat.com>
4741 * exec.c (using_exec_ops): Remove.
4742 (exec_close_1): Update. Remove extraneous block, reindent.
4743 (add_target_sections): Use target_is_pushed.
4745 2014-07-25 Pedro Alves <palves@redhat.com>
4747 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4748 * monitor.c (monitor_create_inferior): Likewise.
4749 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4750 * remote-sim.c (gdbsim_create_inferior): Likewise.
4751 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4752 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4753 * windows-nat.c (do_initial_windows_stuff): Likewise.
4755 2014-07-25 Pedro Alves <palves@redhat.com>
4757 * NEWS: Mention signal passing and "signal" command changes.
4758 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4760 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4762 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4763 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4764 (jump_command): Adjust clear_proceed_status call.
4765 (signal_command): Warn if other thread that are resumed have
4766 signals that will be delivered. Adjust clear_proceed_status call.
4767 (until_next_command, finish_command)
4768 (proceed_after_attach_callback, attach_command_post_wait)
4769 (attach_command): Adjust clear_proceed_status call.
4770 * infrun.c (proceed_after_vfork_done): Likewise.
4771 (proceed_after_attach_callback): Adjust comment.
4772 (clear_proceed_status_thread): Clear stop_signal if not in pass
4774 (clear_proceed_status_callback): Delete.
4775 (clear_proceed_status): New 'step' parameter. Only clear the
4776 proceed status of threads the command being prepared is about to
4778 (proceed): If passed in an explicit signal, override stop_signal
4779 with it. Don't pass the last stop signal to the thread we're
4781 (init_wait_for_inferior): Adjust clear_proceed_status call.
4782 (switch_back_to_stepped_thread): Clear the signal if it should not
4784 * infrun.h (clear_proceed_status): New 'step' parameter.
4785 (user_visible_resume_ptid): Add comment.
4786 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4787 signal is in pass state.
4788 * remote.c (append_pending_thread_resumptions): Likewise.
4789 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4791 2014-07-25 Tom Tromey <tromey@redhat.com>
4793 * target.h (target_stopped_data_address)
4794 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4797 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4799 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4801 (avr_pointer_to_address): Likewise.
4803 2014-07-24 Tom Tromey <tromey@redhat.com>
4805 * monitor.c (compile_pattern): Update.
4806 * target.h (struct target_ops) <to_shortname, to_longname,
4809 2014-07-24 Tom Tromey <tromey@redhat.com>
4811 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4812 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4813 (add_info_alias, add_com): Make "doc" const.
4814 (print_doc_line): Make "str" const.
4815 (delete_cmd): Update.
4816 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4817 (print_doc_line): Update.
4818 * cli/cli-script.c (document_command): Update.
4819 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4820 (add_com, add_info, add_info_alias): Update.
4821 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4822 * python/py-cmd.c (cmdpy_destroyer): Update.
4824 2014-07-24 Tom Tromey <tromey@redhat.com>
4826 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4827 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4828 (help_cmd_list): Constify.
4829 (lookup_cmd): Update.
4830 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4832 (help_cmd_list, apropos_cmd): Update.
4833 * cli/cli-script.c (show_user): Update.
4834 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4835 * cli/cli-setshow.h (cmd_show_list): Update.
4836 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4837 (cmd_show_list): Update.
4838 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4839 * python/py-cmd.c (cmdpy_destroyer): Update.
4841 2014-07-24 Tom Tromey <tromey@redhat.com>
4843 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4844 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4846 * command.h (deprecate_cmd): Update.
4847 * maint.c (maintenance_do_deprecate): Add casts.
4849 2014-07-24 Tom Tromey <tromey@redhat.com>
4851 * cli/cli-decode.c (help_cmd): Make parameter "const".
4852 * cli/cli-decode.h (help_cmd): Update.
4854 2014-07-24 Tom Tromey <tromey@redhat.com>
4856 * stack.c (up_silently_base, down_silently_base): Make argument
4859 2014-07-24 Tom Tromey <tromey@redhat.com>
4861 * solib.c (solib_add): Make "pattern" const.
4862 * solib.h (solib_add): Update.
4864 2014-07-24 Tom Tromey <tromey@redhat.com>
4866 * remote.c (remote_serial_open, print_packet, putpkt)
4867 (putpkt_binary): Constify.
4868 * remote.h (putpkt): Update.
4870 2014-07-24 Tom Tromey <tromey@redhat.com>
4872 * monitor.c (monitor_open): Make "args" const.
4873 * monitor.h (monitor_open): Update.
4875 2014-07-24 Tom Tromey <tromey@redhat.com>
4877 * maint.c (match_bfd_flags): Make "string" const.
4878 (print_bfd_section_info): Remove casts.
4879 (print_objfile_section_info): Make "string" const.
4881 2014-07-24 Tom Tromey <tromey@redhat.com>
4883 * inf-child.c (inf_child_open_target): Make "arg" const.
4884 * inf-child.h (inf_child_open_target): Update.
4886 2014-07-24 Tom Tromey <tromey@redhat.com>
4888 * environ.c (unset_in_environ): Make "var" const.
4889 * environ.h (unset_in_environ): Update.
4891 2014-07-24 Tom Tromey <tromey@redhat.com>
4893 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4895 (scan_filename_with_cleanup): Likewise.
4896 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4897 Make arguments const.
4898 (restore_command): Update.
4900 2014-07-24 Pedro Alves <palves@redhat.com>
4902 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4904 2014-07-24 Tom Tromey <tromey@redhat.com>
4905 Gary Benson <gbenson@redhat.com>
4907 * nat/linux-ptrace.c (additional_flags): New global.
4908 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4909 additional_flags; don't check GDBSERVER.
4910 (linux_ptrace_set_additional_flags): New function.
4911 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4913 * linux-nat.c (_initialize_linux_nat): Call
4914 linux_ptrace_set_additional_flags.
4916 2014-07-24 Tom Tromey <tromey@redhat.com>
4918 * make-target-delegates (munge_type, write_debugmethod): New
4920 (debug_names): New global.
4921 ($TARGET_DEBUG_PRINTER): New global.
4922 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4924 Write debug methods. Generate init_debug_target.
4925 * target-debug.h: New file.
4926 * target-delegates.c: Rebuild.
4927 * target.c: Include target-debug.h.
4928 (debug_target): Hoist definition.
4929 (target_kill, target_get_section_table, target_memory_map)
4930 (target_flash_erase, target_flash_done, target_detach)
4931 (target_disconnect, target_wait, target_resume)
4932 (target_pass_signals, target_program_signals, target_follow_fork)
4933 (target_mourn_inferior, target_search_memory)
4934 (target_thread_address_space, target_close)
4935 (target_find_new_threads, target_core_of_thread)
4936 (target_verify_memory, target_insert_mask_watchpoint)
4937 (target_remove_mask_watchpoint): Remove targetdebug code.
4938 (debug_to_post_attach, debug_to_prepare_to_store)
4939 (debug_to_files_info, debug_to_insert_breakpoint)
4940 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4941 (debug_to_region_ok_for_hw_watchpoint)
4942 (debug_to_can_accel_watchpoint_condition)
4943 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4944 (debug_to_watchpoint_addr_within_range)
4945 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4946 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4947 (debug_to_terminal_init, debug_to_terminal_inferior)
4948 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4949 (debug_to_terminal_save_ours, debug_to_terminal_info)
4950 (debug_to_load, debug_to_post_startup_inferior)
4951 (debug_to_insert_fork_catchpoint)
4952 (debug_to_remove_fork_catchpoint)
4953 (debug_to_insert_vfork_catchpoint)
4954 (debug_to_remove_vfork_catchpoint)
4955 (debug_to_insert_exec_catchpoint)
4956 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4957 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4958 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4959 (setup_target_debug): Call init_debug_target.
4960 * target.h (TARGET_DEBUG_PRINTER): New macro.
4961 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4962 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4964 2014-07-24 Gary Benson <gbenson@redhat.com>
4966 * exceptions.h (throw_vfatal): Renamed to...
4967 (throw_vquit): New declaration.
4968 (throw_quit): Likewise.
4969 * exceptions.c (throw_vfatal): Renamed to...
4970 (throw_vquit): New function.
4971 (throw_quit): Likewise.
4972 (throw_error): Call throw_verror rather than throw_it.
4973 * utils.h (vfatal): Removed.
4975 * utils.c (vfatal): Removed.
4977 (internal_verror): Replaced call to fatal with call to throw_quit.
4978 (quit): Replaced calls to fatal with calls to throw_quit.
4980 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4982 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4985 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4987 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4988 less than zero in conditional expression.
4990 2014-07-23 Tom Tromey <tromey@redhat.com>
4992 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4993 ($INTRO_PART): Don't match whitespace.
4994 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4996 ($METHOD): Add $METHOD_TRAILER.
4998 (scan_target_h): New sub.
4999 Change main loop not to collect state.
5000 * target-delegates.c: Rebuild.
5002 2014-07-23 Gary Benson <gbenson@redhat.com>
5004 * cp-support.c (gdb_demangle): Fix build on systems without
5007 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5009 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5010 for reference entry value target data value.
5012 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5014 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5015 value_available_contents_eq.
5017 2014-07-22 Pedro Alves <palves@redhat.com>
5019 * value.c (allocate_optimized_out_value): Don't mark value as
5022 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5024 * MAINTAINERS (Write After Approval): Update my email address.
5026 2014-07-20 Doug Evans <dje@google.com>
5029 * remote.c (putpkt_binary): Add text to error message.
5031 2014-07-20 Yao Qi <yao@codesourcery.com>
5033 * eval.c: Remove "Chill" from comments.
5034 * gdbtypes.h: Likewise.
5035 * symtab.h: Likewise.
5037 2014-07-20 Yao Qi <yao@codesourcery.com>
5039 * std-operator.def: Update comments to TERNOP_SLICE.
5041 2014-07-20 Yao Qi <yao@codesourcery.com>
5043 * std-operator.def: Remove BINOP_RANGE.
5044 * breakpoint.c (watchpoint_exp_is_const): Update.
5045 * expprint.c (dump_subexp_body_standard): Likewise.
5046 * eval.c (init_array_element): Remove dead code.
5047 (evaluate_subexp_standard): Likewise.
5049 2014-07-20 Yao Qi <yao@codesourcery.com>
5051 * std-operator.def: Remove BINOP_IN.
5052 * breakpoint.c (watchpoint_exp_is_const): Update.
5053 * eval.c (evaluate_subexp_standard): Likewise.
5054 * expprint.c (dump_subexp_body_standard): Likewise.
5056 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5058 * microblaze-tdep.c (microblaze_register_names): Add
5059 the rshr and rslr register names.
5060 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5061 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5062 Use of tdesc_numbered_register. Use of
5063 microblaze_register_g_packet_guesses. Use of
5064 tdesc_use_registers. Use of set_gdbarch_register_type.
5065 (microblaze_register_g_packet_guesses): New.
5066 * microblaze-tdep.h (microblaze_reg_num): Add
5067 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5068 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5069 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5070 * features/microblaze-core.xml: New file.
5071 * features/microblaze-stack-protect.xml: New file.
5072 * features/microblaze-with-stack-protect.c: New file.
5073 * features/microblaze-with-stack-protect.xml: New file.
5074 * features/microblaze.xml: New file.
5075 * features/microblaze.c: New file.
5076 * features/Makefile (microblaze-with-stack-protect): Add
5077 microblaze-with-stack-protect microblaze and microblaze-expedite.
5078 * regformats/microblaze-with-stack-protect.dat: New file.
5079 * regformats/microblaze.dat: New file.
5080 * doc/gdb.texinfo (MicroBlaze Features): Added.
5082 2014-07-18 Tom Tromey <tromey@redhat.com>
5084 * exec.c (exec_ops): Now static.
5085 * exec.h (exec_ops): Don't declare.
5087 2014-07-18 Tom Tromey <tromey@redhat.com>
5089 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5090 to find_target_beneath.
5091 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5092 find_target_beneath.
5093 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5095 2014-07-18 Tom Tromey <tromey@redhat.com>
5098 * utils.c (quit): Use target_supports_terminal_ours.
5099 * target.h (target_supports_terminal_ours): Declare.
5100 * target.c (target_supports_delete_record): Don't check
5101 to_delete_record against NULL.
5102 (target_supports_terminal_ours): New function.
5104 2014-07-18 Tom Tromey <tromey@redhat.com>
5107 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5108 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5109 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5110 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5111 * windows-nat.c (windows_xfer_partial): Always delegate.
5112 * record-btrace.c (record_btrace_xfer_partial): Simplify
5114 (record_btrace_fetch_registers, record_btrace_store_registers)
5115 (record_btrace_prepare_to_store, record_btrace_resume)
5116 (record_btrace_wait, record_btrace_find_new_threads)
5117 (record_btrace_thread_alive): Likewise.
5118 * procfs.c (procfs_xfer_partial): Always delegate.
5119 * corelow.c (core_xfer_partial): Always delegate.
5120 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5122 2014-07-18 Tom Tromey <tromey@redhat.com>
5124 * exec.c (exec_make_note_section): Move earlier.
5126 2014-07-17 Doug Evans <dje@google.com>
5129 * maint.c (count_symtabs_and_blocks): Handle NULL
5130 current_program_space.
5131 (report_command_stats): Check global enabled flag in addition to
5132 recorded enabled flag.
5133 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5135 2014-07-16 Pedro Alves <palves@redhat.com>
5137 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5139 2014-07-16 Tom Tromey <tromey@redhat.com>
5141 * target.h (struct target_ops) <to_delete_record>: Reformat
5144 2014-07-16 Tom Tromey <tromey@redhat.com>
5146 * target-delegates.c: Rebuild.
5148 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5150 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5151 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5152 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5153 (avr_pointer_to_address): Likewise.
5154 (avr_address_class_type_flags): New function.
5155 (avr_address_class_type_flags_to_name): Likewise.
5156 (avr_address_class_name_to_type_flags): Likewise.
5157 (avr_gdbarch_init): Set address_class_type_flags,
5158 address_class_type_flags_to_name and
5159 address_class_name_to_type_flags.
5161 2014-07-15 Pedro Alves <palves@redhat.com>
5163 * linux-nat.c (kill_callback): Save errno and work with saved
5166 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5168 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5170 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5172 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5173 breakpoint support correctly.
5175 2014-07-14 Pedro Alves <palves@redhat.com>
5177 * utils.c (prompt_for_continue): Call target_terminal_ours.
5179 2014-07-14 Pedro Alves <palves@redhat.com>
5181 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5182 catch_errors. Don't re-enable stdin or notify observers where,
5184 (fetch_inferior_event_wrapper): Delete.
5186 2014-07-14 Pedro Alves <palves@redhat.com>
5189 * top.c: Include "inf-loop.h".
5190 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5192 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5194 (gdb_readline_wrapper): Store whether the target is async, and
5197 2014-07-14 Pedro Alves <palves@redhat.com>
5200 * top.c (gdb_readline_wrapper_line): Tweak comment.
5201 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5202 the input handler callback.
5204 2014-07-14 Pedro Alves <palves@redhat.com>
5207 * main.c: Include event-top.h.
5208 (handle_command_errors): New function.
5209 (catch_command_errors, catch_command_errors_const): Use it.
5211 2014-07-14 Pedro Alves <palves@redhat.com>
5213 * exceptions.c (catch_command_errors, catch_command_errors_const):
5215 * exceptions.h (catch_command_errors_ftype)
5216 (catch_command_errors_const_ftype): Moved to main.c.
5217 (catch_command_errors, catch_command_errors_const): Delete
5219 * main.c (catch_command_errors_ftype)
5220 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5221 (catch_command_errors, catch_command_errors_const)): Moved here
5222 from exceptions.c and make static.
5224 2014-07-14 Pedro Alves <palves@redhat.com>
5226 * exceptions.c (print_any_exception): Delete.
5227 (catch_exceptions_with_msg): Use exception_print instead of
5228 print_any_exception.
5229 (catch_errors): Use exception_fprintf instead of
5230 print_any_exception.
5231 (catch_command_errors, catch_command_errors_const): Use
5232 exception_print instead of print_any_exception.
5234 2014-07-14 Pedro Alves <palves@redhat.com>
5236 * infcall.c (run_inferior_call): Set 'sync_execution' while
5237 running the inferior call.
5239 2014-07-14 Pedro Alves <palves@redhat.com>
5241 * value.c (value_contents_equal): Delete function.
5242 * value.h (value_contents_equal): Delete declaration.
5244 2014-07-14 Tom Tromey <tromey@redhat.com>
5247 * gdbtypes.c (is_dynamic_type_internal): New function, from
5249 (is_dynamic_type): Rewrite.
5250 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5251 (resolve_dynamic_struct): Likewise.
5252 (resolve_dynamic_type_internal): New function, from
5253 resolve_dynamic_type.
5254 (resolve_dynamic_type): Rewrite.
5256 2014-07-14 Tom Tromey <tromey@redhat.com>
5258 * target.c (target_require_runnable): Also check record_stratum.
5261 2014-07-11 Yao Qi <yao@codesourcery.com>
5263 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5264 thumb_instruction_restores_sp return true.
5266 2014-07-11 Yao Qi <yao@codesourcery.com>
5268 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5269 (thumb_in_function_epilogue_p): Call
5270 thumb_instruction_restores_sp.
5272 2014-07-11 Yao Qi <yao@codesourcery.com>
5274 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5276 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5278 2014-07-11 Gary Benson <gbenson@redhat.com>
5280 * amd64-linux-nat.c (gdbcore.h): Remove include.
5281 (regset.h): Likewise.
5282 (nat/linux-btrace.h): Likewise.
5283 (btrace.h): Likewise.
5284 (gdb_assert.h): Likewise.
5285 (string.h): Likewise.
5286 (sys/uio.h): Likewise.
5287 (sys/debugreg.h): Likewise.
5288 (sys/syscall.h): Likewise.
5289 (sys/procfs.h): Likewise.
5290 (sys/user.h): Likewise.
5291 (asm/ptrace.h): Likewise.
5292 (i386-nat.h): Likewise.
5293 * i386-linux-nat.c (i386-nat.h): Likewise.
5294 (regset.h): Likewise.
5295 (target.h): Likewise.
5296 (linux-nat.h): Likewise.
5297 (nat/linux-btrace.h): Likewise.
5298 (btrace.h): Likewise.
5299 (gdb_assert.h): Likewise.
5300 (string.h): Likewise.
5301 (sys/uio.h): Likewise.
5302 (sys/user.h): Likewise.
5303 (sys/procfs.h): Likewise.
5304 (sys/reg.h): Likewise.
5305 (sys/debugreg.h): Likewise.
5306 (ORIG_EAX): Remove definition.
5308 2014-07-11 Gary Benson <gbenson@redhat.com>
5310 * i386-linux-nat.h: New file.
5311 * x86-linux-nat.h: Likewise.
5312 * x86-linux-nat.c: Likewise.
5313 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5314 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5315 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5316 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5317 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5318 (PTRACE_SETREGSET): Likewise.
5319 (arch_lwp_info): Now in x86-linux-nat.c.
5320 (have_ptrace_getregset): Now in x86-linux-nat.h.
5321 (x86_linux_dr_get): Now in x86-linux-nat.c.
5322 (x86_linux_dr_set): Likewise.
5323 (x86_linux_dr_get_addr): Likewise.
5324 (x86_linux_dr_get_control): Likewise.
5325 (x86_linux_dr_get_status): Likewise.
5326 (update_debug_registers_callback): Likewise.
5327 (x86_linux_dr_set_control): Likewise.
5328 (x86_linux_dr_set_addr): Likewise.
5329 (x86_linux_prepare_to_resume): Likewise.
5330 (x86_linux_new_thread): Likewise.
5331 (x86_linux_new_fork): Likewise.
5332 (x86_linux_get_thread_area): Likewise.
5333 (super_post_startup_inferior): Likewise.
5334 (x86_linux_child_post_startup_inferior): Likewise.
5335 (AMD64_LINUX_USER64_CS): Likewise.
5336 (AMD64_LINUX_X32_DS): Likewise.
5337 (x86_linux_read_description): Likewise.
5338 (x86_linux_enable_btrace): Likewise.
5339 (x86_linux_disable_btrace): Likewise.
5340 (x86_linux_teardown_btrace): Likewise.
5341 (x86_linux_read_btrace): Likewise.
5342 (x86_linux_create_target): Likewise.
5343 (x86_linux_add_target): Likewise.
5344 * i386-linux-nat.c (x86-linux-nat.h): New include.
5345 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5346 (PTRACE_SETREGSET): Likewise.
5347 (arch_lwp_info): Now in x86-linux-nat.c.
5348 (have_ptrace_getregset): Now in x86-linux-nat.h.
5349 (x86_linux_dr_get): Now in x86-linux-nat.c.
5350 (x86_linux_dr_set): Likewise.
5351 (x86_linux_dr_get_addr): Likewise.
5352 (x86_linux_dr_get_control): Likewise.
5353 (x86_linux_dr_get_status): Likewise.
5354 (update_debug_registers_callback): Likewise.
5355 (x86_linux_dr_set_control): Likewise.
5356 (x86_linux_dr_set_addr): Likewise.
5357 (x86_linux_prepare_to_resume): Likewise.
5358 (x86_linux_new_thread): Likewise.
5359 (x86_linux_new_fork): Likewise.
5360 (x86_linux_get_thread_area): Likewise.
5361 (super_post_startup_inferior): Likewise.
5362 (x86_linux_child_post_startup_inferior): Likewise.
5363 (AMD64_LINUX_USER64_CS): Likewise.
5364 (AMD64_LINUX_X32_DS): Likewise.
5365 (x86_linux_read_description): Likewise.
5366 (x86_linux_enable_btrace): Likewise.
5367 (x86_linux_disable_btrace): Likewise.
5368 (x86_linux_teardown_btrace): Likewise.
5369 (x86_linux_read_btrace): Likewise.
5370 (x86_linux_create_target): Likewise.
5371 (x86_linux_add_target): Likewise.
5373 2014-07-11 Gary Benson <gbenson@redhat.com>
5375 * amd64-linux-nat.c: Comment and whitespace changes.
5376 * i386-linux-nat.c: Comment and whitespace changes.
5378 2014-07-11 Gary Benson <gbenson@redhat.com>
5380 * amd64-linux-nat.c (x86_linux_create_target): New function.
5381 (x86_linux_add_target): Likewise.
5382 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5383 * i386-linux-nat.c (x86_linux_create_target): New function.
5384 (x86_linux_add_target): Likewise.
5385 (_initialize_i386_linux_nat): Delegate to the above new functions.
5387 2014-07-11 Gary Benson <gbenson@redhat.com>
5389 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5390 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5391 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5392 (ps_get_thread_area): Delegate to the above.
5394 2014-07-11 Gary Benson <gbenson@redhat.com>
5396 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5397 x86_linux_read_description. All uses updated. amd64-specific
5398 code conditionalized. Conditionalized i386-specific code added.
5399 Redundant cast removed.
5400 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5401 x86_linux_read_description. All uses updated. i386-specific
5402 code conditionalized. Conditionalized amd64-specific code added.
5403 One sizeof replaced with the actual type it is describing.
5405 2014-07-11 Gary Benson <gbenson@redhat.com>
5407 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5408 x86_linux_dr_get. All uses updated.
5409 (amd64_linux_dr_set): Renamed to
5410 x86_linux_dr_set. All uses updated.
5411 (amd64_linux_dr_get_addr): Renamed to
5412 x86_linux_dr_get_addr. All uses updated.
5413 (amd64_linux_dr_get_control): Renamed to
5414 x86_linux_dr_get_control. All uses updated.
5415 (amd64_linux_dr_get_status): Renamed to
5416 x86_linux_dr_get_status. All uses updated.
5417 (amd64_linux_dr_set_control): Renamed to
5418 x86_linux_dr_set_control. All uses updated.
5419 (amd64_linux_dr_set_addr): Renamed to
5420 x86_linux_dr_set_addr. All uses updated.
5421 (amd64_linux_prepare_to_resume): Renamed to
5422 x86_linux_prepare_to_resume. All uses updated.
5423 (amd64_linux_new_thread): Renamed to
5424 x86_linux_new_thread. All uses updated.
5425 (amd64_linux_new_fork): Renamed to
5426 x86_linux_new_fork. All uses updated.
5427 (amd64_linux_child_post_startup_inferior): Renamed to
5428 x86_linux_child_post_startup_inferior. All uses updated.
5429 (amd64_linux_enable_btrace): Renamed to
5430 x86_linux_enable_btrace. All uses updated.
5431 (amd64_linux_disable_btrace): Renamed to
5432 x86_linux_disable_btrace. All uses updated.
5433 (amd64_linux_teardown_btrace): Renamed to
5434 x86_linux_teardown_btrace. All uses updated.
5435 (amd64_linux_read_btrace): Renamed to
5436 x86_linux_read_btrace. All uses updated.
5437 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5438 x86_linux_dr_get. All uses updated.
5439 (i386_linux_dr_set): Renamed to
5440 x86_linux_dr_set. All uses updated.
5441 (i386_linux_dr_get_addr): Renamed to
5442 x86_linux_dr_get_addr. All uses updated.
5443 (i386_linux_dr_get_control): Renamed to
5444 x86_linux_dr_get_control. All uses updated.
5445 (i386_linux_dr_get_status): Renamed to
5446 x86_linux_dr_get_status. All uses updated.
5447 (i386_linux_dr_set_control): Renamed to
5448 x86_linux_dr_set_control. All uses updated.
5449 (i386_linux_dr_set_addr): Renamed to
5450 x86_linux_dr_set_addr. All uses updated.
5451 (i386_linux_prepare_to_resume): Renamed to
5452 x86_linux_prepare_to_resume. All uses updated.
5453 (i386_linux_new_thread): Renamed to
5454 x86_linux_new_thread. All uses updated.
5455 (i386_linux_new_fork): Renamed to
5456 x86_linux_new_fork. All uses updated.
5457 (i386_linux_child_post_startup_inferior): Renamed to
5458 x86_linux_child_post_startup_inferior. All uses updated.
5459 (i386_linux_enable_btrace): Renamed to
5460 x86_linux_enable_btrace. All uses updated.
5461 (i386_linux_disable_btrace): Renamed to
5462 x86_linux_disable_btrace. All uses updated.
5463 (i386_linux_teardown_btrace): Renamed to
5464 x86_linux_teardown_btrace. All uses updated.
5465 (i386_linux_read_btrace): Renamed to
5466 x86_linux_read_btrace. All uses updated.
5468 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5470 * remote.c (extended_remote_post_attach): New function.
5471 (init_extended_remote_ops): Install it as to_post_attach method.
5473 2014-07-09 Pedro Alves <palves@redhat.com>
5475 * infcmd.c (attach_command_post_wait): Don't call
5476 target_terminal_inferior here.
5477 (attach_command): Call it here instead.
5479 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5481 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5483 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5484 from varobj.c, with additional checks.
5485 (c_varobj_ops): Fill in is_path_expr_parent field.
5486 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5487 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5489 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5491 (varobj_default_is_path_expr_parent): New function.
5492 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5493 (varobj_default_is_path_expr_parent): Declare new function.
5495 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5497 * infcmd.c (finish_backward): Turn internal error into normal error.
5499 2014-07-07 Pedro Alves <palves@redhat.com>
5502 * remote.c (async_handle_remote_sigint)
5503 (async_handle_remote_sigint_twice): Call
5504 gdb_call_async_signal_handler instead of
5505 mark_async_signal_handler.
5507 2014-07-07 Tom Tromey <tromey@redhat.com>
5509 * target-delegates.c: Rebuild.
5510 * target.c (target_info_record): Remove.
5511 * record.c (info_record_command): Unconditionally call
5513 * target.h (struct target_ops) <to_info_record>: Use
5514 TARGET_DEFAULT_IGNORE.
5515 (target_info_record): Remove.
5517 2014-07-07 Tom Tromey <tromey@redhat.com>
5519 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5520 TARGET_DEFAULT_NORETURN.
5521 * target.c (generic_tls_error): New function.
5522 (target_translate_tls_address): Don't search target stack.
5523 * target-delegates.c: Rebuild.
5524 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5526 * linux-thread-db.c (thread_db_get_thread_local_address):
5527 Unconditionally call beneath target.
5529 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5531 * cli/cli-logging.c (pop_output_files): Assign targerr to
5534 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5536 * MAINTAINERS (Write After Approval): Update my email address.
5538 2014-07-02 Gary Benson <gbenson@redhat.com>
5540 * proc-service.c (ps_xfer_memory): Update comment.
5541 (ps_pstop): Remove unused function.
5542 (ps_pcontinue): Likewise.
5543 (ps_lstop): Likewise.
5544 (ps_lcontinue): Likewise.
5545 (ps_lgetxregsize): Likewise.
5546 (ps_lgetxregs): Likewise.
5547 (ps_lsetxregs): Likewise.
5548 (ps_plog): Likewise.
5549 (ps_ptread): Likewise.
5550 (ps_ptwrite): Likewise.
5552 2014-07-01 Mark Wielaard <mjw@redhat.com>
5554 * dwarf2read.c (add_array_cv_type): New function.
5555 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5556 (read_tag_volatile_type): Likewise.
5558 2014-07-01 Tom Tromey <tromey@redhat.com>
5560 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5561 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5562 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5563 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5564 * command.h (cmd_cfunc_ftype): Move earlier.
5565 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5566 (add_com, add_info): Use cmd_cfunc_ftype.
5568 2014-06-30 Tom Tromey <tromey@redhat.com>
5570 * symtab.c (operator_chars): Make parameters and return type
5572 (file_matches): Make "files" const.
5573 (struct search_symbols_data) <files>: Now const.
5574 (search_symbols): Make "regexp" and "files" parameters const.
5576 (symtab_symbol_info): Remove cast.
5577 (rbreak_command): Update.
5578 * symtab.h (search_symbols): Update.
5580 2014-06-27 Yao Qi <yao@codesourcery.com>
5582 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5583 Change parameter type to 'struct thread_info *'. Caller
5585 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5587 * dummy-frame.c (struct dummy_frame_id): New.
5588 (dummy_frame_id_eq): New function.
5589 (struct dummy_frame) <id>: Change its type to 'struct
5591 (dummy_frame_push): Add parameter ptid and save it in
5593 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5595 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5597 (lookup_dummy_frame): Change parameter type to 'struct
5598 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5599 instead of frame_id_eq.
5600 (dummy_frame_pop): Add parameter ptid. Callers updated.
5601 Update comments. Compose dummy_frame_id and pass it to
5603 (dummy_frame_discard): Add parameter ptid.
5604 (dummy_frame_sniffer): Compose dummy_frame_id and call
5605 dummy_frame_id_eq instead of frame_id_eq.
5606 (fprint_dummy_frames): Print ptid.
5607 * dummy-frame.h: Remove comments.
5608 (dummy_frame_push): Add ptid in declaration.
5609 (dummy_frame_pop, dummy_frame_discard): Likewise.
5611 2014-06-26 Tom Tromey <tromey@redhat.com>
5613 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5614 * command.h (error_no_arg): Update.
5616 2014-06-26 Tom Tromey <tromey@redhat.com>
5618 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5619 (do_show_command): Make "arg" const.
5620 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5622 2014-06-26 Tom Tromey <tromey@redhat.com>
5624 * record-full.c (record_full_get_bookmark): Make "args" const.
5625 (record_full_goto_bookmark): Make "raw_bookmark" const.
5626 * record.c (record_goto): New function.
5627 (cmd_record_goto): Use it. Now static.
5628 * record.h (record_goto): Declare.
5629 (cmd_record_goto): Remove declaration.
5630 * target-delegates.c: Rebuild.
5631 * target.h (struct target_ops) <to_get_bookmark,
5632 to_goto_bookmark>: Make parameter const.
5634 2014-06-26 Tom Tromey <tromey@redhat.com>
5636 * defs.h (generic_load): Update.
5637 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5638 * monitor.c (monitor_load): Make "args" const.
5639 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5640 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5642 (mips_load): Make "file" const.
5643 * remote-sim.c (gdbsim_load): Make "args" const.
5644 * remote.c (remote_load): Make "name" const.
5645 * symfile.c (generic_load): Make "args" const.
5646 * target-delegates.c: Rebuild.
5647 * target.c (target_load): Make "arg" const.
5648 (debug_to_load): Make "args" const.
5649 * target.h (struct target_ops) <to_load>: Make parameter const.
5650 (target_load): Update.
5652 2014-06-26 Tom Tromey <tromey@redhat.com>
5655 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5656 (dwarf2_physname, read_partial_die)
5657 (guess_partial_die_structure_name, fixup_partial_die)
5658 (guess_full_die_structure_name, anonymous_struct_prefix)
5659 (dwarf2_name): Use per-BFD obstack.
5661 2014-06-26 Yao Qi <yao@codesourcery.com>
5663 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5664 dummyframe and this_id into inner block below.
5666 2014-06-26 Yao Qi <yao@codesourcery.com>
5668 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5669 with "signal_pass[0]" in the initialization of signal_pass.
5671 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5673 * record-btrace.c (record_btrace_generating_corefile)
5674 (record_btrace_prepare_to_generate_core)
5675 (record_btrace_done_generating_core): New.
5676 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5677 (record_btrace_store_registers, record_btrace_prepare_to_store):
5678 Forward request when generating a core file.
5679 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5680 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5681 to_done_generating_core.
5683 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5685 * target.h (target_ops) <to_prepare_to_generate_core>
5686 <to_done_generating_core>: New.
5687 (target_prepare_to_generate_core, target_done_generating_core): New.
5688 * target.c (target_prepare_to_generate_core)
5689 (target_done_generating_core): New.
5690 * target-delegates.c: Regenerate.
5691 * gcore.c: (write_gcore_file): Rename to ...
5692 (write_gcore_file_1): ...this.
5693 (write_gcore_file): Call target_prepare_to_generate_core
5694 and target_done_generating_core.
5696 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5698 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5699 * gcore.c (write_gcore_file): Free memory returned from
5700 make_corefile_notes.
5701 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5702 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5704 2014-06-24 Yao Qi <yao@codesourcery.com>
5706 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5707 (arm_linux_init_abi): Set skip_trampoline_code with
5708 gdbarch_skip_trampoline_code instead of
5709 find_solib_trampoline_target.
5711 2014-06-24 Yao Qi <yao@codesourcery.com>
5713 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5714 arm_skip_bx_reg returns non-zero.
5716 2014-06-24 Yao Qi <yao@codesourcery.com>
5718 * arm-tdep.c (arm_skip_bx_reg): New function.
5719 (arm_skip_stub): Call arm_skip_bx_reg.
5721 2014-06-23 Don Breazeal <donb@codesourcery.com>
5723 * MAINTAINERS: Add myself as write-after-approval maintainer.
5725 2014-06-23 Pedro Alves <palves@redhat.com>
5727 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5728 DR_CONTROL before setting DR0..DR3.
5729 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5730 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5731 bits of DR_CONTROL related to the debug register slot being
5732 disabled. If all slots are vacant, clear local slowdown as well,
5733 and assert DR_CONTROL is 0.
5735 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5737 * python/lib/gdb/command/xmethods.py
5738 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5739 current progspace only if the string "progspace" matches LOCUS_RE.
5741 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5743 Fix --with-system-readline with readline-6.3 patch 5.
5744 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5745 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5748 2014-06-20 Tom Tromey <tromey@redhat.com>
5750 * dwarf2read.c (dw2_get_real_path): Use correct type in
5752 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5754 2014-06-20 Gary Benson <gbenson@redhat.com>
5756 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5757 * common/glibc_thread_db.h: Likewise.
5758 * common/i386-cpuid.h: Likewise.
5759 * common/i386-gcc-cpuid.h: Likewise.
5760 * common/linux-btrace.h: Likewise.
5761 * common/linux-osdata.h: Likewise.
5762 * common/linux-procfs.h: Likewise.
5763 * common/linux-ptrace.h: Likewise.
5764 * common/mips-linux-watch.h: Likewise.
5765 * common/linux-btrace.c: Moved to nat.
5766 * common/linux-osdata.c: Likewise.
5767 * common/linux-procfs.c: Likewise.
5768 * common/linux-ptrace.c: Likewise.
5769 * common/mips-linux-watch.c: Likewise.
5770 * nat/gdb_thread_db.h: Moved from common.
5771 * nat/glibc_thread_db.h: Likewise.
5772 * nat/i386-cpuid.h: Likewise.
5773 * nat/i386-gcc-cpuid.h: Likewise.
5774 * nat/linux-btrace.c: Likewise.
5775 * nat/linux-btrace.h: Likewise.
5776 * nat/linux-osdata.c: Likewise.
5777 * nat/linux-osdata.h: Likewise.
5778 * nat/linux-procfs.c: Likewise.
5779 * nat/linux-procfs.h: Likewise.
5780 * nat/linux-ptrace.c: Likewise.
5781 * nat/linux-ptrace.h: Likewise.
5782 * nat/mips-linux-watch.c: Likewise.
5783 * nat/mips-linux-watch.h: Likewise.
5784 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5785 (object file files): Reordered.
5786 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5787 of glibc_thread_db.h.
5789 2014-06-20 Gary Benson <gbenson@redhat.com>
5791 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5792 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5793 (i386_dr_low): Likewise.
5794 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5795 (i386_dr_low_set_addr): Likewise.
5796 (i386_dr_low_get_addr): Likewise.
5797 (i386_dr_low_can_set_control): Likewise.
5798 (i386_dr_low_set_control): Likewise.
5799 (i386_dr_low_get_control): Likewise.
5800 (i386_dr_low_get_status): Likewise.
5801 (i386_get_debug_register_length): Likewise.
5802 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5803 (i386_dr_low): Likewise.
5804 * nat/i386-dregs.c (i386-low.h): Remove include.
5805 (i386-nat.h): Likewise.
5806 (nat/i386-dregs.h): New include.
5807 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5808 (i386_dr_low_set_addr): Likewise.
5809 (i386_dr_low_get_addr): Likewise.
5810 (i386_dr_low_can_set_control): Likewise.
5811 (i386_dr_low_set_control): Likewise.
5812 (i386_dr_low_get_control): Likewise.
5813 (i386_dr_low_get_status): Likewise.
5814 (i386_get_debug_register_length): Likewise.
5815 (debug_hw_points): Likewise.
5817 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5819 * Makefile.in (SFILES): Add d-exp.y.
5820 (YYFILES): Add d-exp.c.
5821 (YYOBJ): Add d-exp.o.
5822 (local-maintainer-clean): Delete d-exp.c.
5823 * d-exp.y: New file.
5824 * d-lang.h (d_parse): New declaration.
5825 (d_error): New declaration.
5826 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5827 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5828 PREC_ORDER operators.
5829 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5831 2014-06-19 Yao Qi <yao@codesourcery.com>
5833 * gdbthread.h (any_running): Remove the declaration.
5834 * thread.c (any_running): Remove.
5836 2014-06-19 Yao Qi <yao@codesourcery.com>
5838 * gdbthread.h (struct thread_info) <state>: Change its type to
5839 'enum thread_state'. Update comments.
5841 2014-06-19 Pedro Alves <palves@redhat.com>
5843 * gdbthread.h (ALL_THREADS): Delete.
5844 (ALL_NON_EXITED_THREADS): New macro.
5845 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5846 instead of ALL_THREADS.
5847 * infrun.c (find_thread_needs_step_over)
5848 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5849 instead of ALL_THREADS.
5850 * record-btrace.c (record_btrace_open)
5851 (record_btrace_stop_recording, record_btrace_close)
5852 (record_btrace_is_replaying, record_btrace_resume)
5853 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5854 * remote.c (append_pending_thread_resumptions): Likewise.
5855 * thread.c (thread_apply_all_command): Likewise.
5857 2014-06-19 Gary Benson <gbenson@redhat.com>
5859 * i386-nat.c (i386_stopped_by_watchpoint):
5860 Use i386_dr_stopped_by_watchpoint.
5861 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5862 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5864 2014-06-19 Gary Benson <gbenson@redhat.com>
5866 * nat/i386-dregs.c: New file.
5867 * Makefile.in (i386-dregs.o): New rule.
5868 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5869 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5870 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5871 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5872 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5873 * config/i386/go32.mh (NATDEPFILES): Likewise.
5874 * config/i386/linux.mh (NATDEPFILES): Likewise.
5875 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5876 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5877 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5878 * i386-nat.h (debug_hw_points): New declaration.
5879 * i386-nat.c (breakpoint.h): Remove include.
5880 (command.h): Likewise.
5881 (target.h): Likewise.
5882 (gdb_assert.h): Likewise.
5883 (debug_hw_points): Made nonstatic.
5884 (debug_printf): Now in i386-dregs.c.
5885 (TARGET_HAS_DR_LEN_8): Likewise.
5886 (DR_CONTROL_SHIFT): Likewise.
5887 (DR_CONTROL_SIZE): Likewise.
5888 (DR_RW_EXECUTE): Likewise.
5889 (DR_RW_WRITE): Likewise.
5890 (DR_RW_READ): Likewise.
5891 (DR_RW_IORW): Likewise.
5892 (DR_LEN_1): Likewise.
5893 (DR_LEN_2): Likewise.
5894 (DR_LEN_4): Likewise.
5895 (DR_LEN_8): Likewise.
5896 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5897 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5898 (DR_ENABLE_SIZE): Likewise.
5899 (DR_LOCAL_SLOWDOWN): Likewise.
5900 (DR_GLOBAL_SLOWDOWN): Likewise.
5901 (DR_CONTROL_RESERVED): Likewise.
5902 (I386_DR_CONTROL_MASK): Likewise.
5903 (I386_DR_VACANT): Likewise.
5904 (I386_DR_LOCAL_ENABLE): Likewise.
5905 (I386_DR_GLOBAL_ENABLE): Likewise.
5906 (I386_DR_DISABLE): Likewise.
5907 (I386_DR_SET_RW_LEN): Likewise.
5908 (I386_DR_GET_RW_LEN): Likewise.
5909 (I386_DR_WATCH_HIT): Likewise.
5910 (i386_wp_op_t): Likewise.
5911 (i386_show_dr): Likewise.
5912 (i386_length_and_rw_bits): Likewise.
5913 (i386_insert_aligned_watchpoint): Likewise.
5914 (i386_remove_aligned_watchpoint): Likewise.
5915 (i386_handle_nonaligned_watchpoint): Likewise.
5916 (i386_update_inferior_debug_regs): Likewise.
5917 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5918 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5919 (i386_region_ok_for_watchpoint):
5920 Use i386_dr_region_ok_for_watchpoint.
5921 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5923 2014-06-19 Gary Benson <gbenson@redhat.com>
5925 * i386-nat.c (i386_insert_hw_breakpoint): Use
5926 i386_insert_watchpoint.
5927 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5929 2014-06-19 Gary Benson <gbenson@redhat.com>
5931 * i386-nat.c (i386_dr_show): Renamed to
5932 i386_show_dr and made static. All uses updated.
5933 (i386_dr_length_and_rw_bits): Renamed to
5934 i386_length_and_rw_bits and made static.
5936 (i386_dr_insert_aligned_watchpoint): Renamed to
5937 i386_insert_aligned_watchpoint and made static.
5939 (i386_dr_remove_aligned_watchpoint): Renamed to
5940 i386_remove_aligned_watchpoint and made static.
5942 (i386_dr_update_inferior_debug_regs): Renamed to
5943 i386_update_inferior_debug_regs and made static.
5945 * nat/i386-dregs.h (i386_dr_show): Removed.
5946 (i386_dr_length_and_rw_bits): Likewise.
5947 (i386_dr_insert_aligned_watchpoint): Likewise.
5948 (i386_dr_remove_aligned_watchpoint): Likewise.
5949 (i386_dr_update_inferior_debug_regs): Likewise.
5951 2014-06-19 Gary Benson <gbenson@redhat.com>
5953 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5954 * configure: Regenerate.
5955 * config.in: Likewise.
5956 * main.c (signal.h): New include.
5957 (setup_alternate_signal_stack): New function.
5958 (captured_main): Call the above.
5959 * cp-support.c (signal.h): New include.
5960 (catch_demangler_crashes): New flag.
5961 (SIGJMP_BUF): New define.
5962 (SIGSETJMP): Likewise.
5963 (SIGLONGJMP): Likewise.
5964 (gdb_demangle_jmp_buf): New static global.
5965 (gdb_demangle_attempt_core_dump): Likewise.
5966 (gdb_demangle_signal_handler): New function.
5967 (gdb_demangle): If catch_demangler_crashes is set, install the
5968 above signal handler before calling bfd_demangle, and restore
5969 the original signal handler afterwards. Display the offending
5970 symbol and call demangler_warning the first time a segmentation
5972 (_initialize_cp_support): New maint set/show command.
5974 2014-06-19 Gary Benson <gbenson@redhat.com>
5976 * utils.h (resource_limit_kind): New enum.
5977 (can_dump_core): New declaration.
5978 (warn_cant_dump_core): Likewise.
5979 (dump_core): Likewise.
5980 * utils.c (dump_core): Made nonstatic. Added new
5981 parameter "limit_kind".
5982 (can_dump_core): Made nonstatic. Moved printing code to...
5983 (warn_cant_dump_core): New function.
5984 (can_dump_core_warn): Likewise.
5985 (internal_vproblem): Replace calls to can_dump_core with
5986 calls to can_dump_core_warn. Supply new argument to each.
5988 2014-06-19 Gary Benson <gbenson@redhat.com>
5990 * utils.h (demangler_vwarning): New declaration.
5991 (demangler_warning): Likewise.
5992 * utils.c (struct internal_problem)
5993 <user_settable_should_quit>: New field.
5994 <user_settable_should_dump_core>: Likewise
5995 (internal_error_problem): Add values for above new fields.
5996 (internal_warning_problem): Likewise.
5997 (demangler_warning_problem): New static global.
5998 (demangler_vwarning): New function.
5999 (demangler_warning): Likewise.
6000 (add_internal_problem_command): Selectively add commands.
6001 (_initialize_utils): New internal problem command.
6002 * maint.c (maintenance_demangler_warning): New function.
6003 (_initialize_maint_cmds): New command.
6005 2014-06-18 Tom Tromey <tromey@redhat.com>
6007 * f-valprint.c (info_common_command_for_block): Update.
6008 * symtab.h (struct general_symbol_info) <common_block>: Now
6011 2014-06-18 Tom Tromey <tromey@redhat.com>
6013 * symtab.h (struct symtab) <blockvector>: Now const.
6014 * ada-lang.c (ada_add_global_exceptions): Update.
6015 * buildsym.c (augment_type_symtab): Update.
6016 * dwarf2read.c (dw2_lookup_symbol): Update.
6017 * jit.c (finalize_symtab): Update.
6018 * jv-lang.c (add_class_symtab_symbol): Update.
6019 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6021 * objfiles.c (objfile_relocate1): Update.
6022 * psymtab.c (lookup_symbol_aux_psymtabs)
6023 (maintenance_check_psymtabs): Update.
6024 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6026 * spu-tdep.c (spu_catch_start): Update.
6027 * symmisc.c (dump_symtab_1): Update.
6028 * symtab.c (lookup_global_symbol_from_objfile)
6029 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6030 (basic_lookup_transparent_type_quick)
6031 (basic_lookup_transparent_type, find_pc_sect_symtab)
6032 (find_pc_sect_line, search_symbols): Update.
6033 * block.c (find_block_in_blockvector): Make "bl" const.
6034 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6036 (blockvector_contains_pc): Make "bv" const.
6037 (block_for_pc_sect): Update.
6038 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6039 (blockvector_contains_pc): Update.
6040 * breakpoint.c (resolve_sal_pc): Update.
6041 * inline-frame.c (block_starting_point_at): Update.
6043 2014-06-18 Tom Tromey <tromey@redhat.com>
6045 * completer.c (complete_line): Make "line_buffer" const.
6046 * completer.h (complete_line): Update.
6048 2014-06-18 Tom Tromey <tromey@redhat.com>
6050 * symtab.c (add_macro_name): Remove unneeded cast.
6052 2014-06-18 Tom Tromey <tromey@redhat.com>
6054 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6055 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6057 2014-06-18 Tom Tromey <tromey@redhat.com>
6059 * probe.c (info_probes_for_ops): Make "arg" const.
6060 * probe.h (info_probes_for_ops): Update.
6062 2014-06-18 Tom Tromey <tromey@redhat.com>
6064 * varobj.c (varobj_create): Update.
6065 * valops.c (value_of_this): Update.
6066 * tracepoint.c (add_local_symbols, scope_info): Update.
6067 * symtab.h (struct general_symbol_info) <block>: Now const.
6068 * symtab.c (skip_prologue_sal)
6069 (default_make_symbol_completion_list_break_on)
6070 (skip_prologue_using_sal): Update.
6071 * stack.h (iterate_over_block_locals)
6072 (iterate_over_block_local_vars): Update.
6073 * stack.c (print_frame_args): Update.
6074 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6076 (get_selected_block): Make return type const.
6077 * python/py-frame.c (frapy_block): Update.
6078 * python/py-block.c (gdbpy_block_for_pc): Update.
6079 * p-exp.y (%union) <bval>: Now const.
6080 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6081 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6082 * m2-exp.y (%union) <bval>: Now const.
6083 * linespec.c (get_current_search_block): Make return type const.
6084 (create_sals_line_offset, find_label_symbols): Update.
6085 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6087 (block_starting_point_at): Make "block" const.
6088 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6089 (check_exception_resume): Update.
6090 * guile/scm-frame.c (gdbscm_frame_block): Update.
6091 * guile/scm-block.c (gdbscm_lookup_block): Update.
6092 * frame.h (get_frame_block): Update.
6093 (get_selected_block): Make return type const.
6094 * frame.c (frame_id_inner): Update.
6095 * f-valprint.c (info_common_command_for_block)
6096 (info_common_command): Update.
6097 * dwarf2loc.c (dwarf2_find_location_expression)
6098 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6099 (locexpr_describe_location_piece): Update.
6100 * c-exp.y (%union) <bval>: Now const.
6101 * breakpoint.c (resolve_sal_pc): Update.
6102 * blockframe.c (get_frame_block):Make return type const.
6103 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6104 (block_innermost_frame): Update.
6105 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6106 (block_for_pc, block_for_pc_sect): Update.
6107 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6109 (block_for_pc_sect, block_for_pc): Make return type const.
6110 * ax-gdb.c (gen_expr): Update.
6111 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6112 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6113 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6114 (ada_read_var_value): Update.
6115 * ada-exp.y (struct name_info) <block>: Now const.
6117 (block_lookup): Constify.
6119 2014-06-18 Gary Benson <gbenson@redhat.com>
6121 * nat/i386-dregs.h: New file.
6122 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6123 * i386-nat.h (i386-dregs.h): New include.
6124 (DR_FIRSTADDR): Now in i386-dregs.h.
6125 (DR_LASTADDR): Likewise.
6126 (DR_NADDR): Likewise.
6127 (DR_STATUS): Likewise.
6128 (DR_CONTROL): Likewise.
6129 (i386_debug_reg_state): Likewise.
6130 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6132 2014-06-18 Don Breazeal <donb@codesourcery.com>
6134 * breakpoint.c (set_longjmp_breakpoint): Call
6135 momentary_breakpoint_from_master with additional argument.
6136 (set_longjmp_breakpoint_for_call_dummy): Call
6137 momentary_breakpoint_from_master with additional argument.
6138 (set_std_terminate_breakpoint): Call
6139 momentary_breakpoint_from_master with additional argument.
6140 (momentary_breakpoint_from_master): Add argument to function
6141 definition and use it to initialize structure member flag.
6142 (clone_momentary_breakpoint): Call
6143 momentary_breakpoint_from_master with additional argument.
6144 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6145 member flags set in momentary_breakpoint_from_master.
6147 2014-06-18 Gary Benson <gbenson@redhat.com>
6149 * i386-nat.c (i386_show_dr): Renamed to
6150 i386_dr_show and made nonstatic. All uses updated.
6151 (i386_length_and_rw_bits): Renamed to
6152 i386_dr_length_and_rw_bits and made nonstatic.
6154 (i386_insert_aligned_watchpoint): Renamed to
6155 i386_dr_insert_aligned_watchpoint and made nonstatic.
6157 (i386_remove_aligned_watchpoint): Renamed to
6158 i386_dr_remove_aligned_watchpoint and made nonstatic.
6160 (i386_update_inferior_debug_regs): Renamed to
6161 i386_dr_update_inferior_debug_regs and made nonstatic.
6164 2014-06-18 Gary Benson <gbenson@redhat.com>
6166 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6167 (i386_dr_low_can_set_control): Likewise.
6168 (i386_dr_low_set_addr): Likewise.
6169 (i386_dr_low_set_control): Likewise.
6170 (i386_dr_low_get_addr): Likewise.
6171 (i386_dr_low_get_status): Likewise.
6172 (i386_dr_low_get_control): Likewise.
6173 (i386_insert_aligned_watchpoint): Use new macros.
6174 (i386_update_inferior_debug_regs): Likewise.
6175 (i386_stopped_data_address): Likewise.
6177 2014-06-18 Gary Benson <gbenson@redhat.com>
6179 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6180 New parameter. All uses updated.
6182 2014-06-18 Gary Benson <gbenson@redhat.com>
6184 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6187 2014-06-18 Gary Benson <gbenson@redhat.com>
6189 * i386-nat.c (debug_printf): New macro.
6190 (i386_get_debug_register_length): Likewise.
6191 (TARGET_HAS_DR_LEN_8): Use above macro.
6192 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6193 and printf_unfiltered. Use phex to format values.
6195 2014-06-18 Gary Benson <gbenson@redhat.com>
6197 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6200 2014-06-18 Gary Benson <gbenson@redhat.com>
6202 * i386-nat.c: Comment changes.
6204 2014-06-18 Gary Benson <gbenson@redhat.com>
6206 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6208 2014-06-18 Gary Benson <gbenson@redhat.com>
6210 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6211 (i386_insert_aligned_watchpoint): Likewise.
6212 (i386_remove_aligned_watchpoint): Likewise.
6213 (i386_handle_nonaligned_watchpoint): Likewise.
6215 2014-06-18 Gary Benson <gbenson@redhat.com>
6217 * i386-nat.c: Whitespace changes.
6219 2014-06-17 Samuel Bronson <naesten@gmail.com>
6221 * MAINTAINERS: Update Roland McGrath's email address.
6222 Thanks to Sergio Durigan Junior for pointing out that he left
6223 Red Hat a while ago, and giving me a current address.
6225 2014-06-17 Tom Tromey <tromey@redhat.com>
6227 * utils.h (savestring): Remove declaration.
6229 2014-06-17 Tom Tromey <tromey@redhat.com>
6231 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6233 2014-06-16 Keith Seitz <keiths@redhat.com>
6236 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6237 to update the varobj if inferior_ptid is null_ptid.
6239 2014-06-16 Tom Tromey <tromey@redhat.com>
6241 * target.h (struct target_ops) <to_info_proc>: Make parameter
6243 (target_info_proc): Update.
6244 * target.c (target_info_proc): Make "args" const.
6245 * procfs.c (procfs_info_proc): Update.
6246 * linux-tdep.c (linux_info_proc): Update.
6247 (linux_core_info_proc_mappings): Make "args" const.
6248 (linux_core_info_proc): Update.
6249 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6250 * gdbarch.c: Rebuild.
6251 * gdbarch.h: Rebuild.
6252 * corelow.c (core_info_proc): Update.
6254 2014-06-16 Tom Tromey <tromey@redhat.com>
6256 * target.h (struct target_ops) <to_disconnect>: Make parameter
6258 (target_disconnect): Update.
6259 * target.c (target_disconnect): Make "args" const.
6260 * target-delegates.c: Rebuild.
6261 * remote.c (remote_disconnect): Update.
6262 * record.h (record_disconnect): Update.
6263 * record.c (record_disconnect): Update.
6264 * inf-child.c (inf_child_disconnect): Update.
6266 2014-06-16 Tom Tromey <tromey@redhat.com>
6268 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6269 * target.c (debug_to_rcmd, default_rcmd): Update.
6270 * target-delegates.c: Rebuild.
6271 * remote.c (remote_rcmd): Update.
6272 * monitor.c (monitor_rcmd): Update.
6274 2014-06-16 Pedro Alves <palves@redhat.com>
6276 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6277 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6278 have OBJF_SHARED set.
6279 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6280 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6281 instead of OBJF_USERLOADED.
6282 * objfiles.h (OBJF_SHARED): Update comment.
6283 (userloaded_objfile_contains_address_p): Rename to ...
6284 (shared_objfile_contains_address_p): ... this, and update
6286 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6288 (remove_symbol_file_command): Skip objfiles that don't have
6291 2014-06-16 Tom Tromey <tromey@redhat.com>
6293 * minsyms.h (prim_record_minimal_symbol)
6294 (prim_record_minimal_symbol_and_info): Update comments.
6296 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6298 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6299 or --without-guile, according to how GDB was built.
6301 2014-06-13 Tom Tromey <tromey@redhat.com>
6303 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6305 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6307 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6309 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6310 help_list.Pass all_commands, not -1, to help_list.
6311 * cli/cli-dump.c (dump_command, append_command)
6312 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6313 (binary_dump_command, binary_append_command): Pass all_commands,
6314 not -1, to help_list.
6315 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6317 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6319 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6321 * top.c (set_history): Pass all_commands, not -1, to help_list.
6322 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6323 all_commands, not -1, to help_list.
6324 * symfile.c (overlay_command): Pass all_commands, not -1, to
6326 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6328 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6330 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6332 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6333 not -1, to help_list.
6334 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6335 not -1, to help_list.
6336 * maint.c (maintenance_command, maintenance_info_command)
6337 (maintenance_print_command, maintenance_set_cmd): Pass
6338 all_commands, not -1, to help_list.
6339 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6341 * language.c (set_check): Pass all_commands, not -1, to help_list.
6342 * infcmd.c (unset_command): Pass all_commands, not -1, to
6344 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6346 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6348 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6350 * breakpoint.c (save_command): Pass all_commands, not -1, to
6352 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6353 all_commands, not -1, to help_list.
6355 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6357 * regcache.c (struct register_to_invalidate): New structure.
6358 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6360 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6362 2014-06-12 Yao Qi <yao@codesourcery.com>
6364 * varobj.c (varobj_get_num_children): Call
6365 varobj_is_dynamic_p.
6366 (varobj_list_children): Likewise.
6367 (varobj_update): Likewise. Update comments.
6369 2014-06-12 Yao Qi <yao@codesourcery.com>
6371 * varobj.c (varobj_pretty_printed_p): Rename to ...
6372 (varobj_is_dynamic_p): ... this. New function.
6373 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6374 (varobj_is_dynamic_p): Declare.
6375 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6376 (mi_print_value_p, varobj_update_one): Likewise.
6378 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6379 Yao Qi <yao@codesourcery.com>
6381 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6382 (varobj_get_iterator): Wrap up code for pretty-printer by
6383 "#if HAVE_PYTHON" and "#endif".
6384 (update_dynamic_varobj_children): Likewise.
6386 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6387 Yao Qi <yao@codesourcery.com>
6389 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6390 gdb_python_initialized is false. Move some code from varobj.c.
6391 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6392 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6393 (struct varobj_item): Moved to varobj-iter.h".
6394 (varobj_clear_saved_item): New function.
6395 (update_dynamic_varobj_children): Move python-related code to
6397 (free_variable): Call varobj_clear_saved_item and
6400 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6401 Yao Qi <yao@codesourcery.com>
6403 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6404 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6405 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6406 (py-varobj.o): New rule.
6407 * python/py-varobj.c: New file.
6408 * python/python-internal.h (py_varobj_get_iterator): Declare.
6409 * varobj-iter.h: New file.
6410 * varobj.c: Include "varobj-iter.h"
6411 (struct varobj) <child_iter>: Change its type from "PyObject *"
6412 to "struct varobj_iter *".
6413 <saved_item>: Likewise.
6414 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6415 [HAVE_PYTHON] (varobj_get_iterator): New function.
6416 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6417 python-specific code to python/py-varobj.c.
6418 (install_visualizer): Call varobj_iter_delete instead of
6420 * varobj.h (varobj_ensure_python_env): Declare.
6422 2014-06-12 Yao Qi <yao@codesourcery.com>
6424 * varobj.c (struct varobj_item): New structure.
6425 (create_child_with_value): Update declaration.
6426 (varobj_add_child): Replace arguments 'name' and 'value' with
6427 'item'. All callers updated.
6428 (install_dynamic_child): Likewise.
6429 (update_dynamic_varobj_children): Likewise.
6430 (varobj_add_child): Likewise.
6431 (create_child_with_value): Likewise.
6433 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6435 * NEWS: Create a new section for the next release branch.
6436 Rename the section of the current branch, now that it has
6439 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6441 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6442 * version.in: Bump version to 7.8.50.DATE-cvs.
6444 2014-06-11 Pedro Alves <palves@redhat.com>
6447 * ser-mingw.c (net_windows_socket_check_pending): New function.
6448 (net_windows_select_thread): Ignore spurious wakeups. Use
6449 net_windows_socket_check_pending.
6450 (net_windows_wait_handle): Check for pending events with
6451 ioctlsocket, through net_windows_socket_check_pending, instead of
6452 checking the socket's event.
6454 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6456 * python/python-internal.h (gdb_PyObject_GetAttrString)
6457 (gdb_PyObject_HasAttrString): New inline function definitions.
6458 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6459 char * of the second argument to PyObject_GetAttrString.
6461 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6463 * serial.c (serial_write): Fix index of character to be printed
6464 in call to serial_logchar when serial debug traces are enabled.
6466 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6468 * gdbtypes (resolve_dynamic_range): Add function description.
6470 2014-06-09 Pedro Alves <palves@redhat.com>
6472 * linux-nat.c (linux_child_follow_fork): Initialize status with
6473 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6474 inner block. Only pass the signal to PTRACE_DETACH if in pass
6477 2014-06-09 Gary Benson <gbenson@redhat.com>
6479 * common/signals.c (gdb_signal_from_host): Reorder to separate
6480 the always-available ANSI-standard signals from the signals that
6482 (do_gdb_signal_to_host): Likewise.
6483 * proc-events.c (signal_table): Likewise.
6485 2014-06-08 Hui Zhu <hui@codesourcery.com>
6487 * common/linux-ptrace.c (linux_disable_event_reporting): New
6489 * common/linux-ptrace.h (linux_disable_event_reporting): New
6491 * linux-nat.c (linux_child_follow_fork): Do a single step before
6494 2014-06-07 Keith Seitz <keiths@redhat.com>
6498 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6499 from symbol_matches_domain in symtab.c. All local callers
6500 of symbol_matches_domain updated.
6501 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6502 search STRUCT_DOMAIN.
6503 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6504 independently. standard_lookup will do that automatically.
6505 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6506 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6507 (cp_lookup_symbol_in_namespace): Likewise.
6508 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6509 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6510 may return a STRUCT_DOMAIN match.
6511 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6512 * cp-support.c: Include language.h.
6513 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6515 * psymtab.c (match_partial_symbol): Compare the requested
6516 domain with the symbol's domain directly.
6517 (lookup_partial_symbol): Likewise.
6518 * symtab.c (lookup_symbol_in_language): Explain when/why
6519 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6520 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6521 appropriate languages.
6522 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6523 and moved to ada-lang.c
6524 (lookup_block_symbol): Explain that this function only returns
6525 symbol matching the requested DOMAIN.
6526 Compare the requested domain with the symbol's domain directly.
6527 (iterate_over_symbols): Compare the requested domain with the
6528 symbol's domain directly.
6529 * symtab.h (symbol_matches_domain): Remove.
6531 2014-06-06 Doug Evans <xdje42@gmail.com>
6533 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6534 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6535 (gdbscm_guile_version_is_at_least): Declare.
6536 (gdbscm_scm_string_to_int): Declare.
6537 * guile/guile.c (gdbscm_guile_major_version): New global.
6538 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6539 (guile_datadir): New static global.
6540 (gdbscm_guile_data_directory): New function.
6541 (initialize_scheme_side): Update.
6542 (misc_guile_functions): Add guile-data-directory.
6543 (initialize_gdb_module): Fetch guile version number.
6544 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6545 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6546 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6547 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6549 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6550 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6551 * guile/scm-value.c (gdbscm_value_to_string): Only call
6552 scm_port_conversion_strategy if Guile version >= 2.0.6.
6554 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6556 * main.c (print_gdb_help): Add -q and --silent.
6558 2014-06-06 Gary Benson <gbenson@redhat.com>
6560 * common/signals.c: Remove preprocessor conditionals for
6561 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6562 SIGSEGV and SIGTERM.
6563 * proc-events.c: Likewise.
6565 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6567 * symfile.c (symfile_free_objfile): Remove restriction to
6569 * symfile-mem.c (symbol_file_add_from_memory): Call
6570 add_target_sections_of_objfile.
6572 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6574 * guile/scm-value.c (gdbscm_history_append_x): Use
6575 'vlscm_get_value_smob_arg_unsafe' instead of
6576 'vlscm_scm_to_value'.
6578 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6581 * utils.c (printchar): Don't escape at all if quoter is NUL.
6582 Update function documentation to clarify effect of parameter
6584 * remote.c (escape_buffer): Pass '\\' as the quoter to
6585 fputstrn_unfiltered.
6586 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6587 generate the output.
6588 (mi_solib_unloaded): Same.
6590 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6592 * development.sh: Delete.
6593 * Makefile.in (config.status): Adjust dependency on development.sh.
6594 * configure.ac: Adjust development.sh source call.
6595 * configure: Regenerate.
6597 2014-06-04 Doug Evans <xdje42@gmail.com>
6599 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6600 is_scheme_bkpt, spec.
6601 (bpscm_make_breakpoint_smob): Initialize new members.
6602 (gdbscm_create_breakpoint_x): Split into two ...
6603 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6604 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6605 (scheme_function breakpoint_functions): Update.
6606 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6607 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6608 register-breakpoint!.
6610 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6613 * mem-break.c (z_type_supported): Return zero if
6614 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6616 2014-06-04 Tom Tromey <tromey@redhat.com>
6618 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6619 value_from_contents_and_address_unresolved.
6620 (ada_template_to_fixed_record_type_1): Likewise.
6621 (ada_which_variant_applies): Likewise.
6622 * value.h (value_from_contents_and_address_unresolved): Declare.
6623 * value.c (value_from_contents_and_address_unresolved): New
6625 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6626 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6627 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6629 2014-06-04 Tom Tromey <tromey@redhat.com>
6631 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6633 2014-06-04 Tom Tromey <tromey@redhat.com>
6635 * procfs.c (procfs_attach): Make "args" const.
6636 * windows-nat.c (windows_attach): Make "args" const.
6637 * nto-procfs.c (procfs_attach): Make "args" const.
6638 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6639 * go32-nat.c (go32_attach): Make "args" const.
6640 * gnu-nat.c (gnu_attach): Make "args" const.
6641 * darwin-nat.c (darwin_attach): Make "args" const.
6642 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6643 * linux-nat.c (linux_nat_attach): Make "args" const.
6644 * remote.c (extended_remote_attach_1, extended_remote_attach):
6646 * target.h (struct target_ops) <to_attach>: Make "args" const.
6647 (find_default_attach): Likewise.
6648 * utils.c (parse_pid_to_attach): Make "args" const.
6649 * utils.h (parse_pid_to_attach): Update.
6651 2014-06-04 Tom Tromey <tromey@redhat.com>
6653 * target-delegates.c: Rebuild.
6654 * target.c (default_thread_address_space): New function.
6655 (target_thread_address_space): Simplify.
6656 * target.h (struct target_ops) <to_thread_address_space>: Add
6657 TARGET_DEFAULT_FUNC.
6659 2014-06-04 Doug Evans <xdje42@gmail.com>
6661 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6663 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6665 * record-btrace.c: Include event-loop.h and inf-loop.h.
6666 (record_btrace_resume_exec_dir)
6667 (record_btrace_async_inferior_event_handler)
6668 (record_btrace_handle_async_inferior_event): New.
6669 (record_btrace_open): Create async event handler.
6670 (record_btrace_close): Delete async event handler.
6671 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6672 Mark async event handler.
6673 (record_btrace_execution_direction): New.
6674 (init_record_btrace_ops): Initialize to_execution_direction.
6676 2014-06-03 Doug Evans <xdje42@gmail.com>
6678 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6679 (gdbscm_make_parameter): Ditto.
6681 2014-06-03 Doug Evans <dje@google.com>
6683 * exec.c (exec_close_1): Call clear_section_table instead of
6684 resize_section_table.
6685 (clear_section_table): New function.
6686 (resize_section_table): Make static. Rename arg num_added to
6688 * exec.h (clear_section_table): Declare.
6689 (resize_section_table): Delete.
6690 * progspace.c (release_program_space): Call clear_section_table
6691 instead of resize_section_table.
6693 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6695 * NEWS (Python Scripting): Add entry about the new xmethods
6698 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6700 * python/py-xmethods.c: New file.
6701 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6702 (objfpy_dealloc): XDECREF on the new xmethods field.
6703 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6705 (objfpy_get_xmethods): New function.
6706 (objfile_getset): New entry 'xmethods'.
6707 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6708 (pspy_dealloc): XDECREF on the new xmethods field.
6709 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6711 (pspy_get_xmethods): New function.
6712 (pspace_getset): New entry 'xmethods'.
6713 * python/python-internal.h: Add declarations for new functions.
6714 * python/python.c (_initialize_python): Invoke
6715 gdbpy_initialize_xmethods.
6716 * python/lib/gdb/__init__.py (xmethods): New
6718 * python/lib/gdb/xmethod.py: New file.
6719 * python/lib/gdb/command/xmethods.py: New file.
6721 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6723 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6724 best match method returned by find_overload_match is an xmethod.
6725 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6726 the best matching operator returned by find_overload_match is an
6728 * valops.c: #include "extension.h".
6729 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6730 Return void. The list of matching source methods is returned in
6731 "fn_list" and a vector of matching debug method workers is
6732 returned in "xm_worker_vec". Update all callers.
6733 (value_find_oload_method_list): Likewise.
6734 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6735 non-NULL, then the index of the best matching method in this
6736 vector is returned. Update all callers.
6737 (find_overload_match): Include xmethods while performing overload
6740 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6742 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6743 * extension-priv.h (struct extension_language_ops): Add the
6745 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6746 get_matching_xmethod_workers, get_xmethod_argtypes,
6747 invoke_xmethod, free_xmethod_worker,
6748 free_xmethod_worker_vec): New functions.
6749 * extension.h: #include "common/vec.h".
6750 New function declarations.
6751 (struct xmethod_worker): New struct.
6752 (VEC (xmethod_worker_ptr)): New vector type.
6753 (xmethod_worker_ptr): New typedef.
6754 (xmethod_worker_vec): Likewise.
6755 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6757 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6758 (struct builtin_type): New field "xmethod".
6759 * valarith.c (value_ptradd): Assert that the value argument is not
6761 * valops.c (value_must_coerce_to_target): Return 0 for
6762 lval_xcallable values.
6763 * value.c (struct value): New field XM_WORKER in the field
6765 (value_address, value_raw_address): Return 0 for lval_xcallable
6767 (set_value_address): Assert that the value is not an
6769 (value_free): Free the associated xmethod worker when freeing
6770 lval_xcallable values.
6771 (set_value_component_location): Assert that the WHOLE value is not
6773 (value_of_xmethod, call_xmethod): New functions.
6774 * value.h: Declare "struct xmethod_worker".
6775 Declare new functions value_of_xmethod, call_xmethod.
6777 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6778 Pedro Alves <palves@redhat.com>
6780 PR breakpoints/17000
6781 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6782 New function, extracted from software_breakpoint_inserted_here_p.
6783 (software_breakpoint_inserted_here_p): Replace factored out code
6784 by call to find_non_raw_software_breakpoint_inserted_here.
6785 (bp_target_info_copy_insertion_state): New function.
6786 (bkpt_insert_location): Handle the case of a single-step
6787 breakpoint already inserted at the same address.
6788 (bkpt_remove_location): Handle the case of a single-step
6789 breakpoint still inserted at the same address.
6790 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6791 breakpoint already inserted at the same address.
6792 (deprecated_remove_raw_breakpoint): Handle the case of a
6793 non-raw breakpoint still inserted at the same address.
6794 (find_single_step_breakpoint): New function, extracted from
6795 single_step_breakpoint_inserted_here_p.
6796 (find_single_step_breakpoint): New function,
6797 factored out from single_step_breakpoint_inserted_here_p.
6798 (single_step_breakpoint_inserted_here_p): Reimplement.
6800 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6802 Pushed by Joel Brobecker <brobecker@adacore.com>
6803 * source.c (show_substitute_path_command): Fix display of matching
6806 2014-06-03 Gary Benson <gbenson@redhat.com>
6808 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6810 2014-06-02 Doug Evans <xdje42@gmail.com>
6812 Add parameter support for Guile.
6813 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6814 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6815 (scm-param.o): New rule.
6816 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6817 (gdbscm_misc_error): Declare.
6818 (gdbscm_canonicalize_command_name): Declare.
6819 (gdbscm_scm_to_host_string): Declare.
6820 (gdbscm_scm_from_host_string): Declare.
6821 (gdbscm_initialize_parameters): Declare.
6822 * guile/guile.c (initialize_gdb_module): Call
6823 gdbscm_initialize_parameters.
6824 * guile/lib/gdb.scm: Export parameter symbols.
6825 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6826 cmdscm_canonicalize_name and made public. All callers updated.
6827 * guile/scm-exception.c (gdbscm_misc_error): New function.
6828 * guile/scm-param.c: New file.
6829 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6830 (gdbscm_scm_to_host_string): New function.
6831 (gdbscm_scm_from_host_string): New function.
6832 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6834 2014-06-02 Doug Evans <xdje42@gmail.com>
6836 Add command support for Guile.
6837 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6838 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6839 (scm-cmd.o): New rule.
6840 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6841 (gdbscm_user_error_p): Declare.
6842 (gdbscm_parse_command_name): Declare.
6843 (gdbscm_valid_command_class_p): Declare.
6844 (gdbscm_initialize_commands): Declare.
6845 * guile/guile.c (initialize_gdb_module): Call
6846 gdbscm_initialize_commands.
6847 * guile/lib/gdb.scm: Export command symbols.
6848 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6849 (throw-user-error): New function.
6850 * guile/scm-cmd.c: New file.
6851 * guile/scm-exception.c (user_error_symbol): New static global.
6852 (gdbscm_user_error_p): New function.
6853 (gdbscm_initialize_exceptions): Set user_error_symbol.
6854 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6856 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6858 * top.c (command_loop): Handle comments here...
6859 (command_line_input): ... not here.
6861 2014-06-02 Doug Evans <xdje42@gmail.com>
6863 Add progspace support for Guile.
6864 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6865 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6866 (scm-progspace.o): New rule.
6867 * guile/guile-internal.h (pspace_smob): New typedef.
6868 (psscm_pspace_smob_pretty_printers): Declare.
6869 (psscm_pspace_smob_from_pspace): Declare.
6870 (psscm_scm_from_pspace): Declare.
6871 * guile/guile.c (initialize_gdb_module): Call
6872 gdbscm_initialize_pspaces.
6873 * guile/lib/gdb.scm: Export progspace symbols.
6874 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6876 (append-pretty-printer!): Ditto.
6877 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6879 * guile/scm-progspace.c: New file.
6881 2014-06-03 Alan Modra <amodra@gmail.com>
6883 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6884 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6886 2014-06-02 Doug Evans <dje@google.com>
6888 Add support for skeletonless type units.
6889 * dwarf2read.c (struct dwarf2_per_objfile): New member
6890 n_allocated_type_units.
6891 (struct dwarf2_per_objfile) <tu_stats>: New member
6892 nr_all_type_units_reallocs.
6893 (create_signatured_type_table_from_index): Initialize
6894 n_allocated_type_units
6895 (create_all_type_units): Ditto.
6896 (add_type_unit): Move up in file. New arg slot.
6897 All callers updated. Increase space for all_type_units more
6899 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6900 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6901 (lookup_dwp_signatured_type): Ditto.
6902 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6903 All callers updated.
6904 (build_type_psymtabs_1): Leave type_unit_groups as
6905 NULL if no TUs present.
6906 (print_tu_stats): New function.
6907 (process_skeletonless_type_unit): New function.
6908 (process_dwo_file_for_skeletonless_type_units): New
6910 (process_skeletonless_type_units): New function.
6911 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6912 Call print tu_stats if debugging enabled.
6914 2014-06-02 Pedro Alves <palves@redhat.com>
6916 * breakpoint.c (build_target_command_list): Don't build a command
6917 list if we have any duplicate location that isn't a dprintf.
6919 2014-06-02 Pedro Alves <palves@redhat.com>
6921 * breakpoint.c (dprintf_breakpoint_hit): New function.
6922 (initialize_breakpoint_ops): Install it as dprintf's
6923 breakpoint_hit method.
6925 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6927 * source.c (substitute_path_rule_matches): Simplify using
6928 filename_ncmp instead of FILENAME_CMP.
6930 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6932 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6934 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6936 * configure.ac: When Guile is available, check for the
6937 availability of 'scm_new_smob'.
6938 * configure, config.h.in: Regenerate.
6939 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6942 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6944 * frame.c (struct frame_info): Add stop_string field.
6945 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6946 (get_prev_frame_always): Old content moved into
6947 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6948 TRY_CATCH, handle MEMORY_ERROR exceptions.
6949 (frame_stop_reason_string): New function definition.
6950 * frame.h (unwind_stop_reason_to_string): Extend comment to
6951 mention frame_stop_reason_string.
6952 (frame_stop_reason_string): New function declaration.
6953 * stack.c (frame_info): Switch to frame_stop_reason_string.
6954 (backtrace_command_1): Switch to frame_stop_reason_string.
6955 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6956 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6957 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6959 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6961 * frame.c (frame_stop_reason_string): Rename to ...
6962 (unwind_stop_reason_to_string): this.
6963 * frame.h (frame_stop_reason_string): Rename to ...
6964 (unwind_stop_reason_to_string): this.
6965 * stack.c (frame_info): Update call to frame_stop_reason_string.
6966 (backtrace_command_1): Likewise.
6967 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6968 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6970 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6972 * frame.c (remove_prev_frame): New function.
6973 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6976 2014-05-29 Pedro Alves <palves@redhat.com>
6978 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6979 and make it const. When a single-step decays to a continue,
6980 clear 'step', not 'hw_step'. Pass whether the caller wanted
6981 to step to user_visible_resume_ptid, not what we ask the
6984 2014-05-29 Pedro Alves <palves@redhat.com>
6986 * infrun.c (process_event_stop_test, handle_step_into_function)
6987 (handle_step_into_function_backward): Adjust.
6988 Don't set the even thread's stop_step and call stop_waiting before
6989 calling end_stepping_range. Instead do that ...
6990 (end_stepping_range): ... here. Take an ecs pointer parameter.
6992 2014-05-29 Pedro Alves <palves@redhat.com>
6994 * infrun.c (stop_stepping): Rename to ...
6995 (stop_waiting): ... this.
6996 (proceed): Update comment.
6997 (process_event_stop_test, handle_inferior_event)
6998 (handle_signal_stop, handle_step_into_function)
6999 (handle_step_into_function_backward): Update.
7001 2014-05-29 Pedro Alves <palves@redhat.com>
7003 * infcall.c (run_inferior_call): Don't check whether the current
7004 thread is running after the proceed call.
7006 2014-05-29 Pedro Alves <palves@redhat.com>
7007 Tom Tromey <tromey@redhat.com>
7009 * NEWS: Mention "maint set target-async", "set mi-async", and that
7010 background execution commands are now always available.
7011 * target.h (target_async_permitted): Update comment.
7012 * target.c (target_async_permitted, target_async_permitted_1):
7014 (set_target_async_command): Rename to ...
7015 (maint_set_target_async_command): ... this.
7016 (show_target_async_command): Rename to ...
7017 (maint_show_target_async_command): ... this.
7018 (_initialize_target): Adjust.
7019 * infcmd.c (prepare_execution_command): Make extern.
7020 * inferior.h (prepare_execution_command): Declare.
7021 * infrun.c (set_observer_mode): Leave target async alone.
7022 * mi/mi-interp.c (mi_interpreter_init): Install
7023 mi_on_sync_execution_done as sync_execution_done observer.
7024 (mi_on_sync_execution_done): New function.
7025 (mi_execute_command_input_handler): Don't print the prompt if we
7026 just started a synchronous command with an async target.
7027 (mi_on_resume): Check sync_execution before printing prompt.
7028 * mi/mi-main.h (mi_async_p): Declare.
7029 * mi/mi-main.c: Include gdbcmd.h.
7030 (mi_async_p): New function.
7031 (mi_async, mi_async_1): New globals.
7032 (set_mi_async_command, show_mi_async_command, mi_async): New
7034 (exec_continue): Call prepare_execution_command.
7035 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7036 (mi_execute_async_cli_command): Use mi_async_p.
7037 (_initialize_mi_main): Install "set mi-async". Make
7038 "target-async" a deprecated alias.
7040 2014-05-29 Pedro Alves <palves@redhat.com>
7042 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7043 (_initialize_cli_interp): Adjust.
7044 * event-loop.c: Include "observer.h".
7045 (start_event_loop): Notify 'command_error' observers instead of
7046 calling display_gdb_prompt. Remove FIXME comment.
7047 * event-top.c (display_gdb_prompt): Remove call into the
7049 * inf-loop.c: Include "observer.h".
7050 (inferior_event_handler): Notify 'command_error' observers instead
7051 of calling display_gdb_prompt.
7052 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7053 observers instead of calling display_gdb_prompt.
7054 * interps.c (interp_set): Don't call display_gdb_prompt.
7055 (current_interp_display_prompt_p): Delete.
7056 * interps.h (interp_prompt_p): Delete declaration.
7057 (interp_prompt_p_ftype): Delete.
7058 (struct interp_procs) <prompt_proc_p>: Delete field.
7059 (current_interp_display_prompt_p): Delete declaration.
7060 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7061 (_initialize_mi_interp): Adjust.
7062 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7063 'command_error' observers.
7064 (tui_on_sync_execution_done, tui_on_command_error): New
7066 (tui_display_prompt_p): Delete.
7067 (_initialize_tui_interp): Adjust.
7069 2014-05-29 Pedro Alves <palves@redhat.com>
7072 * cli/cli-interp.c: Include infrun.h and observer.h.
7073 (cli_uiout, cli_interp): New globals.
7074 (cli_on_signal_received, cli_on_end_stepping_range)
7075 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7077 (cli_interpreter_init): Install them as 'end_stepping_range',
7078 'signal_received' 'signal_exited', 'exited' and 'no_history'
7080 (_initialize_cli_interp): Remove cli_interp local.
7081 * infrun.c (handle_inferior_event): Call the several stop reason
7082 observers instead of printing the stop reason directly.
7083 (end_stepping_range): New function.
7084 (print_end_stepping_range_reason, print_signal_exited_reason)
7085 (print_exited_reason, print_signal_received_reason)
7086 (print_no_history_reason): Make static, and add an uiout
7087 parameter. Print to that instead of to CURRENT_UIOUT.
7088 * infrun.h (print_end_stepping_range_reason)
7089 (print_signal_exited_reason, print_exited_reason)
7090 (print_signal_received_reason print_no_history_reason): New
7092 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7094 <cli_uiout>: New field.
7095 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7096 uiout for CLI output. Install 'signal_received',
7097 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7099 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7100 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7101 (mi_on_no_history): New functions.
7102 (ui_out_free_cleanup): Delete function.
7103 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7104 instead use the one already stored in the MI interpreter data.
7105 (mi_ui_out): Adjust.
7106 * tui/tui-interp.c: Include infrun.h and observer.h.
7107 (tui_interp): New global.
7108 (tui_on_signal_received, tui_on_end_stepping_range)
7109 (tui_on_signal_exited, tui_on_exited)
7110 (tui_on_no_history): New functions.
7111 (tui_init): Install them as 'end_stepping_range',
7112 'signal_received' 'signal_exited', 'exited' and 'no_history'
7114 (_initialize_tui_interp): Delete tui_interp local.
7116 2014-05-29 Pedro Alves <palves@redhat.com>
7119 * linux-nat.c (linux_nat_resume_callback): Rename the second
7120 parameter to 'except'. Skip LP if it points to EXCEPT.
7121 (linux_nat_resume): Don't mark the event lwp as not stopped
7122 before resuming sibling lwps. Instead ask
7123 linux_nat_resume_callback to skip the event lwp. Mark it as not
7124 stopped after actually resuming it.
7125 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7127 (wait_lwp): Mark the lwp as stopped here.
7128 (stop_wait_callback): Mark the lwp as not stopped right after
7129 resuming it. Don't mark lwps as stopped here.
7130 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7131 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7133 2014-05-29 Pedro Alves <palves@redhat.com>
7136 * infrun.c (resume): Determine how much to resume depending on
7137 whether the caller wanted a step, not whether we can hardware step
7138 the target. Mark all threads that we intend to run as running,
7139 unless we're calling an inferior function.
7140 (normal_stop): If the thread is running an infcall, don't finish
7142 * target.c (target_resume): Don't mark threads as running here.
7144 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7146 * serial.c (_initialize_serial): Remove support for
7147 the "set remotebaud" and "show remotebaud" commands.
7148 * NEWS: Add entry documenting the removal of that command.
7150 2014-05-28 Yao Qi <yao@codesourcery.com>
7152 * charset.c: Fix typo in comments.
7154 2014-05-27 Gary Benson <gbenson@redhat.com>
7156 * utils.c (internal_vproblem): Prompt for a bug report.
7158 2014-05-26 Andy Wingo <wingo@igalia.com>
7160 * guile/scm-arch.c (arscm_mark_arch_smob):
7161 * guile/scm-block.c (bkscm_mark_block_smob)
7162 (bkscm_mark_block_syms_progress_smob):
7163 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7164 * guile/scm-exception.c (exscm_mark_exception_smob):
7165 * guile/scm-frame.c (frscm_mark_frame_smob):
7166 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7167 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7168 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7169 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7170 (ppscm_mark_pretty_printer_worker_smob):
7171 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7172 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7173 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7174 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7176 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7179 2014-05-26 Andy Wingo <wingo@igalia.com>
7180 Doug Evans <xdje42@gmail.com>
7182 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7183 empty_base_class. All uses updated.
7184 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7185 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7187 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7188 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7189 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7190 (gdbscm_gsmob_has_property_p, add_property_name)
7191 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7192 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7193 (gdb-object-has-property?, gdb-object-properties): Remove.
7194 (gdb-object-kind): Renamed from gsmob-kind.
7196 2014-05-26 Andy Wingo <wingo@igalia.com>
7198 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7199 * configure: Regenerate.
7201 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7203 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7205 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7207 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7208 (replay_memory_access_read_only, replay_memory_access_read_write)
7209 (replay_memory_access_types, replay_memory_access)
7210 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7211 (cmd_set_record_btrace, cmd_show_record_btrace)
7212 (cmd_show_replay_memory_access): New.
7213 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7214 (record_btrace_remove_breakpoint): Replace
7215 record_btrace_allow_memory_access with replay_memory_access.
7216 (_initialize_record_btrace): Add commands.
7217 * NEWS: Announce it.
7219 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7221 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7223 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7225 * MAINTAINERS (Write After Approval): Move self back from
7228 2014-05-22 Pedro Alves <palves@redhat.com>
7230 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7231 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7232 (disable_randomization, enum exec_direction_kind)
7233 (execution_direction, stop_registers, start_remote)
7234 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7235 (wait_for_inferior, normal_stop, get_last_target_status)
7236 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7237 (insert_step_resume_breakpoint_at_sal)
7238 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7239 (set_step_info, print_stop_event, signal_stop_state)
7240 (signal_print_state, signal_pass_state, signal_stop_update)
7241 (signal_print_update, signal_pass_update)
7242 (update_signals_program_target, clear_exit_convenience_vars)
7243 (displaced_step_dump_bytes, update_observer_mode)
7244 (signal_catch_update, gdb_signal_from_command): Move
7246 * infrun.h: ... to this new file.
7247 * amd64-tdep.c: Include infrun.h.
7248 * annotate.c: Include infrun.h.
7249 * arch-utils.c: Include infrun.h.
7250 * arm-linux-tdep.c: Include infrun.h.
7251 * arm-tdep.c: Include infrun.h.
7252 * break-catch-sig.c: Include infrun.h.
7253 * breakpoint.c: Include infrun.h.
7254 * common/agent.c: Include infrun.h instead of inferior.h.
7255 * corelow.c: Include infrun.h.
7256 * event-top.c: Include infrun.h.
7257 * go32-nat.c: Include infrun.h.
7258 * i386-tdep.c: Include infrun.h.
7259 * inf-loop.c: Include infrun.h.
7260 * infcall.c: Include infrun.h.
7261 * infcmd.c: Include infrun.h.
7262 * infrun.c: Include infrun.h.
7263 * linux-fork.c: Include infrun.h.
7264 * linux-nat.c: Include infrun.h.
7265 * linux-thread-db.c: Include infrun.h.
7266 * monitor.c: Include infrun.h.
7267 * nto-tdep.c: Include infrun.h.
7268 * procfs.c: Include infrun.h.
7269 * record-btrace.c: Include infrun.h.
7270 * record-full.c: Include infrun.h.
7271 * remote-m32r-sdi.c: Include infrun.h.
7272 * remote-mips.c: Include infrun.h.
7273 * remote-notif.c: Include infrun.h.
7274 * remote-sim.c: Include infrun.h.
7275 * remote.c: Include infrun.h.
7276 * reverse.c: Include infrun.h.
7277 * rs6000-tdep.c: Include infrun.h.
7278 * s390-linux-tdep.c: Include infrun.h.
7279 * solib-irix.c: Include infrun.h.
7280 * solib-osf.c: Include infrun.h.
7281 * solib-svr4.c: Include infrun.h.
7282 * target.c: Include infrun.h.
7283 * top.c: Include infrun.h.
7284 * windows-nat.c: Include infrun.h.
7285 * mi/mi-interp.c: Include infrun.h.
7286 * mi/mi-main.c: Include infrun.h.
7287 * python/py-threadevent.c: Include infrun.h.
7289 2014-05-22 Pedro Alves <palves@redhat.com>
7291 * infrun.c (handle_inferior_event): Store the exit code for
7292 --return-child-result here, instead of ...
7293 (print_exited_reason): ... here.
7295 2014-05-21 Pedro Alves <palves@redhat.com>
7298 * gdbthread.h (struct thread_control_state): New field
7300 * infrun.c (follow_fork): Copy the new thread control field to the
7302 (clear_proceed_status_thread): Clear the new thread control field.
7303 (proceed): Set the new thread control field.
7304 * interps.h (command_interp): Declare.
7305 * interps.c (command_interpreter): New global.
7306 (command_interp): New function.
7307 (interp_exec): Set `command_interpreter' while here.
7308 * cli-out.c (cli_uiout_dtor): New function.
7309 (cli_ui_out_impl): Install it.
7310 * mi/mi-interp.c: Include cli-out.h.
7311 (mi_cmd_interpreter_exec): Add comment.
7312 (restore_current_uiout_cleanup): New function.
7313 (ui_out_free_cleanup): New function.
7314 (mi_on_normal_stop): If finishing an execution command started by
7315 a CLI command, or any kind of breakpoint-like event triggered,
7316 print the stop event to the output (CLI) stream.
7317 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7319 2014-05-21 Pedro Alves <palves@redhat.com>
7321 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7322 current source line having changed.
7323 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7324 * infrun.c (normal_stop): Adjust call to
7325 set_current_sal_from_frame.
7326 * source.c (clear_lines_listed_range): New function.
7327 (set_current_source_symtab_and_line, identify_source_line): Clear
7328 the lines listed range.
7329 (line_info): Handle the first "info line" after the current source
7330 line having changed.
7331 * stack.c (print_stack_frame): Remove center handling.
7332 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7335 2014-05-21 Pedro Alves <palves@redhat.com>
7337 * inf-child.c (inf_child_mourn_inferior): New function.
7338 * inf-child.h (inf_child_mourn_inferior): New declaration.
7339 * darwin-nat.c (darwin_mourn_inferior): Use
7340 inf_child_mourn_inferior.
7341 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7342 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7343 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7344 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7345 * windows-nat.c (windows_mourn_inferior): Likewise.
7347 2014-05-21 Doug Evans <xdje42@gmail.com>
7349 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7351 2014-05-21 Doug Evans <xdje42@gmail.com>
7353 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7354 (gdbscm_out_of_range_error): Ditto.
7355 (gdbscm_memory_error): Ditto.
7356 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7357 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7358 (gdbscm_out_of_range_error): Update.
7359 (gdbscm_memory_error): Update.
7360 (gdbscm_scm_to_target_string_unsafe): Delete.
7362 2014-05-21 Pedro Alves <palves@redhat.com>
7364 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7366 (inf_child_open_target): New function.
7367 (inf_child_open): Use inf_child_open_target to push the target
7368 instead of erroring out.
7369 (inf_child_disconnect, inf_child_close)
7370 (inf_child_maybe_unpush_target): New functions.
7371 (inf_child_target): Install inf_child_disconnect and
7372 inf_child_close. Store a pointer to the returned object.
7373 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7375 * target.c (auto_connect_native_target): New global.
7376 (show_default_run_target): New function.
7377 (find_default_run_target): Return NULL if automatically connecting
7378 to the native target is disabled.
7379 (_initialize_target): Install set/show auto-connect-native-target.
7380 * NEWS: Mention "set auto-connect-native-target", and "target
7382 * linux-nat.c (super_close): New global.
7383 (linux_nat_close): Call super_close.
7384 (linux_nat_add_target): Store a pointer to the base class's
7386 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7387 inf_child_maybe_unpush.
7388 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7390 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7391 the inferior. Use inf_child_maybe_unpush_target.
7392 (inf_ttrace_attach): Don't push the target if it is already
7394 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7395 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7396 after mourning the inferior. Use inf_child_maybe_unpush_target.
7397 (darwin_attach_pid): Don't push the target if it is already
7399 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7400 mourning the inferior. Use inf_child_maybe_unpush_target.
7401 (gnu_detach): Use inf_child_maybe_unpush_target.
7402 * go32-nat.c (go32_create_inferior): Don't push the target if it
7404 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7405 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7406 (procfs_open): Rename to ...
7407 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7408 comments. Can target_preopen before changing node. Call
7409 inf_child_open_target to push the target explicitly.
7410 (procfs_attach): Don't push the target if it is already pushed.
7411 (procfs_detach): Use inf_child_maybe_unpush_target.
7412 (procfs_create_inferior): Don't push the target if it is already
7414 (nto_native_ops): New global.
7415 (procfs_open): Reimplement.
7416 (procfs_native_open): New function.
7417 (init_procfs_targets): Install procfs_native_open as to_open of
7418 "target native". Store a pointer to the "native" target in
7420 * procfs.c (procfs_attach): Don't push the target if it is already
7422 (procfs_detach): Use inf_child_maybe_unpush_target.
7423 (procfs_mourn_inferior): Only unpush the target after mourning the
7424 inferior. Use inf_child_maybe_unpush_target.
7425 (procfs_init_inferior): Don't push the target if it is already
7427 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7428 if it is already pushed.
7430 2014-05-21 Pedro Alves <palves@redhat.com>
7432 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7433 and "procfs" targets are now called "native" instead.
7435 2014-05-21 Pedro Alves <palves@redhat.com>
7437 * go32-nat.c (go32_open): Delete.
7438 (go32_target): Don't override the to_open method.
7440 2014-05-21 Pedro Alves <palves@redhat.com>
7442 * nto-procfs.c (procfs_can_run): New function.
7443 (nto_procfs_ops): New global.
7444 (init_procfs_targets): New, based on procfs_target. Install
7445 "target native" in addition to "target procfs".
7446 (_initialize_procfs): Call init_procfs_targets instead of adding
7449 2014-05-21 Pedro Alves <palves@redhat.com>
7451 * windows-nat.c (windows_target): Don't override to_shortname,
7452 to_longname or to_doc.
7454 2014-05-21 Pedro Alves <palves@redhat.com>
7456 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7459 2014-05-21 Pedro Alves <palves@redhat.com>
7461 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7462 to_shortname, to_longname or to_doc.
7464 2014-05-21 Pedro Alves <palves@redhat.com>
7466 * go32-nat.c (go32_target): Don't override to_shortname,
7467 to_longname or to_doc.
7469 2014-05-21 Pedro Alves <palves@redhat.com>
7471 * inf-child.c (inf_child_open): Remove mention of "child".
7472 (inf_child_target): Rename target to "native" instead of "child".
7474 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7476 * Makefile.in (SFILES): Delete "regset.c".
7477 (COMMON_OBS): Delete "regset.o".
7479 * regset.h (regset_alloc): Delete prototype.
7481 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7483 * sparc-linux-tdep.c (sparc32_linux_gregset)
7484 (sparc32_linux_fpregset): New static regset structures.
7485 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7486 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7488 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7489 (sparc64_linux_fpregset): New static regset structures.
7490 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7491 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7492 New static regset structures.
7493 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7494 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7495 New static regset structures.
7496 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7497 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7498 New static regset structures.
7499 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7500 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7501 New static regset structures.
7502 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7504 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7506 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7507 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7508 register maps ("regmaps") from "*regset" to "*regmap". Do this
7509 for all regmap types and variables.
7510 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7511 (sparc32_linux_supply_core_gregset)
7512 (sparc32_linux_collect_core_gregset)
7513 (sparc32_linux_supply_core_fpregset)
7514 (sparc32_linux_collect_core_fpregset): Likewise.
7515 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7516 (sparc_gregmap, sparc_fpregmap): ... these.
7517 (sparc_supply_gregset, sparc_collect_gregset)
7518 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7519 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7520 (_initialize_sparc_nat): Rename regmaps.
7521 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7522 (sparc_gregmap, sparc_fpregmap): ... these.
7523 (sparc_supply_gregset, sparc_collect_gregset)
7524 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7525 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7527 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7528 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7530 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7532 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7533 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7534 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7536 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7537 (sparc32_bsd_fpregset): Rename to...
7538 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7539 (sparc32_bsd_fpregmap): ... these.
7540 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7541 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7542 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7543 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7544 (struct sparc_gregmap, struct sparc_fpregmap)
7545 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7546 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7547 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7548 (sparc32_supply_regset, sparc32_collect_gregset)
7549 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7551 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7552 (sparc64_linux_ptrace_gregmap): ... this.
7553 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7554 (_initialize_sparc64_linux_nat): Rename regmaps.
7555 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7556 (sparc64_linux_core_gregmap): ... this.
7557 (sparc64_linux_supply_core_gregset)
7558 (sparc64_linux_collect_core_gregset)
7559 (sparc64_linux_supply_core_fpregset)
7560 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7561 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7562 (sparc64_sol2_fpregset): Rename to...
7563 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7564 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7565 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7567 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7568 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7569 (sparc64_bsd_fpregset): Rename to...
7570 (struct sparc_gregmap, sparc64_sol2_gregmap)
7571 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7572 (sparc64_bsd_fpregmap): ... these.
7573 (sparc64_supply_gregset, sparc64_collect_gregset)
7574 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7576 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7577 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7578 (sparc64fbsd_gregmap): ... this.
7579 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7580 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7582 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7583 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7584 (sparc64nbsd_collect_fpregset): Likewise.
7585 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7586 (sparc64nbsd_gregmap): ... this.
7587 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7589 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7590 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7591 (sparc64obsd_gregmap): ... this.
7592 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7594 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7595 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7596 (sparc32nbsd_gregmap): ... this.
7597 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7600 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7602 * score-tdep.c (score7_linux_gregset): New static regset
7604 (score7_linux_regset_from_core_section): Remove dynamic regset
7606 (score_gdbarch_init): Drop allocation of tdep structure.
7607 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7609 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7611 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7613 (am33_regset_from_core_section): Remove dynamic regset
7616 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7618 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7619 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7621 (mips_linux_regset_from_core_section): Remove dynamic regset
7623 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7624 'gregset64', 'fpregset', and 'fpregset64'.
7625 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7626 deleted tdep fields.
7628 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7630 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7632 (amd64_regset_from_core_section): Remove dynamic regset
7634 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7636 (amd64obsd_regset_from_core_section): Remove dynamic regset
7638 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7640 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7641 x86-common regset supply function.
7642 * i386-tdep.c (i386_collect_gregset): Make static.
7643 (i386_gregset): New global regset structure.
7644 (i386_fpregset, i386_xstateregset): New static regset structures.
7645 (i386_regset_from_core_section): Remove dynamic regset
7647 (i386_gdbarch_init): Remove initialization of tdep fields
7648 'gregset', 'fpregset', and 'xstateregset'.
7649 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7650 'fpregset', and 'xstateregset'.
7651 (i386_collect_gregset): Remove prototype.
7652 (i386_gregset): New declaration.
7653 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7655 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7658 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7660 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7661 (arm_linux_vfpregset): New static regset structures.
7662 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7664 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7665 and 'vfpregset' fields.
7667 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7669 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7670 (aarch64_linux_fpregset): New static regset structures.
7671 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7672 of regset structures.
7673 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7676 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7678 * regset.h (struct regset): Remove gdbarch field.
7679 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7680 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7681 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7683 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7684 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7685 (ppc32_linux_vsxregset): Likewise.
7686 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7687 via the regcache instead of the regset.
7688 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7689 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7690 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7691 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7694 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7696 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7697 Constify structures.
7698 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7699 (alphanbsd_aout_gregset): Likewise.
7700 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7701 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7703 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7704 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7706 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7707 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7708 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7709 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7710 * m88k-tdep.c (m88k_gregset): Likewise.
7711 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7712 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7713 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7714 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7715 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7716 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7717 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7718 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7719 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7721 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7722 * sh-tdep.h (sh_corefile_gregset): Likewise.
7723 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7724 * vax-tdep.c (vax_gregset): Likewise.
7726 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7728 Fix TLS access for -static -pthread.
7729 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7730 (try_thread_db_load_1): Initialize it.
7731 (thread_db_get_thread_local_address): Call it if LM is zero.
7732 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7733 * target.h (struct target_ops) (to_get_thread_local_address): Add
7734 load_module_addr comment.
7736 2014-05-21 Pedro Alves <palves@redhat.com>
7738 * dcache.c (dcache_read_memory_partial): If reading the cache line
7739 fails, fallback to reading just the memory the caller wanted.
7741 2014-05-20 Doug Evans <dje@google.com>
7743 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7744 instead of get_current_arch.
7746 2014-05-20 Pedro Alves <palves@redhat.com>
7748 * NEWS: Mention that compare-sections now works with all targets.
7750 * remote.c (PACKET_qCRC): New enum value.
7751 (remote_verify_memory): Don't send qCRC if the target has no
7752 execution. Use packet_support/packet_ok. If the target doesn't
7753 support the qCRC packet, fallback to a deep memory copy.
7754 (compare_sections_command): Say "target image" instead of "remote
7756 (_initialize_remote): Add PACKET_qCRC to the list of config
7757 packets that have no associated command. Extend comment.
7758 * target.c (simple_verify_memory, default_verify_memory): New
7760 * target.h (struct target_ops) <to_verify_memory>: Default to
7761 default_verify_memory.
7762 (simple_verify_memory): New declaration.
7763 * target-delegates.c: Regenerate.
7765 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7767 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7769 2014-05-20 Hui Zhu <hui@codesourcery.com>
7770 Yao Qi <yao@codesourcery.com>
7773 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7774 and change address of sp and pc.
7776 2014-05-19 Tom Tromey <tromey@redhat.com>
7778 * gdbtypes.c (rank_function): Use XNEWVEC.
7779 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7781 2014-05-19 Doug Evans <dje@google.com>
7783 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7784 build_type_unit_groups and moved closer to only caller. Remove
7785 arguments. All references updated. Remove outdated .gdb_index
7787 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7788 build_type_psymtabs_1.
7790 2014-05-19 Doug Evans <dje@google.com>
7792 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7793 n_type_unit_groups, all_type_unit_groups. All uses removed.
7794 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7795 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7796 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7797 (add_type_unit_group_to_table): Delete.
7799 2014-05-19 Doug Evans <dje@google.com>
7801 * eval.c (evaluate_subexp_standard): Add some comments.
7803 2014-05-17 Doug Evans <xdje42@gmail.com>
7805 * progspace.c (remove_program_space): Delete, unused.
7806 * progspace.h (remove_program_space): Ditto.
7808 2014-05-17 Doug Evans <xdje42@gmail.com>
7810 * inferior.c (prune_inferiors): Fix comment.
7811 (remove_inferior_command): Call prune_program_spaces.
7813 2014-05-16 Doug Evans <dje@google.com>
7815 New command line option -D.
7817 * main.c (set_gdb_data_directory): New function.
7818 (captured_main): Recognize -D. Flag error for --data-directory "".
7819 Call set_gdb_data_directory.
7820 (print_gdb_help): Print --data-directory, -D.
7821 * main.h (set_gdb_data_directory): Declare.
7822 * top.c (staged_gdb_datadir): New static global.
7823 (set_gdb_datadir): Call set_gdb_data_directory
7824 (show_gdb_datadir): New function.
7825 (init_main): Update init of data-directory parameter.
7827 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7829 Import the "dirfd" gnulib module.
7830 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7831 * gnulib/aclocal.m4: Update.
7832 * gnulib/config.in: Update.
7833 * gnulib/configure: Update.
7834 * gnulib/import/Makefile.am: Update.
7835 * gnulib/import/Makefile.in: Update.
7836 * gnulib/import/dirfd.c: New.
7837 * gnulib/import/m4/dirfd.m4: New.
7838 * gnulib/import/m4/gnulib-cache.m4: Update.
7839 * gnulib/import/m4/gnulib-comp.m4: Update.
7841 2014-05-16 Pierre Muller <muller@sourceware.org>
7842 Yao Qi <yao@codesourcery.com>
7844 * valprint.c (print_wchar): Move the code on checking whether
7845 W is a printable wide char to the default branch of switch
7846 statement below. Call wchar_printable instead of gdb_iswprint.
7848 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7850 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7851 ldr.w and ldrd instructions.
7853 2014-05-15 Doug Evans <dje@google.com>
7855 * dwarf2read.c (read_structure_type): Delete outdated comments.
7857 2014-05-14 Tom Tromey <tromey@redhat.com>
7859 * macrocmd.c (print_macro_definition): Reindent.
7861 2014-05-13 Doug Evans <xdje42@gmail.com>
7863 * python/py-cmd.c (cmdpy_completer): Add comment.
7864 (completers): Make const.
7866 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7868 * infrun.c (resume): Remove should_resume (unused). Move up
7869 declaration of resume_ptid.
7871 2014-05-13 Tom Tromey <tromey@redhat.com>
7873 * language.h (unop_type_check): Remove.
7874 (binop_type_check): Don't declare.
7876 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7878 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7879 call to regcache_raw_collect.
7881 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7883 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7884 mi_console->quote as the quoting character.
7886 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7888 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7890 2014-04-29 Tom Tromey <tromey@redhat.com>
7892 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7893 "show debug varobj".
7895 2014-05-07 Kyle McMartin <kyle@redhat.com>
7897 Pushed by Joel Brobecker <brobecker@adacore.com>.
7898 * aarch64-tdep.c (aarch64_software_single_step): New function.
7899 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7900 with aarch64_software_single_step.
7902 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7906 2014-05-05 Keith Seitz <keiths@redhat.com>
7908 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7909 variable or history value is successfully parsed.
7911 2014-05-05 Yao Qi <yao@codesourcery.com>
7912 Pedro Alves <palves@redhat.com>
7914 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7915 address of blocks that intersects the requested range. Trim
7916 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7918 * ctf.c (ctf_xfer_partial): Likewise.
7920 2014-05-05 Yao Qi <yao@codesourcery.com>
7922 * printcmd.c (display_command): Remove the check to
7923 target_has_execution.
7925 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7927 * ppcobsd-nat.c: Include "obsd-nat.h".
7928 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7930 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7932 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7934 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7935 and 16-bit signed and unsigned arguments. Update comment.
7936 (stap_parse_probe_arguments): Extend code to handle such
7937 arguments. Use warning instead of complaint to notify about
7938 unrecognized bitness.
7940 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7942 PR breakpoints/16889
7943 * stap-probe.c (stap_parse_probe_arguments): Simplify
7944 check for non-prefixed probes (i.e., probes whose
7945 arguments do not start with "N@"). Always set the
7946 argument type to a sane value.
7948 2014-05-01 David Taylor <dtaylor@emc.com>
7950 * remote.c (compare_sections_command): Add -r option to compare
7951 all loadable read-only sections.
7953 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7955 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7956 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7958 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7959 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7960 Remove unused CORE_ADDR argument. Update all callers.
7962 2014-04-29 Pedro Alves <palves@redhat.com>
7964 * remote.c (struct packet_config) <detect>: Extend comment.
7965 (add_packet_config_cmd): Don't set the config's detect or support
7967 (init_all_packet_configs): Also initialize the config's 'detect'
7969 (reset_all_packet_configs_support): New function.
7970 (remote_open_1): Call reset_all_packet_configs_support instead of
7971 init_all_packet_configs.
7972 (_initialize_remote): Initialize all packet configs. Assert that
7973 all packets have an associated command, except a few known
7976 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7978 * dwarf2read.c (read_subrange_type): Handle dynamic
7979 DW_AT_lower_bound attributes.
7981 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7983 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7984 dynamic bounds before computing its upper bound.
7985 (ada_discrete_type_low_bound): Same as above with the lower bound.
7987 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7989 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7990 range types. Adjust the array handling implementation to
7991 take advantage of this change.
7992 (resolve_dynamic_range): New function, mostly extracted from
7993 resolve_dynamic_bounds.
7994 (resolve_dynamic_array): New function, mostly extracted from
7995 resolve_dynamic_bounds.
7996 (resolve_dynamic_bounds): Delete.
7997 (resolve_dynamic_type): Reimplement. Add handling of
7998 TYPE_CODE_RANGE types.
8000 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8002 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8003 handling of parallel ___XA types.
8005 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8007 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8008 unnecessary second call to static_unwrap_type.
8010 2014-04-27 Hui Zhu <hui@codesourcery.com>
8012 * stack.c (print_frame_info): Call do_gdb_disassembly with
8013 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8015 2014-04-26 Doug Evans <xdje42@gmail.com>
8017 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8019 2014-04-25 Pedro Alves <palves@redhat.com>
8022 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8023 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8024 and newline from built string.
8025 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8026 (linux_ptrace_attach_fail_reason): ... this.
8027 * linux-nat.c (linux_nat_attach): Adjust to use
8028 linux_ptrace_attach_fail_reason.
8030 2014-04-25 Pedro Alves <palves@redhat.com>
8032 * remote.c (struct remote_state): Remove multi_process_aware,
8033 non_stop_aware, cond_tracepoints, cond_breakpoints,
8034 breakpoint_commands, fast_tracepoints, static_tracepoints,
8035 install_in_trace, disconnected_tracing,
8036 enable_disable_tracepoints, string_tracing, and
8037 augmented_libraries_svr4_read fields.
8038 (remote_multi_process_p): Move further below in the file.
8039 (struct packet_config): Add comments.
8040 (update_packet_config): Delete function.
8041 (show_packet_config_cmd): Use packet_config_support.
8042 (add_packet_config_cmd): Use NULL as set callback.
8043 (packet_ok): "set remote foo-packet"-style commands no longer
8044 change config->supported -- adjust.
8045 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8046 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8047 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8048 (PACKET_QNonStop, PACKET_multiprocess_feature)
8049 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8050 (PACKET_DisconnectedTracing_feature)
8051 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8052 (set_remote_protocol_packet_cmd): Delete function.
8053 (packet_config_support, packet_support): New functions.
8054 (set_remote_protocol_Z_packet_cmd): Don't call
8055 update_packet_config.
8056 (remote_query_attached, remote_pass_signals)
8057 (remote_program_signals, remote_threads_info)
8058 (remote_threads_extra_info, remote_start_remote): Use
8060 (remote_start_remote): Use packet_config_support and
8062 (init_all_packet_configs): Set all packets to unknown support,
8063 instead of calling update_packet_config.
8064 (remote_check_symbols): Use packet_support.
8065 (remote_supported_packet): Unconditionally set the packet config's
8067 (remote_multi_process_feature, remote_non_stop_feature)
8068 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8069 (remote_breakpoint_commands_feature)
8070 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8071 (remote_install_in_trace_feature)
8072 (remote_disconnected_tracing_feature)
8073 (remote_enable_disable_tracepoint_feature)
8074 (remote_string_tracing_feature)
8075 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8076 (remote_protocol_features): Adjust to use remote_supported_packet
8077 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8078 "ConditionalTracepoints", "ConditionalBreakpoints",
8079 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8080 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8081 "EnableDisableTracepoints", and "tracenz".
8082 (remote_query_supported): Use packet_support.
8083 (remote_open_1): Adjust.
8084 (extended_remote_attach_1): Use packet_support. Switch on the
8085 result of packet_ok instead of checking whether the packet ended
8087 (remote_vcont_resume): Use packet_support.
8088 (remote_resume, remote_stop_ns, fetch_register_using_p)
8089 (remote_prepare_to_store, store_register_using_P)
8090 (check_binary_download, remote_write_bytes): Use packet_support.
8091 (remote_vkill): Use packet_support. Switch on the result of
8092 packet_ok instead of checking whether the packet ended up
8094 (extended_remote_supports_disable_randomization): Use
8096 (extended_remote_run): Switch on the result of packet_ok instead
8097 of checking whether the packet ended up disabled.
8098 (remote_insert_breakpoint, remote_remove_breakpoint)
8099 (remote_insert_watchpoint, remote_remove_watchpoint)
8100 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8102 (remote_search_memory): Use packet_config_support.
8103 (remote_get_thread_local_address, remote_get_tib_address)
8104 (remote_hostio_send_command, remote_can_execute_reverse): Use
8106 (remote_supports_cond_tracepoints)
8107 (remote_supports_cond_breakpoints)
8108 (remote_supports_fast_tracepoints)
8109 (remote_supports_static_tracepoints)
8110 (remote_supports_install_in_trace)
8111 (remote_supports_enable_disable_tracepoint)
8112 (remote_supports_string_tracing)
8113 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8114 the packet config says the feature is enabled or disabled.
8115 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8116 (remote_get_trace_status): Use packet_support.
8117 (remote_set_disconnected_tracing): Adjust to check whether the
8118 feature is enabled with packet_support.
8119 (remote_set_trace_buffer_size, remote_use_agent)
8120 (remote_can_use_agent, remote_supports_btrace): Use
8122 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8123 Use packet_config_support.
8124 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8125 the packet config says the feature is enabled or disabled.
8126 (set_range_stepping): Use packet_support.
8128 2014-04-25 Tom Tromey <tromey@redhat.com>
8130 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8133 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8135 * NEWS: Mention support for C99 variable length arrays.
8137 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8139 * ada-lang.c (standard_exc): Expand introductory comment.
8141 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8142 Walfred Tedeschi <walfred.tedeschi@intel.com>
8144 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8146 (amd64_linux_read_description): Add code to handle AVX512 xstate
8147 mask and return respective tdesc.
8148 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8149 and features/i386/x32-avx512-linux.c.
8150 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8151 (amd64_linux_core_read_description): Add code to handle AVX512
8152 xstate mask and return respective tdesc.
8153 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8154 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8156 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8157 (tdesc_amd64_avx512_linux): New prototype.
8158 (tdesc_x32_avx512_linux): Likewise.
8159 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8160 features/i386/x32-avx512.c.
8161 (amd64_ymm_avx512_names): New register names for pseudo
8163 (amd64_ymmh_avx512_names): New register names for raw registers
8165 (amd64_k_names): New register names for K registers.
8166 (amd64_zmmh_names): New register names for ZMM raw registers.
8167 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8168 (amd64_xmm_avx512_names): New register names for XMM16-31
8170 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8172 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8173 if feature is present.
8174 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8175 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8176 (AMD64_NUM_REGS): Adjust to new number of registers.
8177 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8178 registers supplied via XSTATE by AVX512 registers.
8179 (i386_linux_read_description): Add case for AVX512.
8180 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8181 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8182 (i386_linux_core_read_description): Add case for AVX512.
8183 (i386_linux_init_abi): Install supported register note section
8185 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8187 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8188 registers to be number of zmm7h + 1.
8189 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8190 * i386-tdep.c: Include features/i386/i386-avx512.c.
8191 (i386_zmm_names): Add ZMM pseudo register names array.
8192 (i386_zmmh_names): Add ZMM raw register names array.
8193 (i386_k_names): Add K raw register names array.
8194 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8195 registers. AVX512 has 16 more ZMM registers than there are YMM
8197 (i386_zmmh_regnum_p): Add function to look up register number of
8199 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8200 (i386_k_regnum_p): Likewise for K raw registers.
8201 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8202 registers added by AVX512.
8203 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8204 registers added by AVX512.
8205 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8207 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8208 (i386_pseudo_register_name): Add ZMM pseudo registers.
8209 (i386_zmm_type): Construct and return vector registers type for ZMM
8211 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8212 ZMM0-31 pseudo registers and K registers.
8213 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8214 and YMM16-31 registers from register cache.
8215 (i386_pseudo_register_write): Add code to write K, ZMM and
8217 (i386_register_reggroup_p): Add code to include/exclude AVX512
8218 registers in/from respective register groups.
8219 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8220 registers if feature is present in xcr0.
8221 (i386_gdbarch_init): Add code to initialize AVX512 feature
8222 variables in tdep structure, wire in pseudo registers and call
8223 initialize_tdesc_i386_avx512.
8224 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8226 (i386_regnum): Add AVX512 registers.
8227 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8228 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8229 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8230 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8232 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8233 (i386_ymm_avx512_regnum_p): Likewise.
8234 (i386_k_regnum_p): Likewise.
8235 (i386_zmm_regnum_p): Likewise.
8236 (i386_zmmh_regnum_p): Likewise.
8237 * i387-tdep.c : Update year in copyright notice.
8238 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8240 (XSAVE_YMM_AVX512_ADDR): New macro.
8241 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8243 (XSAVE_XMM_AVX512_ADDR): New macro.
8244 (xsave_avx512_k_offset): New table for K register offsets in
8246 (XSAVE_AVX512_K_ADDR): New macro.
8247 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8249 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8250 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8252 (i387_collect_xsave): Add code to collect AVX512 registers from
8254 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8255 of XMM16-31 registers.
8256 (I387_NUM_K_REGS): New define for number of K registers.
8257 (I387_K0_REGNUM): New define for K0 register number.
8258 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8259 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8260 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8262 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8263 (I387_XMM16_REGNUM): New define for XMM16 register number.
8264 (I387_YMM0_REGNUM): New define for YMM0 register number.
8265 (I387_KEND_REGNUM): New define for last K register number.
8266 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8267 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8269 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8271 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8273 * features/Makefile: Add AVX512 related files.
8274 * features/i386/32bit-avx512.xml: New file.
8275 * features/i386/64bit-avx512.xml: Likewise.
8276 * features/i386/amd64-avx512-linux.c: Likewise.
8277 * features/i386/amd64-avx512-linux.xml: Likewise.
8278 * features/i386/amd64-avx512.c: Likewise.
8279 * features/i386/amd64-avx512.xml: Likewise.
8280 * features/i386/i386-avx512-linux.c: Likewise.
8281 * features/i386/i386-avx512-linux.xml: Likewise.
8282 * features/i386/i386-avx512.c: Likewise.
8283 * features/i386/i386-avx512.xml: Likewise.
8284 * features/i386/x32-avx512-linux.c: Likewise.
8285 * features/i386/x32-avx512-linux.xml: Likewise.
8286 * features/i386/x32-avx512.c: Likewise.
8287 * features/i386/x32-avx512.xml: Likewise.
8288 * regformats/i386/amd64-avx512-linux.dat: New file.
8289 * regformats/i386/amd64-avx512.dat: Likewise.
8290 * regformats/i386/i386-avx512-linux.dat: Likewise.
8291 * regformats/i386/i386-avx512.dat: Likewise.
8292 * regformats/i386/x32-avx512-linux.dat: Likewise.
8293 * regformats/i386/x32-avx512.dat: Likewise.
8294 * NEWS: Add note about new support for AVX512.
8297 2014-04-23 Pedro Alves <palves@redhat.com>
8299 * breakpoint.c (insert_bp_location): Tolerate errors if the
8300 breakpoint is set in a user-loaded objfile.
8301 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8302 location is marked shlib_disabled. If the breakpoint is set in a
8303 user-loaded objfile is a GDB-side memory breakpoint, validate it
8304 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8305 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8307 * mem-break.c (memory_validate_breakpoint): New function.
8308 * objfiles.c (userloaded_objfile_contains_address_p): New
8310 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8311 * target.h (memory_validate_breakpoint): New declaration.
8313 2014-04-23 Pedro Alves <palves@redhat.com>
8315 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8316 the breakpoint is set in a shared library, only suppress
8317 errors for software breakpoints, not hardware breakpoints.
8319 2014-04-22 Pedro Alves <palves@redhat.com>
8321 * infrun.c (schedlock_applies): New function, factored out from
8322 find_thread_needs_step_over.
8323 (find_thread_needs_step_over): Use it.
8324 (switch_back_to_stepped_thread): Always clear trap_expected if the
8325 step over is finished. Return early if scheduler locking applies.
8326 Look for the stepping thread and a potential step-over thread with
8328 (currently_stepping_or_nexting_callback): Delete.
8330 2014-04-22 Nick Clifton <nickc@redhat.com>
8332 * NEWS: Mention that ARM sim now supports tracing.
8334 2014-04-22 Yao Qi <yao@codesourcery.com>
8336 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8338 * tracefile.c (tracefile_fetch_registers): ... it. New
8340 * tracefile.h (tracefile_fetch_registers): Declare.
8341 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8342 tracefile_fetch_registers.
8344 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8347 * windows-nat.c (thread_rec): Don't display a warning when
8348 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8349 fails for any reason, set th->suspended to -1, so that we don't
8350 try to resume such a thread. Also, don't return NULL in these
8351 cases, to avoid completely ruin the session due to "PC register is
8352 not available" error.
8353 (do_windows_fetch_inferior_registers): Check errors in
8354 GetThreadContext call.
8355 (windows_continue): Accept an additional argument KILLED; if not
8356 zero, ignore errors in the SetThreadContext call, since the
8357 inferior was killed and is shutting down.
8358 (windows_resume, get_windows_debug_event)
8359 (windows_create_inferior, windows_mourn_inferior)
8360 (windows_kill_inferior): All callers of windows_continue changed
8361 to adjust to its new calling sequence.
8363 2014-04-19 Yao Qi <yao@codesourcery.com>
8365 * ctf.c (ctf_open): Call post_create_inferior.
8367 2014-04-19 Yao Qi <yao@codesourcery.com>
8369 * ctf.c (handle_id): New static variable.
8370 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8371 value. Get the declaration of event "register" and get length
8372 of field "contents".
8374 2014-04-19 Yao Qi <yao@codesourcery.com>
8376 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8378 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8380 * valops.c (oload_method_static): Remove unnecessary argument
8381 METHOD. Update all callers.
8383 2014-04-18 Pedro alves <palves@redhat.com>
8384 Tom Tromey <tromey@redhat.com>
8387 * frame.c (get_prev_frame_1): Rename to ...
8388 (get_prev_frame_always): ... this, and make extern. Adjust.
8389 (skip_artificial_frames): Use get_prev_frame_always.
8390 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8391 (get_frame_unwind_stop_reason): Adjust to rename.
8392 * frame.h (get_prev_frame_always): Declare.
8393 * inline-frame.c: Include frame.h.
8394 (inline_frame_this_id): Use get_prev_frame_always.
8396 2014-04-18 Tristan Gingold <gingold@adacore.com>
8398 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8399 code by using bfd_mach_o_get_base_address.
8401 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8403 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8404 (spu_ax_pseudo_register_collect): New function.
8405 (spu_ax_pseudo_register_push_stack): Likewise.
8406 (spu_dwarf_reg_to_regnum): Likewise.
8407 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8409 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8411 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8412 Replace FRAME argument with FRAME_ID.
8413 * gdbarch.c, gdbarch.h: Regenerate.
8414 * findvar.c (default_value_from_register): Add GDBARCH argument;
8415 replace FRAME by FRAME_ID. No longer call get_frame_id.
8416 (value_from_register): Update call to gdbarch_value_from_register.
8417 * value.h (default_value_from_register): Update prototype.
8418 * s390-linux-tdep.c (s390_value_from_register): Update interface
8419 and call to default_value_from_register.
8420 * spu-tdep.c (spu_value_from_register): Likewise.
8422 * findvar.c (address_from_register): Remove TYPE argument.
8423 Do not call value_from_register; use gdbarch_value_from_register
8424 with null_frame_id instead.
8425 * value.h (address_from_register): Update prototype.
8426 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8427 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8428 address_from_register interface change.
8430 2014-04-17 Yao Qi <yao@codesourcery.com>
8432 * gdbtypes.h: Update comments to link to types and macros'
8435 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8437 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8439 2014-04-16 Keith Seitz <keiths@redhat.com>
8442 * dwarf2read.c (skip_one_die): Check that all relative-offset
8443 sibling DIEs fall within range of the current reader's buffer.
8444 (read_partial_die): Likewise.
8446 2014-04-16 Keith Seitz <keiths@redhat.com>
8449 * cp-namespace.c (lookup_symbol_file): If the type name of
8450 `this' is NULL, return immediately.
8452 2014-04-14 Keith Seitz <keiths@redhat.com>
8455 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8456 from symbol_matches_domain in symtab.c. All local callers
8457 of symbol_matches_domain updated.
8458 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8459 search STRUCT_DOMAIN.
8460 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8461 independently. standard_lookup will do that automatically.
8462 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8463 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8464 (cp_lookup_symbol_in_namespace): Likewise.
8465 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8466 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8467 may return a STRUCT_DOMAIN match.
8468 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8469 * cp-support.c: Include language.h.
8470 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8472 * psymtab.c (match_partial_symbol): Compare the requested
8473 domain with the symbol's domain directly.
8474 (lookup_partial_symbol): Likewise.
8475 * symtab.c (lookup_symbol_in_language): Explain when/why
8476 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8477 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8478 appropriate languages.
8479 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8480 and moved to ada-lang.c
8481 (lookup_block_symbol): Explain that this function only returns
8482 symbol matching the requested DOMAIN.
8483 Compare the requested domain with the symbol's domain directly.
8484 (iterate_over_symbols): Compare the requested domain with the
8485 symbol's domain directly.
8486 * symtab.h (symbol_matches_domain): Remove.
8488 2014-04-14 Tom Tromey <tromey@redhat.com>
8491 * c-exp.y (type_aggregate_p): New function.
8492 (qualified_name, classify_inner_name): Use it.
8493 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8494 and TYPE_TARGET_TYPE of an enum type.
8495 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8497 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8498 handle TYPE_DECLARED_CLASS.
8499 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8501 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8502 * valops.c (enum_constant_from_type): New function.
8503 (value_aggregate_elt): Use it.
8504 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8507 2014-04-14 Tom Tromey <tromey@redhat.com>
8509 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8510 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8512 * value.h (value_aggregate_elt): Update.
8514 2014-04-14 Tom Tromey <tromey@redhat.com>
8516 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8518 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8520 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8521 (evaluate_subexp_standard): Pass noside argument.
8522 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8523 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8524 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8525 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8526 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8528 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8530 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8531 points to a constant blob.
8533 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8535 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8536 property and store it as the high bound and flag the range accordingly.
8537 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8538 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8539 * gdbtypes.h (enum range_flags): New enum.
8540 (struct range_bounds): Add flags member.
8542 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8544 * c-typeprint.c (c_type_print_varspec_suffix): Added
8545 check for not yet resolved high bound. If unresolved, print
8546 "variable length" string to the console instead of random
8549 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8551 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8553 (ada_template_to_fixed_record_type_1): Likewise.
8554 (ada_to_fixed_type_1): Likewise.
8555 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8556 (cp_print_value): Likewise.
8557 * d-valprint.c (dynamic_array_type): Likewise.
8558 * findvar.c (address_of_variable): Likewise.
8559 * jv-valprint.c (java_value_print): Likewise.
8560 * valops.c (value_ind): Likewise.
8561 * value.c (coerce_ref): Likewise.
8563 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8565 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8566 value and retrieve the dynamic type size.
8568 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8570 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8571 passed to sizeof is dynamic evaluate the argument to compute the length.
8573 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8574 Joel Brobecker <brobecker@adacore.com>
8576 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8577 (dwarf2_evaluate_property): New function.
8578 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8579 * dwarf2read.c (attr_to_dynamic_prop): New function.
8580 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8582 * gdbtypes.c: Include dwarf2loc.h.
8583 (is_dynamic_type): New function.
8584 (resolve_dynamic_type): New function.
8585 (resolve_dynamic_bounds): New function.
8586 (get_type_length): New function.
8587 (check_typedef): Use get_type_length to compute type length.
8588 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8589 (TYPE_LOW_BOUND_KIND): New macro.
8590 (is_dynamic_type): New function prototype.
8591 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8592 to resolve dynamic properties of the type. Update comment.
8593 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8595 2014-04-14 Richard Henderson <rth@redhat.com>
8597 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8599 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8600 Doug Evans <xdje42@gmail.com>
8602 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8603 dereference TYPE_CODE_REF values.
8605 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8607 Revert the following changes due to regressions:
8609 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8610 (dwarf2_evaluate_property): New function.
8611 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8612 * dwarf2read.c (attr_to_dynamic_prop): New function.
8613 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8615 * gdbtypes.c: Include dwarf2loc.h.
8616 (is_dynamic_type): New function.
8617 (resolve_dynamic_type): New function.
8618 (resolve_dynamic_bounds): New function.
8619 (get_type_length): New function.
8620 (check_typedef): Use get_type_length to compute type length.
8621 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8622 (TYPE_LOW_BOUND_KIND): New macro.
8623 (is_dynamic_type): New function prototype.
8624 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8625 to resolve dynamic properties of the type. Update comment.
8626 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8628 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8629 passed to sizeof is dynamic evaluate the argument to compute the length.
8631 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8632 value and retrieve the dynamic type size.
8634 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8635 (ada_template_to_fixed_record_type_1): Likewise.
8636 (ada_to_fixed_type_1): Likewise.
8637 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8638 (cp_print_value): Likewise.
8639 * d-valprint.c (dynamic_array_type): Likewise.
8640 * eval.c (evaluate_subexp_with_coercion): Likewise.
8641 * findvar.c (address_of_variable): Likewise.
8642 * jv-valprint.c (java_value_print): Likewise.
8643 * valops.c (value_ind): Likewise.
8644 * value.c (coerce_ref): Likewise.
8646 * c-typeprint.c (c_type_print_varspec_suffix): Added
8647 check for not yet resolved high bound. If unresolved, print
8648 "variable length" string to the console instead of random
8651 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8652 property and store it as the high bound and flag the range accordingly.
8653 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8654 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8655 * gdbtypes.h (enum range_flags): New enum.
8656 (struct range_bounds): Add flags member.
8658 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8659 points to a constant blob.
8661 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8662 (evaluate_subexp_standard): Pass noside argument.
8663 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8664 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8665 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8666 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8667 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8669 2014-04-11 Keith Seitz <keiths@redhat.com>
8672 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8673 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8676 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8678 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8679 (evaluate_subexp_standard): Pass noside argument.
8680 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8681 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8682 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8683 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8684 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8686 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8688 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8689 points to a constant blob.
8691 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8693 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8694 property and store it as the high bound and flag the range accordingly.
8695 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8696 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8697 * gdbtypes.h (enum range_flags): New enum.
8698 (struct range_bounds): Add flags member.
8700 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8702 * c-typeprint.c (c_type_print_varspec_suffix): Added
8703 check for not yet resolved high bound. If unresolved, print
8704 "variable length" string to the console instead of random
8707 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8709 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8710 (ada_template_to_fixed_record_type_1): Likewise.
8711 (ada_to_fixed_type_1): Likewise.
8712 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8713 (cp_print_value): Likewise.
8714 * d-valprint.c (dynamic_array_type): Likewise.
8715 * eval.c (evaluate_subexp_with_coercion): Likewise.
8716 * findvar.c (address_of_variable): Likewise.
8717 * jv-valprint.c (java_value_print): Likewise.
8718 * valops.c (value_ind): Likewise.
8719 * value.c (coerce_ref): Likewise.
8721 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8723 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8724 value and retrieve the dynamic type size.
8726 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8728 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8729 passed to sizeof is dynamic evaluate the argument to compute the length.
8731 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8733 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8734 (dwarf2_evaluate_property): New function.
8735 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8736 * dwarf2read.c (attr_to_dynamic_prop): New function.
8737 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8739 * gdbtypes.c: Include dwarf2loc.h.
8740 (is_dynamic_type): New function.
8741 (resolve_dynamic_type): New function.
8742 (resolve_dynamic_bounds): New function.
8743 (get_type_length): New function.
8744 (check_typedef): Use get_type_length to compute type length.
8745 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8746 (TYPE_LOW_BOUND_KIND): New macro.
8747 (is_dynamic_type): New function prototype.
8748 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8749 to resolve dynamic properties of the type. Update comment.
8750 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8752 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8754 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8755 declaring high/low bounds and change uses accordingly. Call
8756 create_range_type instead of create_static_range_type.
8757 * gdbtypes.c (create_range_type): New function.
8758 (create_range_type): Convert bounds into struct bound_prop and pass
8759 them to create_range_type.
8760 * gdbtypes.h (struct bound_prop): New struct.
8761 (create_range_type): New function prototype.
8762 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8763 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8764 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8766 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8768 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8770 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8771 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8772 * ada-lang.c: All uses of create_range_type updated.
8773 * coffread.c: All uses of create_range_type updated.
8774 * dwarf2read.c: All uses of create_range_type updated.
8775 * f-exp.y: All uses of create_range_type updated.
8776 * m2-valprint.c: All uses of create_range_type updated.
8777 * mdebugread.c: All uses of create_range_type updated.
8778 * stabsread.c: All uses of create_range_type updated.
8779 * valops.c: All uses of create_range_type updated.
8780 * valprint.c: All uses of create_range_type updated.
8782 2014-04-10 Pedro Alves <palves@redhat.com>
8784 * breakpoint.c (single_step_breakpoints)
8785 (single_step_gdbarch): Move up in the file.
8786 (one_breakpoint_xfer_memory): New function, factored out from ...
8787 (breakpoint_xfer_memory): ... here. Also process single-step
8790 2014-04-09 Tristan Gingold <gingold@adacore.com>
8792 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8794 (darwin_decode_exception_message): Free port only after use.
8796 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8798 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8799 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8800 when setting the size of call_length.
8802 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8804 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8805 dereference TYPE_CODE_REF values.
8807 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8809 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8810 end of warning message.
8812 2014-04-03 Doug Evans <dje@google.com>
8814 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8815 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8817 2014-04-02 Alan Modra <amodra@gmail.com>
8819 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8820 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8821 (struct symbol_file_add_from_memory_args): Add size field.
8822 (find_vdso_size): New function.
8823 (add_vsyscall_page): Attempt to find vdso size.
8825 2014-04-01 Doug Evans <dje@google.com>
8827 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8829 2014-04-01 Tristan Gingold <gingold@adacore.com>
8831 * darwin-nat.c (darwin_encode_reply): Add prototype.
8832 (darwin_decode_exception_message): Reply to unknown inferiors.
8833 (darwin_decode_message): Handle message by id. Ignore message
8834 to unknown inferior.
8835 (darwin_wait): Discard unknown messages, add debug trace.
8837 2014-03-31 Doug Evans <dje@google.com>
8839 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8842 2014-03-31 Doug Evans <dje@google.com>
8844 New option "set print symbol-loading".
8846 * solib.c (solib_read_symbols): Only print symbol loading messages
8848 (solib_add): If symbol loading is in "brief" mode, notify user
8849 symbols are being loaded.
8850 (reload_shared_libraries_1): Ditto.
8851 * symfile.c (print_symbol_loading_off): New static global.
8852 (print_symbol_loading_brief): New static global.
8853 (print_symbol_loading_full): New static global.
8854 (print_symbol_loading_enums): New static global.
8855 (print_symbol_loading): New static global.
8856 (print_symbol_loading_p): New function.
8857 (symbol_file_add_with_addrs): Only print symbol loading messages
8859 (_initialize_symfile): Register "print symbol-loading" set/show
8861 * symfile.h (print_symbol_loading_p): Declare.
8863 2014-03-30 Doug Evans <xdje42@gmail.com>
8865 * infrun.c (set_last_target_status): New function.
8866 (handle_inferior_event): Call it.
8868 2014-03-30 Doug Evans <xdje42@gmail.com>
8870 * inferior.h (enum stop_kind): Improve comment.
8872 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8874 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8875 a reference, strip the reference layer before calling
8876 the lang_ops value_has_mutated callback.
8878 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8880 Remove some globals from our parser.
8881 * language.c (unk_lang_parser): Add "struct parser_state"
8883 * language.h (struct language_defn) <la_parser>: Likewise.
8884 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8885 (initialize_expout): Add "struct parser_state" argument.
8886 Rewrite function to use the parser state.
8887 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8888 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8889 write_exp_elt_longcst, write_exp_elt_dblcst,
8890 write_exp_elt_decfloatcst, write_exp_elt_type,
8891 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8892 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8893 write_dollar_variable): Likewise.
8894 (parse_exp_in_context_1): Use parser state.
8895 (insert_type_address_space): Add "struct parser_state" argument.
8897 (increase_expout_size): New function.
8898 * parser-defs.h: Forward declare "struct language_defn" and
8899 "struct parser_state".
8900 (expout, expout_size, expout_ptr): Remove extern declarations.
8901 (parse_gdbarch, parse_language): Rewrite macro declarations to
8902 accept the parser state.
8903 (struct parser_state): New struct.
8904 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8905 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8906 write_exp_elt_decfloatcst, write_exp_elt_type,
8907 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8908 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8909 write_exp_msymbol, write_dollar_variable,
8910 mark_struct_expression, insert_type_address_space): Add "struct
8911 parser_state" argument.
8912 (increase_expout_size): New function.
8913 * utils.c (do_clear_parser_state): New function.
8914 (make_cleanup_clear_parser_state): Likewise.
8915 * utils.h (make_cleanup_clear_parser_state): New function
8917 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8918 Update calls to write_exp* in order to pass the parser state.
8919 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8920 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8921 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8922 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8923 * stap-probe.c (stap_parse_register_operand): Likewise.
8924 (stap_parse_single_operand): Likewise.
8925 (stap_parse_argument_1): Likewise.
8926 (stap_parse_argument): Use parser state.
8927 * stap-probe.h: Include "parser-defs.h".
8928 (struct stap_parse_info) <pstate>: New field.
8929 * c-exp.y (parse_type): Rewrite to use parser state.
8930 (yyparse): Redefine to c_parse_internal.
8931 (pstate): New global variable.
8932 (parse_number): Add "struct parser_state" argument.
8933 (write_destructor_name): Likewise.
8934 (type_exp): Update calls to write_exp* and similars in order to
8936 (exp1, exp, variable, qualified_name, space_identifier,
8937 typename, typebase): Likewise.
8938 (write_destructor_name, parse_number, lex_one_token,
8939 classify_name, classify_inner_name, c_parse): Add "struct
8940 parser_state" argument. Update function to use parser state.
8941 * c-lang.h: Forward declare "struct parser_state".
8942 (c_parse): Add "struct parser_state" argument.
8943 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8944 (yyparse): Redefine macro to ada_parse_internal.
8945 (pstate): New variable.
8946 (write_int, write_object_renaming, write_var_or_type,
8947 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8948 type_int, type_long, type_long_long, type_float, type_double,
8949 type_long_double, type_char, type_boolean, type_system_address):
8950 Add "struct parser_state" argument.
8951 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8952 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8953 var_or_type, aggregate, aggregate_component_list,
8954 positional_list, others, component_group,
8955 component_associations): Update calls to write_exp* and similar
8956 functions in order to use parser state.
8957 (ada_parse, write_var_from_sym, write_int,
8958 write_exp_op_with_string, write_object_renaming,
8959 find_primitive_type, write_selectors, write_ambiguous_var,
8960 write_var_or_type, write_name_assoc, type_int, type_long,
8961 type_long_long, type_float, type_double, type_long_double,
8962 type_char, type_boolean, type_system_address): Add "struct
8963 parser_state" argument. Adjust function to use parser state.
8964 * ada-lang.c (parse): Likewise.
8965 * ada-lang.h: Forward declare "struct parser_state".
8966 (ada_parse): Add "struct parser_state" argument.
8967 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8968 calls to both functions.
8969 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8971 (yyparse): Redefine macro to f_parse_internal.
8972 (pstate): New variable.
8973 (parse_number): Add "struct parser_state" argument.
8974 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8975 and similars in order to use parser state.
8976 (parse_number): Adjust code to use parser state.
8978 (f_parse): New function.
8979 * f-lang.h: Forward declare "struct parser_state".
8980 (f_parse): Add "struct parser_state" argument.
8981 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8983 (yyparse): Redefine macro for java_parse_internal.
8984 (pstate): New variable.
8985 (push_expression_name, push_expression_name, insert_exp): Add
8986 "struct parser_state" argument.
8987 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8988 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8989 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8990 PostIncrementExpression, PostDecrementExpression,
8991 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8992 UnaryExpressionNotPlusMinus, CastExpression,
8993 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8994 RelationalExpression, EqualityExpression, AndExpression,
8995 ExclusiveOrExpression, InclusiveOrExpression,
8996 ConditionalAndExpression, ConditionalOrExpression,
8997 ConditionalExpression, Assignment, LeftHandSide): Update
8998 calls to write_exp* and similars in order to use parser state.
8999 (parse_number): Ajust code to use parser state.
9001 (java_parse): New function.
9002 (push_variable): Add "struct parser_state" argument. Adjust
9003 code to user parser state.
9004 (push_fieldnames, push_qualified_expression_name,
9005 push_expression_name, insert_exp): Likewise.
9006 * jv-lang.h: Forward declare "struct parser_state".
9007 (java_parse): Add "struct parser_state" argument.
9008 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9010 (yyparse): Redefine macro to m2_parse_internal.
9011 (pstate): New variable.
9012 (type_exp, exp, fblock, variable, type): Update calls to
9013 write_exp* and similars to use parser state.
9015 (m2_parse): New function.
9016 * m2-lang.h: Forward declare "struct parser_state".
9017 (m2_parse): Add "struct parser_state" argument.
9018 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9019 * objc-lang.h: Forward declare "struct parser_state".
9020 (end_msglist): Add "struct parser_state" argument.
9021 * p-exp.y (parse_type): Rewrite macro to use parser state.
9022 (yyparse): Redefine macro to pascal_parse_internal.
9023 (pstate): New variable.
9024 (parse_number): Add "struct parser_state" argument.
9025 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9026 write_exp* and similars in order to use parser state.
9027 (parse_number, yylex): Adjust code to use parser state.
9028 (pascal_parse): New function.
9029 * p-lang.h: Forward declare "struct parser_state".
9030 (pascal_parse): Add "struct parser_state" argument.
9031 * go-exp.y (parse_type): Rewrite macro to use parser state.
9032 (yyparse): Redefine macro to go_parse_internal.
9033 (pstate): New variable.
9034 (parse_number): Add "struct parser_state" argument.
9035 (type_exp, exp1, exp, variable, type): Update calls to
9036 write_exp* and similars in order to use parser state.
9037 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9038 to use parser state.
9039 (go_parse): Likewise.
9040 * go-lang.h: Forward declare "struct parser_state".
9041 (go_parse): Add "struct parser_state" argument.
9043 2014-03-27 Doug Evans <dje@google.com>
9045 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9047 2014-03-27 Doug Evans <dje@google.com>
9049 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9050 Remove argument abbrev_section. All callers updated.
9052 2014-03-27 Doug Evans <dje@google.com>
9054 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9055 addr_base, ranges_base.
9057 2014-03-26 Keith Seitz <keiths@redhat.com>
9059 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9060 types, not VAR_DOMAIN.
9062 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9064 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9066 * features/nios2-linux.c: Regenerated.
9067 * features/nios2.c: Regenerated.
9069 2014-03-25 Pedro Alves <palves@redhat.com>
9071 * cli/cli-script.c (script_from_file): Force the interpreter to
9074 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9076 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9077 small stack allocation.
9079 2014-03-24 Tristan Gingold <gingold@adacore.com>
9081 * darwin-nat.c (exc_server): Remove unused prototype.
9082 (darwin_dump_message): Correctly display data on x86_64.
9083 (darwin_encode_reply): Fix style.
9084 Add comments and fix indentation.
9086 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9088 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9090 2014-03-22 Doug Evans <xdje42@gmail.com>
9092 * infcmd.c: Whitespace fixes.
9093 (interrupt_command): Merge two function comments into one.
9095 2014-03-22 Doug Evans <xdje42@gmail.com>
9097 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9100 2014-03-22 Yao Qi <yao@codesourcery.com>
9102 * remote.c (target_read_live_memory): Remove.
9103 (memory_xfer_live_readonly_partial): Rename it to
9104 remote_xfer_live_readonly_partial. Remove argument 'object'.
9105 All callers updated. Call remote_read_bytes_1
9106 instead of target_read_live_memory.
9107 * tracepoint.c (set_traceframe_number): Remove.
9108 (make_cleanup_restore_traceframe_number): Likewise .
9109 * tracepoint.h (set_traceframe_number): Remove declaration.
9110 (make_cleanup_restore_traceframe_number): Likewise.
9112 2014-03-22 Yao Qi <yao@codesourcery.com>
9114 * remote.c (remote_read_bytes): Move code on reading from the
9116 (remote_read_bytes_1): ... here. New function.
9118 2014-03-22 Yao Qi <yao@codesourcery.com>
9120 * ctf.c (ctf_xfer_partial): Check the return value of
9121 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9122 return TARGET_XFER_UNAVAILABLE.
9123 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9124 * target.c (target_read_live_memory): Move it to remote.c.
9125 (memory_xfer_live_readonly_partial): Likewise.
9126 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9127 * remote.c (target_read_live_memory): Moved from target.c.
9128 (memory_xfer_live_readonly_partial): Likewise.
9129 (remote_read_bytes): Factored out from
9130 memory_xfer_partial_1.
9132 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9134 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9137 2014-03-21 Pedro Alves <palves@redhat.com>
9139 * infrun.c (normal_stop): Extend comment.
9141 2014-03-21 Hui Zhu <hui@codesourcery.com>
9142 Pedro Alves <palves@redhat.com>
9144 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9146 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9147 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9148 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9150 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9152 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9153 `z' formatted output modifier.
9155 2014-03-20 Tom Tromey <tromey@redhat.com>
9156 Sergio Durigan Junior <sergiodj@redhat.com>
9158 * probe.c (parse_probes): Turn assert into an ordinary error.
9159 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9160 exceptions when parsing probes. Rearrange the code for clarity.
9162 2014-03-20 Tom Tromey <tromey@redhat.com>
9165 * top.c (execute_command): Only dispatch events if the command
9168 2014-03-20 Tom Tromey <tromey@redhat.com>
9171 * infcall.c: Include event-top.h.
9172 (run_inferior_call): Call async_disable_stdin if needed.
9174 2014-03-20 Pedro Alves <palves@redhat.com>
9176 * infrun.c (prepare_to_proceed): Delete.
9177 (thread_still_needs_step_over): New function.
9178 (find_thread_needs_step_over): New function.
9179 (proceed): If the current thread needs a step-over, set its
9180 steping_over_breakpoint flag. Adjust to use
9181 find_thread_needs_step_over instead of prepare_to_proceed.
9182 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9183 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9185 (switch_back_to_stepped_thread): Step over breakpoints of all
9186 threads not the stepping thread, before switching back to the
9189 2014-03-20 Pedro Alves <palves@redhat.com>
9191 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9193 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9194 * infrun.c (saved_singlestep_ptid)
9195 (stepping_past_singlestep_breakpoint): Delete.
9196 (resume): Remove stepping_past_singlestep_breakpoint handling.
9197 (proceed): Store the prev_pc of the stepping thread too.
9198 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9200 (enum infwait_states): Delete infwait_thread_hop_state.
9201 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9203 (handle_inferior_event): Adjust.
9204 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9205 handling and the thread-hop code. Before removing single-step
9206 breakpoints, check whether the thread hit a single-step breakpoint
9207 of another thread. If it did, the trap is not a random signal.
9208 (switch_back_to_stepped_thread): If the event thread hit a
9209 single-step breakpoint, unblock it before switching to the
9210 stepping thread. Handle the case of the stepped thread having
9212 (keep_going): Handle the case of the current thread moving past a
9213 single-step breakpoint.
9215 2014-03-20 Pedro Alves <palves@redhat.com>
9218 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9219 are being stepped over.
9220 (breakpoint_address_match): Make extern.
9221 * breakpoint.h (breakpoint_address_match): New declaration.
9222 * inferior.h (stepping_past_instruction_at): New declaration.
9223 * infrun.c (struct step_over_info): New type.
9224 (step_over_info): New global.
9225 (set_step_over_info, clear_step_over_info)
9226 (stepping_past_instruction_at): New functions.
9227 (handle_inferior_event): Clear the step-over info when
9228 trap_expected is cleared.
9229 (resume): Remove now stale comment.
9230 (clear_proceed_status): Clear step-over info.
9231 (proceed): Adjust step-over handling to set or clear the step-over
9232 info instead of removing all breakpoints.
9233 (handle_signal_stop): When setting up a thread-hop, don't remove
9235 (stop_stepping): Clear step-over info.
9236 (keep_going): Adjust step-over handling to set or clear step-over
9237 info and then always inserting breakpoints, instead of removing
9238 all breakpoints when stepping over one.
9240 2014-03-20 Pedro Alves <palves@redhat.com>
9242 * infrun.c (previous_inferior_ptid): Adjust comment.
9243 (deferred_step_ptid): Delete.
9244 (infrun_thread_ptid_changed, prepare_to_proceed)
9245 (init_wait_for_inferior): Adjust.
9246 (handle_signal_stop): Delete deferred_step_ptid handling.
9248 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9251 * defs.h (sync_quit_force_run): New declaration.
9252 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9253 * event-top.c (async_sigterm_handler): New declaration.
9254 (async_sigterm_token): New variable.
9255 (async_init_signals): Create also async_sigterm_token.
9256 (async_sigterm_handler): New function.
9257 (sync_quit_force_run): New variable.
9258 (handle_sigterm): Replace quit_force call by other calls.
9259 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9261 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9263 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9264 offset into SPE pseudo registers.
9266 2014-03-18 Pedro Alves <palves@redhat.com>
9269 * inferior.h (print_stop_event): Declare.
9270 * infrun.c (print_stop_event): New, factored out from ...
9271 (normal_stop): ... this.
9272 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9273 of bpstat_print/print_stack_frame.
9275 2014-03-17 Tom Tromey <tromey@redhat.com>
9277 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9279 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9281 * ada-lang.c (decode_constrained_packed_array): Perform a
9282 minimal coercion for reference with coerce_ref instead of
9285 2014-03-17 Tristan Gingold <gingold@adacore.com>
9287 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9288 (darwin_solib_create_inferior_hook): Emit a warning if version
9291 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9293 * python/py-value.c (get_field_flag): Cast flag_name argument to
9294 PyObject_GetAttrString to support Python 2.4.
9296 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9298 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9299 (Global Maintainers): Remove Jan Kratochvil.
9301 2014-03-14 Pedro Alves <palves@redhat.com>
9303 * inferior.h (terminal_ours_for_output): Rename to ...
9304 (child_terminal_ours_for_output): ... this.
9305 (terminal_save_ours): Rename to ...
9306 (child_terminal_save_ours): ... this.
9307 (terminal_ours): Rename to ...
9308 (child_terminal_ours): ... this.
9309 (terminal_inferior): Rename to ...
9310 (child_terminal_inferior): ... this.
9311 (terminal_init_inferior): Rename to ...
9312 (child_terminal_init_inferior): ... this.
9313 (terminal_init_inferior_with_pgrp): Rename to ...
9314 (child_terminal_init_inferior_with_pgrp): ... this.
9315 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9316 (child_terminal_init_with_pgrp): ... this.
9317 (terminal_save_ours): Rename to ...
9318 (child_terminal_save_ours): ... this.
9319 (terminal_init_inferior): Rename to ...
9320 (child_terminal_init): ... this. Adjust.
9321 (terminal_inferior): Rename to ...
9322 (child_terminal_inferior): ... this.
9323 (terminal_ours_for_output): Rename to ...
9324 (child_terminal_ours_for_output): ... this. Adjust.
9325 (terminal_ours): Rename to ...
9326 (child_terminal_ours): ... this.
9327 (terminal_ours_1): Rename to ...
9328 (child_terminal_ours_1): ... this. Adjust.
9329 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9330 * windows-nat.c (do_initial_windows_stuff): Adjust.
9331 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9332 (gnu_terminal_init): ... this. Adjust.
9333 (gnu_target): Adjust.
9334 * inf-child.c (inf_child_target): Adjust.
9336 2014-03-13 Doug Evans <xdje42@gmail.com>
9339 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9342 2014-03-13 Doug Evans <xdje42@gmail.com>
9344 * value.c (record_latest_value): Call release_value_or_incref
9345 instead of release_value.
9347 2014-03-13 Pedro Alves <palves@redhat.com>
9349 * procfs.c (procfs_target): Don't override to_shortname,
9350 to_longname or to_doc.
9352 2014-03-13 Pedro Alves <palves@redhat.com>
9354 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9355 Unix in user visible strings.
9357 2014-03-12 Stan Shebs <stan@codesourcery.com>
9359 * gdbtypes.h: Annotate comments for Doxygen, add a page
9360 block comment with some general info.
9362 2014-03-12 Pedro Alves <palves@redhat.com>
9364 * infcmd.c (prepare_execution_command): New function, factored out
9365 from several execution commands.
9366 (run_command_1, continue_command, step_1, jump_command)
9367 (signal_command, until_command, advance_command, finish_command)
9368 (attach_command): Use prepare_execution_command.
9370 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9372 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9375 (struct arm_linux_thread_points): Removed.
9376 (struct arm_linux_process_info): New.
9377 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9378 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9379 (arm_linux_find_breakpoints_by_tid): Removed.
9380 (struct arch_lwp_info): New.
9381 (arm_linux_find_process_pid): New functions.
9382 (arm_linux_add_process): New functions.
9383 (arm_linux_process_info_get): New functions.
9384 (arm_linux_forget_process): New function.
9385 (arm_linux_get_debug_reg_state): New function.
9386 (struct update_registers_data): New.
9387 (update_registers_callback): New function.
9388 (arm_linux_insert_hw_breakpoint1): Updated.
9389 (arm_linux_remove_hw_breakpoint1): Updated.
9390 (arm_linux_insert_hw_breakpoint): Updated.
9391 (arm_linux_remove_hw_breakpoint): Updated.
9392 (arm_linux_insert_watchpoint): Updated.
9393 (arm_linux_remove_watchpoint): Updated.
9394 (arm_linux_new_thread): Updated.
9395 (arm_linux_prepare_to_resume): New function.
9396 (arm_linux_new_fork): New function.
9397 (_initialize_arm_linux_nat): Updated.
9399 2014-03-12 Pedro Alves <palves@redhat.com>
9401 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9403 2014-03-12 Tom Tromey <tromey@redhat.com>
9405 * inf-child.c (return_zero): New function.
9406 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9407 * aix-thread.c (aix_thread_inferior_created): New function.
9408 (aix_thread_attach): Remove.
9409 (init_aix_thread_ops): Don't set to_attach.
9410 (_initialize_aix_thread): Register inferior_created observer.
9411 * corelow.c (init_core_ops): Don't set to_attach or
9413 * exec.c (init_exec_ops): Don't set to_attach or
9415 * infcmd.c (run_command_1): Use find_run_target. Make direct
9417 (attach_command): Use find_attach_target. Make direct target
9419 * record-btrace.c (init_record_btrace_ops): Don't set
9421 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9423 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9424 set to_create_inferior.
9425 * target.c (complete_target_initialization): Add assertion.
9426 (target_create_inferior): Remove.
9427 (find_default_attach, find_default_create_inferior): Remove.
9428 (find_attach_target, find_run_target): New functions.
9429 (find_default_is_async_p, find_default_can_async_p)
9430 (target_supports_non_stop, target_attach): Remove.
9431 (init_dummy_target): Don't set to_create_inferior or
9432 to_supports_non_stop.
9433 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9434 TARGET_DEFAULT_FUNC.
9435 <to_create_inferior>: Add comment.
9436 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9437 TARGET_DEFAULT_RETURN.
9438 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9439 (find_attach_target, find_run_target): Declare.
9440 (target_create_inferior): Remove.
9441 (target_has_execution_1): Update comment.
9442 (target_supports_non_stop): Remove.
9443 * target-delegates.c: Rebuild.
9445 2014-03-12 Pedro Alves <palves@redhat.com>
9447 * inf-child.h: Update comment to not mention Unix.
9449 2014-03-12 Pedro Alves <palves@redhat.com>
9451 * inf-child.c: Update top comment to not mention Unix. Add
9452 generic comment describing how this target is meant to be used.
9453 (inf_child_post_attach, inf_child_post_startup_inferior)
9454 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9457 2014-03-12 Pedro Alves <palves@redhat.com>
9459 * nto-procfs.c: Include inf-child.h.
9460 (procfs_ops): Delete global.
9461 (procfs_can_run): Delete method.
9462 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9463 target pointer instead of referencing procfs_ops.
9464 (procfs_prepare_to_store): Delete.
9465 (init_procfs_ops): Delete function.
9466 (procfs_target): New function, based on init_procfs_ops, but
9467 inherit inf_child_target.
9468 (_initialize_procfs): Use procfs_target.
9470 2014-03-12 Pedro Alves <palves@redhat.com>
9472 * windows-nat.c: Include inf-child.h.
9473 (windows_ops): Delete global.
9474 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9476 (init_windows_ops): Delete function.
9477 (windows_target): New function, based on init_windows_ops, but
9478 inherit inf_child_target.
9479 (_initialize_windows_nat): Use windows_target. Install x86
9480 specific target methods here.
9482 2014-03-10 Doug Evans <xdje42@gmail.com>
9484 * guile/guile.c (call_initialize_gdb_module): New function.
9485 (initialize_guile): Replace call to scm_init_guile with call to
9488 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9490 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9491 in call to TYPE_CODE macro.
9493 2014-03-10 Jerome Guitton <guitton@adacore.com>
9495 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9496 Resolve tagged types to full view.
9498 2014-03-10 Hui Zhu <hui@codesourcery.com>
9500 * target.h (target_insert_breakpoint): Remove "hardware" from its
9503 2014-03-07 Doug Evans <dje@google.com>
9505 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9507 2014-03-07 Doug Evans <dje@google.com>
9509 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9510 Remove unused local comp_dir_attr. Assert exactly one of
9511 stub_comp_unit_die, stub_comp_dir is non-NULL.
9513 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9515 * target.h (complete_target_initialization, add_target):
9518 2014-03-07 Pedro Alves <palves@redhat.com>
9520 * go32-nat.c: Include inf-child.h.
9521 (go32_ops): Delete global.
9522 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9524 (go32_create_inferior): Push the passed in target pointer instead
9525 of referencing go32_ops.
9526 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9527 (go32_target): New function, based on init_go32_ops, but inherit
9529 (_initialize_go32_nat): Use go32_target. Move parts of
9532 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9534 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9535 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9536 SYMBOL_VALUE_ADDRESS.
9537 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9539 2014-03-06 Yao Qi <yao@codesourcery.com>
9541 * breakpoint.c (get_tracepoint_by_number): Remove argument
9542 optional_p. All callers updated. Adjust comments. Update
9544 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9546 2014-03-06 Yao Qi <yao@codesourcery.com>
9548 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9549 early if get_number returns zero. Use 'p' instead of 'args'.
9551 2014-03-06 Yao Qi <yao@codesourcery.com>
9553 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9556 2014-03-06 Yao Qi <yao@codesourcery.com>
9558 PR breakpoints/16508
9559 * tracepoint.c (check_trace_running): New function.
9560 (trace_find_command): Move code to check_trace_running and
9561 call check_trace_running.
9562 (trace_find_pc_command): Likewise.
9563 (trace_find_tracepoint_command): Likewise.
9564 (trace_find_line_command): Likewise.
9565 (trace_find_range_command): Likewise.
9566 * tracepoint.h (check_trace_running): Likewise.
9567 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9569 2014-03-06 Yao Qi <yao@codesourcery.com>
9571 * target.h (struct target_ops) <to_traceframe_info>: Use
9572 TARGET_DEFAULT_NORETURN (tcomplain ()).
9573 * target-delegates.c: Regenerated.
9575 2014-03-05 Pedro Alves <palves@redhat.com>
9578 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9579 void. Update comment.
9580 (dcache_xfer_memory): Delete.
9581 (dcache_read_memory_partial): New, based on the read bits of
9583 (dcache_update): Add status parameter. Use ULONGEST for len, and
9584 adjust. Discard cache lines if the reason for the update was
9586 * dcache.h (dcache_xfer_memory): Delete declaration.
9587 (dcache_read_memory_partial): New declaration.
9588 (dcache_update): Update prototype.
9589 * target.c (raw_memory_xfer_partial): Update the dcache here.
9590 (memory_xfer_partial_1): Don't handle dcache writes here.
9592 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9594 * remote-sim.c (gdbsim_load): Add const to prog.
9596 2014-03-03 Tom Tromey <tromey@redhat.com>
9598 * elfread.c (probe_key): Change to bfd_data.
9599 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9600 now per-BFD, not per-objfile.
9601 * stap-probe.c (stap_probe_destroy): Update comment.
9602 (handle_stap_probe): Allocate on the per-BFD obstack.
9604 2014-03-03 Tom Tromey <tromey@redhat.com>
9606 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9607 * breakpoint.c (create_longjmp_master_breakpoint): Use
9609 (add_location_to_breakpoint, bkpt_probe_insert_location)
9610 (bkpt_probe_remove_location): Update.
9611 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9612 * elfread.c (elf_symfile_relocate_probe): Remove.
9613 (elf_probe_fns): Update.
9614 (insert_exception_resume_breakpoint): Change type of "probe"
9615 parameter to bound_probe.
9616 (check_exception_resume): Update.
9617 * objfiles.c (objfile_relocate1): Don't relocate probes.
9618 * probe.c (bound_probe_s): New typedef.
9619 (parse_probes): Use get_probe_address. Set sal's objfile.
9620 (find_probe_by_pc): Return a bound_probe.
9621 (collect_probes): Return a VEC(bound_probe_s).
9622 (compare_probes): Update.
9623 (gen_ui_out_table_header_info): Change type of "probes"
9625 (info_probes_for_ops): Update.
9626 (get_probe_address): New function.
9627 (probe_safe_evaluate_at_pc): Update.
9628 * probe.h (struct probe_ops) <get_probe_address>: New field.
9629 <set_semaphore, clear_semaphore>: Add objfile parameter.
9630 (struct probe) <objfile>: Remove field.
9632 <address>: Update comment.
9633 (struct bound_probe): New.
9634 (find_probe_by_pc): Return a bound_probe.
9635 (get_probe_address): Declare.
9636 * solib-svr4.c (struct probe_and_action) <address>: New field.
9637 (hash_probe_and_action, equal_probe_and_action): Update.
9638 (register_solib_event_probe): Add address parameter.
9639 (solib_event_probe_at): Update.
9640 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9642 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9643 (stap_get_probe_address): New function.
9644 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9645 (compile_probe_arg): Update.
9646 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9648 (handle_stap_probe): Don't relocate the probe.
9649 (stap_relocate): Remove.
9650 (stap_gen_info_probes_table_values): Update.
9651 (stap_probe_ops): Remove stap_relocate.
9652 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9653 (debug_sym_probe_fns): Update.
9654 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9655 * symtab.c (init_sal): Use memset.
9656 * symtab.h (struct symtab_and_line) <objfile>: New field.
9657 * tracepoint.c (start_tracing, stop_tracing): Update.
9659 2014-03-03 Tom Tromey <tromey@redhat.com>
9661 * probe.h (parse_probes, find_probe_by_pc)
9662 (find_probes_in_objfile): Fix comments.
9664 2014-03-02 Doug Evans <xdje42@gmail.com>
9666 * infrun.c (handle_signal_stop): Replace test for
9667 TARGET_WAITKIND_STOPPED with an assert.
9669 2014-03-02 Doug Evans <xdje42@gmail.com>
9671 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9673 2014-03-02 Doug Evans <xdje42@gmail.com>
9675 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9677 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9679 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9681 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9683 * i386obsd-nat.c: Include "obsd-nat.h".
9684 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9686 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9688 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9690 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9692 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9694 * mips64obsd-nat.c: Include "obsd-nath".
9695 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9697 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9699 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9701 * amd64obsd-nat.c: Include "obsd-nat,h.
9702 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9704 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9706 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9708 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9709 (find_overload_match): Update call to find_oload_champ.
9710 (find_oload_champ_namespace_loop): Likewise
9712 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9714 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9716 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9717 * config/sparc/obsd64.mh: New file.
9718 * sparc64obsd-nat.c: New file.
9720 * obsd-nat.h: New file.
9721 * obsd-nat.c: New file.
9722 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9723 (ALLDEPFILES): Add obsd-nat.c.
9725 2014-02-28 Tom Tromey <tromey@redhat.com>
9727 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9728 * cli-out.h (cli_ui_out_impl): Now const.
9729 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9730 * ui-out.c (struct ui_out) <impl>: Now const.
9731 (default_ui_out_impl): Now const.
9732 (ui_out_new): Make 'impl' parameter const.
9733 * ui-out.h (ui_out_new): Update.
9735 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9737 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9739 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9741 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9743 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9745 Additional PR 8882 fix.
9746 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9748 2014-02-27 Pedro Alves <palves@redhat.com>
9750 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9753 2014-02-27 Pedro Alves <palves@redhat.com>
9756 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9757 * nat/linux-waitpid.c: Include string.h.
9758 (status_to_str): Moved here and made extern.
9759 * nat/linux-waitpid.h (status_to_str): New declaration.
9761 2014-02-27 Hui Zhu <hui@codesourcery.com>
9764 * infrun.c (ptid_match): Move ...
9765 * common/ptid.c (ptid_match): ... here.
9766 * inferior.h (ptid_match): Move ...
9767 * common/ptid.h (ptid_match): ... here.
9769 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9771 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9772 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9775 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9777 * obsd-tdep.c (obsd_auxv_parse): New function.
9778 (obsd_init_abi): Set auxv_parse.
9780 * gdbarch.sh (auxv_parse): New.
9781 * gdbarch.h: Regenerated.
9782 * gdbarch.c: Regenerated.
9783 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9785 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9787 * guile/scm-value.c (gdbscm_history_append_x): New function.
9788 (value_functions): Add it.
9790 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9792 * dwarf2read.c (attr_value_as_address): New function.
9793 (dwarf2_find_base_address, read_call_site_scope): Use
9794 attr_value_as_address in place of DW_ADDR.
9795 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9796 the low and high addresses. Slight rework of the handling
9797 of the high pc being a constant form, and limit it to
9798 DWARF verson 4 or higher.
9799 (dwarf2_record_block_ranges): Likewise.
9800 (read_partial_die): Likewise.
9801 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9803 2014-02-26 Tom Tromey <tromey@redhat.com>
9805 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9807 2014-02-26 Tom Tromey <tromey@redhat.com>
9809 * elfread.c (elf_read_minimal_symbols): Return early if
9810 minimal symbols have already been read. Add "ei" parameter.
9811 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9812 * minsyms.c (prim_record_minimal_symbol_full): Update.
9813 * objfiles.h (struct objstats) <n_minsyms>: Move...
9814 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9815 * symmisc.c (print_objfile_statistics): Update.
9817 2014-02-26 Tom Tromey <tromey@redhat.com>
9819 * elfread.c (elf_read_minimal_symbols): New function, from
9821 (elf_symfile_read): Call it.
9823 2014-02-26 Tom Tromey <tromey@redhat.com>
9825 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9826 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9827 (lookup_minimal_symbol_solib_trampoline)
9828 (lookup_minimal_symbol_by_pc_section_1)
9829 (lookup_minimal_symbol_and_objfile): Update.
9830 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9831 Don't allocate a minimal symbol if minsyms have already been read.
9832 (build_minimal_symbol_hash_tables): Update.
9833 (install_minimal_symbols): Do nothing if minsyms already read.
9834 Use the per-BFD obstack.
9835 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9836 * objfiles.c (allocate_objfile): Call
9837 terminate_minimal_symbol_table later.
9838 (have_minimal_symbols): Update.
9839 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9840 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9841 Move from struct objfile.
9842 <minsyms_read>: New field.
9843 (struct objfile) <msymbols, minimal_symbol_count,
9844 msymbol_hash, msymbol_demangled_hash>: Move.
9845 (ALL_OBJFILE_MSYMBOLS): Update.
9846 * symfile.c (read_symbols): Set minsyms_read.
9847 (reread_symbols): Update.
9848 * symmisc.c (dump_objfile, dump_msymbols): Update.
9850 2014-02-26 Tom Tromey <tromey@redhat.com>
9852 * minsyms.c (msymbols_sort): Remove.
9853 * minsyms.h (msymbols_sort): Remove.
9854 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9855 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9856 * elfread.c (elf_symtab_read): Don't add section offsets.
9857 * xcoffread.c (record_minimal_symbol): Don't add section offset
9858 to minimal symbol address.
9859 * somread.c (text_offset, data_offset): Remove.
9860 (som_symtab_read): Don't add section offsets to minimal symbol
9862 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9863 Don't add section offsets to minimal symbols.
9864 * coffread.c (coff_symtab_read): Don't add section offsets
9865 to minimal symbol addresses.
9866 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9867 to minimal symbol addresses.
9868 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9869 section offset to minimal symbol addresses.
9870 * mdebugread.c (parse_partial_symbols): Don't add section
9871 offset to minimal symbol addresses.
9872 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9873 offset to minimal symbol addresses.
9875 2014-02-26 Tom Tromey <tromey@redhat.com>
9877 * ada-lang.c (ada_main_name): Update.
9878 (ada_add_standard_exceptions): Update.
9879 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9880 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9881 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9882 * auxv.c (ld_so_xfer_auxv): Update.
9883 * avr-tdep.c (avr_scan_prologue): Update.
9884 * ax-gdb.c (gen_var_ref): Update.
9885 * blockframe.c (get_pc_function_start)
9886 (find_pc_partial_function_gnu_ifunc): Update.
9887 * breakpoint.c (create_overlay_event_breakpoint)
9888 (create_longjmp_master_breakpoint)
9889 (create_std_terminate_master_breakpoint)
9890 (create_exception_master_breakpoint): Update.
9891 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9892 * c-valprint.c (c_val_print): Update.
9893 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9894 * common/agent.c (agent_look_up_symbols): Update.
9895 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9896 * dwarf2loc.c (call_site_to_target_addr): Update.
9897 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9898 * elfread.c (elf_gnu_ifunc_record_cache)
9899 (elf_gnu_ifunc_resolve_by_got): Update.
9900 * findvar.c (default_read_var_value): Update.
9901 * frame.c (inside_main_func): Update.
9902 * frv-tdep.c (frv_frame_this_id): Update.
9903 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9904 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9906 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9907 (hppa_hpux_find_dummy_bpaddr): Update.
9908 * hppa-tdep.c (hppa_symbol_address): Update.
9909 * infcmd.c (until_next_command): Update.
9910 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9912 * linespec.c (minsym_found, add_minsym): Update.
9913 * linux-nat.c (get_signo): Update.
9914 * linux-thread-db.c (inferior_has_bug): Update.
9915 * m32c-tdep.c (m32c_return_value)
9916 (m32c_m16c_address_to_pointer): Update.
9917 * m32r-tdep.c (m32r_frame_this_id): Update.
9918 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9919 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9920 * maint.c (maintenance_translate_address): Update.
9921 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9922 (frob_address): New function.
9923 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9924 frob_address. Rename parameter to "pc_in".
9925 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9927 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9929 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9930 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9931 * objc-lang.c (find_objc_msgsend): Update.
9932 * objfiles.c (objfile_relocate1): Update.
9933 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9934 * p-valprint.c (pascal_val_print): Update.
9935 * parse.c (write_exp_msymbol): Update.
9936 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9937 (ppc_elfv2_skip_entrypoint): Update.
9938 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9939 * printcmd.c (build_address_symbolic, msym_info)
9940 (address_info): Update.
9941 * proc-service.c (ps_pglobal_lookup): Update.
9942 * psymtab.c (find_pc_sect_psymtab_closer)
9943 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9944 Change msymbol parameter to bound_minimal_symbol.
9945 * ravenscar-thread.c (get_running_thread_id): Update.
9946 * remote.c (remote_check_symbols): Update.
9947 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9949 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9950 * solib-dsbt.c (lm_base): Update.
9951 * solib-frv.c (lm_base, main_got): Update.
9952 * solib-irix.c (locate_base): Update.
9953 * solib-som.c (som_solib_create_inferior_hook)
9954 (link_map_start): Update.
9955 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9956 * solib-svr4.c (elf_locate_base, enable_break): Update.
9957 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9958 (flush_ea_cache): Update.
9959 * stabsread.c (define_symbol, scan_file_globals): Update.
9960 * stack.c (find_frame_funname): Update.
9961 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9962 (debug_qf_find_pc_sect_symtab): Update.
9963 * symfile.c (simple_read_overlay_table)
9964 (simple_overlay_update): Update.
9965 * symfile.h (struct quick_symbol_functions)
9966 <find_pc_sect_symtab>: Change type of msymbol to
9967 bound_minimal_symbol.
9968 * symmisc.c (dump_msymbols): Update.
9969 * symtab.c (find_pc_sect_symtab_via_partial)
9970 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9971 (search_symbols, print_msymbol_info): Update.
9972 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9973 (MSYMBOL_VALUE_ADDRESS): Redefine.
9974 (BMSYMBOL_VALUE_ADDRESS): New macro.
9975 * tracepoint.c (scope_info): Update.
9976 * tui/tui-disasm.c (tui_find_disassembly_address)
9977 (tui_get_begin_asm_address): Update.
9978 * valops.c (find_function_in_inferior): Update.
9979 * value.c (value_static_field, value_fn_field): Update.
9981 2014-02-26 Tom Tromey <tromey@redhat.com>
9983 * ada-lang.c (ada_update_initial_language): Update.
9984 (ada_main_name, ada_has_this_exception_support): Update.
9985 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9986 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9987 * arm-tdep.c (arm_skip_stub): Update.
9988 * auxv.c (ld_so_xfer_auxv): Update.
9989 * avr-tdep.c (avr_scan_prologue): Update.
9990 * ax-gdb.c (gen_var_ref): Update.
9991 * breakpoint.c (struct breakpoint_objfile_data)
9992 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9993 type to bound_minimal_symbol.
9994 (create_overlay_event_breakpoint)
9995 (create_longjmp_master_breakpoint)
9996 (create_std_terminate_master_breakpoint)
9997 (create_exception_master_breakpoint): Update.
9998 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9999 * c-exp.y (classify_name): Update.
10000 * coffread.c (coff_symfile_read): Update.
10001 * common/agent.c (agent_look_up_symbols): Update.
10002 * d-lang.c (d_main_name): Update.
10003 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10004 * dec-thread.c (enable_dec_thread): Update.
10005 * dwarf2loc.c (call_site_to_target_addr): Update.
10006 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10007 * eval.c (evaluate_subexp_standard): Update.
10008 * findvar.c (struct minsym_lookup_data) <result>: Change type
10009 to bound_minimal_symbol.
10011 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10012 * frame.c (inside_main_func): Update.
10013 * frv-tdep.c (frv_frame_this_id): Update.
10014 * gcore.c (call_target_sbrk): Update.
10015 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10016 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10018 * go-lang.c (go_main_name): Update.
10019 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10020 (hppa_hpux_find_import_stub_for_addr): Update.
10021 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10022 Update. Change return type.
10023 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10025 * jit.c (jit_breakpoint_re_set_internal): Update.
10026 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10028 * linux-nat.c (get_signo): Update.
10029 * linux-thread-db.c (inferior_has_bug): Update
10030 * m32c-tdep.c (m32c_return_value)
10031 (m32c_m16c_address_to_pointer): Update.
10032 * m32r-tdep.c (m32r_frame_this_id): Update.
10033 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10034 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10035 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10036 lookup_minimal_symbol. Change return type.
10037 (lookup_minimal_symbol): Remove.
10038 (lookup_bound_minimal_symbol): Update.
10039 (lookup_minimal_symbol_text): Change return type.
10040 (lookup_minimal_symbol_solib_trampoline): Change return type.
10041 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10042 (lookup_minimal_symbol_solib_trampoline): Change return type.
10043 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10044 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10045 (value_nsstring, find_imps): Update.
10046 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10047 * p-lang.c (pascal_main_name): Update.
10048 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10049 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10050 * proc-service.c (ps_pglobal_lookup): Update.
10051 * ravenscar-thread.c (get_running_thread_msymbol): Change
10053 (has_ravenscar_runtime, get_running_thread_id): Update.
10054 * remote.c (remote_check_symbols): Update.
10055 * sol-thread.c (ps_pglobal_lookup): Update.
10056 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10057 * solib-dsbt.c (lm_base): Update.
10058 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10060 * solib-irix.c (locate_base): Update.
10061 * solib-som.c (som_solib_create_inferior_hook)
10062 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10064 * solib-spu.c (spu_enable_break): Update.
10065 * solib-svr4.c (elf_locate_base, enable_break): Update.
10066 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10067 (flush_ea_cache): Update.
10068 * stabsread.c (define_symbol): Update.
10069 * symfile.c (simple_read_overlay_table): Update.
10070 * symtab.c (find_pc_sect_line): Update.
10071 * tracepoint.c (scope_info): Update.
10072 * tui-disasm.c (tui_get_begin_asm_address): Update.
10073 * value.c (value_static_field): Update.
10075 2014-02-26 Tom Tromey <tromey@redhat.com>
10077 * minsyms.c (prim_record_minimal_symbol_full): Use
10078 SET_MSYMBOL_VALUE_ADDRESS.
10079 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10080 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10081 SET_MSYMBOL_VALUE_ADDRESS.
10082 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10083 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10085 2014-02-26 Tom Tromey <tromey@redhat.com>
10087 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10088 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10089 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10090 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10091 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10092 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10093 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10094 * ada-lang.c (ada_main_name): Update.
10095 (ada_lookup_simple_minsym): Update.
10096 (ada_make_symbol_completion_list): Update.
10097 (ada_add_standard_exceptions): Update.
10098 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10099 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10100 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10101 * arm-tdep.c (skip_prologue_function): Update.
10102 (arm_skip_stack_protector, arm_skip_stub): Update.
10103 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10104 (arm_wince_skip_main_prologue): Update.
10105 * auxv.c (ld_so_xfer_auxv): Update.
10106 * avr-tdep.c (avr_scan_prologue): Update.
10107 * ax-gdb.c (gen_var_ref): Update.
10108 * block.c (call_site_for_pc): Update.
10109 * blockframe.c (get_pc_function_start): Update.
10110 (find_pc_partial_function_gnu_ifunc): Update.
10111 * breakpoint.c (create_overlay_event_breakpoint): Update.
10112 (create_longjmp_master_breakpoint): Update.
10113 (create_std_terminate_master_breakpoint): Update.
10114 (create_exception_master_breakpoint): Update.
10115 (resolve_sal_pc): Update.
10116 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10117 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10119 * c-valprint.c (c_val_print): Update.
10120 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10121 * coffread.c (coff_symfile_read): Update.
10122 * common/agent.c (agent_look_up_symbols): Update.
10123 * dbxread.c (find_stab_function_addr): Update.
10124 (end_psymtab): Update.
10125 * dwarf2loc.c (call_site_to_target_addr): Update.
10126 (func_verify_no_selftailcall): Update.
10127 (tailcall_dump): Update.
10128 (call_site_find_chain_1): Update.
10129 (dwarf_expr_reg_to_entry_parameter): Update.
10130 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10131 (elf_gnu_ifunc_resolve_by_got): Update.
10132 * f-valprint.c (info_common_command): Update.
10133 * findvar.c (read_var_value): Update.
10134 * frame.c (get_prev_frame_1): Update.
10135 (inside_main_func): Update.
10136 * frv-tdep.c (frv_skip_main_prologue): Update.
10137 (frv_frame_this_id): Update.
10138 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10139 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10140 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10141 (gnuv3_skip_trampoline): Update.
10142 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10143 (hppa64_hpux_in_solib_call_trampoline): Update.
10144 (hppa_hpux_skip_trampoline_code): Update.
10145 (hppa64_hpux_search_dummy_call_sequence): Update.
10146 (hppa_hpux_find_import_stub_for_addr): Update.
10147 (hppa_hpux_find_dummy_bpaddr): Update.
10148 * hppa-tdep.c (hppa_symbol_address)
10149 (hppa_lookup_stub_minimal_symbol): Update.
10150 * i386-tdep.c (i386_skip_main_prologue): Update.
10151 (i386_pe_skip_trampoline_code): Update.
10152 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10153 * infcall.c (get_function_name): Update.
10154 * infcmd.c (until_next_command): Update.
10155 * jit.c (jit_breakpoint_re_set_internal): Update.
10156 (jit_inferior_init): Update.
10157 * linespec.c (minsym_found): Update.
10158 (add_minsym): Update.
10159 * linux-fork.c (info_checkpoints_command): Update.
10160 * linux-nat.c (get_signo): Update.
10161 * linux-thread-db.c (inferior_has_bug): Update.
10162 * m32c-tdep.c (m32c_return_value): Update.
10163 (m32c_m16c_address_to_pointer): Update.
10164 (m32c_m16c_pointer_to_address): Update.
10165 * m32r-tdep.c (m32r_frame_this_id): Update.
10166 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10167 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10168 * maint.c (maintenance_translate_address): Update.
10169 * minsyms.c (add_minsym_to_hash_table): Update.
10170 (add_minsym_to_demangled_hash_table): Update.
10171 (msymbol_objfile): Update.
10172 (lookup_minimal_symbol): Update.
10173 (iterate_over_minimal_symbols): Update.
10174 (lookup_minimal_symbol_text): Update.
10175 (lookup_minimal_symbol_by_pc_name): Update.
10176 (lookup_minimal_symbol_solib_trampoline): Update.
10177 (lookup_minimal_symbol_by_pc_section_1): Update.
10178 (lookup_minimal_symbol_and_objfile): Update.
10179 (prim_record_minimal_symbol_full): Update.
10180 (compare_minimal_symbols): Update.
10181 (compact_minimal_symbols): Update.
10182 (build_minimal_symbol_hash_tables): Update.
10183 (install_minimal_symbols): Update.
10184 (terminate_minimal_symbol_table): Update.
10185 (find_solib_trampoline_target): Update.
10186 (minimal_symbol_upper_bound): Update.
10187 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10188 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10189 (mips_skip_pic_trampoline_code): Update.
10190 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10191 * objc-lang.c (selectors_info): Update.
10192 (classes_info): Update.
10193 (find_methods): Update.
10194 (find_imps): Update.
10195 (find_objc_msgsend): Update.
10196 * objfiles.c (objfile_relocate1): Update.
10197 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10198 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10199 * p-valprint.c (pascal_val_print): Update.
10200 * parse.c (write_exp_msymbol): Update.
10201 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10202 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10203 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10204 * printcmd.c (build_address_symbolic): Update.
10205 (sym_info): Update.
10206 (address_info): Update.
10207 * proc-service.c (ps_pglobal_lookup): Update.
10208 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10209 (find_pc_sect_psymtab): Update.
10210 * python/py-framefilter.c (py_print_frame): Update.
10211 * ravenscar-thread.c (get_running_thread_id): Update.
10212 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10214 * remote.c (remote_check_symbols): Update.
10215 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10216 (rs6000_skip_trampoline_code): Update.
10217 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10218 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10219 * solib-dsbt.c (lm_base): Update.
10220 * solib-frv.c (lm_base): Update.
10221 (main_got): Update.
10222 * solib-irix.c (locate_base): Update.
10223 * solib-som.c (som_solib_create_inferior_hook): Update.
10224 (som_solib_desire_dynamic_linker_symbols): Update.
10225 (link_map_start): Update.
10226 * solib-spu.c (spu_enable_break): Update.
10227 (ocl_enable_break): Update.
10228 * solib-svr4.c (elf_locate_base): Update.
10229 (enable_break): Update.
10230 * spu-tdep.c (spu_get_overlay_table): Update.
10231 (spu_catch_start): Update.
10232 (flush_ea_cache): Update.
10233 * stabsread.c (define_symbol): Update.
10234 (scan_file_globals): Update.
10235 * stack.c (find_frame_funname): Update.
10236 (frame_info): Update.
10237 * symfile.c (simple_read_overlay_table): Update.
10238 (simple_overlay_update): Update.
10239 * symmisc.c (dump_msymbols): Update.
10240 * symtab.c (fixup_section): Update.
10241 (find_pc_sect_line): Update.
10242 (skip_prologue_sal): Update.
10243 (search_symbols): Update.
10244 (print_msymbol_info): Update.
10245 (rbreak_command): Update.
10246 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10247 (completion_list_objc_symbol): Update.
10248 (default_make_symbol_completion_list_break_on): Update.
10249 * tracepoint.c (scope_info): Update.
10250 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10251 (tui_get_begin_asm_address): Update.
10252 * valops.c (find_function_in_inferior): Update.
10253 * value.c (value_static_field): Update.
10254 (value_fn_field): Update.
10256 2014-02-26 Tom Tromey <tromey@redhat.com>
10258 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10259 bound minimal symbols. Move code that knows about minsym
10261 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10263 * minsyms.h (minimal_symbol_upper_bound): Declare.
10264 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10265 minimal_symbol_upper_bound.
10267 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10269 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10270 Use the type's name if its basic type does not have a tag.
10272 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10274 * dwarf2read.c (read_subrange_type): Add comment.
10276 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10278 * dwarf2read.c (update_enumeration_type_from_children): New
10279 function, mostly extracted from process_structure_scope.
10280 (read_enumeration_type): Call update_enumeration_type_from_children.
10281 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10282 and flag_flag_enum fields.
10284 2014-02-26 Pedro Alves <palves@redhat.com>
10286 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10287 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10288 to_xfer_partial method.
10290 2014-02-26 Pedro Alves <palves@redhat.com>
10292 * target.c (complete_target_initialization): Don't install
10293 default_xfer_partial as to_xfer_partial hook.
10294 (nomemory): Delete.
10295 (update_current_target): Don't INHERIT nor de_fault
10296 deprecated_xfer_memory. Delete de_fault macro.
10297 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10298 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10299 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10302 2014-02-26 Pedro Alves <palves@redhat.com>
10304 * go32-nat.c (my_write_child): New function.
10305 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10306 (go32_xfer_partial): New function.
10307 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10308 Instead install a to_xfer_partial hook.
10310 2014-02-26 Pedro Alves <palves@redhat.com>
10312 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10313 to_xfer_partial helper. Rewrite.
10314 (procfs_xfer_partial): New function.
10315 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10316 Install a to_xfer_partial hook.
10318 2014-02-26 Pedro Alves <palves@redhat.com>
10320 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10321 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10322 (m32r_xfer_partial): New function.
10323 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10324 Install a to_xfer_partial hook.
10326 2014-02-26 Pedro Alves <palves@redhat.com>
10328 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10330 (mips_xfer_partial): New function.
10331 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10332 hook. Install a to_xfer_partial hook.
10334 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10336 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10337 * gdbtypes.c (create_array_type_with_stride): New function,
10338 renaming create_array_type, but with an added parameter
10339 called "bit_stride".
10340 (create_array_type): Re-implement using
10341 create_array_type_with_stride.
10342 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10343 and DW_AT_bit_stride attributes.
10345 2014-02-26 Pedro Alves <palves@redhat.com>
10347 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10348 task-specific breakpoints.
10350 2014-02-25 Pedro Alves <palves@redhat.com>
10352 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10353 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10355 2014-02-25 Stan Shebs <stan@codesourcery.com>
10357 * defs.h: Annotate comments for Doxygen.
10359 2014-02-25 Tom Tromey <tromey@redhat.com>
10361 * target.h (target_ignore): Don't declare.
10362 * target.c (target_ignore): Remove.
10364 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10367 * auto-load.c (auto_load_objfile_script_1): Change filename to
10370 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10372 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10373 documentation. Adjust prototype to match the target_ops
10374 to_xfer_partial method. Adjust implementation accordingly.
10376 2014-02-25 Hui Zhu <hui@codesourcery.com>
10378 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10379 to_traceframe_info.
10381 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10383 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10384 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10385 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10386 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10387 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10388 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10389 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10390 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10392 (rl78_register_type): Use a data pointer type for SP and
10393 new pseudo registers mentioned above. Use a 16 bit integer
10394 type for all other register pairs.
10395 (rl78_register_name, rl78_g10_register_name): Update for
10396 new pseudo registers.
10397 (rl78_pseudo_register_read): Likewise.
10398 (rl78_pseudo_register_write): Likewise.
10399 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10400 to the newly added pseudo registers.
10402 2014-02-24 Doug Evans <dje@google.com>
10404 * value.c (record_latest_value): Fix comment.
10405 * printcmd.c (print_command_1): Remove code to handle -1 return from
10406 record_latest_value.
10408 2014-02-24 Pedro Alves <palves@redhat.com>
10410 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10411 deprecated_xfer_memory hook.
10412 (procfs_xfer_partial): Call procfs_xfer_memory instead
10413 of the deprecated_xfer_memory target hook.
10414 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10417 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10419 * windows-nat.c (windows_xfer_shared_libraries): Return
10420 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10421 requested object is TARGET_OBJECT_LIBRARIES.
10423 2014-02-24 Yao Qi <yao@codesourcery.com>
10425 * target.h (enum target_xfer_status)
10426 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10427 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10429 * corefile.c (memory_error_message): User updated.
10430 * exec.c (section_table_read_available_memory): Likewise.
10431 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10432 * target.c (target_xfer_status_to_string): Likewise.
10433 (raw_memory_xfer_partial): Likewise.
10434 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10435 * valops.c (read_value_memory): Likewise.
10436 * exec.h: Update comments.
10438 2014-02-24 Yao Qi <yao@codesourcery.com>
10440 * target.c (target_xfer_status_to_string): Rename argument err
10442 * target.h (target_xfer_status_to_string): Update declaration.
10443 Replace target_xfer_error_to_string with
10444 target_xfer_status_to_string in comment.
10446 2014-02-24 Yao Qi <yao@codesourcery.com>
10448 * mips-linux-nat.c (super_close): Update its type.
10449 (mips_linux_close): Pass 'self' to super_close.
10451 2014-02-24 Yao Qi <yao@codesourcery.com>
10453 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10454 * corefile.c (read_memory): Adjusted.
10455 * target.c (target_write_with_progress): Adjusted.
10457 2014-02-23 Yao Qi <yao@codesourcery.com>
10459 Revert two patches:
10461 2013-10-25 Yao Qi <yao@codesourcery.com>
10463 * remote.c (remote_traceframe_info): Return early if
10464 traceframe is not selected.
10466 2013-07-19 Yao Qi <yao@codesourcery.com>
10468 * target.c (update_current_target): Change the default action
10469 of 'to_traceframe_info' from tcomplain to return_zero.
10470 * target.h (struct target_ops) <to_traceframe_info>: Add more
10473 2014-02-23 Yao Qi <yao@codesourcery.com>
10475 * valops.c (read_value_memory): Rewrite it. Call
10476 target_xfer_partial in a loop.
10477 * exec.h (section_table_available_memory): Remove declaration.
10478 Move comments to ...
10479 * exec.c (section_table_available_memory): ... here. Make it
10482 2014-02-23 Yao Qi <yao@codesourcery.com>
10484 * exec.c (section_table_read_available_memory): New function.
10485 * exec.h (section_table_read_available_memory): Declare.
10486 * ctf.c (ctf_xfer_partial): Call
10487 section_table_read_available_memory.
10488 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10490 2014-02-23 Yao Qi <yao@codesourcery.com>
10492 * ctf.c (ctf_xfer_partial): Move code to ...
10493 * exec.c (exec_read_partial_read_only): ... it. New function.
10494 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10495 * tracefile.c: Include "exec.h".
10496 * exec.h (exec_read_partial_read_only): Declare.
10498 2014-02-23 Yao Qi <yao@codesourcery.com>
10500 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10501 (tfile_has_memory): Remove.
10502 (init_tfile_ops): Don't set fields to_has_all_memory and
10503 to_has_memory of tfile_ops.
10504 * tracefile.c (tracefile_has_all_memory): New function.
10505 (tracefile_has_memory): New function.
10506 (init_tracefile_ops): Initialize fields to_has_all_memory and
10507 to_has_memory of 'ops'.
10509 2014-02-23 Yao Qi <yao@codesourcery.com>
10511 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10512 (ctf_thread_alive, ctf_get_trace_status): Remove.
10513 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10514 init_tracefile_ops.
10515 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10516 (tfile_has_stack, tfile_has_registers): Remove.
10517 (tfile_thread_alive): Remove.
10518 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10519 init_tracefile_ops.
10520 * tracefile.c (tracefile_has_stack): New function.
10521 (tracefile_has_registers): New function.
10522 (tracefile_thread_alive): New function.
10523 (tracefile_get_trace_status): New function.
10524 (init_tracefile_ops): New function.
10525 * tracefile.h (init_tracefile_ops): Declare.
10527 2014-02-23 Yao Qi <yao@codesourcery.com>
10529 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10530 (O_LARGEFILE): Likewise.
10531 (tfile_ops): Likewise.
10532 (TRACE_HEADER_SIZE): Likewise.
10533 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10534 (cur_data_size): Likewise.
10535 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10536 (tfile_close, tfile_files_info): Likewise.
10537 (tfile_get_trace_status): Likewise.
10538 (tfile_get_tracepoint_status): Likewise.
10539 (tfile_get_traceframe_address): Likewise.
10540 (tfile_trace_find, match_blocktype): Likewise.
10541 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10542 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10543 (tfile_get_trace_state_variable_value): Likewise.
10544 (tfile_has_all_memory, tfile_has_memory): Likewise.
10545 (tfile_has_stack, tfile_has_registers): Likewise.
10546 (tfile_thread_alive, build_traceframe_info): Likewise.
10547 (tfile_traceframe_info, init_tfile_ops): Likewise.
10548 (_initialize_tracepoint): Don't call init_tfile_ops
10549 and add_target_with_completer.
10550 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10551 exec.h, completer.h and filenames.h.
10552 (_initialize_tracefile_tfile): New function.
10554 2014-02-23 Yao Qi <yao@codesourcery.com>
10556 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10558 (HFILES_NO_SRCDIR): Add tracefile.h.
10559 * ctf.c: Include "tracefile.h".
10560 * tracefile.h: New file.
10561 * tracefile.c: New file
10562 * tracefile-tfile.c: New file.
10563 * tracepoint.c: Include "tracefile.h".
10564 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10565 (stop_reason_names): Add const.
10566 (trace_file_writer_xfree): Move it to tracefile.c.
10567 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10568 (trace_save_ctf): Likewise.
10569 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10570 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10571 (tfile_write_header, tfile_write_regblock_type): Likewise.
10572 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10573 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10574 (tfile_write_raw_data, tfile_end): Likewise.
10575 (tfile_trace_file_writer_new): Likewise.
10576 (free_uploaded_tp): Make it extern.
10577 (free_uploaded_tsv): Make it extern.
10578 (_initialize_tracepoint): Move code to register command 'tsave'
10580 * tracepoint.h (stop_reason_names): Declare.
10581 (struct trace_frame_write_ops): Move it to tracefile.h.
10582 (struct trace_file_write_ops): Likewise.
10583 (struct trace_file_writer): Likewise.
10584 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10586 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10589 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10591 (get_cores_used_by_process): New parameter num_cores, use it.
10592 (linux_xfer_osdata_processes): Pass num_cores to it.
10593 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10596 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10598 * target.c (memory_xfer_partial): Fix length arg in call to
10599 breakpoint_xfer_memory.
10601 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10604 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10605 number comes after the + or - signs. Adjust length of register
10606 name to be extracted.
10608 2014-02-20 Tom Tromey <tromey@redhat.com>
10610 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10611 (ada_varobj_ops): Mark "extern".
10613 2014-02-20 Tom Tromey <tromey@redhat.com>
10615 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10617 2014-02-20 Doug Evans <xdje42@gmail.com>
10619 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10620 All callers updated.
10621 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10622 All callers updated.
10623 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10624 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10626 2014-02-20 lin zuojian <manjian2006@gmail.com>
10627 Joel Brobecker <brobecker@adacore.com>
10628 Doug Evans <xdje42@gmail.com>
10631 * dwarf2read.c (struct die_info): New member in_process.
10632 (reset_die_in_process): New function.
10633 (process_die): Set it at the start, reset when returning.
10634 (inherit_abstract_dies): Only call process_die if origin_child_die
10635 not already being processed.
10637 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10639 * windows-nat.c (handle_unload_dll): Add function documentation.
10640 (do_initial_windows_stuff): Add comment explaining why we wait
10641 until after inferior initialization has finished before
10642 processing all DLLs.
10644 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10646 * windows-nat.c (get_module_name): Delete.
10647 (windows_get_exec_module_filename): New function, mostly
10648 inspired from get_module_name.
10649 (windows_pid_to_exec_file): Replace call to get_module_name
10650 by call to windows_get_exec_module_filename.
10652 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10654 * windows-nat.c (handle_load_dll): Rewrite this function's
10655 introductory comment. Remove code using get_module_name
10656 to get the DLL's name.
10658 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10660 * windows-nat.c (get_windows_debug_event): Ignore
10661 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10662 if windows_initialization_done == 0.
10663 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10664 Adjust implementation to always load all DLLs.
10665 (do_initial_windows_stuff): Replace call to
10666 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10668 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10670 * windows-nat.c (_initialize_windows_nat): Deprecate the
10671 "dll-symbols" command. Turn the "add-shared-symbol-files"
10672 and "assf" aliases into commands, and deprecate them as well.
10673 * NEWS: Add entry explaining that "dll-symbols" and its two
10674 aliases are now deprecated.
10676 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10678 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10679 new-line in debug string. Remove trailing spaces.
10681 2014-02-19 Stan Shebs <stan@codesourcery.com>
10683 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10685 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10687 * NEWS: Add entry for the new feature
10688 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10691 2014-02-19 Stan Shebs <stan@codesourcery.com>
10693 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10695 2014-02-19 Pedro Alves <palves@redhat.com>
10697 * common/ptid.h (struct ptid): Mention that process_stratum
10698 targets should prefer ptid.lwp.
10700 2014-02-19 Pedro Alves <palves@redhat.com>
10702 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10703 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10704 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10705 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10706 store remote thread ids rather than ptid.tid.
10707 (_initialize_remote): Adjust.
10709 2014-02-19 Tom Tromey <tromey@redhat.com>
10711 * target.c (target_get_unwinder): Rewrite.
10712 (target_get_tailcall_unwinder): Rewrite.
10713 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10714 (record_btrace_to_get_tailcall_unwinder): New function.
10715 (init_record_btrace_ops): Update.
10716 * target.h (struct target_ops) <to_get_unwinder,
10717 to_get_tailcall_unwinder>: Now function pointers. Use
10718 TARGET_DEFAULT_RETURN.
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10722 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10724 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10730 * target-delegates.c: Rebuild.
10731 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10732 TARGET_DEFAULT_FUNC.
10733 * target.c (default_target_decr_pc_after_break): Rename from
10734 forward_target_decr_pc_after_break. Simplify.
10735 (target_decr_pc_after_break): Rely on delegation.
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10739 * target.c (update_current_target): Do not INHERIT to_doc or
10740 to_magic. Do not de_fault to_open or to_close.
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10744 * gcore.h (objfile_find_memory_regions): Declare.
10745 * gcore.c (objfile_find_memory_regions): No longer static. Add
10747 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10748 * exec.c: Include gcore.h.
10749 (exec_set_find_memory_regions): Remove.
10750 (exec_find_memory_regions): Remove.
10751 (exec_do_find_memory_regions): Remove.
10752 (init_exec_ops): Update.
10753 * defs.h (exec_set_find_memory_regions): Remove.
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10757 * target-delegates.c: Rebuild.
10758 * target.h (struct target_ops) <to_extra_thread_info,
10759 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10760 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10761 not 0, in TARGET_DEFAULT_RETURN.
10763 2014-02-19 Tom Tromey <tromey@redhat.com>
10765 * target.c (complete_target_initialization): Remove casts. Use
10766 return_zero_has_execution.
10767 (return_zero): Add "ignore" argument.
10768 (return_zero_has_execution): New function.
10769 (init_dummy_target): Remove casts. Use
10770 return_zero_has_execution.
10772 2014-02-19 Tom Tromey <tromey@redhat.com>
10774 * target.c (update_current_target): Update comments. Do not
10775 INHERIT to_stratum.
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10779 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10781 * corelow.c (core_read_description): Delegate when needed.
10782 * remote.c (remote_read_description): Delegate when needed.
10783 * target-delegates.c: Rebuild.
10784 * target.c (target_read_description): Rewrite.
10785 * target.h (struct target_ops) <to_read_description>: Update
10786 comment. Use TARGET_DEFAULT_RETURN.
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * target-delegates.c: Rebuild.
10791 * target.c (update_current_target): Don't inherit or default
10793 (find_default_run_target): Check against delegate_can_run.
10794 * target.h (struct target_ops) <to_can_run>: Use
10795 TARGET_DEFAULT_RETURN.
10797 2014-02-19 Tom Tromey <tromey@redhat.com>
10799 * target-delegates.c: Rebuild.
10800 * target.c (target_disconnect): Unconditionally delegate.
10801 * target.h (struct target_ops) <to_disconnect>: Use
10802 TARGET_DEFAULT_NORETURN.
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10806 * record.c (record_stop): Unconditionally delegate.
10807 * target-delegates.c: Rebuild.
10808 * target.c (target_stop_recording): Unconditionally delegate.
10809 * target.h (struct target_ops) <to_stop_recording>: Use
10810 TARGET_DEFAULT_IGNORE.
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10814 * target-delegates.c: Rebuild.
10815 * target.c (target_enable_btrace): Unconditionally delegate.
10816 * target.h (struct target_ops) <to_enable_btrace>: Use
10817 TARGET_DEFAULT_NORETURN.
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10821 * target-delegates.c: Rebuild.
10822 * target.c (target_read_btrace): Unconditionally delegate.
10823 * target.h (struct target_ops) <to_read_btrace>: Use
10824 TARGET_DEFAULT_NORETURN.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target-delegates.c: Rebuild.
10829 * target.c (target_teardown_btrace): Unconditionally delegate.
10830 * target.h (struct target_ops) <to_teardown_btrace>: Use
10831 TARGET_DEFAULT_NORETURN.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target-delegates.c: Rebuild.
10836 * target.c (target_disable_btrace): Unconditionally delegate.
10837 * target.h (struct target_ops) <to_disable_btrace>: Use
10838 TARGET_DEFAULT_NORETURN.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target-delegates.c: Rebuild.
10843 * target.c (default_search_memory): New function.
10844 (simple_search_memory): Update comment.
10845 (target_search_memory): Unconditionally delegate.
10846 * target.h (struct target_ops) <to_search_memory>: Use
10847 TARGET_DEFAULT_FUNC.
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10851 * auxv.c (default_auxv_parse): No longer static.
10852 (target_auxv_parse): Unconditionally delegate.
10853 * auxv.h (default_auxv_parse): Declare.
10854 * target-delegates.c: Rebuild.
10855 * target.c: Include auxv.h.
10856 * target.h (struct target_ops) <to_auxv_parse>: Use
10857 TARGET_DEFAULT_FUNC.
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10861 * target-delegates.c: Rebuild.
10862 * target.c (target_memory_map): Unconditionally delegate.
10863 * target.h (struct target_ops) <to_memory_map>: Use
10864 TARGET_DEFAULT_RETURN.
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10868 * target-delegates.c: Rebuild.
10869 * target.c (target_thread_alive): Unconditionally delegate.
10870 * target.h (struct target_ops) <to_thread_alive>: Use
10871 TARGET_DEFAULT_RETURN.
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10875 * target-delegates.c: Rebuild.
10876 * target.c (target_save_record): Unconditionally delegate.
10877 * target.h (struct target_ops) <to_save_record>: Use
10878 TARGET_DEFAULT_NORETURN.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * target-delegates.c: Rebuild.
10883 * target.c (target_delete_record): Unconditionally delegate.
10884 * target.h (struct target_ops) <to_delete_record>: Use
10885 TARGET_DEFAULT_NORETURN.
10887 2014-02-19 Tom Tromey <tromey@redhat.com>
10889 * target-delegates.c: Rebuild.
10890 * target.c (target_record_is_replaying): Unconditionally
10892 * target.h (struct target_ops) <to_record_is_replaying>: Use
10893 TARGET_DEFAULT_RETURN.
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10897 * target-delegates.c: Rebuild.
10898 * target.c (target_goto_record_begin): Unconditionally delegate.
10899 * target.h (struct target_ops) <to_goto_record_begin>: Use
10900 TARGET_DEFAULT_NORETURN.
10902 2014-02-19 Tom Tromey <tromey@redhat.com>
10904 * target-delegates.c: Rebuild.
10905 * target.c (target_goto_record_end): Unconditionally delegate.
10906 * target.h (struct target_ops) <to_goto_record_end>: Use
10907 TARGET_DEFAULT_NORETURN.
10909 2014-02-19 Tom Tromey <tromey@redhat.com>
10911 * target-delegates.c: Rebuild.
10912 * target.c (target_goto_record): Unconditionally delegate.
10913 * target.h (struct target_ops) <to_goto_record>: Use
10914 TARGET_DEFAULT_NORETURN.
10916 2014-02-19 Tom Tromey <tromey@redhat.com>
10918 * target-delegates.c: Rebuild.
10919 * target.c (target_insn_history): Unconditionally delegate.
10920 * target.h (struct target_ops) <to_insn_history>: Use
10921 TARGET_DEFAULT_NORETURN.
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10925 * target-delegates.c: Rebuild.
10926 * target.c (target_insn_history_from): Unconditionally delegate.
10927 * target.h (struct target_ops) <to_insn_history_from>: Use
10928 TARGET_DEFAULT_NORETURN.
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10932 * target-delegates.c: Rebuild.
10933 * target.c (target_insn_history_range): Unconditionally delegate.
10934 * target.h (struct target_ops) <to_insn_history_range>: Use
10935 TARGET_DEFAULT_NORETURN.
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10939 * target-delegates.c: Rebuild.
10940 * target.c (target_call_history): Unconditionally delegate.
10941 * target.h (struct target_ops) <to_call_history>: Use
10942 TARGET_DEFAULT_NORETURN.
10944 2014-02-19 Tom Tromey <tromey@redhat.com>
10946 * target-delegates.c: Rebuild.
10947 * target.c (target_call_history_from): Unconditionally delegate.
10948 * target.h (struct target_ops) <to_call_history_from>: Use
10949 TARGET_DEFAULT_NORETURN.
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10953 * target-delegates.c: Rebuild.
10954 * target.c (target_call_history_range): Unconditionally delegate.
10955 * target.h (struct target_ops) <to_call_history_range>: Use
10956 TARGET_DEFAULT_NORETURN.
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10960 * target-delegates.c: Rebuild.
10961 * target.c (target_verify_memory): Unconditionally delegate.
10962 * target.h (struct target_ops) <to_verify_memory>: Use
10963 TARGET_DEFAULT_NORETURN.
10965 2014-02-19 Tom Tromey <tromey@redhat.com>
10967 * target-delegates.c: Rebuild.
10968 * target.c (target_core_of_thread): Unconditionally delegate.
10969 * target.h (struct target_ops) <to_core_of_thread>: Use
10970 TARGET_DEFAULT_RETURN.
10972 2014-02-19 Tom Tromey <tromey@redhat.com>
10974 * target-delegates.c: Rebuild.
10975 * target.c (target_flash_done): Unconditionally delegate.
10976 * target.h (struct target_ops) <to_flash_done>: Use
10977 TARGET_DEFAULT_NORETURN.
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10981 * target-delegates.c: Rebuild.
10982 * target.c (target_flash_erase): Unconditionally delegate.
10983 * target.h (struct target_ops) <to_flash_erase>: Use
10984 TARGET_DEFAULT_NORETURN.
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10988 * target-delegates.c: Rebuild.
10989 * target.c (target_get_section_table): Unconditionally delegate.
10990 * target.h (struct target_ops) <to_get_section_table>: Use
10991 TARGET_DEFAULT_RETURN.
10993 2014-02-19 Tom Tromey <tromey@redhat.com>
10995 * target-delegates.c: Rebuild.
10996 * target.c (target_pid_to_str): Unconditionally delegate.
10997 (init_dummy_target): Don't initialize to_pid_to_str.
10998 (default_pid_to_str): Rename from dummy_pid_to_str.
10999 * target.h (struct target_ops) <to_pid_to_str>: Use
11000 TARGET_DEFAULT_FUNC.
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11004 * target-delegates.c: Rebuild.
11005 * target.c (target_find_new_threads): Unconditionally delegate.
11006 * target.h (struct target_ops) <to_find_new_threads>: Use
11007 TARGET_DEFAULT_RETURN.
11009 2014-02-19 Tom Tromey <tromey@redhat.com>
11011 * target-delegates.c: Rebuild.
11012 * target.c (target_program_signals): Unconditionally delegate.
11013 * target.h (struct target_ops) <to_program_signals>: Use
11014 TARGET_DEFAULT_IGNORE.
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target-delegates.c: Rebuild.
11019 * target.c (target_pass_signals): Unconditionally delegate.
11020 * target.h (struct target_ops) <to_pass_signals>: Use
11021 TARGET_DEFAULT_IGNORE.
11023 2014-02-19 Tom Tromey <tromey@redhat.com>
11025 * target-delegates.c: Rebuild.
11026 * target.c (default_mourn_inferior): New function.
11027 (target_mourn_inferior): Unconditionally delegate.
11028 * target.h (struct target_ops) <to_mourn_inferior>: Use
11029 TARGET_DEFAULT_FUNC.
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11033 * target-delegates.c: Rebuild.
11034 * target.c (default_follow_fork): New function.
11035 (target_follow_fork): Unconditionally delegate.
11036 * target.h (struct target_ops) <to_follow_fork>: Use
11037 TARGET_DEFAULT_FUNC.
11039 2014-02-19 Tom Tromey <tromey@redhat.com>
11041 * target-delegates.c: Rebuild.
11042 * target.c (target_kill): Unconditionally delegate.
11043 * target.h (struct target_ops) <to_kill>: Use
11044 TARGET_DEFAULT_NORETURN.
11046 2014-02-19 Tom Tromey <tromey@redhat.com>
11048 * target-delegates.c: Rebuild.
11049 * target.c (target_masked_watch_num_registers): Unconditionally
11051 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11052 Use TARGET_DEFAULT_RETURN.
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11056 * target-delegates.c: Rebuild.
11057 * target.c (target_remove_mask_watchpoint): Unconditionally
11059 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11060 TARGET_DEFAULT_RETURN.
11062 2014-02-19 Tom Tromey <tromey@redhat.com>
11064 * target-delegates.c: Rebuild.
11065 * target.c (target_insert_mask_watchpoint): Unconditionally
11067 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11068 TARGET_DEFAULT_RETURN.
11070 2014-02-19 Tom Tromey <tromey@redhat.com>
11072 * target-delegates.c: Rebuild.
11073 * target.c (target_ranged_break_num_registers): Unconditionally
11075 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11076 Use TARGET_DEFAULT_RETURN.
11078 2014-02-19 Tom Tromey <tromey@redhat.com>
11080 * target-delegates.c: Rebuild.
11081 * target.c (target_fetch_registers): Unconditionally delegate.
11082 * target.h (struct target_ops) <to_fetch_registers>: Use
11083 TARGET_DEFAULT_NORETURN.
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * target-delegates.c: Rebuild.
11088 * target.c (update_current_target): Don't inherit or default
11090 * target.h (struct target_ops) <to_stop>: Use
11091 TARGET_DEFAULT_IGNORE.
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11095 * target-delegates.c: Rebuild.
11096 * target.c (update_current_target): Don't inherit or default
11097 to_can_run_breakpoint_commands.
11098 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11099 Use TARGET_DEFAULT_RETURN.
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11103 * target-delegates.c: Rebuild.
11104 * target.c (update_current_target): Don't inherit or default
11105 to_supports_evaluation_of_breakpoint_conditions.
11106 * target.h (struct target_ops)
11107 <to_supports_evaluation_of_breakpoint_conditions>: Use
11108 TARGET_DEFAULT_RETURN.
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11112 * target-delegates.c: Rebuild.
11113 * target.c (update_current_target): Don't inherit or default
11114 to_augmented_libraries_svr4_read.
11115 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11116 Use TARGET_DEFAULT_RETURN.
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target-delegates.c: Rebuild.
11121 * target.c (update_current_target): Don't inherit or default
11123 * target.h (struct target_ops) <to_can_use_agent>: Use
11124 TARGET_DEFAULT_RETURN.
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11128 * target-delegates.c: Rebuild.
11129 * target.c (update_current_target): Don't inherit or default
11131 * target.h (struct target_ops) <to_use_agent>: Use
11132 TARGET_DEFAULT_NORETURN.
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target-delegates.c: Rebuild.
11137 * target.c (update_current_target): Don't inherit or default
11138 to_traceframe_info.
11139 (return_null): Remove.
11140 * target.h (struct target_ops) <to_traceframe_info>: Use
11141 TARGET_DEFAULT_RETURN.
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11145 * target-delegates.c: Rebuild.
11146 * target.c (update_current_target): Don't inherit or default
11147 to_static_tracepoint_markers_by_strid.
11148 * target.h (struct target_ops)
11149 <to_static_tracepoint_markers_by_strid>: Use
11150 TARGET_DEFAULT_NORETURN.
11152 2014-02-19 Tom Tromey <tromey@redhat.com>
11154 * target-delegates.c: Rebuild.
11155 * target.c (update_current_target): Don't inherit or default
11156 to_static_tracepoint_marker_at.
11157 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11158 Use TARGET_DEFAULT_RETURN.
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target-delegates.c: Rebuild.
11163 * target.c (update_current_target): Don't inherit or default
11164 to_set_permissions.
11165 * target.h (struct target_ops) <to_set_permissions>: Use
11166 TARGET_DEFAULT_IGNORE.
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target-delegates.c: Rebuild.
11171 * target.c (update_current_target): Don't inherit or default
11172 to_get_tib_address.
11173 * target.h (struct target_ops) <to_get_tib_address>: Use
11174 TARGET_DEFAULT_NORETURN.
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11178 * target-delegates.c: Rebuild.
11179 * target.c (update_current_target): Don't inherit or default
11180 to_set_trace_notes.
11181 * target.h (struct target_ops) <to_set_trace_notes>: Use
11182 TARGET_DEFAULT_RETURN.
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target-delegates.c: Rebuild.
11187 * target.c (update_current_target): Don't initialize
11188 to_set_trace_buffer_size.
11189 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11190 TARGET_DEFAULT_IGNORE.
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11194 * target-delegates.c: Rebuild.
11195 * target.c (update_current_target): Don't inherit or default
11196 to_set_circular_trace_buffer.
11197 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11198 TARGET_DEFAULT_IGNORE.
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11202 * target-delegates.c: Rebuild.
11203 * target.c (update_current_target): Don't inherit or default
11204 to_set_disconnected_tracing.
11205 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11206 TARGET_DEFAULT_IGNORE.
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target-delegates.c: Rebuild.
11211 * target.c (update_current_target): Don't inherit or default
11212 to_get_min_fast_tracepoint_insn_len.
11213 (return_minus_one): Remove.
11214 * target.h (struct target_ops)
11215 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11219 * target-delegates.c: Rebuild.
11220 * target.c (update_current_target): Don't inherit or default
11221 to_get_raw_trace_data.
11222 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11223 TARGET_DEFAULT_NORETURN.
11225 2014-02-19 Tom Tromey <tromey@redhat.com>
11227 * target-delegates.c: Rebuild.
11228 * target.c (update_current_target): Don't inherit or default
11229 to_upload_trace_state_variables.
11230 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11231 Use TARGET_DEFAULT_RETURN.
11233 2014-02-19 Tom Tromey <tromey@redhat.com>
11235 * target-delegates.c: Rebuild.
11236 * target.c (update_current_target): Don't inherit or default
11237 to_upload_tracepoints.
11238 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11239 TARGET_DEFAULT_RETURN.
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target-delegates.c: Rebuild.
11244 * target.c (update_current_target): Don't inherit or default
11245 to_save_trace_data.
11246 * target.h (struct target_ops) <to_save_trace_data>: Use
11247 TARGET_DEFAULT_NORETURN.
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11251 * target-delegates.c: Rebuild.
11252 * target.c (update_current_target): Don't inherit or default
11253 to_get_trace_state_variable_value.
11254 * target.h (struct target_ops)
11255 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11257 2014-02-19 Tom Tromey <tromey@redhat.com>
11259 * target-delegates.c: Rebuild.
11260 * target.c (update_current_target): Don't inherit or default
11262 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11266 * target-delegates.c: Rebuild.
11267 * target.c (update_current_target): Don't inherit or default
11269 * target.h (struct target_ops) <to_trace_stop>: Use
11270 TARGET_DEFAULT_NORETURN.
11272 2014-02-19 Tom Tromey <tromey@redhat.com>
11274 * target-delegates.c: Rebuild.
11275 * target.c (update_current_target): Don't inherit or default
11276 to_get_tracepoint_status.
11277 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11278 TARGET_DEFAULT_NORETURN.
11280 2014-02-19 Tom Tromey <tromey@redhat.com>
11282 * target-delegates.c: Rebuild.
11283 * target.c (update_current_target): Don't inherit or default
11284 to_get_trace_status.
11285 * target.h (struct target_ops) <to_get_trace_status>: Use
11286 TARGET_DEFAULT_RETURN.
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11290 * target-delegates.c: Rebuild.
11291 * target.c (update_current_target): Don't inherit or default
11293 * target.h (struct target_ops) <to_trace_start>: Use
11294 TARGET_DEFAULT_NORETURN.
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target-delegates.c: Rebuild.
11299 * target.c (update_current_target): Don't inherit or default
11300 to_trace_set_readonly_regions.
11301 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11302 Use TARGET_DEFAULT_NORETURN.
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * target-delegates.c: Rebuild.
11307 * target.c (update_current_target): Don't inherit or default
11308 to_disable_tracepoint.
11309 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11310 TARGET_DEFAULT_NORETURN.
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * target-delegates.c: Rebuild.
11315 * target.c (update_current_target): Don't inherit or default
11316 to_enable_tracepoint.
11317 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11318 TARGET_DEFAULT_NORETURN.
11320 2014-02-19 Tom Tromey <tromey@redhat.com>
11322 * target-delegates.c: Rebuild.
11323 * target.c (update_current_target): Don't inherit or default
11324 to_download_trace_state_variable.
11325 * target.h (struct target_ops) <to_download_trace_state_variable>:
11326 Use TARGET_DEFAULT_NORETURN.
11328 2014-02-19 Tom Tromey <tromey@redhat.com>
11330 * target-delegates.c: Rebuild.
11331 * target.c (update_current_target): Don't inherit or default
11332 to_can_download_tracepoint.
11333 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11334 TARGET_DEFAULT_RETURN.
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * target-delegates.c: Rebuild.
11339 * target.c (update_current_target): Don't inherit or default
11340 to_download_tracepoint.
11341 * target.h (struct target_ops) <to_download_tracepoint>: Use
11342 TARGET_DEFAULT_NORETURN.
11344 2014-02-19 Tom Tromey <tromey@redhat.com>
11346 * target-delegates.c: Rebuild.
11347 * target.c (update_current_target): Don't inherit or default
11349 * target.h (struct target_ops) <to_trace_init>: Use
11350 TARGET_DEFAULT_RETURN.
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11354 * target-delegates.c: Rebuild.
11355 * target.c (update_current_target): Don't inherit or default
11356 to_supports_string_tracing.
11357 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11358 TARGET_DEFAULT_RETURN.
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11362 * target-delegates.c: Rebuild.
11363 * target.c (update_current_target): Don't inherit or default
11364 to_supports_enable_disable_tracepoint.
11365 * target.h (struct target_ops)
11366 <to_supports_enable_disable_tracepoint>: Use
11367 TARGET_DEFAULT_RETURN.
11369 2014-02-19 Tom Tromey <tromey@redhat.com>
11371 * target-delegates.c: Rebuild.
11372 * target.c (update_current_target): Don't inherit or default
11373 to_supports_multi_process.
11374 * target.h (struct target_ops) <to_supports_multi_process>: Use
11375 TARGET_DEFAULT_RETURN.
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11379 * target-delegates.c: Rebuild.
11380 * target.c (update_current_target): Don't inherit or default
11381 to_get_ada_task_ptid.
11382 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11383 TARGET_DEFAULT_FUNC.
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target-delegates.c: Rebuild.
11388 * target.c (update_current_target): Don't inherit or default
11389 to_thread_architecture.
11390 * target.h (struct target_ops) <to_thread_architecture>: Use
11391 TARGET_DEFAULT_FUNC.
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11395 * target-delegates.c: Rebuild.
11396 * target.c (update_current_target): Don't inherit or default
11397 to_execution_direction.
11398 * target.h (struct target_ops) <to_execution_direction>: Use
11399 TARGET_DEFAULT_FUNC.
11401 2014-02-19 Tom Tromey <tromey@redhat.com>
11403 * target-delegates.c: Rebuild.
11404 * target.c (update_current_target): Don't inherit or default
11405 to_can_execute_reverse.
11406 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11407 TARGET_DEFAULT_RETURN.
11408 (target_can_execute_reverse): Unconditionally delegate.
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11412 * target-delegates.c: Rebuild.
11413 * target.c (update_current_target): Don't inherit or default
11415 (dummy_goto_bookmark): Remove.
11416 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11417 * target.h (struct target_ops) <to_goto_bookmark>: Use
11418 TARGET_DEFAULT_NORETURN.
11420 2014-02-19 Tom Tromey <tromey@redhat.com>
11422 * target-delegates.c: Rebuild.
11423 * target.c (update_current_target): Don't inherit or default
11425 (dummy_get_bookmark): Remove.
11426 (init_dummy_target): Don't inherit or default to_get_bookmark.
11427 * target.h (struct target_ops) <to_get_bookmark>: Use
11428 TARGET_DEFAULT_NORETURN
11430 2014-02-19 Tom Tromey <tromey@redhat.com>
11432 * target-delegates.c: Rebuild.
11433 * target.c (update_current_target): Don't inherit or default
11434 to_make_corefile_notes.
11435 (init_dummy_target): Don't initialize to_make_corefile_notes.
11436 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11437 TARGET_DEFAULT_FUNC.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_find_memory_regions.
11444 (init_dummy_target): Don't initialize to_find_memory_regions.
11445 * target.h (struct target_ops) <to_find_memory_regions>: Use
11446 TARGET_DEFAULT_FUNC.
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11453 * target.h (struct target_ops) <to_log_command>: Use
11454 TARGET_DEFAULT_IGNORE.
11455 (target_log_command): Unconditionally delegate.
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11459 * target-delegates.c: Rebuild.
11460 * target.c (update_current_target): Don't inherit or default
11461 to_pid_to_exec_file.
11462 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11463 TARGET_DEFAULT_RETURN.
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11467 * target-delegates.c: Rebuild.
11468 * target.c (update_current_target): Don't inherit or default
11470 (target_thread_name): Unconditionally delegate.
11471 * target.h (struct target_ops) <to_thread_name>: Use
11472 TARGET_DEFAULT_RETURN.
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11476 * target-delegates.c: Rebuild.
11477 * target.c (update_current_target): Don't inherit or default
11478 to_extra_thread_info.
11479 * target.h (struct target_ops) <to_extra_thread_info>: Use
11480 TARGET_DEFAULT_RETURN.
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11484 * target-delegates.c: Rebuild.
11485 * target.c (update_current_target): Don't inherit or default
11487 * target.h (struct target_ops) <to_has_exited>: Use
11488 TARGET_DEFAULT_RETURN..
11490 2014-02-19 Tom Tromey <tromey@redhat.com>
11492 * target-delegates.c: Rebuild.
11493 * target.c (update_current_target): Don't inherit or default
11494 to_set_syscall_catchpoint.
11495 (return_one): Remove.
11496 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11497 TARGET_DEFAULT_RETURN.
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11501 * target-delegates.c: Rebuild.
11502 * target.c (update_current_target): Don't inherit or default
11503 to_insert_exec_catchpoint.
11504 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11505 TARGET_DEFAULT_RETURN.
11507 2014-01-08 Tom Tromey <tromey@redhat.com>
11509 * target-delegates.c: Rebuild.
11510 * target.c (update_current_target): Don't inherit or default
11511 to_insert_exec_catchpoint.
11512 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11513 TARGET_DEFAULT_RETURN.
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11517 * target-delegates.c: Rebuild.
11518 * target.c (update_current_target): Don't inherit or default
11519 to_remove_vfork_catchpoint.
11520 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11521 TARGET_DEFAULT_RETURN.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * target-delegates.c: Rebuild.
11526 * target.c (update_current_target): Don't inherit or default
11527 to_insert_vfork_catchpoint.
11528 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11529 TARGET_DEFAULT_RETURN.
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * target-delegates.c: Rebuild.
11534 * target.c (update_current_target): Don't inherit or default
11535 to_remove_fork_catchpoint.
11536 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11537 TARGET_DEFAULT_RETURN.
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11541 * target-delegates.c: Rebuild.
11542 * target.c (update_current_target): Don't inherit or default
11543 to_insert_fork_catchpoint.
11544 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11545 TARGET_DEFAULT_RETURN.
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11549 * target-delegates.c: Rebuild.
11550 * target.c (update_current_target): Don't inherit or default
11551 to_post_startup_inferior.
11552 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11553 TARGET_DEFAULT_IGNORE.
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11557 * target-delegates.c: Rebuild.
11558 * target.c (update_current_target): Don't inherit or default
11560 * target.h (struct target_ops) <to_load>: Use
11561 TARGET_DEFAULT_NORETURN.
11563 2014-02-19 Tom Tromey <tromey@redhat.com>
11565 * target-delegates.c: Rebuild.
11566 * target.c (update_current_target): Don't inherit or default
11568 * target.h (struct target_ops) <to_terminal_info>: Use
11569 TARGET_DEFAULT_FUNC.
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11573 * target-delegates.c: Rebuild.
11574 * target.c (update_current_target): Don't inherit or default
11575 to_terminal_save_ours.
11576 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11577 TARGET_DEFAULT_IGNORE.
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11581 * target-delegates.c: Rebuild.
11582 * target.c (update_current_target): Don't inherit or default
11584 * target.h (struct target_ops) <to_terminal_ours>: Use
11585 TARGET_DEFAULT_IGNORE.
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11589 * target-delegates.c: Rebuild.
11590 * target.c (update_current_target): Don't inherit or default
11591 to_terminal_ours_for_output.
11592 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11593 TARGET_DEFAULT_IGNORE.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_terminal_inferior.
11600 * target.h (struct target_ops) <to_terminal_inferior>: Use
11601 TARGET_DEFAULT_IGNORE.
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11605 * target-delegates.c: Rebuild.
11606 * target.c (update_current_target): Don't inherit or default
11608 * target.h (struct target_ops) <to_terminal_init>: Use
11609 TARGET_DEFAULT_IGNORE.
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11613 * target-delegates.c: Rebuild.
11614 * target.c (update_current_target): Don't inherit or default
11615 to_can_accel_watchpoint_condition.
11616 * target.h (struct target_ops)
11617 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * target-delegates.c: Rebuild.
11622 * target.c (update_current_target): Don't inherit or default
11623 to_region_ok_for_hw_watchpoint.
11624 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11625 Use TARGET_DEFAULT_FUNC.
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11629 * target-delegates.c: Rebuild.
11630 * target.c (update_current_target): Don't inherit or default
11631 to_watchpoint_addr_within_range.
11632 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11633 Use TARGET_DEFAULT_FUNC.
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11637 * target-delegates.c: Rebuild.
11638 * target.c (update_current_target): Don't inherit or default
11639 to_remove_watchpoint.
11640 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11641 TARGET_DEFAULT_NORETURN.
11643 2014-02-19 Tom Tromey <tromey@redhat.com>
11645 * target-delegates.c: Rebuild.
11646 * target.c (update_current_target): Don't inherit or default
11647 to_insert_watchpoint.
11648 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11649 TARGET_DEFAULT_RETURN.
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target-delegates.c: Rebuild.
11654 * target.c (update_current_target): Don't inherit or default
11655 to_remove_hw_breakpoint.
11656 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11657 TARGET_DEFAULT_RETURN.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target-delegates.c: Rebuild.
11662 * target.c (update_current_target): Don't inherit or default
11663 to_insert_hw_breakpoint.
11664 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11665 TARGET_DEFAULT_RETURN.
11667 2014-02-19 Tom Tromey <tromey@redhat.com>
11669 * target-delegates.c: Rebuild.
11670 * target.c (update_current_target): Don't inherit or default
11671 to_can_use_hw_breakpoint.
11672 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11673 TARGET_DEFAULT_RETURN.
11675 2014-02-19 Tom Tromey <tromey@redhat.com>
11677 * target-delegates.c: Rebuild.
11678 * target.c (update_current_target): Don't inherit or default
11680 * target.h (struct target_ops) <to_files_info>: Use
11681 TARGET_DEFAULT_IGNORE.
11683 2014-02-19 Tom Tromey <tromey@redhat.com>
11685 * target-delegates.c: Rebuild.
11686 * target.c (update_current_target): Don't inherit or default
11688 * target.h (struct target_ops) <to_store>: Use
11689 TARGET_DEFAULT_NORETURN.
11691 2014-02-19 Tom Tromey <tromey@redhat.com>
11693 * target-delegates.c: Rebuild.
11694 * target.c (update_current_target): Don't inherit or default
11696 * target.h (struct target_ops) <to_post_attach>: Use
11697 TARGET_DEFAULT_IGNORE.
11699 2014-02-19 Tom Tromey <tromey@redhat.com>
11701 * target-delegates.c: Rebuild.
11702 * target.c (update_current_target): Don't inherit or default
11704 (default_rcmd): New function.
11705 (do_monitor_command): Unconditionally delegate.
11706 * target.h (struct target_ops) <to_rmcd>: Use
11707 TARGET_DEFAULT_FUNC.
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11711 * target-delegates.c: Rebuild.
11712 * target.c (init_dummy_target): Don't initialize to_attach.
11713 (target_attach): Unconditionally delegate.
11714 * target.h (struct target_ops) <to_attach>: Use
11715 TARGET_DEFAULT_FUNC.
11717 2014-02-19 Tom Tromey <tromey@redhat.com>
11719 * target-delegates.c: Rebuild.
11720 * target.c (target_detach): Unconditionally delegate.
11721 (init_dummy_target): Don't initialize to_detach.
11722 * target.h (struct target_ops) <to_detach>: Use
11723 TARGET_DEFAULT_IGNORE.
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11727 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11729 (target_augmented_libraries_svr4_read): Add argument.
11730 * target.c (update_current_target): Update.
11731 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11734 2014-02-19 Tom Tromey <tromey@redhat.com>
11736 * target.h (struct target_ops) <to_call_history_range>: Add
11738 * target.c (target_call_history_range): Add argument.
11739 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11741 (record_btrace_call_history_from): Update.
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11745 * target.h (struct target_ops) <to_call_history_from>: Add
11747 * target.c (target_call_history_from): Add argument.
11748 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11753 * target.h (struct target_ops) <to_call_history>: Add argument.
11754 * target.c (target_call_history): Add argument.
11755 * record-btrace.c (record_btrace_call_history): Add 'self'
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11760 * target.h (struct target_ops) <to_insn_history_range>: Add
11762 * target.c (target_insn_history_range): Add argument.
11763 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11765 (record_btrace_insn_history_from): Update.
11767 2014-02-19 Tom Tromey <tromey@redhat.com>
11769 * target.h (struct target_ops) <to_insn_history_from>: Add
11771 * target.c (target_insn_history_from): Add argument.
11772 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11775 2014-02-19 Tom Tromey <tromey@redhat.com>
11777 * target.h (struct target_ops) <to_insn_history>: Add argument.
11778 * target.c (target_insn_history): Add argument.
11779 * record-btrace.c (record_btrace_insn_history): Add 'self'
11782 2014-02-19 Tom Tromey <tromey@redhat.com>
11784 * target.h (struct target_ops) <to_goto_record>: Add argument.
11785 * target.c (target_goto_record): Add argument.
11786 * record-full.c (record_full_goto): Add 'self' argument.
11787 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11791 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11792 * target.c (target_goto_record_end): Add argument.
11793 * record-full.c (record_full_goto_end): Add 'self' argument.
11794 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11798 * target.h (struct target_ops) <to_goto_record_begin>: Add
11800 * target.c (target_goto_record_begin): Add argument.
11801 * record-full.c (record_full_goto_begin): Add 'self' argument.
11802 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11807 * target.h (struct target_ops) <to_record_is_replaying>: Add
11809 * target.c (target_record_is_replaying): Add argument.
11810 * record-full.c (record_full_is_replaying): Add 'self' argument.
11811 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11813 (record_btrace_xfer_partial, record_btrace_store_registers)
11814 (record_btrace_prepare_to_store, record_btrace_resume)
11815 (record_btrace_wait, record_btrace_decr_pc_after_break)
11816 (record_btrace_find_new_threads, record_btrace_thread_alive):
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11821 * target.h (struct target_ops) <to_delete_record>: Add argument.
11822 * target.c (target_delete_record): Add argument.
11823 * record-full.c (record_full_delete): Add 'self' argument.
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11827 * target.h (struct target_ops) <to_save_record>: Add argument.
11828 * target.c (target_save_record): Add argument.
11829 * record-full.c (record_full_save): Add 'self' argument.
11830 (record_full_save): Add 'self' argument.
11832 2014-02-19 Tom Tromey <tromey@redhat.com>
11834 * target.h (struct target_ops) <to_info_record>: Add argument.
11835 * target.c (target_info_record): Add argument.
11836 * record.c (info_record_command): Add argument.
11837 * record-full.c (record_full_info): Add 'self' argument.
11838 * record-btrace.c (record_btrace_info): Add 'self' argument.
11840 2014-02-19 Tom Tromey <tromey@redhat.com>
11842 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11843 * target.c (target_stop_recording): Add argument.
11844 * record.c (record_stop): Add argument.
11845 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11848 2014-02-19 Tom Tromey <tromey@redhat.com>
11850 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11851 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11852 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11854 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11855 (_initialize_amd64_linux_nat): Use it.
11856 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11857 (_initialize_i386_linux_nat): Use it.
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11861 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11862 * target.c (target_teardown_btrace): Add argument.
11863 * remote.c (remote_teardown_btrace): Add 'self' argument.
11864 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11866 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11872 * target.c (target_disable_btrace): Add argument.
11873 * remote.c (remote_disable_btrace): Add 'self' argument.
11874 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11876 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11881 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11882 * target.c (target_enable_btrace): Add argument.
11883 * remote.c (remote_enable_btrace): Add 'self' argument.
11884 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11886 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11891 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11892 (target_can_use_agent): Add argument.
11893 * target.c (update_current_target): Update.
11894 * remote.c (remote_can_use_agent): Add 'self' argument.
11895 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11899 * target.h (struct target_ops) <to_use_agent>: Add argument.
11900 (target_use_agent): Add argument.
11901 * target.c (update_current_target): Update.
11902 * remote.c (remote_use_agent): Add 'self' argument.
11903 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11905 2014-02-19 Tom Tromey <tromey@redhat.com>
11907 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11908 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11909 (target_traceframe_info): Add argument.
11910 * target.c (update_current_target): Update.
11911 * remote.c (remote_traceframe_info): Add 'self' argument.
11912 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11916 * target.h (target_static_tracepoint_markers_by_strid): Add
11918 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11920 * target.c (update_current_target): Update.
11921 * remote.c (struct target_ops)
11922 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11923 * linux-nat.c (struct target_ops)
11924 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11926 2014-02-19 Tom Tromey <tromey@redhat.com>
11928 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11930 (target_static_tracepoint_marker_at): Add argument.
11931 * target.c (update_current_target): Update.
11932 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11937 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11938 (target_set_permissions): Add argument.
11939 * target.c (update_current_target): Update.
11940 * remote.c (remote_set_permissions): Add 'self' argument.
11941 (remote_start_remote): Update.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11946 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11947 (target_get_tib_address): Add argument.
11948 * target.c (update_current_target): Update.
11949 * remote.c (remote_get_tib_address): Add 'self' argument.
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11953 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11954 (target_set_trace_notes): Add argument.
11955 * target.c (update_current_target): Update.
11956 * remote.c (remote_set_trace_notes): Add 'self' argument.
11958 2014-02-19 Tom Tromey <tromey@redhat.com>
11960 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11962 (target_set_trace_buffer_size): Add argument.
11963 * target.c (update_current_target): Update.
11964 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11968 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11970 (target_set_circular_trace_buffer): Add argument.
11971 * target.c (update_current_target): Update.
11972 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11977 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11979 (target_set_disconnected_tracing): Add argument.
11980 * target.c (update_current_target): Update.
11981 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11985 * target.h (struct target_ops)
11986 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11987 (target_get_min_fast_tracepoint_insn_len): Add argument.
11988 * target.c (update_current_target): Update.
11989 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11994 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11996 (target_get_raw_trace_data): Add argument.
11997 * target.c (update_current_target): Update.
11998 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12002 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12004 (target_upload_trace_state_variables): Add argument.
12005 * target.c (update_current_target): Update.
12006 * remote.c (remote_upload_trace_state_variables): Add 'self'
12008 (remote_start_remote): Update.
12010 2014-02-19 Tom Tromey <tromey@redhat.com>
12012 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12014 (target_upload_tracepoints): Add argument.
12015 * target.c (update_current_target): Update.
12016 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12017 (remote_start_remote): Update.
12019 2014-02-19 Tom Tromey <tromey@redhat.com>
12021 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12022 (target_save_trace_data): Add argument.
12023 * target.c (update_current_target): Update.
12024 * remote.c (remote_save_trace_data): Add 'self' argument.
12026 2014-02-19 Tom Tromey <tromey@redhat.com>
12028 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12030 * target.h (struct target_ops)
12031 <to_get_trace_state_variable_value>: Add argument.
12032 (target_get_trace_state_variable_value): Add argument.
12033 * target.c (update_current_target): Update.
12034 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12036 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12038 2014-02-19 Tom Tromey <tromey@redhat.com>
12040 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12041 * target.h (struct target_ops) <to_trace_find>: Add argument.
12042 (target_trace_find): Add argument.
12043 * target.c (update_current_target): Update.
12044 * remote.c (remote_trace_find): Add 'self' argument.
12045 * ctf.c (ctf_trace_find): Add 'self' argument.
12047 2014-02-19 Tom Tromey <tromey@redhat.com>
12049 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12050 (target_trace_stop): Add argument.
12051 * target.c (update_current_target): Update.
12052 * remote.c (remote_trace_stop): Add 'self' argument.
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12056 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12057 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12059 (target_get_tracepoint_status): Add argument.
12060 * target.c (update_current_target): Update.
12061 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12065 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12066 * target.h (struct target_ops) <to_get_trace_status>: Add
12068 (target_get_trace_status): Add argument.
12069 * target.c (update_current_target): Update.
12070 * remote.c (remote_get_trace_status): Add 'self' argument.
12071 (remote_start_remote, remote_can_download_tracepoint): Update.
12072 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12076 * target.h (struct target_ops) <to_trace_start>: Add argument.
12077 (target_trace_start): Add argument.
12078 * target.c (update_current_target): Update.
12079 * remote.c (remote_trace_start): Add 'self' argument.
12081 2014-02-19 Tom Tromey <tromey@redhat.com>
12083 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12085 (target_trace_set_readonly_regions): Add argument.
12086 * target.c (update_current_target): Update.
12087 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12092 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12094 (target_disable_tracepoint): Add argument.
12095 * target.c (update_current_target): Update.
12096 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12098 2014-02-19 Tom Tromey <tromey@redhat.com>
12100 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12102 (target_enable_tracepoint): Add argument.
12103 * target.c (update_current_target): Update.
12104 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12108 * target.h (struct target_ops) <to_download_trace_state_variable>:
12110 (target_download_trace_state_variable): Add argument.
12111 * target.c (update_current_target): Update.
12112 * remote.c (remote_download_trace_state_variable): Add 'self'
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12117 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12119 (target_can_download_tracepoint): Add argument.
12120 * target.c (update_current_target): Update.
12121 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12123 2014-02-19 Tom Tromey <tromey@redhat.com>
12125 * target.h (struct target_ops) <to_download_tracepoint>: Add
12127 (target_download_tracepoint): Add argument.
12128 * target.c (update_current_target): Update.
12129 * remote.c (remote_download_tracepoint): Add 'self' argument.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target.h (struct target_ops) <to_trace_init>: Add argument.
12134 (target_trace_init): Add argument.
12135 * target.c (update_current_target): Update.
12136 * remote.c (remote_trace_init): Add 'self' argument.
12138 2014-02-19 Tom Tromey <tromey@redhat.com>
12140 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12141 * target.c (target_fileio_readlink): Add argument.
12142 * remote.c (remote_hostio_readlink): Add 'self' argument.
12143 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12147 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12148 * target.c (target_fileio_unlink): Add argument.
12149 * remote.c (remote_hostio_unlink): Add 'self' argument.
12150 (remote_file_delete): Update.
12151 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12155 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12156 * target.c (target_fileio_close): Add argument.
12157 * remote.c (remote_hostio_close): Add 'self' argument.
12158 (remote_hostio_close_cleanup): Update.
12159 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12161 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12165 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12166 * target.c (target_fileio_pread): Add argument.
12167 * remote.c (remote_hostio_pread): Add 'self' argument.
12168 (remote_bfd_iovec_pread, remote_file_get): Update.
12169 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12171 2014-02-19 Tom Tromey <tromey@redhat.com>
12173 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12174 * target.c (target_fileio_pwrite): Add argument.
12175 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12176 (remote_file_put): Update.
12177 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12179 2014-02-19 Tom Tromey <tromey@redhat.com>
12181 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12182 * target.c (target_fileio_open): Add argument.
12183 * remote.c (remote_hostio_open): Add 'self' argument.
12184 (remote_bfd_iovec_open): Add 'self' argument.
12185 (remote_file_put): Add 'self' argument.
12186 (remote_file_get): Add 'self' argument.
12187 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12189 2014-02-19 Tom Tromey <tromey@redhat.com>
12191 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12193 (target_can_run_breakpoint_commands): Add argument.
12194 * target.c (update_current_target): Update.
12195 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12197 (remote_insert_breakpoint): Add 'self' argument.
12198 (remote_insert_hw_breakpoint): Add 'self' argument.
12199 (remote_can_run_breakpoint_commands): Add 'self' argument.
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12203 * target.h (struct target_ops)
12204 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12205 (target_supports_evaluation_of_breakpoint_conditions): Add
12207 * target.c (update_current_target): Update.
12208 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12210 (remote_insert_breakpoint): Add 'self' argument.
12211 (remote_insert_hw_breakpoint): Add 'self' argument.
12212 (remote_supports_cond_breakpoints): Add 'self' argument.
12214 2014-02-19 Tom Tromey <tromey@redhat.com>
12216 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12218 (target_supports_string_tracing): Add argument.
12219 * target.c (update_current_target): Update.
12220 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12222 2014-02-19 Tom Tromey <tromey@redhat.com>
12224 * target.h (struct target_ops)
12225 <to_supports_disable_randomization>: Add argument.
12226 * target.c (find_default_supports_disable_randomization): Add
12228 (target_supports_disable_randomization): Add argument.
12229 (find_default_supports_disable_randomization): Add 'self'
12231 * remote.c (extended_remote_supports_disable_randomization): Add
12233 (remote_supports_disable_randomization): Add 'self' argument.
12234 (extended_remote_create_inferior): Update.
12235 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12238 2014-02-19 Tom Tromey <tromey@redhat.com>
12240 * target.h (struct target_ops)
12241 <to_supports_enable_disable_tracepoint>: Add argument.
12242 (target_supports_enable_disable_tracepoint): Add argument.
12243 * target.c (update_current_target): Update.
12244 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12247 2014-02-19 Tom Tromey <tromey@redhat.com>
12249 * target.h (struct target_ops) <to_supports_multi_process>: Add
12251 (target_supports_multi_process): Add argument.
12252 * target.c (update_current_target): Update.
12253 * remote.c (remote_supports_multi_process): Add 'self' argument.
12254 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12256 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12261 * target.h (struct target_ops) <to_execution_direction>: Add
12263 (target_execution_direction): Add argument.
12264 * target.c (default_execution_direction): Add 'self' argument.
12265 * record-full.c (record_full_execution_direction): Add 'self'
12268 2014-02-19 Tom Tromey <tromey@redhat.com>
12270 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12272 (target_can_execute_reverse): Add argument.
12273 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12274 * record-full.c (record_full_can_execute_reverse): Add 'self'
12276 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12279 2014-02-19 Tom Tromey <tromey@redhat.com>
12281 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12282 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12284 (target_get_ada_task_ptid): Add argument.
12285 * target.c (update_current_target): Update.
12286 (default_get_ada_task_ptid): Add 'self' argument.
12287 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12288 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12289 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12291 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12293 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12295 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12297 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12298 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12301 2014-02-19 Tom Tromey <tromey@redhat.com>
12303 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12304 (target_goto_bookmark): Add argument.
12305 * target.c (dummy_goto_bookmark): Add 'self' argument.
12306 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12308 2014-02-19 Tom Tromey <tromey@redhat.com>
12310 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12311 (target_get_bookmark): Add argument.
12312 * target.c (dummy_get_bookmark): Add 'self' argument.
12313 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12317 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12319 (target_make_corefile_notes): Add argument.
12320 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12321 * procfs.c (procfs_make_note_section): Add 'self' argument.
12322 (procfs_make_note_section): Add 'self' argument.
12323 (procfs_make_note_section): Add 'self' argument.
12324 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12326 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12327 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12328 * exec.c (exec_make_note_section): Add 'self' argument.
12329 (exec_make_note_section): Add 'self' argument.
12331 2014-02-19 Tom Tromey <tromey@redhat.com>
12333 * target.h (struct target_ops) <to_find_memory_regions>: Add
12335 (target_find_memory_regions): Add argument.
12336 * target.c (dummy_find_memory_regions): Add 'self' argument.
12337 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12338 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12339 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12340 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12341 * exec. (exec_do_find_memory_regions): New global.
12342 (exec_set_find_memory_regions): Rewrite.
12343 (exec_find_memory_regions): New function.
12344 (init_exec_ops): Use exec_find_memory_regions.
12346 2014-02-19 Tom Tromey <tromey@redhat.com>
12348 * target.h (struct target_ops) <to_supports_non_stop>: Add
12350 * target.c (find_default_supports_non_stop): Add argument.
12351 (target_supports_non_stop): Add argument.
12352 (find_default_supports_non_stop): Add 'self' argument.
12353 * remote.c (remote_supports_non_stop): Add 'self' argument.
12354 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12356 2014-02-19 Tom Tromey <tromey@redhat.com>
12358 * target.h (struct target_ops) <to_log_command>: Add argument.
12359 (target_log_command): Add argument.
12360 * serial.h (serial_log_command): Add 'self' argument.
12361 * serial.c (serial_log_command): Add 'self' argument.
12363 2014-02-19 Tom Tromey <tromey@redhat.com>
12365 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12366 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12368 (target_pid_to_exec_file): Add argument.
12369 * target.c (debug_to_pid_to_exec_file): Add argument.
12370 (update_current_target): Update.
12371 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12372 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12373 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12374 (linux_handle_extended_wait): Update.
12375 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12376 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12377 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12378 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12380 2014-02-19 Tom Tromey <tromey@redhat.com>
12382 * target.h (struct target_ops) <to_rcmd>: Add argument.
12383 (target_rcmd): Add argument.
12384 * target.c (debug_to_rcmd): Add argument.
12385 (update_current_target, do_monitor_command): Update.
12386 * remote.c (remote_rcmd): Add 'self' argument.
12387 * monitor.c (monitor_rcmd): Add 'self' argument.
12389 2014-02-19 Tom Tromey <tromey@redhat.com>
12391 * windows-nat.c (windows_stop): Add 'self' argument.
12392 * target.h (struct target_ops) <to_stop>: Add argument.
12393 * target.c (target_stop): Add argument.
12394 (debug_to_stop): Add argument.
12395 (update_current_target): Update.
12396 * remote.c (remote_stop): Add 'self' argument.
12397 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12398 (gdbsim_cntrl_c): Update.
12399 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12400 * procfs.c (procfs_stop): Add 'self' argument.
12401 * nto-procfs.c (procfs_stop): Add 'self' argument.
12402 * monitor.c (monitor_stop): Add 'self' argument.
12403 (monitor_open): Update.
12404 * linux-nat.c (linux_nat_stop): Add argument.
12405 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12406 * gnu-nat.c (gnu_stop): Add 'self' argument.
12407 * darwin-nat.c (darwin_stop): Add 'self' argument.
12409 2014-02-19 Tom Tromey <tromey@redhat.com>
12411 * target.h (struct target_ops) <to_thread_name>: Add argument.
12412 * target.c (target_thread_name): Add argument.
12413 (update_current_target): Update.
12414 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12418 * target.h (struct target_ops) <to_extra_thread_info>: Add
12420 (target_extra_thread_info): Add argument.
12421 * target.c (update_current_target): Update.
12422 * remote.c (remote_threads_extra_info): Add 'self' argument.
12423 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12425 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12426 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12427 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12429 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12431 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12433 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12436 2014-02-19 Tom Tromey <tromey@redhat.com>
12438 * target.h (struct target_ops) <to_program_signals>: Add argument.
12439 * target.c (target_program_signals): Add argument.
12440 * remote.c (remote_program_signals): Add 'self' argument.
12442 2014-02-19 Tom Tromey <tromey@redhat.com>
12444 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12445 * target.c (target_pass_signals): Add argument.
12446 * remote.c (remote_pass_signals): Add 'self' argument.
12447 (remote_start_remote): Update.
12448 * procfs.c (procfs_pass_signals): Add 'self' argument.
12449 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12450 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12451 (linux_nat_create_inferior, linux_nat_attach): Update.
12453 2014-02-19 Tom Tromey <tromey@redhat.com>
12455 * windows-nat.c (windows_can_run): Add 'self' argument.
12456 * target.h (struct target_ops) <to_can_run>: Add argument.
12457 (target_can_run): Add argument.
12458 * target.c (debug_to_can_run): Add argument.
12459 (update_current_target): Update.
12460 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12461 * inf-child.c (inf_child_can_run): Add 'self' argument.
12462 * go32-nat.c (go32_can_run): Add 'self' argument.
12464 2014-02-19 Tom Tromey <tromey@redhat.com>
12466 * target.h (struct target_ops) <to_has_exited>: Add argument.
12467 (target_has_exited): Add argument.
12468 * target.c (debug_to_has_exited): Add argument.
12469 (update_current_target): Update.
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12473 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12475 (target_set_syscall_catchpoint): Add argument.
12476 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12478 * target.c (update_current_target): Update.
12480 2014-02-19 Tom Tromey <tromey@redhat.com>
12482 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12484 (target_remove_exec_catchpoint): Add argument.
12485 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12486 (update_current_target): Update.
12487 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12490 2014-02-19 Tom Tromey <tromey@redhat.com>
12492 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12494 (target_insert_exec_catchpoint): Add argument.
12495 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12496 (update_current_target): Update.
12497 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12500 2014-02-19 Tom Tromey <tromey@redhat.com>
12502 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12504 (target_remove_vfork_catchpoint): Add argument.
12505 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12506 (update_current_target): Update.
12507 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12510 2014-02-19 Tom Tromey <tromey@redhat.com>
12512 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12514 (target_insert_vfork_catchpoint): Add argument.
12515 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12516 (update_current_target): Update.
12517 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12520 2014-02-19 Tom Tromey <tromey@redhat.com>
12522 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12524 (target_remove_fork_catchpoint): Add argument.
12525 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12526 (update_current_target): Update.
12527 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12530 2014-02-19 Tom Tromey <tromey@redhat.com>
12532 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12534 (target_insert_fork_catchpoint): Add argument.
12535 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12536 (update_current_target): Update.
12537 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12540 2014-02-19 Tom Tromey <tromey@redhat.com>
12542 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12544 (target_post_startup_inferior): Add argument.
12545 * target.c (debug_to_post_startup_inferior): Add argument.
12546 (update_current_target): Update.
12547 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12549 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12551 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12553 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12555 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12557 (super_post_startup_inferior): Likewise.
12558 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12560 (super_post_startup_inferior): Likewise.
12561 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12562 Add 'self' argument.
12563 (super_post_startup_inferior): Likewise.
12565 2014-02-19 Tom Tromey <tromey@redhat.com>
12567 * target.h (struct target_ops) <to_load>: Add argument.
12568 * target.c (target_load): Add argument.
12569 (debug_to_load): Add argument.
12570 (update_current_target): Update.
12571 * remote.c (remote_load): Add 'self' argument.
12572 * remote-sim.c (gdbsim_load): Add 'self' argument.
12573 * remote-mips.c (mips_load): Add 'self' argument.
12574 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12575 * monitor.c (monitor_load): Add 'self' argument.
12576 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12578 2014-02-19 Tom Tromey <tromey@redhat.com>
12580 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12581 (target_terminal_info): Add argument.
12582 * target.c (debug_to_terminal_info): Add argument.
12583 (default_terminal_info): Likewise.
12584 * inflow.c (child_terminal_info): Add 'self' argument.
12585 * inferior.h (child_terminal_info): Add 'self' argument.
12586 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12588 2014-02-19 Tom Tromey <tromey@redhat.com>
12590 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12592 (target_terminal_save_ours): Add argument.
12593 * target.c (debug_to_terminal_save_ours): Add argument.
12594 (update_current_target): Update.
12595 * inflow.c (terminal_save_ours): Add 'self' argument.
12596 * inferior.h (terminal_save_ours): Add 'self' argument.
12598 2014-02-19 Tom Tromey <tromey@redhat.com>
12600 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12601 (target_terminal_ours): Add argument.
12602 * target.c (debug_to_terminal_ours): Add argument.
12603 (update_current_target): Update.
12604 * remote.c (remote_terminal_ours): Add 'self' argument.
12605 (remote_close): Update.
12606 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12607 * inflow.c (terminal_ours): Add 'self' argument.
12608 * inferior.h (terminal_ours): Add 'self' argument.
12609 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12611 2014-02-19 Pedro Alves <palves@redhat.com>
12612 Tom Tromey <tromey@redhat.com>
12614 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12616 (target_terminal_ours_for_output): Add argument.
12617 * target.c (debug_to_terminal_ours_for_output): Add argument.
12618 (update_current_target): Update.
12619 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12620 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12621 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12625 * target.h (struct target_ops) <to_terminal_inferior>: Add
12627 * target.c (target_terminal_inferior): Add argument.
12628 (update_current_target): Update.
12629 * remote.c (remote_terminal_inferior): Add 'self' argument.
12630 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12631 * inflow.c (terminal_inferior): Add 'self' argument.
12632 * inferior.h (terminal_inferior): Add 'self' argument.
12633 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12634 (go32_terminal_inferior): Add 'self' argument.
12636 2014-02-19 Tom Tromey <tromey@redhat.com>
12638 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12639 (target_terminal_init): Add argument.
12640 * target.c (debug_to_terminal_init): Add argument.
12641 (update_current_target): Update.
12642 * inflow.c (terminal_init_inferior): Add 'self' argument.
12643 * inferior.h (terminal_init_inferior): Add 'self' argument.
12644 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12645 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12649 * target.h (struct target_ops)
12650 <to_can_accel_watchpoint_condition>: Add argument.
12651 (target_can_accel_watchpoint_condition): Add argument.
12652 * target.c (debug_to_can_accel_watchpoint_condition): Add
12654 (update_current_target): Update.
12655 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12658 2014-02-19 Tom Tromey <tromey@redhat.com>
12660 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12662 (target_region_ok_for_hw_watchpoint): Add argument.
12663 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12664 (default_region_ok_for_hw_watchpoint): Add argument.
12665 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12666 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12668 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12670 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12672 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12674 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12676 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12678 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12679 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12681 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12682 Add 'self' argument.
12684 2014-02-19 Tom Tromey <tromey@redhat.com>
12686 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12688 (target_insert_watchpoint): Add argument.
12689 * target.c (debug_to_insert_watchpoint): Add argument.
12690 (update_current_target): Update.
12691 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12692 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12693 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12694 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12695 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12696 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12698 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12699 (procfs_insert_hw_watchpoint): Add 'self' argument.
12700 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12702 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12704 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12706 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12707 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12709 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12714 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12716 (target_remove_watchpoint): Add argument.
12717 * target.c (debug_to_remove_watchpoint): Add argument.
12718 (update_current_target): Update.
12719 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12720 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12721 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12722 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12723 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12724 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12726 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12727 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12729 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12731 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12733 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12734 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12736 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12739 2014-02-19 Tom Tromey <tromey@redhat.com>
12741 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12743 (target_remove_hw_breakpoint): Add argument.
12744 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12745 (update_current_target): Update.
12746 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12747 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12749 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12750 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12752 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12755 2014-02-19 Tom Tromey <tromey@redhat.com>
12757 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12759 (target_insert_hw_breakpoint): Add argument.
12760 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12761 (update_current_target): Update.
12762 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12763 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12765 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12766 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12767 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12769 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12772 2014-02-19 Tom Tromey <tromey@redhat.com>
12774 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12776 (target_can_use_hardware_watchpoint): Add argument.
12777 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12778 (update_current_target): Update.
12779 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12781 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12783 * remote.c (remote_check_watch_resources): Add 'self' argument.
12784 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12785 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12787 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12788 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12790 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12792 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12794 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12796 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12798 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12800 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12801 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12803 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12806 2014-02-19 Tom Tromey <tromey@redhat.com>
12808 * target.h (struct target_ops) <to_post_attach>: Add argument.
12809 (target_post_attach): Add argument.
12810 * target.c (debug_to_post_attach): Add argument.
12811 (update_current_target): Update.
12812 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12813 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12814 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12815 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12816 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12818 2014-02-19 Tom Tromey <tromey@redhat.com>
12820 * windows-nat.c (windows_close): Add 'self' argument.
12821 * tracepoint.c (tfile_close): Add 'self' argument.
12822 * target.h (struct target_ops) <to_close>: Add argument.
12823 * target.c (target_close): Add argument.
12824 (update_current_target): Update.
12825 * remote.c (remote_close): Add 'self' argument.
12826 * remote-sim.c (gdbsim_close): Add 'self' argument.
12827 * remote-mips.c (mips_close): Add 'self' argument.
12828 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12829 * record-full.c (record_full_close): Add 'self' argument.
12830 * record-btrace.c (record_btrace_close): Add 'self' argument.
12831 * monitor.h (monitor_close): Add 'self' argument.
12832 * monitor.c (monitor_close): Add 'self' argument.
12833 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12834 * linux-nat.c (linux_nat_close): Add argument.
12835 * go32-nat.c (go32_close): Add 'self' argument.
12836 * exec.c (exec_close_1): Add 'self' argument.
12837 * ctf.c (ctf_close): Add 'self' argument.
12838 * corelow.c (core_close): Add 'self' argument.
12839 (core_close_cleanup): Update.
12840 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12841 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12843 2014-02-19 Tom Tromey <tromey@redhat.com>
12845 * remote.c (remote_load): New function.
12846 (init_remote_ops): Use it.
12848 2014-02-19 Tom Tromey <tromey@redhat.com>
12850 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12852 * common/linux-btrace.h (linux_supports_btrace): Update.
12853 * remote.c (remote_supports_btrace): Add "self" argument.
12854 * target-delegates.c: Rebuild.
12855 * target.c (target_supports_btrace): Remove.
12856 * target.h (struct target_ops) <to_supports_btrace>: Add
12857 target_ops argument.
12858 (target_supports_btrace): New define.
12860 2014-02-19 Tom Tromey <tromey@redhat.com>
12862 * record-full.c (record_full_beneath_to_resume_ops)
12863 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12864 (record_full_beneath_to_wait)
12865 (record_full_beneath_to_store_registers_ops)
12866 (record_full_beneath_to_store_registers)
12867 (record_full_beneath_to_xfer_partial_ops)
12868 (record_full_beneath_to_xfer_partial)
12869 (record_full_beneath_to_insert_breakpoint_ops)
12870 (record_full_beneath_to_insert_breakpoint)
12871 (record_full_beneath_to_remove_breakpoint_ops)
12872 (record_full_beneath_to_remove_breakpoint)
12873 (record_full_beneath_to_stopped_by_watchpoint)
12874 (record_full_beneath_to_stopped_data_address)
12875 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12876 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12877 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12878 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12879 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12880 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12881 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12882 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12883 (record_full_resume, record_full_wait_1)
12884 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12885 (record_full_store_registers, record_full_xfer_partial)
12886 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12887 (record_full_async, record_full_core_xfer_partial): Use target
12889 * target-delegates.c: Rebuild.
12890 * target.c (current_xfer_partial): Remove.
12891 (update_current_target): Do not INHERIT or de_fault
12892 to_insert_breakpoint, to_remove_breakpoint,
12893 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12894 to_is_async_p, to_async. Do not set to_xfer_partial field.
12895 (default_xfer_partial): Simplify.
12896 (current_xfer_partial): Remove.
12897 (target_wait, target_resume): Simplify.
12898 (find_default_can_async_p, find_default_is_async_p): Update.
12899 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12900 to_xfer_partial, to_stopped_by_watchpoint,
12901 to_stopped_data_address.
12902 (target_store_registers): Simplify.
12903 (forward_target_remove_breakpoint)
12904 (forward_target_insert_breakpoint): Remove.
12905 (target_remove_breakpoint, target_insert_breakpoint)
12906 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12907 * target.h (struct target_ops) <to_resume, to_wait,
12908 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12909 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12910 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12912 (forward_target_remove_breakpoint)
12913 (forward_target_insert_breakpoint): Remove.
12914 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12916 (record_btrace_insert_breakpoint): Delegate directly.
12918 2014-02-19 Tom Tromey <tromey@redhat.com>
12921 * target-delegates.c: New file.
12922 * target.c: Include target-delegates.c.
12923 (init_dummy_target): Call install_dummy_methods.
12924 (complete_target_initialization): Call install_delegators.
12925 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12926 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12927 * make-target-delegates: New file.
12929 2014-02-19 Tom Tromey <tromey@redhat.com>
12931 * record.c (find_record_target): Use find_target_at.
12932 * target.c (find_target_at): New function.
12933 * target.h (find_target_at): Declare.
12935 2014-02-19 Tom Tromey <tromey@redhat.com>
12937 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12938 Add 'ops' argument.
12939 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12941 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12942 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12944 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12946 * linux-nat.c (save_sigtrap): Update.
12947 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12948 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12949 (linux_nat_close): Update.
12950 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12952 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12954 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12955 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12956 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12957 (tmp_to_async): Add 'ops' argument.
12958 (record_full_stopped_by_watchpoint, record_full_async)
12959 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12961 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12962 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12963 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12964 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12965 (remote_is_async_p, remote_async): Add 'ops' argument.
12966 (remote_stopped_data_address): Update.
12967 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12968 * target.c (update_current_target)
12969 (find_default_can_async_p, find_default_is_async_p): Update.
12970 (init_dummy_target): Update.
12971 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12972 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12973 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12974 (target_can_async_p, target_is_async_p, target_async)
12975 (target_stopped_by_watchpoint): Update.
12977 2014-02-19 Yao Qi <yao@codesourcery.com>
12980 * gdbarch.sh: Remove startup_gdbarch.
12981 * gdbarch.c: Regenerated.
12982 * gdbarch.h: Likewise.
12984 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12986 * rl78-tdep.c (rl78_g10_register_name): New function.
12987 (rl78_return_value): Add g10 support.
12988 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12991 2014-02-17 Doug Evans <xdje42@gmail.com>
12993 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12994 (SUBDIR_GUILE_SRCS): Ditto.
12995 (scm-gsmob.o): Ditto.
12997 2014-02-17 Yao Qi <yao@codesourcery.com>
12999 * gnu-nat.c (ILL_RPC): Declare defined function.
13001 2014-02-17 Yao Qi <yao@codesourcery.com>
13003 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13004 mach_msg_type_number_t.
13005 (gnu_write_inferior): Likewise.
13007 2014-02-17 Yao Qi <yao@codesourcery.com>
13009 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13011 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13012 (inf_validate_procs, inf_signal): Likewise.
13013 (S_exception_raise_request): Likewise.
13014 (do_mach_notify_dead_name): Likewise.
13015 (steal_exc_port): Likewise.
13016 (gnu_read_inferior): Change 'copy_count''s type to
13017 mach_msg_type_number_t.
13018 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13021 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13023 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13024 flag. Adjust all users; in particular...
13025 (gnu_wait): ..., don't decrement its value in here...
13026 (gnu_create_inferior): ..., and instead set the flag in here,
13027 around the startup_inferior call, and call that one with
13028 START_INFERIOR_TRAPS_EXPECTED.
13030 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13031 (ILL_RPC): ... new macro.
13032 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13033 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13034 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13035 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13036 functions with ILL_RPC macro.
13037 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13038 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13039 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13040 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13041 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13042 (S_proc_getlogin_reply, S_proc_getsid_reply)
13043 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13044 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13045 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13046 (S_proc_getnports_reply, S_proc_is_important_reply)
13047 (S_proc_get_code_reply): New stub functions, generated with
13050 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13051 collected the type check structures.
13053 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13055 2014-02-14 Doug Evans <dje@google.com>
13057 * target.c (target_write_partial): Fix result type.
13059 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13061 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13062 the proper offsets to access fpregset_t.
13064 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13066 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13067 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13068 * h8300-tdep.c (setmachinelist): Remove global.
13069 * hppa-tdep.c (hppa_sigtramp): Remove global.
13070 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13071 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13072 * ravenscar-thread.c (update_target_observer): Remove global.
13073 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13075 2014-02-12 Tom Tromey <tromey@redhat.com>
13077 * common/rsp-low.c: Update comments.
13078 * common/rsp-low.h: Update comments.
13080 2014-02-12 Tom Tromey <tromey@redhat.com>
13082 * common/rsp-low.c (convert_ascii_to_int): Remove.
13083 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13085 2014-02-12 Tom Tromey <tromey@redhat.com>
13087 * common/rsp-low.h (unhexify): Don't declare.
13088 * common/rsp-low.c (unhexify): Remove.
13090 2014-02-12 Tom Tromey <tromey@redhat.com>
13092 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13093 * common/rsp-low.c (convert_int_to_ascii): Remove.
13095 2014-02-12 Tom Tromey <tromey@redhat.com>
13097 * common/rsp-low.h (hexify): Don't declare.
13098 * common/rsp-low.c (hexify): Remove.
13100 2014-02-12 Tom Tromey <tromey@redhat.com>
13102 * common/rsp-low.c (hexify): Never take strlen of argument.
13104 2014-02-12 Tom Tromey <tromey@redhat.com>
13106 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13107 * remote.c (extended_remote_run, remote_rcmd)
13108 (remote_download_trace_state_variable, remote_save_trace_data)
13109 (remote_set_trace_notes): Update.
13110 * tracepoint.c (encode_source_string, tfile_write_status)
13111 (tfile_write_uploaded_tsv): Update.
13113 2014-02-12 Tom Tromey <tromey@redhat.com>
13115 * tracepoint.c: Include rsp-low.h.
13116 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13117 * remote.c: Include rsp-low.h.
13118 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13119 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13120 (remote_unescape_input): Move to common/rsp-low.c.
13121 * common/rsp-low.h: New file.
13122 * common/rsp-low.c: New file.
13123 * Makefile.in (SFILES): Add common/rsp-low.c.
13124 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13125 (COMMON_OBS): Add rsp-low.o.
13126 (rsp-low.o): New target.
13128 2014-02-12 Tom Tromey <tromey@redhat.com>
13130 * utils.h: Include print-utils.h.
13131 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13132 (int_string, core_addr_to_string, core_addr_to_string_nz)
13133 (hex_string, hex_string_custom): Don't declare.
13134 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13135 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13136 (hex_string_custom, int_string, core_addr_to_string)
13137 (core_addr_to_string_nz, host_address_to_string): Move to
13138 common/print-utils.c.
13139 * common/print-utils.h: New file.
13140 * common/print-utils.c: New file
13141 * Makefile.in (SFILES): Add common/print-utils.c.
13142 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13143 (COMMON_OBS): Add print-utils.o.
13144 (print-utils.o): New target.
13146 2014-02-12 Tom Tromey <tromey@redhat.com>
13148 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13150 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13152 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13154 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13156 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13157 if a PT_IO ptrace request returns sucessfully but indicates that 0
13158 bytes were transferred.
13160 2014-02-12 Pedro Alves <palves@redhat.com>
13161 Kevin Buettner <kevinb@redhat.com>
13163 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13164 TYPE_INSTANCE_FLAG_CODE_SPACE.
13166 2014-02-12 Pedro Alves <palves@redhat.com>
13168 * h8300-tdep.c (pseudo_from_raw_register)
13169 (raw_from_pseudo_register): New functions.
13170 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13173 2014-02-12 Pedro Alves <palves@redhat.com>
13175 * h8300-tdep.c (h8300_register_sim_regno): New function.
13176 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13177 gdbarch_register_sim_regno hook.
13179 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13181 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13183 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13185 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13187 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13189 * obsd-tdep.h (obsd_init_abi): New prototype.
13190 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13191 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13192 (obsd_init_abi): New functions.
13193 * i386obsd-tdep.c: Include "obsd-tdep.h".
13194 (i386obsd_init_abi): Call obsd_init_abi.
13195 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13196 (amd64obsd_init_abi): Call obsd_init_abi.
13197 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13198 obsd-tdep.c to gdb_target_obs.
13200 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13202 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13203 double float arguments to 16-byte in the argument slots.
13205 2014-02-11 Doug Evans <xdje42@gmail.com>
13207 * configure.ac: Don't crash if pkg-config is not found and guile
13208 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13210 * configure: Regenerate.
13212 2014-02-11 Yao Qi <yao@codesourcery.com>
13214 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13215 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13216 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13217 * gnu-nat.c (gnu_xfer_memory): Likewise.
13218 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13219 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13220 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13221 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13223 2014-02-11 Yao Qi <yao@codesourcery.com>
13225 * target.h (enum target_xfer_error): Rename to ...
13226 (enum target_xfer_status): ... it. New. All users updated.
13227 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13229 (TARGET_XFER_STATUS_ERROR_P): New macro.
13230 (target_xfer_error_to_string): Remove declaration.
13231 (target_xfer_status_to_string): Declare.
13232 (target_xfer_partial_ftype): Adjust it.
13233 (struct target_ops) <to_xfer_partial>: Return
13234 target_xfer_status. Add argument xfered_len. Update
13236 * target.c (target_xfer_error_to_string): Rename to ...
13237 (target_xfer_status_to_string): ... it. New. All callers
13239 (target_read_live_memory): Likewise. Call target_xfer_partial
13240 instead of target_read.
13241 (memory_xfer_live_readonly_partial): Return
13242 target_xfer_status. Add argument xfered_len.
13243 (raw_memory_xfer_partial): Likewise.
13244 (memory_xfer_partial_1): Likewise.
13245 (memory_xfer_partial): Likewise.
13246 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13247 properly. Update debug message.
13248 (default_xfer_partial, current_xfer_partial): Likewise.
13249 (target_write_partial): Likewise.
13250 (target_read_partial): Likewise. All callers updated.
13251 (read_whatever_is_readable): Likewise.
13252 (target_write_with_progress): Likewise.
13253 (target_read_alloc_1): Likewise.
13255 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13256 * auxv.c (procfs_xfer_auxv): Likewise.
13257 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13258 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13259 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13260 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13261 * corefile.c (read_memory): Adjust.
13262 * corelow.c (core_xfer_partial): Likewise.
13263 * ctf.c (ctf_xfer_partial): Likewise.
13264 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13266 (darwin_xfer_partial): Likewise.
13267 * exec.c (section_table_xfer_memory_partial): Likewise. All
13269 (exec_xfer_partial): Likewise.
13270 * exec.h (section_table_xfer_memory_partial): Update
13272 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13274 (gnu_xfer_partial): Likewise.
13275 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13276 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13277 (ia64_hpux_xfer_solib_got): Likewise.
13278 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13279 type of 'partial_len' to ULONGEST.
13280 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13281 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13282 (linux_nat_xfer_partial): Likewise.
13283 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13284 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13285 * monitor.c (monitor_xfer_memory): Likewise.
13286 (monitor_xfer_partial): Likewise.
13287 * procfs.c (procfs_xfer_partial): Likewise.
13288 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13289 * record-full.c (record_full_xfer_partial): Likewise.
13290 (record_full_core_xfer_partial): Likewise.
13291 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13292 (gdbsim_xfer_partial): Likewise.
13293 * remote.c (remote_write_bytes_aux): Likewise. All callers
13295 (remote_write_bytes, remote_read_bytes): Likewise. All
13297 (remote_flash_erase): Likewise. All callers updated.
13298 (remote_write_qxfer): Likewise. All callers updated.
13299 (remote_read_qxfer): Likewise. All callers updated.
13300 (remote_xfer_partial): Likewise.
13301 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13302 (rs6000_xfer_shared_libraries): Likewise.
13303 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13304 (sol_thread_xfer_partial): Likewise.
13305 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13306 (sparc_xfer_partial): Likewise.
13307 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13309 (spu_xfer_partial): Likewise.
13310 * spu-multiarch.c (spu_xfer_partial): Likewise.
13311 * tracepoint.c (tfile_xfer_partial): Likewise.
13312 * windows-nat.c (windows_xfer_memory): Likewise.
13313 (windows_xfer_shared_libraries): Likewise.
13314 (windows_xfer_partial): Likewise.
13315 * valprint.c: Replace 'target_xfer_error' with
13316 'target_xfer_status' in comments.
13318 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13320 Checked in by Joel Brobecker <brobecker@adacore.com>.
13321 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13323 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13325 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13326 function parameters.
13328 2014-02-10 Will Newton <will.newton@linaro.org>
13330 * elfread.c (elf_rel_plt_read): Look for a .got section if
13331 looking up .got.plt fails.
13332 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13333 on address passed to elf_gnu_ifunc_record_cache.
13334 (elf_gnu_ifunc_resolve_addr): Likewise.
13335 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13337 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13339 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13340 (X_RETTURN): New macro.
13341 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13343 * sparc64-tdep.c (sparc64_init_abi): Hook
13344 sparc_in_function_epilogue_p.
13346 2014-02-10 Gary Benson <gbenson@redhat.com>
13348 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13349 Rename name_matcher to symbol_matcher.
13351 2014-02-10 Gary Benson <gbenson@redhat.com>
13353 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13354 Use expand_symtabs_file_matcher_ftype and
13355 expand_symtabs_symbol_matcher_ftype.
13357 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13359 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13360 (struct ada_symbol_cache): New.
13361 (ada_free_symbol_cache): Forward declare.
13362 (struct ada_pspace_data): New.
13363 (ada_pspace_data_handle): New static global.
13364 (get_ada_pspace_data, ada_pspace_data_cleanup)
13365 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13366 (cache_space, cache): Delete, now folded inside struct
13368 (ada_get_symbol_cache): New function.
13369 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13371 (_initialize_ada_language): Remove initialization of cache_space.
13372 Move call to observer_attach_inferior_exit up, grouping it
13373 with the other observer registrations inside this function.
13374 Rename command to be more general. Add call to
13375 register_program_space_data_with_cleanup.
13377 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13379 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13380 ada_new_objfile_observer.
13381 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13382 (_initialize_tasks): Update uses of ada_new_objfile_observer
13383 and ada_tasks_normal_stop_observer.
13385 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13387 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13388 returned by the 'Length attribute to integer.
13390 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13392 * ada-lang.c (_initialize_ada_language): Initialize
13393 cache_space obstack.
13395 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13397 * ada-lang.c (HASH_SIZE): New macro.
13398 (struct cache_entry): New type.
13399 (cache_space, cache): New static globals.
13400 (ada_clear_symbol_cache, find_entry): New functions.
13401 (lookup_cached_symbol, cache_symbol): Implement.
13402 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13403 (_initialize_ada_language): Attach ada_new_objfile_observer
13404 and ada_free_objfile_observer.
13406 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13408 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13409 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13410 struct block * parameter.
13411 (ada_lookup_symbol_list_worker): Constify local variable "block".
13412 Remove cast which is no longer necessary.
13414 2014-02-10 Doug Evans <xdje42@gmail.com>
13416 Add Guile as an extension language.
13417 * NEWS: Mention Guile scripting.
13418 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13419 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13420 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13421 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13422 (CLIBS): Add GUILE_LIBS.
13423 (install-guile): New rule.
13424 (guile.o): New rule.
13425 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13426 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13427 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13428 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13429 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13430 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13431 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13432 * configure.ac: New option --with-guile.
13433 * configure: Regenerate.
13434 * config.in: Regenerate.
13435 * auto-load.c: Remove #include "python/python.h". Add #include
13436 "gdb/section-scripts.h".
13437 (source_section_scripts): Handle Guile scripts.
13438 (_initialize_auto_load): Add name of Guile objfile script to
13439 scripts-directory help text.
13440 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13441 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13442 (struct breakpoint): New member scm_bp_object.
13443 * defs.h (enum command_control_type): New value guile_control.
13444 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13446 (show_user): Update comment.
13447 (_initialize_cli_cmds): Update help text for "show user". Update help
13448 text for max-user-call-depth.
13449 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13451 (multi_line_command_p): Add guile_control.
13452 (print_command_lines): Handle guile_control.
13453 (execute_control_command, recurse_read_control_structure): Ditto.
13454 (process_next_line): Recognize "guile" commands.
13455 * disasm.c (gdb_disassemble_info): Make non-static.
13456 * disasm.h: #include "dis-asm.h".
13457 (struct gdbarch): Add forward decl.
13458 (gdb_disassemble_info): Declare.
13459 * extension.c: #include "guile/guile.h".
13460 (extension_languages): Add guile.
13461 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13462 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13463 * gdbtypes.c (get_unsigned_type_max): New function.
13464 (get_signed_type_minmax): New function.
13465 * gdbtypes.h (get_unsigned_type_max): Declare.
13466 (get_signed_type_minmax): Declare.
13467 * guile/README: New file.
13468 * guile/guile-internal.h: New file.
13469 * guile/guile.c: New file.
13470 * guile/guile.h: New file.
13471 * guile/scm-arch.c: New file.
13472 * guile/scm-auto-load.c: New file.
13473 * guile/scm-block.c: New file.
13474 * guile/scm-breakpoint.c: New file.
13475 * guile/scm-disasm.c: New file.
13476 * guile/scm-exception.c: New file.
13477 * guile/scm-frame.c: New file.
13478 * guile/scm-gsmob.c: New file.
13479 * guile/scm-iterator.c: New file.
13480 * guile/scm-lazy-string.c: New file.
13481 * guile/scm-math.c: New file.
13482 * guile/scm-objfile.c: New file.
13483 * guile/scm-ports.c: New file.
13484 * guile/scm-pretty-print.c: New file.
13485 * guile/scm-safe-call.c: New file.
13486 * guile/scm-string.c: New file.
13487 * guile/scm-symbol.c: New file.
13488 * guile/scm-symtab.c: New file.
13489 * guile/scm-type.c: New file.
13490 * guile/scm-utils.c: New file.
13491 * guile/scm-value.c: New file.
13492 * guile/lib/gdb.scm: New file.
13493 * guile/lib/gdb/boot.scm: New file.
13494 * guile/lib/gdb/experimental.scm: New file.
13495 * guile/lib/gdb/init.scm: New file.
13496 * guile/lib/gdb/iterator.scm: New file.
13497 * guile/lib/gdb/printing.scm: New file.
13498 * guile/lib/gdb/types.scm: New file.
13499 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13500 (VPATH): Add $(GUILE_SRCDIR).
13501 (GUILE_DIR): New variable.
13502 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13503 (all): Add stamp-guile dependency.
13504 (stamp-guile): New rule.
13505 (clean-guile, install-guile, uninstall-guile): New rules.
13506 (install-only): Add install-guile dependency.
13507 (uninstall): Add uninstall-guile dependency.
13508 (clean): Add clean-guile dependency.
13510 2014-02-09 Doug Evans <xdje42@gmail.com>
13512 Revert this patch (which I approved, mea culpa).
13514 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13516 * Makefile.in (all-lib): Remove.
13517 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13519 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13521 Fix Python stack corruption.
13522 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13525 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13527 * Makefile.in (all-lib): Remove.
13528 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13530 2014-02-07 Doug Evans <dje@google.com>
13532 * extension-priv.h (extension_language_script_ops): Add comment.
13533 (extension_language_ops): Add comment.
13534 (active_ext_lang_state): Fix typo in comment.
13536 2014-02-07 Pedro Alves <palves@redhat.com>
13538 PR breakpoints/16292
13539 * infrun.c (handle_signal_stop) <signal arrives while stepping
13540 over a breakpoint>: Switch back to the stepping thread.
13542 2014-02-07 Yao Qi <yao@codesourcery.com>
13544 * target.c (target_xfer_partial): Return zero if LEN is zero.
13546 2014-02-07 Yao Qi <yao@codesourcery.com>
13548 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13549 (ld_so_xfer_auxv): Likewise.
13550 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13551 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13552 * corelow.c (core_xfer_partial): Likewise.
13553 * ctf.c (ctf_xfer_partial): Likewise.
13554 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13555 (darwin_xfer_partial): Likewise.
13556 * exec.c (exec_xfer_partial): Likewise.
13557 * gnu-nat.c (gnu_xfer_partial): Likewise.
13558 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13559 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13560 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13561 * linux-nat.c (linux_xfer_siginfo): Likewise.
13562 (linux_proc_xfer_spu): Likewise.
13563 * procfs.c (procfs_xfer_partial): Likewise.
13564 * record-full.c (record_full_xfer_partial): Likewise.
13565 (record_full_core_xfer_partial): Likewise.
13566 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13567 * remote.c (remote_write_qxfer): Likewise.
13568 (remote_write_qxfer, remote_read_qxfer): Likewise.
13569 (remote_xfer_partial): Likewise.
13570 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13571 (rs6000_xfer_shared_libraries): Likewise.
13572 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13573 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13574 (spu_xfer_partial): Likewise.
13575 * target.c (memory_xfer_partial_1): Likewise.
13576 * tracepoint.c (tfile_xfer_partial): Likewise.
13577 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13578 (windows_xfer_partial): Likewise.
13580 2014-02-07 Yao Qi <yao@codesourcery.com>
13582 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13584 (core_xfer_shared_libraries_aix): Likewise.
13585 * gdbarch.c, gdbarch.h: Regenerated.
13586 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13587 ULONGEST. Change 'len_avail' type to ULONGEST.
13588 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13589 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13591 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13593 2014-02-07 Yao Qi <yao@codesourcery.com>
13595 * corefile.c (memory_error): Get 'exception' from ERR and pass
13596 'exception' to throw_error.
13598 2014-02-06 Doug Evans <xdje42@gmail.com>
13600 * configure.ac (libpython checking): Remove all but python.o from
13601 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13602 * configure: Regenerate.
13604 * Makefile.in (SFILES): Add extension.c.
13605 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13606 (COMMON_OBS): Add extension.o.
13607 * extension.h: New file.
13608 * extension-priv.h: New file.
13609 * extension.c: New file.
13611 * python/python-internal.h: #include "extension.h".
13612 (gdbpy_auto_load_enabled): Declare.
13613 (gdbpy_apply_val_pretty_printer): Declare.
13614 (gdbpy_apply_frame_filter): Declare.
13615 (gdbpy_preserve_values): Declare.
13616 (gdbpy_breakpoint_cond_says_stop): Declare.
13617 (gdbpy_breakpoint_has_cond): Declare.
13618 (void source_python_script_for_objfile): Delete.
13619 * python/python.c: #include "extension-priv.h".
13620 Delete inclusion of "observer.h".
13621 (extension_language_python): Moved here and renamed from
13622 script_language_python in py-auto-load.c.
13623 Redefined to be of type extension_language_defn.
13624 (python_extension_script_ops): New global.
13625 (python_extension_ops): New global.
13626 (struct python_env): New member previous_active.
13627 (restore_python_env): Call restore_active_ext_lang.
13628 (ensure_python_env): Call set_active_ext_lang.
13629 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13631 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13633 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13635 (gdbpy_eval_from_control_command): Renamed from
13636 eval_python_from_control_command, made static. New arg extlang.
13637 (gdbpy_source_script) Renamed from source_python_script, made static.
13639 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13640 result to int. New arg extlang.
13641 (gdbpy_source_objfile_script): Renamed from
13642 source_python_script_for_objfile, made static. New arg extlang.
13643 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13644 static. New args extlang, extlang_printers. Change result type to
13646 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13647 static. New arg extlang. Rename arg printers to extlang_printers
13648 and change type to ext_lang_type_printers *.
13649 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13650 static. Replace argument arg with extlang, extlang_printers.
13651 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13652 (!HAVE_PYTHON, source_python_script): Delete.
13653 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13654 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13655 (!HAVE_PYTHON, start_type_printers): Delete.
13656 (!HAVE_PYTHON, apply_type_printers): Delete.
13657 (!HAVE_PYTHON, free_type_printers): Delete.
13658 (_initialize_python): Delete call to observer_attach_before_prompt.
13659 (finalize_python): Set/restore active extension language.
13660 (gdbpy_finish_initialization) Renamed from
13661 finish_python_initialization, made static. New arg extlang.
13662 (gdbpy_initialized): New function.
13663 * python/python.h: #include "extension.h". Delete #include
13664 "value.h", "mi/mi-cmds.h".
13665 (extension_language_python): Declare.
13666 (GDBPY_AUTO_FILE_NAME): Delete.
13667 (enum py_bt_status): Moved to extension.h and renamed to
13668 ext_lang_bt_status.
13669 (enum frame_filter_flags): Moved to extension.h.
13670 (enum py_frame_args): Moved to extension.h and renamed to
13671 ext_lang_frame_args.
13672 (finish_python_initialization): Delete.
13673 (eval_python_from_control_command): Delete.
13674 (source_python_script): Delete.
13675 (apply_val_pretty_printer): Delete.
13676 (apply_frame_filter): Delete.
13677 (preserve_python_values): Delete.
13678 (gdbpy_script_language_defn): Delete.
13679 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13680 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13682 * auto-load.c: #include "extension.h".
13683 (GDB_AUTO_FILE_NAME): Delete.
13684 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13685 (script_language_gdb): Delete, moved to extension.c and renamed to
13686 extension_language_gdb.
13687 (source_gdb_script_for_objfile): Delete.
13688 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13689 (loaded_script): Change type of language member to
13690 struct extension_language_defn *.
13691 (init_loaded_scripts_info): Initialize
13692 unsupported_script_warning_printed.
13693 (maybe_add_script): Make static. Change type of language arg to
13694 struct extension_language_defn *.
13695 (clear_section_scripts): Reset unsupported_script_warning_printed.
13696 (auto_load_objfile_script_1): Rewrite to use extension language API.
13697 (auto_load_objfile_script): Make public. Remove support-compiled-in
13698 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13699 (source_section_scripts): Rewrite to use extension language API.
13700 (load_auto_scripts_for_objfile): Rewrite to use
13701 auto_load_scripts_for_objfile.
13702 (collect_matching_scripts_data): Change type of language member to
13703 struct extension_language_defn *.
13704 (auto_load_info_scripts): Change type of language arg to
13705 struct extension_language_defn *.
13706 (unsupported_script_warning_print): New function.
13707 (script_not_found_warning_print): Make static.
13708 (_initialize_auto_load): Rewrite construction of scripts-directory
13710 * auto-load.h (struct objfile): Add forward decl.
13711 (struct script_language): Delete.
13712 (struct auto_load_pspace_info): Add forward decl.
13713 (struct extension_language_defn): Add forward decl.
13714 (maybe_add_script): Delete.
13715 (auto_load_objfile_script): Declare.
13716 (script_not_found_warning_print): Delete.
13717 (auto_load_info_scripts): Update prototype.
13718 (auto_load_gdb_scripts_enabled): Declare.
13719 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13720 auto_load_python_scripts_enabled and made public.
13721 (script_language_python): Delete, moved to python.c.
13722 (gdbpy_script_language_defn): Delete.
13723 (info_auto_load_python_scripts): Update to use
13724 extension_language_python.
13726 * breakpoint.c (condition_command): Replace call to
13727 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13728 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13729 with call to breakpoint_ext_lang_cond_says_stop.
13730 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13731 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13732 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13733 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13735 (local_setattro): Print name of extension language with existing
13738 * valprint.c (val_print, value_print): Update to call
13739 apply_ext_lang_val_pretty_printer.
13740 * cp-valprint.c (cp_print_value): Update call to
13741 apply_ext_lang_val_pretty_printer.
13742 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13743 (gdbpy_apply_val_pretty_printer): Renamed from
13744 apply_val_pretty_printer. New arg extlang.
13745 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13747 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13748 extension language API.
13749 * cli/cli-script.c (execute_control_command): Update to call
13750 eval_ext_lang_from_control_command.
13752 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13753 enum ext_lang_bt_status values. Update call to
13754 apply_ext_lang_frame_filter.
13755 (mi_cmd_stack_list_locals): Ditto.
13756 (mi_cmd_stack_list_args): Ditto.
13757 (mi_cmd_stack_list_variables): Ditto.
13758 * mi/mi-main.c: Delete #include "python/python-internal.h".
13759 Add #include "extension.h".
13760 (mi_cmd_list_features): Replace reference to python internal variable
13761 gdb_python_initialized with call to ext_lang_initialized_p.
13763 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13764 Update to use enum ext_lang_frame_args. Update to call
13765 apply_ext_lang_frame_filter.
13766 * python/py-framefilter.c (extract_sym): Update to use enum
13767 ext_lang_bt_status.
13768 (extract_value, py_print_type, py_print_value): Ditto.
13769 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13770 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13771 (py_print_frame): Ditto.
13772 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13773 New arg extlang. Update to use enum ext_lang_bt_status.
13775 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13776 finish_python_initialization. Replace with call to
13777 finish_ext_lang_initialization.
13779 * typeprint.c (do_free_global_table): Update to call
13780 free_ext_lang_type_printers.
13781 (create_global_typedef_table): Update to call
13782 start_ext_lang_type_printers.
13783 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13784 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13785 (type_print_options): Change type of global_printers from "void *"
13786 to "struct ext_lang_type_printers *".
13788 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13789 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13790 (gdbpy_preserve_values): Renamed from preserve_python_values.
13792 (!HAVE_PYTHON, preserve_python_values): Delete.
13794 * utils.c (quit_flag): Delete, moved to extension.c.
13795 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13798 * eval.c: Delete #include "python/python.h".
13799 * main.c: Delete #include "python/python.h".
13801 * defs.h: Update comment.
13803 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13807 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13809 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13812 2014-02-05 Yao Qi <yao@codesourcery.com>
13814 * remote.c (remote_pass_signals): Remove local 'buf' and use
13816 (remote_program_signals): Likewise.
13818 2014-02-05 Yao Qi <yao@codesourcery.com>
13820 * ctf.c: Include "inferior.h" and "gdbthread.h".
13821 (CTF_PID): A new macro.
13822 (ctf_open): Call inferior_appeared and add_thread_silent.
13823 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13824 (ctf_thread_alive): New function.
13825 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13827 2014-02-05 Yao Qi <yao@codesourcery.com>
13831 2013-05-24 Yao Qi <yao@codesourcery.com>
13833 * tracepoint.c (TFILE_PID): Remove.
13834 (tfile_open): Don't add thread and inferior.
13835 (tfile_close): Don't set 'inferior_ptid'. Don't call
13836 exit_inferior_silent.
13837 (tfile_thread_alive): Remove.
13838 (init_tfile_ops): Don't set field 'to_thread_alive' of
13841 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13843 * remote.c (remote_start_remote): Call remote_check_symbols even
13844 if only symbol-file (not file) has been given.
13846 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13848 * gdbarch.sh (skip_entrypoint): New callback.
13849 * gdbarch.c, gdbarch.h: Regenerate.
13850 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13851 * infrun.c (fill_in_stop_func): Likewise.
13852 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13853 (ppc_elfv2_elf_make_msymbol_special): New function.
13854 (ppc_elfv2_skip_entrypoint): Likewise.
13855 (ppc_linux_init_abi): Install them for ELFv2.
13857 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13859 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13860 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13861 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13862 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13863 structures returned in GPRs.
13865 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13867 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13868 offset to the stack parameter list for the ELFv2 ABI.
13870 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13872 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13873 set_gdbarch_convert_from_func_ptr_addr and
13874 set_gdbarch_elf_make_msymbol_special for ELFv1.
13875 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13876 function descriptors on ELFv1.
13877 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13878 set up r12 at function entry.
13880 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13882 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13883 (struct gdbarch_tdep): New member elf_abi.
13885 * rs6000-tdep.c: Include "elf/ppc64.h".
13886 (rs6000_gdbarch_init): Detect ELF ABI version.
13888 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13890 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13891 within a register pair holding a DFP 128-bit value on little-endian.
13892 (ppc64_sysv_abi_return_value_base): Likewise.
13893 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13894 (dfp_pseudo_register_write): Likewise.
13896 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13898 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13899 offset on little-endian when passing _Decimal32.
13900 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13902 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13904 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13905 of the overlapped FP register within the VSX register on little-
13907 (efpr_pseudo_register_write): Likewise.
13909 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13911 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13912 offset on little-endian when passing small structures.
13914 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13916 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13917 (struct ppc64_sysv_argpos): New data structure.
13918 (ppc64_sysv_abi_push_float): Remove.
13919 (ppc64_sysv_abi_push_val): New function.
13920 (ppc64_sysv_abi_push_integer): Likewise.
13921 (ppc64_sysv_abi_push_freg): Likewise.
13922 (ppc64_sysv_abi_push_vreg): Likewise.
13923 (ppc64_sysv_abi_push_param): Likewise.
13924 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13925 (ppc64_sysv_abi_return_value_base): New function.
13926 (ppc64_sysv_abi_return_value): Refactor to use it.
13928 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13930 * NEWS: Document new target powerpc64le-*-linux*.
13932 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13934 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13935 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13937 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13938 register set used in ELF core dumps. Add floating-point register set.
13940 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13942 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13943 dwarf2_to_gdb[] table using symbolic constants. Adjust
13944 penultimate entry from number representing the PC register
13945 to symbolic constant representing the MDR register. Add
13946 constant for the PC register to the end of the table.
13948 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13950 * bsd-kvm.c: Include <sys/param.h>
13952 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13954 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13956 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13958 * ada-lang.h (clear_ada_sym_cache): Delete.
13960 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13962 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13964 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13966 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13967 the sigreturn register save area only if the syscall is
13970 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13972 * valops.c (value_slice): Minor reformatting.
13974 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13976 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13978 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13980 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13981 New static globals.
13982 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13983 (ada_ignore_descriptive_types_p): New static global.
13984 (find_parallel_type_by_descriptive_type): Return immediately
13985 if ada_ignore_descriptive_types_p is set.
13986 (_initialize_ada_language): Register new commands "maintenance
13987 set ada", "maintenance show ada", "maintenance set ada
13988 ignore-descriptive-types" and "maintenance show ada
13989 ignore-descriptive-types".
13990 * NEWS: Add entry for new "maint ada set/show
13991 ignore-descriptive-types" commands.
13993 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13995 * record-btrace.c (record_btrace_close): Call btrace_teardown
13998 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14000 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14003 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14005 * ada-typeprint (type_is_full_subrange_of_target_type):
14007 (print_range): Add parameter bounds_prefered_p. If not set,
14008 try printing range types using the name of their base type.
14009 (print_range_type): Add parameter bounds_prefered_p.
14010 Use it in call to print_range.
14011 (print_array_type, ada_print_type): Update calls to print_range
14012 and print_range_type.
14014 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14016 * ada-typeprint.c (print_array_type, print_choices, print_range)
14017 (print_range_bound, print_dynamic_range_bound, print_range_type):
14018 Remove declaration.
14020 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14022 * ada-typeprint.c (print_range): Add missing empty line
14023 after local declaration.
14025 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14027 * ada-valprint.c (print_optional_low_bound): Get index_type's
14028 target type for as long as it is a TYPE_CODE_RANGE.
14030 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14032 * procfs.c (procfs_make_note_section): Remove assertion and
14033 associated comment.
14035 2014-01-24 Yao Qi <yao@codesourcery.com>
14037 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14038 * corelow.c (get_core_siginfo): Likewise.
14040 2014-01-24 Yao Qi <yao@codesourcery.com>
14042 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14043 ULONGEST. Don't check 'len' is negative.
14044 (remote_write_bytes): Change type of 'len' to ULONGEST.
14046 2014-01-23 Tom Tromey <tromey@redhat.com>
14049 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14050 Handle exception from frame.block.
14051 (FrameVars.fetch_frame_locals): Likewise.
14053 2014-01-23 Tom Tromey <tromey@redhat.com>
14056 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14057 on a NULL pointer. Move "goto error" to correct place.
14059 2014-01-23 Tom Tromey <tromey@redhat.com>
14062 * python/py-framefilter.c (apply_frame_filter): Call
14063 ensure_python_env after computing gdbarch.
14065 2014-01-23 Yao Qi <yao@codesourcery.com>
14067 * target.c (raw_memory_xfer_partial): Change argument type
14068 from void * to gdb_byte *.
14069 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14071 2014-01-22 Doug Evans <dje@google.com>
14073 New gdbserver option --debug-format=timestamp.
14074 * NEWS: Mention it.
14076 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14078 * syscalls/s390x-linux.xml: New file.
14079 * syscalls/s390-linux.xml: New file.
14080 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14081 (XML_SYSCALL_FILENAME_S390X): Likewise.
14082 (op_svc): New enum value for SVC opcode.
14083 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14084 (s390_linux_get_syscall_number): New function.
14085 (s390_gdbarch_init): Register '*get_syscall_number' and the
14086 syscall xml file name.
14087 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14088 "s390-linux.xml" and "s390x-linux.xml".
14089 * NEWS: Announce new feature.
14091 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14093 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14095 2014-01-22 Pedro Alves <palves@redhat.com>
14097 * xtensa-config.c: Include defs.h.
14099 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14101 * common/common-utils.h: Add "ARI:" comment beside __func__
14104 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14106 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14107 documentation a bit.
14109 2014-01-21 Roland McGrath <mcgrathr@google.com>
14111 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14112 * configure: Regenerate.
14113 * aclocal.m4: Regenerate.
14114 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14115 New substituted variables.
14116 (install-strip): New target.
14117 (INSTALL_SCRIPT): New substituted variable.
14118 (FLAGS_TO_PASS): Add it.
14119 (install-only): Use $(INSTALL_SCRIPT) rather than
14120 $(INSTALL_PROGRAM) for gcore.
14122 2014-01-20 Tom Tromey <tromey@redhat.com>
14124 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14127 2014-01-20 Tom Tromey <tromey@redhat.com>
14129 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14130 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14131 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14132 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14133 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14134 (struct cmd_list_element) <flags>: Remove.
14135 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14136 doc_allocated>: New fields.
14137 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14139 * maint.c (maintenance_do_deprecate): Update.
14140 * top.c (execute_command): Update.
14142 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14144 * xtensa-linux-nat.c: Include asm/ptrace.h.
14146 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14148 * Makefile.in (SFILES): Add d-support.c.
14149 (COMMON_OBS): Add d-support.o.
14150 * d-lang.h (d_parse_symbol): Add comment, now defined in
14152 * d-lang.c (parse_call_convention)
14153 (parse_attributes, parse_function_types)
14154 (parse_function_args, parse_type, parse_identifier)
14155 (call_convention_p, d_parse_symbol): Move functions to ...
14156 * d-support.c: ... New file.
14158 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14160 * d-lang.h (d_parse_symbol): Add declaration.
14161 * d-lang.c (extract_identifiers)
14162 (extract_type_info): Remove functions.
14163 (parse_call_convention, parse_attributes)
14164 (parse_function_types, parse_function_args)
14165 (parse_type, parse_identifier, call_convention_p)
14166 (d_parse_symbol): New functions.
14167 (d_demangle): Use d_parse_symbol to demangle D symbols.
14169 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14171 * d-lang.h (struct builtin_d_type): New data type.
14172 (builtin_d_type): Add declaration.
14173 * d-lang.c (d_language_arch_info, build_d_types)
14174 (builtin_d_type): New functions.
14175 (enum d_primitive_types): New data type.
14176 (d_language_defn): Change c_language_arch_info to
14177 d_language_arch_info.
14178 (d_type_data): New static variable.
14179 (_initialize_d_language): Initialize d_type_data.
14181 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14183 * d-lang.h (d_main_name): Add declaration.
14184 * d-lang.c (d_main_name): New function.
14185 * symtab.c (find_main_name): Add call to d_main_name.
14187 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14189 * d-lang.c (d_language_defn): Change macro_expansion_c to
14190 macro_expansion_no.
14192 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14194 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14196 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14198 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14199 gdb_exception" declaration.
14200 * remote.c (getpkt_or_notif_sane): Likewise.
14202 2014-01-17 Doug Evans <dje@google.com>
14204 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14205 function, contents of dirnames_to_char_ptr_vec_append moved here.
14206 (delim_string_to_char_ptr_vec): New function.
14207 (dirnames_to_char_ptr_vec_append): Rewrite.
14208 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14210 2014-01-17 Doug Evans <dje@google.com>
14212 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14214 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14215 #include "common-utils.h".
14216 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14217 * common/vec.h (VEC_ASSERT_PASS): Update.
14218 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14219 (MACH_CHECK_ERROR): Update.
14221 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14223 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14225 * gdbarch.h: Regenerate.
14227 2014-01-16 Tom Tromey <tromey@redhat.com>
14229 * value.c (struct value) <regnum>: Move earlier.
14231 2014-01-16 Tom Tromey <tromey@redhat.com>
14233 * remote.c (extended_remote_create_inferior): Rename from
14234 extended_remote_create_inferior_1. Add "ops" argument. Remove
14235 old implementation.
14237 2014-01-16 Pedro Alves <palves@redhat.com>
14239 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14240 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14243 2014-01-16 Doug Evans <dje@google.com>
14245 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14247 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14249 * btrace.h (btrace_thread_flag): New.
14250 (struct btrace_thread_info) <flags>: New.
14251 * record-btrace.c (record_btrace_resume_thread)
14252 (record_btrace_find_thread_to_move, btrace_step_no_history)
14253 (btrace_step_stopped, record_btrace_start_replaying)
14254 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14255 (record_btrace_find_resume_thread): New.
14256 (record_btrace_resume, record_btrace_wait): Extend.
14257 (record_btrace_can_execute_reverse): New.
14258 (record_btrace_open): Fail in non-stop mode.
14259 (record_btrace_set_replay): Split into this, ...
14260 (record_btrace_stop_replaying): ... this, ...
14261 (record_btrace_clear_histories): ... and this.
14262 (init_record_btrace_ops): Init to_can_execute_reverse.
14263 * NEWS: Announce it.
14265 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14267 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14268 (forward_target_decr_pc_after_break)
14269 (target_decr_pc_after_break): New.
14270 * target.c (forward_target_decr_pc_after_break)
14271 (target_decr_pc_after_break): New.
14272 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14273 instead of gdbarch_decr_pc_after_break.
14274 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14275 instead of gdbarch_decr_pc_after_break.
14276 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14277 instead of gdbarch_decr_pc_after_break.
14278 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14279 instead of gdbarch_decr_pc_after_break.
14280 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14281 instead of gdbarch_decr_pc_after_break.
14282 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14283 instead of gdbarch_decr_pc_after_break.
14285 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14287 * btrace.c: Include regcache.h.
14288 (btrace_add_pc): New.
14289 (btrace_enable): Call btrace_add_pc.
14290 (btrace_is_empty): New.
14291 * btrace.h (btrace_is_empty): New.
14292 * record-btrace.c (require_btrace, record_btrace_info): Call
14295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14297 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14298 Support delta reads.
14299 (linux_disable_btrace): Change return type.
14300 * common/linux-btrace.h (linux_read_btrace): Change parameters
14301 and return type to allow error reporting. Update users.
14302 (linux_disable_btrace): Change return type. Update users.
14303 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14305 (btrace_error): New.
14306 (btrace_block) <begin>: Comment on BEGIN == 0.
14307 * btrace.c (btrace_compute_ftrace): Start from the end of
14309 (btrace_stitch_trace, btrace_clear_history): New.
14310 (btrace_fetch): Read delta trace, return if replaying.
14311 (btrace_clear): Move clear history code to btrace_clear_history.
14312 (parse_xml_btrace): Throw an error if parsing failed.
14313 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14314 and return type to allow error reporting.
14315 (target_read_btrace): Change parameters and return type to allow
14317 * target.c (target_read_btrace): Update.
14318 * remote.c (remote_read_btrace): Support delta reads. Pass
14320 * NEWS: Announce it.
14322 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14324 * record.h (record_btrace_frame_unwind)
14325 (record_btrace_tailcall_frame_unwind): New declarations.
14326 * dwarf2-frame: Include record.h
14327 (dwarf2_frame_cfa): Throw an error for btrace frames.
14328 * record-btrace.c: Include hashtab.h.
14329 (btrace_get_bfun_name): New.
14330 (btrace_call_history): Call btrace_get_bfun_name.
14331 (struct btrace_frame_cache): New.
14333 (bfcache_hash, bfcache_eq, bfcache_new): New.
14334 (btrace_get_frame_function): New.
14335 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14336 (record_btrace_frame_this_id): Compute own id.
14337 (record_btrace_frame_prev_register): Provide PC, throw_error
14338 for all other registers.
14339 (record_btrace_frame_sniffer): Detect btrace frames.
14340 (record_btrace_tailcall_frame_sniffer): New.
14341 (record_btrace_frame_dealloc_cache): New.
14342 (record_btrace_frame_unwind): Add new functions.
14343 (record_btrace_tailcall_frame_unwind): New.
14344 (_initialize_record_btrace): Allocate cache.
14345 * btrace.c (btrace_clear): Call reinit_frame_cache.
14346 * NEWS: Announce it.
14348 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14350 * record-btrace.c (record_btrace_set_replay)
14351 (record_btrace_goto_begin, record_btrace_goto_end)
14352 (record_btrace_goto): New.
14353 (init_record_btrace_ops): Initialize them.
14354 * NEWS: Announce it.
14356 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14358 * record-btrace.c (record_btrace_find_new_threads)
14359 (record_btrace_thread_alive): New.
14360 (init_record_btrace_ops): Initialize to_find_new_threads and
14363 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14365 * record-btrace.c (record_btrace_resume): New.
14366 (record_btrace_wait): New.
14367 (init_record_btrace_ops): Initialize to_wait and to_resume.
14369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14371 * record-btrace.c (record_btrace_xfer_partial)
14372 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14373 (record_btrace_allow_memory_access): New.
14374 (init_record_btrace_ops): Initialize new methods.
14375 * target.c (raw_memory_xfer_partial): Bail out if target reports
14376 that this memory is not available.
14378 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14380 * target.h (target_ops) <to_insert_breakpoint>
14381 <to_remove_breakpoint>: Add target_ops parameter.
14382 (forward_target_insert_breakpoint): New.
14383 (forward_target_remove_breakpoint): New.
14384 (memory_remove_breakpoint, memory_insert_breakpoint):
14385 Add target_ops parameter.
14386 * target.c (target_insert_breakpoint): Split into this and ...
14387 (forward_target_insert_breakpoint): ... this.
14388 (target_remove_breakpoint): Split into this and ...
14389 (forward_target_remove_breakpoint): ... this.
14390 (debug_to_insert_breakpoint): Add target_ops parameter.
14391 Call forward_target_insert_breakpoint.
14392 (debug_to_remove_breakpoint): Add target_ops parameter.
14393 Call forward_target_remove_breakpoint.
14394 (update_current_target): Do not inherit or default to_insert_breakpoint
14395 and to_remove_breakpoint.
14396 * corelow.c (ignore): Add target_ops parameter.
14397 * exec.c (ignore): Add target_ops parameter.
14398 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14399 Add target_ops parameter.
14400 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14401 Add target_ops parameter.
14402 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14403 Add target_ops parameter.
14404 * record-full.c (record_full_beneath_to_insert_breakpoint)
14405 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14406 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14407 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14408 (record_full_core_remove_breakpoint): Add target_ops parameter.
14410 (record_full_beneath_to_insert_breakpoint_ops)
14411 (record_full_beneath_to_remove_breakpoint_ops)
14412 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14413 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14414 tmp_to_remove_breakpoint_ops,
14415 record_full_beneath_to_insert_breakpoint_ops, and
14416 record_full_beneath_to_remove_breakpoint_ops.
14417 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14418 (m32r_remove_breakpoint): Add target_ops parameter.
14419 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14420 Add target_ops parameter.
14421 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14422 Add target_ops parameter.
14424 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14425 Markus Metzger <markus.t.metzger@intel.com>
14427 * record-btrace.c: Include frame-unwind.h.
14428 (record_btrace_frame_unwind_stop_reason)
14429 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14430 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14432 (init_record_btrace_ops): Install it.
14434 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14436 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14439 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14441 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14444 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14446 * frame-unwind.c: Include target.h.
14447 (frame_unwind_try_unwinder): New function with code from ...
14448 (frame_unwind_find_by_frame): ... here. New variable
14449 unwinder_from_target, call also target_get_unwinder)
14450 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14451 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14452 * target.h (struct target_ops): New fields to_get_unwinder and
14453 to_get_tailcall_unwinder.
14454 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14458 * record-btrace.c (record_btrace_fetch_registers)
14459 (record_btrace_store_registers)
14460 (record_btrace_to_prepare_to_store): New.
14461 (init_record_btrace_ops): Add the above.
14463 2014-01-16 Tom Tromey <tromey@redhat.com>
14465 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14466 * target.h (struct target_ops) <to_prepare_to_store>: Add
14468 (target_prepare_to_store): Add argument.
14469 * target.c (debug_to_prepare_to_store): Add argument.
14470 (update_current_target): Update.
14471 * remote.c (remote_prepare_to_store): Add 'self' argument.
14472 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14473 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14474 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14475 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14477 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14478 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14479 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14480 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14481 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14483 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14485 * btrace.h (replay) <replay>: New.
14486 (btrace_is_replaying): New.
14487 * btrace.c (btrace_clear): Free replay iterator.
14488 (btrace_is_replaying): New.
14489 * record-btrace.c (record_btrace_is_replaying): New.
14490 (record_btrace_info): Print insn number if replaying.
14491 (record_btrace_insn_history): Start at replay position.
14492 (record_btrace_call_history): Start at replay position.
14493 (init_record_btrace_ops): Init to_record_is_replaying.
14495 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14497 * record-btrace.c (record_btrace_insn_history_range): Include
14499 (record_btrace_insn_history_from): Adjust range.
14500 (record_btrace_call_history_range): Include
14502 (record_btrace_call_history_from): Adjust range.
14503 * NEWS: Announce changes.
14505 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14507 * record.h (enum record_print_flag)
14508 <record_print_indent_calls>: New.
14509 * record.c (get_call_history_modifiers): Recognize /c modifier.
14510 (_initialize_record): Document /c modifier.
14511 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14512 Reorder fields. Optionally indent the function name. Update
14514 * NEWS: Announce changes.
14516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14518 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14520 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14522 * btrace.c (ftrace_new_function): Start counting at one.
14523 * record-btrace.c (record_btrace_info): Adjust number of calls
14525 * NEWS: Announce it.
14527 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14529 * record-btrace.c (btrace_call_history_insn_range): Print
14530 insn range as [begin, end].
14532 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14534 * btrace.h (struct btrace_func_link): New.
14535 (enum btrace_function_flag): New.
14536 (struct btrace_inst): Rename to ...
14537 (struct btrace_insn): ...this. Update all users.
14538 (struct btrace_func) <ibegin, iend>: Remove.
14539 (struct btrace_func_link): New.
14540 (struct btrace_func): Rename to ...
14541 (struct btrace_function): ...this. Update all users.
14542 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14543 (number, level, flags>: New.
14544 (struct btrace_insn_iterator): Rename to ...
14545 (struct btrace_insn_history): ...this.
14547 (struct btrace_insn_iterator, btrace_call_iterator): New.
14548 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14549 (struct btrace_target_info) <begin, end, level>
14550 <insn_history, call_history>: New.
14551 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14552 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14553 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14554 (btrace_call_number, btrace_call_begin, btrace_call_end)
14555 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14556 (btrace_find_function_by_number, btrace_set_insn_history)
14557 (btrace_set_call_history): New.
14558 * btrace.c (btrace_init_insn_iterator)
14559 (btrace_init_func_iterator, compute_itrace): Remove.
14560 (ftrace_print_function_name, ftrace_print_filename)
14561 (ftrace_skip_file): Change
14562 parameter to const.
14563 (ftrace_init_func): Remove.
14564 (ftrace_debug): Use new btrace_function fields.
14565 (ftrace_function_switched): Also consider gaining and
14566 losing symbol information).
14567 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14568 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14569 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14571 (ftrace_new_function): Move. Remove debug print.
14572 (ftrace_update_lines, ftrace_update_insns): New.
14573 (ftrace_update_function): Check for call, ret, and jump.
14574 (compute_ftrace): Renamed to ...
14575 (btrace_compute_ftrace): ...this. Rewritten to compute call
14577 (btrace_fetch, btrace_clear): Updated.
14578 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14579 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14580 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14581 (btrace_call_number, btrace_call_begin, btrace_call_end)
14582 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14583 (btrace_find_function_by_number, btrace_set_insn_history)
14584 (btrace_set_call_history): New.
14585 * record-btrace.c (require_btrace): Use new btrace thread
14587 (record_btrace_info, btrace_insn_history)
14588 (record_btrace_insn_history, record_btrace_insn_history_range):
14589 Use new btrace thread info fields and new iterator.
14590 (btrace_func_history_src_line): Rename to ...
14591 (btrace_call_history_src_line): ...this. Use new btrace
14592 thread info fields.
14593 (btrace_func_history): Rename to ...
14594 (btrace_call_history): ...this. Use new btrace thread info
14595 fields and new iterator.
14596 (record_btrace_call_history, record_btrace_call_history_range):
14597 Use new btrace thread info fields and new iterator.
14599 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14601 * frame.h (frame_id_build_unavailable_stack_special): New.
14602 * frame.c (frame_id_build_unavailable_stack_special): New.
14604 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14606 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14607 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14608 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14610 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14611 (i386_insn_is_jump, i386_jmp_p): New.
14612 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14613 insn_is_jump to gdbarch.
14614 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14615 * gdbarch.h: Regenerated.
14616 * gdbarch.c: Regenerated.
14617 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14618 (default_insn_is_jump): New.
14619 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14620 (default_insn_is_jump): New.
14622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14624 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14626 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14627 (btrace_read_type) <btrace_read_new>: Change to ...
14628 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14632 * common/linux-btrace.c (linux_read_btrace): Free trace from
14633 previous iteration.
14635 2014-01-15 Doug Evans <dje@google.com>
14637 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14640 2014-01-15 Tom Tromey <tromey@redhat.com>
14642 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14643 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14644 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14645 (set_objfile_main_name): New function.
14646 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14647 language_of_main>: New fields.
14648 (set_objfile_main_name): Declare.
14649 * symtab.c (find_main_name): Loop over objfiles to find the main
14651 (set_main_name): Now static.
14652 (get_main_info): Add comment.
14653 * symtab.h (set_main_name): Don't declare.
14655 2014-01-15 Tom Tromey <tromey@redhat.com>
14657 * symtab.c (main_progspace_key): New global.
14658 (struct main_info): New.
14659 (name_of_main, language_of_main): Remove.
14660 (get_main_info, main_info_cleanup): New function.
14661 (set_main_name, main_name, main_language): Use get_main_info.
14662 (_initialize_symtab): Initialize main_progspace_key.
14664 2014-01-15 Tom Tromey <tromey@redhat.com>
14666 * dbxread.c (process_one_symbol): Update.
14667 * dwarf2read.c (read_partial_die): Update.
14668 * symfile.c (set_initial_language): Call main_language.
14669 * symtab.c (language_of_main): Now static.
14670 (set_main_name): Add 'lang' parameter.
14671 (find_main_name): Update.
14672 (main_language): New function.
14673 (symtab_observer_executable_changed): Update.
14674 * symtab.h (set_main_name): Update.
14675 (language_of_main): Remove.
14676 (main_language): Declare.
14678 2014-01-15 Tom Tromey <tromey@redhat.com>
14680 * symfile.c (init_entry_point_info): Use new "initialized" field.
14682 * objfiles.h (struct entry_point) <initialized>: New field.
14683 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14684 (struct objfile) <ei>: ...here. Remove.
14685 * objfiles.c (entry_point_address_query): Update.
14687 2014-01-15 Tom Tromey <tromey@redhat.com>
14689 * objfiles.c (entry_point_address_query): Relocate entry point
14691 (objfile_relocate1): Do not relocate entry point address.
14692 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14693 <the_bfd_section_index>: New field.
14694 * symfile.c (init_entry_point_info): Find the entry point's
14697 2014-01-15 Tom Tromey <tromey@redhat.com>
14699 * solib-frv.c (enable_break): Use entry_point_address_query.
14701 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14703 * NEWS: Add note on improved process record-replay on
14704 arm*-linux* targets.
14706 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14708 * arm-tdep.c (enum arm_record_result): New enum.
14709 (arm_record_unsupported_insn): New function.
14710 (arm_record_coproc_data_proc): Removed.
14711 (thumb2_record_ld_st_multiple): New function.
14712 (thumb2_record_ld_st_dual_ex_tbb): New function.
14713 (thumb2_record_data_proc_sreg_mimm): New function.
14714 (thumb2_record_ps_dest_generic): New function.
14715 (thumb2_record_branch_misc_cntrl): New function.
14716 (thumb2_record_str_single_data): New function.
14717 (thumb2_record_ld_mem_hints): New function.
14718 (thumb2_record_ld_word): New function.
14719 (thumb2_record_lmul_lmla_div): New function.
14720 (thumb2_record_decode_insn_handler): New function.
14721 (decode_insn): Add thumb32 instruction handlers.
14723 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14725 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14726 (struct arm_linux_record_tdep): Declare.
14727 (arm_canonicalize_syscall): New function.
14728 (arm_all_but_pc_registers_record): New function.
14729 (arm_linux_syscall_record): New function.
14730 (arm_linux_init_abi): Add syscall recording constructs.
14731 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14732 decoding. (arm_record_coproc_data_proc): Update arm syscall
14734 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14735 <arm_syscall_record>: New field.
14736 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14739 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14741 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14742 register for push instruction recording.
14744 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14746 * arm-tdep.c (thumb_record_misc): Update to correct logical
14747 error while recording ldm, ldmia and pop instructions.
14749 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14751 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14753 2014-01-15 Pedro Alves <palves@redhat.com>
14755 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14756 (go32_resume, go32_fetch_registers, store_register)
14757 (go32_store_registers, go32_prepare_to_store)
14758 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14759 (go32_create_inferior, go32_can_run, go32_terminal_init)
14760 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14763 2014-01-15 Tom Tromey <tromey@redhat.com>
14765 * target.h (async_callback_ftype): New typedef.
14766 (struct target_ops) <to_async>: Use it.
14768 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14770 * python/py-value.c (get_field_type): Remove unnecessary curly
14771 braces for single-statement if block.
14773 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14775 * python/py-type.c (convert_field): Add missing empty line
14776 after declarations.
14778 2014-01-14 Doug Evans <dje@google.com>
14780 * symfile.h (expand_symtabs_matching): Renamed from
14781 expand_partial_symbol_names. Update prototype.
14782 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14783 * symfile.c (expand_symtabs_matching): Renamed from
14784 expand_partial_symbol_names. New args file_matcher, kind.
14785 Rename arg fun to symbol_matcher.
14786 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14787 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14788 ada_expand_partial_symbol_name.
14789 (ada_make_symbol_completion_list): Update to call
14790 expand_symtabs_matching.
14791 (ada_add_global_exceptions): Call expand_symtabs_matching.
14792 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14793 call map_symbol_filenames.
14794 * symtab.c (sources_info): Update to call map_symbol_filenames.
14795 (search_symbols): Call expand_symtabs_matching.
14796 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14797 (default_make_symbol_completion_list_break_on): Update to call
14798 expand_symtabs_matching.
14799 (make_source_files_completion_list): Update to call
14800 map_symbol_filenames.
14802 2014-01-14 Doug Evans <dje@google.com>
14804 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14805 (expand_symtabs_symbol_matcher_ftype): New typedef.
14806 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14807 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14808 * symfile.c (expand_partial_symbol_names): Update to use
14809 expand_symtabs_symbol_matcher_ftype.
14810 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14811 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14812 Arg name_matcher renamed to symbol_matcher.
14813 * psymtab.c (recursively_search_psymtabs): Update to use
14814 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14816 (expand_symtabs_matching_via_partial): Update to use
14817 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14818 Arg name_matcher renamed to symbol_matcher.
14820 2014-01-14 Doug Evans <dje@google.com>
14822 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14823 (map_partial_symbol_filenames): Ditto.
14824 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14825 (map_partial_symbol_filenames): Ditto.
14826 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14827 (map_partial_symbol_filenames): Ditto.
14828 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14829 (map_partial_symbol_filenames): Ditto.
14830 * symtab.c: Delete #include "psymtab.h".
14832 2014-01-14 Pedro Alves <palves@redhat.com>
14833 Tom Tromey <tromey@redhat.com>
14835 * infrun.c (use_displaced_stepping): Use find_record_target
14836 instead of RECORD_IS_USED.
14837 (adjust_pc_after_break): Use record_full_is_used instead of
14839 * record-btrace.c (record_btrace_open): Call record_preopen
14840 instead of checking RECORD_IS_USED.
14841 * record-full.c (record_full_shortname)
14842 (record_full_core_shortname): New globals.
14843 (record_full_is_used): New function.
14844 (find_full_open): Call record_preopen instead of checking
14846 (init_record_full_ops): Set the target's shortname to
14847 record_full_shortname.
14848 (init_record_full_core_ops): Set the target's shortname to
14849 record_full_core_shortname.
14850 * record-full.h (record_full_is_used): Declare.
14851 * record.c (find_record_target): Make extern.
14852 (record_preopen): New function.
14853 * record.h (RECORD_IS_USED): Delete macro.
14854 (find_record_target, record_preopen): Declare functions.
14856 2014-01-14 Yao Qi <yao@codesourcery.com>
14858 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14859 'len''s type to ULONGEST.
14860 (core_xfer_shared_libraries_aix): Likewise.
14861 * gdbarch.c, gdbarch.h: Regenerated.
14862 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14863 Change type of 'len' to ULONGEST.
14864 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14865 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14867 2014-01-14 Yao Qi <yao@codesourcery.com>
14869 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14870 type of 'len' to ULONGEST.
14871 (linux_xfer_osdata_processgroups): Likewise.
14872 (linux_xfer_osdata_threads): Likewise.
14873 (linux_xfer_osdata_fds): Likewise.
14874 (linux_xfer_osdata_isockets): Likewise.
14875 (linux_xfer_osdata_shm): Likewise.
14876 (linux_xfer_osdata_sem): Likewise.
14877 (linux_xfer_osdata_msg): Likewise.
14878 (linux_common_xfer_osdata): Likewise.
14879 (struct osdata_type) <getter>: Likewise.
14880 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14883 2014-01-14 Yao Qi <yao@codesourcery.com>
14885 * target.h (target_xfer_partial_ftype): Update.
14886 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14888 * aix-thread.c (aix_thread_xfer_partial): Change type of
14889 argument 'len' to ULONGEST.
14890 * auxv.c (procfs_xfer_auxv): Likewise.
14891 (ld_so_xfer_auxv): Likewise.
14892 (memory_xfer_auxv): Likewise.
14893 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14894 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14895 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14896 * corelow.c (core_xfer_partial): Likewise.
14897 * ctf.c (ctf_xfer_partial): Likewise.
14898 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14900 (darwin_read_dyld_info): Likewise.
14901 (darwin_xfer_partial): Likewise.
14902 * exec.c (section_table_xfer_memory_partial): Likewise.
14903 (exec_xfer_partial): Likewise.
14904 * exec.h (section_table_xfer_memory_partial): Update
14906 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14907 instead of plongest.
14908 (gnu_xfer_partial): Likewise.
14909 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14910 (ia64_hpux_xfer_solib_got): Likewise.
14911 (ia64_hpux_xfer_partial): Likewise.
14912 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14913 * inf-ptrace.c (inf_ptrace_xfer_partial):
14914 * inf-ttrace.c (inf_ttrace_xfer_partial):
14915 * linux-nat.c (linux_xfer_siginfo): Likewise.
14916 (linux_nat_xfer_partial): Likewise.
14917 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14918 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14919 * monitor.c (monitor_xfer_memory): Likewise.
14920 (monitor_xfer_partial): Likewise.
14921 * procfs.c (procfs_xfer_partial): Likewise.
14922 * record-full.c (record_full_xfer_partial): Likewise.
14923 (record_full_core_xfer_partial): Likewise.
14924 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14925 instead of plongest.
14926 (gdbsim_xfer_partial): Likewise.
14927 * remote.c (remote_xfer_partial): Likewise.
14928 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14929 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14931 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14932 (rs6000_xfer_shared_libraries): Likewise.
14933 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14934 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14935 (sparc_xfer_partial): Likewise.
14936 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14937 (spu_xfer_partial): Likewise.
14938 * spu-multiarch.c (spu_xfer_partial): Likewise.
14939 * target.c (target_read_live_memory): Likewise.
14940 (memory_xfer_live_readonly_partial): Likewise.
14941 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14942 (target_xfer_partial, default_xfer_partial): Likewise.
14943 (current_xfer_partial): Likewise.
14944 * tracepoint.c (tfile_xfer_partial): Likewise.
14945 * windows-nat.c (windows_xfer_memory): Likewise. Call
14946 pulongest instead of plongest.
14947 (windows_xfer_partial): Likewise.
14948 (windows_xfer_shared_libraries): Likewise.
14950 2014-01-14 Yao Qi <yao@codesourcery.com>
14952 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14953 target_xfer_partial_ftype.
14955 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14959 * valops.c (value_struct_elt_bitpos): New function
14960 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14961 object to 'None' if the field name is an empty string ("").
14962 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14963 attribute to look for a field when 'name' is 'None'.
14964 (get_field_type): New function
14966 2014-01-13 Doug Evans <dje@google.com>
14969 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14970 (try_open_dwop_file): Ditto.
14971 * gdb_bfd.c: #include "vec.h".
14972 (bfdp): New typedef.
14973 (struct gdb_bfd_data): New member included_bfds.
14974 (gdb_bfd_unref): Unref all included bfds.
14975 (gdb_bfd_record_inclusion): New function.
14976 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14978 2014-01-13 Tom Tromey <tromey@redhat.com>
14980 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14982 2014-01-13 Tom Tromey <tromey@redhat.com>
14984 * defs.h (use_windows): Remove.
14985 * gdb.c (main): Update.
14986 * main.c (captured_main, gdb_main): Update.
14987 * main.h (struct captured_main_args) <use_windows>: Remove.
14988 * top.c (use_windows): Remove.
14990 2014-01-13 Tom Tromey <tromey@redhat.com>
14992 * defs.h (deprecated_flush_hook): Remove.
14994 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14997 * linux-thread-db.c (try_thread_db_load): Add parameter
14998 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14999 (try_thread_db_load_from_pdir_1): Move it there from here.
15000 (try_thread_db_load_from_sdir): Update caller.
15001 (try_thread_db_load_from_dir): Move it there from here.
15003 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15005 * regformats/regdat.sh: Always rewrite the register file.
15007 2014-01-13 Pedro Alves <palves@redhat.com>
15009 * Makefile.in (CHECK_HEADERS): New variable.
15010 (check-headers:): New rule.
15012 2014-01-13 Tom Tromey <tromey@redhat.com>
15014 * cli/cli-setshow.c (do_set_command): Update.
15015 * defs.h (deprecated_set_hook): Remove.
15016 * top.c (deprecated_set_hook): Remove.
15018 2014-01-13 Pedro Alves <palves@redhat.com>
15020 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15021 the tracepoint if the PC is a pseudo-register.
15023 2014-01-13 Tom Tromey <tromey@redhat.com>
15025 * defs.h (XCALLOC): Remove.
15026 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15027 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15028 * dwarf2loc.c (allocate_piece_closure): Likewise.
15029 * elfread.c (elf_symfile_segments): Likewise.
15030 (elf_symfile_segments): Likewise.
15031 * gdbtypes.c (copy_type_recursive): Likewise.
15032 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15033 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15034 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15036 * mt-tdep.c (mt_gdbarch_init): Likewise.
15037 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15039 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15040 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15041 * registry.c (registry_alloc_data): Likewise.
15042 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15043 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15044 * serial.c (serial_fdopen_ops): Likewise.
15045 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15047 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15048 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15051 2014-01-13 Tom Tromey <tromey@redhat.com>
15053 * defs.h (XMALLOC): Remove.
15054 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15055 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15056 * cli-out.c (struct ui_out *): Likewise.
15057 * cli/cli-dump.c (add_dump_command): Likewise.
15058 (add_dump_command): Likewise.
15059 * complaints.c (get_complaints): Likewise.
15060 (find_complaint): Likewise.
15061 * dwarf2-frame.c (execute_cfa_program): Likewise.
15062 * dwarf2read.c (abbrev_table_read_table): Likewise.
15063 * gdbarch.sh: Likewise.
15064 * gdbarch.c: Rebuild.
15065 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15066 * interps.c (interp_new): Likewise.
15067 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15068 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15069 * mi/mi-console.c (mi_console_file_new): Likewise.
15070 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15071 * mi/mi-out.c (mi_out_new): Likewise.
15072 * mi/mi-parse.c (mi_parse): Likewise.
15073 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15074 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15075 * observer.c (xalloc_observer_list_node): Likewise.
15076 * regcache.c (regcache_xmalloc_1): Likewise.
15077 * reggroups.c (reggroup_new): Likewise.
15078 (_initialize_reggroup): Likewise.
15079 * registry.c (register_data_with_cleanup): Likewise.
15080 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15081 * ser-base.c (serial_ttystate): Likewise.
15082 * ser-mingw.c (make_pipe_state): Likewise.
15083 * ser-pipe.c (pipe_open): Likewise.
15084 * serial.c (serial_open): Likewise.
15085 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15086 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15087 (tui_alloc_win_info): Likewise.
15088 (tui_add_content_elements): Likewise.
15089 * tui/tui-file.c (tui_file_new): Likewise.
15090 * tui/tui-out.c (tui_out_new): Likewise.
15091 * ui-file.c (mem_file_new): Likewise.
15092 * ui-out.c (push_level): Likewise.
15093 (make_cleanup_ui_out_end): Likewise.
15094 (append_header_to_list): Likewise.
15095 (ui_out_new): Likewise.
15096 * user-regs.c (user_reg_add_builtin): Likewise.
15098 2014-01-13 Tom Tromey <tromey@redhat.com>
15100 * defs.h (XZALLOC): Remove.
15101 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15102 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15103 (get_ada_tasks_inferior_data): Likewise.
15104 * auto-load.c (get_auto_load_pspace_data): Likewise.
15105 * auxv.c (get_auxv_inferior_data): Likewise.
15106 * bfd-target.c (target_bfd_reopen): Likewise.
15107 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15108 (deprecated_insert_raw_breakpoint): Likewise.
15109 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15110 * corelow.c (core_open): Likewise.
15111 * darwin-nat.c (darwin_check_new_threads): Likewise.
15112 (darwin_attach_pid): Likewise.
15113 * dummy-frame.c (dummy_frame_push): Likewise.
15114 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15115 * dwarf2loc.c (allocate_piece_closure): Likewise.
15116 * elfread.c (elf_symfile_segments): Likewise.
15117 * eval.c (ptrmath_type_p): Likewise.
15118 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15119 * gdbtypes.c (alloc_type_arch): Likewise.
15120 (alloc_type_instance): Likewise.
15121 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15122 * inf-child.c (inf_child_can_use_agent): Likewise.
15123 * inflow.c (get_inflow_inferior_data): Likewise.
15124 * infrun.c (save_infcall_suspend_state): Likewise.
15125 * jit.c (jit_reader_load): Likewise.
15126 (get_jit_objfile_data): Likewise.
15127 (get_jit_program_space_data): Likewise.
15128 (jit_object_open_impl): Likewise.
15129 (jit_symtab_open_impl): Likewise.
15130 (jit_block_open_impl): Likewise.
15131 (jit_frame_sniffer): Likewise.
15132 * linux-fork.c (add_fork): Likewise.
15133 * maint.c (make_command_stats_cleanup): Likewise.
15134 * objfiles.c (get_objfile_pspace_data): Likewise.
15135 * opencl-lang.c (struct lval_closure): Likewise.
15136 * osdata.c (osdata_start_osdata): Likewise.
15137 * progspace.c (new_address_space): Likewise.
15138 (add_program_space): Likewise.
15139 * remote-sim.c (get_sim_inferior_data): Likewise.
15140 * sh-tdep.c (sh_gdbarch_init): Likewise.
15141 * skip.c (Ignore): Likewise.
15142 (skip_delete_command): Likewise.
15143 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15144 (library_list_start_library): Likewise.
15145 (solib_aix_current_sos): Likewise.
15146 * solib-darwin.c (get_darwin_info): Likewise.
15147 (darwin_current_sos): Likewise.
15148 * solib-dsbt.c (get_dsbt_info): Likewise.
15149 * solib-ia64-hpux.c (new_so_list): Likewise.
15150 (ia64_hpux_get_solib_linkage_addr): Likewise.
15151 * solib-spu.c (append_ocl_sos): Likewise.
15152 (spu_current_sos): Likewise.
15153 * solib-svr4.c (get_svr4_info): Likewise.
15154 (svr4_keep_data_in_core): Likewise.
15155 (library_list_start_library): Likewise.
15156 (svr4_default_sos): Likewise.
15157 (svr4_read_so_list): Likewise.
15158 * solib-target.c (library_list_start_library): Likewise.
15159 (solib_target_current_sos): Likewise.
15160 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15161 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15162 * symfile.c (default_symfile_segments): Likewise.
15163 * target-descriptions.c (tdesc_data_init): Likewise.
15164 (tdesc_create_reg): Likewise.
15165 (struct tdesc_type *): Likewise.
15166 (tdesc_create_vector): Likewise.
15167 (tdesc_set_struct_size): Likewise.
15168 (struct tdesc_type *): Likewise.
15169 (tdesc_free_feature): Likewise.
15170 (tdesc_create_feature): Likewise.
15171 * windows-nat.c (windows_add_thread): Likewise.
15172 (windows_make_so): Likewise.
15173 * xml-support.c (gdb_xml_body_text): Likewise.
15174 (gdb_xml_create_parser_and_cleanup): Likewise.
15175 (xml_process_xincludes): Likewise.
15176 * xml-syscall.c (allocate_syscalls_info): Likewise.
15177 (syscall_create_syscall_desc): Likewise.
15179 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15181 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15182 function, with code from i386_stap_parse_special_token.
15183 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15184 (i386_stap_parse_special_token): Move code to the two functions
15185 above; simplify it.
15187 2014-01-09 Pedro Alves <palves@redhat.com>
15188 Hui Zhu <hui@codesourcery.com>
15191 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15192 bp_err_string. Don't mark the location shlib_disabled if the
15193 error thrown wasn't a generic or memory error. Catch errors
15194 thrown while inserting breakpoints in overlayed code. Output
15195 error message of software breakpoints.
15196 * remote.c (remote_insert_breakpoint): If this breakpoint has
15197 target-side commands but this stub doesn't support Z0 packets,
15198 throw NOT_SUPPORTED_ERROR error.
15199 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15200 * target.h (target_insert_breakpoint): Extend comment.
15201 (target_insert_hw_breakpoint): Add comment.
15203 2014-01-08 Pedro Alves <palves@redhat.com>
15205 * remote.c (remote_add_thread): Add threads silently if starting
15207 (remote_notice_new_inferior): If in all-stop, and starting up,
15208 don't call notice_new_inferior.
15209 (get_current_thread): New function, factored out from ...
15210 (add_current_inferior_and_thread): ... this. Adjust.
15211 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15212 found any thread, then select the remote's current thread as GDB's
15213 current thread too.
15215 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15217 * NEWS: Create a new section for the next release branch.
15218 Rename the section of the current branch, now that it has
15221 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15223 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15224 * version.in: Bump version to 7.7.50.DATE-cvs.
15226 2014-01-08 Yao Qi <yao@codesourcery.com>
15228 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15229 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15230 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15232 2014-01-08 Yao Qi <yao@codesourcery.com>
15234 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15235 return value of bfd_get_filename to symbol_file_add_from_bfd.
15237 2014-01-08 Pierre Muller <muller@sourceware.org>
15240 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15241 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15242 to prim_record_mininal_symbol_and_info.
15243 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15244 in call to prim_record_minimal_symbol_and_info.
15245 (read_pe_exported_syms): Set index field of section_data.
15247 2014-01-07 Andrew Pinski <apinski@cavium.com>
15249 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15250 * features/aarch64.c: Regenerate.
15252 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15254 * target.c (return_null): Define.
15255 (update_current_target): Use it instead of return_zero for
15256 functions that return a pointer.
15258 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15260 * source.c (add_path): Fix check for duplicated paths in the previously
15263 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15265 * ada-lang.c: Remove duplicated include statements.
15266 * alphabsd-nat.c: Ditto.
15267 * amd64-darwin-tdep.c: Ditto.
15268 * amd64fbsd-nat.c: Ditto.
15269 * auto-load.c: Ditto.
15271 * breakpoint.c: Ditto.
15272 * dbxread.c: Ditto.
15273 * fork-child.c: Ditto.
15274 * gdb_usleep.c: Ditto.
15275 * i386-darwin-tdep.c: Ditto.
15276 * i386fbsd-nat.c: Ditto.
15278 * inferior.c: Ditto.
15279 * jv-lang.c: Ditto.
15280 * linux-nat.c: Ditto.
15281 * linux-tdep.c: Ditto.
15282 * m68kbsd-nat.c: Ditto.
15283 * m68klinux-nat.c: Ditto.
15284 * microblaze-tdep.c: Ditto.
15285 * mips-linux-tdep.c: Ditto.
15286 * mn10300-tdep.c: Ditto.
15287 * nto-tdep.c: Ditto.
15288 * opencl-lang.c: Ditto.
15290 * printcmd.c: Ditto.
15291 * regcache.c: Ditto.
15292 * remote-m32r-sdi.c: Ditto.
15294 * symfile.c: Ditto.
15296 * tilegx-linux-nat.c: Ditto.
15297 * tilegx-tdep.c: Ditto.
15298 * tracepoint.c: Ditto.
15300 * vaxbsd-nat.c: Ditto.
15301 * windows-nat.c: Ditto.
15302 * xtensa-tdep.c: Ditto.
15304 2014-01-07 Yao Qi <yao@codesourcery.com>
15306 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15308 2014-01-07 Yao Qi <yao@codesourcery.com>
15309 Joel Brobecker <brobecker@adacore.com>
15311 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15312 (pdc_write_regs): Likewise.
15313 (fetch_regs_kernel_thread): Likewise.
15314 (store_regs_kernel_thread): Likewise.
15316 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15318 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15319 tagged type objects to their actual type.
15321 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15323 * ada-valprint.c (print_field_values): Add "language" parameter.
15324 Update calls to print_field_values and print_variant_part.
15325 Pass new parameter "language" in call to val_print instead
15326 of "current_language". Replace call to ada_val_print by call
15328 (print_variant_part): Add "language" parameter.
15329 (ada_val_print_struct_union): Update call to print_field_values.
15331 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15333 * ada-valprint.c (ui_memcpy): Delete.
15334 (ada_print_floating): Update documentation. Add empty line
15335 between between function documentation and implementation.
15336 Delete variable "buffer". Use ui_file_xstrdup in place of
15337 ui_file_put. Minor adjustments following this change.
15339 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15341 * ada-valprint.c (ada_val_print_string): New function,
15342 extracted from ada_val_print_array.
15343 (ada_val_print_array): Replace extracted code by call
15344 to ada_val_print_string followed by a return. Move
15345 "else" branch to the function's top block.
15347 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15349 * ada-valprint.c (ada_val_print_array): Move implementation
15350 down. Rename parameter "offset" and "val" into "offset_aligned"
15351 and "original_value" respectively. Add parameter "offset".
15353 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15355 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15356 re-organizing the code. Change the "???" message printed
15357 when target type is a TYPE_CODE_UNDEF into
15358 "<ref to undefined type>".
15360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15362 * ada-valprint.c (print_record): Delete, implementation inlined...
15363 (ada_val_print_struct_union): ... here. Remove call to
15364 ada_check_typedef in inlined implementation.
15366 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15368 * ada-valprint.c (ada_val_print_gnat_array): New function,
15369 extracted from ada_val_print_1;
15370 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15371 (ada_val_print_flt, ada_val_print_struct_union)
15372 (ada_val_print_ref): Likewise.
15373 (ada_val_print_1): Delete variables i and elttype.
15374 Replace extracted-out code by call to corresponding
15377 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15379 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15383 * ada-valprint.c (ada_val_print_1): Replace calls to
15384 ada_val_print_1 by calls to val_print.
15386 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15388 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15389 Update calls to self accordingly. Replace calls to c_val_print
15390 by calls to val_print.
15392 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15394 * ada-valprint.c (print_record): Delete declaration.
15395 (adjust_type_signedness, ada_val_print_1): Likewise.
15396 (ada_val_print): Move function implementation down.
15397 (print_variant_part, print_field_values, print_record):
15398 Move function implementation up.
15400 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15402 * python/py-type.c (typy_get_name): New function.
15403 (type_object_getset): Add entry for attribute "name".
15404 * NEWS: Add entry mentioning this new attribute.
15406 2014-01-07 Yao Qi <yao@codesourcery.com>
15408 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15411 2014-01-07 Yao Qi <yao@codesourcery.com>
15413 * gnu-nat.c (info_port_rights): Add qualifier const to
15416 2014-01-07 Yao Qi <yao@codesourcery.com>
15418 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15420 2014-01-07 Yao Qi <yao@codesourcery.com>
15422 * gnu-nat.c (make_inf) Update declaration.
15423 (make_inf): Make it static.
15424 (inf_set_traced): Likewise.
15425 (inf_port_to_thread, inf_task_died_status): Likewise.
15427 2014-01-07 Yao Qi <yao@codesourcery.com>
15429 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15431 2014-01-07 Yao Qi <yao@codesourcery.com>
15433 * gnu-nat.c (_initialize_gnu_nat): Declare.
15435 2014-01-07 Yao Qi <yao@codesourcery.com>
15437 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15439 (struct gdbarch_info) <byte_order>: Change type to
15441 <byte_order_for_code>: Likewise.
15442 * gdbarch.c, gdbarch.h: Regenerated.
15444 2014-01-06 Sasha Smundak <asmundak@google.com>
15446 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15448 2014-01-06 Tom Tromey <tromey@redhat.com>
15450 * doublest.c (convert_doublest_to_floatformat): Use const, not
15452 * somread.c (som_symtab_read): Likewise.
15454 2014-01-07 Hui Zhu <hui@codesourcery.com>
15456 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15457 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15458 (gdb_bfd_fopen): Ditto.
15459 (gdb_bfd_openr): Ditto.
15460 (gdb_bfd_openw): Ditto.
15461 (gdb_bfd_openr_iovec): Ditto.
15462 (gdb_bfd_fdopenr): Ditto.
15463 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15464 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15466 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15468 * symfile-mem.c (symbol_file_add_from_memory): Removed
15469 gdb_bfd_stash_filename.
15471 2014-01-03 Doug Evans <dje@google.com>
15473 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15476 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15478 Update year range in copyright notice of all files.
15480 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15482 * top.c (print_gdb_version): Set copyright year to 2014.
15484 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15486 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15488 For older changes see ChangeLog-2013.
15494 version-control: never