1 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
3 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
6 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
8 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
9 the instruction as well as reading it from memory.
10 (nios2_match_add): New.
11 (nios2_match_sub): New.
12 (nios2_match_addi): New.
13 (nios2_match_orhi): New.
14 (nios2_match_stw): New.
15 (nios2_match_ldw): New.
16 (nios2_match_rdctl): New.
17 (enum branch_condition): New.
18 (nios2_match_branch): New.
19 (nios2_match_jmpi): New.
20 (nios2_match_calli): New.
21 (nios2_match_jmpr): New.
22 (nios2_match_callr): New.
23 (nios2_match_break): New.
24 (nios2_match_trap): New.
25 (nios2_in_epilogue_p): Rewrite to use new functions.
26 (nios2_analyze_prologue): Likewise.
27 (nios2_skip_prologue): Delete unused local limit_pc.
28 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
29 (nios2_get_next_pc): Rewrite to use new functions.
31 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
33 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
35 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
37 Pushed by Joel Brobecker <brobecker@adacore.com>
38 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
39 elements pi_len by the size of the elements before calling
41 (inf_validate_task_sc): Likewise, and properly deallocate the
44 2014-11-23 Doug Evans <xdje42@gmail.com>
46 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
47 number and name if present. All callers updated.
48 (dump_fn_fieldlists): Fix indentation of args.
50 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
52 * MAINTAINERS (Write After Approval): Add myself.
54 2014-11-23 Joel Brobecker <brobecker@adacore.com>
56 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
57 to a bp_call_dummy breakpoint type.
59 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
61 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
62 registering the signal handler.
64 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
66 * event-top.h (call_stdin_event_handler_again_p): Declare.
67 * event-top.c (call_stdin_event_handler_again_p): Define.
68 (stdin_event_handler): Use it.
69 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
70 handler again if there is pending input following a
73 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
75 Pushed by Joel Brobecker <brobecker@adacore.com>
76 * linux-fork.c (checkpoint_command): Print index of new
77 checkpoint in response message.
79 2014-11-23 Yao Qi <yao@codesourcery.com>
81 * valprint.c (read_string): Move local variables 'found_nul',
82 'chunksize' and 'limit' to inner scope. Update comments.
84 2014-11-22 Doug Evans <xdje42@gmail.com>
86 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
88 (search_symbols): Fix comments and whitespace.
90 2014-11-22 Doug Evans <xdje42@gmail.com>
92 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
94 2014-11-21 Doug Evans <dje@google.com>
96 * psymtab.c (psymtab_search_name): Fix whitespace.
98 2014-11-21 Yao Qi <yao@codesourcery.com>
100 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
102 * gnulib/import/Makefile.am: Re-generated.
103 * gnulib/import/Makefile.in: Likewise.
104 * gnulib/import/m4/gnulib-cache.m4: Likewise.
106 2014-11-21 Yao Qi <yao@codesourcery.com>
108 * gdb_wchar.h: Include wchar.h and wctype.h.
109 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
110 include wchar.h and wctype.h.
111 Don't check HAVE_WCHAR_H.
113 2014-11-21 Yao Qi <yao@codesourcery.com>
115 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
117 * gnulib/import/Makefile.am: Re-generated.
118 * gnulib/import/Makefile.in: Likewise.
119 * gnulib/import/m4/gnulib-cache.m4: Likewise.
121 2014-11-21 Yao Qi <yao@codesourcery.com>
123 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
125 * gnulib/import/Makefile.am: Re-generated.
126 * gnulib/import/Makefile.in: Likewise.
127 * gnulib/import/m4/gnulib-cache.m4: Likewise.
129 2014-11-21 Yao Qi <yao@codesourcery.com>
131 * common/common-defs.h: Include alloca.h
132 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
133 * configure: Re-generated.
134 * defs.h: Remove code handling alloca.
135 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
138 2014-11-21 Yao Qi <yao@codesourcery.com>
140 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
142 * gnulib/import/Makefile.am: Re-generated.
143 * gnulib/import/Makefile.in: Likewise..
144 * gnulib/import/m4/gnulib-cache.m4: Likewise.
146 2014-11-21 Yao Qi <yao@codesourcery.com>
148 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
151 2014-11-21 Joel Brobecker <brobecker@adacore.com>
153 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
154 flag_unsigned if HIGH_BOUND is constant and negative.
156 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
159 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
160 modifier from "struct gdbarch" when compiling without Expat (XML)
162 (get_syscall_by_number): Likewise.
163 (get_syscall_by_name): Likewise.
164 (get_syscall_names): Likewise.
166 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
169 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
170 set_xml_syscall_file_name to provide gdbarch.
171 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
172 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
173 * breakpoint.c (print_it_catch_syscall): Adjust call to
174 get_syscall_by_number to provide gdbarch.
175 (print_one_catch_syscall): Likewise.
176 (print_mention_catch_syscall): Likewise.
177 (print_recreate_catch_syscall): Likewise.
178 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
179 and get_syscall_by_name to provide gdbarch.
180 (catch_syscall_completer): Adjust call to get_syscall_names to
182 * gdbarch.c: Regenerate.
183 * gdbarch.h: Likewise.
184 * gdbarch.sh: Forward declare "struct syscalls_info".
185 (xml_syscall_file): New variable.
186 (syscalls_info): Likewise.
187 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
188 set_xml_syscall_file_name to provide gdbarch.
189 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
190 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
191 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
192 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
193 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
194 * xml-syscall.c: Include gdbarch.h.
195 (set_xml_syscall_file_name): Accept gdbarch parameter.
196 (get_syscall_by_number): Likewise.
197 (get_syscall_by_name): Likewise.
198 (get_syscall_names): Likewise.
199 (my_gdb_datadir): Delete global variable.
200 (struct syscalls_info) <my_gdb_datadir>: New variable.
201 (struct syscalls_info) <sysinfo>: Rename variable to
203 (sysinfo): Delete global variable.
204 (have_initialized_sysinfo): Likewise.
205 (xml_syscall_file): Likewise.
206 (sysinfo_free_syscalls_desc): Rename to...
207 (syscalls_info_free_syscalls_desc): ... this.
208 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
209 code to the new layout of "struct syscalls_info".
210 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
212 (syscall_create_syscall_desc): Likewise.
213 (syscall_start_syscall): Likewise.
214 (syscall_parse_xml): Likewise.
215 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
216 (init_sysinfo): Rename to...
217 (init_syscalls_info): ...this. Add gdbarch as a parameter.
218 Adjust function to deal with gdbarch.
219 (xml_get_syscall_number): Delete parameter sysinfo. Accept
220 gdbarch as a parameter. Adjust code.
221 (xml_get_syscall_name): Likewise.
222 (xml_list_of_syscalls): Likewise.
223 (set_xml_syscall_file_name): Accept gdbarch as parameter.
224 (get_syscall_by_number): Likewise.
225 (get_syscall_by_name): Likewise.
226 (get_syscall_names): Likewise.
227 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
228 (get_syscall_by_number): Likewise.
229 (get_syscall_by_name): Likewise.
230 (get_syscall_names): Likewise.
232 2014-11-20 Doug Evans <xdje42@gmail.com>
234 Split struct symtab into two: struct symtab and compunit_symtab.
235 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
236 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
237 to "struct compunit_symtab *". All callers updated.
238 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
239 "struct symtab *" argument to "struct compunit_symtab *".
241 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
242 result to "struct compunit_symtab *". All callers updated.
243 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
244 Change result to "struct compunit_symtab *". All callers updated.
245 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
246 hange type to "struct compunit_symtab *". All uses updated.
247 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
248 Change type to "struct compunit_symtab *". All uses updated.
249 * buildsym.c (struct buildsym_compunit): New struct.
250 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
251 (buildsym_compunit): New static global.
252 (finish_block_internal): Update to fetch objfile from
254 (make_blockvector): Delete objfile argument.
255 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
256 debugformat, producer.
257 (start_buildsym_compunit): New function.
258 (free_buildsym_compunit): Renamed from free_subfiles_list.
260 (patch_subfile_names): Rewrite to use buildsym_compunit.
261 (get_compunit_symtab): New function.
262 (get_macro_table): Delete argument comp_dir. All callers updated.
263 (start_symtab): Change result to "struct compunit_symtab *".
264 All callers updated. Create the subfile of the main source file.
265 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
266 (reset_symtab_globals): Update.
267 (end_symtab_get_static_block): Update to use buildsym_compunit.
268 (end_symtab_without_blockvector): Rewrite.
269 (end_symtab_with_blockvector): Change result to
270 "struct compunit_symtab *". All callers updated.
271 Update to use buildsym_compunit. Don't set symtab->dirname,
272 instead set it in the compunit.
273 Explicitly make sure main symtab is first in its list.
274 Set debugformat, producer, blockvector, block_line_section, and
275 macrotable in the compunit.
276 (end_symtab_from_static_block): Change result to
277 "struct compunit_symtab *". All callers updated.
278 (end_symtab, end_expandable_symtab): Ditto.
279 (set_missing_symtab): Change symtab argument to
280 "struct compunit_symtab *". All callers updated.
281 (augment_type_symtab): Ditto.
282 (record_debugformat): Update to use buildsym_compunit.
283 (record_producer): Update to use buildsym_compunit.
284 * buildsym.h (struct subfile) <dirname>: Delete.
285 <producer, debugformat>: Delete.
286 <buildsym_compunit>: New member.
287 (get_compunit_symtab): Declare.
288 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
289 from primary_symtab. Change type to "struct compunit_symtab *".
291 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
293 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
294 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
295 symtab. Change type to "struct compunit_symtab *". All uses updated.
296 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
298 (dw2_find_last_source_symtab): Ditto.
299 (dw2_lookup_symbol): Ditto.
300 (recursively_find_pc_sect_compunit_symtab): Renamed from
301 recursively_find_pc_sect_symtab. Change result to
302 "struct compunit_symtab *". All callers updated.
303 (dw2_find_pc_sect_compunit_symtab): Renamed from
304 dw2_find_pc_sect_symtab. Change result to
305 "struct compunit_symtab *". All callers updated.
306 (get_compunit_symtab): Renamed from get_symtab. Change result to
307 "struct compunit_symtab *". All callers updated.
308 (recursively_compute_inclusions): Change type of immediate_parent
309 argument to "struct compunit_symtab *". All callers updated.
310 (compute_compunit_symtab_includes): Renamed from
311 compute_symtab_includes. All callers updated. Rewrite to compute
312 includes of compunit_symtabs and not symtabs.
313 (process_full_comp_unit): Update to work with struct compunit_symtab.
314 (process_full_type_unit): Ditto.
315 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
316 (dwarf_decode_lines): Remove special case handling of main subfile.
317 (macro_start_file): Delete argument comp_dir. All callers updated.
318 (dwarf_decode_macro_bytes): Ditto.
319 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
320 use struct compunit_symtab.
321 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
322 * jit.c (finalize_symtab): Build compunit_symtab.
323 * jv-lang.c (get_java_class_symtab): Change result to
324 "struct compunit_symtab *". All callers updated.
325 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
326 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
327 comp_dir. Change type to "struct compunit_symtab *".
329 (new_macro_table): Change comp_dir argument to cust,
330 "struct compunit_symtab *". All callers updated.
331 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
332 nr_primary_symtabs. All uses updated.
333 (count_symtabs_and_blocks): Update to handle compunits.
334 (report_command_stats): Update output, "primary symtabs" renamed to
336 * mdebugread.c (new_symtab): Change result to
337 "struct compunit_symtab *". All callers updated.
338 (parse_procedure): Change type of search_symtab argument to
339 "struct compunit_symtab *". All callers updated.
340 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
342 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
343 symtabs. Change type to "struct compunit_symtab *". All uses updated.
344 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
346 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
348 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
349 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
350 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
351 symtab. Change type to "struct compunit_symtab *". All uses updated.
352 * psymtab.c (psymtab_to_symtab): Change result type to
353 "struct compunit_symtab *". All callers updated.
354 (find_pc_sect_compunit_symtab_from_partial): Renamed from
355 find_pc_sect_symtab_from_partial. Change result type to
356 "struct compunit_symtab *". All callers updated.
357 (lookup_symbol_aux_psymtabs): Change result type to
358 "struct compunit_symtab *". All callers updated.
359 (find_last_source_symtab_from_partial): Ditto.
360 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
361 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
362 and macro_table from compunit.
363 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
364 type to "struct compunit_symtab *". All callers updated.
365 (debug_qf_lookup_symbol): Ditto.
366 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
367 debug_qf_find_pc_sect_symtab, change result type to
368 "struct compunit_symtab *". All callers updated.
369 * symfile.c (allocate_symtab): Delete objfile argument.
371 (allocate_compunit_symtab): New function.
372 (add_compunit_symtab_to_objfile): New function.
373 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
374 Change result type to "struct compunit_symtab *". All uses updated.
375 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
376 Change result type to "struct compunit_symtab *". All uses updated.
377 * symmisc.c (print_objfile_statistics): Compute blockvector count in
379 (dump_symtab_1): Update test for primary source symtab.
380 (maintenance_info_symtabs): Update to handle compunit symtabs.
381 (maintenance_check_symtabs): Ditto.
382 * symtab.c (set_primary_symtab): Delete.
383 (compunit_primary_filetab): New function.
384 (compunit_language): New function.
385 (iterate_over_some_symtabs): Change type of arguments "first",
386 "after_last" to "struct compunit_symtab *". All callers updated.
387 Update to loop over symtabs in each compunit.
388 (error_in_psymtab_expansion): Rename symtab argument to cust,
389 and change type to "struct compunit_symtab *". All callers updated.
390 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
391 Change result type to "struct compunit_symtab *". All callers updated.
392 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
393 Change result type to "struct compunit_symtab *". All callers updated.
394 (find_pc_sect_line): Only loop over symtabs within selected compunit
395 instead of all symtabs in the objfile.
396 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
397 <compunit_symtab> New member.
398 <block_line_section>: Moved to compunit_symtab.
399 <locations_valid>: Ditto.
400 <epilogue_unwind_valid>: Ditto.
401 <macro_table>: Ditto.
403 <debugformat>: Ditto.
406 <call_site_htab>: Ditto.
410 (SYMTAB_COMPUNIT): New macro.
411 (SYMTAB_BLOCKVECTOR): Update definition.
412 (SYMTAB_OBJFILE): Update definition.
413 (SYMTAB_DIRNAME): Update definition.
414 (struct compunit_symtab): New type. Common members among all source
415 symtabs within a compilation unit moved here. All uses updated.
416 (COMPUNIT_OBJFILE): New macro.
417 (COMPUNIT_FILETABS): New macro.
418 (COMPUNIT_DEBUGFORMAT): New macro.
419 (COMPUNIT_PRODUCER): New macro.
420 (COMPUNIT_DIRNAME): New macro.
421 (COMPUNIT_BLOCKVECTOR): New macro.
422 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
423 (COMPUNIT_LOCATIONS_VALID): New macro.
424 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
425 (COMPUNIT_CALL_SITE_HTAB): New macro.
426 (COMPUNIT_MACRO_TABLE): New macro.
427 (ALL_COMPUNIT_FILETABS): New macro.
428 (compunit_symtab_ptr): New typedef.
429 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
431 2014-11-20 Joel Brobecker <brobecker@adacore.com>
433 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
434 if the TYPE_CODE of range_type's base type does not match
435 the TYPE_CODE of encoding_type's base type.
437 2014-11-19 Joel Brobecker <brobecker@adacore.com>
439 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
442 2014-11-19 Joel Brobecker <brobecker@adacore.com>
444 * ada-lang.c (ada_is_redundant_range_encoding): New function.
445 (ada_is_redundant_index_type_desc): New function.
446 (to_fixed_array_type): Ignore parallel XA type if redundant.
448 2014-11-19 Joel Brobecker <brobecker@adacore.com>
450 * ada-lang.c (constrained_packed_array_type): Set the length
451 of the return array as if both bounds where zero if that
452 returned array's index type is dynamic.
454 2014-11-19 Yao Qi <yao@codesourcery.com>
456 * config/i386/go32.mh (CC): Remove.
458 2014-11-18 Doug Evans <xdje42@gmail.com>
460 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
463 2014-11-18 Doug Evans <xdje42@gmail.com>
465 * buildsym.c (buildsym_objfile): New static global.
466 (buildsym_comp_dir): New static global.
467 (finish_block_internal): Delete arg objfile. All callers updated.
468 (finish_block): Delete arg objfile. All callers updated.
469 (start_subfile): Delete arg dirname. All callers updated.
470 (patch_subfile_names): Update buildsym_comp_dir.
471 (get_macro_table): Delete arg objfile. All callers updated.
472 (start_symtab): New arg objfile. All callers updated.
473 Rename arg dirname to comp_dir.
474 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
475 (end_symtab_get_static_block): Delete arg objfile. All callers
477 (end_symtab_without_blockvector): Ditto.
478 (end_symtab_with_blockvector): Ditto.
479 (end_symtab_from_static_block): Ditto.
481 (end_expandable_symtab): Ditto.
482 (augment_type_symtab): Ditto.
483 * coffread.c (coff_start_symtab): New arg objfile. All callers
486 2014-11-18 Doug Evans <xdje42@gmail.com>
488 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
491 2014-11-18 Doug Evans <xdje42@gmail.com>
493 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
494 symtab.dirname updated to use it.
496 2014-11-18 Doug Evans <xdje42@gmail.com>
498 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
499 symtab.objfile updated to use it.
501 2014-11-18 Doug Evans <xdje42@gmail.com>
503 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
505 2014-11-18 Doug Evans <xdje42@gmail.com>
507 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
509 * findvar.c (default_read_var_value): Ditto.
510 * jv-lang.c (add_class_symtab_symbol): Ditto.
511 * parse.c (operator_check_standard): Ditto.
512 * printcmd.c (address_info): Ditto.
513 * symtab.c (fixup_symbol_section): Ditto.
514 (skip_prologue_sal): Ditto.
515 * tracepoint.c (scope_info): Ditto.
516 * valops.c (find_function_in_inferior): Ditto.
517 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
518 * python/py-symbol.c (set_symbol): Ditto.
520 2014-11-18 Doug Evans <xdje42@gmail.com>
522 * buildsym.c (main_subfile): New static global.
523 (free_subfiles_list): New function.
524 (start_symtab): Set main_subfile.
525 (restart_symtab): Replace init of subfiles, current_subfile with
526 call to free_subfiles_list.
527 (watch_main_source_file_lossage): Use main_subfile.
528 (reset_symtab_globals): Replace init of current_subfile with call
529 to free_subfiles_list.
530 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
531 functions, split out from ...
532 (end_symtab_from_static_block): ... here. Rewrite to call them.
534 2014-11-18 Doug Evans <xdje42@gmail.com>
536 The result of symtab expansion is always a primary symtab.
537 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
538 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
539 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
540 (psymtab_to_symtab): Add comment and assert.
541 (map_matching_symbols_psymtab): Remove unnecessary test for
544 2014-11-15 Doug Evans <xdje42@gmail.com>
547 * symtab.c (find_pc_line_symtab): New function.
548 * symtab.h (find_pc_line_symtab): Declare.
549 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
551 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
552 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
553 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
554 * tui/tui-win.c (make_visible_with_new_height): Ditto.
555 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
556 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
558 2014-11-15 Doug Evans <xdje42@gmail.com>
560 * symtab.c (expand_symtab_containing_pc): Renamed from
561 find_pc_sect_symtab_via_partial. All callers updated.
563 2014-11-15 Yao Qi <yao@codesourcery.com>
565 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
567 2014-11-14 Joel Brobecker <brobecker@adacore.com>
569 * common/common-defs.h: Move <stdarg.h> #include ahead of
572 2014-11-14 Pedro Alves <palves@redhat.com>
574 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
575 [!PHONY_ICONV] (gdb_iconv): New function.
576 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
578 2014-11-13 Doug Evans <dje@google.com>
581 * dwarf2read.c (find_slot_in_mapped_hash): Handle
582 "(anonymous namespace)".
584 2014-11-13 Doug Evans <dje@google.com>
586 * dwarf2read.c (update_enumeration_type_from_children): Avoid
589 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
591 * NEWS (maint set target-async): Fix typo.
593 2014-11-12 Pedro Alves <palves@redhat.com>
595 * infrun.c (enum infwait_states, infwait_state): Delete.
597 2014-11-12 Pedro Alves <palves@redhat.com>
599 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
600 Rewrite stepping over a permanent breakpoint.
601 (thread_still_needs_step_over, proceed): Don't set
602 stepping_over_breakpoint for permanent breakpoints.
603 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
604 single-step breakpoints out of the target on hardware step
606 (process_event_stop_test): If stepping a permanent breakpoint
607 doesn't hit the step-resume breakpoint, delete the step-resume
609 (switch_back_to_stepped_thread): Also check if the stepped thread
610 has advanced already on hardware step targets.
611 (currently_stepping): Return true if the thread stepped a
614 2014-11-12 Pedro Alves <palves@redhat.com>
616 Mark locations as permanent, not the whole breakpoint.
617 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
618 (mark_breakpoints_out): Don't mark permanent breakpoints as
620 (breakpoint_init_inferior): Use mark_breakpoints_out.
621 (breakpoint_here_p): Adjust.
622 (bpstat_stop_status, describe_other_breakpoints): Remove handling
623 of permanent breakpoints.
624 (make_breakpoint_permanent): Mark each location as permanent,
625 instead of marking the breakpoint.
626 (add_location_to_breakpoint): If the location is permanent, mark
627 it as such, and as inserted.
628 (init_breakpoint_sal): Don't make the breakpoint permanent here.
629 (bp_location_compare, update_global_location_list): Adjust.
630 (update_breakpoint_locations): Don't make the breakpoint permanent
632 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
634 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
635 (struct bp_location) <permanent>: New field.
636 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
637 reference to bp_permanent.
639 2014-11-12 Pedro Alves <palves@redhat.com>
641 * arch-utils.c (default_skip_permanent_breakpoint): New function.
642 * arch-utils.h (default_skip_permanent_breakpoint): New
644 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
645 Install default_skip_permanent_breakpoint as default method.
646 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
647 (i386_gdbarch_init): Don't install it.
648 * infrun.c (resume): Assume there's always a
649 gdbarch_skip_permanent_breakpoint implementation.
650 * gdbarch.h, gdbarch.c: Regenerate.
652 2014-11-11 Daniel Colascione <dancol@dancol.org>
654 Warn about cross-PID-namespace debugging.
655 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
656 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
657 * linux-thread-db.c (check_pid_namespace_match): New function.
658 (thread_db_inferior_created): Call it.
660 2014-11-10 Doug Evans <xdje42@gmail.com>
662 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
663 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
665 2014-11-10 Doug Evans <xdje42@gmail.com>
667 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
669 2014-11-10 Doug Evans <xdje42@gmail.com>
672 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
673 (lookup_static_symbol): Move definition to new location and rewrite.
674 (lookup_symbol_in_objfile): New function.
675 (lookup_symbol_global_iterator_cb): Call it.
677 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
679 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
681 2014-11-07 Pedro Alves <palves@redhat.com>
683 * infrun.c (process_event_stop_test) <subroutine check>: Don't
684 check if we did a "nexti" inside a prologue.
685 * symtab.c (in_prologue): Delete function.
686 * symtab.h (in_prologue): Delete declaration.
688 2014-11-06 Doug Evans <xdje42@gmail.com>
690 * symtab.h (lookup_global_symbol): Improve function comment.
692 2014-11-06 Doug Evans <xdje42@gmail.com>
694 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
696 * symtab.h (lookup_global_symbol): Update decl.
697 (lookup_static_symbol): Move decl to better location.
699 2014-11-06 Doug Evans <xdje42@gmail.com>
701 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
703 2014-11-06 Doug Evans <xdje42@gmail.com>
705 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
707 (lookup_symbol_in_all_objfiles): Renamed from
708 lookup_symbol_aux_symtabs. All callers updated.
709 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
711 (lookup_symbol_in_objfile_symtabs): Renamed from
712 lookup_symbol_aux_objfile. All callers updated.
714 2014-11-06 Doug Evans <xdje42@gmail.com>
716 * symtab.c (lookup_symbol_in_block): Renamed from
717 lookup_symbol_aux_block. All callers updated.
719 2014-11-06 Doug Evans <xdje42@gmail.com>
721 * symtab.c (lookup_static_symbol): Renamed from
722 lookup_static_symbol_aux. All callers updated.
723 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
726 2014-11-06 Doug Evans <xdje42@gmail.com>
728 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
729 * block.c (block_lookup_symbol): Use it.
730 * cp-support.c (make_symbol_overload_list_block): Use it.
731 * symtab.c (iterate_over_symbols): Use it.
733 2014-11-06 Doug Evans <xdje42@gmail.com>
735 * symtab.c (lookup_block_symbol): Moved to ...
736 * block.c (block_lookup_symbol): ... here and renamed.
738 * block.h (block_lookup_symbol): Declare.
739 * symtab.h (lookup_block_symbol): Delete.
741 2014-11-06 Doug Evans <xdje42@gmail.com>
743 * ada-lang.c (ada_make_symbol_completion_list): Use
744 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
745 * symtab.c (lookup_objfile_from_block): Ditto.
747 2014-11-06 Doug Evans <xdje42@gmail.com>
749 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
752 2014-11-06 Doug Evans <xdje42@gmail.com>
754 * objfiles.c (get_objfile_arch): Constify.
755 * objfiles.h (get_objfile_arch): Update prototype.
756 * solib.c (solib_global_lookup): Fetch arch from objfile,
759 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
761 * nios2-tdep.c (wild_insn): Delete.
762 (profiler_insn, irqentry_insn): Delete.
763 (nios2_match_sequence): Delete.
764 (nios2_analyze_prologue): Update comments. Remove matching
765 of obsolete profiler_insn and irqentry_insn sequences.
767 2014-11-05 Alan Modra <amodra@gmail.com>
769 * charset.c (convert_between_encodings): Shrink obstack using
771 * minsyms.c (install_minimal_symbols): Likewise.
772 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
773 to char* before doing pointer arithmetic.
775 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
777 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
779 2014-11-04 Pedro Alves <palves@redhat.com>
781 * breakpoint.c (breakpoint_thread_match): Delete function.
782 * breakpoint.h (breakpoint_thread_match): Delete declaration.
784 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
787 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
788 the method args also under EVAL_SKIP when evaluating method
789 calls under EVAL_SKIP.
791 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
793 * dwarf2loc.c (read_pieced_value): Do big endian
794 processing only if gdb_regnum is not -1.
795 (write_pieced_value): Ditto.
797 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
799 * arm-linux-tdep.c (arm_linux_init_abi): Use
800 info.byte_order_for_code to choose endianity of breakpoint
801 instructions snippets.
803 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
805 * arm-tdep.c (extract_arm_insn): Use
806 gdbarch_byte_order_for_code to read arm instruction.
808 2014-11-02 Doug Evans <xdje42@gmail.com>
810 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
812 2014-11-02 Doug Evans <xdje42@gmail.com>
814 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
815 main_subfile before returning.
817 2014-10-31 Doug Evans <xdje42@gmail.com>
819 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
820 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
822 2014-10-31 Doug Evans <xdje42@gmail.com>
824 * valops.c (value_cast_pointers): Fix whitespace.
825 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
828 2014-10-30 Doug Evans <dje@google.com>
830 * NEWS: Mention ability add attributes to gdb.Objfile and
831 gdb.Progspace objects.
832 * python/py-objfile.c (objfile_object): New member dict.
833 (objfpy_dealloc): Py_XDECREF dict.
834 (objfpy_initialize): Initialize dict.
835 (objfile_getset): Add __dict__.
836 (objfile_object_type): Set tp_dictoffset member.
837 * python/py-progspace.c (progspace_object): New member dict.
838 (pspy_dealloc): Py_XDECREF dict.
839 (pspy_initialize): Initialize dict.
840 (pspace_getset): Add __dict__.
841 (pspace_object_type): Set tp_dictoffset member.
843 2014-10-30 Yao Qi <yao@codesourcery.com>
845 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
846 replace '\\' with '\\\\'.
848 2014-10-29 Joel Brobecker <brobecker@adacore.com>
852 2014-10-29 Pedro Alves <palves@redhat.com>
855 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
856 instead of assuming a thread with a stepping range is always
859 2014-10-29 Pedro Alves <palves@redhat.com>
862 * event-top.c (change_line_handler): Call
863 gdb_rl_callback_handler_remove instead of
864 rl_callback_handler_remove.
865 (callback_handler_installed): New global.
866 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
867 (gdb_rl_callback_handler_reinstall): New functions.
868 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
869 gdb_rl_callback_handler_install instead of
870 rl_callback_handler_remove and rl_callback_handler_install.
871 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
872 instead of rl_callback_handler_remove.
873 * event-top.h (gdb_rl_callback_handler_remove)
874 (gdb_rl_callback_handler_install)
875 (gdb_rl_callback_handler_reinstall): New declarations.
876 * infrun.c (reinstall_readline_callback_handler_cleanup): New
878 (fetch_inferior_event): Install it.
879 * top.c (gdb_readline_wrapper_line) Call
880 gdb_rl_callback_handler_remove instead of
881 rl_callback_handler_remove.
882 (gdb_readline_wrapper_cleanup): Don't call
883 rl_callback_handler_install.
885 2014-10-29 Pedro Alves <palves@redhat.com>
887 * event-top.c (command_line_handler): Clear the first byte of
888 linebuffer, when it is first allocated.
890 2014-10-29 Pedro Alves <palves@redhat.com>
892 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
895 2014-10-29 Pedro Alves <palves@redhat.com>
899 * tui/tui-interp.c (tui_is_toplevel): Delete global.
900 (tui_allowed_p): Delete function.
901 * tui/tui.c: Include "interps.h".
902 (tui_enable): Don't use tui_allowed_p. Error out here with
903 detailed error messages if the TUI is the top level interpreter,
904 or if output is not a terminal. Use newterm instead of initscr,
905 and error out if initializing the terminal fails. Also error out if
906 the terminal doesn't support cursor addressing.
907 * tui/tui.h (tui_allowed_p): Delete declaration.
909 2014-10-29 Joel Brobecker <brobecker@adacore.com>
911 * arm-tdep.c (arm_skip_stack_protector): Return early if
912 address loaded by first "ldr" instruction does not have
913 a corresponding minimal symbol. Update comment.
915 2014-10-29 Yao Qi <yao@codesourcery.com>
917 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
918 loaded address correctly of ldr instruction.
920 2014-10-28 Pedro Alves <palves@redhat.com>
923 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
925 * infrun.c (resume) <stepping breakpoint instruction>: Set the
926 thread's stepped_breakpoint field. Skip if reverse debugging.
928 (init_thread_stepping_state, handle_signal_stop): Clear the
929 thread's stepped_breakpoint field.
931 2014-10-27 Pedro Alves <palves@redhat.com>
933 * remote.c (remote_thread_alive): New, factored out from ...
934 (remote_thread_alive): ... this.
935 (remote_update_thread_list): Bail out before deleting threads if
936 the target returned an empty list, and, the current thread has a
939 2014-10-27 Pedro Alves <palves@redhat.com>
941 * infrun.c (handle_signal_stop): Also skip handlers when a random
942 signal arrives while handling a "stepi" or a "nexti". Set the
943 thread's 'step_after_step_resume_breakpoint' flag.
945 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
947 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
948 (arm_record_ld_st_imm_offset): Reimplement to cover all
949 load/store cases for ARM opcode 010.
950 (arm_record_ld_st_multiple): Reimplement to cover all
951 load/store cases for ARM opcode 100.
953 2014-10-26 Doug Evans <xdje42@gmail.com>
955 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
957 2014-10-26 Doug Evans <xdje42@gmail.com>
959 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
960 parameter "kind" to "block_index".
961 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
963 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
965 2014-10-26 Doug Evans <xdje42@gmail.com>
967 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
969 2014-10-26 Doug Evans <xdje42@gmail.com>
971 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
974 2014-10-26 Doug Evans <xdje42@gmail.com>
976 * parser-defs.h (block_found): Move decl from here ...
977 * symtab.h (block_found): ... to here.
979 2014-10-26 Doug Evans <xdje42@gmail.com>
981 * symtab.h (struct field_of_this_result): Fix typo in comment.
982 (lookup_symbol_in_language): Move function comment here.
983 (lookup_symbol): Improve function comment.
984 (basic_lookup_symbol_nonlocal): Ditto.
985 (lookup_symbol_static, lookup_symbol_global): Ditto.
986 (lookup_symbol_aux_block): Ditto.
987 (lookup_language_this): Add function comment.
988 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
990 (lookup_block_symbol): Improve function comment.
991 (lookup_struct): Fix capitalization in function comment.
992 (lookup_transparent_type): Add function comment.
993 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
994 Improve function comment.
995 (lookup_objfile_from_block): Add function comment.
996 * symtab.c (lookup_symbol_in_language): Update function comment.
997 (lookup_symbol, lookup_language_this): Ditto.
998 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
999 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1000 (basic_lookup_symbol_nonlocal): Ditto.
1001 (lookup_symbol_static, lookup_symbol_global): Ditto.
1002 (lookup_transparent_type, lookup_block_symbol): Ditto.
1004 2014-10-25 Doug Evans <xdje42@gmail.com>
1006 * symtab.c (types_info): Delete forward decl.
1007 (functions_info, variables_info, sources_info): Ditto.
1008 (_initialize_symtab): Rewrite forward decl to use
1009 initialize_file_ftype.
1011 2014-10-25 Doug Evans <xdje42@gmail.com>
1013 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1015 2014-10-25 Doug Evans <xdje42@gmail.com>
1017 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1018 of local var child_die.
1020 2014-10-24 Don Breazeal <donb@codesourcery.com>
1022 * infrun.c (follow_fork_inferior): Update fork message printing
1023 to use target_terminal_ours_for_output instead of
1024 target_terminal_ours, to use _() for all format strings, to print
1025 "vfork" instead of "fork" for vforks, and to add a detach message.
1026 (handle_vfork_child_exec_or_exit): Update message printing to use
1027 target_terminal_ours_for_output instead of target_terminal_ours, to
1028 use _() for all format strings, and to fix some formatting.
1030 2014-10-24 Pedro Alves <palves@redhat.com>
1032 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1033 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1034 * config/vax/vax.mh: Delete.
1035 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1036 obsolete configurations section.
1037 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1038 * vax-nat.c: Delete file.
1040 2014-10-24 Pedro Alves <palves@redhat.com>
1042 * NEWS (Removed targets): Add OS/arch column.
1044 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1046 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1047 on the arg type of a constructor only if it is of reference type.
1049 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1051 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1052 accessors and constants from nios2 opcodes update.
1053 (nios2_get_next_pc): Likewise.
1055 2014-10-19 Doug Evans <xdje42@gmail.com>
1057 * gdbthread.h (set_running): Fix comment.
1058 (set_executing, finish_thread_state): Fix comment.
1060 2014-10-18 Doug Evans <xdje42@gmail.com>
1062 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1064 2014-10-17 Doug Evans <dje@google.com>
1066 * NEWS: Mention new event gdb.clear_objfiles.
1067 * python/py-event.h (emit_clear_objfiles_event): Clear
1068 * python/py-events.h (events_object): New member clear_objfiles.
1069 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1071 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1072 emit clear_objfiles event.
1073 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1075 (emit_clear_objfiles_event): New function.
1076 (clear_objfiles): New event.
1077 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1079 * python/python.c (_initialize_python): Call
1080 gdbpy_initialize_clear_objfiles_event.
1082 2014-10-17 Doug Evans <dje@google.com>
1084 * NEWS: Mention new gdb.Objfile.progspace attribute.
1085 * python/py-objfile.c (objfpy_get_progspace): New function.
1086 (objfile_getset): New entry for "progspace".
1088 2014-10-17 Pedro Alves <palves@redhat.com>
1091 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1092 returns a copy of the input.
1093 (run_command_1, continue_command, step_1, jump_command)
1094 (signal_command, until_command, advance_command, finish_command)
1095 (attach_command): Adjust and install a cleanup to free the
1098 2014-10-17 Pedro Alves <palves@redhat.com>
1101 * infcmd.c (continue_1): If continuing all threads in the
1102 foreground, make sure the inferior's terminal settings are put in
1105 2014-10-17 Pedro Alves <palves@redhat.com>
1108 * annotate.c (annotate_breakpoints_invalid): Use
1109 target_terminal_our_for_output instead of target_terminal_ours.
1110 Give back the terminal to the target.
1111 (annotate_frames_invalid): Likewise.
1113 2014-10-17 Pedro Alves <palves@redhat.com>
1115 * target.c (enum terminal_state): New enum.
1116 (terminal_state): New global.
1117 (target_terminal_init): New function.
1118 (target_terminal_inferior): Skip if inferior already owns the
1120 (target_terminal_ours, target_terminal_ours_for_output): New
1122 * target.h (target_terminal_init): Convert to function prototype.
1123 (target_terminal_ours_for_output): Convert to function prototype
1125 (target_terminal_ours): Convert to function prototype and tweak
1127 * windows-nat.c (do_initial_windows_stuff): Call
1128 target_terminal_init instead of child_terminal_init_with_pgrp.
1130 2014-10-17 Pedro Alves <palves@redhat.com>
1132 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1133 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1134 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1136 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1137 * ada-lang.h [__alpha__ && __osf__]
1138 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1139 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1140 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1142 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1144 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1145 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1146 * configure: Regenerate.
1147 * configure.ac: Remove references to osf.
1148 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1149 section. Remove all other references to osf.
1150 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1151 Remove all other references to osf.
1152 * dec-thread.c: Delete file.
1153 * defs.h (GDB_OSABI_OSF1): Delete.
1154 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1156 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1157 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1159 (unconditionally_kill_inferior)
1160 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1161 * solib-osf.c: Delete file.
1163 2014-10-17 Pedro Alves <palves@redhat.com>
1165 * remote.c (clear_threads_listing_context): Move higher up, out of
1166 the HAVE_LIBEXPAT guard.
1168 2014-10-16 Tristan Gingold <gingold@adacore.com>
1170 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1171 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1174 2014-10-15 Pedro Alves <palves@redhat.com>
1176 * dec-thread.c (dec_thread_count_gdb_threads)
1177 (dec_thread_add_gdb_thread): Delete.
1178 (dec_thread_update_thread_list): Delete.
1179 (dec_thread_find_new_threads): Rename to ...
1180 (dec_thread_update_thread_list): ... this. Delete GDB-size
1181 threads that are no longer found in dec_thread_list.
1182 (resync_thread_list): Delete.
1183 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1186 2014-10-15 Pedro Alves <palves@redhat.com>
1188 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1189 * remote.c (remote_update_thread_list): Skip calling prune_threads
1190 if any thread listing method is supported, and instead walk over
1191 the set of remote threads listed, deleting those that are not
1192 found in GDB's thread list.
1194 2014-10-15 Pedro Alves <palves@redhat.com>
1196 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1197 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1198 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1199 (bsd_uthread_target): Adjust.
1200 * corelow.c (core_open): Adjust.
1201 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1202 (dec_thread_update_thread_list): New function.
1203 (init_dec_thread_ops): Adjust.
1204 * gdbthread.h (prune_threads): New declaration.
1205 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1206 (thread_db_update_thread_list): ... this. Call prune_threads.
1207 (init_thread_db_ops): Adjust.
1208 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1209 (procfs_update_thread_list): ... this. Call prune_threads.
1210 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1212 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1213 (obsd_update_thread_list): ... this. Call prune_threads.
1214 (obsd_add_target): Adjust.
1215 * procfs.c (procfs_target): Adjust.
1216 (procfs_notice_thread): Update comment.
1217 (procfs_find_new_threads): Rename to ...
1218 (procfs_update_thread_list): ... this. Call prune_threads.
1219 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1221 (ravenscar_wait): Adjust.
1222 (ravenscar_find_new_threads): Rename to ...
1223 (ravenscar_update_thread_list): ... this. Call prune_threads.
1224 (init_ravenscar_thread_ops): Adjust.
1225 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1226 (record_btrace_update_thread_list): ... this. Adjust comment.
1227 (init_record_btrace_ops): Adjust.
1228 * remote.c (remote_threads_info): Rename to ...
1229 (remote_update_thread_list): ... this. Call prune_threads.
1230 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1232 * sol-thread.c (check_for_thread_db): Adjust.
1233 (sol_find_new_threads_callback): Rename to ...
1234 (sol_update_thread_list_callback): ... this.
1235 (sol_find_new_threads): Rename to ...
1236 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1237 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1238 * target-delegates.c: Regenerate.
1239 * target.c (target_find_new_threads): Rename to ...
1240 (target_update_thread_list): ... this.
1241 * target.h (struct target_ops): Rename to_find_new_threads field
1242 to to_update_thread_list.
1243 (target_find_new_threads): Rename to ...
1244 (target_update_thread_list): ... this.
1245 * thread.c (prune_threads): Make extern.
1246 (update_thread_list): Adjust.
1248 2014-10-15 Pedro Alves <palves@redhat.com>
1250 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1251 Add describing comment. Return -1 if the qL packet is not
1253 (struct thread_item, thread_item_t): Move higher up in
1254 the file. Add comments.
1255 (struct threads_parsing_context): Move higher up in
1256 the file, add comments, and remote to ...
1257 (struct threads_listing_context): ... this.
1258 (remote_newthread_step): Don't add the thread to GDB's thread
1259 database here. Instead push it to the thread_listing_context
1261 (remote_find_new_threads): Rename to ...
1262 (remote_get_threads_with_ql): ... this. Add target_ops and
1263 targets_listing_context parameters. Pass down context.
1264 (start_thread): Adjust.
1265 (clear_threads_parsing_context): Rename to ...
1266 (clear_threads_listing_context): ... this.
1267 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1268 remote_threads_info.
1269 (remote_get_threads_with_qthreadinfo): Ditto.
1270 (remote_threads_info): Reimplement.
1272 2014-10-15 Pedro Alves <palves@redhat.com>
1274 * infrun.c (resume): Don't force displaced-stepping for all
1275 single-steps on software single-stepping archs.
1277 2014-10-15 Pedro Alves <palves@redhat.com>
1279 * breakpoint.c (single_step_breakpoints): Delete global.
1280 (insert_single_step_breakpoint): Adjust to store the breakpoint
1281 pointer in the current thread.
1282 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1283 (cancel_single_step_breakpoints): Delete functions.
1284 (breakpoint_has_location_inserted_here): Make extern.
1285 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1287 * breakpoint.h (breakpoint_has_location_inserted_here): New
1289 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1290 (cancel_single_step_breakpoints): Remove declarations.
1291 * gdbthread.h (struct thread_control_state)
1292 <single_step_breakpoints>: New field.
1293 (delete_single_step_breakpoints)
1294 (thread_has_single_step_breakpoints_set)
1295 (thread_has_single_step_breakpoint_here): New declarations.
1296 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1297 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1298 (singlestep_pc): Delete globals.
1299 (infrun_thread_ptid_changed): Remove references to removed
1301 (resume_cleanups): Delete the current thread's single-step
1303 (maybe_software_singlestep): Remove references to removed globals.
1304 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1305 delete_single_step_breakpoints.
1306 (init_wait_for_inferior): Remove references to removed globals.
1307 (delete_thread_infrun_breakpoints): Delete the thread's
1308 single-step breakpoints too.
1309 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1310 single-step breakpoints here.
1311 (delete_stopped_threads_single_step_breakpoints): New function.
1312 (adjust_pc_after_break): Adjust to use
1313 thread_has_single_step_breakpoints_set.
1314 (handle_inferior_event): Remove references to removed globals.
1315 Use delete_stopped_threads_single_step_breakpoints.
1316 (handle_signal_stop): Adjust to per-thread single-step
1317 breakpoints. Swap test order to do cheaper tests first.
1318 (switch_back_to_stepped_thread): Extend debug output. Remove
1319 references to removed globals.
1320 * record-full.c (record_full_wait_1): Adjust to per-thread
1321 single-step breakpoints.
1322 * thread.c (delete_single_step_breakpoints)
1323 (thread_has_single_step_breakpoints_set)
1324 (thread_has_single_step_breakpoint_here): New functions.
1325 (clear_thread_inferior_resources): Also delete the thread's
1326 single-step breakpoints.
1328 2014-10-15 Pedro Alves <palves@redhat.com>
1330 * thread.c (delete_thread_breakpoint): New function.
1331 (delete_step_resume_breakpoint)
1332 (delete_exception_resume_breakpoint): Use it.
1333 (delete_at_next_stop): New function.
1334 (clear_thread_inferior_resources): Use delete_at_next_stop.
1336 2014-10-15 Pedro Alves <palves@redhat.com>
1338 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1339 (breakpoint_inserted_here_p): ... here. Remove special case for
1340 software single-step breakpoints.
1341 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1342 (software_breakpoint_inserted_here_p): ... here. Remove special
1343 case for software single-step breakpoints.
1344 (bp_target_info_copy_insertion_state)
1345 (deprecated_insert_raw_breakpoint)
1346 (deprecated_remove_raw_breakpoint): Delete functions.
1347 * breakpoint.h (deprecated_insert_raw_breakpoint)
1348 (deprecated_remove_raw_breakpoint): Remove declarations.
1350 2014-10-15 Pedro Alves <palves@redhat.com>
1353 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1354 Delete array globals.
1355 (single_step_breakpoints): New global.
1356 (breakpoint_xfer_memory): Remove special handling for single-step
1358 (update_breakpoints_after_exec): Delete bp_single_step
1360 (detach_breakpoints): Remove special handling for single-step
1362 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1363 (bpstat_stop_status): Add comment.
1364 (bpstat_what, bptype_string, print_one_breakpoint_location)
1365 (adjust_breakpoint_address, init_bp_location): Handle
1367 (new_single_step_breakpoint): New function.
1368 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1369 handling for single-step breakpoints.
1370 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1371 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1373 (detach_single_step_breakpoints, find_single_step_breakpoint):
1375 (breakpoint_has_location_inserted_here): New function.
1376 (single_step_breakpoint_inserted_here_p): Rewrite.
1377 * breakpoint.h: Remove FIXME.
1378 (enum bptype) <bp_single_step>: New enum value.
1379 (insert_single_step_breakpoint): Update comment.
1380 * infrun.c (resume_cleanups)
1381 (delete_step_thread_step_resume_breakpoint): Remove single-step
1383 (fetch_inferior_event): Install a cleanup that removes infrun
1385 (switch_back_to_stepped_thread) <expect thread advanced also>:
1386 Clear step-over info.
1388 2014-10-15 Pedro Alves <palves@redhat.com>
1390 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1391 (delete_thread_infrun_breakpoints): New function, with parts
1392 salvaged from delete_step_resume_breakpoint_callback.
1393 (delete_step_thread_step_resume_breakpoint): Delete.
1394 (for_each_just_stopped_thread_callback_func): New typedef.
1395 (for_each_just_stopped_thread): New function.
1396 (delete_just_stopped_threads_infrun_breakpoints): New function.
1397 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1398 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1400 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1402 2014-10-15 Pedro Alves <palves@redhat.com>
1404 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1405 trying to step past a non-steppable watchpoint.
1406 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1408 * infrun.c (struct step_over_info): Add new field
1409 'nonsteppable_watchpoint_p' and adjust comments.
1410 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1412 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1413 (stepping_past_nonsteppable_watchpoint): New function.
1414 (step_over_info_valid_p): Also return true if stepping past a
1415 nonsteppable watchpoint.
1416 (proceed): Adjust call to set_step_over_info. Remove reference to
1418 (init_wait_for_inferior): Remove reference to init_infwait_state.
1419 (waiton_ptid): Delete global.
1420 (struct execution_control_state)
1421 <stepped_after_stopped_by_watchpoint>: Delete field.
1422 (wait_for_inferior, fetch_inferior_event): Always pass
1423 minus_one_ptid to target_wait.
1424 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1426 (init_infwait_state): Delete function.
1427 (handle_inferior_event): Remove infwait_state handling.
1428 (handle_signal_stop) <watchpoints handling>: Adjust after
1429 stepped_after_stopped_by_watchpoint removal. Don't remove
1430 breakpoints here nor set infwait_state. Set the thread's
1431 stepping_over_watchpoint flag, and call keep_going instead.
1432 (keep_going): Handle stepping_over_watchpoint. Adjust
1433 set_step_over_info calls.
1434 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1437 2014-10-15 Pedro Alves <palves@redhat.com>
1439 * infrun.c (step_over_info_valid_p): New function.
1440 (resume): Use step_over_info_valid_p instead of checking the
1441 threads's trap_expected flag.
1443 2014-10-15 Doug Evans <dje@google.com>
1444 Walfred Tedeschi <walfred.tedeschi@intel.com>
1447 * python/lib/gdb/__init__.py (packages): Add "printer".
1448 * python/lib/gdb/command/bound_registers.py: Moved to ...
1449 * python/lib/gdb/printer/bound_registers.py: ... here.
1450 Add printer to global set of builtin printers. Rename printer from
1451 "bound" to "mpx_bound128".
1452 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1453 registered as global "builtin" printer.
1454 (add_builtin_pretty_printer): New function.
1455 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1456 gdb/printer/__init__.py.
1458 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1460 * Makefile.in (SFILES): Remove d-support.c.
1461 (COMMON_OBS): Remove d-support.o.
1462 * d-lang.h (d_parse_symbol): Remove declaration.
1463 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1464 * d-support.c: Remove file.
1466 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1468 * gdb/infrun.c (process_event_stop_test): Apply
1469 gdbarch_addr_bits_remove to longjmp resume address.
1471 2014-10-15 Pedro Alves <palves@redhat.com>
1473 * regformats/microblaze.dat: Delete file.
1475 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1477 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1478 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1480 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1482 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1485 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1489 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1490 with qualified args.
1492 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1494 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1495 of the case where the second operand is a pointer.
1496 <BINOP_SUB>: Likewise.
1498 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1500 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1501 only if it is not NULL.
1502 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1503 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1504 (struct probe_ops) <clear_semaphore>: Likewise.
1505 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1507 (stop_tracing): Likewise, for clear_semaphore.
1509 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1511 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1512 using language_c, instead of current_language.
1514 2014-10-13 Doug Evans <dje@google.com>
1516 * python/py-objfile.c (objfpy_initialize): New function.
1517 (objfpy_new, objfile_to_objfile_object): Call it.
1518 * python/py-progspace.c (pspy_initialize): New function.
1519 (pspy_new, pspace_to_pspace_object): Call it.
1521 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1522 Jan Kratochvil <jan.kratochvil@redhat.com>
1524 Fix "save breakpoints" for "catch" command.
1525 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1528 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1530 Fix "save breakpoints" for "disable $bpnum" command.
1531 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1533 2014-10-10 Pedro Alves <palves@redhat.com>
1535 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1536 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1537 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1538 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1540 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1541 * configure.ac: Remove references to IRIX.
1542 * configure.host: Add *-*-irix* to the obsolete hosts section.
1543 Remove all other references to irix.
1544 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1547 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1549 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1550 isn't valid, release the tdesc arch data and return NULL.
1552 2014-10-10 Pedro Alves <palves@redhat.com>
1554 * linux-tdep.c: Include observer.h.
1555 (linux_inferior_data): New global.
1556 (struct linux_info): New structure.
1557 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1558 (get_linux_inferior_data): New functions.
1559 (linux_vsyscall_range): Rename to ...
1560 (linux_vsyscall_range_raw): ... this.
1561 (linux_vsyscall_range): New function; handles caching.
1562 (_initialize_linux_tdep): Register linux_inferior_data. Install
1563 inferior_exit and inferior_appeared observers.
1565 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1566 Pedro Alves <palves@redhat.com>
1569 * solib-svr4.c (svr4_read_so_list): Rename to ...
1570 (svr4_current_sos_1): ... this and change the function comment.
1571 (svr4_current_sos): New function.
1573 2014-10-10 Pedro Alves <palves@redhat.com>
1575 * arch-utils.c (default_vsyscall_range): New function.
1576 * arch-utils.h (default_vsyscall_range): New declaration.
1577 * gdbarch.sh (vsyscall_range): New hook.
1578 * gdbarch.h, gdbarch.c: Regenerate.
1579 * linux-tdep.c (linux_vsyscall_range): New function.
1580 (linux_init_abi): Install linux_vsyscall_range as
1581 vsyscall_range gdbarch hook.
1582 * memrange.c (address_in_mem_range): New function.
1583 * memrange.h (address_in_mem_range): New declaration.
1584 * symfile-mem.c (find_vdso_size): Delete function.
1585 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1587 2014-10-10 Pedro Alves <palves@redhat.com>
1589 * infrun.c (normal_stop): Fix typo in comment.
1591 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1594 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1595 typo when using logical AND to determine instruction type.
1597 2014-10-09 Yao Qi <yao@codesourcery.com>
1599 * infrun.c (handle_signal_stop): Remove local variable
1602 2014-10-08 Stan Shebs <stan@codesourcery.com>
1604 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1606 2014-10-08 Gary Benson <gbenson@redhat.com>
1608 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1610 2014-10-08 Gary Benson <gbenson@redhat.com>
1612 * common/common-defs.h: Include common-exceptions.h.
1613 * exceptions.h: Do not include common-exceptions.h.
1615 2014-10-08 Gary Benson <gbenson@redhat.com>
1617 * common/common-defs.h: Include cleanups.h.
1618 * common/common-exceptions.c: Do not include cleanups.h.
1619 * utils.h: Likewise.
1621 2014-10-08 Gary Benson <gbenson@redhat.com>
1623 * ada-lang.c: Do not include exceptions.h.
1624 * ada-valprint.c: Likewise.
1625 * amd64-tdep.c: Likewise.
1626 * auto-load.c: Likewise.
1627 * block.c: Likewise.
1628 * break-catch-throw.c: Likewise.
1629 * breakpoint.c: Likewise.
1630 * btrace.c: Likewise.
1631 * c-lang.c: Likewise.
1632 * cli/cli-cmds.c: Likewise.
1633 * cli/cli-interp.c: Likewise.
1634 * cli/cli-script.c: Likewise.
1635 * completer.c: Likewise.
1636 * corefile.c: Likewise.
1637 * corelow.c: Likewise.
1638 * cp-abi.c: Likewise.
1639 * cp-support.c: Likewise.
1640 * cp-valprint.c: Likewise.
1641 * darwin-nat.c: Likewise.
1642 * dwarf2-frame-tailcall.c: Likewise.
1643 * dwarf2-frame.c: Likewise.
1644 * dwarf2loc.c: Likewise.
1645 * dwarf2read.c: Likewise.
1647 * event-loop.c: Likewise.
1648 * event-top.c: Likewise.
1649 * f-valprint.c: Likewise.
1650 * frame-unwind.c: Likewise.
1651 * frame.c: Likewise.
1652 * gdbtypes.c: Likewise.
1653 * gnu-v2-abi.c: Likewise.
1654 * gnu-v3-abi.c: Likewise.
1655 * guile/scm-auto-load.c: Likewise.
1656 * guile/scm-breakpoint.c: Likewise.
1657 * guile/scm-cmd.c: Likewise.
1658 * guile/scm-frame.c: Likewise.
1659 * guile/scm-lazy-string.c: Likewise.
1660 * guile/scm-param.c: Likewise.
1661 * guile/scm-symbol.c: Likewise.
1662 * guile/scm-type.c: Likewise.
1663 * hppa-hpux-tdep.c: Likewise.
1664 * i386-tdep.c: Likewise.
1665 * inf-loop.c: Likewise.
1666 * infcall.c: Likewise.
1667 * infcmd.c: Likewise.
1668 * infrun.c: Likewise.
1669 * interps.c: Likewise.
1670 * interps.h: Likewise.
1672 * linespec.c: Likewise.
1673 * linux-nat.c: Likewise.
1674 * linux-thread-db.c: Likewise.
1675 * m32r-rom.c: Likewise.
1677 * memory-map.c: Likewise.
1678 * mi/mi-cmd-break.c: Likewise.
1679 * mi/mi-cmd-stack.c: Likewise.
1680 * mi/mi-interp.c: Likewise.
1681 * mi/mi-main.c: Likewise.
1682 * monitor.c: Likewise.
1683 * nto-procfs.c: Likewise.
1684 * objc-lang.c: Likewise.
1685 * p-valprint.c: Likewise.
1686 * parse.c: Likewise.
1687 * ppc-linux-tdep.c: Likewise.
1688 * printcmd.c: Likewise.
1689 * probe.c: Likewise.
1690 * python/py-auto-load.c: Likewise.
1691 * python/py-breakpoint.c: Likewise.
1692 * python/py-cmd.c: Likewise.
1693 * python/py-finishbreakpoint.c: Likewise.
1694 * python/py-frame.c: Likewise.
1695 * python/py-framefilter.c: Likewise.
1696 * python/py-function.c: Likewise.
1697 * python/py-gdb-readline.c: Likewise.
1698 * python/py-inferior.c: Likewise.
1699 * python/py-infthread.c: Likewise.
1700 * python/py-lazy-string.c: Likewise.
1701 * python/py-linetable.c: Likewise.
1702 * python/py-param.c: Likewise.
1703 * python/py-prettyprint.c: Likewise.
1704 * python/py-symbol.c: Likewise.
1705 * python/py-type.c: Likewise.
1706 * python/py-value.c: Likewise.
1707 * python/python-internal.h: Likewise.
1708 * python/python.c: Likewise.
1709 * record-btrace.c: Likewise.
1710 * record-full.c: Likewise.
1711 * regcache.c: Likewise.
1712 * remote-fileio.c: Likewise.
1713 * remote-mips.c: Likewise.
1714 * remote.c: Likewise.
1715 * rs6000-aix-tdep.c: Likewise.
1716 * rs6000-nat.c: Likewise.
1718 * solib-darwin.c: Likewise.
1719 * solib-dsbt.c: Likewise.
1720 * solib-frv.c: Likewise.
1721 * solib-ia64-hpux.c: Likewise.
1722 * solib-spu.c: Likewise.
1723 * solib-svr4.c: Likewise.
1724 * solib.c: Likewise.
1725 * spu-tdep.c: Likewise.
1726 * stack.c: Likewise.
1727 * stap-probe.c: Likewise.
1728 * symfile-mem.c: Likewise.
1729 * symmisc.c: Likewise.
1730 * target.c: Likewise.
1731 * thread.c: Likewise.
1733 * tracepoint.c: Likewise.
1734 * tui/tui-interp.c: Likewise.
1735 * typeprint.c: Likewise.
1736 * utils.c: Likewise.
1737 * valarith.c: Likewise.
1738 * valops.c: Likewise.
1739 * valprint.c: Likewise.
1740 * value.c: Likewise.
1741 * varobj.c: Likewise.
1742 * windows-nat.c: Likewise.
1743 * xml-support.c: Likewise.
1745 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1747 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1749 (extended_mips16_next_pc): Update accordingly.
1751 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1753 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1755 (micromips_instruction_is_compact_branch): Likewise.
1756 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1757 or a compact jump, reaching a jump delay slot, or seeing a
1758 second non-prologue instruction.
1759 (micromips_scan_prologue): Also terminate scanning upon seeing a
1760 compact branch or jump, or reaching a branch or jump delay slot.
1761 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1762 or jump delay slot, or seeing a second non-prologue instruction.
1763 (mips32_instruction_has_delay_slot): Retain instruction
1764 examination code only, update arguments accordingly and move
1765 instruction fetch pieces to...
1766 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1767 (micromips_instruction_has_delay_slot): Likewise and to...
1768 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1769 (mips16_instruction_has_delay_slot): Likewise and to...
1770 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1771 (mips_single_step_through_delay): Update accordingly.
1772 (mips_adjust_breakpoint_address): Likewise.
1774 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1776 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1777 !mustbe32 also return 1 for 32-bit instructions.
1778 (mips16_instruction_has_delay_slot): Likewise. Add an
1779 explanatory comment.
1781 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1783 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1786 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1788 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1790 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1791 for the breakpoint's address. Don't preinitialize `placed_size'.
1792 (insert_bp_location): Set `reqstd_address' rather than
1794 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1795 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1797 (bkpt_remove_location): Likewise.
1798 (deprecated_insert_raw_breakpoint): Likewise.
1799 (deprecated_remove_raw_breakpoint): Likewise.
1800 (find_single_step_breakpoint): Likewise.
1801 * mem-break.c (default_memory_insert_breakpoint): Use
1802 `reqstd_address' for the breakpoint's address. Don't set
1803 `placed_address' or `placed_size' if breakpoint contents couldn't
1804 have been determined.
1805 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1806 the breakpoint's address.
1807 (remote_insert_hw_breakpoint): Likewise. Don't set
1808 `placed_address' or `placed_size' if breakpoint couldn't have been
1810 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1811 `reqstd_address' for the breakpoint's address.
1812 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1813 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1814 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1815 * microblaze-linux-tdep.c
1816 (microblaze_linux_memory_remove_breakpoint): Likewise.
1817 * monitor.c (monitor_insert_breakpoint): Likewise.
1818 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1819 (procfs_insert_hw_breakpoint): Likewise.
1820 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1821 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1822 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1823 * remote-mips.c (mips_insert_breakpoint): Likewise.
1824 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1826 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1828 * valops.c (value_assign): Check for bit field assignments
1829 before calling architecture-specific register value
1830 conversion functions.
1832 2014-10-03 Pierre Muller <muller@sourceware.org>
1834 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1836 2014-10-02 Pedro Alves <palves@redhat.com>
1838 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1839 threads_are_executing.
1840 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1842 * gdbthread.h (threads_are_executing): Declare.
1843 (handle_signal_stop) <random signals>: Don't print about the
1844 signal here if stopping.
1845 (end_stepping_range): Don't notify observers here.
1846 (normal_stop): Update the thread list. If stopped by a random
1847 signal or a stepping range ended, notify observers.
1848 * thread.c (threads_executing): New global.
1849 (init_thread_list): Clear 'threads_executing'.
1850 (set_executing): Set or clear 'threads_executing'.
1851 (threads_are_executing): New function.
1852 (update_threads_executing): New function.
1853 (update_thread_list): Use it.
1855 2014-10-02 Pedro Alves <palves@redhat.com>
1857 PR breakpoints/17431
1858 * breakpoint.c (update_breakpoints_after_exec): Don't create
1859 overlay, longjmp, std terminate nor exception breakpoints here.
1861 2014-10-02 Pedro Alves <palves@redhat.com>
1863 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1865 * inferior.c (find_inferior_for_program_space): Give preference to
1866 the current inferior.
1867 * inferior.h (find_inferior_for_program_space): Update comment.
1868 * progspace.c (switch_to_program_space_and_thread): Prefer the
1869 current inferior if it's bound to the program space requested. If
1870 the inferior found doesn't have a PID yet, don't bother looking up
1872 * progspace.h (switch_to_program_space_and_thread): Adjust
1874 * thread.c (any_thread_of_process, any_live_thread_of_process):
1875 Give preference to the current thread.
1877 2014-10-01 Pedro Alves <palves@redhat.com>
1879 * breakpoint.c (insert_bp_location): Error out if inserting a
1880 software breakpoint at a read-only address.
1881 * target.c (memory_xfer_check_region): New function, factored out
1883 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1885 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1886 against the memory region attributes.
1888 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1890 * NEWS: Announce new exit-code field in -list-thread-groups
1892 * inferior.c (exit_inferior_1): Don't clear exit code.
1893 (inferior_appeared): Clear exit code.
1894 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1897 2014-10-01 Pedro Alves <palves@redhat.com>
1899 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1900 GENERATED" along with emacs/vi read-only markers.
1901 * regformats/aarch64.dat: Regenerate.
1902 * regformats/arm-with-iwmmxt.dat: Regenerate.
1903 * regformats/arm-with-neon.dat: Regenerate.
1904 * regformats/arm-with-vfpv2.dat: Regenerate.
1905 * regformats/arm-with-vfpv3.dat: Regenerate.
1906 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1907 * regformats/i386/amd64-avx.dat: Regenerate.
1908 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1909 * regformats/i386/amd64-avx512.dat: Regenerate.
1910 * regformats/i386/amd64-linux.dat: Regenerate.
1911 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1912 * regformats/i386/amd64-mpx.dat: Regenerate.
1913 * regformats/i386/amd64.dat: Regenerate.
1914 * regformats/i386/i386-avx-linux.dat: Regenerate.
1915 * regformats/i386/i386-avx.dat: Regenerate.
1916 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1917 * regformats/i386/i386-avx512.dat: Regenerate.
1918 * regformats/i386/i386-linux.dat: Regenerate.
1919 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1920 * regformats/i386/i386-mmx.dat: Regenerate.
1921 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1922 * regformats/i386/i386-mpx.dat: Regenerate.
1923 * regformats/i386/i386.dat: Regenerate.
1924 * regformats/i386/x32-avx-linux.dat: Regenerate.
1925 * regformats/i386/x32-avx.dat: Regenerate.
1926 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1927 * regformats/i386/x32-avx512.dat: Regenerate.
1928 * regformats/i386/x32-linux.dat: Regenerate.
1929 * regformats/i386/x32.dat: Regenerate.
1930 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1931 * regformats/mips-dsp-linux.dat: Regenerate.
1932 * regformats/mips-linux.dat: Regenerate.
1933 * regformats/mips64-dsp-linux.dat: Regenerate.
1934 * regformats/mips64-linux.dat: Regenerate.
1935 * regformats/nios2-linux.dat: Regenerate.
1936 * regformats/rs6000/powerpc-32.dat: Regenerate.
1937 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1938 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1939 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1940 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1941 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1942 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1943 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1944 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1945 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1946 * regformats/s390-linux32.dat: Regenerate.
1947 * regformats/s390-linux32v1.dat: Regenerate.
1948 * regformats/s390-linux32v2.dat: Regenerate.
1949 * regformats/s390-linux64.dat: Regenerate.
1950 * regformats/s390-linux64v1.dat: Regenerate.
1951 * regformats/s390-linux64v2.dat: Regenerate.
1952 * regformats/s390-te-linux64.dat: Regenerate.
1953 * regformats/s390x-linux64.dat: Regenerate.
1954 * regformats/s390x-linux64v1.dat: Regenerate.
1955 * regformats/s390x-linux64v2.dat: Regenerate.
1956 * regformats/s390x-te-linux64.dat: Regenerate.
1957 * regformats/tic6x-c62x-linux.dat: Regenerate.
1958 * regformats/tic6x-c62x.dat: Regenerate.
1959 * regformats/tic6x-c64x-linux.dat: Regenerate.
1960 * regformats/tic6x-c64x.dat: Regenerate.
1961 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1962 * regformats/tic6x-c64xp.dat: Regenerate.
1964 2014-10-01 Pedro Alves <palves@redhat.com>
1966 * features/Makefile: Update comments.
1967 (XMLTOC): List all xml files we build C files from.
1968 (clean-cfiles): New rule.
1970 2014-10-01 Pedro Alves <palves@redhat.com>
1972 * features/i386/amd64-avx512-linux.c: Regenerate.
1973 * features/i386/amd64-avx512.c: Regenerate.
1974 * features/i386/x32-avx512-linux.c: Regenerate.
1975 * features/i386/x32-avx512.c: Regenerate.
1977 2014-10-01 Pedro Alves <palves@redhat.com>
1979 * features/Makefile (WHICH): Remove arm-with-m,
1980 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1982 2014-10-01 Pedro Alves <palves@redhat.com>
1984 * features/Makefile (clean): New rule.
1986 2014-10-01 Pedro Alves <palves@redhat.com>
1988 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1989 (zmm14h): Add missing end quotes.
1991 2014-10-01 Pedro Alves <palves@redhat.com>
1993 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1994 * features/aarch64.c: Regenerate.
1996 2014-09-30 Don Breazeal <donb@codesourcery.com>
1998 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1999 code so as to work with follow_fork_inferior.
2000 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2001 (inf_ttrace_create_inferior): Remove reference to
2002 inf_ttrace_vfork_ppid.
2003 (inf_ttrace_attach): Ditto.
2004 (inf_ttrace_detach): Ditto.
2005 (inf_ttrace_kill): Use current_inferior instead of
2006 inf_ttrace_vfork_ppid.
2007 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2008 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2009 inferior away from the parent.
2010 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2012 (follow_fork_inferior): New function.
2013 (follow_inferior_reset_breakpoints): Make function static.
2014 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2015 * linux-nat.c (linux_child_follow_fork): Move target-independent
2016 code to infrun.c:follow_fork_inferior.
2018 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2020 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2021 * gdbarch.c: Regenerate.
2022 * gdbarch.h: Likewise.
2023 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2024 gdbarch method 'regset_from_core_section'.
2025 (get_core_register_section): Remove handling for the case that
2026 regset == NULL and regset_from_core_section is defined.
2027 (get_core_registers): Drop check for deleted method.
2028 * procfs.c (procfs_do_thread_registers): Adjust comment.
2030 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2032 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2033 (linux_nat_make_corefile_notes): Remove.
2034 (linux_target_install_ops): Do not set target method
2035 'make_corefile_notes'.
2036 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2038 (linux_corefile_thread_callback): Instead of args->collect, call
2039 linux_collect_thread_registers.
2040 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2041 NULL unless there is a regset iterator.
2042 (linux_make_corefile_notes_1): Remove.
2043 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2044 by linux_make_corefile_notes.
2045 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2047 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2049 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2050 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2052 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2054 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2056 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2057 (xtensa_iterate_over_regset_sections): New.
2058 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2060 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2062 * vax-tdep.c (vax_regset_from_core_section): Remove.
2063 (vax_iterate_over_regset_sections): New.
2064 (vax_gdbarch_init): Adjust gdbarch initialization.
2066 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2068 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2069 (tilegx_regset_from_core_section): Remove.
2070 (tilegx_iterate_over_regset_sections): New.
2071 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2073 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2075 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2076 (sparc_iterate_over_regset_sections): New.
2077 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2078 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2080 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2081 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2082 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2083 target method 'make_corefile_notes'.
2085 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2087 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2088 'sizeof_gregset' and 'sizeof_fpregset'.
2089 * sh-tdep.c (sh_regset_from_core_section): Remove.
2090 (sh_iterate_over_regset_sections): New.
2091 (sh_gdbarch_init): Adjust gdbarch initialization.
2092 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2094 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2097 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2099 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2100 (score7_linux_iterate_over_regset_sections): New.
2101 (score_gdbarch_init): Adjust gdbarch initialization.
2103 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2105 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2107 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2108 method 'make_corefile_notes'.
2109 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2110 (ppcfbsd_regset_from_core_section): Remove.
2111 (ppcfbsd_iterate_over_regset_sections): New.
2112 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2114 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2115 (ppcnbsd_iterate_over_regset_sections): New.
2116 (ppcnbsd_init_abi): Adjust.
2117 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2118 (ppcobsd_iterate_over_regset_sections): New.
2119 (ppcobsd_init_abi): Adjust.
2120 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2121 (rs6000_aix_iterate_over_regset_sections): New.
2122 (rs6000_aix_init_osabi): Adjust.
2124 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2126 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2127 (nios2_regset_from_core_section): Remove.
2128 (nios2_iterate_over_regset_sections): New.
2129 (nios2_linux_init_abi): Adjust gdbarch initialization.
2131 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2133 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2134 (am33_iterate_over_regset_sections): New.
2135 (am33_linux_init_osabi): Adjust gdbarch initialization.
2137 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2139 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2140 (mips_linux_iterate_over_regset_sections): New.
2141 (mips_linux_init_abi): Adjust gdbarch initialization.
2142 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2143 (mips64obsd_iterate_over_regset_sections): New.
2144 (mips64obsd_init_abi): Adjust.
2145 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2146 (mipsnbsd_iterate_over_regset_sections): New.
2147 (mipsnbsd_init_abi): Adjust.
2149 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2151 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2152 (m88k_iterate_over_regset_sections): New.
2153 (m88k_gdbarch_init): Adjust gdbarch initialization.
2155 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2157 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2158 (ia64_linux_iterate_over_regset_sections): New.
2159 (ia64_linux_init_abi): Adjust gdbarch initialization.
2161 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2164 (m68kbsd_iterate_over_regset_sections): New.
2165 (m68kbsd_init_abi): Adjust gdbarch initialization.
2166 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2167 (m68k_linux_iterate_over_regset_sections): New.
2168 (m68k_linux_init_abi): Adjust gdbarch initialization.
2170 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2172 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2173 (m32r_linux_regset_from_core_section): Remove.
2174 (m32r_linux_iterate_over_regset_sections): New.
2175 (m32r_linux_init_abi): Adjust gdbarch initialization.
2177 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2179 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2180 (amd64obsd_iterate_over_regset_sections): New.
2181 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2182 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2184 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2185 regset_from_core_section initialization.
2186 * i386-tdep.c (i386_regset_from_core_section): Remove.
2187 (i386_iterate_over_regset_sections): New.
2188 (i386_gdbarch_init): Adjust gdbarch initialization.
2189 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2190 (i386_iterate_over_regset_sections): New prototype.
2191 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2193 (i386obsd_aout_iterate_over_regset_sections): New.
2194 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2195 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2197 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2198 (amd64fbsd_init_abi): Call fbsd_init_abi.
2199 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2200 (i386fbsd4_init_abi): Call fbsd_init_abi.
2201 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2202 target method 'make_corefile_notes'.
2203 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2205 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2207 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2208 (hppa_hpux_iterate_over_regset_sections): New.
2209 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2210 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2211 (hppa_linux_iterate_over_regset_sections): New.
2212 (hppa_linux_init_abi): Adjust.
2213 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2214 (hppanbsd_iterate_over_regset_sections): New.
2215 (hppanbsd_init_abi): Adjust.
2216 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2217 (hppaobsd_iterate_over_regset_sections): New.
2218 (hppaobsd_init_abi): Adjust.
2220 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2222 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2223 (frv_linux_iterate_over_regset_sections): New.
2224 (frv_linux_init_abi): Adjust gdbarch initialization.
2226 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2228 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2229 (armbsd_iterate_over_regset_sections): New prototype.
2230 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2231 (armbsd_iterate_over_regset_sections): New.
2232 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2235 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2237 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2238 (alpha_linux_iterate_over_regset_sections): New.
2239 (alpha_linux_init_abi): Adjust gdbarch initialization.
2240 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2242 (alphanbsd_iterate_over_regset_sections): New prototype.
2244 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2246 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2248 (aarch64_linux_iterate_over_regset_sections): New.
2249 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2251 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2253 * fbsd-tdep.c: New file.
2254 * fbsd-tdep.h: New file.
2255 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2256 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2257 (ALLDEPFILES): Add fbsd-tdep.c.
2259 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2261 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2263 * gdbarch.h: Regenerate.
2264 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2266 (get_core_register_section): Add parameter 'regset' and use it, if
2267 set. Add parameter 'min_size' and verify the bfd section size
2269 (get_core_registers_cb): Add parameter 'regset' and pass it to
2270 get_core_register section. For the "standard" register sections
2271 ".reg" and ".reg2", set an appropriate default for human_name.
2272 (get_core_registers): Don't abort when the gdbarch has an iterator
2273 but no regset_from_core_section. Add NULL/0 for parameters
2274 'regset'/'min_size' in calls to get_core_register_section.
2275 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2276 'regset' and use it instead of calling the
2277 regset_from_core_section gdbarch method.
2278 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2279 * i386-tdep.c (i386_supply_xstateregset)
2280 (i386_collect_xstateregset, i386_xstateregset): Moved to
2282 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2284 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2285 core file support only if the regset iterator hasn't been set.
2286 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2287 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2288 Moved from i386-tdep.c and renamed to *_linux*.
2289 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2290 each callback invocation. Allow any .reg-xstate size when reading
2292 * amd64-tdep.c (amd64_supply_xstateregset)
2293 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2295 (amd64_regset_from_core_section): Remove.
2296 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2297 install an amd64-specific regset_from_core_section gdbarch method.
2298 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2299 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2300 Moved from amd64-tdep.c and renamed to *_linux*.
2301 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2302 to each callback invocation. Allow any .reg-xstate size when
2303 reading from a core file.
2304 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2305 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2306 each callback invocation.
2307 (arm_linux_init_abi): No longer set the regset_from_core_section
2309 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2310 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2311 each callback invocation.
2312 (ppc_linux_init_abi): No longer set the regset_from_core_section
2314 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2315 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2316 (s390_regset_from_core_section): Remove.
2317 (s390_iterate_over_regset_sections): Add regset parameter to each
2318 callback invocation.
2319 (s390_gdbarch_init): No longer set the regset_from_core_section
2320 gdbarch method. Drop initialization of deleted tdep fields.
2322 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2324 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2325 (amd64_linux_iterate_over_regset_sections): New.
2326 (amd64_linux_init_abi_common): Don't install the regset section
2327 list, but the new iterator in gdbarch.
2328 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2329 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2330 (arm_linux_iterate_over_regset_sections): ...here. New function.
2331 (arm_linux_init_abi): Set iterator instead of section list.
2332 * corelow.c (get_core_registers_cb): New function, logic moved
2334 (get_core_registers): ...loop body here. Use new iterator method
2335 instead of walking through the regset section list.
2336 * gdbarch.sh: Remove 'core_regset_sections'. New method
2337 'iterate_over_regset_sections'. New typedef
2338 'iterate_over_regset_sections_cb'.
2339 * gdbarch.c: Regenerate.
2340 * gdbarch.h: Likewise.
2341 * i386-linux-tdep.c (i386_linux_regset_sections)
2342 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2344 (i386_linux_iterate_over_regset_sections): New.
2345 (i386_linux_init_abi): Don't choose a regset section list, but
2346 install new iterator in gdbarch.
2347 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2348 (linux_collect_regset_section_cb): New function, logic moved
2350 (linux_collect_thread_registers): ...loop body here. Use iterator
2351 method instead of walking through list.
2352 (linux_make_corefile_notes_1): Check for presence of iterator
2353 method instead of regset section list.
2354 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2355 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2356 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2357 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2358 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2359 (ppc_linux_init_abi): Don't choose from above regset section
2360 lists, but install new iterator in gdbarch.
2361 * regset.h (struct core_regset_section): Remove.
2362 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2363 have_linux_v1, have_linux_v2, and have_tdb.
2364 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2365 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2366 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2367 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2368 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2369 (s390_iterate_over_regset_sections): ...here. New function. Use
2371 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2372 regset section lists, but install new iterator.
2374 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2376 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2378 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2380 * progspace.c (print_program_space): Don't prune program spaces
2381 before printing them.
2383 2014-09-25 Pedro Alves <palves@redhat.com>
2385 * infrun.c (user_visible_resume_ptid): Don't check
2386 singlestep_breakpoints_inserted_p.
2388 2014-09-25 Pedro Alves <palves@redhat.com>
2390 * breakpoint.c (should_be_inserted): Add debug output.
2392 2014-09-25 Pedro Alves <palves@redhat.com>
2394 * infrun.c (stepping_past_instruction_at)
2395 (clear_exit_convenience_vars): Point at infrun.h instead of
2397 (handle_signal_stop): Fix typo.
2399 2014-09-24 Yao Qi <yao@codesourcery.com>
2401 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2404 2014-09-22 Gary Benson <gbenson@redhat.com>
2406 * target.c (target_stop): Updated comment.
2408 2014-09-22 Gary Benson <gbenson@redhat.com>
2410 * target/target.h (target_stop_ptid): Renamed as...
2411 (target_stop_and_wait): New function. Updated comment.
2413 (target_continue_ptid): Renamed as...
2414 (target_continue_no_signal): New function. Updated comment.
2417 2014-09-22 Pedro Alves <palves@redhat.com>
2419 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2421 * breakpoint.c (enum ugll_insert_mode): New enum.
2422 (always_inserted_mode): Now a plain boolean.
2423 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2424 (breakpoints_always_inserted_mode): Delete.
2425 (breakpoints_should_be_inserted_now): New function.
2426 (insert_breakpoints): Pass UGLL_INSERT to
2427 update_global_location_list instead of calling
2428 insert_breakpoint_locations manually.
2429 (create_solib_event_breakpoint_1): New, factored out from ...
2430 (create_solib_event_breakpoint): ... this.
2431 (create_and_insert_solib_event_breakpoint): Use
2432 create_solib_event_breakpoint_1 instead of calling
2433 insert_breakpoint_locations manually.
2434 (update_global_location_list): Change parameter type from boolean
2435 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2436 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2437 (update_global_location_list_nothrow): Change parameter type from
2438 boolean to enum ugll_insert_mode.
2439 (_initialize_breakpoint): "breakpoint always-inserted" option is
2440 now a boolean command. Update help text.
2441 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2442 (breakpoints_should_be_inserted_now): New declaration.
2443 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2444 Remove breakpoints_always_inserted_mode check.
2445 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2446 * remote.c (remote_start_remote): Likewise.
2448 2014-09-22 Pedro Alves <palves@redhat.com>
2450 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2451 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2452 Instead, pass UGLL_INSERT to update_global_location_list.
2453 (update_global_location_list): Change parameter type from boolean
2454 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2455 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2456 (create_solib_event_breakpoint_1): New, factored out from ...
2457 (create_solib_event_breakpoint): ... this.
2458 (create_and_insert_solib_event_breakpoint): Use
2459 create_solib_event_breakpoint_1 instead of calling
2460 insert_breakpoint_locations manually.
2461 (update_global_location_list): Handle UGLL_INSERT.
2463 2014-09-22 Pedro Alves <palves@redhat.com>
2465 * breakpoint.c (enum ugll_insert_mode): New enum.
2466 (update_global_location_list)
2467 (update_global_location_list_nothrow): Change parameter type from
2468 boolean to enum ugll_insert_mode. All callers adjusted.
2470 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2472 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2473 SystemTap support in GDB.
2475 2014-09-19 Don Breazeal <donb@codesourcery.com>
2477 * linux-nat.c (linux_handle_extended_wait): Call
2478 linux_ptrace_get_extended_event.
2479 (wait_lwp): Call linux_is_extended_waitstatus.
2480 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2481 and linux_is_extended_waitstatus.
2482 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2483 linux_ptrace_get_extended_event.
2484 (linux_ptrace_get_extended_event): New function.
2485 (linux_is_extended_waitstatus): New function.
2486 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2487 (linux_is_extended_waitstatus): New declarations.
2489 2014-09-19 Yao Qi <yao@codesourcery.com>
2491 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2492 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2493 comments. Callers update.
2494 (dwarf_decode_lines): Likewise.
2495 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2496 comments. Skip the line table if 'lowpc' is greater than
2497 'address'. Don't check
2498 dwarf2_per_objfile->has_section_at_zero.
2500 2014-09-18 Doug Evans <dje@google.com>
2502 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2503 * python/py-symtab.c (stpy_get_producer): New function.
2504 (symtab_object_getset): Add "producer" attribute.
2506 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2509 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2510 (do_captured_read_memory_integer): Remove.
2511 (safe_read_memory_integer): Use target_read_memory directly instead
2512 of catching errors in do_captured_read_memory_integer.
2514 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2516 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2519 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2521 * objc-lang.c (find_implementation_from_class): Remove dead code.
2523 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2526 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2527 "fprintf_unfiltered (gdb_stdlog...)".
2529 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2531 PR breakpoints/12526
2532 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2534 * breakpoint.c (watch_command_1): Use these fields to retain
2535 bitfield information.
2536 (extract_bitfield_from_watchpoint_value): New function.
2537 (watchpoint_check): Use it.
2538 (update_watchpoint): Use it. Optimize the address and length of a
2539 HW watchpoint pointing to a bitfield.
2540 * value.h (unpack_value_bitfield): New prototype.
2541 * value.c (unpack_value_bitfield): Make extern.
2543 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2545 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2547 * gnu-nat.c (inf_threads): New function.
2548 * gnu-nat.h (inf_threads_ftype): New typedef.
2549 (inf_threads): New declaration.
2550 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2551 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2552 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2553 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2554 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2555 (i386_gnu_dr_get_control): New functions.
2556 (reg_addr): New structure.
2557 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2558 i386 debugging register hooks.
2559 * NEWS: Mention this.
2561 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2563 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2564 vector data transfer instructions.
2565 (arm_record_coproc_data_proc): Updated.
2567 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2569 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2570 arm_record_exreg_ld_st_insn.
2571 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2574 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2576 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2577 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2578 processing instructions.
2580 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2582 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2583 for advance SIMD struct ld/st insn.
2584 (thumb2_record_decode_insn_handler): Replace stub handler with
2585 thumb2_record_asimd_struct_ld_st.
2587 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2589 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2590 for asimd, vfp and coprocessor insns.
2591 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2592 and coprocessor insns.
2593 (thumb2_record_coproc_insn): New function.
2594 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2596 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2599 2014-09-13 Doug Evans <xdje42@gmail.com>
2601 * NEWS: Mention new "queue-signal" command.
2602 * infcmd.c (queue_signal_command): New function.
2603 (_initialize_infcmd): Add new queue-signal command.
2605 2014-09-13 Doug Evans <xdje42@gmail.com>
2607 * linux-nat.c (wait_lwp): Add debugging printf.
2608 (linux_nat_wait_1): Ditto.
2610 2014-09-12 Pedro Alves <palves@redhat.com>
2612 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2613 (create_and_insert_solib_event_breakpoint): New functions.
2614 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2615 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2616 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2617 (remove_dbx_link_breakpoint): Delete function.
2618 (insert_dbx_link_bpt_in_file): Use
2619 create_and_insert_solib_event_breakpoint instead of
2620 deprecated_insert_raw_breakpoint.
2621 (procfs_wait): Don't check whether we hit __dbx_link here.
2622 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2624 * solib-irix.c (base_breakpoint): Delete global.
2625 (disable_break): Delete function.
2626 (enable_break): Use create_solib_event_breakpoint
2627 instead of deprecated_insert_raw_breakpoint.
2628 (irix_solib_handle_event): New function.
2629 (irix_solib_create_inferior_hook): Don't run the target or disable
2630 the mapping-complete breakpoint here.
2631 (_initialize_irix_solib): Install irix_solib_handle_event as
2632 so_ops->handle_event hook.
2634 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2635 Ulrich Weigand <uweigand@de.ibm.com>
2638 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2639 instead of read_memory_unsigned_integer.
2641 2014-09-12 Gary Benson <gbenson@redhat.com>
2643 * nat/linux-waitpid.c: Include common-defs.h.
2644 [GDBSERVER]: Add FIXME comment.
2645 [!GDBSERVER]: Don't include defs.h or signal.h.
2646 (linux_debug) [!GDBSERVER]: Remove empty block.
2648 2014-09-12 Gary Benson <gbenson@redhat.com>
2650 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2651 Don't include defs.h or server.h.
2653 2014-09-12 Gary Benson <gbenson@redhat.com>
2655 * nat/linux-btrace.c: Include common-defs.h.
2656 Don't include defs.h, server.h or gdbthread.h.
2657 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2659 2014-09-12 Gary Benson <gbenson@redhat.com>
2661 * common/agent.c: Include common-defs.h.
2662 Don't include defs.h or server.h.
2663 * common/buffer.c: Likewise.
2664 * common/common-debug.c: Likewise.
2665 * common/common-utils.c: Likewise.
2666 * common/errors.c: Likewise.
2667 * common/filestuff.c: Likewise.
2668 * common/format.c: Likewise.
2669 * common/gdb_vecs.c: Likewise.
2670 * common/print-utils.c: Likewise.
2671 * common/ptid.c: Likewise.
2672 * common/rsp-low.c: Likewise.
2673 * common/signals.c: Likewise.
2674 * common/vec.c: Likewise.
2675 * common/xml-utils.c: Likewise.
2676 * nat/linux-osdata.c: Likewise.
2677 * nat/linux-procfs.c: Likewise.
2678 * nat/linux-ptrace.c: Likewise.
2679 * nat/mips-linux-watch.c: Likewise.
2680 * target/waitstatus.c: Likewise.
2682 2014-09-12 Tom Tromey <tromey@redhat.com>
2683 Gary Benson <gbenson@redhat.com>
2685 * common/common-regcache.h: New file.
2686 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2687 * regcache.h: Include common-regcache.h.
2688 (regcache_read_pc): Don't declare.
2689 * regcache.c (get_thread_regcache_for_ptid): New function.
2690 * nat/linux-btrace.c: Don't include regcache.h.
2691 Include common-regcache.h.
2692 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2694 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2696 * regcache.h (struct regset): Declare.
2698 2014-09-11 Pedro Alves <palves@redhat.com>
2701 * main.c: Include "infrun.h".
2702 (catch_command_errors, catch_command_errors_const): Wait for the
2703 foreground command to complete.
2704 * top.c (maybe_wait_sync_command_done): New function, factored out
2706 (maybe_wait_sync_command_done): ... here.
2707 * top.h (maybe_wait_sync_command_done): New declaration.
2709 2014-09-11 Tom Tromey <tromey@redhat.com>
2710 Gary Benson <gbenson@redhat.com>
2712 * common/symbol.h: New file.
2713 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2714 * minsyms.c (find_minimal_symbol_address): New function.
2715 * common/agent.c: Include common/symbol.h.
2716 [!GDBSERVER]: Don't include objfiles.h.
2717 (agent_look_up_symbols): Use find_minimal_symbol_address.
2719 2014-09-11 Gary Benson <gbenson@redhat.com>
2721 * target/target.h (target_stop_ptid, target_continue_ptid):
2723 * target.c (target_stop_ptid, target_continue_ptid): New
2725 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2726 (agent_run_command): Always use target_stop_ptid and
2727 target_continue_ptid.
2729 2014-09-11 Tom Tromey <tromey@redhat.com>
2730 Gary Benson <gbenson@redhat.com>
2732 * target/target.h: New file.
2733 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2734 * target.h: Include target/target.h.
2735 (target_read_memory, target_write_memory): Don't declare.
2736 * target.c (target_read_uint32): New function.
2737 * common/agent.c: Include target/target.h.
2738 [!GDBSERVER]: Don't include target.h.
2739 (helper_thread_id): Type changed to uint32_t.
2740 (agent_get_helper_thread_id): Use target_read_uint32.
2741 (agent_run_command): Always use target_read_memory and
2742 target_write_memory.
2743 (agent_capability): Type changed to uint32_t.
2744 (agent_capability_check): Use target_read_uint32.
2746 2014-09-11 Gary Benson <gbenson@redhat.com>
2748 * common/common-debug.h (show_debug_regs): Declare.
2749 * common/common-debug.c (show_debug_regs): Define.
2750 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2751 all uses with show_debug_regs. Replace all uses that considered
2752 debug_hw_points as a multi-value integer with straight boolean
2754 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2755 with show_debug_regs.
2756 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2757 all uses with show_debug_regs.
2758 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2759 uses with show_debug_regs.
2761 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2763 * findvar.c (address_from_register): Handle targets requiring
2764 a special conversion routine even for plain pointer types.
2766 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2768 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2769 (store_register): Do not call exec_one_dummy_insn.
2771 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2773 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2774 dereference it first. Use value_enclosing_type instead of
2776 (ada_array_length): Likewise.
2778 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2780 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2781 Adjust function implementation and documentation accordingly.
2782 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2783 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2784 Update call to ada_value_ptr_subscript.
2786 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2788 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2789 instead of VAL's type.
2791 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2793 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2795 2014-09-09 Doug Evans <xdje42@gmail.com>
2798 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2799 last parameter to pkg-config, not first.
2800 * configure.ac: Pass --with-guile provided pkg-config path to
2801 GDB_GUILE_PROGRAM_NAMES.
2802 * configure: Regenerate.
2804 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2806 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2809 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2811 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2812 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2813 the list of sections determining GDB_OSABI_IRIX.
2815 2014-09-09 James Hogan <james.hogan@imgtec.com>
2817 * MAINTAINERS (Write After Approval): Add "James Hogan".
2819 2014-09-09 James Hogan <james.hogan@imgtec.com>
2821 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2823 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2825 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2827 2014-09-08 Doug Evans <xdje42@gmail.com>
2830 * guile.c: #include <signal.h>.
2831 (_initialize_guile): Block SIGCHLD while initializing Guile.
2833 Replaces the following, which is reverted.
2835 2014-07-26 Doug Evans <xdje42@gmail.com>
2838 * configure.ac: Add check for header gc/gc.h.
2839 Add check for function setenv.
2840 * configure: Regenerate.
2841 * config.in: Regenerate.
2842 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2844 2014-09-08 Doug Evans <xdje42@gmail.com>
2846 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2847 with named constant. Fix style of pointer comparison.
2848 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2850 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2853 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2854 decide whether we display the command on "show user".
2855 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2856 printing command name.
2857 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2858 * cli/cli-decode.c (cli_user_command_p): Create helper function
2859 to verify whether cmd_list_element is a user-defined command.
2861 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2864 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2865 Fix goto out of TRY_CATCH.
2867 2014-09-06 Doug Evans <xdje42@gmail.com>
2868 Tom Tromey <tromey@redhat.com>
2871 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2872 $_any_caller_matches.
2873 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2874 * python/lib/gdb/function/caller_is.py: New file.
2876 2014-09-06 Doug Evans <xdje42@gmail.com>
2878 * infcmd.c (program_info): Fix typo.
2880 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2883 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2884 'number'. New variable 'has_digit'. Rewrite code to deal with
2885 subexpressions on SDT probes.
2887 2014-09-04 Pedro Alves <palves@redhat.com>
2889 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2890 the input is only one character long.
2892 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2895 * f-valprint.c (f_val_print): Specify the correct print option to
2896 use when printing integer values.
2898 2014-09-04 Gary Benson <gbenson@redhat.com>
2900 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2901 Remove code to cope with LWPs wrapped as PIDs.
2902 Add assertions to ensure no wrapped LWPs are passed.
2904 2014-09-04 Pedro Alves <palves@redhat.com>
2906 * value.c (value_ranges_copy_adjusted): New function, factored out
2908 (value_contents_copy_raw): ... here.
2909 (unpack_value_bits_as_long_1): Rename back to ...
2910 (unpack_bits_as_long): ... this. Remove 'original_value' and
2911 'result' parameters. Change return type to LONGEST.
2912 (unpack_value_bits_as_long): Delete.
2913 (unpack_value_field_as_long_1): Delete.
2914 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2915 (unpack_value_bitfield): New function.
2916 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2917 (value_fetch_lazy): Use unpack_value_bitfield.
2918 * value.h (unpack_value_bits_as_long): Delete declaration.
2920 2014-09-03 Sasha Smundak <asmundak@google.com>
2922 * python/py-frame.c (frapy_read_register): New function.
2924 2014-09-03 James Hogan <james.hogan@imgtec.com>
2926 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2927 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2929 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2932 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2934 (add_cmd): Set "completer_handle_brkchars" to NULL.
2935 * cli/cli-decode.h (struct cmd_list_element)
2936 <completer_handle_brkchars>: New field.
2937 * command.h (completer_ftype_void): New typedef.
2938 (set_cmd_completer_handle_brkchars): New prototype.
2939 * completer.c (set_gdb_completion_word_break_characters): New
2941 (complete_line_internal): Call "completer_handle_brkchars"
2942 callback from command.
2943 * completer.h: Include "command.h".
2944 (set_gdb_completion_word_break_characters): New prototype.
2945 * python/py-cmd.c (cmdpy_completer_helper): New function.
2946 (cmdpy_completer_handle_brkchars): New function.
2947 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2948 (cmdpy_init): Set completer_handle_brkchars to
2949 cmdpy_completer_handle_brkchars.
2951 2014-09-03 Gary Benson <gbenson@redhat.com>
2953 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2954 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2955 Loop conditions changed to equivalent form.
2956 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2957 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2958 ALL_DEBUG_ADDRESS_REGISTERS.
2960 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2962 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2965 2014-09-02 Doug Evans <dje@google.com>
2967 * typeprint.c (find_global_typedef): Fix comment.
2969 2014-09-02 Gary Benson <gbenson@redhat.com>
2971 * i386-nat.h: Renamed as...
2972 * x86-nat.h: New file. All type, function and variable name
2973 prefixes changed from "i386_" to "x86_". All references updated.
2974 * i386-nat.c: Renamed as...
2975 * x86-nat.c: New file. All type, function and variable name
2976 prefixes changed from "i386_" to "x86_". All references updated.
2977 * common/i386-xstate.h: Renamed as...
2978 * common/x86-xstate.h: New file. All type, function and variable
2979 name prefixes changed from "i386_" to "x86_". All references
2981 * nat/i386-cpuid.h: Renamed as...
2982 * nat/x86-cpuid.h: New file. All type, function and variable name
2983 prefixes changed from "i386_" to "x86_". All references updated.
2984 * nat/i386-gcc-cpuid.h: Renamed as...
2985 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2986 name prefixes changed from "i386_" to "x86_". All references
2988 * nat/i386-dregs.h: Renamed as...
2989 * nat/x86-dregs.h: New file. All type, function and variable name
2990 prefixes changed from "i386_" to "x86_". All references updated.
2991 * nat/i386-dregs.c: Renamed as...
2992 * nat/x86-dregs.c: New file. All type, function and variable name
2993 prefixes changed from "i386_" to "x86_". All references updated.
2995 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2997 * varobj.c (_initialize_varobj): Move to the end of file.
2999 2014-08-29 Gary Benson <gbenson@redhat.com>
3001 * common/common-exceptions.h: New file.
3002 * common/common-exceptions.c: Likewise.
3003 * Makefile.in (SFILES): Add common/common-exceptions.c.
3004 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3005 (COMMON_OBS): Add common-exceptions.o.
3006 (common-exceptions.o): New rule.
3007 * exceptions.h (common-exceptions.h): Include.
3008 (gdb_setjmp.h): Do not include.
3009 (return_reason): Moved to common-exceptions.h.
3010 (enum return_reason): Likewise.
3011 (RETURN_MASK): Likewise.
3012 (typedef return_mask): Likewise.
3013 (enum errors): Likewise.
3014 (struct gdb_exception): Likewise.
3015 (exceptions_state_mc_init): Likewise.
3016 (exceptions_state_mc_action_iter): Likewise.
3017 (exceptions_state_mc_action_iter_1): Likewise.
3018 (TRY_CATCH): Likewise.
3019 (throw_exception): Likewise.
3020 (throw_verror): Likewise.
3021 (throw_vquit): Likewise.
3022 (throw_error): Likewise.
3023 (throw_quit): Likewise.
3024 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3025 (enum catcher_action): Likewise.
3026 (struct catcher): Likewise.
3027 (current_catcher): Likewise.
3028 (catcher_list_size): Likewise.
3029 (exceptions_state_mc_init): Likewise.
3030 (catcher_pop): Likewise.
3031 (exceptions_state_mc): Likewise.
3032 (exceptions_state_mc_action_iter): Likewise.
3033 (exceptions_state_mc_action_iter_1): Likewise.
3034 (throw_exception): Likewise.
3035 (exception_messages): Likewise.
3036 (exception_messages_size): Likewise.
3037 (throw_it): Likewise.
3038 (throw_verror): Likewise.
3039 (throw_vquit): Likewise.
3040 (throw_error): Likewise.
3041 (throw_quit): Likewise.
3042 (prepare_to_throw_exception): New function.
3044 2014-08-29 Gary Benson <gbenson@redhat.com>
3046 * common/gdb_setjmp.h: New file.
3047 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3048 * configure.ac: Move sigsetjmp check...
3049 * common/common.m4: ...here.
3050 * configure: Regenerate.
3051 * cp-support.c (SIGJMP_BUF): Delete.
3052 (SIGSETJMP): Likewise.
3053 (SIGLONGJMP): Likewise.
3054 * exceptions.h (gdb_setjmp.h): Include.
3055 (setjmp.h): Do not include.
3056 (EXCEPTIONS_SIGJMP_BUF): Delete.
3057 (EXCEPTIONS_SIGSETJMP): Likewise.
3058 (EXCEPTIONS_SIGLONGJMP): Likewise.
3059 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3061 * exceptions.c: Likewise.
3063 2014-08-29 Gary Benson <gbenson@redhat.com>
3065 * cleanups.h: Moved to...
3066 * common/cleanups.h: New file.
3067 * cleanups.c: Moved to...
3068 * common/cleanups.c: New file. Include common-defs.h and
3069 cleanups.h. Do not include defs.h.
3070 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3071 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3072 (cleanups.o): New rule.
3074 2014-08-29 Gary Benson <gbenson@redhat.com>
3076 * common/errors.h (internal_warning): New declaration.
3077 (internal_vwarning): Likewise.
3078 * common/errors.c (internal_warning): New function.
3079 * utils.h (internal_warning): Don't declare.
3080 (internal_vwarning): Likewise.
3081 * utils.c (internal_warning): Removed.
3083 2014-08-29 Gary Benson <gbenson@redhat.com>
3085 * main.c (captured_main): Use warning during startup.
3086 Prefix startup warning messages with command name.
3088 2014-08-29 Gary Benson <gbenson@redhat.com>
3090 * main.c (captured_main): Handle usage errors with error.
3092 2014-08-29 Gary Benson <gbenson@redhat.com>
3094 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3095 exit pair with a call to error. Wrap the message with _().
3097 2014-08-29 Gary Benson <gbenson@redhat.com>
3099 * main.c (captured_main): Replace a fprintf/exit
3100 pair with a call to error. Wrap the message with _().
3102 2014-08-29 Gary Benson <gbenson@redhat.com>
3104 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3105 pairs with calls to error. Wrap the message with _().
3107 2014-08-29 Gary Benson <gbenson@redhat.com>
3109 * utils.c (vwarning): Protect calls to target_terminal_ours
3112 2014-08-29 Gary Benson <gbenson@redhat.com>
3114 * exceptions.c (print_flush): Protect calls to
3115 target_terminal_ours and wrap_here.
3117 2014-08-29 Gary Benson <gbenson@redhat.com>
3119 * utils.h (filtered_printing_initialized): New declaration.
3120 * utils.c (abort_with_message): New function.
3121 (internal_vproblem): Use abort_with_message for first level
3122 recursive internal problems, and if gdb_stderr is not set up.
3123 Protect calls to target_terminal_ours, begin_line and query.
3125 2014-08-28 Doug Evans <dje@google.com>
3127 * symtab.c (in_prologue): Move definition to better spot.
3128 (skip_prologue_using_sal): Ditto.
3130 2014-08-28 Doug Evans <dje@google.com>
3132 * symtab.c (find_function_start_sal): Move definition to better spot.
3134 2014-08-28 Yao Qi <yao@codesourcery.com>
3136 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3137 found_stack_adjust in forward scan. Remove condition check
3138 on found_stack_adjust which is always true. Indent the code.
3140 2014-08-28 Yao Qi <yao@codesourcery.com>
3142 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3143 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3144 (dwarf_decode_lines): Remove argument
3145 want_line_info. Remove condition check on want_line_info.
3148 2014-08-27 Doug Evans <dje@google.com>
3150 * dwarf2read.c (dwarf_record_line): Fix typo.
3152 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3154 * target.h (struct target_ops::to_terminal_save_ours): Remove
3156 (target_terminal_save_ours): Remove macro.
3157 * target-delegates.c: Regenerate.
3158 * inf-child.c (inf_child_target): Don't set the nonexistent
3159 field to_terminal_save_ours.
3160 * inferior.h (child_terminal_save_ours): Remove declaration.
3161 * terminal.h (gdb_save_tty_state): New declaration.
3162 * inflow.c (child_terminal_save_ours): Rename to ...
3163 (gdb_save_tty_state): ... this.
3164 * tui/tui.c: Include terminal.h.
3165 (tui_enable): Use gdb_save_tty_state instead of
3166 target_terminal_save_ours.
3167 (tui_disable): Likewise.
3169 2014-08-25 Doug Evans <dje@google.com>
3171 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3172 Pass NULL instead of 0 for context pointer.
3174 2014-08-25 Yao Qi <yao@codesourcery.com>
3176 * dwarf2read.c: Fix grammatical error.
3178 2014-08-24 Yao Qi <yao@codesourcery.com>
3180 * dwarf2read.c (scan_partial_symbols): Update comments.
3181 Rename argument 'need_pc' with 'set_addrmap'.
3182 (add_partial_namespace): Rename argument 'need_pc' with
3184 (add_partial_module): Likewise.
3185 (add_partial_subprogram): Likewise. Update comments.
3186 (dwarf2_name): Fix typo.
3188 2014-08-22 Doug Evans <dje@google.com>
3191 * dwarf2read.c (dwarf_record_line_p): New function.
3192 (dwarf_decode_lines_1): Ignore subsequent line number entries
3193 for the same line if any entry had a non-zero discriminator.
3195 2014-08-22 Doug Evans <dje@google.com>
3197 * buildsym.h (record_line_ftype): New typedef.
3198 (record_line): Use it.
3199 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3200 (dwarf_decode_lines_1): Call them.
3202 2014-08-22 Yao Qi <yao@codesourcery.com>
3204 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3205 (ctf_end): Remove code.
3207 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3209 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3210 (linux_make_corefile_notes): call update_thread_list, protected against
3213 2014-08-21 Pedro Alves <palves@redhat.com>
3215 * infcmd.c (attach_command): Remove comment.
3217 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3219 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3220 unsigned LONGEST to ULONGEST.
3222 2014-08-20 Pedro Alves <palves@redhat.com>
3224 * Makefile.in (check-read1): New rule.
3226 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3228 * value.c (value_from_contents_and_address): Strip resolved_type's
3229 typedef layers before checking its TYPE_DATA_LOCATION.
3231 2014-08-20 Pedro Alves <palves@redhat.com>
3233 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3235 2014-08-20 Yao Qi <yao@codesourcery.com>
3237 * amd64-tdep.c (amd64_classify): Add a blank line after the
3238 example. Move "*/" to a new line.
3239 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3240 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3241 * dwarf2read.c (psymtab_include_file_name): Likewise.
3243 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3244 Pedro Alves <palves@redhat.com>
3248 * ada-lang.c (coerce_unspec_val_to_type): Use
3249 value_contents_copy_raw.
3250 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3251 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3252 * cp-valprint.c (cp_print_value_fields): Let the common printing
3253 code handle optimized out values.
3254 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3255 * d-valprint.c (dynamic_array_type): Use
3256 value_bits_any_optimized_out.
3257 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3258 check_any_valid fields.
3259 (check_pieced_value_bits): Delete and inline ...
3260 (check_pieced_synthetic_pointer): ... here.
3261 (check_pieced_value_validity): Delete.
3262 (check_pieced_value_invalid): Delete.
3263 (pieced_value_funcs): Remove check_validity and check_any_valid
3265 (read_pieced_value): Use mark_value_bits_optimized_out.
3266 (write_pieced_value): Switch to use
3267 mark_value_bytes_optimized_out.
3268 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3269 of assuming the whole value is optimized out.
3270 * findvar.c (read_frame_register_value): Remove special handling
3271 of optimized out registers.
3272 (value_from_register): Use mark_value_bytes_optimized_out.
3273 * frame-unwind.c (frame_unwind_got_optimized): Use
3274 mark_value_bytes_optimized_out.
3275 * jv-valprint.c (java_value_print): Adjust.
3276 (java_print_value_fields): Let the common printing code handle
3277 optimized out values.
3278 * mips-tdep.c (mips_print_register): Remove special handling of
3279 optimized out registers.
3280 * opencl-lang.c (lval_func_check_validity): Delete.
3281 (lval_func_check_any_valid): Delete.
3282 (opencl_value_funcs): Remove check_validity and check_any_valid
3284 * p-valprint.c (pascal_object_print_value_fields): Let the common
3285 printing code handle optimized out values.
3286 * stack.c (read_frame_arg): Remove special handling of optimized
3287 out values. Fetch both VAL and ENTRYVAL before comparing
3288 contents. Adjust to value_available_contents_eq rename.
3289 * valprint.c (valprint_check_validity)
3290 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3291 (val_print_array_elements): Adjust.
3292 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3293 (value_bits_any_optimized_out): New function.
3294 (value_entirely_covered_by_range_vector): New function, factored
3295 out from value_entirely_unavailable.
3296 (value_entirely_unavailable): Reimplement.
3297 (value_entirely_optimized_out): New function.
3298 (insert_into_bit_range_vector): New function, factored out from
3299 mark_value_bits_unavailable.
3300 (mark_value_bits_unavailable): Reimplement.
3301 (struct ranges_and_idx): New struct.
3302 (find_first_range_overlap_and_match): New function, factored out
3303 from value_available_contents_bits_eq.
3304 (value_available_contents_bits_eq): Rename to ...
3305 (value_contents_bits_eq): ... this. Check both unavailable
3306 contents and optimized out contents.
3307 (value_available_contents_eq): Rename to ...
3308 (value_contents_eq): ... this.
3309 (allocate_value_lazy): Remove reference to the old optimized_out
3311 (allocate_optimized_out_value): Use
3312 mark_value_bytes_optimized_out.
3313 (require_not_optimized_out): Adjust to check whether the
3314 optimized_out vec is empty.
3315 (ranges_copy_adjusted): New function, factored out from
3316 value_contents_copy_raw.
3317 (value_contents_copy_raw): Also copy the optimized out ranges.
3318 Assert the destination ranges aren't optimized out.
3319 (value_contents_copy): Update comment, remove call to
3320 require_not_optimized_out.
3321 (value_contents_equal): Adjust to check whether the optimized_out
3323 (set_value_optimized_out, value_optimized_out_const): Delete.
3324 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3326 (value_entirely_optimized_out, value_bits_valid): Delete.
3327 (value_copy): Take a VEC copy of the 'optimized_out' field.
3328 (value_primitive_field): Remove special handling of optimized out.
3329 (value_fetch_lazy): Assert that lazy values have no unavailable
3330 regions. Use value_bits_any_optimized_out. Remove some special
3331 handling for optimized out values.
3332 * value.h: Add intro comment about <optimized out> and
3334 (struct lval_funcs): Remove check_validity and check_any_valid
3336 (set_value_optimized_out, value_optimized_out_const): Remove.
3337 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3339 (value_bits_any_optimized_out): New declaration.
3340 (value_bits_valid): Delete declaration.
3341 (value_available_contents_eq): Rename to ...
3342 (value_contents_eq): ... this, and extend comments.
3344 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3346 Fix -fsanitize=address on unreadable inferior strings.
3347 * valprint.c (val_print_string): Fix access before BUFFER.
3349 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3351 * target.c (target_struct_size): Remove.
3352 (target_struct_allocsize): Remove.
3353 (DEFAULT_ALLOCSIZE): Remove.
3354 (target_ops_p): New typedef.
3355 (DEF_VEC_P (target_ops_p)): New vector type.
3356 (target_structs): Change type to VEC (target_ops_p).
3357 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3358 (find_default_run_target): Rewrite for loop following changes to
3361 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3363 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3364 Adjust code accordingly. Adjust function description comment.
3366 2014-08-19 Yao Qi <yao@codesourcery.com>
3368 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3371 2014-08-19 Alan Modra <amodra@gmail.com>
3373 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3374 * config.in: Regenerate.
3375 * configure: Regenerate.
3377 2014-08-19 Tom Tromey <tromey@redhat.com>
3378 Gary Benson <gbenson@redhat.com>
3380 * common/common-debug.h: New file.
3381 * common/common-debug.c: Likewise.
3382 * debug.c: Likewise.
3383 * Makefile.in (SFILES): Add common/common-debug.c.
3384 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3385 (COMMON_OBS): Add common-debug.o and debug.o.
3386 (common-debug.o): New rule.
3387 * common/common-defs.h: Include common-debug.h.
3388 * common/agent.c (debug_agent_printf): New function.
3389 (DEBUG_AGENT): Redefine.
3390 * nat/i386-dregs.c (debug_printf): Undefine.
3392 2014-08-19 Gary Benson <gbenson@redhat.com>
3394 * common/common-defs.h: Include print-utils.h.
3395 * utils.h: Do not include print-utils.h.
3397 2014-08-19 Tom Tromey <tromey@redhat.com>
3398 Gary Benson <gbenson@redhat.com>
3400 * common/common-types.h: New file.
3401 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3402 * common/common-defs.h: Include common-types.h.
3403 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3406 2014-08-19 Tom Tromey <tromey@redhat.com>
3407 Gary Benson <gbenson@redhat.com>
3409 * common/errors.h: New file.
3410 * common/errors.c: Likewise.
3411 * Makefile.in (SFILES): Add common/errors.c.
3412 (HFILES_NO_SRCDIR): Add common/errors.h.
3413 (COMMON_OBS): Add errors.o.
3414 (errors.o): New rule.
3415 * common/common-defs.h: Include errors.h.
3416 * utils.h (perror_with_name, error, verror, warning, vwarning):
3418 * common/common-utils.h: (malloc_failure, internal_error):
3421 2014-08-19 Gary Benson <gbenson@redhat.com>
3423 * utils.c (internal_vproblem): Always print the message.
3425 2014-08-18 Doug Evans <dje@google.com>
3427 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3429 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3431 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3432 Return 0 if TYPE is dynamic.
3433 (print_range): Add handling of dynamic ranges.
3435 2014-08-18 Keven Boell <keven.boell@intel.com>
3436 Joel Brobecker <brobecker@adacore.com>
3438 * gdbtypes.h (struct main_type): Add field "data_location".
3439 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3440 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3441 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3442 a dynamic data location.
3443 (resolve_dynamic_type): Add DW_AT_data_location handling.
3444 (copy_recursive, copy_type): Copy the data_location information
3446 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3447 * value.c (value_from_contents_and_address): Add
3448 DW_AT_data_location handling.
3450 2014-08-18 Keven Boell <keven.boell@intel.com>
3451 Joel Brobecker <brobecker@adacore.com>
3453 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3454 field "get_object_address".
3455 * dwarf2expr.c (execute_stack_op): Add handling for
3456 DW_OP_push_object_address.
3457 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3458 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3459 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3460 (dwarf_expr_get_obj_addr): New function.
3461 (dwarf_expr_ctx_funcs): Add get_object_address field.
3462 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3463 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3464 (dwarf2_evaluate_property): Add parameter "address". Use it.
3465 (needs_get_obj_addr): New function.
3466 (needs_frame_ctx_funcs): Add get_object_address field.
3467 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3468 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3469 (resolve_dynamic_array): Likewise.
3471 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3473 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3474 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3475 fixed value for records and unions for which some GNAT encodings
3478 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3480 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3481 rewrite to avoid "else if" and "else" constructs. Should be
3482 a no-op in practice.
3484 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3486 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3489 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3492 * eval.c: Update all calls to find_overload_match.
3493 * valarith.c: Likewise.
3494 (value_user_defined_cpp_op, value_user_defined_op): New
3495 argument NOSIDE. Update all callers.
3496 * valops.c (find_overload_match): New argument NOSIDE.
3497 * value.h (find_overload_match): Update signature.
3499 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3501 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3502 'items' methods instead of 'iteritems' method on dictionaries.
3504 2014-08-15 Doug Evans <dje@google.com>
3506 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3509 2014-08-15 Doug Evans <dje@google.com>
3511 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3513 2014-08-15 Doug Evans <dje@google.com>
3515 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3517 2014-08-15 Doug Evans <dje@google.com>
3519 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3522 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3524 * dcache.h: Include target.h, to avoid compile time warnings.
3526 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3528 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3529 frame_info" partial declaration.
3530 * gdbarch.h: Regenerate.
3532 2014-08-15 Yao Qi <yao@codesourcery.com>
3534 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3535 Add parameter 'decode_for_pst_p'. Callers update.
3537 2014-08-13 Yao Qi <yao@codesourcery.com>
3540 * configure.ac: Use local variable 'pos'.
3541 * configure: Regenerated.
3543 2014-08-11 Doug Evans <dje@google.com>
3545 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3546 message, it is redundant with "Reading symbols from ..." message.
3548 2014-08-10 Doug Evans <xdje42@gmail.com>
3550 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3552 2014-08-09 Yao Qi <yao@codesourcery.com>
3555 * remote.c (remote_xfer_partial): Remove dead code.
3557 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3559 * ia64-linux-tdep.c: Include "regset.h".
3560 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3561 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3562 (ia64_linux_supply_fpregset): New function.
3563 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3564 (ia64_linux_regset_from_core_section): New function.
3565 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3568 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3570 * m68klinux-tdep.c: Include "regset.h".
3571 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3572 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3573 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3574 (m68k_linux_regset_from_core_section): New function.
3575 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3578 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3580 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3581 function. Move logic to...
3582 (tilegx_linux_regmap): ... this new register map.
3583 (tilegx_linux_regset): Refer to register map, replace supply
3584 method by regcache_supply_regset, and add collect method.
3585 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3586 TILEGX_FIRST_EASY_REGNUM.
3588 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3590 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3591 that calls regcache_supply_regset and handles the EPC register
3592 separately. Move main logic to...
3593 (score7_linux_gregmap): ... this new register map.
3594 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3595 (score7_linux_gregset): Refer to register map. Add collect method.
3596 (score7_linux_regset_from_core_section): Replace
3597 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3598 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3599 (struct regset): Delete unused forward declaraction.
3600 (struct pt_regs): Delete structure definition.
3601 (elf_gregset_t): Delete typedef.
3603 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3605 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3606 (nios2_core_regset): Add collect method.
3608 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3610 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3611 platform-independent and don't write to read-only input buffer.
3612 (m32r_linux_collect_gregset): New function.
3613 (m32r_linux_gregset): Add collect method.
3615 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3617 * hppa-linux-tdep.c (greg_map): Rename to...
3618 (hppa_linux_gregmap): ... this. Also convert to
3619 regcache_map_entry format.
3620 (hppa_linux_supply_regset): Delete function.
3621 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3622 (hppa_linux_fpregmap): ... this new register map.
3623 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3624 register map, replace supply method by regcache_supply_regset, and
3625 add collect method regcache_collect_regset.
3627 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3629 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3630 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3631 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3632 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3633 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3634 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3635 (frv_linux_supply_gregset): Replace main logic by call to
3636 regcache_supply_regset, but keep clearing gr32-gr63.
3637 (frv_linux_supply_fpregset): Delete function.
3638 (frv_linux_gregset): Refer to appropriate register map and add
3639 regcache_collect_regset as the collect method.
3640 (frv_linux_fpregset): Likewise. Also exchange the supply method
3641 by regcache_supply_regset.
3643 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3645 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3646 by call to alpha_supply_int_regs.
3647 (alpha_linux_collect_gregset): New function.
3648 (alpha_linux_supply_fpregset): Replace logic by call to
3649 alpha_supply_fp_regs.
3650 (alpha_linux_collect_fpregset): New function.
3651 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3653 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3655 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3656 by call to regcache_collect_regset.
3657 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3658 instead of aarch64_linux_supply_gregset/_fpregset.
3659 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3660 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3661 header file instead.
3662 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3663 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3664 functions. Move logic to ...
3665 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3667 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3668 refer to new register maps, replace *_regset_from_core by
3669 regcache_supply_regset, and also use regcache_collect_regset.
3670 * aarch64-linux-tdep.h: Include "regset.h".
3671 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3673 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3674 macros, moved from C source file.
3675 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3676 variable declarations.
3678 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3680 * s390-linux-nat.c: Include "regset.h".
3681 (regmap_gregset): Delete macro.
3682 (s390_64_regmap_gregset): New register map for
3683 regcache_supply/_collect_regset.
3684 (s390_64_gregset): New regset.
3685 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3686 (regmap_fpregset): Delete macro.
3687 (s390_native_supply, s390_native_collect): Delete functions.
3688 (supply_gregset, fill_gregset): Replace s390-specific regmap
3689 handling by a call to regcache_supply/_collect_regset.
3690 (supply_fpregset, fill_fpregset): Call regcache_supply/
3691 _collect_regset instead of s390_native_supply/_collect.
3692 (fetch_regset, store_regset): Likewise. Also change the last
3693 parameter to a regset instead of a regmap.
3694 (s390_linux_fetch_inferior_registers)
3695 (390_linux_store_inferior_registers): Adjust last parameter in
3696 calls to fetch_regset and store_regset.
3697 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3698 (s390_gregmap): ... this. Also make static const and convert to
3699 regcache_map_entry format.
3700 (s390x_regmap_gregset): Delete.
3701 (s390_regmap_fpregset): Rename to...
3702 (s390_fpregmap): ... this. Make static const and convert to
3703 regcache_map_entry format.
3704 (s390_regmap_upper, s390_regmap_last_break)
3705 (s390x_regmap_last_break, s390_regmap_system_call)
3706 (s390_regmap_tdb): Likewise.
3707 (s390_supply_regset, s390_collect_regset): Remove functions.
3708 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3710 (s390_gregset, s390_fpregset, s390_upper_regset)
3711 (s390_last_break_regset, s390x_last_break_regset)
3712 (s390_system_call_regset, s390_tdb_regset): Make global and
3713 replace s390_supply/_collect_regset by regcache_supply/
3715 (s390x_gregset): Delete.
3716 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3717 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3718 (s390_regmap_fpregset, s390_regmap_last_break)
3719 (s390x_regmap_last_break, s390_regmap_system_call)
3720 (s390_regmap_tdb): Delete global variable declarations.
3721 (s390_gregset, s390_fpregset, s390_last_break_regset)
3722 (s390x_last_break_regset, s390_system_call_regset)
3723 (s390_tdb_regset): New global variable declarations.
3725 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3727 * regcache.c: Include "regset.h".
3728 (regcache_transfer_regset): New local function.
3729 (regcache_supply_regset, regcache_collect_regset): New functions.
3730 * regcache.h (struct regcache_map_entry): New structure.
3731 (REGCACHE_MAP_SKIP): New enum value.
3732 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3734 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3736 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3737 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3738 (ppc_linux_collect_gregset ): Likewise.
3739 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3740 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3741 (ppc_collect_vrregset): Likewise.
3742 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3745 2014-08-07 Yao Qi <yao@codesourcery.com>
3747 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3748 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3749 * remote.c (remote_read_bytes): Likewise.
3751 2014-08-07 Yao Qi <yao@codesourcery.com>
3753 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3755 2014-08-07 Yao Qi <yao@codesourcery.com>
3758 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3759 TARGET_XFER_OK instead of 0.
3761 2014-08-07 Gary Benson <gbenson@redhat.com>
3763 * common/common-defs.h: Include errno.h.
3764 * defs.h: Do not include errno.h.
3765 * ada-typeprint.c: Likewise.
3766 * c-typeprint.c: Likewise.
3767 * core-regset.c: Likewise.
3768 * corefile.c: Likewise.
3769 * corelow.c: Likewise.
3770 * event-loop.c: Likewise.
3771 * f-typeprint.c: Likewise.
3772 * gnu-nat.c: Likewise.
3773 * go32-nat.c: Likewise.
3774 * i386gnu-nat.c: Likewise.
3775 * m2-typeprint.c: Likewise.
3776 * nat/linux-btrace.c: Likewise.
3777 * p-typeprint.c: Likewise.
3778 * procfs.c: Likewise.
3779 * remote-sim.c: Likewise.
3780 * rs6000-nat.c: Likewise.
3781 * target.c: Likewise.
3782 * typeprint.c: Likewise.
3783 * ui-file.c: Likewise.
3784 * valops.c: Likewise.
3785 * valprint.c: Likewise.
3787 2014-08-07 Gary Benson <gbenson@redhat.com>
3789 * common/common-defs.h: Include string.h.
3790 * aarch64-tdep.c: Do not include string.h.
3791 * ada-exp.y: Likewise.
3792 * ada-lang.c: Likewise.
3793 * ada-lex.l: Likewise.
3794 * ada-typeprint.c: Likewise.
3795 * ada-valprint.c: Likewise.
3796 * aix-thread.c: Likewise.
3797 * alpha-linux-tdep.c: Likewise.
3798 * alpha-mdebug-tdep.c: Likewise.
3799 * alpha-nat.c: Likewise.
3800 * alpha-osf1-tdep.c: Likewise.
3801 * alpha-tdep.c: Likewise.
3802 * alphanbsd-tdep.c: Likewise.
3803 * amd64-dicos-tdep.c: Likewise.
3804 * amd64-linux-tdep.c: Likewise.
3805 * amd64-nat.c: Likewise.
3806 * amd64-sol2-tdep.c: Likewise.
3807 * amd64fbsd-tdep.c: Likewise.
3808 * amd64obsd-tdep.c: Likewise.
3809 * arch-utils.c: Likewise.
3810 * arm-linux-nat.c: Likewise.
3811 * arm-linux-tdep.c: Likewise.
3812 * arm-tdep.c: Likewise.
3813 * arm-wince-tdep.c: Likewise.
3814 * armbsd-tdep.c: Likewise.
3815 * armnbsd-nat.c: Likewise.
3816 * armnbsd-tdep.c: Likewise.
3817 * armobsd-tdep.c: Likewise.
3818 * avr-tdep.c: Likewise.
3819 * ax-gdb.c: Likewise.
3820 * ax-general.c: Likewise.
3821 * bcache.c: Likewise.
3822 * bfin-tdep.c: Likewise.
3823 * breakpoint.c: Likewise.
3824 * build-id.c: Likewise.
3825 * buildsym.c: Likewise.
3826 * c-exp.y: Likewise.
3827 * c-lang.c: Likewise.
3828 * c-typeprint.c: Likewise.
3829 * c-valprint.c: Likewise.
3830 * charset.c: Likewise.
3831 * cli-out.c: Likewise.
3832 * cli/cli-cmds.c: Likewise.
3833 * cli/cli-decode.c: Likewise.
3834 * cli/cli-dump.c: Likewise.
3835 * cli/cli-interp.c: Likewise.
3836 * cli/cli-logging.c: Likewise.
3837 * cli/cli-script.c: Likewise.
3838 * cli/cli-setshow.c: Likewise.
3839 * cli/cli-utils.c: Likewise.
3840 * coffread.c: Likewise.
3841 * common/agent.c: Likewise.
3842 * common/buffer.c: Likewise.
3843 * common/buffer.h: Likewise.
3844 * common/common-utils.c: Likewise.
3845 * common/filestuff.c: Likewise.
3846 * common/filestuff.c: Likewise.
3847 * common/format.c: Likewise.
3848 * common/print-utils.c: Likewise.
3849 * common/rsp-low.c: Likewise.
3850 * common/signals.c: Likewise.
3851 * common/vec.h: Likewise.
3852 * common/xml-utils.c: Likewise.
3853 * core-regset.c: Likewise.
3854 * corefile.c: Likewise.
3855 * corelow.c: Likewise.
3856 * cp-abi.c: Likewise.
3857 * cp-name-parser.y: Likewise.
3858 * cp-support.c: Likewise.
3859 * cp-valprint.c: Likewise.
3860 * cris-tdep.c: Likewise.
3861 * d-exp.y: Likewise.
3862 * darwin-nat.c: Likewise.
3863 * dbxread.c: Likewise.
3864 * dcache.c: Likewise.
3865 * demangle.c: Likewise.
3866 * dicos-tdep.c: Likewise.
3867 * disasm.c: Likewise.
3868 * doublest.c: Likewise.
3869 * dsrec.c: Likewise.
3870 * dummy-frame.c: Likewise.
3871 * dwarf2-frame.c: Likewise.
3872 * dwarf2loc.c: Likewise.
3873 * dwarf2read.c: Likewise.
3874 * elfread.c: Likewise.
3875 * environ.c: Likewise.
3877 * event-loop.c: Likewise.
3878 * exceptions.c: Likewise.
3880 * expprint.c: Likewise.
3881 * f-exp.y: Likewise.
3882 * f-lang.c: Likewise.
3883 * f-typeprint.c: Likewise.
3884 * f-valprint.c: Likewise.
3885 * fbsd-nat.c: Likewise.
3886 * findcmd.c: Likewise.
3887 * findvar.c: Likewise.
3888 * fork-child.c: Likewise.
3889 * frame.c: Likewise.
3890 * frv-linux-tdep.c: Likewise.
3891 * frv-tdep.c: Likewise.
3893 * gdb_bfd.c: Likewise.
3894 * gdbarch.c: Likewise.
3895 * gdbarch.sh: Likewise.
3896 * gdbtypes.c: Likewise.
3897 * gnu-nat.c: Likewise.
3898 * gnu-v2-abi.c: Likewise.
3899 * gnu-v3-abi.c: Likewise.
3900 * go-exp.y: Likewise.
3901 * go-lang.c: Likewise.
3902 * go32-nat.c: Likewise.
3903 * guile/guile.c: Likewise.
3904 * guile/scm-auto-load.c: Likewise.
3905 * hppa-hpux-tdep.c: Likewise.
3906 * hppa-linux-nat.c: Likewise.
3907 * hppanbsd-tdep.c: Likewise.
3908 * hppaobsd-tdep.c: Likewise.
3909 * i386-cygwin-tdep.c: Likewise.
3910 * i386-dicos-tdep.c: Likewise.
3911 * i386-linux-tdep.c: Likewise.
3912 * i386-nto-tdep.c: Likewise.
3913 * i386-sol2-tdep.c: Likewise.
3914 * i386-tdep.c: Likewise.
3915 * i386bsd-tdep.c: Likewise.
3916 * i386gnu-nat.c: Likewise.
3917 * i386nbsd-tdep.c: Likewise.
3918 * i386obsd-tdep.c: Likewise.
3919 * i387-tdep.c: Likewise.
3920 * ia64-libunwind-tdep.c: Likewise.
3921 * ia64-linux-nat.c: Likewise.
3922 * inf-child.c: Likewise.
3923 * inf-ptrace.c: Likewise.
3924 * inf-ttrace.c: Likewise.
3925 * infcall.c: Likewise.
3926 * infcmd.c: Likewise.
3927 * inflow.c: Likewise.
3928 * infrun.c: Likewise.
3929 * interps.c: Likewise.
3930 * iq2000-tdep.c: Likewise.
3931 * irix5-nat.c: Likewise.
3932 * jv-exp.y: Likewise.
3933 * jv-lang.c: Likewise.
3934 * jv-typeprint.c: Likewise.
3935 * jv-valprint.c: Likewise.
3936 * language.c: Likewise.
3937 * linux-fork.c: Likewise.
3938 * linux-nat.c: Likewise.
3939 * lm32-tdep.c: Likewise.
3940 * m2-exp.y: Likewise.
3941 * m2-typeprint.c: Likewise.
3942 * m32c-tdep.c: Likewise.
3943 * m32r-linux-nat.c: Likewise.
3944 * m32r-linux-tdep.c: Likewise.
3945 * m32r-rom.c: Likewise.
3946 * m32r-tdep.c: Likewise.
3947 * m68hc11-tdep.c: Likewise.
3948 * m68k-tdep.c: Likewise.
3949 * m68kbsd-tdep.c: Likewise.
3950 * m68klinux-nat.c: Likewise.
3951 * m68klinux-tdep.c: Likewise.
3952 * m88k-tdep.c: Likewise.
3953 * machoread.c: Likewise.
3954 * macrocmd.c: Likewise.
3956 * mdebugread.c: Likewise.
3957 * mem-break.c: Likewise.
3958 * memattr.c: Likewise.
3959 * memory-map.c: Likewise.
3960 * mep-tdep.c: Likewise.
3961 * mi/mi-cmd-break.c: Likewise.
3962 * mi/mi-cmd-disas.c: Likewise.
3963 * mi/mi-cmd-env.c: Likewise.
3964 * mi/mi-cmd-stack.c: Likewise.
3965 * mi/mi-cmd-var.c: Likewise.
3966 * mi/mi-cmds.c: Likewise.
3967 * mi/mi-console.c: Likewise.
3968 * mi/mi-getopt.c: Likewise.
3969 * mi/mi-interp.c: Likewise.
3970 * mi/mi-main.c: Likewise.
3971 * mi/mi-parse.c: Likewise.
3972 * microblaze-rom.c: Likewise.
3973 * microblaze-tdep.c: Likewise.
3974 * mingw-hdep.c: Likewise.
3975 * minidebug.c: Likewise.
3976 * minsyms.c: Likewise.
3977 * mips-irix-tdep.c: Likewise.
3978 * mips-linux-tdep.c: Likewise.
3979 * mips-tdep.c: Likewise.
3980 * mips64obsd-tdep.c: Likewise.
3981 * mipsnbsd-tdep.c: Likewise.
3982 * mipsread.c: Likewise.
3983 * mn10300-linux-tdep.c: Likewise.
3984 * mn10300-tdep.c: Likewise.
3985 * monitor.c: Likewise.
3986 * moxie-tdep.c: Likewise.
3987 * mt-tdep.c: Likewise.
3988 * nat/linux-btrace.c: Likewise.
3989 * nat/linux-osdata.c: Likewise.
3990 * nat/linux-procfs.c: Likewise.
3991 * nat/linux-ptrace.c: Likewise.
3992 * nat/linux-waitpid.c: Likewise.
3993 * nbsd-tdep.c: Likewise.
3994 * nios2-linux-tdep.c: Likewise.
3995 * nto-procfs.c: Likewise.
3996 * nto-tdep.c: Likewise.
3997 * objc-lang.c: Likewise.
3998 * objfiles.c: Likewise.
3999 * opencl-lang.c: Likewise.
4000 * osabi.c: Likewise.
4001 * osdata.c: Likewise.
4002 * p-exp.y: Likewise.
4003 * p-lang.c: Likewise.
4004 * p-typeprint.c: Likewise.
4005 * parse.c: Likewise.
4006 * posix-hdep.c: Likewise.
4007 * ppc-linux-nat.c: Likewise.
4008 * ppc-sysv-tdep.c: Likewise.
4009 * ppcfbsd-tdep.c: Likewise.
4010 * ppcnbsd-tdep.c: Likewise.
4011 * ppcobsd-tdep.c: Likewise.
4012 * printcmd.c: Likewise.
4013 * procfs.c: Likewise.
4014 * prologue-value.c: Likewise.
4015 * python/py-auto-load.c: Likewise.
4016 * python/py-gdb-readline.c: Likewise.
4017 * ravenscar-thread.c: Likewise.
4018 * regcache.c: Likewise.
4019 * registry.c: Likewise.
4020 * remote-fileio.c: Likewise.
4021 * remote-m32r-sdi.c: Likewise.
4022 * remote-mips.c: Likewise.
4023 * remote-notif.c: Likewise.
4024 * remote-sim.c: Likewise.
4025 * remote.c: Likewise.
4026 * reverse.c: Likewise.
4027 * rs6000-aix-tdep.c: Likewise.
4028 * ser-base.c: Likewise.
4029 * ser-go32.c: Likewise.
4030 * ser-mingw.c: Likewise.
4031 * ser-pipe.c: Likewise.
4032 * ser-tcp.c: Likewise.
4033 * ser-unix.c: Likewise.
4034 * serial.c: Likewise.
4035 * sh-tdep.c: Likewise.
4036 * sh64-tdep.c: Likewise.
4037 * shnbsd-tdep.c: Likewise.
4039 * sol-thread.c: Likewise.
4040 * solib-dsbt.c: Likewise.
4041 * solib-frv.c: Likewise.
4042 * solib-osf.c: Likewise.
4043 * solib-som.c: Likewise.
4044 * solib-spu.c: Likewise.
4045 * solib-target.c: Likewise.
4046 * solib.c: Likewise.
4047 * somread.c: Likewise.
4048 * source.c: Likewise.
4049 * sparc-nat.c: Likewise.
4050 * sparc-sol2-tdep.c: Likewise.
4051 * sparc-tdep.c: Likewise.
4052 * sparc64-tdep.c: Likewise.
4053 * sparc64fbsd-tdep.c: Likewise.
4054 * sparc64nbsd-tdep.c: Likewise.
4055 * sparcnbsd-tdep.c: Likewise.
4056 * spu-linux-nat.c: Likewise.
4057 * spu-multiarch.c: Likewise.
4058 * spu-tdep.c: Likewise.
4059 * stabsread.c: Likewise.
4060 * stack.c: Likewise.
4061 * std-regs.c: Likewise.
4062 * symfile.c: Likewise.
4063 * symmisc.c: Likewise.
4064 * symtab.c: Likewise.
4065 * target.c: Likewise.
4066 * thread.c: Likewise.
4067 * tilegx-linux-nat.c: Likewise.
4068 * tilegx-tdep.c: Likewise.
4070 * tracepoint.c: Likewise.
4071 * tui/tui-command.c: Likewise.
4072 * tui/tui-data.c: Likewise.
4073 * tui/tui-disasm.c: Likewise.
4074 * tui/tui-file.c: Likewise.
4075 * tui/tui-layout.c: Likewise.
4076 * tui/tui-out.c: Likewise.
4077 * tui/tui-regs.c: Likewise.
4078 * tui/tui-source.c: Likewise.
4079 * tui/tui-stack.c: Likewise.
4080 * tui/tui-win.c: Likewise.
4081 * tui/tui-windata.c: Likewise.
4082 * tui/tui-winsource.c: Likewise.
4083 * typeprint.c: Likewise.
4084 * ui-file.c: Likewise.
4085 * ui-out.c: Likewise.
4086 * user-regs.c: Likewise.
4087 * utils.c: Likewise.
4088 * v850-tdep.c: Likewise.
4089 * valarith.c: Likewise.
4090 * valops.c: Likewise.
4091 * valprint.c: Likewise.
4092 * value.c: Likewise.
4093 * varobj.c: Likewise.
4094 * vax-tdep.c: Likewise.
4095 * vaxnbsd-tdep.c: Likewise.
4096 * vaxobsd-tdep.c: Likewise.
4097 * windows-nat.c: Likewise.
4098 * xcoffread.c: Likewise.
4099 * xml-support.c: Likewise.
4100 * xstormy16-tdep.c: Likewise.
4101 * xtensa-linux-nat.c: Likewise.
4103 2014-08-07 Gary Benson <gbenson@redhat.com>
4105 * common/common-defs.h: Include gdb_assert.h.
4106 * aarch64-tdep.c: Do not include gdb_assert.h.
4107 * addrmap.c: Likewise.
4108 * aix-thread.c: Likewise.
4109 * alpha-linux-tdep.c: Likewise.
4110 * alpha-mdebug-tdep.c: Likewise.
4111 * alphanbsd-tdep.c: Likewise.
4112 * amd64-nat.c: Likewise.
4113 * amd64-tdep.c: Likewise.
4114 * amd64bsd-nat.c: Likewise.
4115 * amd64fbsd-nat.c: Likewise.
4116 * amd64fbsd-tdep.c: Likewise.
4117 * amd64nbsd-nat.c: Likewise.
4118 * amd64nbsd-tdep.c: Likewise.
4119 * amd64obsd-nat.c: Likewise.
4120 * amd64obsd-tdep.c: Likewise.
4121 * arch-utils.c: Likewise.
4122 * arm-tdep.c: Likewise.
4123 * armbsd-tdep.c: Likewise.
4125 * bcache.c: Likewise.
4126 * bfin-tdep.c: Likewise.
4127 * blockframe.c: Likewise.
4128 * breakpoint.c: Likewise.
4129 * bsd-kvm.c: Likewise.
4130 * bsd-uthread.c: Likewise.
4131 * buildsym.c: Likewise.
4132 * c-exp.y: Likewise.
4133 * c-lang.c: Likewise.
4134 * charset.c: Likewise.
4135 * cleanups.c: Likewise.
4136 * cli-out.c: Likewise.
4137 * cli/cli-decode.c: Likewise.
4138 * cli/cli-dump.c: Likewise.
4139 * cli/cli-logging.c: Likewise.
4140 * cli/cli-script.c: Likewise.
4141 * cli/cli-utils.c: Likewise.
4142 * coffread.c: Likewise.
4143 * common/common-utils.c: Likewise.
4144 * common/queue.h: Likewise.
4145 * common/signals.c: Likewise.
4146 * common/vec.h: Likewise.
4147 * complaints.c: Likewise.
4148 * completer.c: Likewise.
4149 * corelow.c: Likewise.
4150 * cp-abi.c: Likewise.
4151 * cp-name-parser.y: Likewise.
4152 * cp-namespace.c: Likewise.
4153 * cp-support.c: Likewise.
4154 * cris-tdep.c: Likewise.
4155 * dbxread.c: Likewise.
4156 * dictionary.c: Likewise.
4157 * doublest.c: Likewise.
4158 * dsrec.c: Likewise.
4159 * dummy-frame.c: Likewise.
4160 * dwarf2-frame-tailcall.c: Likewise.
4161 * dwarf2-frame.c: Likewise.
4162 * dwarf2expr.c: Likewise.
4163 * dwarf2loc.c: Likewise.
4164 * dwarf2read.c: Likewise.
4166 * event-loop.c: Likewise.
4167 * exceptions.c: Likewise.
4168 * expprint.c: Likewise.
4169 * f-valprint.c: Likewise.
4170 * fbsd-nat.c: Likewise.
4171 * findvar.c: Likewise.
4172 * frame-unwind.c: Likewise.
4173 * frame.c: Likewise.
4174 * frv-tdep.c: Likewise.
4175 * gcore.c: Likewise.
4176 * gdb-dlfcn.c: Likewise.
4177 * gdb_bfd.c: Likewise.
4178 * gdbarch.c: Likewise.
4179 * gdbarch.sh: Likewise.
4180 * gdbtypes.c: Likewise.
4181 * gnu-nat.c: Likewise.
4182 * gnu-v3-abi.c: Likewise.
4183 * go-lang.c: Likewise.
4184 * guile/scm-exception.c: Likewise.
4185 * guile/scm-gsmob.c: Likewise.
4186 * guile/scm-lazy-string.c: Likewise.
4187 * guile/scm-math.c: Likewise.
4188 * guile/scm-pretty-print.c: Likewise.
4189 * guile/scm-safe-call.c: Likewise.
4190 * guile/scm-utils.c: Likewise.
4191 * guile/scm-value.c: Likewise.
4192 * h8300-tdep.c: Likewise.
4193 * hppa-hpux-nat.c: Likewise.
4194 * hppa-tdep.c: Likewise.
4195 * hppanbsd-tdep.c: Likewise.
4196 * hppaobsd-tdep.c: Likewise.
4197 * i386-darwin-nat.c: Likewise.
4198 * i386-darwin-tdep.c: Likewise.
4199 * i386-nto-tdep.c: Likewise.
4200 * i386-tdep.c: Likewise.
4201 * i386bsd-nat.c: Likewise.
4202 * i386fbsd-tdep.c: Likewise.
4203 * i386gnu-nat.c: Likewise.
4204 * i386nbsd-tdep.c: Likewise.
4205 * i386obsd-tdep.c: Likewise.
4206 * i387-tdep.c: Likewise.
4207 * ia64-libunwind-tdep.c: Likewise.
4208 * ia64-tdep.c: Likewise.
4209 * inf-ptrace.c: Likewise.
4210 * inf-ttrace.c: Likewise.
4211 * infcall.c: Likewise.
4212 * infcmd.c: Likewise.
4213 * infrun.c: Likewise.
4214 * inline-frame.c: Likewise.
4215 * interps.c: Likewise.
4216 * jv-lang.c: Likewise.
4217 * jv-typeprint.c: Likewise.
4218 * linux-fork.c: Likewise.
4219 * linux-nat.c: Likewise.
4220 * linux-thread-db.c: Likewise.
4221 * m32c-tdep.c: Likewise.
4222 * m32r-linux-nat.c: Likewise.
4223 * m32r-tdep.c: Likewise.
4224 * m68k-tdep.c: Likewise.
4225 * m68kbsd-nat.c: Likewise.
4226 * m68kbsd-tdep.c: Likewise.
4227 * m88k-tdep.c: Likewise.
4228 * machoread.c: Likewise.
4229 * macroexp.c: Likewise.
4230 * macrotab.c: Likewise.
4231 * maint.c: Likewise.
4232 * mdebugread.c: Likewise.
4233 * memory-map.c: Likewise.
4234 * mep-tdep.c: Likewise.
4235 * mi/mi-common.c: Likewise.
4236 * microblaze-tdep.c: Likewise.
4237 * mingw-hdep.c: Likewise.
4238 * mips-linux-nat.c: Likewise.
4239 * mips-linux-tdep.c: Likewise.
4240 * mips-tdep.c: Likewise.
4241 * mips64obsd-tdep.c: Likewise.
4242 * mipsnbsd-tdep.c: Likewise.
4243 * mn10300-linux-tdep.c: Likewise.
4244 * mn10300-tdep.c: Likewise.
4245 * moxie-tdep.c: Likewise.
4246 * mt-tdep.c: Likewise.
4247 * nat/linux-btrace.c: Likewise.
4248 * nat/linux-osdata.c: Likewise.
4249 * nat/linux-ptrace.c: Likewise.
4250 * nat/mips-linux-watch.c: Likewise.
4251 * nios2-linux-tdep.c: Likewise.
4252 * nios2-tdep.c: Likewise.
4253 * objc-lang.c: Likewise.
4254 * objfiles.c: Likewise.
4255 * obsd-nat.c: Likewise.
4256 * opencl-lang.c: Likewise.
4257 * osabi.c: Likewise.
4258 * parse.c: Likewise.
4259 * ppc-linux-nat.c: Likewise.
4260 * ppc-sysv-tdep.c: Likewise.
4261 * ppcfbsd-nat.c: Likewise.
4262 * ppcfbsd-tdep.c: Likewise.
4263 * ppcnbsd-nat.c: Likewise.
4264 * ppcnbsd-tdep.c: Likewise.
4265 * ppcobsd-nat.c: Likewise.
4266 * ppcobsd-tdep.c: Likewise.
4267 * printcmd.c: Likewise.
4268 * procfs.c: Likewise.
4269 * prologue-value.c: Likewise.
4270 * psymtab.c: Likewise.
4271 * python/py-lazy-string.c: Likewise.
4272 * python/py-value.c: Likewise.
4273 * regcache.c: Likewise.
4274 * reggroups.c: Likewise.
4275 * registry.c: Likewise.
4276 * remote-sim.c: Likewise.
4277 * remote.c: Likewise.
4278 * rs6000-aix-tdep.c: Likewise.
4279 * rs6000-tdep.c: Likewise.
4280 * s390-linux-tdep.c: Likewise.
4281 * score-tdep.c: Likewise.
4282 * ser-base.c: Likewise.
4283 * ser-mingw.c: Likewise.
4284 * sh-tdep.c: Likewise.
4285 * sh64-tdep.c: Likewise.
4286 * solib-darwin.c: Likewise.
4287 * solib-spu.c: Likewise.
4288 * solib-svr4.c: Likewise.
4289 * source.c: Likewise.
4290 * sparc-nat.c: Likewise.
4291 * sparc-sol2-tdep.c: Likewise.
4292 * sparc-tdep.c: Likewise.
4293 * sparc64-sol2-tdep.c: Likewise.
4294 * sparc64-tdep.c: Likewise.
4295 * sparc64fbsd-tdep.c: Likewise.
4296 * sparc64nbsd-tdep.c: Likewise.
4297 * sparc64obsd-tdep.c: Likewise.
4298 * sparcnbsd-tdep.c: Likewise.
4299 * sparcobsd-tdep.c: Likewise.
4300 * spu-multiarch.c: Likewise.
4301 * spu-tdep.c: Likewise.
4302 * stabsread.c: Likewise.
4303 * stack.c: Likewise.
4304 * symfile.c: Likewise.
4305 * symtab.c: Likewise.
4306 * target-descriptions.c: Likewise.
4307 * target-memory.c: Likewise.
4308 * target.c: Likewise.
4309 * tic6x-linux-tdep.c: Likewise.
4310 * tic6x-tdep.c: Likewise.
4311 * tilegx-linux-nat.c: Likewise.
4312 * tilegx-tdep.c: Likewise.
4314 * tramp-frame.c: Likewise.
4315 * tui/tui-out.c: Likewise.
4316 * tui/tui-winsource.c: Likewise.
4317 * ui-out.c: Likewise.
4318 * user-regs.c: Likewise.
4319 * utils.c: Likewise.
4320 * v850-tdep.c: Likewise.
4321 * valops.c: Likewise.
4322 * value.c: Likewise.
4323 * varobj.c: Likewise.
4324 * vax-nat.c: Likewise.
4325 * xml-syscall.c: Likewise.
4326 * xml-tdesc.c: Likewise.
4327 * xstormy16-tdep.c: Likewise.
4328 * xtensa-linux-nat.c: Likewise.
4329 * xtensa-tdep.c: Likewise.
4331 2014-08-07 Gary Benson <gbenson@redhat.com>
4333 * common/common-defs.h: Include common-utils.h.
4334 * defs.h: Do not include common-utils.h.
4335 * common/gdb_assert.h: Likewise.
4336 * darwin-nat.h: Likewise.
4337 * nat/linux-btrace.c: Likewise.
4338 * target/waitstatus.h: Likewise.
4340 2014-08-07 Gary Benson <gbenson@redhat.com>
4342 * common/common-defs.h: Include ptid.h.
4343 * defs.h: Do not include ptid.h.
4344 * inferior.h: Likewise.
4345 * infrun.h: Likewise.
4346 * nat/linux-btrace.h: Likewise.
4347 * nat/linux-osdata.h: Likewise.
4348 * target/waitstatus.h: Likewise.
4350 2014-08-07 Gary Benson <gbenson@redhat.com>
4352 * common/common-defs.h: Include gdb_locale.h.
4353 * defs.h: Do not include gdb_locale.h.
4355 2014-08-07 Gary Benson <gbenson@redhat.com>
4357 * common/common-defs.h: Include gdb/signals.h.
4358 * defs.h: Do not include gdb/signals.h.
4360 2014-08-07 Gary Benson <gbenson@redhat.com>
4362 * common/common-defs.h: Include pathmax.h.
4363 * defs.h: Do not include pathmax.h.
4365 2014-08-07 Gary Benson <gbenson@redhat.com>
4367 * common/common-defs.h: Include libiberty.h.
4368 * defs.h: Do not include libiberty.h.
4369 * common/queue.h: Likewise.
4370 * cp-name-parser.y: Likewise.
4371 * mi/mi-cmd-catch.c: Likewise.
4372 * python/python.c: Likewise.
4374 2014-08-07 Gary Benson <gbenson@redhat.com>
4376 * common/common-defs.h: Include ansidecl.h.
4377 * defs.h: Do not include ansidecl.h.
4378 * common/buffer.h: Likewise.
4379 * common/common-utils.h: Likewise.
4381 2014-08-07 Gary Benson <gbenson@redhat.com>
4383 * common/common-defs.h: Include stddef.h.
4384 * defs.h: Do not include stddef.h.
4385 * common/common-utils.h: Likewise.
4386 * amd64fbsd-nat.c: Likewise.
4387 * bcache.c: Likewise.
4388 * charset.c: Likewise.
4389 * common/buffer.h: Likewise.
4390 * common/vec.h: Likewise.
4391 * i386bsd-nat.c: Likewise.
4392 * nat/linux-btrace.h: Likewise.
4393 * ppcfbsd-nat.c: Likewise.
4394 * ppcnbsd-tdep.h: Likewise.
4395 * ppcobsd-nat.c: Likewise.
4396 * ppcobsd-tdep.h: Likewise.
4397 * python/py-gdb-readline.c: Likewise.
4399 2014-08-07 Gary Benson <gbenson@redhat.com>
4401 * common/common-defs.h: Include stdarg.h.
4402 * defs.h: Do not include stdarg.h.
4403 * ada-lang.c: Likewise.
4404 * common/common-utils.h: Likewise.
4405 * guile/scm-string.c: Likewise.
4406 * guile/scm-utils.c: Likewise.
4407 * m32c-tdep.c: Likewise.
4409 2014-08-07 Gary Benson <gbenson@redhat.com>
4411 * common/common-defs.h: Include stdlib.h.
4412 * defs.h: Do not include stdlib.h.
4413 * addrmap.c: Likewise.
4414 * bcache.c: Likewise.
4415 * common/buffer.c: Likewise.
4416 * common/common-utils.c: Likewise.
4417 * cp-name-parser.y: Likewise.
4418 * go32-nat.c: Likewise.
4419 * mn10300-linux-tdep.c: Likewise.
4420 * nat/linux-osdata.c: Likewise.
4421 * tui/tui.c: Likewise.
4422 * windows-nat.c: Likewise.
4424 2014-08-07 Gary Benson <gbenson@redhat.com>
4426 * common/common-defs.h: Include stdio.h.
4427 * defs.h: Do not include stdio.h.
4428 * ada-lang.c: Likewise.
4429 * common/buffer.c: Likewise.
4430 * common/common-utils.c: Likewise.
4431 * cp-name-parser.y: Likewise.
4432 * gnu-nat.c: Likewise.
4433 * go32-nat.c: Likewise.
4434 * i386gnu-nat.c: Likewise.
4435 * proc-api.c: Likewise.
4436 * proc-events.c: Likewise.
4437 * proc-flags.c: Likewise.
4438 * proc-why.c: Likewise.
4439 * python/python-internal.h: Likewise.
4440 * target-memory.c: Likewise.
4441 * tui/tui-io.c: Likewise.
4442 * tui/tui.c: Likewise.
4444 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4446 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4447 (scan_dyntag_auxv): Same.
4449 2014-08-06 Yao Qi <yao@codesourcery.com>
4451 * amd64-linux-nat.c: Remove duplicated include
4453 * i386-linux-nat.c: Likewise.
4455 2014-08-06 Yao Qi <yao@codesourcery.com>
4457 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4458 operand" with "Special opcode" in comments.
4460 2014-08-05 Gary Benson <gbenson@redhat.com>
4462 * interps.c (initialize_interps): Remove prototype.
4463 (interpreter_initialized): Remove static global.
4464 (interp_add): Do not call initialize_interps.
4465 (initialize_interps): Remove function.
4467 2014-08-05 Gary Benson <gbenson@redhat.com>
4469 * utils.c (vwarning): Remove spurious va_end.
4471 2014-08-05 Alan Modra <amodra@gmail.com>
4473 * charset.c (convert_between_encodings): Cast result of obstack_base.
4474 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4475 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4476 (read_unwind_info): Use size_t for some locals.
4477 * jit.c (finalize_symtab): Likewise.
4478 * utils.c (hashtab_obstack_allocate): Likewise.
4479 * symmisc.c (print_objfile_statistics): Update format strings.
4481 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4483 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4484 (Changes in GDB 7.8): ... here.
4486 2014-08-04 Tom Tromey <tromey@redhat.com>
4488 * target.c (set_targetdebug): New function.
4489 (initialize_targets): Pass set_targetdebug when creating "set
4492 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4494 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4495 if detecting a variable-sized field that is not the last field.
4496 Fix struct type length computation.
4498 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4500 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4503 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4505 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4506 Remove "+ 8" offset in computation of CHAIN_VMA.
4508 2014-07-31 Doug Evans <dje@google.com>
4510 * inflow.c (child_terminal_inferior): Add comment.
4511 (child_terminal_ours_for_output): Add comment.
4512 (child_terminal_ours): Add comment.
4513 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4514 (linux_nat_terminal_ours): Add comment.
4516 2014-07-31 Gary Benson <gbenson@redhat.com>
4518 * common/btrace-common.h: Do not include defs.h or server.h.
4519 * nat/mips-linux-watch.h: Likewise.
4520 * gdb-dlfcn.h: Do not include defs.h.
4521 * tracefile.h: Likewise.
4523 2014-07-30 Roland McGrath <mcgrathr@google.com>
4525 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4527 2014-07-30 Tom Tromey <tromey@redhat.com>
4529 * bsd-kvm.c (bsd_kvm_open): Constify.
4530 * corelow.c (core_open): Constify.
4531 * ctf.c (ctf_open): Constify.
4532 * dbug-rom.c (dbug_open): Constify.
4533 * exec.c (exec_open): Constify.
4534 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4535 * microblaze-rom.c (picobug_open): Constify.
4536 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4538 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4539 * record-btrace.c (record_btrace_open): Constify.
4540 * record-full.c (record_full_core_open_1, record_full_open_1)
4541 (record_full_open): Constify.
4542 * remote-m32r-sdi.c (m32r_open): Constify.
4543 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4544 (rockhopper_open, lsi_open): Constify.
4545 * remote-sim.c (gdbsim_open): Constify.
4546 * remote.c (remote_open, extended_remote_open, remote_open_1):
4548 * target.h (struct target_ops) <to_open>: Make "arg" const.
4549 * tracefile-tfile.c (tfile_open): Constify.
4551 2014-07-30 Tom Tromey <tromey@redhat.com>
4553 * breakpoint.c (map_breakpoint_numbers): Update.
4554 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4555 (get_number_const): New function.
4556 (get_number): Rewrite using get_number_const.
4557 (init_number_or_range): Make "string" const.
4558 (number_is_in_list): Make "list" const.
4559 * cli/cli-utils.h (get_number_const): Declare.
4560 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4561 (init_number_or_range, number_is_in_list): Update.
4562 * printcmd.c (map_display_numbers): Update.
4563 * value.c (value_from_history_ref): Constify.
4564 * value.h (value_from_history_ref): Update.
4566 2014-07-30 Tom Tromey <tromey@redhat.com>
4568 * corefile.c (hook_type, call_extra_exec_file_hooks)
4569 (specify_exec_file_hook): Constify.
4570 * exec.c (exec_file_attach): Make "filename" const.
4571 * gdbcore.h (deprecated_exec_file_display_hook)
4572 (specify_exec_file_hook, exec_file_attach): Constify.
4573 * main.c (captured_main): Use catch_command_errors_const.
4575 2014-07-30 Tom Tromey <tromey@redhat.com>
4577 * target.c (open_target): New function.
4578 (add_target_with_completer, add_deprecated_target_alias): Use
4579 set_cmd_sfunc, set_cmd_context.
4580 (debug_to_open): Remove.
4581 (setup_target_debug): Update.
4583 2014-07-30 Yao Qi <yao@codesourcery.com>
4585 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4587 * parse.c (exp_iterate): Update comments.
4589 2014-07-30 Gary Benson <gbenson@redhat.com>
4591 * common/common-defs.h: New file.
4592 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4593 * defs.h: Include common-defs.h.
4594 Do not include config.h or build-gnulib/config.h.
4596 2014-07-30 Gary Benson <gbenson@redhat.com>
4598 * common/common-utils.h: Do not include config.h.
4599 * nat/linux-btrace.h: Likewise.
4601 2014-07-30 Gary Benson <gbenson@redhat.com>
4603 * btrace.c: Include defs.h.
4604 * common/ptid.c: Include defs.h or server.h as appropriate.
4605 * nat/mips-linux-watch.c: Likewise.
4607 2014-07-29 Tom Tromey <tromey@redhat.com>
4609 * target.c (target_is_pushed): Simplify.
4611 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4615 2014-07-29 Yao Qi <yao@codesourcery.com>
4618 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4620 2014-07-28 Doug Evans <xdje42@gmail.com>
4623 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4624 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4627 2014-07-28 Will Newton <will.newton@linaro.org>
4629 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4630 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4631 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4632 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4633 (THUMB2_EABI_SYSCALL): Likewise.
4634 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4636 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4637 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4639 2014-07-27 Doug Evans <xdje42@gmail.com>
4641 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4643 2014-07-27 Doug Evans <xdje42@gmail.com>
4645 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4647 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4648 Doug Evans <xdje42@gmail.com>
4651 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4652 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4653 * configure.ac: Try to use guild to compile an scm file, if it fails
4654 then disable guile support.
4655 * configure: Regenerate.
4656 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4658 (GUILE_COMPILED_FILES): New variable.
4659 (GUILE_FILES) Update.
4660 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4661 (stamp-guile): Compile scm files.
4662 * guile/guile.c (boot_guile_support): New function.
4663 (standard_throw_args_p): New function.
4664 (print_standard_throw_error, print_throw_error): New functions.
4665 (handle_boot_error): New function.
4666 (initialize_scheme_side): Rewrite to call boot_guile_support.
4667 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4668 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4670 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4671 Doug Evans <xdje42@gmail.com>
4674 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4675 * guile/lib/gdb/support.scm: New file.
4676 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4677 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4679 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4681 (%assert-type): Ditto, and renamed to assert-type.
4682 (%exception-print-style): Delete.
4684 2014-07-26 Doug Evans <xdje42@gmail.com>
4687 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4688 * configure: Regenerate.
4689 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4691 (PYTHON_FILES): New variable.
4692 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4693 (GUILE_FILES): New variable.
4694 (stamp-python, install-python, uninstall-python): Handle empty
4696 (stamp-guile, install-guile, uninstall-guile): Ditto.
4698 2014-07-26 Doug Evans <xdje42@gmail.com>
4701 * guile/lib/gdb.scm (pretty-printers): Export.
4702 (set-pretty-printers!): Export.
4703 * guile/lib/gdb/printing.scm (gdb module): Update.
4704 (prepend-pretty-printer!, append-pretty-printer!): Update.
4705 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4706 (pretty_printer_list_var): Delete.
4707 (pretty_printer_list): New static global.
4708 (gdbscm_pretty_printers): New function.
4709 (gdbscm_set_pretty_printers_x): New function.
4710 (ppscm_find_pretty_printer_from_gdb): Update.
4711 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4712 (gdbscm_initialize_pretty_printers): Update.
4714 2014-07-26 Doug Evans <xdje42@gmail.com>
4717 * configure.ac: Add check for header gc/gc.h.
4718 Add check for function setenv.
4719 * configure: Regenerate.
4720 * config.in: Regenerate.
4721 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4723 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4725 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4726 variation in gdbarch matching.
4728 2014-07-25 Tom Tromey <tromey@redhat.com>
4730 * exec.c (using_exec_ops): Remove.
4731 (exec_close_1): Update. Remove extraneous block, reindent.
4732 (add_target_sections): Use target_is_pushed.
4734 2014-07-25 Pedro Alves <palves@redhat.com>
4736 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4737 * monitor.c (monitor_create_inferior): Likewise.
4738 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4739 * remote-sim.c (gdbsim_create_inferior): Likewise.
4740 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4741 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4742 * windows-nat.c (do_initial_windows_stuff): Likewise.
4744 2014-07-25 Pedro Alves <palves@redhat.com>
4746 * NEWS: Mention signal passing and "signal" command changes.
4747 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4749 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4751 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4752 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4753 (jump_command): Adjust clear_proceed_status call.
4754 (signal_command): Warn if other thread that are resumed have
4755 signals that will be delivered. Adjust clear_proceed_status call.
4756 (until_next_command, finish_command)
4757 (proceed_after_attach_callback, attach_command_post_wait)
4758 (attach_command): Adjust clear_proceed_status call.
4759 * infrun.c (proceed_after_vfork_done): Likewise.
4760 (proceed_after_attach_callback): Adjust comment.
4761 (clear_proceed_status_thread): Clear stop_signal if not in pass
4763 (clear_proceed_status_callback): Delete.
4764 (clear_proceed_status): New 'step' parameter. Only clear the
4765 proceed status of threads the command being prepared is about to
4767 (proceed): If passed in an explicit signal, override stop_signal
4768 with it. Don't pass the last stop signal to the thread we're
4770 (init_wait_for_inferior): Adjust clear_proceed_status call.
4771 (switch_back_to_stepped_thread): Clear the signal if it should not
4773 * infrun.h (clear_proceed_status): New 'step' parameter.
4774 (user_visible_resume_ptid): Add comment.
4775 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4776 signal is in pass state.
4777 * remote.c (append_pending_thread_resumptions): Likewise.
4778 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4780 2014-07-25 Tom Tromey <tromey@redhat.com>
4782 * target.h (target_stopped_data_address)
4783 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4786 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4788 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4790 (avr_pointer_to_address): Likewise.
4792 2014-07-24 Tom Tromey <tromey@redhat.com>
4794 * monitor.c (compile_pattern): Update.
4795 * target.h (struct target_ops) <to_shortname, to_longname,
4798 2014-07-24 Tom Tromey <tromey@redhat.com>
4800 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4801 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4802 (add_info_alias, add_com): Make "doc" const.
4803 (print_doc_line): Make "str" const.
4804 (delete_cmd): Update.
4805 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4806 (print_doc_line): Update.
4807 * cli/cli-script.c (document_command): Update.
4808 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4809 (add_com, add_info, add_info_alias): Update.
4810 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4811 * python/py-cmd.c (cmdpy_destroyer): Update.
4813 2014-07-24 Tom Tromey <tromey@redhat.com>
4815 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4816 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4817 (help_cmd_list): Constify.
4818 (lookup_cmd): Update.
4819 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4821 (help_cmd_list, apropos_cmd): Update.
4822 * cli/cli-script.c (show_user): Update.
4823 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4824 * cli/cli-setshow.h (cmd_show_list): Update.
4825 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4826 (cmd_show_list): Update.
4827 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4828 * python/py-cmd.c (cmdpy_destroyer): Update.
4830 2014-07-24 Tom Tromey <tromey@redhat.com>
4832 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4833 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4835 * command.h (deprecate_cmd): Update.
4836 * maint.c (maintenance_do_deprecate): Add casts.
4838 2014-07-24 Tom Tromey <tromey@redhat.com>
4840 * cli/cli-decode.c (help_cmd): Make parameter "const".
4841 * cli/cli-decode.h (help_cmd): Update.
4843 2014-07-24 Tom Tromey <tromey@redhat.com>
4845 * stack.c (up_silently_base, down_silently_base): Make argument
4848 2014-07-24 Tom Tromey <tromey@redhat.com>
4850 * solib.c (solib_add): Make "pattern" const.
4851 * solib.h (solib_add): Update.
4853 2014-07-24 Tom Tromey <tromey@redhat.com>
4855 * remote.c (remote_serial_open, print_packet, putpkt)
4856 (putpkt_binary): Constify.
4857 * remote.h (putpkt): Update.
4859 2014-07-24 Tom Tromey <tromey@redhat.com>
4861 * monitor.c (monitor_open): Make "args" const.
4862 * monitor.h (monitor_open): Update.
4864 2014-07-24 Tom Tromey <tromey@redhat.com>
4866 * maint.c (match_bfd_flags): Make "string" const.
4867 (print_bfd_section_info): Remove casts.
4868 (print_objfile_section_info): Make "string" const.
4870 2014-07-24 Tom Tromey <tromey@redhat.com>
4872 * inf-child.c (inf_child_open_target): Make "arg" const.
4873 * inf-child.h (inf_child_open_target): Update.
4875 2014-07-24 Tom Tromey <tromey@redhat.com>
4877 * environ.c (unset_in_environ): Make "var" const.
4878 * environ.h (unset_in_environ): Update.
4880 2014-07-24 Tom Tromey <tromey@redhat.com>
4882 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4884 (scan_filename_with_cleanup): Likewise.
4885 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4886 Make arguments const.
4887 (restore_command): Update.
4889 2014-07-24 Pedro Alves <palves@redhat.com>
4891 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4893 2014-07-24 Tom Tromey <tromey@redhat.com>
4894 Gary Benson <gbenson@redhat.com>
4896 * nat/linux-ptrace.c (additional_flags): New global.
4897 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4898 additional_flags; don't check GDBSERVER.
4899 (linux_ptrace_set_additional_flags): New function.
4900 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4902 * linux-nat.c (_initialize_linux_nat): Call
4903 linux_ptrace_set_additional_flags.
4905 2014-07-24 Tom Tromey <tromey@redhat.com>
4907 * make-target-delegates (munge_type, write_debugmethod): New
4909 (debug_names): New global.
4910 ($TARGET_DEBUG_PRINTER): New global.
4911 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4913 Write debug methods. Generate init_debug_target.
4914 * target-debug.h: New file.
4915 * target-delegates.c: Rebuild.
4916 * target.c: Include target-debug.h.
4917 (debug_target): Hoist definition.
4918 (target_kill, target_get_section_table, target_memory_map)
4919 (target_flash_erase, target_flash_done, target_detach)
4920 (target_disconnect, target_wait, target_resume)
4921 (target_pass_signals, target_program_signals, target_follow_fork)
4922 (target_mourn_inferior, target_search_memory)
4923 (target_thread_address_space, target_close)
4924 (target_find_new_threads, target_core_of_thread)
4925 (target_verify_memory, target_insert_mask_watchpoint)
4926 (target_remove_mask_watchpoint): Remove targetdebug code.
4927 (debug_to_post_attach, debug_to_prepare_to_store)
4928 (debug_to_files_info, debug_to_insert_breakpoint)
4929 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4930 (debug_to_region_ok_for_hw_watchpoint)
4931 (debug_to_can_accel_watchpoint_condition)
4932 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4933 (debug_to_watchpoint_addr_within_range)
4934 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4935 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4936 (debug_to_terminal_init, debug_to_terminal_inferior)
4937 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4938 (debug_to_terminal_save_ours, debug_to_terminal_info)
4939 (debug_to_load, debug_to_post_startup_inferior)
4940 (debug_to_insert_fork_catchpoint)
4941 (debug_to_remove_fork_catchpoint)
4942 (debug_to_insert_vfork_catchpoint)
4943 (debug_to_remove_vfork_catchpoint)
4944 (debug_to_insert_exec_catchpoint)
4945 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4946 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4947 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4948 (setup_target_debug): Call init_debug_target.
4949 * target.h (TARGET_DEBUG_PRINTER): New macro.
4950 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4951 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4953 2014-07-24 Gary Benson <gbenson@redhat.com>
4955 * exceptions.h (throw_vfatal): Renamed to...
4956 (throw_vquit): New declaration.
4957 (throw_quit): Likewise.
4958 * exceptions.c (throw_vfatal): Renamed to...
4959 (throw_vquit): New function.
4960 (throw_quit): Likewise.
4961 (throw_error): Call throw_verror rather than throw_it.
4962 * utils.h (vfatal): Removed.
4964 * utils.c (vfatal): Removed.
4966 (internal_verror): Replaced call to fatal with call to throw_quit.
4967 (quit): Replaced calls to fatal with calls to throw_quit.
4969 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4971 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4974 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4976 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4977 less than zero in conditional expression.
4979 2014-07-23 Tom Tromey <tromey@redhat.com>
4981 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4982 ($INTRO_PART): Don't match whitespace.
4983 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4985 ($METHOD): Add $METHOD_TRAILER.
4987 (scan_target_h): New sub.
4988 Change main loop not to collect state.
4989 * target-delegates.c: Rebuild.
4991 2014-07-23 Gary Benson <gbenson@redhat.com>
4993 * cp-support.c (gdb_demangle): Fix build on systems without
4996 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4998 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4999 for reference entry value target data value.
5001 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5003 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5004 value_available_contents_eq.
5006 2014-07-22 Pedro Alves <palves@redhat.com>
5008 * value.c (allocate_optimized_out_value): Don't mark value as
5011 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5013 * MAINTAINERS (Write After Approval): Update my email address.
5015 2014-07-20 Doug Evans <dje@google.com>
5018 * remote.c (putpkt_binary): Add text to error message.
5020 2014-07-20 Yao Qi <yao@codesourcery.com>
5022 * eval.c: Remove "Chill" from comments.
5023 * gdbtypes.h: Likewise.
5024 * symtab.h: Likewise.
5026 2014-07-20 Yao Qi <yao@codesourcery.com>
5028 * std-operator.def: Update comments to TERNOP_SLICE.
5030 2014-07-20 Yao Qi <yao@codesourcery.com>
5032 * std-operator.def: Remove BINOP_RANGE.
5033 * breakpoint.c (watchpoint_exp_is_const): Update.
5034 * expprint.c (dump_subexp_body_standard): Likewise.
5035 * eval.c (init_array_element): Remove dead code.
5036 (evaluate_subexp_standard): Likewise.
5038 2014-07-20 Yao Qi <yao@codesourcery.com>
5040 * std-operator.def: Remove BINOP_IN.
5041 * breakpoint.c (watchpoint_exp_is_const): Update.
5042 * eval.c (evaluate_subexp_standard): Likewise.
5043 * expprint.c (dump_subexp_body_standard): Likewise.
5045 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5047 * microblaze-tdep.c (microblaze_register_names): Add
5048 the rshr and rslr register names.
5049 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5050 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5051 Use of tdesc_numbered_register. Use of
5052 microblaze_register_g_packet_guesses. Use of
5053 tdesc_use_registers. Use of set_gdbarch_register_type.
5054 (microblaze_register_g_packet_guesses): New.
5055 * microblaze-tdep.h (microblaze_reg_num): Add
5056 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5057 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5058 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5059 * features/microblaze-core.xml: New file.
5060 * features/microblaze-stack-protect.xml: New file.
5061 * features/microblaze-with-stack-protect.c: New file.
5062 * features/microblaze-with-stack-protect.xml: New file.
5063 * features/microblaze.xml: New file.
5064 * features/microblaze.c: New file.
5065 * features/Makefile (microblaze-with-stack-protect): Add
5066 microblaze-with-stack-protect microblaze and microblaze-expedite.
5067 * regformats/microblaze-with-stack-protect.dat: New file.
5068 * regformats/microblaze.dat: New file.
5069 * doc/gdb.texinfo (MicroBlaze Features): Added.
5071 2014-07-18 Tom Tromey <tromey@redhat.com>
5073 * exec.c (exec_ops): Now static.
5074 * exec.h (exec_ops): Don't declare.
5076 2014-07-18 Tom Tromey <tromey@redhat.com>
5078 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5079 to find_target_beneath.
5080 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5081 find_target_beneath.
5082 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5084 2014-07-18 Tom Tromey <tromey@redhat.com>
5087 * utils.c (quit): Use target_supports_terminal_ours.
5088 * target.h (target_supports_terminal_ours): Declare.
5089 * target.c (target_supports_delete_record): Don't check
5090 to_delete_record against NULL.
5091 (target_supports_terminal_ours): New function.
5093 2014-07-18 Tom Tromey <tromey@redhat.com>
5096 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5097 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5098 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5099 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5100 * windows-nat.c (windows_xfer_partial): Always delegate.
5101 * record-btrace.c (record_btrace_xfer_partial): Simplify
5103 (record_btrace_fetch_registers, record_btrace_store_registers)
5104 (record_btrace_prepare_to_store, record_btrace_resume)
5105 (record_btrace_wait, record_btrace_find_new_threads)
5106 (record_btrace_thread_alive): Likewise.
5107 * procfs.c (procfs_xfer_partial): Always delegate.
5108 * corelow.c (core_xfer_partial): Always delegate.
5109 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5111 2014-07-18 Tom Tromey <tromey@redhat.com>
5113 * exec.c (exec_make_note_section): Move earlier.
5115 2014-07-17 Doug Evans <dje@google.com>
5118 * maint.c (count_symtabs_and_blocks): Handle NULL
5119 current_program_space.
5120 (report_command_stats): Check global enabled flag in addition to
5121 recorded enabled flag.
5122 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5124 2014-07-16 Pedro Alves <palves@redhat.com>
5126 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5128 2014-07-16 Tom Tromey <tromey@redhat.com>
5130 * target.h (struct target_ops) <to_delete_record>: Reformat
5133 2014-07-16 Tom Tromey <tromey@redhat.com>
5135 * target-delegates.c: Rebuild.
5137 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5139 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5140 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5141 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5142 (avr_pointer_to_address): Likewise.
5143 (avr_address_class_type_flags): New function.
5144 (avr_address_class_type_flags_to_name): Likewise.
5145 (avr_address_class_name_to_type_flags): Likewise.
5146 (avr_gdbarch_init): Set address_class_type_flags,
5147 address_class_type_flags_to_name and
5148 address_class_name_to_type_flags.
5150 2014-07-15 Pedro Alves <palves@redhat.com>
5152 * linux-nat.c (kill_callback): Save errno and work with saved
5155 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5157 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5159 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5161 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5162 breakpoint support correctly.
5164 2014-07-14 Pedro Alves <palves@redhat.com>
5166 * utils.c (prompt_for_continue): Call target_terminal_ours.
5168 2014-07-14 Pedro Alves <palves@redhat.com>
5170 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5171 catch_errors. Don't re-enable stdin or notify observers where,
5173 (fetch_inferior_event_wrapper): Delete.
5175 2014-07-14 Pedro Alves <palves@redhat.com>
5178 * top.c: Include "inf-loop.h".
5179 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5181 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5183 (gdb_readline_wrapper): Store whether the target is async, and
5186 2014-07-14 Pedro Alves <palves@redhat.com>
5189 * top.c (gdb_readline_wrapper_line): Tweak comment.
5190 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5191 the input handler callback.
5193 2014-07-14 Pedro Alves <palves@redhat.com>
5196 * main.c: Include event-top.h.
5197 (handle_command_errors): New function.
5198 (catch_command_errors, catch_command_errors_const): Use it.
5200 2014-07-14 Pedro Alves <palves@redhat.com>
5202 * exceptions.c (catch_command_errors, catch_command_errors_const):
5204 * exceptions.h (catch_command_errors_ftype)
5205 (catch_command_errors_const_ftype): Moved to main.c.
5206 (catch_command_errors, catch_command_errors_const): Delete
5208 * main.c (catch_command_errors_ftype)
5209 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5210 (catch_command_errors, catch_command_errors_const)): Moved here
5211 from exceptions.c and make static.
5213 2014-07-14 Pedro Alves <palves@redhat.com>
5215 * exceptions.c (print_any_exception): Delete.
5216 (catch_exceptions_with_msg): Use exception_print instead of
5217 print_any_exception.
5218 (catch_errors): Use exception_fprintf instead of
5219 print_any_exception.
5220 (catch_command_errors, catch_command_errors_const): Use
5221 exception_print instead of print_any_exception.
5223 2014-07-14 Pedro Alves <palves@redhat.com>
5225 * infcall.c (run_inferior_call): Set 'sync_execution' while
5226 running the inferior call.
5228 2014-07-14 Pedro Alves <palves@redhat.com>
5230 * value.c (value_contents_equal): Delete function.
5231 * value.h (value_contents_equal): Delete declaration.
5233 2014-07-14 Tom Tromey <tromey@redhat.com>
5236 * gdbtypes.c (is_dynamic_type_internal): New function, from
5238 (is_dynamic_type): Rewrite.
5239 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5240 (resolve_dynamic_struct): Likewise.
5241 (resolve_dynamic_type_internal): New function, from
5242 resolve_dynamic_type.
5243 (resolve_dynamic_type): Rewrite.
5245 2014-07-14 Tom Tromey <tromey@redhat.com>
5247 * target.c (target_require_runnable): Also check record_stratum.
5250 2014-07-11 Yao Qi <yao@codesourcery.com>
5252 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5253 thumb_instruction_restores_sp return true.
5255 2014-07-11 Yao Qi <yao@codesourcery.com>
5257 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5258 (thumb_in_function_epilogue_p): Call
5259 thumb_instruction_restores_sp.
5261 2014-07-11 Yao Qi <yao@codesourcery.com>
5263 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5265 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5267 2014-07-11 Gary Benson <gbenson@redhat.com>
5269 * amd64-linux-nat.c (gdbcore.h): Remove include.
5270 (regset.h): Likewise.
5271 (nat/linux-btrace.h): Likewise.
5272 (btrace.h): Likewise.
5273 (gdb_assert.h): Likewise.
5274 (string.h): Likewise.
5275 (sys/uio.h): Likewise.
5276 (sys/debugreg.h): Likewise.
5277 (sys/syscall.h): Likewise.
5278 (sys/procfs.h): Likewise.
5279 (sys/user.h): Likewise.
5280 (asm/ptrace.h): Likewise.
5281 (i386-nat.h): Likewise.
5282 * i386-linux-nat.c (i386-nat.h): Likewise.
5283 (regset.h): Likewise.
5284 (target.h): Likewise.
5285 (linux-nat.h): Likewise.
5286 (nat/linux-btrace.h): Likewise.
5287 (btrace.h): Likewise.
5288 (gdb_assert.h): Likewise.
5289 (string.h): Likewise.
5290 (sys/uio.h): Likewise.
5291 (sys/user.h): Likewise.
5292 (sys/procfs.h): Likewise.
5293 (sys/reg.h): Likewise.
5294 (sys/debugreg.h): Likewise.
5295 (ORIG_EAX): Remove definition.
5297 2014-07-11 Gary Benson <gbenson@redhat.com>
5299 * i386-linux-nat.h: New file.
5300 * x86-linux-nat.h: Likewise.
5301 * x86-linux-nat.c: Likewise.
5302 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5303 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5304 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5305 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5306 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5307 (PTRACE_SETREGSET): Likewise.
5308 (arch_lwp_info): Now in x86-linux-nat.c.
5309 (have_ptrace_getregset): Now in x86-linux-nat.h.
5310 (x86_linux_dr_get): Now in x86-linux-nat.c.
5311 (x86_linux_dr_set): Likewise.
5312 (x86_linux_dr_get_addr): Likewise.
5313 (x86_linux_dr_get_control): Likewise.
5314 (x86_linux_dr_get_status): Likewise.
5315 (update_debug_registers_callback): Likewise.
5316 (x86_linux_dr_set_control): Likewise.
5317 (x86_linux_dr_set_addr): Likewise.
5318 (x86_linux_prepare_to_resume): Likewise.
5319 (x86_linux_new_thread): Likewise.
5320 (x86_linux_new_fork): Likewise.
5321 (x86_linux_get_thread_area): Likewise.
5322 (super_post_startup_inferior): Likewise.
5323 (x86_linux_child_post_startup_inferior): Likewise.
5324 (AMD64_LINUX_USER64_CS): Likewise.
5325 (AMD64_LINUX_X32_DS): Likewise.
5326 (x86_linux_read_description): Likewise.
5327 (x86_linux_enable_btrace): Likewise.
5328 (x86_linux_disable_btrace): Likewise.
5329 (x86_linux_teardown_btrace): Likewise.
5330 (x86_linux_read_btrace): Likewise.
5331 (x86_linux_create_target): Likewise.
5332 (x86_linux_add_target): Likewise.
5333 * i386-linux-nat.c (x86-linux-nat.h): New include.
5334 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5335 (PTRACE_SETREGSET): Likewise.
5336 (arch_lwp_info): Now in x86-linux-nat.c.
5337 (have_ptrace_getregset): Now in x86-linux-nat.h.
5338 (x86_linux_dr_get): Now in x86-linux-nat.c.
5339 (x86_linux_dr_set): Likewise.
5340 (x86_linux_dr_get_addr): Likewise.
5341 (x86_linux_dr_get_control): Likewise.
5342 (x86_linux_dr_get_status): Likewise.
5343 (update_debug_registers_callback): Likewise.
5344 (x86_linux_dr_set_control): Likewise.
5345 (x86_linux_dr_set_addr): Likewise.
5346 (x86_linux_prepare_to_resume): Likewise.
5347 (x86_linux_new_thread): Likewise.
5348 (x86_linux_new_fork): Likewise.
5349 (x86_linux_get_thread_area): Likewise.
5350 (super_post_startup_inferior): Likewise.
5351 (x86_linux_child_post_startup_inferior): Likewise.
5352 (AMD64_LINUX_USER64_CS): Likewise.
5353 (AMD64_LINUX_X32_DS): Likewise.
5354 (x86_linux_read_description): Likewise.
5355 (x86_linux_enable_btrace): Likewise.
5356 (x86_linux_disable_btrace): Likewise.
5357 (x86_linux_teardown_btrace): Likewise.
5358 (x86_linux_read_btrace): Likewise.
5359 (x86_linux_create_target): Likewise.
5360 (x86_linux_add_target): Likewise.
5362 2014-07-11 Gary Benson <gbenson@redhat.com>
5364 * amd64-linux-nat.c: Comment and whitespace changes.
5365 * i386-linux-nat.c: Comment and whitespace changes.
5367 2014-07-11 Gary Benson <gbenson@redhat.com>
5369 * amd64-linux-nat.c (x86_linux_create_target): New function.
5370 (x86_linux_add_target): Likewise.
5371 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5372 * i386-linux-nat.c (x86_linux_create_target): New function.
5373 (x86_linux_add_target): Likewise.
5374 (_initialize_i386_linux_nat): Delegate to the above new functions.
5376 2014-07-11 Gary Benson <gbenson@redhat.com>
5378 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5379 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5380 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5381 (ps_get_thread_area): Delegate to the above.
5383 2014-07-11 Gary Benson <gbenson@redhat.com>
5385 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5386 x86_linux_read_description. All uses updated. amd64-specific
5387 code conditionalized. Conditionalized i386-specific code added.
5388 Redundant cast removed.
5389 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5390 x86_linux_read_description. All uses updated. i386-specific
5391 code conditionalized. Conditionalized amd64-specific code added.
5392 One sizeof replaced with the actual type it is describing.
5394 2014-07-11 Gary Benson <gbenson@redhat.com>
5396 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5397 x86_linux_dr_get. All uses updated.
5398 (amd64_linux_dr_set): Renamed to
5399 x86_linux_dr_set. All uses updated.
5400 (amd64_linux_dr_get_addr): Renamed to
5401 x86_linux_dr_get_addr. All uses updated.
5402 (amd64_linux_dr_get_control): Renamed to
5403 x86_linux_dr_get_control. All uses updated.
5404 (amd64_linux_dr_get_status): Renamed to
5405 x86_linux_dr_get_status. All uses updated.
5406 (amd64_linux_dr_set_control): Renamed to
5407 x86_linux_dr_set_control. All uses updated.
5408 (amd64_linux_dr_set_addr): Renamed to
5409 x86_linux_dr_set_addr. All uses updated.
5410 (amd64_linux_prepare_to_resume): Renamed to
5411 x86_linux_prepare_to_resume. All uses updated.
5412 (amd64_linux_new_thread): Renamed to
5413 x86_linux_new_thread. All uses updated.
5414 (amd64_linux_new_fork): Renamed to
5415 x86_linux_new_fork. All uses updated.
5416 (amd64_linux_child_post_startup_inferior): Renamed to
5417 x86_linux_child_post_startup_inferior. All uses updated.
5418 (amd64_linux_enable_btrace): Renamed to
5419 x86_linux_enable_btrace. All uses updated.
5420 (amd64_linux_disable_btrace): Renamed to
5421 x86_linux_disable_btrace. All uses updated.
5422 (amd64_linux_teardown_btrace): Renamed to
5423 x86_linux_teardown_btrace. All uses updated.
5424 (amd64_linux_read_btrace): Renamed to
5425 x86_linux_read_btrace. All uses updated.
5426 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5427 x86_linux_dr_get. All uses updated.
5428 (i386_linux_dr_set): Renamed to
5429 x86_linux_dr_set. All uses updated.
5430 (i386_linux_dr_get_addr): Renamed to
5431 x86_linux_dr_get_addr. All uses updated.
5432 (i386_linux_dr_get_control): Renamed to
5433 x86_linux_dr_get_control. All uses updated.
5434 (i386_linux_dr_get_status): Renamed to
5435 x86_linux_dr_get_status. All uses updated.
5436 (i386_linux_dr_set_control): Renamed to
5437 x86_linux_dr_set_control. All uses updated.
5438 (i386_linux_dr_set_addr): Renamed to
5439 x86_linux_dr_set_addr. All uses updated.
5440 (i386_linux_prepare_to_resume): Renamed to
5441 x86_linux_prepare_to_resume. All uses updated.
5442 (i386_linux_new_thread): Renamed to
5443 x86_linux_new_thread. All uses updated.
5444 (i386_linux_new_fork): Renamed to
5445 x86_linux_new_fork. All uses updated.
5446 (i386_linux_child_post_startup_inferior): Renamed to
5447 x86_linux_child_post_startup_inferior. All uses updated.
5448 (i386_linux_enable_btrace): Renamed to
5449 x86_linux_enable_btrace. All uses updated.
5450 (i386_linux_disable_btrace): Renamed to
5451 x86_linux_disable_btrace. All uses updated.
5452 (i386_linux_teardown_btrace): Renamed to
5453 x86_linux_teardown_btrace. All uses updated.
5454 (i386_linux_read_btrace): Renamed to
5455 x86_linux_read_btrace. All uses updated.
5457 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5459 * remote.c (extended_remote_post_attach): New function.
5460 (init_extended_remote_ops): Install it as to_post_attach method.
5462 2014-07-09 Pedro Alves <palves@redhat.com>
5464 * infcmd.c (attach_command_post_wait): Don't call
5465 target_terminal_inferior here.
5466 (attach_command): Call it here instead.
5468 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5470 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5472 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5473 from varobj.c, with additional checks.
5474 (c_varobj_ops): Fill in is_path_expr_parent field.
5475 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5476 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5478 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5480 (varobj_default_is_path_expr_parent): New function.
5481 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5482 (varobj_default_is_path_expr_parent): Declare new function.
5484 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5486 * infcmd.c (finish_backward): Turn internal error into normal error.
5488 2014-07-07 Pedro Alves <palves@redhat.com>
5491 * remote.c (async_handle_remote_sigint)
5492 (async_handle_remote_sigint_twice): Call
5493 gdb_call_async_signal_handler instead of
5494 mark_async_signal_handler.
5496 2014-07-07 Tom Tromey <tromey@redhat.com>
5498 * target-delegates.c: Rebuild.
5499 * target.c (target_info_record): Remove.
5500 * record.c (info_record_command): Unconditionally call
5502 * target.h (struct target_ops) <to_info_record>: Use
5503 TARGET_DEFAULT_IGNORE.
5504 (target_info_record): Remove.
5506 2014-07-07 Tom Tromey <tromey@redhat.com>
5508 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5509 TARGET_DEFAULT_NORETURN.
5510 * target.c (generic_tls_error): New function.
5511 (target_translate_tls_address): Don't search target stack.
5512 * target-delegates.c: Rebuild.
5513 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5515 * linux-thread-db.c (thread_db_get_thread_local_address):
5516 Unconditionally call beneath target.
5518 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5520 * cli/cli-logging.c (pop_output_files): Assign targerr to
5523 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5525 * MAINTAINERS (Write After Approval): Update my email address.
5527 2014-07-02 Gary Benson <gbenson@redhat.com>
5529 * proc-service.c (ps_xfer_memory): Update comment.
5530 (ps_pstop): Remove unused function.
5531 (ps_pcontinue): Likewise.
5532 (ps_lstop): Likewise.
5533 (ps_lcontinue): Likewise.
5534 (ps_lgetxregsize): Likewise.
5535 (ps_lgetxregs): Likewise.
5536 (ps_lsetxregs): Likewise.
5537 (ps_plog): Likewise.
5538 (ps_ptread): Likewise.
5539 (ps_ptwrite): Likewise.
5541 2014-07-01 Mark Wielaard <mjw@redhat.com>
5543 * dwarf2read.c (add_array_cv_type): New function.
5544 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5545 (read_tag_volatile_type): Likewise.
5547 2014-07-01 Tom Tromey <tromey@redhat.com>
5549 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5550 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5551 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5552 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5553 * command.h (cmd_cfunc_ftype): Move earlier.
5554 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5555 (add_com, add_info): Use cmd_cfunc_ftype.
5557 2014-06-30 Tom Tromey <tromey@redhat.com>
5559 * symtab.c (operator_chars): Make parameters and return type
5561 (file_matches): Make "files" const.
5562 (struct search_symbols_data) <files>: Now const.
5563 (search_symbols): Make "regexp" and "files" parameters const.
5565 (symtab_symbol_info): Remove cast.
5566 (rbreak_command): Update.
5567 * symtab.h (search_symbols): Update.
5569 2014-06-27 Yao Qi <yao@codesourcery.com>
5571 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5572 Change parameter type to 'struct thread_info *'. Caller
5574 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5576 * dummy-frame.c (struct dummy_frame_id): New.
5577 (dummy_frame_id_eq): New function.
5578 (struct dummy_frame) <id>: Change its type to 'struct
5580 (dummy_frame_push): Add parameter ptid and save it in
5582 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5584 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5586 (lookup_dummy_frame): Change parameter type to 'struct
5587 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5588 instead of frame_id_eq.
5589 (dummy_frame_pop): Add parameter ptid. Callers updated.
5590 Update comments. Compose dummy_frame_id and pass it to
5592 (dummy_frame_discard): Add parameter ptid.
5593 (dummy_frame_sniffer): Compose dummy_frame_id and call
5594 dummy_frame_id_eq instead of frame_id_eq.
5595 (fprint_dummy_frames): Print ptid.
5596 * dummy-frame.h: Remove comments.
5597 (dummy_frame_push): Add ptid in declaration.
5598 (dummy_frame_pop, dummy_frame_discard): Likewise.
5600 2014-06-26 Tom Tromey <tromey@redhat.com>
5602 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5603 * command.h (error_no_arg): Update.
5605 2014-06-26 Tom Tromey <tromey@redhat.com>
5607 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5608 (do_show_command): Make "arg" const.
5609 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5611 2014-06-26 Tom Tromey <tromey@redhat.com>
5613 * record-full.c (record_full_get_bookmark): Make "args" const.
5614 (record_full_goto_bookmark): Make "raw_bookmark" const.
5615 * record.c (record_goto): New function.
5616 (cmd_record_goto): Use it. Now static.
5617 * record.h (record_goto): Declare.
5618 (cmd_record_goto): Remove declaration.
5619 * target-delegates.c: Rebuild.
5620 * target.h (struct target_ops) <to_get_bookmark,
5621 to_goto_bookmark>: Make parameter const.
5623 2014-06-26 Tom Tromey <tromey@redhat.com>
5625 * defs.h (generic_load): Update.
5626 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5627 * monitor.c (monitor_load): Make "args" const.
5628 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5629 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5631 (mips_load): Make "file" const.
5632 * remote-sim.c (gdbsim_load): Make "args" const.
5633 * remote.c (remote_load): Make "name" const.
5634 * symfile.c (generic_load): Make "args" const.
5635 * target-delegates.c: Rebuild.
5636 * target.c (target_load): Make "arg" const.
5637 (debug_to_load): Make "args" const.
5638 * target.h (struct target_ops) <to_load>: Make parameter const.
5639 (target_load): Update.
5641 2014-06-26 Tom Tromey <tromey@redhat.com>
5644 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5645 (dwarf2_physname, read_partial_die)
5646 (guess_partial_die_structure_name, fixup_partial_die)
5647 (guess_full_die_structure_name, anonymous_struct_prefix)
5648 (dwarf2_name): Use per-BFD obstack.
5650 2014-06-26 Yao Qi <yao@codesourcery.com>
5652 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5653 dummyframe and this_id into inner block below.
5655 2014-06-26 Yao Qi <yao@codesourcery.com>
5657 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5658 with "signal_pass[0]" in the initialization of signal_pass.
5660 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5662 * record-btrace.c (record_btrace_generating_corefile)
5663 (record_btrace_prepare_to_generate_core)
5664 (record_btrace_done_generating_core): New.
5665 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5666 (record_btrace_store_registers, record_btrace_prepare_to_store):
5667 Forward request when generating a core file.
5668 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5669 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5670 to_done_generating_core.
5672 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5674 * target.h (target_ops) <to_prepare_to_generate_core>
5675 <to_done_generating_core>: New.
5676 (target_prepare_to_generate_core, target_done_generating_core): New.
5677 * target.c (target_prepare_to_generate_core)
5678 (target_done_generating_core): New.
5679 * target-delegates.c: Regenerate.
5680 * gcore.c: (write_gcore_file): Rename to ...
5681 (write_gcore_file_1): ...this.
5682 (write_gcore_file): Call target_prepare_to_generate_core
5683 and target_done_generating_core.
5685 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5687 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5688 * gcore.c (write_gcore_file): Free memory returned from
5689 make_corefile_notes.
5690 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5691 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5693 2014-06-24 Yao Qi <yao@codesourcery.com>
5695 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5696 (arm_linux_init_abi): Set skip_trampoline_code with
5697 gdbarch_skip_trampoline_code instead of
5698 find_solib_trampoline_target.
5700 2014-06-24 Yao Qi <yao@codesourcery.com>
5702 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5703 arm_skip_bx_reg returns non-zero.
5705 2014-06-24 Yao Qi <yao@codesourcery.com>
5707 * arm-tdep.c (arm_skip_bx_reg): New function.
5708 (arm_skip_stub): Call arm_skip_bx_reg.
5710 2014-06-23 Don Breazeal <donb@codesourcery.com>
5712 * MAINTAINERS: Add myself as write-after-approval maintainer.
5714 2014-06-23 Pedro Alves <palves@redhat.com>
5716 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5717 DR_CONTROL before setting DR0..DR3.
5718 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5719 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5720 bits of DR_CONTROL related to the debug register slot being
5721 disabled. If all slots are vacant, clear local slowdown as well,
5722 and assert DR_CONTROL is 0.
5724 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5726 * python/lib/gdb/command/xmethods.py
5727 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5728 current progspace only if the string "progspace" matches LOCUS_RE.
5730 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5732 Fix --with-system-readline with readline-6.3 patch 5.
5733 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5734 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5737 2014-06-20 Tom Tromey <tromey@redhat.com>
5739 * dwarf2read.c (dw2_get_real_path): Use correct type in
5741 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5743 2014-06-20 Gary Benson <gbenson@redhat.com>
5745 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5746 * common/glibc_thread_db.h: Likewise.
5747 * common/i386-cpuid.h: Likewise.
5748 * common/i386-gcc-cpuid.h: Likewise.
5749 * common/linux-btrace.h: Likewise.
5750 * common/linux-osdata.h: Likewise.
5751 * common/linux-procfs.h: Likewise.
5752 * common/linux-ptrace.h: Likewise.
5753 * common/mips-linux-watch.h: Likewise.
5754 * common/linux-btrace.c: Moved to nat.
5755 * common/linux-osdata.c: Likewise.
5756 * common/linux-procfs.c: Likewise.
5757 * common/linux-ptrace.c: Likewise.
5758 * common/mips-linux-watch.c: Likewise.
5759 * nat/gdb_thread_db.h: Moved from common.
5760 * nat/glibc_thread_db.h: Likewise.
5761 * nat/i386-cpuid.h: Likewise.
5762 * nat/i386-gcc-cpuid.h: Likewise.
5763 * nat/linux-btrace.c: Likewise.
5764 * nat/linux-btrace.h: Likewise.
5765 * nat/linux-osdata.c: Likewise.
5766 * nat/linux-osdata.h: Likewise.
5767 * nat/linux-procfs.c: Likewise.
5768 * nat/linux-procfs.h: Likewise.
5769 * nat/linux-ptrace.c: Likewise.
5770 * nat/linux-ptrace.h: Likewise.
5771 * nat/mips-linux-watch.c: Likewise.
5772 * nat/mips-linux-watch.h: Likewise.
5773 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5774 (object file files): Reordered.
5775 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5776 of glibc_thread_db.h.
5778 2014-06-20 Gary Benson <gbenson@redhat.com>
5780 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5781 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5782 (i386_dr_low): Likewise.
5783 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5784 (i386_dr_low_set_addr): Likewise.
5785 (i386_dr_low_get_addr): Likewise.
5786 (i386_dr_low_can_set_control): Likewise.
5787 (i386_dr_low_set_control): Likewise.
5788 (i386_dr_low_get_control): Likewise.
5789 (i386_dr_low_get_status): Likewise.
5790 (i386_get_debug_register_length): Likewise.
5791 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5792 (i386_dr_low): Likewise.
5793 * nat/i386-dregs.c (i386-low.h): Remove include.
5794 (i386-nat.h): Likewise.
5795 (nat/i386-dregs.h): New include.
5796 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5797 (i386_dr_low_set_addr): Likewise.
5798 (i386_dr_low_get_addr): Likewise.
5799 (i386_dr_low_can_set_control): Likewise.
5800 (i386_dr_low_set_control): Likewise.
5801 (i386_dr_low_get_control): Likewise.
5802 (i386_dr_low_get_status): Likewise.
5803 (i386_get_debug_register_length): Likewise.
5804 (debug_hw_points): Likewise.
5806 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5808 * Makefile.in (SFILES): Add d-exp.y.
5809 (YYFILES): Add d-exp.c.
5810 (YYOBJ): Add d-exp.o.
5811 (local-maintainer-clean): Delete d-exp.c.
5812 * d-exp.y: New file.
5813 * d-lang.h (d_parse): New declaration.
5814 (d_error): New declaration.
5815 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5816 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5817 PREC_ORDER operators.
5818 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5820 2014-06-19 Yao Qi <yao@codesourcery.com>
5822 * gdbthread.h (any_running): Remove the declaration.
5823 * thread.c (any_running): Remove.
5825 2014-06-19 Yao Qi <yao@codesourcery.com>
5827 * gdbthread.h (struct thread_info) <state>: Change its type to
5828 'enum thread_state'. Update comments.
5830 2014-06-19 Pedro Alves <palves@redhat.com>
5832 * gdbthread.h (ALL_THREADS): Delete.
5833 (ALL_NON_EXITED_THREADS): New macro.
5834 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5835 instead of ALL_THREADS.
5836 * infrun.c (find_thread_needs_step_over)
5837 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5838 instead of ALL_THREADS.
5839 * record-btrace.c (record_btrace_open)
5840 (record_btrace_stop_recording, record_btrace_close)
5841 (record_btrace_is_replaying, record_btrace_resume)
5842 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5843 * remote.c (append_pending_thread_resumptions): Likewise.
5844 * thread.c (thread_apply_all_command): Likewise.
5846 2014-06-19 Gary Benson <gbenson@redhat.com>
5848 * i386-nat.c (i386_stopped_by_watchpoint):
5849 Use i386_dr_stopped_by_watchpoint.
5850 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5851 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5853 2014-06-19 Gary Benson <gbenson@redhat.com>
5855 * nat/i386-dregs.c: New file.
5856 * Makefile.in (i386-dregs.o): New rule.
5857 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5858 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5859 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5860 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5861 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5862 * config/i386/go32.mh (NATDEPFILES): Likewise.
5863 * config/i386/linux.mh (NATDEPFILES): Likewise.
5864 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5865 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5866 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5867 * i386-nat.h (debug_hw_points): New declaration.
5868 * i386-nat.c (breakpoint.h): Remove include.
5869 (command.h): Likewise.
5870 (target.h): Likewise.
5871 (gdb_assert.h): Likewise.
5872 (debug_hw_points): Made nonstatic.
5873 (debug_printf): Now in i386-dregs.c.
5874 (TARGET_HAS_DR_LEN_8): Likewise.
5875 (DR_CONTROL_SHIFT): Likewise.
5876 (DR_CONTROL_SIZE): Likewise.
5877 (DR_RW_EXECUTE): Likewise.
5878 (DR_RW_WRITE): Likewise.
5879 (DR_RW_READ): Likewise.
5880 (DR_RW_IORW): Likewise.
5881 (DR_LEN_1): Likewise.
5882 (DR_LEN_2): Likewise.
5883 (DR_LEN_4): Likewise.
5884 (DR_LEN_8): Likewise.
5885 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5886 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5887 (DR_ENABLE_SIZE): Likewise.
5888 (DR_LOCAL_SLOWDOWN): Likewise.
5889 (DR_GLOBAL_SLOWDOWN): Likewise.
5890 (DR_CONTROL_RESERVED): Likewise.
5891 (I386_DR_CONTROL_MASK): Likewise.
5892 (I386_DR_VACANT): Likewise.
5893 (I386_DR_LOCAL_ENABLE): Likewise.
5894 (I386_DR_GLOBAL_ENABLE): Likewise.
5895 (I386_DR_DISABLE): Likewise.
5896 (I386_DR_SET_RW_LEN): Likewise.
5897 (I386_DR_GET_RW_LEN): Likewise.
5898 (I386_DR_WATCH_HIT): Likewise.
5899 (i386_wp_op_t): Likewise.
5900 (i386_show_dr): Likewise.
5901 (i386_length_and_rw_bits): Likewise.
5902 (i386_insert_aligned_watchpoint): Likewise.
5903 (i386_remove_aligned_watchpoint): Likewise.
5904 (i386_handle_nonaligned_watchpoint): Likewise.
5905 (i386_update_inferior_debug_regs): Likewise.
5906 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5907 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5908 (i386_region_ok_for_watchpoint):
5909 Use i386_dr_region_ok_for_watchpoint.
5910 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5912 2014-06-19 Gary Benson <gbenson@redhat.com>
5914 * i386-nat.c (i386_insert_hw_breakpoint): Use
5915 i386_insert_watchpoint.
5916 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5918 2014-06-19 Gary Benson <gbenson@redhat.com>
5920 * i386-nat.c (i386_dr_show): Renamed to
5921 i386_show_dr and made static. All uses updated.
5922 (i386_dr_length_and_rw_bits): Renamed to
5923 i386_length_and_rw_bits and made static.
5925 (i386_dr_insert_aligned_watchpoint): Renamed to
5926 i386_insert_aligned_watchpoint and made static.
5928 (i386_dr_remove_aligned_watchpoint): Renamed to
5929 i386_remove_aligned_watchpoint and made static.
5931 (i386_dr_update_inferior_debug_regs): Renamed to
5932 i386_update_inferior_debug_regs and made static.
5934 * nat/i386-dregs.h (i386_dr_show): Removed.
5935 (i386_dr_length_and_rw_bits): Likewise.
5936 (i386_dr_insert_aligned_watchpoint): Likewise.
5937 (i386_dr_remove_aligned_watchpoint): Likewise.
5938 (i386_dr_update_inferior_debug_regs): Likewise.
5940 2014-06-19 Gary Benson <gbenson@redhat.com>
5942 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5943 * configure: Regenerate.
5944 * config.in: Likewise.
5945 * main.c (signal.h): New include.
5946 (setup_alternate_signal_stack): New function.
5947 (captured_main): Call the above.
5948 * cp-support.c (signal.h): New include.
5949 (catch_demangler_crashes): New flag.
5950 (SIGJMP_BUF): New define.
5951 (SIGSETJMP): Likewise.
5952 (SIGLONGJMP): Likewise.
5953 (gdb_demangle_jmp_buf): New static global.
5954 (gdb_demangle_attempt_core_dump): Likewise.
5955 (gdb_demangle_signal_handler): New function.
5956 (gdb_demangle): If catch_demangler_crashes is set, install the
5957 above signal handler before calling bfd_demangle, and restore
5958 the original signal handler afterwards. Display the offending
5959 symbol and call demangler_warning the first time a segmentation
5961 (_initialize_cp_support): New maint set/show command.
5963 2014-06-19 Gary Benson <gbenson@redhat.com>
5965 * utils.h (resource_limit_kind): New enum.
5966 (can_dump_core): New declaration.
5967 (warn_cant_dump_core): Likewise.
5968 (dump_core): Likewise.
5969 * utils.c (dump_core): Made nonstatic. Added new
5970 parameter "limit_kind".
5971 (can_dump_core): Made nonstatic. Moved printing code to...
5972 (warn_cant_dump_core): New function.
5973 (can_dump_core_warn): Likewise.
5974 (internal_vproblem): Replace calls to can_dump_core with
5975 calls to can_dump_core_warn. Supply new argument to each.
5977 2014-06-19 Gary Benson <gbenson@redhat.com>
5979 * utils.h (demangler_vwarning): New declaration.
5980 (demangler_warning): Likewise.
5981 * utils.c (struct internal_problem)
5982 <user_settable_should_quit>: New field.
5983 <user_settable_should_dump_core>: Likewise
5984 (internal_error_problem): Add values for above new fields.
5985 (internal_warning_problem): Likewise.
5986 (demangler_warning_problem): New static global.
5987 (demangler_vwarning): New function.
5988 (demangler_warning): Likewise.
5989 (add_internal_problem_command): Selectively add commands.
5990 (_initialize_utils): New internal problem command.
5991 * maint.c (maintenance_demangler_warning): New function.
5992 (_initialize_maint_cmds): New command.
5994 2014-06-18 Tom Tromey <tromey@redhat.com>
5996 * f-valprint.c (info_common_command_for_block): Update.
5997 * symtab.h (struct general_symbol_info) <common_block>: Now
6000 2014-06-18 Tom Tromey <tromey@redhat.com>
6002 * symtab.h (struct symtab) <blockvector>: Now const.
6003 * ada-lang.c (ada_add_global_exceptions): Update.
6004 * buildsym.c (augment_type_symtab): Update.
6005 * dwarf2read.c (dw2_lookup_symbol): Update.
6006 * jit.c (finalize_symtab): Update.
6007 * jv-lang.c (add_class_symtab_symbol): Update.
6008 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6010 * objfiles.c (objfile_relocate1): Update.
6011 * psymtab.c (lookup_symbol_aux_psymtabs)
6012 (maintenance_check_psymtabs): Update.
6013 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6015 * spu-tdep.c (spu_catch_start): Update.
6016 * symmisc.c (dump_symtab_1): Update.
6017 * symtab.c (lookup_global_symbol_from_objfile)
6018 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6019 (basic_lookup_transparent_type_quick)
6020 (basic_lookup_transparent_type, find_pc_sect_symtab)
6021 (find_pc_sect_line, search_symbols): Update.
6022 * block.c (find_block_in_blockvector): Make "bl" const.
6023 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6025 (blockvector_contains_pc): Make "bv" const.
6026 (block_for_pc_sect): Update.
6027 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6028 (blockvector_contains_pc): Update.
6029 * breakpoint.c (resolve_sal_pc): Update.
6030 * inline-frame.c (block_starting_point_at): Update.
6032 2014-06-18 Tom Tromey <tromey@redhat.com>
6034 * completer.c (complete_line): Make "line_buffer" const.
6035 * completer.h (complete_line): Update.
6037 2014-06-18 Tom Tromey <tromey@redhat.com>
6039 * symtab.c (add_macro_name): Remove unneeded cast.
6041 2014-06-18 Tom Tromey <tromey@redhat.com>
6043 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6044 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6046 2014-06-18 Tom Tromey <tromey@redhat.com>
6048 * probe.c (info_probes_for_ops): Make "arg" const.
6049 * probe.h (info_probes_for_ops): Update.
6051 2014-06-18 Tom Tromey <tromey@redhat.com>
6053 * varobj.c (varobj_create): Update.
6054 * valops.c (value_of_this): Update.
6055 * tracepoint.c (add_local_symbols, scope_info): Update.
6056 * symtab.h (struct general_symbol_info) <block>: Now const.
6057 * symtab.c (skip_prologue_sal)
6058 (default_make_symbol_completion_list_break_on)
6059 (skip_prologue_using_sal): Update.
6060 * stack.h (iterate_over_block_locals)
6061 (iterate_over_block_local_vars): Update.
6062 * stack.c (print_frame_args): Update.
6063 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6065 (get_selected_block): Make return type const.
6066 * python/py-frame.c (frapy_block): Update.
6067 * python/py-block.c (gdbpy_block_for_pc): Update.
6068 * p-exp.y (%union) <bval>: Now const.
6069 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6070 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6071 * m2-exp.y (%union) <bval>: Now const.
6072 * linespec.c (get_current_search_block): Make return type const.
6073 (create_sals_line_offset, find_label_symbols): Update.
6074 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6076 (block_starting_point_at): Make "block" const.
6077 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6078 (check_exception_resume): Update.
6079 * guile/scm-frame.c (gdbscm_frame_block): Update.
6080 * guile/scm-block.c (gdbscm_lookup_block): Update.
6081 * frame.h (get_frame_block): Update.
6082 (get_selected_block): Make return type const.
6083 * frame.c (frame_id_inner): Update.
6084 * f-valprint.c (info_common_command_for_block)
6085 (info_common_command): Update.
6086 * dwarf2loc.c (dwarf2_find_location_expression)
6087 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6088 (locexpr_describe_location_piece): Update.
6089 * c-exp.y (%union) <bval>: Now const.
6090 * breakpoint.c (resolve_sal_pc): Update.
6091 * blockframe.c (get_frame_block):Make return type const.
6092 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6093 (block_innermost_frame): Update.
6094 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6095 (block_for_pc, block_for_pc_sect): Update.
6096 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6098 (block_for_pc_sect, block_for_pc): Make return type const.
6099 * ax-gdb.c (gen_expr): Update.
6100 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6101 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6102 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6103 (ada_read_var_value): Update.
6104 * ada-exp.y (struct name_info) <block>: Now const.
6106 (block_lookup): Constify.
6108 2014-06-18 Gary Benson <gbenson@redhat.com>
6110 * nat/i386-dregs.h: New file.
6111 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6112 * i386-nat.h (i386-dregs.h): New include.
6113 (DR_FIRSTADDR): Now in i386-dregs.h.
6114 (DR_LASTADDR): Likewise.
6115 (DR_NADDR): Likewise.
6116 (DR_STATUS): Likewise.
6117 (DR_CONTROL): Likewise.
6118 (i386_debug_reg_state): Likewise.
6119 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6121 2014-06-18 Don Breazeal <donb@codesourcery.com>
6123 * breakpoint.c (set_longjmp_breakpoint): Call
6124 momentary_breakpoint_from_master with additional argument.
6125 (set_longjmp_breakpoint_for_call_dummy): Call
6126 momentary_breakpoint_from_master with additional argument.
6127 (set_std_terminate_breakpoint): Call
6128 momentary_breakpoint_from_master with additional argument.
6129 (momentary_breakpoint_from_master): Add argument to function
6130 definition and use it to initialize structure member flag.
6131 (clone_momentary_breakpoint): Call
6132 momentary_breakpoint_from_master with additional argument.
6133 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6134 member flags set in momentary_breakpoint_from_master.
6136 2014-06-18 Gary Benson <gbenson@redhat.com>
6138 * i386-nat.c (i386_show_dr): Renamed to
6139 i386_dr_show and made nonstatic. All uses updated.
6140 (i386_length_and_rw_bits): Renamed to
6141 i386_dr_length_and_rw_bits and made nonstatic.
6143 (i386_insert_aligned_watchpoint): Renamed to
6144 i386_dr_insert_aligned_watchpoint and made nonstatic.
6146 (i386_remove_aligned_watchpoint): Renamed to
6147 i386_dr_remove_aligned_watchpoint and made nonstatic.
6149 (i386_update_inferior_debug_regs): Renamed to
6150 i386_dr_update_inferior_debug_regs and made nonstatic.
6153 2014-06-18 Gary Benson <gbenson@redhat.com>
6155 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6156 (i386_dr_low_can_set_control): Likewise.
6157 (i386_dr_low_set_addr): Likewise.
6158 (i386_dr_low_set_control): Likewise.
6159 (i386_dr_low_get_addr): Likewise.
6160 (i386_dr_low_get_status): Likewise.
6161 (i386_dr_low_get_control): Likewise.
6162 (i386_insert_aligned_watchpoint): Use new macros.
6163 (i386_update_inferior_debug_regs): Likewise.
6164 (i386_stopped_data_address): Likewise.
6166 2014-06-18 Gary Benson <gbenson@redhat.com>
6168 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6169 New parameter. All uses updated.
6171 2014-06-18 Gary Benson <gbenson@redhat.com>
6173 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6176 2014-06-18 Gary Benson <gbenson@redhat.com>
6178 * i386-nat.c (debug_printf): New macro.
6179 (i386_get_debug_register_length): Likewise.
6180 (TARGET_HAS_DR_LEN_8): Use above macro.
6181 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6182 and printf_unfiltered. Use phex to format values.
6184 2014-06-18 Gary Benson <gbenson@redhat.com>
6186 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6189 2014-06-18 Gary Benson <gbenson@redhat.com>
6191 * i386-nat.c: Comment changes.
6193 2014-06-18 Gary Benson <gbenson@redhat.com>
6195 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6197 2014-06-18 Gary Benson <gbenson@redhat.com>
6199 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6200 (i386_insert_aligned_watchpoint): Likewise.
6201 (i386_remove_aligned_watchpoint): Likewise.
6202 (i386_handle_nonaligned_watchpoint): Likewise.
6204 2014-06-18 Gary Benson <gbenson@redhat.com>
6206 * i386-nat.c: Whitespace changes.
6208 2014-06-17 Samuel Bronson <naesten@gmail.com>
6210 * MAINTAINERS: Update Roland McGrath's email address.
6211 Thanks to Sergio Durigan Junior for pointing out that he left
6212 Red Hat a while ago, and giving me a current address.
6214 2014-06-17 Tom Tromey <tromey@redhat.com>
6216 * utils.h (savestring): Remove declaration.
6218 2014-06-17 Tom Tromey <tromey@redhat.com>
6220 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6222 2014-06-16 Keith Seitz <keiths@redhat.com>
6225 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6226 to update the varobj if inferior_ptid is null_ptid.
6228 2014-06-16 Tom Tromey <tromey@redhat.com>
6230 * target.h (struct target_ops) <to_info_proc>: Make parameter
6232 (target_info_proc): Update.
6233 * target.c (target_info_proc): Make "args" const.
6234 * procfs.c (procfs_info_proc): Update.
6235 * linux-tdep.c (linux_info_proc): Update.
6236 (linux_core_info_proc_mappings): Make "args" const.
6237 (linux_core_info_proc): Update.
6238 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6239 * gdbarch.c: Rebuild.
6240 * gdbarch.h: Rebuild.
6241 * corelow.c (core_info_proc): Update.
6243 2014-06-16 Tom Tromey <tromey@redhat.com>
6245 * target.h (struct target_ops) <to_disconnect>: Make parameter
6247 (target_disconnect): Update.
6248 * target.c (target_disconnect): Make "args" const.
6249 * target-delegates.c: Rebuild.
6250 * remote.c (remote_disconnect): Update.
6251 * record.h (record_disconnect): Update.
6252 * record.c (record_disconnect): Update.
6253 * inf-child.c (inf_child_disconnect): Update.
6255 2014-06-16 Tom Tromey <tromey@redhat.com>
6257 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6258 * target.c (debug_to_rcmd, default_rcmd): Update.
6259 * target-delegates.c: Rebuild.
6260 * remote.c (remote_rcmd): Update.
6261 * monitor.c (monitor_rcmd): Update.
6263 2014-06-16 Pedro Alves <palves@redhat.com>
6265 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6266 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6267 have OBJF_SHARED set.
6268 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6269 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6270 instead of OBJF_USERLOADED.
6271 * objfiles.h (OBJF_SHARED): Update comment.
6272 (userloaded_objfile_contains_address_p): Rename to ...
6273 (shared_objfile_contains_address_p): ... this, and update
6275 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6277 (remove_symbol_file_command): Skip objfiles that don't have
6280 2014-06-16 Tom Tromey <tromey@redhat.com>
6282 * minsyms.h (prim_record_minimal_symbol)
6283 (prim_record_minimal_symbol_and_info): Update comments.
6285 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6287 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6288 or --without-guile, according to how GDB was built.
6290 2014-06-13 Tom Tromey <tromey@redhat.com>
6292 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6294 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6296 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6298 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6299 help_list.Pass all_commands, not -1, to help_list.
6300 * cli/cli-dump.c (dump_command, append_command)
6301 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6302 (binary_dump_command, binary_append_command): Pass all_commands,
6303 not -1, to help_list.
6304 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6306 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6308 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6310 * top.c (set_history): Pass all_commands, not -1, to help_list.
6311 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6312 all_commands, not -1, to help_list.
6313 * symfile.c (overlay_command): Pass all_commands, not -1, to
6315 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6317 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6319 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6321 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6322 not -1, to help_list.
6323 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6324 not -1, to help_list.
6325 * maint.c (maintenance_command, maintenance_info_command)
6326 (maintenance_print_command, maintenance_set_cmd): Pass
6327 all_commands, not -1, to help_list.
6328 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6330 * language.c (set_check): Pass all_commands, not -1, to help_list.
6331 * infcmd.c (unset_command): Pass all_commands, not -1, to
6333 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6335 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6337 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6339 * breakpoint.c (save_command): Pass all_commands, not -1, to
6341 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6342 all_commands, not -1, to help_list.
6344 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6346 * regcache.c (struct register_to_invalidate): New structure.
6347 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6349 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6351 2014-06-12 Yao Qi <yao@codesourcery.com>
6353 * varobj.c (varobj_get_num_children): Call
6354 varobj_is_dynamic_p.
6355 (varobj_list_children): Likewise.
6356 (varobj_update): Likewise. Update comments.
6358 2014-06-12 Yao Qi <yao@codesourcery.com>
6360 * varobj.c (varobj_pretty_printed_p): Rename to ...
6361 (varobj_is_dynamic_p): ... this. New function.
6362 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6363 (varobj_is_dynamic_p): Declare.
6364 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6365 (mi_print_value_p, varobj_update_one): Likewise.
6367 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6368 Yao Qi <yao@codesourcery.com>
6370 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6371 (varobj_get_iterator): Wrap up code for pretty-printer by
6372 "#if HAVE_PYTHON" and "#endif".
6373 (update_dynamic_varobj_children): Likewise.
6375 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6376 Yao Qi <yao@codesourcery.com>
6378 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6379 gdb_python_initialized is false. Move some code from varobj.c.
6380 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6381 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6382 (struct varobj_item): Moved to varobj-iter.h".
6383 (varobj_clear_saved_item): New function.
6384 (update_dynamic_varobj_children): Move python-related code to
6386 (free_variable): Call varobj_clear_saved_item and
6389 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6390 Yao Qi <yao@codesourcery.com>
6392 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6393 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6394 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6395 (py-varobj.o): New rule.
6396 * python/py-varobj.c: New file.
6397 * python/python-internal.h (py_varobj_get_iterator): Declare.
6398 * varobj-iter.h: New file.
6399 * varobj.c: Include "varobj-iter.h"
6400 (struct varobj) <child_iter>: Change its type from "PyObject *"
6401 to "struct varobj_iter *".
6402 <saved_item>: Likewise.
6403 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6404 [HAVE_PYTHON] (varobj_get_iterator): New function.
6405 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6406 python-specific code to python/py-varobj.c.
6407 (install_visualizer): Call varobj_iter_delete instead of
6409 * varobj.h (varobj_ensure_python_env): Declare.
6411 2014-06-12 Yao Qi <yao@codesourcery.com>
6413 * varobj.c (struct varobj_item): New structure.
6414 (create_child_with_value): Update declaration.
6415 (varobj_add_child): Replace arguments 'name' and 'value' with
6416 'item'. All callers updated.
6417 (install_dynamic_child): Likewise.
6418 (update_dynamic_varobj_children): Likewise.
6419 (varobj_add_child): Likewise.
6420 (create_child_with_value): Likewise.
6422 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6424 * NEWS: Create a new section for the next release branch.
6425 Rename the section of the current branch, now that it has
6428 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6430 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6431 * version.in: Bump version to 7.8.50.DATE-cvs.
6433 2014-06-11 Pedro Alves <palves@redhat.com>
6436 * ser-mingw.c (net_windows_socket_check_pending): New function.
6437 (net_windows_select_thread): Ignore spurious wakeups. Use
6438 net_windows_socket_check_pending.
6439 (net_windows_wait_handle): Check for pending events with
6440 ioctlsocket, through net_windows_socket_check_pending, instead of
6441 checking the socket's event.
6443 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6445 * python/python-internal.h (gdb_PyObject_GetAttrString)
6446 (gdb_PyObject_HasAttrString): New inline function definitions.
6447 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6448 char * of the second argument to PyObject_GetAttrString.
6450 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6452 * serial.c (serial_write): Fix index of character to be printed
6453 in call to serial_logchar when serial debug traces are enabled.
6455 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6457 * gdbtypes (resolve_dynamic_range): Add function description.
6459 2014-06-09 Pedro Alves <palves@redhat.com>
6461 * linux-nat.c (linux_child_follow_fork): Initialize status with
6462 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6463 inner block. Only pass the signal to PTRACE_DETACH if in pass
6466 2014-06-09 Gary Benson <gbenson@redhat.com>
6468 * common/signals.c (gdb_signal_from_host): Reorder to separate
6469 the always-available ANSI-standard signals from the signals that
6471 (do_gdb_signal_to_host): Likewise.
6472 * proc-events.c (signal_table): Likewise.
6474 2014-06-08 Hui Zhu <hui@codesourcery.com>
6476 * common/linux-ptrace.c (linux_disable_event_reporting): New
6478 * common/linux-ptrace.h (linux_disable_event_reporting): New
6480 * linux-nat.c (linux_child_follow_fork): Do a single step before
6483 2014-06-07 Keith Seitz <keiths@redhat.com>
6487 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6488 from symbol_matches_domain in symtab.c. All local callers
6489 of symbol_matches_domain updated.
6490 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6491 search STRUCT_DOMAIN.
6492 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6493 independently. standard_lookup will do that automatically.
6494 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6495 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6496 (cp_lookup_symbol_in_namespace): Likewise.
6497 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6498 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6499 may return a STRUCT_DOMAIN match.
6500 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6501 * cp-support.c: Include language.h.
6502 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6504 * psymtab.c (match_partial_symbol): Compare the requested
6505 domain with the symbol's domain directly.
6506 (lookup_partial_symbol): Likewise.
6507 * symtab.c (lookup_symbol_in_language): Explain when/why
6508 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6509 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6510 appropriate languages.
6511 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6512 and moved to ada-lang.c
6513 (lookup_block_symbol): Explain that this function only returns
6514 symbol matching the requested DOMAIN.
6515 Compare the requested domain with the symbol's domain directly.
6516 (iterate_over_symbols): Compare the requested domain with the
6517 symbol's domain directly.
6518 * symtab.h (symbol_matches_domain): Remove.
6520 2014-06-06 Doug Evans <xdje42@gmail.com>
6522 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6523 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6524 (gdbscm_guile_version_is_at_least): Declare.
6525 (gdbscm_scm_string_to_int): Declare.
6526 * guile/guile.c (gdbscm_guile_major_version): New global.
6527 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6528 (guile_datadir): New static global.
6529 (gdbscm_guile_data_directory): New function.
6530 (initialize_scheme_side): Update.
6531 (misc_guile_functions): Add guile-data-directory.
6532 (initialize_gdb_module): Fetch guile version number.
6533 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6534 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6535 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6536 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6538 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6539 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6540 * guile/scm-value.c (gdbscm_value_to_string): Only call
6541 scm_port_conversion_strategy if Guile version >= 2.0.6.
6543 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6545 * main.c (print_gdb_help): Add -q and --silent.
6547 2014-06-06 Gary Benson <gbenson@redhat.com>
6549 * common/signals.c: Remove preprocessor conditionals for
6550 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6551 SIGSEGV and SIGTERM.
6552 * proc-events.c: Likewise.
6554 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6556 * symfile.c (symfile_free_objfile): Remove restriction to
6558 * symfile-mem.c (symbol_file_add_from_memory): Call
6559 add_target_sections_of_objfile.
6561 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6563 * guile/scm-value.c (gdbscm_history_append_x): Use
6564 'vlscm_get_value_smob_arg_unsafe' instead of
6565 'vlscm_scm_to_value'.
6567 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6570 * utils.c (printchar): Don't escape at all if quoter is NUL.
6571 Update function documentation to clarify effect of parameter
6573 * remote.c (escape_buffer): Pass '\\' as the quoter to
6574 fputstrn_unfiltered.
6575 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6576 generate the output.
6577 (mi_solib_unloaded): Same.
6579 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6581 * development.sh: Delete.
6582 * Makefile.in (config.status): Adjust dependency on development.sh.
6583 * configure.ac: Adjust development.sh source call.
6584 * configure: Regenerate.
6586 2014-06-04 Doug Evans <xdje42@gmail.com>
6588 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6589 is_scheme_bkpt, spec.
6590 (bpscm_make_breakpoint_smob): Initialize new members.
6591 (gdbscm_create_breakpoint_x): Split into two ...
6592 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6593 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6594 (scheme_function breakpoint_functions): Update.
6595 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6596 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6597 register-breakpoint!.
6599 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6602 * mem-break.c (z_type_supported): Return zero if
6603 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6605 2014-06-04 Tom Tromey <tromey@redhat.com>
6607 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6608 value_from_contents_and_address_unresolved.
6609 (ada_template_to_fixed_record_type_1): Likewise.
6610 (ada_which_variant_applies): Likewise.
6611 * value.h (value_from_contents_and_address_unresolved): Declare.
6612 * value.c (value_from_contents_and_address_unresolved): New
6614 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6615 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6616 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6618 2014-06-04 Tom Tromey <tromey@redhat.com>
6620 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6622 2014-06-04 Tom Tromey <tromey@redhat.com>
6624 * procfs.c (procfs_attach): Make "args" const.
6625 * windows-nat.c (windows_attach): Make "args" const.
6626 * nto-procfs.c (procfs_attach): Make "args" const.
6627 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6628 * go32-nat.c (go32_attach): Make "args" const.
6629 * gnu-nat.c (gnu_attach): Make "args" const.
6630 * darwin-nat.c (darwin_attach): Make "args" const.
6631 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6632 * linux-nat.c (linux_nat_attach): Make "args" const.
6633 * remote.c (extended_remote_attach_1, extended_remote_attach):
6635 * target.h (struct target_ops) <to_attach>: Make "args" const.
6636 (find_default_attach): Likewise.
6637 * utils.c (parse_pid_to_attach): Make "args" const.
6638 * utils.h (parse_pid_to_attach): Update.
6640 2014-06-04 Tom Tromey <tromey@redhat.com>
6642 * target-delegates.c: Rebuild.
6643 * target.c (default_thread_address_space): New function.
6644 (target_thread_address_space): Simplify.
6645 * target.h (struct target_ops) <to_thread_address_space>: Add
6646 TARGET_DEFAULT_FUNC.
6648 2014-06-04 Doug Evans <xdje42@gmail.com>
6650 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6652 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6654 * record-btrace.c: Include event-loop.h and inf-loop.h.
6655 (record_btrace_resume_exec_dir)
6656 (record_btrace_async_inferior_event_handler)
6657 (record_btrace_handle_async_inferior_event): New.
6658 (record_btrace_open): Create async event handler.
6659 (record_btrace_close): Delete async event handler.
6660 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6661 Mark async event handler.
6662 (record_btrace_execution_direction): New.
6663 (init_record_btrace_ops): Initialize to_execution_direction.
6665 2014-06-03 Doug Evans <xdje42@gmail.com>
6667 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6668 (gdbscm_make_parameter): Ditto.
6670 2014-06-03 Doug Evans <dje@google.com>
6672 * exec.c (exec_close_1): Call clear_section_table instead of
6673 resize_section_table.
6674 (clear_section_table): New function.
6675 (resize_section_table): Make static. Rename arg num_added to
6677 * exec.h (clear_section_table): Declare.
6678 (resize_section_table): Delete.
6679 * progspace.c (release_program_space): Call clear_section_table
6680 instead of resize_section_table.
6682 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6684 * NEWS (Python Scripting): Add entry about the new xmethods
6687 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6689 * python/py-xmethods.c: New file.
6690 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6691 (objfpy_dealloc): XDECREF on the new xmethods field.
6692 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6694 (objfpy_get_xmethods): New function.
6695 (objfile_getset): New entry 'xmethods'.
6696 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6697 (pspy_dealloc): XDECREF on the new xmethods field.
6698 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6700 (pspy_get_xmethods): New function.
6701 (pspace_getset): New entry 'xmethods'.
6702 * python/python-internal.h: Add declarations for new functions.
6703 * python/python.c (_initialize_python): Invoke
6704 gdbpy_initialize_xmethods.
6705 * python/lib/gdb/__init__.py (xmethods): New
6707 * python/lib/gdb/xmethod.py: New file.
6708 * python/lib/gdb/command/xmethods.py: New file.
6710 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6712 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6713 best match method returned by find_overload_match is an xmethod.
6714 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6715 the best matching operator returned by find_overload_match is an
6717 * valops.c: #include "extension.h".
6718 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6719 Return void. The list of matching source methods is returned in
6720 "fn_list" and a vector of matching debug method workers is
6721 returned in "xm_worker_vec". Update all callers.
6722 (value_find_oload_method_list): Likewise.
6723 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6724 non-NULL, then the index of the best matching method in this
6725 vector is returned. Update all callers.
6726 (find_overload_match): Include xmethods while performing overload
6729 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6731 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6732 * extension-priv.h (struct extension_language_ops): Add the
6734 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6735 get_matching_xmethod_workers, get_xmethod_argtypes,
6736 invoke_xmethod, free_xmethod_worker,
6737 free_xmethod_worker_vec): New functions.
6738 * extension.h: #include "common/vec.h".
6739 New function declarations.
6740 (struct xmethod_worker): New struct.
6741 (VEC (xmethod_worker_ptr)): New vector type.
6742 (xmethod_worker_ptr): New typedef.
6743 (xmethod_worker_vec): Likewise.
6744 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6746 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6747 (struct builtin_type): New field "xmethod".
6748 * valarith.c (value_ptradd): Assert that the value argument is not
6750 * valops.c (value_must_coerce_to_target): Return 0 for
6751 lval_xcallable values.
6752 * value.c (struct value): New field XM_WORKER in the field
6754 (value_address, value_raw_address): Return 0 for lval_xcallable
6756 (set_value_address): Assert that the value is not an
6758 (value_free): Free the associated xmethod worker when freeing
6759 lval_xcallable values.
6760 (set_value_component_location): Assert that the WHOLE value is not
6762 (value_of_xmethod, call_xmethod): New functions.
6763 * value.h: Declare "struct xmethod_worker".
6764 Declare new functions value_of_xmethod, call_xmethod.
6766 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6767 Pedro Alves <palves@redhat.com>
6769 PR breakpoints/17000
6770 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6771 New function, extracted from software_breakpoint_inserted_here_p.
6772 (software_breakpoint_inserted_here_p): Replace factored out code
6773 by call to find_non_raw_software_breakpoint_inserted_here.
6774 (bp_target_info_copy_insertion_state): New function.
6775 (bkpt_insert_location): Handle the case of a single-step
6776 breakpoint already inserted at the same address.
6777 (bkpt_remove_location): Handle the case of a single-step
6778 breakpoint still inserted at the same address.
6779 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6780 breakpoint already inserted at the same address.
6781 (deprecated_remove_raw_breakpoint): Handle the case of a
6782 non-raw breakpoint still inserted at the same address.
6783 (find_single_step_breakpoint): New function, extracted from
6784 single_step_breakpoint_inserted_here_p.
6785 (find_single_step_breakpoint): New function,
6786 factored out from single_step_breakpoint_inserted_here_p.
6787 (single_step_breakpoint_inserted_here_p): Reimplement.
6789 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6791 Pushed by Joel Brobecker <brobecker@adacore.com>
6792 * source.c (show_substitute_path_command): Fix display of matching
6795 2014-06-03 Gary Benson <gbenson@redhat.com>
6797 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6799 2014-06-02 Doug Evans <xdje42@gmail.com>
6801 Add parameter support for Guile.
6802 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6803 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6804 (scm-param.o): New rule.
6805 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6806 (gdbscm_misc_error): Declare.
6807 (gdbscm_canonicalize_command_name): Declare.
6808 (gdbscm_scm_to_host_string): Declare.
6809 (gdbscm_scm_from_host_string): Declare.
6810 (gdbscm_initialize_parameters): Declare.
6811 * guile/guile.c (initialize_gdb_module): Call
6812 gdbscm_initialize_parameters.
6813 * guile/lib/gdb.scm: Export parameter symbols.
6814 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6815 cmdscm_canonicalize_name and made public. All callers updated.
6816 * guile/scm-exception.c (gdbscm_misc_error): New function.
6817 * guile/scm-param.c: New file.
6818 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6819 (gdbscm_scm_to_host_string): New function.
6820 (gdbscm_scm_from_host_string): New function.
6821 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6823 2014-06-02 Doug Evans <xdje42@gmail.com>
6825 Add command support for Guile.
6826 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6827 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6828 (scm-cmd.o): New rule.
6829 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6830 (gdbscm_user_error_p): Declare.
6831 (gdbscm_parse_command_name): Declare.
6832 (gdbscm_valid_command_class_p): Declare.
6833 (gdbscm_initialize_commands): Declare.
6834 * guile/guile.c (initialize_gdb_module): Call
6835 gdbscm_initialize_commands.
6836 * guile/lib/gdb.scm: Export command symbols.
6837 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6838 (throw-user-error): New function.
6839 * guile/scm-cmd.c: New file.
6840 * guile/scm-exception.c (user_error_symbol): New static global.
6841 (gdbscm_user_error_p): New function.
6842 (gdbscm_initialize_exceptions): Set user_error_symbol.
6843 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6845 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6847 * top.c (command_loop): Handle comments here...
6848 (command_line_input): ... not here.
6850 2014-06-02 Doug Evans <xdje42@gmail.com>
6852 Add progspace support for Guile.
6853 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6854 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6855 (scm-progspace.o): New rule.
6856 * guile/guile-internal.h (pspace_smob): New typedef.
6857 (psscm_pspace_smob_pretty_printers): Declare.
6858 (psscm_pspace_smob_from_pspace): Declare.
6859 (psscm_scm_from_pspace): Declare.
6860 * guile/guile.c (initialize_gdb_module): Call
6861 gdbscm_initialize_pspaces.
6862 * guile/lib/gdb.scm: Export progspace symbols.
6863 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6865 (append-pretty-printer!): Ditto.
6866 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6868 * guile/scm-progspace.c: New file.
6870 2014-06-03 Alan Modra <amodra@gmail.com>
6872 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6873 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6875 2014-06-02 Doug Evans <dje@google.com>
6877 Add support for skeletonless type units.
6878 * dwarf2read.c (struct dwarf2_per_objfile): New member
6879 n_allocated_type_units.
6880 (struct dwarf2_per_objfile) <tu_stats>: New member
6881 nr_all_type_units_reallocs.
6882 (create_signatured_type_table_from_index): Initialize
6883 n_allocated_type_units
6884 (create_all_type_units): Ditto.
6885 (add_type_unit): Move up in file. New arg slot.
6886 All callers updated. Increase space for all_type_units more
6888 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6889 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6890 (lookup_dwp_signatured_type): Ditto.
6891 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6892 All callers updated.
6893 (build_type_psymtabs_1): Leave type_unit_groups as
6894 NULL if no TUs present.
6895 (print_tu_stats): New function.
6896 (process_skeletonless_type_unit): New function.
6897 (process_dwo_file_for_skeletonless_type_units): New
6899 (process_skeletonless_type_units): New function.
6900 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6901 Call print tu_stats if debugging enabled.
6903 2014-06-02 Pedro Alves <palves@redhat.com>
6905 * breakpoint.c (build_target_command_list): Don't build a command
6906 list if we have any duplicate location that isn't a dprintf.
6908 2014-06-02 Pedro Alves <palves@redhat.com>
6910 * breakpoint.c (dprintf_breakpoint_hit): New function.
6911 (initialize_breakpoint_ops): Install it as dprintf's
6912 breakpoint_hit method.
6914 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6916 * source.c (substitute_path_rule_matches): Simplify using
6917 filename_ncmp instead of FILENAME_CMP.
6919 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6921 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6923 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6925 * configure.ac: When Guile is available, check for the
6926 availability of 'scm_new_smob'.
6927 * configure, config.h.in: Regenerate.
6928 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6931 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6933 * frame.c (struct frame_info): Add stop_string field.
6934 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6935 (get_prev_frame_always): Old content moved into
6936 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6937 TRY_CATCH, handle MEMORY_ERROR exceptions.
6938 (frame_stop_reason_string): New function definition.
6939 * frame.h (unwind_stop_reason_to_string): Extend comment to
6940 mention frame_stop_reason_string.
6941 (frame_stop_reason_string): New function declaration.
6942 * stack.c (frame_info): Switch to frame_stop_reason_string.
6943 (backtrace_command_1): Switch to frame_stop_reason_string.
6944 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6945 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6946 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6948 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6950 * frame.c (frame_stop_reason_string): Rename to ...
6951 (unwind_stop_reason_to_string): this.
6952 * frame.h (frame_stop_reason_string): Rename to ...
6953 (unwind_stop_reason_to_string): this.
6954 * stack.c (frame_info): Update call to frame_stop_reason_string.
6955 (backtrace_command_1): Likewise.
6956 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6957 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6959 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6961 * frame.c (remove_prev_frame): New function.
6962 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6965 2014-05-29 Pedro Alves <palves@redhat.com>
6967 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6968 and make it const. When a single-step decays to a continue,
6969 clear 'step', not 'hw_step'. Pass whether the caller wanted
6970 to step to user_visible_resume_ptid, not what we ask the
6973 2014-05-29 Pedro Alves <palves@redhat.com>
6975 * infrun.c (process_event_stop_test, handle_step_into_function)
6976 (handle_step_into_function_backward): Adjust.
6977 Don't set the even thread's stop_step and call stop_waiting before
6978 calling end_stepping_range. Instead do that ...
6979 (end_stepping_range): ... here. Take an ecs pointer parameter.
6981 2014-05-29 Pedro Alves <palves@redhat.com>
6983 * infrun.c (stop_stepping): Rename to ...
6984 (stop_waiting): ... this.
6985 (proceed): Update comment.
6986 (process_event_stop_test, handle_inferior_event)
6987 (handle_signal_stop, handle_step_into_function)
6988 (handle_step_into_function_backward): Update.
6990 2014-05-29 Pedro Alves <palves@redhat.com>
6992 * infcall.c (run_inferior_call): Don't check whether the current
6993 thread is running after the proceed call.
6995 2014-05-29 Pedro Alves <palves@redhat.com>
6996 Tom Tromey <tromey@redhat.com>
6998 * NEWS: Mention "maint set target-async", "set mi-async", and that
6999 background execution commands are now always available.
7000 * target.h (target_async_permitted): Update comment.
7001 * target.c (target_async_permitted, target_async_permitted_1):
7003 (set_target_async_command): Rename to ...
7004 (maint_set_target_async_command): ... this.
7005 (show_target_async_command): Rename to ...
7006 (maint_show_target_async_command): ... this.
7007 (_initialize_target): Adjust.
7008 * infcmd.c (prepare_execution_command): Make extern.
7009 * inferior.h (prepare_execution_command): Declare.
7010 * infrun.c (set_observer_mode): Leave target async alone.
7011 * mi/mi-interp.c (mi_interpreter_init): Install
7012 mi_on_sync_execution_done as sync_execution_done observer.
7013 (mi_on_sync_execution_done): New function.
7014 (mi_execute_command_input_handler): Don't print the prompt if we
7015 just started a synchronous command with an async target.
7016 (mi_on_resume): Check sync_execution before printing prompt.
7017 * mi/mi-main.h (mi_async_p): Declare.
7018 * mi/mi-main.c: Include gdbcmd.h.
7019 (mi_async_p): New function.
7020 (mi_async, mi_async_1): New globals.
7021 (set_mi_async_command, show_mi_async_command, mi_async): New
7023 (exec_continue): Call prepare_execution_command.
7024 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7025 (mi_execute_async_cli_command): Use mi_async_p.
7026 (_initialize_mi_main): Install "set mi-async". Make
7027 "target-async" a deprecated alias.
7029 2014-05-29 Pedro Alves <palves@redhat.com>
7031 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7032 (_initialize_cli_interp): Adjust.
7033 * event-loop.c: Include "observer.h".
7034 (start_event_loop): Notify 'command_error' observers instead of
7035 calling display_gdb_prompt. Remove FIXME comment.
7036 * event-top.c (display_gdb_prompt): Remove call into the
7038 * inf-loop.c: Include "observer.h".
7039 (inferior_event_handler): Notify 'command_error' observers instead
7040 of calling display_gdb_prompt.
7041 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7042 observers instead of calling display_gdb_prompt.
7043 * interps.c (interp_set): Don't call display_gdb_prompt.
7044 (current_interp_display_prompt_p): Delete.
7045 * interps.h (interp_prompt_p): Delete declaration.
7046 (interp_prompt_p_ftype): Delete.
7047 (struct interp_procs) <prompt_proc_p>: Delete field.
7048 (current_interp_display_prompt_p): Delete declaration.
7049 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7050 (_initialize_mi_interp): Adjust.
7051 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7052 'command_error' observers.
7053 (tui_on_sync_execution_done, tui_on_command_error): New
7055 (tui_display_prompt_p): Delete.
7056 (_initialize_tui_interp): Adjust.
7058 2014-05-29 Pedro Alves <palves@redhat.com>
7061 * cli/cli-interp.c: Include infrun.h and observer.h.
7062 (cli_uiout, cli_interp): New globals.
7063 (cli_on_signal_received, cli_on_end_stepping_range)
7064 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7066 (cli_interpreter_init): Install them as 'end_stepping_range',
7067 'signal_received' 'signal_exited', 'exited' and 'no_history'
7069 (_initialize_cli_interp): Remove cli_interp local.
7070 * infrun.c (handle_inferior_event): Call the several stop reason
7071 observers instead of printing the stop reason directly.
7072 (end_stepping_range): New function.
7073 (print_end_stepping_range_reason, print_signal_exited_reason)
7074 (print_exited_reason, print_signal_received_reason)
7075 (print_no_history_reason): Make static, and add an uiout
7076 parameter. Print to that instead of to CURRENT_UIOUT.
7077 * infrun.h (print_end_stepping_range_reason)
7078 (print_signal_exited_reason, print_exited_reason)
7079 (print_signal_received_reason print_no_history_reason): New
7081 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7083 <cli_uiout>: New field.
7084 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7085 uiout for CLI output. Install 'signal_received',
7086 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7088 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7089 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7090 (mi_on_no_history): New functions.
7091 (ui_out_free_cleanup): Delete function.
7092 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7093 instead use the one already stored in the MI interpreter data.
7094 (mi_ui_out): Adjust.
7095 * tui/tui-interp.c: Include infrun.h and observer.h.
7096 (tui_interp): New global.
7097 (tui_on_signal_received, tui_on_end_stepping_range)
7098 (tui_on_signal_exited, tui_on_exited)
7099 (tui_on_no_history): New functions.
7100 (tui_init): Install them as 'end_stepping_range',
7101 'signal_received' 'signal_exited', 'exited' and 'no_history'
7103 (_initialize_tui_interp): Delete tui_interp local.
7105 2014-05-29 Pedro Alves <palves@redhat.com>
7108 * linux-nat.c (linux_nat_resume_callback): Rename the second
7109 parameter to 'except'. Skip LP if it points to EXCEPT.
7110 (linux_nat_resume): Don't mark the event lwp as not stopped
7111 before resuming sibling lwps. Instead ask
7112 linux_nat_resume_callback to skip the event lwp. Mark it as not
7113 stopped after actually resuming it.
7114 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7116 (wait_lwp): Mark the lwp as stopped here.
7117 (stop_wait_callback): Mark the lwp as not stopped right after
7118 resuming it. Don't mark lwps as stopped here.
7119 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7120 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7122 2014-05-29 Pedro Alves <palves@redhat.com>
7125 * infrun.c (resume): Determine how much to resume depending on
7126 whether the caller wanted a step, not whether we can hardware step
7127 the target. Mark all threads that we intend to run as running,
7128 unless we're calling an inferior function.
7129 (normal_stop): If the thread is running an infcall, don't finish
7131 * target.c (target_resume): Don't mark threads as running here.
7133 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7135 * serial.c (_initialize_serial): Remove support for
7136 the "set remotebaud" and "show remotebaud" commands.
7137 * NEWS: Add entry documenting the removal of that command.
7139 2014-05-28 Yao Qi <yao@codesourcery.com>
7141 * charset.c: Fix typo in comments.
7143 2014-05-27 Gary Benson <gbenson@redhat.com>
7145 * utils.c (internal_vproblem): Prompt for a bug report.
7147 2014-05-26 Andy Wingo <wingo@igalia.com>
7149 * guile/scm-arch.c (arscm_mark_arch_smob):
7150 * guile/scm-block.c (bkscm_mark_block_smob)
7151 (bkscm_mark_block_syms_progress_smob):
7152 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7153 * guile/scm-exception.c (exscm_mark_exception_smob):
7154 * guile/scm-frame.c (frscm_mark_frame_smob):
7155 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7156 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7157 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7158 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7159 (ppscm_mark_pretty_printer_worker_smob):
7160 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7161 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7162 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7163 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7165 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7168 2014-05-26 Andy Wingo <wingo@igalia.com>
7169 Doug Evans <xdje42@gmail.com>
7171 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7172 empty_base_class. All uses updated.
7173 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7174 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7176 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7177 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7178 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7179 (gdbscm_gsmob_has_property_p, add_property_name)
7180 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7181 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7182 (gdb-object-has-property?, gdb-object-properties): Remove.
7183 (gdb-object-kind): Renamed from gsmob-kind.
7185 2014-05-26 Andy Wingo <wingo@igalia.com>
7187 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7188 * configure: Regenerate.
7190 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7192 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7194 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7196 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7197 (replay_memory_access_read_only, replay_memory_access_read_write)
7198 (replay_memory_access_types, replay_memory_access)
7199 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7200 (cmd_set_record_btrace, cmd_show_record_btrace)
7201 (cmd_show_replay_memory_access): New.
7202 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7203 (record_btrace_remove_breakpoint): Replace
7204 record_btrace_allow_memory_access with replay_memory_access.
7205 (_initialize_record_btrace): Add commands.
7206 * NEWS: Announce it.
7208 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7210 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7212 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7214 * MAINTAINERS (Write After Approval): Move self back from
7217 2014-05-22 Pedro Alves <palves@redhat.com>
7219 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7220 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7221 (disable_randomization, enum exec_direction_kind)
7222 (execution_direction, stop_registers, start_remote)
7223 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7224 (wait_for_inferior, normal_stop, get_last_target_status)
7225 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7226 (insert_step_resume_breakpoint_at_sal)
7227 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7228 (set_step_info, print_stop_event, signal_stop_state)
7229 (signal_print_state, signal_pass_state, signal_stop_update)
7230 (signal_print_update, signal_pass_update)
7231 (update_signals_program_target, clear_exit_convenience_vars)
7232 (displaced_step_dump_bytes, update_observer_mode)
7233 (signal_catch_update, gdb_signal_from_command): Move
7235 * infrun.h: ... to this new file.
7236 * amd64-tdep.c: Include infrun.h.
7237 * annotate.c: Include infrun.h.
7238 * arch-utils.c: Include infrun.h.
7239 * arm-linux-tdep.c: Include infrun.h.
7240 * arm-tdep.c: Include infrun.h.
7241 * break-catch-sig.c: Include infrun.h.
7242 * breakpoint.c: Include infrun.h.
7243 * common/agent.c: Include infrun.h instead of inferior.h.
7244 * corelow.c: Include infrun.h.
7245 * event-top.c: Include infrun.h.
7246 * go32-nat.c: Include infrun.h.
7247 * i386-tdep.c: Include infrun.h.
7248 * inf-loop.c: Include infrun.h.
7249 * infcall.c: Include infrun.h.
7250 * infcmd.c: Include infrun.h.
7251 * infrun.c: Include infrun.h.
7252 * linux-fork.c: Include infrun.h.
7253 * linux-nat.c: Include infrun.h.
7254 * linux-thread-db.c: Include infrun.h.
7255 * monitor.c: Include infrun.h.
7256 * nto-tdep.c: Include infrun.h.
7257 * procfs.c: Include infrun.h.
7258 * record-btrace.c: Include infrun.h.
7259 * record-full.c: Include infrun.h.
7260 * remote-m32r-sdi.c: Include infrun.h.
7261 * remote-mips.c: Include infrun.h.
7262 * remote-notif.c: Include infrun.h.
7263 * remote-sim.c: Include infrun.h.
7264 * remote.c: Include infrun.h.
7265 * reverse.c: Include infrun.h.
7266 * rs6000-tdep.c: Include infrun.h.
7267 * s390-linux-tdep.c: Include infrun.h.
7268 * solib-irix.c: Include infrun.h.
7269 * solib-osf.c: Include infrun.h.
7270 * solib-svr4.c: Include infrun.h.
7271 * target.c: Include infrun.h.
7272 * top.c: Include infrun.h.
7273 * windows-nat.c: Include infrun.h.
7274 * mi/mi-interp.c: Include infrun.h.
7275 * mi/mi-main.c: Include infrun.h.
7276 * python/py-threadevent.c: Include infrun.h.
7278 2014-05-22 Pedro Alves <palves@redhat.com>
7280 * infrun.c (handle_inferior_event): Store the exit code for
7281 --return-child-result here, instead of ...
7282 (print_exited_reason): ... here.
7284 2014-05-21 Pedro Alves <palves@redhat.com>
7287 * gdbthread.h (struct thread_control_state): New field
7289 * infrun.c (follow_fork): Copy the new thread control field to the
7291 (clear_proceed_status_thread): Clear the new thread control field.
7292 (proceed): Set the new thread control field.
7293 * interps.h (command_interp): Declare.
7294 * interps.c (command_interpreter): New global.
7295 (command_interp): New function.
7296 (interp_exec): Set `command_interpreter' while here.
7297 * cli-out.c (cli_uiout_dtor): New function.
7298 (cli_ui_out_impl): Install it.
7299 * mi/mi-interp.c: Include cli-out.h.
7300 (mi_cmd_interpreter_exec): Add comment.
7301 (restore_current_uiout_cleanup): New function.
7302 (ui_out_free_cleanup): New function.
7303 (mi_on_normal_stop): If finishing an execution command started by
7304 a CLI command, or any kind of breakpoint-like event triggered,
7305 print the stop event to the output (CLI) stream.
7306 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7308 2014-05-21 Pedro Alves <palves@redhat.com>
7310 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7311 current source line having changed.
7312 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7313 * infrun.c (normal_stop): Adjust call to
7314 set_current_sal_from_frame.
7315 * source.c (clear_lines_listed_range): New function.
7316 (set_current_source_symtab_and_line, identify_source_line): Clear
7317 the lines listed range.
7318 (line_info): Handle the first "info line" after the current source
7319 line having changed.
7320 * stack.c (print_stack_frame): Remove center handling.
7321 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7324 2014-05-21 Pedro Alves <palves@redhat.com>
7326 * inf-child.c (inf_child_mourn_inferior): New function.
7327 * inf-child.h (inf_child_mourn_inferior): New declaration.
7328 * darwin-nat.c (darwin_mourn_inferior): Use
7329 inf_child_mourn_inferior.
7330 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7331 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7332 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7333 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7334 * windows-nat.c (windows_mourn_inferior): Likewise.
7336 2014-05-21 Doug Evans <xdje42@gmail.com>
7338 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7340 2014-05-21 Doug Evans <xdje42@gmail.com>
7342 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7343 (gdbscm_out_of_range_error): Ditto.
7344 (gdbscm_memory_error): Ditto.
7345 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7346 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7347 (gdbscm_out_of_range_error): Update.
7348 (gdbscm_memory_error): Update.
7349 (gdbscm_scm_to_target_string_unsafe): Delete.
7351 2014-05-21 Pedro Alves <palves@redhat.com>
7353 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7355 (inf_child_open_target): New function.
7356 (inf_child_open): Use inf_child_open_target to push the target
7357 instead of erroring out.
7358 (inf_child_disconnect, inf_child_close)
7359 (inf_child_maybe_unpush_target): New functions.
7360 (inf_child_target): Install inf_child_disconnect and
7361 inf_child_close. Store a pointer to the returned object.
7362 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7364 * target.c (auto_connect_native_target): New global.
7365 (show_default_run_target): New function.
7366 (find_default_run_target): Return NULL if automatically connecting
7367 to the native target is disabled.
7368 (_initialize_target): Install set/show auto-connect-native-target.
7369 * NEWS: Mention "set auto-connect-native-target", and "target
7371 * linux-nat.c (super_close): New global.
7372 (linux_nat_close): Call super_close.
7373 (linux_nat_add_target): Store a pointer to the base class's
7375 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7376 inf_child_maybe_unpush.
7377 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7379 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7380 the inferior. Use inf_child_maybe_unpush_target.
7381 (inf_ttrace_attach): Don't push the target if it is already
7383 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7384 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7385 after mourning the inferior. Use inf_child_maybe_unpush_target.
7386 (darwin_attach_pid): Don't push the target if it is already
7388 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7389 mourning the inferior. Use inf_child_maybe_unpush_target.
7390 (gnu_detach): Use inf_child_maybe_unpush_target.
7391 * go32-nat.c (go32_create_inferior): Don't push the target if it
7393 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7394 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7395 (procfs_open): Rename to ...
7396 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7397 comments. Can target_preopen before changing node. Call
7398 inf_child_open_target to push the target explicitly.
7399 (procfs_attach): Don't push the target if it is already pushed.
7400 (procfs_detach): Use inf_child_maybe_unpush_target.
7401 (procfs_create_inferior): Don't push the target if it is already
7403 (nto_native_ops): New global.
7404 (procfs_open): Reimplement.
7405 (procfs_native_open): New function.
7406 (init_procfs_targets): Install procfs_native_open as to_open of
7407 "target native". Store a pointer to the "native" target in
7409 * procfs.c (procfs_attach): Don't push the target if it is already
7411 (procfs_detach): Use inf_child_maybe_unpush_target.
7412 (procfs_mourn_inferior): Only unpush the target after mourning the
7413 inferior. Use inf_child_maybe_unpush_target.
7414 (procfs_init_inferior): Don't push the target if it is already
7416 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7417 if it is already pushed.
7419 2014-05-21 Pedro Alves <palves@redhat.com>
7421 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7422 and "procfs" targets are now called "native" instead.
7424 2014-05-21 Pedro Alves <palves@redhat.com>
7426 * go32-nat.c (go32_open): Delete.
7427 (go32_target): Don't override the to_open method.
7429 2014-05-21 Pedro Alves <palves@redhat.com>
7431 * nto-procfs.c (procfs_can_run): New function.
7432 (nto_procfs_ops): New global.
7433 (init_procfs_targets): New, based on procfs_target. Install
7434 "target native" in addition to "target procfs".
7435 (_initialize_procfs): Call init_procfs_targets instead of adding
7438 2014-05-21 Pedro Alves <palves@redhat.com>
7440 * windows-nat.c (windows_target): Don't override to_shortname,
7441 to_longname or to_doc.
7443 2014-05-21 Pedro Alves <palves@redhat.com>
7445 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7448 2014-05-21 Pedro Alves <palves@redhat.com>
7450 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7451 to_shortname, to_longname or to_doc.
7453 2014-05-21 Pedro Alves <palves@redhat.com>
7455 * go32-nat.c (go32_target): Don't override to_shortname,
7456 to_longname or to_doc.
7458 2014-05-21 Pedro Alves <palves@redhat.com>
7460 * inf-child.c (inf_child_open): Remove mention of "child".
7461 (inf_child_target): Rename target to "native" instead of "child".
7463 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7465 * Makefile.in (SFILES): Delete "regset.c".
7466 (COMMON_OBS): Delete "regset.o".
7468 * regset.h (regset_alloc): Delete prototype.
7470 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7472 * sparc-linux-tdep.c (sparc32_linux_gregset)
7473 (sparc32_linux_fpregset): New static regset structures.
7474 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7475 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7477 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7478 (sparc64_linux_fpregset): New static regset structures.
7479 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7480 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7481 New static regset structures.
7482 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7483 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7484 New static regset structures.
7485 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7486 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7487 New static regset structures.
7488 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7489 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7490 New static regset structures.
7491 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7493 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7495 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7496 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7497 register maps ("regmaps") from "*regset" to "*regmap". Do this
7498 for all regmap types and variables.
7499 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7500 (sparc32_linux_supply_core_gregset)
7501 (sparc32_linux_collect_core_gregset)
7502 (sparc32_linux_supply_core_fpregset)
7503 (sparc32_linux_collect_core_fpregset): Likewise.
7504 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7505 (sparc_gregmap, sparc_fpregmap): ... these.
7506 (sparc_supply_gregset, sparc_collect_gregset)
7507 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7508 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7509 (_initialize_sparc_nat): Rename regmaps.
7510 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7511 (sparc_gregmap, sparc_fpregmap): ... these.
7512 (sparc_supply_gregset, sparc_collect_gregset)
7513 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7514 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7516 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7517 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7519 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7521 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7522 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7523 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7525 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7526 (sparc32_bsd_fpregset): Rename to...
7527 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7528 (sparc32_bsd_fpregmap): ... these.
7529 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7530 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7531 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7532 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7533 (struct sparc_gregmap, struct sparc_fpregmap)
7534 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7535 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7536 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7537 (sparc32_supply_regset, sparc32_collect_gregset)
7538 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7540 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7541 (sparc64_linux_ptrace_gregmap): ... this.
7542 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7543 (_initialize_sparc64_linux_nat): Rename regmaps.
7544 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7545 (sparc64_linux_core_gregmap): ... this.
7546 (sparc64_linux_supply_core_gregset)
7547 (sparc64_linux_collect_core_gregset)
7548 (sparc64_linux_supply_core_fpregset)
7549 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7550 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7551 (sparc64_sol2_fpregset): Rename to...
7552 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7553 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7554 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7556 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7557 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7558 (sparc64_bsd_fpregset): Rename to...
7559 (struct sparc_gregmap, sparc64_sol2_gregmap)
7560 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7561 (sparc64_bsd_fpregmap): ... these.
7562 (sparc64_supply_gregset, sparc64_collect_gregset)
7563 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7565 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7566 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7567 (sparc64fbsd_gregmap): ... this.
7568 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7569 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7571 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7572 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7573 (sparc64nbsd_collect_fpregset): Likewise.
7574 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7575 (sparc64nbsd_gregmap): ... this.
7576 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7578 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7579 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7580 (sparc64obsd_gregmap): ... this.
7581 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7583 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7584 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7585 (sparc32nbsd_gregmap): ... this.
7586 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7589 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7591 * score-tdep.c (score7_linux_gregset): New static regset
7593 (score7_linux_regset_from_core_section): Remove dynamic regset
7595 (score_gdbarch_init): Drop allocation of tdep structure.
7596 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7598 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7600 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7602 (am33_regset_from_core_section): Remove dynamic regset
7605 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7607 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7608 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7610 (mips_linux_regset_from_core_section): Remove dynamic regset
7612 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7613 'gregset64', 'fpregset', and 'fpregset64'.
7614 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7615 deleted tdep fields.
7617 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7619 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7621 (amd64_regset_from_core_section): Remove dynamic regset
7623 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7625 (amd64obsd_regset_from_core_section): Remove dynamic regset
7627 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7629 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7630 x86-common regset supply function.
7631 * i386-tdep.c (i386_collect_gregset): Make static.
7632 (i386_gregset): New global regset structure.
7633 (i386_fpregset, i386_xstateregset): New static regset structures.
7634 (i386_regset_from_core_section): Remove dynamic regset
7636 (i386_gdbarch_init): Remove initialization of tdep fields
7637 'gregset', 'fpregset', and 'xstateregset'.
7638 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7639 'fpregset', and 'xstateregset'.
7640 (i386_collect_gregset): Remove prototype.
7641 (i386_gregset): New declaration.
7642 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7644 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7647 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7649 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7650 (arm_linux_vfpregset): New static regset structures.
7651 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7653 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7654 and 'vfpregset' fields.
7656 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7658 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7659 (aarch64_linux_fpregset): New static regset structures.
7660 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7661 of regset structures.
7662 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7665 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7667 * regset.h (struct regset): Remove gdbarch field.
7668 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7669 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7670 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7672 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7673 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7674 (ppc32_linux_vsxregset): Likewise.
7675 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7676 via the regcache instead of the regset.
7677 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7678 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7679 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7680 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7683 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7685 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7686 Constify structures.
7687 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7688 (alphanbsd_aout_gregset): Likewise.
7689 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7690 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7692 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7693 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7695 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7696 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7697 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7698 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7699 * m88k-tdep.c (m88k_gregset): Likewise.
7700 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7701 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7702 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7703 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7704 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7705 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7706 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7707 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7708 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7710 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7711 * sh-tdep.h (sh_corefile_gregset): Likewise.
7712 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7713 * vax-tdep.c (vax_gregset): Likewise.
7715 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7717 Fix TLS access for -static -pthread.
7718 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7719 (try_thread_db_load_1): Initialize it.
7720 (thread_db_get_thread_local_address): Call it if LM is zero.
7721 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7722 * target.h (struct target_ops) (to_get_thread_local_address): Add
7723 load_module_addr comment.
7725 2014-05-21 Pedro Alves <palves@redhat.com>
7727 * dcache.c (dcache_read_memory_partial): If reading the cache line
7728 fails, fallback to reading just the memory the caller wanted.
7730 2014-05-20 Doug Evans <dje@google.com>
7732 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7733 instead of get_current_arch.
7735 2014-05-20 Pedro Alves <palves@redhat.com>
7737 * NEWS: Mention that compare-sections now works with all targets.
7739 * remote.c (PACKET_qCRC): New enum value.
7740 (remote_verify_memory): Don't send qCRC if the target has no
7741 execution. Use packet_support/packet_ok. If the target doesn't
7742 support the qCRC packet, fallback to a deep memory copy.
7743 (compare_sections_command): Say "target image" instead of "remote
7745 (_initialize_remote): Add PACKET_qCRC to the list of config
7746 packets that have no associated command. Extend comment.
7747 * target.c (simple_verify_memory, default_verify_memory): New
7749 * target.h (struct target_ops) <to_verify_memory>: Default to
7750 default_verify_memory.
7751 (simple_verify_memory): New declaration.
7752 * target-delegates.c: Regenerate.
7754 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7756 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7758 2014-05-20 Hui Zhu <hui@codesourcery.com>
7759 Yao Qi <yao@codesourcery.com>
7762 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7763 and change address of sp and pc.
7765 2014-05-19 Tom Tromey <tromey@redhat.com>
7767 * gdbtypes.c (rank_function): Use XNEWVEC.
7768 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7770 2014-05-19 Doug Evans <dje@google.com>
7772 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7773 build_type_unit_groups and moved closer to only caller. Remove
7774 arguments. All references updated. Remove outdated .gdb_index
7776 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7777 build_type_psymtabs_1.
7779 2014-05-19 Doug Evans <dje@google.com>
7781 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7782 n_type_unit_groups, all_type_unit_groups. All uses removed.
7783 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7784 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7785 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7786 (add_type_unit_group_to_table): Delete.
7788 2014-05-19 Doug Evans <dje@google.com>
7790 * eval.c (evaluate_subexp_standard): Add some comments.
7792 2014-05-17 Doug Evans <xdje42@gmail.com>
7794 * progspace.c (remove_program_space): Delete, unused.
7795 * progspace.h (remove_program_space): Ditto.
7797 2014-05-17 Doug Evans <xdje42@gmail.com>
7799 * inferior.c (prune_inferiors): Fix comment.
7800 (remove_inferior_command): Call prune_program_spaces.
7802 2014-05-16 Doug Evans <dje@google.com>
7804 New command line option -D.
7806 * main.c (set_gdb_data_directory): New function.
7807 (captured_main): Recognize -D. Flag error for --data-directory "".
7808 Call set_gdb_data_directory.
7809 (print_gdb_help): Print --data-directory, -D.
7810 * main.h (set_gdb_data_directory): Declare.
7811 * top.c (staged_gdb_datadir): New static global.
7812 (set_gdb_datadir): Call set_gdb_data_directory
7813 (show_gdb_datadir): New function.
7814 (init_main): Update init of data-directory parameter.
7816 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7818 Import the "dirfd" gnulib module.
7819 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7820 * gnulib/aclocal.m4: Update.
7821 * gnulib/config.in: Update.
7822 * gnulib/configure: Update.
7823 * gnulib/import/Makefile.am: Update.
7824 * gnulib/import/Makefile.in: Update.
7825 * gnulib/import/dirfd.c: New.
7826 * gnulib/import/m4/dirfd.m4: New.
7827 * gnulib/import/m4/gnulib-cache.m4: Update.
7828 * gnulib/import/m4/gnulib-comp.m4: Update.
7830 2014-05-16 Pierre Muller <muller@sourceware.org>
7831 Yao Qi <yao@codesourcery.com>
7833 * valprint.c (print_wchar): Move the code on checking whether
7834 W is a printable wide char to the default branch of switch
7835 statement below. Call wchar_printable instead of gdb_iswprint.
7837 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7839 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7840 ldr.w and ldrd instructions.
7842 2014-05-15 Doug Evans <dje@google.com>
7844 * dwarf2read.c (read_structure_type): Delete outdated comments.
7846 2014-05-14 Tom Tromey <tromey@redhat.com>
7848 * macrocmd.c (print_macro_definition): Reindent.
7850 2014-05-13 Doug Evans <xdje42@gmail.com>
7852 * python/py-cmd.c (cmdpy_completer): Add comment.
7853 (completers): Make const.
7855 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7857 * infrun.c (resume): Remove should_resume (unused). Move up
7858 declaration of resume_ptid.
7860 2014-05-13 Tom Tromey <tromey@redhat.com>
7862 * language.h (unop_type_check): Remove.
7863 (binop_type_check): Don't declare.
7865 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7867 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7868 call to regcache_raw_collect.
7870 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7872 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7873 mi_console->quote as the quoting character.
7875 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7877 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7879 2014-04-29 Tom Tromey <tromey@redhat.com>
7881 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7882 "show debug varobj".
7884 2014-05-07 Kyle McMartin <kyle@redhat.com>
7886 Pushed by Joel Brobecker <brobecker@adacore.com>.
7887 * aarch64-tdep.c (aarch64_software_single_step): New function.
7888 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7889 with aarch64_software_single_step.
7891 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7895 2014-05-05 Keith Seitz <keiths@redhat.com>
7897 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7898 variable or history value is successfully parsed.
7900 2014-05-05 Yao Qi <yao@codesourcery.com>
7901 Pedro Alves <palves@redhat.com>
7903 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7904 address of blocks that intersects the requested range. Trim
7905 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7907 * ctf.c (ctf_xfer_partial): Likewise.
7909 2014-05-05 Yao Qi <yao@codesourcery.com>
7911 * printcmd.c (display_command): Remove the check to
7912 target_has_execution.
7914 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7916 * ppcobsd-nat.c: Include "obsd-nat.h".
7917 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7919 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7921 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7923 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7924 and 16-bit signed and unsigned arguments. Update comment.
7925 (stap_parse_probe_arguments): Extend code to handle such
7926 arguments. Use warning instead of complaint to notify about
7927 unrecognized bitness.
7929 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7931 PR breakpoints/16889
7932 * stap-probe.c (stap_parse_probe_arguments): Simplify
7933 check for non-prefixed probes (i.e., probes whose
7934 arguments do not start with "N@"). Always set the
7935 argument type to a sane value.
7937 2014-05-01 David Taylor <dtaylor@emc.com>
7939 * remote.c (compare_sections_command): Add -r option to compare
7940 all loadable read-only sections.
7942 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7944 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7945 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7947 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7948 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7949 Remove unused CORE_ADDR argument. Update all callers.
7951 2014-04-29 Pedro Alves <palves@redhat.com>
7953 * remote.c (struct packet_config) <detect>: Extend comment.
7954 (add_packet_config_cmd): Don't set the config's detect or support
7956 (init_all_packet_configs): Also initialize the config's 'detect'
7958 (reset_all_packet_configs_support): New function.
7959 (remote_open_1): Call reset_all_packet_configs_support instead of
7960 init_all_packet_configs.
7961 (_initialize_remote): Initialize all packet configs. Assert that
7962 all packets have an associated command, except a few known
7965 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7967 * dwarf2read.c (read_subrange_type): Handle dynamic
7968 DW_AT_lower_bound attributes.
7970 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7972 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7973 dynamic bounds before computing its upper bound.
7974 (ada_discrete_type_low_bound): Same as above with the lower bound.
7976 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7978 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7979 range types. Adjust the array handling implementation to
7980 take advantage of this change.
7981 (resolve_dynamic_range): New function, mostly extracted from
7982 resolve_dynamic_bounds.
7983 (resolve_dynamic_array): New function, mostly extracted from
7984 resolve_dynamic_bounds.
7985 (resolve_dynamic_bounds): Delete.
7986 (resolve_dynamic_type): Reimplement. Add handling of
7987 TYPE_CODE_RANGE types.
7989 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7991 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7992 handling of parallel ___XA types.
7994 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7996 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7997 unnecessary second call to static_unwrap_type.
7999 2014-04-27 Hui Zhu <hui@codesourcery.com>
8001 * stack.c (print_frame_info): Call do_gdb_disassembly with
8002 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8004 2014-04-26 Doug Evans <xdje42@gmail.com>
8006 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8008 2014-04-25 Pedro Alves <palves@redhat.com>
8011 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8012 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8013 and newline from built string.
8014 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8015 (linux_ptrace_attach_fail_reason): ... this.
8016 * linux-nat.c (linux_nat_attach): Adjust to use
8017 linux_ptrace_attach_fail_reason.
8019 2014-04-25 Pedro Alves <palves@redhat.com>
8021 * remote.c (struct remote_state): Remove multi_process_aware,
8022 non_stop_aware, cond_tracepoints, cond_breakpoints,
8023 breakpoint_commands, fast_tracepoints, static_tracepoints,
8024 install_in_trace, disconnected_tracing,
8025 enable_disable_tracepoints, string_tracing, and
8026 augmented_libraries_svr4_read fields.
8027 (remote_multi_process_p): Move further below in the file.
8028 (struct packet_config): Add comments.
8029 (update_packet_config): Delete function.
8030 (show_packet_config_cmd): Use packet_config_support.
8031 (add_packet_config_cmd): Use NULL as set callback.
8032 (packet_ok): "set remote foo-packet"-style commands no longer
8033 change config->supported -- adjust.
8034 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8035 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8036 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8037 (PACKET_QNonStop, PACKET_multiprocess_feature)
8038 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8039 (PACKET_DisconnectedTracing_feature)
8040 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8041 (set_remote_protocol_packet_cmd): Delete function.
8042 (packet_config_support, packet_support): New functions.
8043 (set_remote_protocol_Z_packet_cmd): Don't call
8044 update_packet_config.
8045 (remote_query_attached, remote_pass_signals)
8046 (remote_program_signals, remote_threads_info)
8047 (remote_threads_extra_info, remote_start_remote): Use
8049 (remote_start_remote): Use packet_config_support and
8051 (init_all_packet_configs): Set all packets to unknown support,
8052 instead of calling update_packet_config.
8053 (remote_check_symbols): Use packet_support.
8054 (remote_supported_packet): Unconditionally set the packet config's
8056 (remote_multi_process_feature, remote_non_stop_feature)
8057 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8058 (remote_breakpoint_commands_feature)
8059 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8060 (remote_install_in_trace_feature)
8061 (remote_disconnected_tracing_feature)
8062 (remote_enable_disable_tracepoint_feature)
8063 (remote_string_tracing_feature)
8064 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8065 (remote_protocol_features): Adjust to use remote_supported_packet
8066 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8067 "ConditionalTracepoints", "ConditionalBreakpoints",
8068 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8069 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8070 "EnableDisableTracepoints", and "tracenz".
8071 (remote_query_supported): Use packet_support.
8072 (remote_open_1): Adjust.
8073 (extended_remote_attach_1): Use packet_support. Switch on the
8074 result of packet_ok instead of checking whether the packet ended
8076 (remote_vcont_resume): Use packet_support.
8077 (remote_resume, remote_stop_ns, fetch_register_using_p)
8078 (remote_prepare_to_store, store_register_using_P)
8079 (check_binary_download, remote_write_bytes): Use packet_support.
8080 (remote_vkill): Use packet_support. Switch on the result of
8081 packet_ok instead of checking whether the packet ended up
8083 (extended_remote_supports_disable_randomization): Use
8085 (extended_remote_run): Switch on the result of packet_ok instead
8086 of checking whether the packet ended up disabled.
8087 (remote_insert_breakpoint, remote_remove_breakpoint)
8088 (remote_insert_watchpoint, remote_remove_watchpoint)
8089 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8091 (remote_search_memory): Use packet_config_support.
8092 (remote_get_thread_local_address, remote_get_tib_address)
8093 (remote_hostio_send_command, remote_can_execute_reverse): Use
8095 (remote_supports_cond_tracepoints)
8096 (remote_supports_cond_breakpoints)
8097 (remote_supports_fast_tracepoints)
8098 (remote_supports_static_tracepoints)
8099 (remote_supports_install_in_trace)
8100 (remote_supports_enable_disable_tracepoint)
8101 (remote_supports_string_tracing)
8102 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8103 the packet config says the feature is enabled or disabled.
8104 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8105 (remote_get_trace_status): Use packet_support.
8106 (remote_set_disconnected_tracing): Adjust to check whether the
8107 feature is enabled with packet_support.
8108 (remote_set_trace_buffer_size, remote_use_agent)
8109 (remote_can_use_agent, remote_supports_btrace): Use
8111 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8112 Use packet_config_support.
8113 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8114 the packet config says the feature is enabled or disabled.
8115 (set_range_stepping): Use packet_support.
8117 2014-04-25 Tom Tromey <tromey@redhat.com>
8119 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8122 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8124 * NEWS: Mention support for C99 variable length arrays.
8126 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8128 * ada-lang.c (standard_exc): Expand introductory comment.
8130 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8131 Walfred Tedeschi <walfred.tedeschi@intel.com>
8133 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8135 (amd64_linux_read_description): Add code to handle AVX512 xstate
8136 mask and return respective tdesc.
8137 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8138 and features/i386/x32-avx512-linux.c.
8139 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8140 (amd64_linux_core_read_description): Add code to handle AVX512
8141 xstate mask and return respective tdesc.
8142 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8143 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8145 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8146 (tdesc_amd64_avx512_linux): New prototype.
8147 (tdesc_x32_avx512_linux): Likewise.
8148 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8149 features/i386/x32-avx512.c.
8150 (amd64_ymm_avx512_names): New register names for pseudo
8152 (amd64_ymmh_avx512_names): New register names for raw registers
8154 (amd64_k_names): New register names for K registers.
8155 (amd64_zmmh_names): New register names for ZMM raw registers.
8156 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8157 (amd64_xmm_avx512_names): New register names for XMM16-31
8159 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8161 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8162 if feature is present.
8163 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8164 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8165 (AMD64_NUM_REGS): Adjust to new number of registers.
8166 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8167 registers supplied via XSTATE by AVX512 registers.
8168 (i386_linux_read_description): Add case for AVX512.
8169 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8170 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8171 (i386_linux_core_read_description): Add case for AVX512.
8172 (i386_linux_init_abi): Install supported register note section
8174 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8176 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8177 registers to be number of zmm7h + 1.
8178 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8179 * i386-tdep.c: Include features/i386/i386-avx512.c.
8180 (i386_zmm_names): Add ZMM pseudo register names array.
8181 (i386_zmmh_names): Add ZMM raw register names array.
8182 (i386_k_names): Add K raw register names array.
8183 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8184 registers. AVX512 has 16 more ZMM registers than there are YMM
8186 (i386_zmmh_regnum_p): Add function to look up register number of
8188 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8189 (i386_k_regnum_p): Likewise for K raw registers.
8190 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8191 registers added by AVX512.
8192 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8193 registers added by AVX512.
8194 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8196 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8197 (i386_pseudo_register_name): Add ZMM pseudo registers.
8198 (i386_zmm_type): Construct and return vector registers type for ZMM
8200 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8201 ZMM0-31 pseudo registers and K registers.
8202 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8203 and YMM16-31 registers from register cache.
8204 (i386_pseudo_register_write): Add code to write K, ZMM and
8206 (i386_register_reggroup_p): Add code to include/exclude AVX512
8207 registers in/from respective register groups.
8208 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8209 registers if feature is present in xcr0.
8210 (i386_gdbarch_init): Add code to initialize AVX512 feature
8211 variables in tdep structure, wire in pseudo registers and call
8212 initialize_tdesc_i386_avx512.
8213 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8215 (i386_regnum): Add AVX512 registers.
8216 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8217 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8218 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8219 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8221 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8222 (i386_ymm_avx512_regnum_p): Likewise.
8223 (i386_k_regnum_p): Likewise.
8224 (i386_zmm_regnum_p): Likewise.
8225 (i386_zmmh_regnum_p): Likewise.
8226 * i387-tdep.c : Update year in copyright notice.
8227 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8229 (XSAVE_YMM_AVX512_ADDR): New macro.
8230 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8232 (XSAVE_XMM_AVX512_ADDR): New macro.
8233 (xsave_avx512_k_offset): New table for K register offsets in
8235 (XSAVE_AVX512_K_ADDR): New macro.
8236 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8238 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8239 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8241 (i387_collect_xsave): Add code to collect AVX512 registers from
8243 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8244 of XMM16-31 registers.
8245 (I387_NUM_K_REGS): New define for number of K registers.
8246 (I387_K0_REGNUM): New define for K0 register number.
8247 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8248 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8249 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8251 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8252 (I387_XMM16_REGNUM): New define for XMM16 register number.
8253 (I387_YMM0_REGNUM): New define for YMM0 register number.
8254 (I387_KEND_REGNUM): New define for last K register number.
8255 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8256 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8258 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8260 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8262 * features/Makefile: Add AVX512 related files.
8263 * features/i386/32bit-avx512.xml: New file.
8264 * features/i386/64bit-avx512.xml: Likewise.
8265 * features/i386/amd64-avx512-linux.c: Likewise.
8266 * features/i386/amd64-avx512-linux.xml: Likewise.
8267 * features/i386/amd64-avx512.c: Likewise.
8268 * features/i386/amd64-avx512.xml: Likewise.
8269 * features/i386/i386-avx512-linux.c: Likewise.
8270 * features/i386/i386-avx512-linux.xml: Likewise.
8271 * features/i386/i386-avx512.c: Likewise.
8272 * features/i386/i386-avx512.xml: Likewise.
8273 * features/i386/x32-avx512-linux.c: Likewise.
8274 * features/i386/x32-avx512-linux.xml: Likewise.
8275 * features/i386/x32-avx512.c: Likewise.
8276 * features/i386/x32-avx512.xml: Likewise.
8277 * regformats/i386/amd64-avx512-linux.dat: New file.
8278 * regformats/i386/amd64-avx512.dat: Likewise.
8279 * regformats/i386/i386-avx512-linux.dat: Likewise.
8280 * regformats/i386/i386-avx512.dat: Likewise.
8281 * regformats/i386/x32-avx512-linux.dat: Likewise.
8282 * regformats/i386/x32-avx512.dat: Likewise.
8283 * NEWS: Add note about new support for AVX512.
8286 2014-04-23 Pedro Alves <palves@redhat.com>
8288 * breakpoint.c (insert_bp_location): Tolerate errors if the
8289 breakpoint is set in a user-loaded objfile.
8290 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8291 location is marked shlib_disabled. If the breakpoint is set in a
8292 user-loaded objfile is a GDB-side memory breakpoint, validate it
8293 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8294 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8296 * mem-break.c (memory_validate_breakpoint): New function.
8297 * objfiles.c (userloaded_objfile_contains_address_p): New
8299 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8300 * target.h (memory_validate_breakpoint): New declaration.
8302 2014-04-23 Pedro Alves <palves@redhat.com>
8304 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8305 the breakpoint is set in a shared library, only suppress
8306 errors for software breakpoints, not hardware breakpoints.
8308 2014-04-22 Pedro Alves <palves@redhat.com>
8310 * infrun.c (schedlock_applies): New function, factored out from
8311 find_thread_needs_step_over.
8312 (find_thread_needs_step_over): Use it.
8313 (switch_back_to_stepped_thread): Always clear trap_expected if the
8314 step over is finished. Return early if scheduler locking applies.
8315 Look for the stepping thread and a potential step-over thread with
8317 (currently_stepping_or_nexting_callback): Delete.
8319 2014-04-22 Nick Clifton <nickc@redhat.com>
8321 * NEWS: Mention that ARM sim now supports tracing.
8323 2014-04-22 Yao Qi <yao@codesourcery.com>
8325 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8327 * tracefile.c (tracefile_fetch_registers): ... it. New
8329 * tracefile.h (tracefile_fetch_registers): Declare.
8330 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8331 tracefile_fetch_registers.
8333 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8336 * windows-nat.c (thread_rec): Don't display a warning when
8337 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8338 fails for any reason, set th->suspended to -1, so that we don't
8339 try to resume such a thread. Also, don't return NULL in these
8340 cases, to avoid completely ruin the session due to "PC register is
8341 not available" error.
8342 (do_windows_fetch_inferior_registers): Check errors in
8343 GetThreadContext call.
8344 (windows_continue): Accept an additional argument KILLED; if not
8345 zero, ignore errors in the SetThreadContext call, since the
8346 inferior was killed and is shutting down.
8347 (windows_resume, get_windows_debug_event)
8348 (windows_create_inferior, windows_mourn_inferior)
8349 (windows_kill_inferior): All callers of windows_continue changed
8350 to adjust to its new calling sequence.
8352 2014-04-19 Yao Qi <yao@codesourcery.com>
8354 * ctf.c (ctf_open): Call post_create_inferior.
8356 2014-04-19 Yao Qi <yao@codesourcery.com>
8358 * ctf.c (handle_id): New static variable.
8359 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8360 value. Get the declaration of event "register" and get length
8361 of field "contents".
8363 2014-04-19 Yao Qi <yao@codesourcery.com>
8365 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8367 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8369 * valops.c (oload_method_static): Remove unnecessary argument
8370 METHOD. Update all callers.
8372 2014-04-18 Pedro alves <palves@redhat.com>
8373 Tom Tromey <tromey@redhat.com>
8376 * frame.c (get_prev_frame_1): Rename to ...
8377 (get_prev_frame_always): ... this, and make extern. Adjust.
8378 (skip_artificial_frames): Use get_prev_frame_always.
8379 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8380 (get_frame_unwind_stop_reason): Adjust to rename.
8381 * frame.h (get_prev_frame_always): Declare.
8382 * inline-frame.c: Include frame.h.
8383 (inline_frame_this_id): Use get_prev_frame_always.
8385 2014-04-18 Tristan Gingold <gingold@adacore.com>
8387 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8388 code by using bfd_mach_o_get_base_address.
8390 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8392 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8393 (spu_ax_pseudo_register_collect): New function.
8394 (spu_ax_pseudo_register_push_stack): Likewise.
8395 (spu_dwarf_reg_to_regnum): Likewise.
8396 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8398 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8400 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8401 Replace FRAME argument with FRAME_ID.
8402 * gdbarch.c, gdbarch.h: Regenerate.
8403 * findvar.c (default_value_from_register): Add GDBARCH argument;
8404 replace FRAME by FRAME_ID. No longer call get_frame_id.
8405 (value_from_register): Update call to gdbarch_value_from_register.
8406 * value.h (default_value_from_register): Update prototype.
8407 * s390-linux-tdep.c (s390_value_from_register): Update interface
8408 and call to default_value_from_register.
8409 * spu-tdep.c (spu_value_from_register): Likewise.
8411 * findvar.c (address_from_register): Remove TYPE argument.
8412 Do not call value_from_register; use gdbarch_value_from_register
8413 with null_frame_id instead.
8414 * value.h (address_from_register): Update prototype.
8415 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8416 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8417 address_from_register interface change.
8419 2014-04-17 Yao Qi <yao@codesourcery.com>
8421 * gdbtypes.h: Update comments to link to types and macros'
8424 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8426 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8428 2014-04-16 Keith Seitz <keiths@redhat.com>
8431 * dwarf2read.c (skip_one_die): Check that all relative-offset
8432 sibling DIEs fall within range of the current reader's buffer.
8433 (read_partial_die): Likewise.
8435 2014-04-16 Keith Seitz <keiths@redhat.com>
8438 * cp-namespace.c (lookup_symbol_file): If the type name of
8439 `this' is NULL, return immediately.
8441 2014-04-14 Keith Seitz <keiths@redhat.com>
8444 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8445 from symbol_matches_domain in symtab.c. All local callers
8446 of symbol_matches_domain updated.
8447 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8448 search STRUCT_DOMAIN.
8449 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8450 independently. standard_lookup will do that automatically.
8451 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8452 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8453 (cp_lookup_symbol_in_namespace): Likewise.
8454 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8455 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8456 may return a STRUCT_DOMAIN match.
8457 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8458 * cp-support.c: Include language.h.
8459 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8461 * psymtab.c (match_partial_symbol): Compare the requested
8462 domain with the symbol's domain directly.
8463 (lookup_partial_symbol): Likewise.
8464 * symtab.c (lookup_symbol_in_language): Explain when/why
8465 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8466 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8467 appropriate languages.
8468 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8469 and moved to ada-lang.c
8470 (lookup_block_symbol): Explain that this function only returns
8471 symbol matching the requested DOMAIN.
8472 Compare the requested domain with the symbol's domain directly.
8473 (iterate_over_symbols): Compare the requested domain with the
8474 symbol's domain directly.
8475 * symtab.h (symbol_matches_domain): Remove.
8477 2014-04-14 Tom Tromey <tromey@redhat.com>
8480 * c-exp.y (type_aggregate_p): New function.
8481 (qualified_name, classify_inner_name): Use it.
8482 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8483 and TYPE_TARGET_TYPE of an enum type.
8484 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8486 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8487 handle TYPE_DECLARED_CLASS.
8488 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8490 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8491 * valops.c (enum_constant_from_type): New function.
8492 (value_aggregate_elt): Use it.
8493 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8496 2014-04-14 Tom Tromey <tromey@redhat.com>
8498 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8499 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8501 * value.h (value_aggregate_elt): Update.
8503 2014-04-14 Tom Tromey <tromey@redhat.com>
8505 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8507 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8509 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8510 (evaluate_subexp_standard): Pass noside argument.
8511 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8512 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8513 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8514 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8515 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8517 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8519 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8520 points to a constant blob.
8522 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8524 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8525 property and store it as the high bound and flag the range accordingly.
8526 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8527 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8528 * gdbtypes.h (enum range_flags): New enum.
8529 (struct range_bounds): Add flags member.
8531 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8533 * c-typeprint.c (c_type_print_varspec_suffix): Added
8534 check for not yet resolved high bound. If unresolved, print
8535 "variable length" string to the console instead of random
8538 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8540 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8542 (ada_template_to_fixed_record_type_1): Likewise.
8543 (ada_to_fixed_type_1): Likewise.
8544 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8545 (cp_print_value): Likewise.
8546 * d-valprint.c (dynamic_array_type): Likewise.
8547 * findvar.c (address_of_variable): Likewise.
8548 * jv-valprint.c (java_value_print): Likewise.
8549 * valops.c (value_ind): Likewise.
8550 * value.c (coerce_ref): Likewise.
8552 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8554 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8555 value and retrieve the dynamic type size.
8557 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8559 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8560 passed to sizeof is dynamic evaluate the argument to compute the length.
8562 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8563 Joel Brobecker <brobecker@adacore.com>
8565 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8566 (dwarf2_evaluate_property): New function.
8567 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8568 * dwarf2read.c (attr_to_dynamic_prop): New function.
8569 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8571 * gdbtypes.c: Include dwarf2loc.h.
8572 (is_dynamic_type): New function.
8573 (resolve_dynamic_type): New function.
8574 (resolve_dynamic_bounds): New function.
8575 (get_type_length): New function.
8576 (check_typedef): Use get_type_length to compute type length.
8577 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8578 (TYPE_LOW_BOUND_KIND): New macro.
8579 (is_dynamic_type): New function prototype.
8580 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8581 to resolve dynamic properties of the type. Update comment.
8582 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8584 2014-04-14 Richard Henderson <rth@redhat.com>
8586 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8588 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8589 Doug Evans <xdje42@gmail.com>
8591 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8592 dereference TYPE_CODE_REF values.
8594 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8596 Revert the following changes due to regressions:
8598 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8599 (dwarf2_evaluate_property): New function.
8600 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8601 * dwarf2read.c (attr_to_dynamic_prop): New function.
8602 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8604 * gdbtypes.c: Include dwarf2loc.h.
8605 (is_dynamic_type): New function.
8606 (resolve_dynamic_type): New function.
8607 (resolve_dynamic_bounds): New function.
8608 (get_type_length): New function.
8609 (check_typedef): Use get_type_length to compute type length.
8610 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8611 (TYPE_LOW_BOUND_KIND): New macro.
8612 (is_dynamic_type): New function prototype.
8613 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8614 to resolve dynamic properties of the type. Update comment.
8615 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8617 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8618 passed to sizeof is dynamic evaluate the argument to compute the length.
8620 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8621 value and retrieve the dynamic type size.
8623 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8624 (ada_template_to_fixed_record_type_1): Likewise.
8625 (ada_to_fixed_type_1): Likewise.
8626 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8627 (cp_print_value): Likewise.
8628 * d-valprint.c (dynamic_array_type): Likewise.
8629 * eval.c (evaluate_subexp_with_coercion): Likewise.
8630 * findvar.c (address_of_variable): Likewise.
8631 * jv-valprint.c (java_value_print): Likewise.
8632 * valops.c (value_ind): Likewise.
8633 * value.c (coerce_ref): Likewise.
8635 * c-typeprint.c (c_type_print_varspec_suffix): Added
8636 check for not yet resolved high bound. If unresolved, print
8637 "variable length" string to the console instead of random
8640 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8641 property and store it as the high bound and flag the range accordingly.
8642 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8643 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8644 * gdbtypes.h (enum range_flags): New enum.
8645 (struct range_bounds): Add flags member.
8647 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8648 points to a constant blob.
8650 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8651 (evaluate_subexp_standard): Pass noside argument.
8652 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8653 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8654 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8655 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8656 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8658 2014-04-11 Keith Seitz <keiths@redhat.com>
8661 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8662 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8665 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8667 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8668 (evaluate_subexp_standard): Pass noside argument.
8669 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8670 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8671 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8672 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8673 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8675 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8677 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8678 points to a constant blob.
8680 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8682 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8683 property and store it as the high bound and flag the range accordingly.
8684 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8685 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8686 * gdbtypes.h (enum range_flags): New enum.
8687 (struct range_bounds): Add flags member.
8689 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8691 * c-typeprint.c (c_type_print_varspec_suffix): Added
8692 check for not yet resolved high bound. If unresolved, print
8693 "variable length" string to the console instead of random
8696 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8698 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8699 (ada_template_to_fixed_record_type_1): Likewise.
8700 (ada_to_fixed_type_1): Likewise.
8701 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8702 (cp_print_value): Likewise.
8703 * d-valprint.c (dynamic_array_type): Likewise.
8704 * eval.c (evaluate_subexp_with_coercion): Likewise.
8705 * findvar.c (address_of_variable): Likewise.
8706 * jv-valprint.c (java_value_print): Likewise.
8707 * valops.c (value_ind): Likewise.
8708 * value.c (coerce_ref): Likewise.
8710 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8712 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8713 value and retrieve the dynamic type size.
8715 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8717 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8718 passed to sizeof is dynamic evaluate the argument to compute the length.
8720 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8722 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8723 (dwarf2_evaluate_property): New function.
8724 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8725 * dwarf2read.c (attr_to_dynamic_prop): New function.
8726 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8728 * gdbtypes.c: Include dwarf2loc.h.
8729 (is_dynamic_type): New function.
8730 (resolve_dynamic_type): New function.
8731 (resolve_dynamic_bounds): New function.
8732 (get_type_length): New function.
8733 (check_typedef): Use get_type_length to compute type length.
8734 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8735 (TYPE_LOW_BOUND_KIND): New macro.
8736 (is_dynamic_type): New function prototype.
8737 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8738 to resolve dynamic properties of the type. Update comment.
8739 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8741 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8743 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8744 declaring high/low bounds and change uses accordingly. Call
8745 create_range_type instead of create_static_range_type.
8746 * gdbtypes.c (create_range_type): New function.
8747 (create_range_type): Convert bounds into struct bound_prop and pass
8748 them to create_range_type.
8749 * gdbtypes.h (struct bound_prop): New struct.
8750 (create_range_type): New function prototype.
8751 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8752 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8753 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8755 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8757 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8759 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8760 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8761 * ada-lang.c: All uses of create_range_type updated.
8762 * coffread.c: All uses of create_range_type updated.
8763 * dwarf2read.c: All uses of create_range_type updated.
8764 * f-exp.y: All uses of create_range_type updated.
8765 * m2-valprint.c: All uses of create_range_type updated.
8766 * mdebugread.c: All uses of create_range_type updated.
8767 * stabsread.c: All uses of create_range_type updated.
8768 * valops.c: All uses of create_range_type updated.
8769 * valprint.c: All uses of create_range_type updated.
8771 2014-04-10 Pedro Alves <palves@redhat.com>
8773 * breakpoint.c (single_step_breakpoints)
8774 (single_step_gdbarch): Move up in the file.
8775 (one_breakpoint_xfer_memory): New function, factored out from ...
8776 (breakpoint_xfer_memory): ... here. Also process single-step
8779 2014-04-09 Tristan Gingold <gingold@adacore.com>
8781 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8783 (darwin_decode_exception_message): Free port only after use.
8785 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8787 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8788 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8789 when setting the size of call_length.
8791 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8793 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8794 dereference TYPE_CODE_REF values.
8796 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8798 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8799 end of warning message.
8801 2014-04-03 Doug Evans <dje@google.com>
8803 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8804 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8806 2014-04-02 Alan Modra <amodra@gmail.com>
8808 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8809 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8810 (struct symbol_file_add_from_memory_args): Add size field.
8811 (find_vdso_size): New function.
8812 (add_vsyscall_page): Attempt to find vdso size.
8814 2014-04-01 Doug Evans <dje@google.com>
8816 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8818 2014-04-01 Tristan Gingold <gingold@adacore.com>
8820 * darwin-nat.c (darwin_encode_reply): Add prototype.
8821 (darwin_decode_exception_message): Reply to unknown inferiors.
8822 (darwin_decode_message): Handle message by id. Ignore message
8823 to unknown inferior.
8824 (darwin_wait): Discard unknown messages, add debug trace.
8826 2014-03-31 Doug Evans <dje@google.com>
8828 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8831 2014-03-31 Doug Evans <dje@google.com>
8833 New option "set print symbol-loading".
8835 * solib.c (solib_read_symbols): Only print symbol loading messages
8837 (solib_add): If symbol loading is in "brief" mode, notify user
8838 symbols are being loaded.
8839 (reload_shared_libraries_1): Ditto.
8840 * symfile.c (print_symbol_loading_off): New static global.
8841 (print_symbol_loading_brief): New static global.
8842 (print_symbol_loading_full): New static global.
8843 (print_symbol_loading_enums): New static global.
8844 (print_symbol_loading): New static global.
8845 (print_symbol_loading_p): New function.
8846 (symbol_file_add_with_addrs): Only print symbol loading messages
8848 (_initialize_symfile): Register "print symbol-loading" set/show
8850 * symfile.h (print_symbol_loading_p): Declare.
8852 2014-03-30 Doug Evans <xdje42@gmail.com>
8854 * infrun.c (set_last_target_status): New function.
8855 (handle_inferior_event): Call it.
8857 2014-03-30 Doug Evans <xdje42@gmail.com>
8859 * inferior.h (enum stop_kind): Improve comment.
8861 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8863 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8864 a reference, strip the reference layer before calling
8865 the lang_ops value_has_mutated callback.
8867 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8869 Remove some globals from our parser.
8870 * language.c (unk_lang_parser): Add "struct parser_state"
8872 * language.h (struct language_defn) <la_parser>: Likewise.
8873 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8874 (initialize_expout): Add "struct parser_state" argument.
8875 Rewrite function to use the parser state.
8876 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8877 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8878 write_exp_elt_longcst, write_exp_elt_dblcst,
8879 write_exp_elt_decfloatcst, write_exp_elt_type,
8880 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8881 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8882 write_dollar_variable): Likewise.
8883 (parse_exp_in_context_1): Use parser state.
8884 (insert_type_address_space): Add "struct parser_state" argument.
8886 (increase_expout_size): New function.
8887 * parser-defs.h: Forward declare "struct language_defn" and
8888 "struct parser_state".
8889 (expout, expout_size, expout_ptr): Remove extern declarations.
8890 (parse_gdbarch, parse_language): Rewrite macro declarations to
8891 accept the parser state.
8892 (struct parser_state): New struct.
8893 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8894 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8895 write_exp_elt_decfloatcst, write_exp_elt_type,
8896 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8897 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8898 write_exp_msymbol, write_dollar_variable,
8899 mark_struct_expression, insert_type_address_space): Add "struct
8900 parser_state" argument.
8901 (increase_expout_size): New function.
8902 * utils.c (do_clear_parser_state): New function.
8903 (make_cleanup_clear_parser_state): Likewise.
8904 * utils.h (make_cleanup_clear_parser_state): New function
8906 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8907 Update calls to write_exp* in order to pass the parser state.
8908 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8909 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8910 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8911 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8912 * stap-probe.c (stap_parse_register_operand): Likewise.
8913 (stap_parse_single_operand): Likewise.
8914 (stap_parse_argument_1): Likewise.
8915 (stap_parse_argument): Use parser state.
8916 * stap-probe.h: Include "parser-defs.h".
8917 (struct stap_parse_info) <pstate>: New field.
8918 * c-exp.y (parse_type): Rewrite to use parser state.
8919 (yyparse): Redefine to c_parse_internal.
8920 (pstate): New global variable.
8921 (parse_number): Add "struct parser_state" argument.
8922 (write_destructor_name): Likewise.
8923 (type_exp): Update calls to write_exp* and similars in order to
8925 (exp1, exp, variable, qualified_name, space_identifier,
8926 typename, typebase): Likewise.
8927 (write_destructor_name, parse_number, lex_one_token,
8928 classify_name, classify_inner_name, c_parse): Add "struct
8929 parser_state" argument. Update function to use parser state.
8930 * c-lang.h: Forward declare "struct parser_state".
8931 (c_parse): Add "struct parser_state" argument.
8932 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8933 (yyparse): Redefine macro to ada_parse_internal.
8934 (pstate): New variable.
8935 (write_int, write_object_renaming, write_var_or_type,
8936 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8937 type_int, type_long, type_long_long, type_float, type_double,
8938 type_long_double, type_char, type_boolean, type_system_address):
8939 Add "struct parser_state" argument.
8940 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8941 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8942 var_or_type, aggregate, aggregate_component_list,
8943 positional_list, others, component_group,
8944 component_associations): Update calls to write_exp* and similar
8945 functions in order to use parser state.
8946 (ada_parse, write_var_from_sym, write_int,
8947 write_exp_op_with_string, write_object_renaming,
8948 find_primitive_type, write_selectors, write_ambiguous_var,
8949 write_var_or_type, write_name_assoc, type_int, type_long,
8950 type_long_long, type_float, type_double, type_long_double,
8951 type_char, type_boolean, type_system_address): Add "struct
8952 parser_state" argument. Adjust function to use parser state.
8953 * ada-lang.c (parse): Likewise.
8954 * ada-lang.h: Forward declare "struct parser_state".
8955 (ada_parse): Add "struct parser_state" argument.
8956 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8957 calls to both functions.
8958 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8960 (yyparse): Redefine macro to f_parse_internal.
8961 (pstate): New variable.
8962 (parse_number): Add "struct parser_state" argument.
8963 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8964 and similars in order to use parser state.
8965 (parse_number): Adjust code to use parser state.
8967 (f_parse): New function.
8968 * f-lang.h: Forward declare "struct parser_state".
8969 (f_parse): Add "struct parser_state" argument.
8970 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8972 (yyparse): Redefine macro for java_parse_internal.
8973 (pstate): New variable.
8974 (push_expression_name, push_expression_name, insert_exp): Add
8975 "struct parser_state" argument.
8976 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8977 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8978 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8979 PostIncrementExpression, PostDecrementExpression,
8980 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8981 UnaryExpressionNotPlusMinus, CastExpression,
8982 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8983 RelationalExpression, EqualityExpression, AndExpression,
8984 ExclusiveOrExpression, InclusiveOrExpression,
8985 ConditionalAndExpression, ConditionalOrExpression,
8986 ConditionalExpression, Assignment, LeftHandSide): Update
8987 calls to write_exp* and similars in order to use parser state.
8988 (parse_number): Ajust code to use parser state.
8990 (java_parse): New function.
8991 (push_variable): Add "struct parser_state" argument. Adjust
8992 code to user parser state.
8993 (push_fieldnames, push_qualified_expression_name,
8994 push_expression_name, insert_exp): Likewise.
8995 * jv-lang.h: Forward declare "struct parser_state".
8996 (java_parse): Add "struct parser_state" argument.
8997 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8999 (yyparse): Redefine macro to m2_parse_internal.
9000 (pstate): New variable.
9001 (type_exp, exp, fblock, variable, type): Update calls to
9002 write_exp* and similars to use parser state.
9004 (m2_parse): New function.
9005 * m2-lang.h: Forward declare "struct parser_state".
9006 (m2_parse): Add "struct parser_state" argument.
9007 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9008 * objc-lang.h: Forward declare "struct parser_state".
9009 (end_msglist): Add "struct parser_state" argument.
9010 * p-exp.y (parse_type): Rewrite macro to use parser state.
9011 (yyparse): Redefine macro to pascal_parse_internal.
9012 (pstate): New variable.
9013 (parse_number): Add "struct parser_state" argument.
9014 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9015 write_exp* and similars in order to use parser state.
9016 (parse_number, yylex): Adjust code to use parser state.
9017 (pascal_parse): New function.
9018 * p-lang.h: Forward declare "struct parser_state".
9019 (pascal_parse): Add "struct parser_state" argument.
9020 * go-exp.y (parse_type): Rewrite macro to use parser state.
9021 (yyparse): Redefine macro to go_parse_internal.
9022 (pstate): New variable.
9023 (parse_number): Add "struct parser_state" argument.
9024 (type_exp, exp1, exp, variable, type): Update calls to
9025 write_exp* and similars in order to use parser state.
9026 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9027 to use parser state.
9028 (go_parse): Likewise.
9029 * go-lang.h: Forward declare "struct parser_state".
9030 (go_parse): Add "struct parser_state" argument.
9032 2014-03-27 Doug Evans <dje@google.com>
9034 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9036 2014-03-27 Doug Evans <dje@google.com>
9038 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9039 Remove argument abbrev_section. All callers updated.
9041 2014-03-27 Doug Evans <dje@google.com>
9043 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9044 addr_base, ranges_base.
9046 2014-03-26 Keith Seitz <keiths@redhat.com>
9048 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9049 types, not VAR_DOMAIN.
9051 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9053 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9055 * features/nios2-linux.c: Regenerated.
9056 * features/nios2.c: Regenerated.
9058 2014-03-25 Pedro Alves <palves@redhat.com>
9060 * cli/cli-script.c (script_from_file): Force the interpreter to
9063 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9065 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9066 small stack allocation.
9068 2014-03-24 Tristan Gingold <gingold@adacore.com>
9070 * darwin-nat.c (exc_server): Remove unused prototype.
9071 (darwin_dump_message): Correctly display data on x86_64.
9072 (darwin_encode_reply): Fix style.
9073 Add comments and fix indentation.
9075 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9077 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9079 2014-03-22 Doug Evans <xdje42@gmail.com>
9081 * infcmd.c: Whitespace fixes.
9082 (interrupt_command): Merge two function comments into one.
9084 2014-03-22 Doug Evans <xdje42@gmail.com>
9086 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9089 2014-03-22 Yao Qi <yao@codesourcery.com>
9091 * remote.c (target_read_live_memory): Remove.
9092 (memory_xfer_live_readonly_partial): Rename it to
9093 remote_xfer_live_readonly_partial. Remove argument 'object'.
9094 All callers updated. Call remote_read_bytes_1
9095 instead of target_read_live_memory.
9096 * tracepoint.c (set_traceframe_number): Remove.
9097 (make_cleanup_restore_traceframe_number): Likewise .
9098 * tracepoint.h (set_traceframe_number): Remove declaration.
9099 (make_cleanup_restore_traceframe_number): Likewise.
9101 2014-03-22 Yao Qi <yao@codesourcery.com>
9103 * remote.c (remote_read_bytes): Move code on reading from the
9105 (remote_read_bytes_1): ... here. New function.
9107 2014-03-22 Yao Qi <yao@codesourcery.com>
9109 * ctf.c (ctf_xfer_partial): Check the return value of
9110 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9111 return TARGET_XFER_UNAVAILABLE.
9112 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9113 * target.c (target_read_live_memory): Move it to remote.c.
9114 (memory_xfer_live_readonly_partial): Likewise.
9115 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9116 * remote.c (target_read_live_memory): Moved from target.c.
9117 (memory_xfer_live_readonly_partial): Likewise.
9118 (remote_read_bytes): Factored out from
9119 memory_xfer_partial_1.
9121 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9123 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9126 2014-03-21 Pedro Alves <palves@redhat.com>
9128 * infrun.c (normal_stop): Extend comment.
9130 2014-03-21 Hui Zhu <hui@codesourcery.com>
9131 Pedro Alves <palves@redhat.com>
9133 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9135 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9136 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9137 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9139 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9141 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9142 `z' formatted output modifier.
9144 2014-03-20 Tom Tromey <tromey@redhat.com>
9145 Sergio Durigan Junior <sergiodj@redhat.com>
9147 * probe.c (parse_probes): Turn assert into an ordinary error.
9148 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9149 exceptions when parsing probes. Rearrange the code for clarity.
9151 2014-03-20 Tom Tromey <tromey@redhat.com>
9154 * top.c (execute_command): Only dispatch events if the command
9157 2014-03-20 Tom Tromey <tromey@redhat.com>
9160 * infcall.c: Include event-top.h.
9161 (run_inferior_call): Call async_disable_stdin if needed.
9163 2014-03-20 Pedro Alves <palves@redhat.com>
9165 * infrun.c (prepare_to_proceed): Delete.
9166 (thread_still_needs_step_over): New function.
9167 (find_thread_needs_step_over): New function.
9168 (proceed): If the current thread needs a step-over, set its
9169 steping_over_breakpoint flag. Adjust to use
9170 find_thread_needs_step_over instead of prepare_to_proceed.
9171 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9172 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9174 (switch_back_to_stepped_thread): Step over breakpoints of all
9175 threads not the stepping thread, before switching back to the
9178 2014-03-20 Pedro Alves <palves@redhat.com>
9180 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9182 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9183 * infrun.c (saved_singlestep_ptid)
9184 (stepping_past_singlestep_breakpoint): Delete.
9185 (resume): Remove stepping_past_singlestep_breakpoint handling.
9186 (proceed): Store the prev_pc of the stepping thread too.
9187 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9189 (enum infwait_states): Delete infwait_thread_hop_state.
9190 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9192 (handle_inferior_event): Adjust.
9193 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9194 handling and the thread-hop code. Before removing single-step
9195 breakpoints, check whether the thread hit a single-step breakpoint
9196 of another thread. If it did, the trap is not a random signal.
9197 (switch_back_to_stepped_thread): If the event thread hit a
9198 single-step breakpoint, unblock it before switching to the
9199 stepping thread. Handle the case of the stepped thread having
9201 (keep_going): Handle the case of the current thread moving past a
9202 single-step breakpoint.
9204 2014-03-20 Pedro Alves <palves@redhat.com>
9207 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9208 are being stepped over.
9209 (breakpoint_address_match): Make extern.
9210 * breakpoint.h (breakpoint_address_match): New declaration.
9211 * inferior.h (stepping_past_instruction_at): New declaration.
9212 * infrun.c (struct step_over_info): New type.
9213 (step_over_info): New global.
9214 (set_step_over_info, clear_step_over_info)
9215 (stepping_past_instruction_at): New functions.
9216 (handle_inferior_event): Clear the step-over info when
9217 trap_expected is cleared.
9218 (resume): Remove now stale comment.
9219 (clear_proceed_status): Clear step-over info.
9220 (proceed): Adjust step-over handling to set or clear the step-over
9221 info instead of removing all breakpoints.
9222 (handle_signal_stop): When setting up a thread-hop, don't remove
9224 (stop_stepping): Clear step-over info.
9225 (keep_going): Adjust step-over handling to set or clear step-over
9226 info and then always inserting breakpoints, instead of removing
9227 all breakpoints when stepping over one.
9229 2014-03-20 Pedro Alves <palves@redhat.com>
9231 * infrun.c (previous_inferior_ptid): Adjust comment.
9232 (deferred_step_ptid): Delete.
9233 (infrun_thread_ptid_changed, prepare_to_proceed)
9234 (init_wait_for_inferior): Adjust.
9235 (handle_signal_stop): Delete deferred_step_ptid handling.
9237 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9240 * defs.h (sync_quit_force_run): New declaration.
9241 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9242 * event-top.c (async_sigterm_handler): New declaration.
9243 (async_sigterm_token): New variable.
9244 (async_init_signals): Create also async_sigterm_token.
9245 (async_sigterm_handler): New function.
9246 (sync_quit_force_run): New variable.
9247 (handle_sigterm): Replace quit_force call by other calls.
9248 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9250 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9252 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9253 offset into SPE pseudo registers.
9255 2014-03-18 Pedro Alves <palves@redhat.com>
9258 * inferior.h (print_stop_event): Declare.
9259 * infrun.c (print_stop_event): New, factored out from ...
9260 (normal_stop): ... this.
9261 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9262 of bpstat_print/print_stack_frame.
9264 2014-03-17 Tom Tromey <tromey@redhat.com>
9266 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9268 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9270 * ada-lang.c (decode_constrained_packed_array): Perform a
9271 minimal coercion for reference with coerce_ref instead of
9274 2014-03-17 Tristan Gingold <gingold@adacore.com>
9276 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9277 (darwin_solib_create_inferior_hook): Emit a warning if version
9280 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9282 * python/py-value.c (get_field_flag): Cast flag_name argument to
9283 PyObject_GetAttrString to support Python 2.4.
9285 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9287 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9288 (Global Maintainers): Remove Jan Kratochvil.
9290 2014-03-14 Pedro Alves <palves@redhat.com>
9292 * inferior.h (terminal_ours_for_output): Rename to ...
9293 (child_terminal_ours_for_output): ... this.
9294 (terminal_save_ours): Rename to ...
9295 (child_terminal_save_ours): ... this.
9296 (terminal_ours): Rename to ...
9297 (child_terminal_ours): ... this.
9298 (terminal_inferior): Rename to ...
9299 (child_terminal_inferior): ... this.
9300 (terminal_init_inferior): Rename to ...
9301 (child_terminal_init_inferior): ... this.
9302 (terminal_init_inferior_with_pgrp): Rename to ...
9303 (child_terminal_init_inferior_with_pgrp): ... this.
9304 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9305 (child_terminal_init_with_pgrp): ... this.
9306 (terminal_save_ours): Rename to ...
9307 (child_terminal_save_ours): ... this.
9308 (terminal_init_inferior): Rename to ...
9309 (child_terminal_init): ... this. Adjust.
9310 (terminal_inferior): Rename to ...
9311 (child_terminal_inferior): ... this.
9312 (terminal_ours_for_output): Rename to ...
9313 (child_terminal_ours_for_output): ... this. Adjust.
9314 (terminal_ours): Rename to ...
9315 (child_terminal_ours): ... this.
9316 (terminal_ours_1): Rename to ...
9317 (child_terminal_ours_1): ... this. Adjust.
9318 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9319 * windows-nat.c (do_initial_windows_stuff): Adjust.
9320 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9321 (gnu_terminal_init): ... this. Adjust.
9322 (gnu_target): Adjust.
9323 * inf-child.c (inf_child_target): Adjust.
9325 2014-03-13 Doug Evans <xdje42@gmail.com>
9328 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9331 2014-03-13 Doug Evans <xdje42@gmail.com>
9333 * value.c (record_latest_value): Call release_value_or_incref
9334 instead of release_value.
9336 2014-03-13 Pedro Alves <palves@redhat.com>
9338 * procfs.c (procfs_target): Don't override to_shortname,
9339 to_longname or to_doc.
9341 2014-03-13 Pedro Alves <palves@redhat.com>
9343 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9344 Unix in user visible strings.
9346 2014-03-12 Stan Shebs <stan@codesourcery.com>
9348 * gdbtypes.h: Annotate comments for Doxygen, add a page
9349 block comment with some general info.
9351 2014-03-12 Pedro Alves <palves@redhat.com>
9353 * infcmd.c (prepare_execution_command): New function, factored out
9354 from several execution commands.
9355 (run_command_1, continue_command, step_1, jump_command)
9356 (signal_command, until_command, advance_command, finish_command)
9357 (attach_command): Use prepare_execution_command.
9359 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9361 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9364 (struct arm_linux_thread_points): Removed.
9365 (struct arm_linux_process_info): New.
9366 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9367 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9368 (arm_linux_find_breakpoints_by_tid): Removed.
9369 (struct arch_lwp_info): New.
9370 (arm_linux_find_process_pid): New functions.
9371 (arm_linux_add_process): New functions.
9372 (arm_linux_process_info_get): New functions.
9373 (arm_linux_forget_process): New function.
9374 (arm_linux_get_debug_reg_state): New function.
9375 (struct update_registers_data): New.
9376 (update_registers_callback): New function.
9377 (arm_linux_insert_hw_breakpoint1): Updated.
9378 (arm_linux_remove_hw_breakpoint1): Updated.
9379 (arm_linux_insert_hw_breakpoint): Updated.
9380 (arm_linux_remove_hw_breakpoint): Updated.
9381 (arm_linux_insert_watchpoint): Updated.
9382 (arm_linux_remove_watchpoint): Updated.
9383 (arm_linux_new_thread): Updated.
9384 (arm_linux_prepare_to_resume): New function.
9385 (arm_linux_new_fork): New function.
9386 (_initialize_arm_linux_nat): Updated.
9388 2014-03-12 Pedro Alves <palves@redhat.com>
9390 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9392 2014-03-12 Tom Tromey <tromey@redhat.com>
9394 * inf-child.c (return_zero): New function.
9395 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9396 * aix-thread.c (aix_thread_inferior_created): New function.
9397 (aix_thread_attach): Remove.
9398 (init_aix_thread_ops): Don't set to_attach.
9399 (_initialize_aix_thread): Register inferior_created observer.
9400 * corelow.c (init_core_ops): Don't set to_attach or
9402 * exec.c (init_exec_ops): Don't set to_attach or
9404 * infcmd.c (run_command_1): Use find_run_target. Make direct
9406 (attach_command): Use find_attach_target. Make direct target
9408 * record-btrace.c (init_record_btrace_ops): Don't set
9410 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9412 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9413 set to_create_inferior.
9414 * target.c (complete_target_initialization): Add assertion.
9415 (target_create_inferior): Remove.
9416 (find_default_attach, find_default_create_inferior): Remove.
9417 (find_attach_target, find_run_target): New functions.
9418 (find_default_is_async_p, find_default_can_async_p)
9419 (target_supports_non_stop, target_attach): Remove.
9420 (init_dummy_target): Don't set to_create_inferior or
9421 to_supports_non_stop.
9422 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9423 TARGET_DEFAULT_FUNC.
9424 <to_create_inferior>: Add comment.
9425 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9426 TARGET_DEFAULT_RETURN.
9427 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9428 (find_attach_target, find_run_target): Declare.
9429 (target_create_inferior): Remove.
9430 (target_has_execution_1): Update comment.
9431 (target_supports_non_stop): Remove.
9432 * target-delegates.c: Rebuild.
9434 2014-03-12 Pedro Alves <palves@redhat.com>
9436 * inf-child.h: Update comment to not mention Unix.
9438 2014-03-12 Pedro Alves <palves@redhat.com>
9440 * inf-child.c: Update top comment to not mention Unix. Add
9441 generic comment describing how this target is meant to be used.
9442 (inf_child_post_attach, inf_child_post_startup_inferior)
9443 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9446 2014-03-12 Pedro Alves <palves@redhat.com>
9448 * nto-procfs.c: Include inf-child.h.
9449 (procfs_ops): Delete global.
9450 (procfs_can_run): Delete method.
9451 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9452 target pointer instead of referencing procfs_ops.
9453 (procfs_prepare_to_store): Delete.
9454 (init_procfs_ops): Delete function.
9455 (procfs_target): New function, based on init_procfs_ops, but
9456 inherit inf_child_target.
9457 (_initialize_procfs): Use procfs_target.
9459 2014-03-12 Pedro Alves <palves@redhat.com>
9461 * windows-nat.c: Include inf-child.h.
9462 (windows_ops): Delete global.
9463 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9465 (init_windows_ops): Delete function.
9466 (windows_target): New function, based on init_windows_ops, but
9467 inherit inf_child_target.
9468 (_initialize_windows_nat): Use windows_target. Install x86
9469 specific target methods here.
9471 2014-03-10 Doug Evans <xdje42@gmail.com>
9473 * guile/guile.c (call_initialize_gdb_module): New function.
9474 (initialize_guile): Replace call to scm_init_guile with call to
9477 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9479 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9480 in call to TYPE_CODE macro.
9482 2014-03-10 Jerome Guitton <guitton@adacore.com>
9484 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9485 Resolve tagged types to full view.
9487 2014-03-10 Hui Zhu <hui@codesourcery.com>
9489 * target.h (target_insert_breakpoint): Remove "hardware" from its
9492 2014-03-07 Doug Evans <dje@google.com>
9494 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9496 2014-03-07 Doug Evans <dje@google.com>
9498 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9499 Remove unused local comp_dir_attr. Assert exactly one of
9500 stub_comp_unit_die, stub_comp_dir is non-NULL.
9502 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9504 * target.h (complete_target_initialization, add_target):
9507 2014-03-07 Pedro Alves <palves@redhat.com>
9509 * go32-nat.c: Include inf-child.h.
9510 (go32_ops): Delete global.
9511 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9513 (go32_create_inferior): Push the passed in target pointer instead
9514 of referencing go32_ops.
9515 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9516 (go32_target): New function, based on init_go32_ops, but inherit
9518 (_initialize_go32_nat): Use go32_target. Move parts of
9521 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9523 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9524 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9525 SYMBOL_VALUE_ADDRESS.
9526 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9528 2014-03-06 Yao Qi <yao@codesourcery.com>
9530 * breakpoint.c (get_tracepoint_by_number): Remove argument
9531 optional_p. All callers updated. Adjust comments. Update
9533 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9535 2014-03-06 Yao Qi <yao@codesourcery.com>
9537 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9538 early if get_number returns zero. Use 'p' instead of 'args'.
9540 2014-03-06 Yao Qi <yao@codesourcery.com>
9542 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9545 2014-03-06 Yao Qi <yao@codesourcery.com>
9547 PR breakpoints/16508
9548 * tracepoint.c (check_trace_running): New function.
9549 (trace_find_command): Move code to check_trace_running and
9550 call check_trace_running.
9551 (trace_find_pc_command): Likewise.
9552 (trace_find_tracepoint_command): Likewise.
9553 (trace_find_line_command): Likewise.
9554 (trace_find_range_command): Likewise.
9555 * tracepoint.h (check_trace_running): Likewise.
9556 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9558 2014-03-06 Yao Qi <yao@codesourcery.com>
9560 * target.h (struct target_ops) <to_traceframe_info>: Use
9561 TARGET_DEFAULT_NORETURN (tcomplain ()).
9562 * target-delegates.c: Regenerated.
9564 2014-03-05 Pedro Alves <palves@redhat.com>
9567 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9568 void. Update comment.
9569 (dcache_xfer_memory): Delete.
9570 (dcache_read_memory_partial): New, based on the read bits of
9572 (dcache_update): Add status parameter. Use ULONGEST for len, and
9573 adjust. Discard cache lines if the reason for the update was
9575 * dcache.h (dcache_xfer_memory): Delete declaration.
9576 (dcache_read_memory_partial): New declaration.
9577 (dcache_update): Update prototype.
9578 * target.c (raw_memory_xfer_partial): Update the dcache here.
9579 (memory_xfer_partial_1): Don't handle dcache writes here.
9581 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9583 * remote-sim.c (gdbsim_load): Add const to prog.
9585 2014-03-03 Tom Tromey <tromey@redhat.com>
9587 * elfread.c (probe_key): Change to bfd_data.
9588 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9589 now per-BFD, not per-objfile.
9590 * stap-probe.c (stap_probe_destroy): Update comment.
9591 (handle_stap_probe): Allocate on the per-BFD obstack.
9593 2014-03-03 Tom Tromey <tromey@redhat.com>
9595 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9596 * breakpoint.c (create_longjmp_master_breakpoint): Use
9598 (add_location_to_breakpoint, bkpt_probe_insert_location)
9599 (bkpt_probe_remove_location): Update.
9600 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9601 * elfread.c (elf_symfile_relocate_probe): Remove.
9602 (elf_probe_fns): Update.
9603 (insert_exception_resume_breakpoint): Change type of "probe"
9604 parameter to bound_probe.
9605 (check_exception_resume): Update.
9606 * objfiles.c (objfile_relocate1): Don't relocate probes.
9607 * probe.c (bound_probe_s): New typedef.
9608 (parse_probes): Use get_probe_address. Set sal's objfile.
9609 (find_probe_by_pc): Return a bound_probe.
9610 (collect_probes): Return a VEC(bound_probe_s).
9611 (compare_probes): Update.
9612 (gen_ui_out_table_header_info): Change type of "probes"
9614 (info_probes_for_ops): Update.
9615 (get_probe_address): New function.
9616 (probe_safe_evaluate_at_pc): Update.
9617 * probe.h (struct probe_ops) <get_probe_address>: New field.
9618 <set_semaphore, clear_semaphore>: Add objfile parameter.
9619 (struct probe) <objfile>: Remove field.
9621 <address>: Update comment.
9622 (struct bound_probe): New.
9623 (find_probe_by_pc): Return a bound_probe.
9624 (get_probe_address): Declare.
9625 * solib-svr4.c (struct probe_and_action) <address>: New field.
9626 (hash_probe_and_action, equal_probe_and_action): Update.
9627 (register_solib_event_probe): Add address parameter.
9628 (solib_event_probe_at): Update.
9629 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9631 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9632 (stap_get_probe_address): New function.
9633 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9634 (compile_probe_arg): Update.
9635 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9637 (handle_stap_probe): Don't relocate the probe.
9638 (stap_relocate): Remove.
9639 (stap_gen_info_probes_table_values): Update.
9640 (stap_probe_ops): Remove stap_relocate.
9641 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9642 (debug_sym_probe_fns): Update.
9643 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9644 * symtab.c (init_sal): Use memset.
9645 * symtab.h (struct symtab_and_line) <objfile>: New field.
9646 * tracepoint.c (start_tracing, stop_tracing): Update.
9648 2014-03-03 Tom Tromey <tromey@redhat.com>
9650 * probe.h (parse_probes, find_probe_by_pc)
9651 (find_probes_in_objfile): Fix comments.
9653 2014-03-02 Doug Evans <xdje42@gmail.com>
9655 * infrun.c (handle_signal_stop): Replace test for
9656 TARGET_WAITKIND_STOPPED with an assert.
9658 2014-03-02 Doug Evans <xdje42@gmail.com>
9660 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9662 2014-03-02 Doug Evans <xdje42@gmail.com>
9664 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9666 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9668 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9670 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9672 * i386obsd-nat.c: Include "obsd-nat.h".
9673 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9675 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9677 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9679 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9681 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9683 * mips64obsd-nat.c: Include "obsd-nath".
9684 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9686 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9688 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9690 * amd64obsd-nat.c: Include "obsd-nat,h.
9691 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9693 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9695 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9697 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9698 (find_overload_match): Update call to find_oload_champ.
9699 (find_oload_champ_namespace_loop): Likewise
9701 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9703 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9705 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9706 * config/sparc/obsd64.mh: New file.
9707 * sparc64obsd-nat.c: New file.
9709 * obsd-nat.h: New file.
9710 * obsd-nat.c: New file.
9711 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9712 (ALLDEPFILES): Add obsd-nat.c.
9714 2014-02-28 Tom Tromey <tromey@redhat.com>
9716 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9717 * cli-out.h (cli_ui_out_impl): Now const.
9718 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9719 * ui-out.c (struct ui_out) <impl>: Now const.
9720 (default_ui_out_impl): Now const.
9721 (ui_out_new): Make 'impl' parameter const.
9722 * ui-out.h (ui_out_new): Update.
9724 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9726 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9728 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9730 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9732 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9734 Additional PR 8882 fix.
9735 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9737 2014-02-27 Pedro Alves <palves@redhat.com>
9739 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9742 2014-02-27 Pedro Alves <palves@redhat.com>
9745 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9746 * nat/linux-waitpid.c: Include string.h.
9747 (status_to_str): Moved here and made extern.
9748 * nat/linux-waitpid.h (status_to_str): New declaration.
9750 2014-02-27 Hui Zhu <hui@codesourcery.com>
9753 * infrun.c (ptid_match): Move ...
9754 * common/ptid.c (ptid_match): ... here.
9755 * inferior.h (ptid_match): Move ...
9756 * common/ptid.h (ptid_match): ... here.
9758 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9760 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9761 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9764 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9766 * obsd-tdep.c (obsd_auxv_parse): New function.
9767 (obsd_init_abi): Set auxv_parse.
9769 * gdbarch.sh (auxv_parse): New.
9770 * gdbarch.h: Regenerated.
9771 * gdbarch.c: Regenerated.
9772 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9774 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9776 * guile/scm-value.c (gdbscm_history_append_x): New function.
9777 (value_functions): Add it.
9779 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9781 * dwarf2read.c (attr_value_as_address): New function.
9782 (dwarf2_find_base_address, read_call_site_scope): Use
9783 attr_value_as_address in place of DW_ADDR.
9784 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9785 the low and high addresses. Slight rework of the handling
9786 of the high pc being a constant form, and limit it to
9787 DWARF verson 4 or higher.
9788 (dwarf2_record_block_ranges): Likewise.
9789 (read_partial_die): Likewise.
9790 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9792 2014-02-26 Tom Tromey <tromey@redhat.com>
9794 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9796 2014-02-26 Tom Tromey <tromey@redhat.com>
9798 * elfread.c (elf_read_minimal_symbols): Return early if
9799 minimal symbols have already been read. Add "ei" parameter.
9800 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9801 * minsyms.c (prim_record_minimal_symbol_full): Update.
9802 * objfiles.h (struct objstats) <n_minsyms>: Move...
9803 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9804 * symmisc.c (print_objfile_statistics): Update.
9806 2014-02-26 Tom Tromey <tromey@redhat.com>
9808 * elfread.c (elf_read_minimal_symbols): New function, from
9810 (elf_symfile_read): Call it.
9812 2014-02-26 Tom Tromey <tromey@redhat.com>
9814 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9815 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9816 (lookup_minimal_symbol_solib_trampoline)
9817 (lookup_minimal_symbol_by_pc_section_1)
9818 (lookup_minimal_symbol_and_objfile): Update.
9819 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9820 Don't allocate a minimal symbol if minsyms have already been read.
9821 (build_minimal_symbol_hash_tables): Update.
9822 (install_minimal_symbols): Do nothing if minsyms already read.
9823 Use the per-BFD obstack.
9824 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9825 * objfiles.c (allocate_objfile): Call
9826 terminate_minimal_symbol_table later.
9827 (have_minimal_symbols): Update.
9828 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9829 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9830 Move from struct objfile.
9831 <minsyms_read>: New field.
9832 (struct objfile) <msymbols, minimal_symbol_count,
9833 msymbol_hash, msymbol_demangled_hash>: Move.
9834 (ALL_OBJFILE_MSYMBOLS): Update.
9835 * symfile.c (read_symbols): Set minsyms_read.
9836 (reread_symbols): Update.
9837 * symmisc.c (dump_objfile, dump_msymbols): Update.
9839 2014-02-26 Tom Tromey <tromey@redhat.com>
9841 * minsyms.c (msymbols_sort): Remove.
9842 * minsyms.h (msymbols_sort): Remove.
9843 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9844 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9845 * elfread.c (elf_symtab_read): Don't add section offsets.
9846 * xcoffread.c (record_minimal_symbol): Don't add section offset
9847 to minimal symbol address.
9848 * somread.c (text_offset, data_offset): Remove.
9849 (som_symtab_read): Don't add section offsets to minimal symbol
9851 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9852 Don't add section offsets to minimal symbols.
9853 * coffread.c (coff_symtab_read): Don't add section offsets
9854 to minimal symbol addresses.
9855 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9856 to minimal symbol addresses.
9857 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9858 section offset to minimal symbol addresses.
9859 * mdebugread.c (parse_partial_symbols): Don't add section
9860 offset to minimal symbol addresses.
9861 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9862 offset to minimal symbol addresses.
9864 2014-02-26 Tom Tromey <tromey@redhat.com>
9866 * ada-lang.c (ada_main_name): Update.
9867 (ada_add_standard_exceptions): Update.
9868 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9869 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9870 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9871 * auxv.c (ld_so_xfer_auxv): Update.
9872 * avr-tdep.c (avr_scan_prologue): Update.
9873 * ax-gdb.c (gen_var_ref): Update.
9874 * blockframe.c (get_pc_function_start)
9875 (find_pc_partial_function_gnu_ifunc): Update.
9876 * breakpoint.c (create_overlay_event_breakpoint)
9877 (create_longjmp_master_breakpoint)
9878 (create_std_terminate_master_breakpoint)
9879 (create_exception_master_breakpoint): Update.
9880 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9881 * c-valprint.c (c_val_print): Update.
9882 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9883 * common/agent.c (agent_look_up_symbols): Update.
9884 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9885 * dwarf2loc.c (call_site_to_target_addr): Update.
9886 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9887 * elfread.c (elf_gnu_ifunc_record_cache)
9888 (elf_gnu_ifunc_resolve_by_got): Update.
9889 * findvar.c (default_read_var_value): Update.
9890 * frame.c (inside_main_func): Update.
9891 * frv-tdep.c (frv_frame_this_id): Update.
9892 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9893 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9895 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9896 (hppa_hpux_find_dummy_bpaddr): Update.
9897 * hppa-tdep.c (hppa_symbol_address): Update.
9898 * infcmd.c (until_next_command): Update.
9899 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9901 * linespec.c (minsym_found, add_minsym): Update.
9902 * linux-nat.c (get_signo): Update.
9903 * linux-thread-db.c (inferior_has_bug): Update.
9904 * m32c-tdep.c (m32c_return_value)
9905 (m32c_m16c_address_to_pointer): Update.
9906 * m32r-tdep.c (m32r_frame_this_id): Update.
9907 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9908 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9909 * maint.c (maintenance_translate_address): Update.
9910 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9911 (frob_address): New function.
9912 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9913 frob_address. Rename parameter to "pc_in".
9914 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9916 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9918 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9919 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9920 * objc-lang.c (find_objc_msgsend): Update.
9921 * objfiles.c (objfile_relocate1): Update.
9922 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9923 * p-valprint.c (pascal_val_print): Update.
9924 * parse.c (write_exp_msymbol): Update.
9925 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9926 (ppc_elfv2_skip_entrypoint): Update.
9927 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9928 * printcmd.c (build_address_symbolic, msym_info)
9929 (address_info): Update.
9930 * proc-service.c (ps_pglobal_lookup): Update.
9931 * psymtab.c (find_pc_sect_psymtab_closer)
9932 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9933 Change msymbol parameter to bound_minimal_symbol.
9934 * ravenscar-thread.c (get_running_thread_id): Update.
9935 * remote.c (remote_check_symbols): Update.
9936 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9938 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9939 * solib-dsbt.c (lm_base): Update.
9940 * solib-frv.c (lm_base, main_got): Update.
9941 * solib-irix.c (locate_base): Update.
9942 * solib-som.c (som_solib_create_inferior_hook)
9943 (link_map_start): Update.
9944 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9945 * solib-svr4.c (elf_locate_base, enable_break): Update.
9946 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9947 (flush_ea_cache): Update.
9948 * stabsread.c (define_symbol, scan_file_globals): Update.
9949 * stack.c (find_frame_funname): Update.
9950 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9951 (debug_qf_find_pc_sect_symtab): Update.
9952 * symfile.c (simple_read_overlay_table)
9953 (simple_overlay_update): Update.
9954 * symfile.h (struct quick_symbol_functions)
9955 <find_pc_sect_symtab>: Change type of msymbol to
9956 bound_minimal_symbol.
9957 * symmisc.c (dump_msymbols): Update.
9958 * symtab.c (find_pc_sect_symtab_via_partial)
9959 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9960 (search_symbols, print_msymbol_info): Update.
9961 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9962 (MSYMBOL_VALUE_ADDRESS): Redefine.
9963 (BMSYMBOL_VALUE_ADDRESS): New macro.
9964 * tracepoint.c (scope_info): Update.
9965 * tui/tui-disasm.c (tui_find_disassembly_address)
9966 (tui_get_begin_asm_address): Update.
9967 * valops.c (find_function_in_inferior): Update.
9968 * value.c (value_static_field, value_fn_field): Update.
9970 2014-02-26 Tom Tromey <tromey@redhat.com>
9972 * ada-lang.c (ada_update_initial_language): Update.
9973 (ada_main_name, ada_has_this_exception_support): Update.
9974 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9975 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9976 * arm-tdep.c (arm_skip_stub): Update.
9977 * auxv.c (ld_so_xfer_auxv): Update.
9978 * avr-tdep.c (avr_scan_prologue): Update.
9979 * ax-gdb.c (gen_var_ref): Update.
9980 * breakpoint.c (struct breakpoint_objfile_data)
9981 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9982 type to bound_minimal_symbol.
9983 (create_overlay_event_breakpoint)
9984 (create_longjmp_master_breakpoint)
9985 (create_std_terminate_master_breakpoint)
9986 (create_exception_master_breakpoint): Update.
9987 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9988 * c-exp.y (classify_name): Update.
9989 * coffread.c (coff_symfile_read): Update.
9990 * common/agent.c (agent_look_up_symbols): Update.
9991 * d-lang.c (d_main_name): Update.
9992 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9993 * dec-thread.c (enable_dec_thread): Update.
9994 * dwarf2loc.c (call_site_to_target_addr): Update.
9995 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9996 * eval.c (evaluate_subexp_standard): Update.
9997 * findvar.c (struct minsym_lookup_data) <result>: Change type
9998 to bound_minimal_symbol.
10000 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10001 * frame.c (inside_main_func): Update.
10002 * frv-tdep.c (frv_frame_this_id): Update.
10003 * gcore.c (call_target_sbrk): Update.
10004 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10005 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10007 * go-lang.c (go_main_name): Update.
10008 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10009 (hppa_hpux_find_import_stub_for_addr): Update.
10010 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10011 Update. Change return type.
10012 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10014 * jit.c (jit_breakpoint_re_set_internal): Update.
10015 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10017 * linux-nat.c (get_signo): Update.
10018 * linux-thread-db.c (inferior_has_bug): Update
10019 * m32c-tdep.c (m32c_return_value)
10020 (m32c_m16c_address_to_pointer): Update.
10021 * m32r-tdep.c (m32r_frame_this_id): Update.
10022 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10023 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10024 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10025 lookup_minimal_symbol. Change return type.
10026 (lookup_minimal_symbol): Remove.
10027 (lookup_bound_minimal_symbol): Update.
10028 (lookup_minimal_symbol_text): Change return type.
10029 (lookup_minimal_symbol_solib_trampoline): Change return type.
10030 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10031 (lookup_minimal_symbol_solib_trampoline): Change return type.
10032 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10033 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10034 (value_nsstring, find_imps): Update.
10035 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10036 * p-lang.c (pascal_main_name): Update.
10037 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10038 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10039 * proc-service.c (ps_pglobal_lookup): Update.
10040 * ravenscar-thread.c (get_running_thread_msymbol): Change
10042 (has_ravenscar_runtime, get_running_thread_id): Update.
10043 * remote.c (remote_check_symbols): Update.
10044 * sol-thread.c (ps_pglobal_lookup): Update.
10045 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10046 * solib-dsbt.c (lm_base): Update.
10047 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10049 * solib-irix.c (locate_base): Update.
10050 * solib-som.c (som_solib_create_inferior_hook)
10051 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10053 * solib-spu.c (spu_enable_break): Update.
10054 * solib-svr4.c (elf_locate_base, enable_break): Update.
10055 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10056 (flush_ea_cache): Update.
10057 * stabsread.c (define_symbol): Update.
10058 * symfile.c (simple_read_overlay_table): Update.
10059 * symtab.c (find_pc_sect_line): Update.
10060 * tracepoint.c (scope_info): Update.
10061 * tui-disasm.c (tui_get_begin_asm_address): Update.
10062 * value.c (value_static_field): Update.
10064 2014-02-26 Tom Tromey <tromey@redhat.com>
10066 * minsyms.c (prim_record_minimal_symbol_full): Use
10067 SET_MSYMBOL_VALUE_ADDRESS.
10068 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10069 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10070 SET_MSYMBOL_VALUE_ADDRESS.
10071 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10072 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10074 2014-02-26 Tom Tromey <tromey@redhat.com>
10076 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10077 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10078 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10079 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10080 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10081 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10082 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10083 * ada-lang.c (ada_main_name): Update.
10084 (ada_lookup_simple_minsym): Update.
10085 (ada_make_symbol_completion_list): Update.
10086 (ada_add_standard_exceptions): Update.
10087 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10088 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10089 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10090 * arm-tdep.c (skip_prologue_function): Update.
10091 (arm_skip_stack_protector, arm_skip_stub): Update.
10092 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10093 (arm_wince_skip_main_prologue): Update.
10094 * auxv.c (ld_so_xfer_auxv): Update.
10095 * avr-tdep.c (avr_scan_prologue): Update.
10096 * ax-gdb.c (gen_var_ref): Update.
10097 * block.c (call_site_for_pc): Update.
10098 * blockframe.c (get_pc_function_start): Update.
10099 (find_pc_partial_function_gnu_ifunc): Update.
10100 * breakpoint.c (create_overlay_event_breakpoint): Update.
10101 (create_longjmp_master_breakpoint): Update.
10102 (create_std_terminate_master_breakpoint): Update.
10103 (create_exception_master_breakpoint): Update.
10104 (resolve_sal_pc): Update.
10105 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10106 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10108 * c-valprint.c (c_val_print): Update.
10109 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10110 * coffread.c (coff_symfile_read): Update.
10111 * common/agent.c (agent_look_up_symbols): Update.
10112 * dbxread.c (find_stab_function_addr): Update.
10113 (end_psymtab): Update.
10114 * dwarf2loc.c (call_site_to_target_addr): Update.
10115 (func_verify_no_selftailcall): Update.
10116 (tailcall_dump): Update.
10117 (call_site_find_chain_1): Update.
10118 (dwarf_expr_reg_to_entry_parameter): Update.
10119 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10120 (elf_gnu_ifunc_resolve_by_got): Update.
10121 * f-valprint.c (info_common_command): Update.
10122 * findvar.c (read_var_value): Update.
10123 * frame.c (get_prev_frame_1): Update.
10124 (inside_main_func): Update.
10125 * frv-tdep.c (frv_skip_main_prologue): Update.
10126 (frv_frame_this_id): Update.
10127 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10128 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10129 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10130 (gnuv3_skip_trampoline): Update.
10131 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10132 (hppa64_hpux_in_solib_call_trampoline): Update.
10133 (hppa_hpux_skip_trampoline_code): Update.
10134 (hppa64_hpux_search_dummy_call_sequence): Update.
10135 (hppa_hpux_find_import_stub_for_addr): Update.
10136 (hppa_hpux_find_dummy_bpaddr): Update.
10137 * hppa-tdep.c (hppa_symbol_address)
10138 (hppa_lookup_stub_minimal_symbol): Update.
10139 * i386-tdep.c (i386_skip_main_prologue): Update.
10140 (i386_pe_skip_trampoline_code): Update.
10141 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10142 * infcall.c (get_function_name): Update.
10143 * infcmd.c (until_next_command): Update.
10144 * jit.c (jit_breakpoint_re_set_internal): Update.
10145 (jit_inferior_init): Update.
10146 * linespec.c (minsym_found): Update.
10147 (add_minsym): Update.
10148 * linux-fork.c (info_checkpoints_command): Update.
10149 * linux-nat.c (get_signo): Update.
10150 * linux-thread-db.c (inferior_has_bug): Update.
10151 * m32c-tdep.c (m32c_return_value): Update.
10152 (m32c_m16c_address_to_pointer): Update.
10153 (m32c_m16c_pointer_to_address): Update.
10154 * m32r-tdep.c (m32r_frame_this_id): Update.
10155 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10156 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10157 * maint.c (maintenance_translate_address): Update.
10158 * minsyms.c (add_minsym_to_hash_table): Update.
10159 (add_minsym_to_demangled_hash_table): Update.
10160 (msymbol_objfile): Update.
10161 (lookup_minimal_symbol): Update.
10162 (iterate_over_minimal_symbols): Update.
10163 (lookup_minimal_symbol_text): Update.
10164 (lookup_minimal_symbol_by_pc_name): Update.
10165 (lookup_minimal_symbol_solib_trampoline): Update.
10166 (lookup_minimal_symbol_by_pc_section_1): Update.
10167 (lookup_minimal_symbol_and_objfile): Update.
10168 (prim_record_minimal_symbol_full): Update.
10169 (compare_minimal_symbols): Update.
10170 (compact_minimal_symbols): Update.
10171 (build_minimal_symbol_hash_tables): Update.
10172 (install_minimal_symbols): Update.
10173 (terminate_minimal_symbol_table): Update.
10174 (find_solib_trampoline_target): Update.
10175 (minimal_symbol_upper_bound): Update.
10176 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10177 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10178 (mips_skip_pic_trampoline_code): Update.
10179 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10180 * objc-lang.c (selectors_info): Update.
10181 (classes_info): Update.
10182 (find_methods): Update.
10183 (find_imps): Update.
10184 (find_objc_msgsend): Update.
10185 * objfiles.c (objfile_relocate1): Update.
10186 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10187 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10188 * p-valprint.c (pascal_val_print): Update.
10189 * parse.c (write_exp_msymbol): Update.
10190 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10191 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10192 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10193 * printcmd.c (build_address_symbolic): Update.
10194 (sym_info): Update.
10195 (address_info): Update.
10196 * proc-service.c (ps_pglobal_lookup): Update.
10197 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10198 (find_pc_sect_psymtab): Update.
10199 * python/py-framefilter.c (py_print_frame): Update.
10200 * ravenscar-thread.c (get_running_thread_id): Update.
10201 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10203 * remote.c (remote_check_symbols): Update.
10204 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10205 (rs6000_skip_trampoline_code): Update.
10206 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10207 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10208 * solib-dsbt.c (lm_base): Update.
10209 * solib-frv.c (lm_base): Update.
10210 (main_got): Update.
10211 * solib-irix.c (locate_base): Update.
10212 * solib-som.c (som_solib_create_inferior_hook): Update.
10213 (som_solib_desire_dynamic_linker_symbols): Update.
10214 (link_map_start): Update.
10215 * solib-spu.c (spu_enable_break): Update.
10216 (ocl_enable_break): Update.
10217 * solib-svr4.c (elf_locate_base): Update.
10218 (enable_break): Update.
10219 * spu-tdep.c (spu_get_overlay_table): Update.
10220 (spu_catch_start): Update.
10221 (flush_ea_cache): Update.
10222 * stabsread.c (define_symbol): Update.
10223 (scan_file_globals): Update.
10224 * stack.c (find_frame_funname): Update.
10225 (frame_info): Update.
10226 * symfile.c (simple_read_overlay_table): Update.
10227 (simple_overlay_update): Update.
10228 * symmisc.c (dump_msymbols): Update.
10229 * symtab.c (fixup_section): Update.
10230 (find_pc_sect_line): Update.
10231 (skip_prologue_sal): Update.
10232 (search_symbols): Update.
10233 (print_msymbol_info): Update.
10234 (rbreak_command): Update.
10235 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10236 (completion_list_objc_symbol): Update.
10237 (default_make_symbol_completion_list_break_on): Update.
10238 * tracepoint.c (scope_info): Update.
10239 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10240 (tui_get_begin_asm_address): Update.
10241 * valops.c (find_function_in_inferior): Update.
10242 * value.c (value_static_field): Update.
10243 (value_fn_field): Update.
10245 2014-02-26 Tom Tromey <tromey@redhat.com>
10247 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10248 bound minimal symbols. Move code that knows about minsym
10250 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10252 * minsyms.h (minimal_symbol_upper_bound): Declare.
10253 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10254 minimal_symbol_upper_bound.
10256 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10258 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10259 Use the type's name if its basic type does not have a tag.
10261 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10263 * dwarf2read.c (read_subrange_type): Add comment.
10265 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10267 * dwarf2read.c (update_enumeration_type_from_children): New
10268 function, mostly extracted from process_structure_scope.
10269 (read_enumeration_type): Call update_enumeration_type_from_children.
10270 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10271 and flag_flag_enum fields.
10273 2014-02-26 Pedro Alves <palves@redhat.com>
10275 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10276 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10277 to_xfer_partial method.
10279 2014-02-26 Pedro Alves <palves@redhat.com>
10281 * target.c (complete_target_initialization): Don't install
10282 default_xfer_partial as to_xfer_partial hook.
10283 (nomemory): Delete.
10284 (update_current_target): Don't INHERIT nor de_fault
10285 deprecated_xfer_memory. Delete de_fault macro.
10286 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10287 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10288 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10291 2014-02-26 Pedro Alves <palves@redhat.com>
10293 * go32-nat.c (my_write_child): New function.
10294 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10295 (go32_xfer_partial): New function.
10296 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10297 Instead install a to_xfer_partial hook.
10299 2014-02-26 Pedro Alves <palves@redhat.com>
10301 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10302 to_xfer_partial helper. Rewrite.
10303 (procfs_xfer_partial): New function.
10304 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10305 Install a to_xfer_partial hook.
10307 2014-02-26 Pedro Alves <palves@redhat.com>
10309 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10310 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10311 (m32r_xfer_partial): New function.
10312 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10313 Install a to_xfer_partial hook.
10315 2014-02-26 Pedro Alves <palves@redhat.com>
10317 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10319 (mips_xfer_partial): New function.
10320 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10321 hook. Install a to_xfer_partial hook.
10323 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10325 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10326 * gdbtypes.c (create_array_type_with_stride): New function,
10327 renaming create_array_type, but with an added parameter
10328 called "bit_stride".
10329 (create_array_type): Re-implement using
10330 create_array_type_with_stride.
10331 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10332 and DW_AT_bit_stride attributes.
10334 2014-02-26 Pedro Alves <palves@redhat.com>
10336 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10337 task-specific breakpoints.
10339 2014-02-25 Pedro Alves <palves@redhat.com>
10341 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10342 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10344 2014-02-25 Stan Shebs <stan@codesourcery.com>
10346 * defs.h: Annotate comments for Doxygen.
10348 2014-02-25 Tom Tromey <tromey@redhat.com>
10350 * target.h (target_ignore): Don't declare.
10351 * target.c (target_ignore): Remove.
10353 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10356 * auto-load.c (auto_load_objfile_script_1): Change filename to
10359 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10361 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10362 documentation. Adjust prototype to match the target_ops
10363 to_xfer_partial method. Adjust implementation accordingly.
10365 2014-02-25 Hui Zhu <hui@codesourcery.com>
10367 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10368 to_traceframe_info.
10370 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10372 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10373 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10374 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10375 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10376 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10377 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10378 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10379 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10381 (rl78_register_type): Use a data pointer type for SP and
10382 new pseudo registers mentioned above. Use a 16 bit integer
10383 type for all other register pairs.
10384 (rl78_register_name, rl78_g10_register_name): Update for
10385 new pseudo registers.
10386 (rl78_pseudo_register_read): Likewise.
10387 (rl78_pseudo_register_write): Likewise.
10388 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10389 to the newly added pseudo registers.
10391 2014-02-24 Doug Evans <dje@google.com>
10393 * value.c (record_latest_value): Fix comment.
10394 * printcmd.c (print_command_1): Remove code to handle -1 return from
10395 record_latest_value.
10397 2014-02-24 Pedro Alves <palves@redhat.com>
10399 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10400 deprecated_xfer_memory hook.
10401 (procfs_xfer_partial): Call procfs_xfer_memory instead
10402 of the deprecated_xfer_memory target hook.
10403 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10406 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10408 * windows-nat.c (windows_xfer_shared_libraries): Return
10409 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10410 requested object is TARGET_OBJECT_LIBRARIES.
10412 2014-02-24 Yao Qi <yao@codesourcery.com>
10414 * target.h (enum target_xfer_status)
10415 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10416 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10418 * corefile.c (memory_error_message): User updated.
10419 * exec.c (section_table_read_available_memory): Likewise.
10420 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10421 * target.c (target_xfer_status_to_string): Likewise.
10422 (raw_memory_xfer_partial): Likewise.
10423 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10424 * valops.c (read_value_memory): Likewise.
10425 * exec.h: Update comments.
10427 2014-02-24 Yao Qi <yao@codesourcery.com>
10429 * target.c (target_xfer_status_to_string): Rename argument err
10431 * target.h (target_xfer_status_to_string): Update declaration.
10432 Replace target_xfer_error_to_string with
10433 target_xfer_status_to_string in comment.
10435 2014-02-24 Yao Qi <yao@codesourcery.com>
10437 * mips-linux-nat.c (super_close): Update its type.
10438 (mips_linux_close): Pass 'self' to super_close.
10440 2014-02-24 Yao Qi <yao@codesourcery.com>
10442 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10443 * corefile.c (read_memory): Adjusted.
10444 * target.c (target_write_with_progress): Adjusted.
10446 2014-02-23 Yao Qi <yao@codesourcery.com>
10448 Revert two patches:
10450 2013-10-25 Yao Qi <yao@codesourcery.com>
10452 * remote.c (remote_traceframe_info): Return early if
10453 traceframe is not selected.
10455 2013-07-19 Yao Qi <yao@codesourcery.com>
10457 * target.c (update_current_target): Change the default action
10458 of 'to_traceframe_info' from tcomplain to return_zero.
10459 * target.h (struct target_ops) <to_traceframe_info>: Add more
10462 2014-02-23 Yao Qi <yao@codesourcery.com>
10464 * valops.c (read_value_memory): Rewrite it. Call
10465 target_xfer_partial in a loop.
10466 * exec.h (section_table_available_memory): Remove declaration.
10467 Move comments to ...
10468 * exec.c (section_table_available_memory): ... here. Make it
10471 2014-02-23 Yao Qi <yao@codesourcery.com>
10473 * exec.c (section_table_read_available_memory): New function.
10474 * exec.h (section_table_read_available_memory): Declare.
10475 * ctf.c (ctf_xfer_partial): Call
10476 section_table_read_available_memory.
10477 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10479 2014-02-23 Yao Qi <yao@codesourcery.com>
10481 * ctf.c (ctf_xfer_partial): Move code to ...
10482 * exec.c (exec_read_partial_read_only): ... it. New function.
10483 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10484 * tracefile.c: Include "exec.h".
10485 * exec.h (exec_read_partial_read_only): Declare.
10487 2014-02-23 Yao Qi <yao@codesourcery.com>
10489 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10490 (tfile_has_memory): Remove.
10491 (init_tfile_ops): Don't set fields to_has_all_memory and
10492 to_has_memory of tfile_ops.
10493 * tracefile.c (tracefile_has_all_memory): New function.
10494 (tracefile_has_memory): New function.
10495 (init_tracefile_ops): Initialize fields to_has_all_memory and
10496 to_has_memory of 'ops'.
10498 2014-02-23 Yao Qi <yao@codesourcery.com>
10500 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10501 (ctf_thread_alive, ctf_get_trace_status): Remove.
10502 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10503 init_tracefile_ops.
10504 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10505 (tfile_has_stack, tfile_has_registers): Remove.
10506 (tfile_thread_alive): Remove.
10507 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10508 init_tracefile_ops.
10509 * tracefile.c (tracefile_has_stack): New function.
10510 (tracefile_has_registers): New function.
10511 (tracefile_thread_alive): New function.
10512 (tracefile_get_trace_status): New function.
10513 (init_tracefile_ops): New function.
10514 * tracefile.h (init_tracefile_ops): Declare.
10516 2014-02-23 Yao Qi <yao@codesourcery.com>
10518 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10519 (O_LARGEFILE): Likewise.
10520 (tfile_ops): Likewise.
10521 (TRACE_HEADER_SIZE): Likewise.
10522 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10523 (cur_data_size): Likewise.
10524 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10525 (tfile_close, tfile_files_info): Likewise.
10526 (tfile_get_trace_status): Likewise.
10527 (tfile_get_tracepoint_status): Likewise.
10528 (tfile_get_traceframe_address): Likewise.
10529 (tfile_trace_find, match_blocktype): Likewise.
10530 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10531 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10532 (tfile_get_trace_state_variable_value): Likewise.
10533 (tfile_has_all_memory, tfile_has_memory): Likewise.
10534 (tfile_has_stack, tfile_has_registers): Likewise.
10535 (tfile_thread_alive, build_traceframe_info): Likewise.
10536 (tfile_traceframe_info, init_tfile_ops): Likewise.
10537 (_initialize_tracepoint): Don't call init_tfile_ops
10538 and add_target_with_completer.
10539 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10540 exec.h, completer.h and filenames.h.
10541 (_initialize_tracefile_tfile): New function.
10543 2014-02-23 Yao Qi <yao@codesourcery.com>
10545 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10547 (HFILES_NO_SRCDIR): Add tracefile.h.
10548 * ctf.c: Include "tracefile.h".
10549 * tracefile.h: New file.
10550 * tracefile.c: New file
10551 * tracefile-tfile.c: New file.
10552 * tracepoint.c: Include "tracefile.h".
10553 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10554 (stop_reason_names): Add const.
10555 (trace_file_writer_xfree): Move it to tracefile.c.
10556 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10557 (trace_save_ctf): Likewise.
10558 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10559 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10560 (tfile_write_header, tfile_write_regblock_type): Likewise.
10561 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10562 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10563 (tfile_write_raw_data, tfile_end): Likewise.
10564 (tfile_trace_file_writer_new): Likewise.
10565 (free_uploaded_tp): Make it extern.
10566 (free_uploaded_tsv): Make it extern.
10567 (_initialize_tracepoint): Move code to register command 'tsave'
10569 * tracepoint.h (stop_reason_names): Declare.
10570 (struct trace_frame_write_ops): Move it to tracefile.h.
10571 (struct trace_file_write_ops): Likewise.
10572 (struct trace_file_writer): Likewise.
10573 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10575 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10578 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10580 (get_cores_used_by_process): New parameter num_cores, use it.
10581 (linux_xfer_osdata_processes): Pass num_cores to it.
10582 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10585 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10587 * target.c (memory_xfer_partial): Fix length arg in call to
10588 breakpoint_xfer_memory.
10590 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10593 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10594 number comes after the + or - signs. Adjust length of register
10595 name to be extracted.
10597 2014-02-20 Tom Tromey <tromey@redhat.com>
10599 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10600 (ada_varobj_ops): Mark "extern".
10602 2014-02-20 Tom Tromey <tromey@redhat.com>
10604 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10606 2014-02-20 Doug Evans <xdje42@gmail.com>
10608 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10609 All callers updated.
10610 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10611 All callers updated.
10612 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10613 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10615 2014-02-20 lin zuojian <manjian2006@gmail.com>
10616 Joel Brobecker <brobecker@adacore.com>
10617 Doug Evans <xdje42@gmail.com>
10620 * dwarf2read.c (struct die_info): New member in_process.
10621 (reset_die_in_process): New function.
10622 (process_die): Set it at the start, reset when returning.
10623 (inherit_abstract_dies): Only call process_die if origin_child_die
10624 not already being processed.
10626 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10628 * windows-nat.c (handle_unload_dll): Add function documentation.
10629 (do_initial_windows_stuff): Add comment explaining why we wait
10630 until after inferior initialization has finished before
10631 processing all DLLs.
10633 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10635 * windows-nat.c (get_module_name): Delete.
10636 (windows_get_exec_module_filename): New function, mostly
10637 inspired from get_module_name.
10638 (windows_pid_to_exec_file): Replace call to get_module_name
10639 by call to windows_get_exec_module_filename.
10641 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10643 * windows-nat.c (handle_load_dll): Rewrite this function's
10644 introductory comment. Remove code using get_module_name
10645 to get the DLL's name.
10647 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10649 * windows-nat.c (get_windows_debug_event): Ignore
10650 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10651 if windows_initialization_done == 0.
10652 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10653 Adjust implementation to always load all DLLs.
10654 (do_initial_windows_stuff): Replace call to
10655 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10657 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10659 * windows-nat.c (_initialize_windows_nat): Deprecate the
10660 "dll-symbols" command. Turn the "add-shared-symbol-files"
10661 and "assf" aliases into commands, and deprecate them as well.
10662 * NEWS: Add entry explaining that "dll-symbols" and its two
10663 aliases are now deprecated.
10665 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10667 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10668 new-line in debug string. Remove trailing spaces.
10670 2014-02-19 Stan Shebs <stan@codesourcery.com>
10672 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10674 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10676 * NEWS: Add entry for the new feature
10677 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10680 2014-02-19 Stan Shebs <stan@codesourcery.com>
10682 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10684 2014-02-19 Pedro Alves <palves@redhat.com>
10686 * common/ptid.h (struct ptid): Mention that process_stratum
10687 targets should prefer ptid.lwp.
10689 2014-02-19 Pedro Alves <palves@redhat.com>
10691 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10692 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10693 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10694 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10695 store remote thread ids rather than ptid.tid.
10696 (_initialize_remote): Adjust.
10698 2014-02-19 Tom Tromey <tromey@redhat.com>
10700 * target.c (target_get_unwinder): Rewrite.
10701 (target_get_tailcall_unwinder): Rewrite.
10702 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10703 (record_btrace_to_get_tailcall_unwinder): New function.
10704 (init_record_btrace_ops): Update.
10705 * target.h (struct target_ops) <to_get_unwinder,
10706 to_get_tailcall_unwinder>: Now function pointers. Use
10707 TARGET_DEFAULT_RETURN.
10709 2014-02-19 Tom Tromey <tromey@redhat.com>
10711 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10713 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10715 2014-02-19 Tom Tromey <tromey@redhat.com>
10717 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10719 * target-delegates.c: Rebuild.
10720 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10721 TARGET_DEFAULT_FUNC.
10722 * target.c (default_target_decr_pc_after_break): Rename from
10723 forward_target_decr_pc_after_break. Simplify.
10724 (target_decr_pc_after_break): Rely on delegation.
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * target.c (update_current_target): Do not INHERIT to_doc or
10729 to_magic. Do not de_fault to_open or to_close.
10731 2014-02-19 Tom Tromey <tromey@redhat.com>
10733 * gcore.h (objfile_find_memory_regions): Declare.
10734 * gcore.c (objfile_find_memory_regions): No longer static. Add
10736 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10737 * exec.c: Include gcore.h.
10738 (exec_set_find_memory_regions): Remove.
10739 (exec_find_memory_regions): Remove.
10740 (exec_do_find_memory_regions): Remove.
10741 (init_exec_ops): Update.
10742 * defs.h (exec_set_find_memory_regions): Remove.
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10746 * target-delegates.c: Rebuild.
10747 * target.h (struct target_ops) <to_extra_thread_info,
10748 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10749 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10750 not 0, in TARGET_DEFAULT_RETURN.
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10754 * target.c (complete_target_initialization): Remove casts. Use
10755 return_zero_has_execution.
10756 (return_zero): Add "ignore" argument.
10757 (return_zero_has_execution): New function.
10758 (init_dummy_target): Remove casts. Use
10759 return_zero_has_execution.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target.c (update_current_target): Update comments. Do not
10764 INHERIT to_stratum.
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10770 * corelow.c (core_read_description): Delegate when needed.
10771 * remote.c (remote_read_description): Delegate when needed.
10772 * target-delegates.c: Rebuild.
10773 * target.c (target_read_description): Rewrite.
10774 * target.h (struct target_ops) <to_read_description>: Update
10775 comment. Use TARGET_DEFAULT_RETURN.
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10779 * target-delegates.c: Rebuild.
10780 * target.c (update_current_target): Don't inherit or default
10782 (find_default_run_target): Check against delegate_can_run.
10783 * target.h (struct target_ops) <to_can_run>: Use
10784 TARGET_DEFAULT_RETURN.
10786 2014-02-19 Tom Tromey <tromey@redhat.com>
10788 * target-delegates.c: Rebuild.
10789 * target.c (target_disconnect): Unconditionally delegate.
10790 * target.h (struct target_ops) <to_disconnect>: Use
10791 TARGET_DEFAULT_NORETURN.
10793 2014-02-19 Tom Tromey <tromey@redhat.com>
10795 * record.c (record_stop): Unconditionally delegate.
10796 * target-delegates.c: Rebuild.
10797 * target.c (target_stop_recording): Unconditionally delegate.
10798 * target.h (struct target_ops) <to_stop_recording>: Use
10799 TARGET_DEFAULT_IGNORE.
10801 2014-02-19 Tom Tromey <tromey@redhat.com>
10803 * target-delegates.c: Rebuild.
10804 * target.c (target_enable_btrace): Unconditionally delegate.
10805 * target.h (struct target_ops) <to_enable_btrace>: Use
10806 TARGET_DEFAULT_NORETURN.
10808 2014-02-19 Tom Tromey <tromey@redhat.com>
10810 * target-delegates.c: Rebuild.
10811 * target.c (target_read_btrace): Unconditionally delegate.
10812 * target.h (struct target_ops) <to_read_btrace>: Use
10813 TARGET_DEFAULT_NORETURN.
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * target-delegates.c: Rebuild.
10818 * target.c (target_teardown_btrace): Unconditionally delegate.
10819 * target.h (struct target_ops) <to_teardown_btrace>: Use
10820 TARGET_DEFAULT_NORETURN.
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10824 * target-delegates.c: Rebuild.
10825 * target.c (target_disable_btrace): Unconditionally delegate.
10826 * target.h (struct target_ops) <to_disable_btrace>: Use
10827 TARGET_DEFAULT_NORETURN.
10829 2014-02-19 Tom Tromey <tromey@redhat.com>
10831 * target-delegates.c: Rebuild.
10832 * target.c (default_search_memory): New function.
10833 (simple_search_memory): Update comment.
10834 (target_search_memory): Unconditionally delegate.
10835 * target.h (struct target_ops) <to_search_memory>: Use
10836 TARGET_DEFAULT_FUNC.
10838 2014-02-19 Tom Tromey <tromey@redhat.com>
10840 * auxv.c (default_auxv_parse): No longer static.
10841 (target_auxv_parse): Unconditionally delegate.
10842 * auxv.h (default_auxv_parse): Declare.
10843 * target-delegates.c: Rebuild.
10844 * target.c: Include auxv.h.
10845 * target.h (struct target_ops) <to_auxv_parse>: Use
10846 TARGET_DEFAULT_FUNC.
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10850 * target-delegates.c: Rebuild.
10851 * target.c (target_memory_map): Unconditionally delegate.
10852 * target.h (struct target_ops) <to_memory_map>: Use
10853 TARGET_DEFAULT_RETURN.
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10857 * target-delegates.c: Rebuild.
10858 * target.c (target_thread_alive): Unconditionally delegate.
10859 * target.h (struct target_ops) <to_thread_alive>: Use
10860 TARGET_DEFAULT_RETURN.
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10864 * target-delegates.c: Rebuild.
10865 * target.c (target_save_record): Unconditionally delegate.
10866 * target.h (struct target_ops) <to_save_record>: Use
10867 TARGET_DEFAULT_NORETURN.
10869 2014-02-19 Tom Tromey <tromey@redhat.com>
10871 * target-delegates.c: Rebuild.
10872 * target.c (target_delete_record): Unconditionally delegate.
10873 * target.h (struct target_ops) <to_delete_record>: Use
10874 TARGET_DEFAULT_NORETURN.
10876 2014-02-19 Tom Tromey <tromey@redhat.com>
10878 * target-delegates.c: Rebuild.
10879 * target.c (target_record_is_replaying): Unconditionally
10881 * target.h (struct target_ops) <to_record_is_replaying>: Use
10882 TARGET_DEFAULT_RETURN.
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10886 * target-delegates.c: Rebuild.
10887 * target.c (target_goto_record_begin): Unconditionally delegate.
10888 * target.h (struct target_ops) <to_goto_record_begin>: Use
10889 TARGET_DEFAULT_NORETURN.
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10893 * target-delegates.c: Rebuild.
10894 * target.c (target_goto_record_end): Unconditionally delegate.
10895 * target.h (struct target_ops) <to_goto_record_end>: Use
10896 TARGET_DEFAULT_NORETURN.
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10900 * target-delegates.c: Rebuild.
10901 * target.c (target_goto_record): Unconditionally delegate.
10902 * target.h (struct target_ops) <to_goto_record>: Use
10903 TARGET_DEFAULT_NORETURN.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target-delegates.c: Rebuild.
10908 * target.c (target_insn_history): Unconditionally delegate.
10909 * target.h (struct target_ops) <to_insn_history>: Use
10910 TARGET_DEFAULT_NORETURN.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target-delegates.c: Rebuild.
10915 * target.c (target_insn_history_from): Unconditionally delegate.
10916 * target.h (struct target_ops) <to_insn_history_from>: Use
10917 TARGET_DEFAULT_NORETURN.
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10921 * target-delegates.c: Rebuild.
10922 * target.c (target_insn_history_range): Unconditionally delegate.
10923 * target.h (struct target_ops) <to_insn_history_range>: Use
10924 TARGET_DEFAULT_NORETURN.
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10928 * target-delegates.c: Rebuild.
10929 * target.c (target_call_history): Unconditionally delegate.
10930 * target.h (struct target_ops) <to_call_history>: Use
10931 TARGET_DEFAULT_NORETURN.
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * target-delegates.c: Rebuild.
10936 * target.c (target_call_history_from): Unconditionally delegate.
10937 * target.h (struct target_ops) <to_call_history_from>: Use
10938 TARGET_DEFAULT_NORETURN.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target-delegates.c: Rebuild.
10943 * target.c (target_call_history_range): Unconditionally delegate.
10944 * target.h (struct target_ops) <to_call_history_range>: Use
10945 TARGET_DEFAULT_NORETURN.
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10949 * target-delegates.c: Rebuild.
10950 * target.c (target_verify_memory): Unconditionally delegate.
10951 * target.h (struct target_ops) <to_verify_memory>: Use
10952 TARGET_DEFAULT_NORETURN.
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10956 * target-delegates.c: Rebuild.
10957 * target.c (target_core_of_thread): Unconditionally delegate.
10958 * target.h (struct target_ops) <to_core_of_thread>: Use
10959 TARGET_DEFAULT_RETURN.
10961 2014-02-19 Tom Tromey <tromey@redhat.com>
10963 * target-delegates.c: Rebuild.
10964 * target.c (target_flash_done): Unconditionally delegate.
10965 * target.h (struct target_ops) <to_flash_done>: Use
10966 TARGET_DEFAULT_NORETURN.
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10970 * target-delegates.c: Rebuild.
10971 * target.c (target_flash_erase): Unconditionally delegate.
10972 * target.h (struct target_ops) <to_flash_erase>: Use
10973 TARGET_DEFAULT_NORETURN.
10975 2014-02-19 Tom Tromey <tromey@redhat.com>
10977 * target-delegates.c: Rebuild.
10978 * target.c (target_get_section_table): Unconditionally delegate.
10979 * target.h (struct target_ops) <to_get_section_table>: Use
10980 TARGET_DEFAULT_RETURN.
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10984 * target-delegates.c: Rebuild.
10985 * target.c (target_pid_to_str): Unconditionally delegate.
10986 (init_dummy_target): Don't initialize to_pid_to_str.
10987 (default_pid_to_str): Rename from dummy_pid_to_str.
10988 * target.h (struct target_ops) <to_pid_to_str>: Use
10989 TARGET_DEFAULT_FUNC.
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10993 * target-delegates.c: Rebuild.
10994 * target.c (target_find_new_threads): Unconditionally delegate.
10995 * target.h (struct target_ops) <to_find_new_threads>: Use
10996 TARGET_DEFAULT_RETURN.
10998 2014-02-19 Tom Tromey <tromey@redhat.com>
11000 * target-delegates.c: Rebuild.
11001 * target.c (target_program_signals): Unconditionally delegate.
11002 * target.h (struct target_ops) <to_program_signals>: Use
11003 TARGET_DEFAULT_IGNORE.
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11007 * target-delegates.c: Rebuild.
11008 * target.c (target_pass_signals): Unconditionally delegate.
11009 * target.h (struct target_ops) <to_pass_signals>: Use
11010 TARGET_DEFAULT_IGNORE.
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11014 * target-delegates.c: Rebuild.
11015 * target.c (default_mourn_inferior): New function.
11016 (target_mourn_inferior): Unconditionally delegate.
11017 * target.h (struct target_ops) <to_mourn_inferior>: Use
11018 TARGET_DEFAULT_FUNC.
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11022 * target-delegates.c: Rebuild.
11023 * target.c (default_follow_fork): New function.
11024 (target_follow_fork): Unconditionally delegate.
11025 * target.h (struct target_ops) <to_follow_fork>: Use
11026 TARGET_DEFAULT_FUNC.
11028 2014-02-19 Tom Tromey <tromey@redhat.com>
11030 * target-delegates.c: Rebuild.
11031 * target.c (target_kill): Unconditionally delegate.
11032 * target.h (struct target_ops) <to_kill>: Use
11033 TARGET_DEFAULT_NORETURN.
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11037 * target-delegates.c: Rebuild.
11038 * target.c (target_masked_watch_num_registers): Unconditionally
11040 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11041 Use TARGET_DEFAULT_RETURN.
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11045 * target-delegates.c: Rebuild.
11046 * target.c (target_remove_mask_watchpoint): Unconditionally
11048 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11049 TARGET_DEFAULT_RETURN.
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target-delegates.c: Rebuild.
11054 * target.c (target_insert_mask_watchpoint): Unconditionally
11056 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11057 TARGET_DEFAULT_RETURN.
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * target-delegates.c: Rebuild.
11062 * target.c (target_ranged_break_num_registers): Unconditionally
11064 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11065 Use TARGET_DEFAULT_RETURN.
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target-delegates.c: Rebuild.
11070 * target.c (target_fetch_registers): Unconditionally delegate.
11071 * target.h (struct target_ops) <to_fetch_registers>: Use
11072 TARGET_DEFAULT_NORETURN.
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11076 * target-delegates.c: Rebuild.
11077 * target.c (update_current_target): Don't inherit or default
11079 * target.h (struct target_ops) <to_stop>: Use
11080 TARGET_DEFAULT_IGNORE.
11082 2014-02-19 Tom Tromey <tromey@redhat.com>
11084 * target-delegates.c: Rebuild.
11085 * target.c (update_current_target): Don't inherit or default
11086 to_can_run_breakpoint_commands.
11087 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11088 Use TARGET_DEFAULT_RETURN.
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * target-delegates.c: Rebuild.
11093 * target.c (update_current_target): Don't inherit or default
11094 to_supports_evaluation_of_breakpoint_conditions.
11095 * target.h (struct target_ops)
11096 <to_supports_evaluation_of_breakpoint_conditions>: Use
11097 TARGET_DEFAULT_RETURN.
11099 2014-02-19 Tom Tromey <tromey@redhat.com>
11101 * target-delegates.c: Rebuild.
11102 * target.c (update_current_target): Don't inherit or default
11103 to_augmented_libraries_svr4_read.
11104 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11105 Use TARGET_DEFAULT_RETURN.
11107 2014-02-19 Tom Tromey <tromey@redhat.com>
11109 * target-delegates.c: Rebuild.
11110 * target.c (update_current_target): Don't inherit or default
11112 * target.h (struct target_ops) <to_can_use_agent>: Use
11113 TARGET_DEFAULT_RETURN.
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11117 * target-delegates.c: Rebuild.
11118 * target.c (update_current_target): Don't inherit or default
11120 * target.h (struct target_ops) <to_use_agent>: Use
11121 TARGET_DEFAULT_NORETURN.
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11125 * target-delegates.c: Rebuild.
11126 * target.c (update_current_target): Don't inherit or default
11127 to_traceframe_info.
11128 (return_null): Remove.
11129 * target.h (struct target_ops) <to_traceframe_info>: Use
11130 TARGET_DEFAULT_RETURN.
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11134 * target-delegates.c: Rebuild.
11135 * target.c (update_current_target): Don't inherit or default
11136 to_static_tracepoint_markers_by_strid.
11137 * target.h (struct target_ops)
11138 <to_static_tracepoint_markers_by_strid>: Use
11139 TARGET_DEFAULT_NORETURN.
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target-delegates.c: Rebuild.
11144 * target.c (update_current_target): Don't inherit or default
11145 to_static_tracepoint_marker_at.
11146 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11147 Use TARGET_DEFAULT_RETURN.
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * target-delegates.c: Rebuild.
11152 * target.c (update_current_target): Don't inherit or default
11153 to_set_permissions.
11154 * target.h (struct target_ops) <to_set_permissions>: Use
11155 TARGET_DEFAULT_IGNORE.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target-delegates.c: Rebuild.
11160 * target.c (update_current_target): Don't inherit or default
11161 to_get_tib_address.
11162 * target.h (struct target_ops) <to_get_tib_address>: Use
11163 TARGET_DEFAULT_NORETURN.
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11167 * target-delegates.c: Rebuild.
11168 * target.c (update_current_target): Don't inherit or default
11169 to_set_trace_notes.
11170 * target.h (struct target_ops) <to_set_trace_notes>: Use
11171 TARGET_DEFAULT_RETURN.
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * target-delegates.c: Rebuild.
11176 * target.c (update_current_target): Don't initialize
11177 to_set_trace_buffer_size.
11178 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11179 TARGET_DEFAULT_IGNORE.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target-delegates.c: Rebuild.
11184 * target.c (update_current_target): Don't inherit or default
11185 to_set_circular_trace_buffer.
11186 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11187 TARGET_DEFAULT_IGNORE.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target-delegates.c: Rebuild.
11192 * target.c (update_current_target): Don't inherit or default
11193 to_set_disconnected_tracing.
11194 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11195 TARGET_DEFAULT_IGNORE.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target-delegates.c: Rebuild.
11200 * target.c (update_current_target): Don't inherit or default
11201 to_get_min_fast_tracepoint_insn_len.
11202 (return_minus_one): Remove.
11203 * target.h (struct target_ops)
11204 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target-delegates.c: Rebuild.
11209 * target.c (update_current_target): Don't inherit or default
11210 to_get_raw_trace_data.
11211 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11212 TARGET_DEFAULT_NORETURN.
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11216 * target-delegates.c: Rebuild.
11217 * target.c (update_current_target): Don't inherit or default
11218 to_upload_trace_state_variables.
11219 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11220 Use TARGET_DEFAULT_RETURN.
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target-delegates.c: Rebuild.
11225 * target.c (update_current_target): Don't inherit or default
11226 to_upload_tracepoints.
11227 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11228 TARGET_DEFAULT_RETURN.
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11232 * target-delegates.c: Rebuild.
11233 * target.c (update_current_target): Don't inherit or default
11234 to_save_trace_data.
11235 * target.h (struct target_ops) <to_save_trace_data>: Use
11236 TARGET_DEFAULT_NORETURN.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target-delegates.c: Rebuild.
11241 * target.c (update_current_target): Don't inherit or default
11242 to_get_trace_state_variable_value.
11243 * target.h (struct target_ops)
11244 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11248 * target-delegates.c: Rebuild.
11249 * target.c (update_current_target): Don't inherit or default
11251 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * target-delegates.c: Rebuild.
11256 * target.c (update_current_target): Don't inherit or default
11258 * target.h (struct target_ops) <to_trace_stop>: Use
11259 TARGET_DEFAULT_NORETURN.
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11263 * target-delegates.c: Rebuild.
11264 * target.c (update_current_target): Don't inherit or default
11265 to_get_tracepoint_status.
11266 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11267 TARGET_DEFAULT_NORETURN.
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11271 * target-delegates.c: Rebuild.
11272 * target.c (update_current_target): Don't inherit or default
11273 to_get_trace_status.
11274 * target.h (struct target_ops) <to_get_trace_status>: Use
11275 TARGET_DEFAULT_RETURN.
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11279 * target-delegates.c: Rebuild.
11280 * target.c (update_current_target): Don't inherit or default
11282 * target.h (struct target_ops) <to_trace_start>: Use
11283 TARGET_DEFAULT_NORETURN.
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11287 * target-delegates.c: Rebuild.
11288 * target.c (update_current_target): Don't inherit or default
11289 to_trace_set_readonly_regions.
11290 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11291 Use TARGET_DEFAULT_NORETURN.
11293 2014-02-19 Tom Tromey <tromey@redhat.com>
11295 * target-delegates.c: Rebuild.
11296 * target.c (update_current_target): Don't inherit or default
11297 to_disable_tracepoint.
11298 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11299 TARGET_DEFAULT_NORETURN.
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11303 * target-delegates.c: Rebuild.
11304 * target.c (update_current_target): Don't inherit or default
11305 to_enable_tracepoint.
11306 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11307 TARGET_DEFAULT_NORETURN.
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11311 * target-delegates.c: Rebuild.
11312 * target.c (update_current_target): Don't inherit or default
11313 to_download_trace_state_variable.
11314 * target.h (struct target_ops) <to_download_trace_state_variable>:
11315 Use TARGET_DEFAULT_NORETURN.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target-delegates.c: Rebuild.
11320 * target.c (update_current_target): Don't inherit or default
11321 to_can_download_tracepoint.
11322 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11323 TARGET_DEFAULT_RETURN.
11325 2014-02-19 Tom Tromey <tromey@redhat.com>
11327 * target-delegates.c: Rebuild.
11328 * target.c (update_current_target): Don't inherit or default
11329 to_download_tracepoint.
11330 * target.h (struct target_ops) <to_download_tracepoint>: Use
11331 TARGET_DEFAULT_NORETURN.
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11335 * target-delegates.c: Rebuild.
11336 * target.c (update_current_target): Don't inherit or default
11338 * target.h (struct target_ops) <to_trace_init>: Use
11339 TARGET_DEFAULT_RETURN.
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11343 * target-delegates.c: Rebuild.
11344 * target.c (update_current_target): Don't inherit or default
11345 to_supports_string_tracing.
11346 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11347 TARGET_DEFAULT_RETURN.
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11351 * target-delegates.c: Rebuild.
11352 * target.c (update_current_target): Don't inherit or default
11353 to_supports_enable_disable_tracepoint.
11354 * target.h (struct target_ops)
11355 <to_supports_enable_disable_tracepoint>: Use
11356 TARGET_DEFAULT_RETURN.
11358 2014-02-19 Tom Tromey <tromey@redhat.com>
11360 * target-delegates.c: Rebuild.
11361 * target.c (update_current_target): Don't inherit or default
11362 to_supports_multi_process.
11363 * target.h (struct target_ops) <to_supports_multi_process>: Use
11364 TARGET_DEFAULT_RETURN.
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11368 * target-delegates.c: Rebuild.
11369 * target.c (update_current_target): Don't inherit or default
11370 to_get_ada_task_ptid.
11371 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11372 TARGET_DEFAULT_FUNC.
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11376 * target-delegates.c: Rebuild.
11377 * target.c (update_current_target): Don't inherit or default
11378 to_thread_architecture.
11379 * target.h (struct target_ops) <to_thread_architecture>: Use
11380 TARGET_DEFAULT_FUNC.
11382 2014-02-19 Tom Tromey <tromey@redhat.com>
11384 * target-delegates.c: Rebuild.
11385 * target.c (update_current_target): Don't inherit or default
11386 to_execution_direction.
11387 * target.h (struct target_ops) <to_execution_direction>: Use
11388 TARGET_DEFAULT_FUNC.
11390 2014-02-19 Tom Tromey <tromey@redhat.com>
11392 * target-delegates.c: Rebuild.
11393 * target.c (update_current_target): Don't inherit or default
11394 to_can_execute_reverse.
11395 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11396 TARGET_DEFAULT_RETURN.
11397 (target_can_execute_reverse): Unconditionally delegate.
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11401 * target-delegates.c: Rebuild.
11402 * target.c (update_current_target): Don't inherit or default
11404 (dummy_goto_bookmark): Remove.
11405 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11406 * target.h (struct target_ops) <to_goto_bookmark>: Use
11407 TARGET_DEFAULT_NORETURN.
11409 2014-02-19 Tom Tromey <tromey@redhat.com>
11411 * target-delegates.c: Rebuild.
11412 * target.c (update_current_target): Don't inherit or default
11414 (dummy_get_bookmark): Remove.
11415 (init_dummy_target): Don't inherit or default to_get_bookmark.
11416 * target.h (struct target_ops) <to_get_bookmark>: Use
11417 TARGET_DEFAULT_NORETURN
11419 2014-02-19 Tom Tromey <tromey@redhat.com>
11421 * target-delegates.c: Rebuild.
11422 * target.c (update_current_target): Don't inherit or default
11423 to_make_corefile_notes.
11424 (init_dummy_target): Don't initialize to_make_corefile_notes.
11425 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11426 TARGET_DEFAULT_FUNC.
11428 2014-02-19 Tom Tromey <tromey@redhat.com>
11430 * target-delegates.c: Rebuild.
11431 * target.c (update_current_target): Don't inherit or default
11432 to_find_memory_regions.
11433 (init_dummy_target): Don't initialize to_find_memory_regions.
11434 * target.h (struct target_ops) <to_find_memory_regions>: Use
11435 TARGET_DEFAULT_FUNC.
11437 2014-02-19 Tom Tromey <tromey@redhat.com>
11439 * target-delegates.c: Rebuild.
11440 * target.c (update_current_target): Don't inherit or default
11442 * target.h (struct target_ops) <to_log_command>: Use
11443 TARGET_DEFAULT_IGNORE.
11444 (target_log_command): Unconditionally delegate.
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11448 * target-delegates.c: Rebuild.
11449 * target.c (update_current_target): Don't inherit or default
11450 to_pid_to_exec_file.
11451 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11452 TARGET_DEFAULT_RETURN.
11454 2014-02-19 Tom Tromey <tromey@redhat.com>
11456 * target-delegates.c: Rebuild.
11457 * target.c (update_current_target): Don't inherit or default
11459 (target_thread_name): Unconditionally delegate.
11460 * target.h (struct target_ops) <to_thread_name>: Use
11461 TARGET_DEFAULT_RETURN.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_extra_thread_info.
11468 * target.h (struct target_ops) <to_extra_thread_info>: Use
11469 TARGET_DEFAULT_RETURN.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * target-delegates.c: Rebuild.
11474 * target.c (update_current_target): Don't inherit or default
11476 * target.h (struct target_ops) <to_has_exited>: Use
11477 TARGET_DEFAULT_RETURN..
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_set_syscall_catchpoint.
11484 (return_one): Remove.
11485 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11486 TARGET_DEFAULT_RETURN.
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11490 * target-delegates.c: Rebuild.
11491 * target.c (update_current_target): Don't inherit or default
11492 to_insert_exec_catchpoint.
11493 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11494 TARGET_DEFAULT_RETURN.
11496 2014-01-08 Tom Tromey <tromey@redhat.com>
11498 * target-delegates.c: Rebuild.
11499 * target.c (update_current_target): Don't inherit or default
11500 to_insert_exec_catchpoint.
11501 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11502 TARGET_DEFAULT_RETURN.
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11506 * target-delegates.c: Rebuild.
11507 * target.c (update_current_target): Don't inherit or default
11508 to_remove_vfork_catchpoint.
11509 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11510 TARGET_DEFAULT_RETURN.
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_insert_vfork_catchpoint.
11517 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11518 TARGET_DEFAULT_RETURN.
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_remove_fork_catchpoint.
11525 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11526 TARGET_DEFAULT_RETURN.
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11530 * target-delegates.c: Rebuild.
11531 * target.c (update_current_target): Don't inherit or default
11532 to_insert_fork_catchpoint.
11533 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11534 TARGET_DEFAULT_RETURN.
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11538 * target-delegates.c: Rebuild.
11539 * target.c (update_current_target): Don't inherit or default
11540 to_post_startup_inferior.
11541 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11542 TARGET_DEFAULT_IGNORE.
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11546 * target-delegates.c: Rebuild.
11547 * target.c (update_current_target): Don't inherit or default
11549 * target.h (struct target_ops) <to_load>: Use
11550 TARGET_DEFAULT_NORETURN.
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11554 * target-delegates.c: Rebuild.
11555 * target.c (update_current_target): Don't inherit or default
11557 * target.h (struct target_ops) <to_terminal_info>: Use
11558 TARGET_DEFAULT_FUNC.
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11562 * target-delegates.c: Rebuild.
11563 * target.c (update_current_target): Don't inherit or default
11564 to_terminal_save_ours.
11565 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11566 TARGET_DEFAULT_IGNORE.
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11573 * target.h (struct target_ops) <to_terminal_ours>: Use
11574 TARGET_DEFAULT_IGNORE.
11576 2014-02-19 Tom Tromey <tromey@redhat.com>
11578 * target-delegates.c: Rebuild.
11579 * target.c (update_current_target): Don't inherit or default
11580 to_terminal_ours_for_output.
11581 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11582 TARGET_DEFAULT_IGNORE.
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11586 * target-delegates.c: Rebuild.
11587 * target.c (update_current_target): Don't inherit or default
11588 to_terminal_inferior.
11589 * target.h (struct target_ops) <to_terminal_inferior>: Use
11590 TARGET_DEFAULT_IGNORE.
11592 2014-02-19 Tom Tromey <tromey@redhat.com>
11594 * target-delegates.c: Rebuild.
11595 * target.c (update_current_target): Don't inherit or default
11597 * target.h (struct target_ops) <to_terminal_init>: Use
11598 TARGET_DEFAULT_IGNORE.
11600 2014-02-19 Tom Tromey <tromey@redhat.com>
11602 * target-delegates.c: Rebuild.
11603 * target.c (update_current_target): Don't inherit or default
11604 to_can_accel_watchpoint_condition.
11605 * target.h (struct target_ops)
11606 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11608 2014-02-19 Tom Tromey <tromey@redhat.com>
11610 * target-delegates.c: Rebuild.
11611 * target.c (update_current_target): Don't inherit or default
11612 to_region_ok_for_hw_watchpoint.
11613 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11614 Use TARGET_DEFAULT_FUNC.
11616 2014-02-19 Tom Tromey <tromey@redhat.com>
11618 * target-delegates.c: Rebuild.
11619 * target.c (update_current_target): Don't inherit or default
11620 to_watchpoint_addr_within_range.
11621 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11622 Use TARGET_DEFAULT_FUNC.
11624 2014-02-19 Tom Tromey <tromey@redhat.com>
11626 * target-delegates.c: Rebuild.
11627 * target.c (update_current_target): Don't inherit or default
11628 to_remove_watchpoint.
11629 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11630 TARGET_DEFAULT_NORETURN.
11632 2014-02-19 Tom Tromey <tromey@redhat.com>
11634 * target-delegates.c: Rebuild.
11635 * target.c (update_current_target): Don't inherit or default
11636 to_insert_watchpoint.
11637 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11638 TARGET_DEFAULT_RETURN.
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11642 * target-delegates.c: Rebuild.
11643 * target.c (update_current_target): Don't inherit or default
11644 to_remove_hw_breakpoint.
11645 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11646 TARGET_DEFAULT_RETURN.
11648 2014-02-19 Tom Tromey <tromey@redhat.com>
11650 * target-delegates.c: Rebuild.
11651 * target.c (update_current_target): Don't inherit or default
11652 to_insert_hw_breakpoint.
11653 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11654 TARGET_DEFAULT_RETURN.
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11658 * target-delegates.c: Rebuild.
11659 * target.c (update_current_target): Don't inherit or default
11660 to_can_use_hw_breakpoint.
11661 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11662 TARGET_DEFAULT_RETURN.
11664 2014-02-19 Tom Tromey <tromey@redhat.com>
11666 * target-delegates.c: Rebuild.
11667 * target.c (update_current_target): Don't inherit or default
11669 * target.h (struct target_ops) <to_files_info>: Use
11670 TARGET_DEFAULT_IGNORE.
11672 2014-02-19 Tom Tromey <tromey@redhat.com>
11674 * target-delegates.c: Rebuild.
11675 * target.c (update_current_target): Don't inherit or default
11677 * target.h (struct target_ops) <to_store>: Use
11678 TARGET_DEFAULT_NORETURN.
11680 2014-02-19 Tom Tromey <tromey@redhat.com>
11682 * target-delegates.c: Rebuild.
11683 * target.c (update_current_target): Don't inherit or default
11685 * target.h (struct target_ops) <to_post_attach>: Use
11686 TARGET_DEFAULT_IGNORE.
11688 2014-02-19 Tom Tromey <tromey@redhat.com>
11690 * target-delegates.c: Rebuild.
11691 * target.c (update_current_target): Don't inherit or default
11693 (default_rcmd): New function.
11694 (do_monitor_command): Unconditionally delegate.
11695 * target.h (struct target_ops) <to_rmcd>: Use
11696 TARGET_DEFAULT_FUNC.
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target-delegates.c: Rebuild.
11701 * target.c (init_dummy_target): Don't initialize to_attach.
11702 (target_attach): Unconditionally delegate.
11703 * target.h (struct target_ops) <to_attach>: Use
11704 TARGET_DEFAULT_FUNC.
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11708 * target-delegates.c: Rebuild.
11709 * target.c (target_detach): Unconditionally delegate.
11710 (init_dummy_target): Don't initialize to_detach.
11711 * target.h (struct target_ops) <to_detach>: Use
11712 TARGET_DEFAULT_IGNORE.
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11716 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11718 (target_augmented_libraries_svr4_read): Add argument.
11719 * target.c (update_current_target): Update.
11720 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11723 2014-02-19 Tom Tromey <tromey@redhat.com>
11725 * target.h (struct target_ops) <to_call_history_range>: Add
11727 * target.c (target_call_history_range): Add argument.
11728 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11730 (record_btrace_call_history_from): Update.
11732 2014-02-19 Tom Tromey <tromey@redhat.com>
11734 * target.h (struct target_ops) <to_call_history_from>: Add
11736 * target.c (target_call_history_from): Add argument.
11737 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11740 2014-02-19 Tom Tromey <tromey@redhat.com>
11742 * target.h (struct target_ops) <to_call_history>: Add argument.
11743 * target.c (target_call_history): Add argument.
11744 * record-btrace.c (record_btrace_call_history): Add 'self'
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11749 * target.h (struct target_ops) <to_insn_history_range>: Add
11751 * target.c (target_insn_history_range): Add argument.
11752 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11754 (record_btrace_insn_history_from): Update.
11756 2014-02-19 Tom Tromey <tromey@redhat.com>
11758 * target.h (struct target_ops) <to_insn_history_from>: Add
11760 * target.c (target_insn_history_from): Add argument.
11761 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11764 2014-02-19 Tom Tromey <tromey@redhat.com>
11766 * target.h (struct target_ops) <to_insn_history>: Add argument.
11767 * target.c (target_insn_history): Add argument.
11768 * record-btrace.c (record_btrace_insn_history): Add 'self'
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11773 * target.h (struct target_ops) <to_goto_record>: Add argument.
11774 * target.c (target_goto_record): Add argument.
11775 * record-full.c (record_full_goto): Add 'self' argument.
11776 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11780 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11781 * target.c (target_goto_record_end): Add argument.
11782 * record-full.c (record_full_goto_end): Add 'self' argument.
11783 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11785 2014-02-19 Tom Tromey <tromey@redhat.com>
11787 * target.h (struct target_ops) <to_goto_record_begin>: Add
11789 * target.c (target_goto_record_begin): Add argument.
11790 * record-full.c (record_full_goto_begin): Add 'self' argument.
11791 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11796 * target.h (struct target_ops) <to_record_is_replaying>: Add
11798 * target.c (target_record_is_replaying): Add argument.
11799 * record-full.c (record_full_is_replaying): Add 'self' argument.
11800 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11802 (record_btrace_xfer_partial, record_btrace_store_registers)
11803 (record_btrace_prepare_to_store, record_btrace_resume)
11804 (record_btrace_wait, record_btrace_decr_pc_after_break)
11805 (record_btrace_find_new_threads, record_btrace_thread_alive):
11808 2014-02-19 Tom Tromey <tromey@redhat.com>
11810 * target.h (struct target_ops) <to_delete_record>: Add argument.
11811 * target.c (target_delete_record): Add argument.
11812 * record-full.c (record_full_delete): Add 'self' argument.
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11816 * target.h (struct target_ops) <to_save_record>: Add argument.
11817 * target.c (target_save_record): Add argument.
11818 * record-full.c (record_full_save): Add 'self' argument.
11819 (record_full_save): Add 'self' argument.
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11823 * target.h (struct target_ops) <to_info_record>: Add argument.
11824 * target.c (target_info_record): Add argument.
11825 * record.c (info_record_command): Add argument.
11826 * record-full.c (record_full_info): Add 'self' argument.
11827 * record-btrace.c (record_btrace_info): Add 'self' argument.
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11832 * target.c (target_stop_recording): Add argument.
11833 * record.c (record_stop): Add argument.
11834 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11839 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11840 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11841 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11843 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11844 (_initialize_amd64_linux_nat): Use it.
11845 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11846 (_initialize_i386_linux_nat): Use it.
11848 2014-02-19 Tom Tromey <tromey@redhat.com>
11850 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11851 * target.c (target_teardown_btrace): Add argument.
11852 * remote.c (remote_teardown_btrace): Add 'self' argument.
11853 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11855 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11860 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11861 * target.c (target_disable_btrace): Add argument.
11862 * remote.c (remote_disable_btrace): Add 'self' argument.
11863 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11865 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11870 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11871 * target.c (target_enable_btrace): Add argument.
11872 * remote.c (remote_enable_btrace): Add 'self' argument.
11873 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11875 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11880 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11881 (target_can_use_agent): Add argument.
11882 * target.c (update_current_target): Update.
11883 * remote.c (remote_can_use_agent): Add 'self' argument.
11884 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11888 * target.h (struct target_ops) <to_use_agent>: Add argument.
11889 (target_use_agent): Add argument.
11890 * target.c (update_current_target): Update.
11891 * remote.c (remote_use_agent): Add 'self' argument.
11892 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11896 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11897 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11898 (target_traceframe_info): Add argument.
11899 * target.c (update_current_target): Update.
11900 * remote.c (remote_traceframe_info): Add 'self' argument.
11901 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11903 2014-02-19 Tom Tromey <tromey@redhat.com>
11905 * target.h (target_static_tracepoint_markers_by_strid): Add
11907 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11909 * target.c (update_current_target): Update.
11910 * remote.c (struct target_ops)
11911 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11912 * linux-nat.c (struct target_ops)
11913 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11917 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11919 (target_static_tracepoint_marker_at): Add argument.
11920 * target.c (update_current_target): Update.
11921 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11926 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11927 (target_set_permissions): Add argument.
11928 * target.c (update_current_target): Update.
11929 * remote.c (remote_set_permissions): Add 'self' argument.
11930 (remote_start_remote): Update.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11935 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11936 (target_get_tib_address): Add argument.
11937 * target.c (update_current_target): Update.
11938 * remote.c (remote_get_tib_address): Add 'self' argument.
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11942 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11943 (target_set_trace_notes): Add argument.
11944 * target.c (update_current_target): Update.
11945 * remote.c (remote_set_trace_notes): Add 'self' argument.
11947 2014-02-19 Tom Tromey <tromey@redhat.com>
11949 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11951 (target_set_trace_buffer_size): Add argument.
11952 * target.c (update_current_target): Update.
11953 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11957 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11959 (target_set_circular_trace_buffer): Add argument.
11960 * target.c (update_current_target): Update.
11961 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11968 (target_set_disconnected_tracing): Add argument.
11969 * target.c (update_current_target): Update.
11970 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * target.h (struct target_ops)
11975 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11976 (target_get_min_fast_tracepoint_insn_len): Add argument.
11977 * target.c (update_current_target): Update.
11978 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11983 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11985 (target_get_raw_trace_data): Add argument.
11986 * target.c (update_current_target): Update.
11987 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11989 2014-02-19 Tom Tromey <tromey@redhat.com>
11991 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11993 (target_upload_trace_state_variables): Add argument.
11994 * target.c (update_current_target): Update.
11995 * remote.c (remote_upload_trace_state_variables): Add 'self'
11997 (remote_start_remote): Update.
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12001 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12003 (target_upload_tracepoints): Add argument.
12004 * target.c (update_current_target): Update.
12005 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12006 (remote_start_remote): Update.
12008 2014-02-19 Tom Tromey <tromey@redhat.com>
12010 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12011 (target_save_trace_data): Add argument.
12012 * target.c (update_current_target): Update.
12013 * remote.c (remote_save_trace_data): Add 'self' argument.
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12017 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12019 * target.h (struct target_ops)
12020 <to_get_trace_state_variable_value>: Add argument.
12021 (target_get_trace_state_variable_value): Add argument.
12022 * target.c (update_current_target): Update.
12023 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12025 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12027 2014-02-19 Tom Tromey <tromey@redhat.com>
12029 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12030 * target.h (struct target_ops) <to_trace_find>: Add argument.
12031 (target_trace_find): Add argument.
12032 * target.c (update_current_target): Update.
12033 * remote.c (remote_trace_find): Add 'self' argument.
12034 * ctf.c (ctf_trace_find): Add 'self' argument.
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12038 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12039 (target_trace_stop): Add argument.
12040 * target.c (update_current_target): Update.
12041 * remote.c (remote_trace_stop): Add 'self' argument.
12043 2014-02-19 Tom Tromey <tromey@redhat.com>
12045 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12046 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12048 (target_get_tracepoint_status): Add argument.
12049 * target.c (update_current_target): Update.
12050 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12055 * target.h (struct target_ops) <to_get_trace_status>: Add
12057 (target_get_trace_status): Add argument.
12058 * target.c (update_current_target): Update.
12059 * remote.c (remote_get_trace_status): Add 'self' argument.
12060 (remote_start_remote, remote_can_download_tracepoint): Update.
12061 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12065 * target.h (struct target_ops) <to_trace_start>: Add argument.
12066 (target_trace_start): Add argument.
12067 * target.c (update_current_target): Update.
12068 * remote.c (remote_trace_start): Add 'self' argument.
12070 2014-02-19 Tom Tromey <tromey@redhat.com>
12072 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12074 (target_trace_set_readonly_regions): Add argument.
12075 * target.c (update_current_target): Update.
12076 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12079 2014-02-19 Tom Tromey <tromey@redhat.com>
12081 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12083 (target_disable_tracepoint): Add argument.
12084 * target.c (update_current_target): Update.
12085 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12087 2014-02-19 Tom Tromey <tromey@redhat.com>
12089 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12091 (target_enable_tracepoint): Add argument.
12092 * target.c (update_current_target): Update.
12093 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12095 2014-02-19 Tom Tromey <tromey@redhat.com>
12097 * target.h (struct target_ops) <to_download_trace_state_variable>:
12099 (target_download_trace_state_variable): Add argument.
12100 * target.c (update_current_target): Update.
12101 * remote.c (remote_download_trace_state_variable): Add 'self'
12104 2014-02-19 Tom Tromey <tromey@redhat.com>
12106 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12108 (target_can_download_tracepoint): Add argument.
12109 * target.c (update_current_target): Update.
12110 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12112 2014-02-19 Tom Tromey <tromey@redhat.com>
12114 * target.h (struct target_ops) <to_download_tracepoint>: Add
12116 (target_download_tracepoint): Add argument.
12117 * target.c (update_current_target): Update.
12118 * remote.c (remote_download_tracepoint): Add 'self' argument.
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target.h (struct target_ops) <to_trace_init>: Add argument.
12123 (target_trace_init): Add argument.
12124 * target.c (update_current_target): Update.
12125 * remote.c (remote_trace_init): Add 'self' argument.
12127 2014-02-19 Tom Tromey <tromey@redhat.com>
12129 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12130 * target.c (target_fileio_readlink): Add argument.
12131 * remote.c (remote_hostio_readlink): Add 'self' argument.
12132 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12134 2014-02-19 Tom Tromey <tromey@redhat.com>
12136 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12137 * target.c (target_fileio_unlink): Add argument.
12138 * remote.c (remote_hostio_unlink): Add 'self' argument.
12139 (remote_file_delete): Update.
12140 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12142 2014-02-19 Tom Tromey <tromey@redhat.com>
12144 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12145 * target.c (target_fileio_close): Add argument.
12146 * remote.c (remote_hostio_close): Add 'self' argument.
12147 (remote_hostio_close_cleanup): Update.
12148 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12150 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12155 * target.c (target_fileio_pread): Add argument.
12156 * remote.c (remote_hostio_pread): Add 'self' argument.
12157 (remote_bfd_iovec_pread, remote_file_get): Update.
12158 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12160 2014-02-19 Tom Tromey <tromey@redhat.com>
12162 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12163 * target.c (target_fileio_pwrite): Add argument.
12164 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12165 (remote_file_put): Update.
12166 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12171 * target.c (target_fileio_open): Add argument.
12172 * remote.c (remote_hostio_open): Add 'self' argument.
12173 (remote_bfd_iovec_open): Add 'self' argument.
12174 (remote_file_put): Add 'self' argument.
12175 (remote_file_get): Add 'self' argument.
12176 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12178 2014-02-19 Tom Tromey <tromey@redhat.com>
12180 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12182 (target_can_run_breakpoint_commands): Add argument.
12183 * target.c (update_current_target): Update.
12184 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12186 (remote_insert_breakpoint): Add 'self' argument.
12187 (remote_insert_hw_breakpoint): Add 'self' argument.
12188 (remote_can_run_breakpoint_commands): Add 'self' argument.
12190 2014-02-19 Tom Tromey <tromey@redhat.com>
12192 * target.h (struct target_ops)
12193 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12194 (target_supports_evaluation_of_breakpoint_conditions): Add
12196 * target.c (update_current_target): Update.
12197 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12199 (remote_insert_breakpoint): Add 'self' argument.
12200 (remote_insert_hw_breakpoint): Add 'self' argument.
12201 (remote_supports_cond_breakpoints): Add 'self' argument.
12203 2014-02-19 Tom Tromey <tromey@redhat.com>
12205 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12207 (target_supports_string_tracing): Add argument.
12208 * target.c (update_current_target): Update.
12209 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12213 * target.h (struct target_ops)
12214 <to_supports_disable_randomization>: Add argument.
12215 * target.c (find_default_supports_disable_randomization): Add
12217 (target_supports_disable_randomization): Add argument.
12218 (find_default_supports_disable_randomization): Add 'self'
12220 * remote.c (extended_remote_supports_disable_randomization): Add
12222 (remote_supports_disable_randomization): Add 'self' argument.
12223 (extended_remote_create_inferior): Update.
12224 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12227 2014-02-19 Tom Tromey <tromey@redhat.com>
12229 * target.h (struct target_ops)
12230 <to_supports_enable_disable_tracepoint>: Add argument.
12231 (target_supports_enable_disable_tracepoint): Add argument.
12232 * target.c (update_current_target): Update.
12233 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12236 2014-02-19 Tom Tromey <tromey@redhat.com>
12238 * target.h (struct target_ops) <to_supports_multi_process>: Add
12240 (target_supports_multi_process): Add argument.
12241 * target.c (update_current_target): Update.
12242 * remote.c (remote_supports_multi_process): Add 'self' argument.
12243 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12245 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12250 * target.h (struct target_ops) <to_execution_direction>: Add
12252 (target_execution_direction): Add argument.
12253 * target.c (default_execution_direction): Add 'self' argument.
12254 * record-full.c (record_full_execution_direction): Add 'self'
12257 2014-02-19 Tom Tromey <tromey@redhat.com>
12259 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12261 (target_can_execute_reverse): Add argument.
12262 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12263 * record-full.c (record_full_can_execute_reverse): Add 'self'
12265 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12268 2014-02-19 Tom Tromey <tromey@redhat.com>
12270 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12271 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12273 (target_get_ada_task_ptid): Add argument.
12274 * target.c (update_current_target): Update.
12275 (default_get_ada_task_ptid): Add 'self' argument.
12276 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12277 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12278 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12280 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12282 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12284 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12286 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12287 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12290 2014-02-19 Tom Tromey <tromey@redhat.com>
12292 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12293 (target_goto_bookmark): Add argument.
12294 * target.c (dummy_goto_bookmark): Add 'self' argument.
12295 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12299 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12300 (target_get_bookmark): Add argument.
12301 * target.c (dummy_get_bookmark): Add 'self' argument.
12302 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12304 2014-02-19 Tom Tromey <tromey@redhat.com>
12306 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12308 (target_make_corefile_notes): Add argument.
12309 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12310 * procfs.c (procfs_make_note_section): Add 'self' argument.
12311 (procfs_make_note_section): Add 'self' argument.
12312 (procfs_make_note_section): Add 'self' argument.
12313 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12315 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12316 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12317 * exec.c (exec_make_note_section): Add 'self' argument.
12318 (exec_make_note_section): Add 'self' argument.
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12322 * target.h (struct target_ops) <to_find_memory_regions>: Add
12324 (target_find_memory_regions): Add argument.
12325 * target.c (dummy_find_memory_regions): Add 'self' argument.
12326 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12327 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12328 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12329 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12330 * exec. (exec_do_find_memory_regions): New global.
12331 (exec_set_find_memory_regions): Rewrite.
12332 (exec_find_memory_regions): New function.
12333 (init_exec_ops): Use exec_find_memory_regions.
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * target.h (struct target_ops) <to_supports_non_stop>: Add
12339 * target.c (find_default_supports_non_stop): Add argument.
12340 (target_supports_non_stop): Add argument.
12341 (find_default_supports_non_stop): Add 'self' argument.
12342 * remote.c (remote_supports_non_stop): Add 'self' argument.
12343 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12345 2014-02-19 Tom Tromey <tromey@redhat.com>
12347 * target.h (struct target_ops) <to_log_command>: Add argument.
12348 (target_log_command): Add argument.
12349 * serial.h (serial_log_command): Add 'self' argument.
12350 * serial.c (serial_log_command): Add 'self' argument.
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12355 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12357 (target_pid_to_exec_file): Add argument.
12358 * target.c (debug_to_pid_to_exec_file): Add argument.
12359 (update_current_target): Update.
12360 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12361 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12362 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12363 (linux_handle_extended_wait): Update.
12364 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12365 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12366 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12367 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12369 2014-02-19 Tom Tromey <tromey@redhat.com>
12371 * target.h (struct target_ops) <to_rcmd>: Add argument.
12372 (target_rcmd): Add argument.
12373 * target.c (debug_to_rcmd): Add argument.
12374 (update_current_target, do_monitor_command): Update.
12375 * remote.c (remote_rcmd): Add 'self' argument.
12376 * monitor.c (monitor_rcmd): Add 'self' argument.
12378 2014-02-19 Tom Tromey <tromey@redhat.com>
12380 * windows-nat.c (windows_stop): Add 'self' argument.
12381 * target.h (struct target_ops) <to_stop>: Add argument.
12382 * target.c (target_stop): Add argument.
12383 (debug_to_stop): Add argument.
12384 (update_current_target): Update.
12385 * remote.c (remote_stop): Add 'self' argument.
12386 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12387 (gdbsim_cntrl_c): Update.
12388 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12389 * procfs.c (procfs_stop): Add 'self' argument.
12390 * nto-procfs.c (procfs_stop): Add 'self' argument.
12391 * monitor.c (monitor_stop): Add 'self' argument.
12392 (monitor_open): Update.
12393 * linux-nat.c (linux_nat_stop): Add argument.
12394 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12395 * gnu-nat.c (gnu_stop): Add 'self' argument.
12396 * darwin-nat.c (darwin_stop): Add 'self' argument.
12398 2014-02-19 Tom Tromey <tromey@redhat.com>
12400 * target.h (struct target_ops) <to_thread_name>: Add argument.
12401 * target.c (target_thread_name): Add argument.
12402 (update_current_target): Update.
12403 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12405 2014-02-19 Tom Tromey <tromey@redhat.com>
12407 * target.h (struct target_ops) <to_extra_thread_info>: Add
12409 (target_extra_thread_info): Add argument.
12410 * target.c (update_current_target): Update.
12411 * remote.c (remote_threads_extra_info): Add 'self' argument.
12412 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12414 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12415 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12416 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12418 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12420 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12422 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12425 2014-02-19 Tom Tromey <tromey@redhat.com>
12427 * target.h (struct target_ops) <to_program_signals>: Add argument.
12428 * target.c (target_program_signals): Add argument.
12429 * remote.c (remote_program_signals): Add 'self' argument.
12431 2014-02-19 Tom Tromey <tromey@redhat.com>
12433 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12434 * target.c (target_pass_signals): Add argument.
12435 * remote.c (remote_pass_signals): Add 'self' argument.
12436 (remote_start_remote): Update.
12437 * procfs.c (procfs_pass_signals): Add 'self' argument.
12438 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12439 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12440 (linux_nat_create_inferior, linux_nat_attach): Update.
12442 2014-02-19 Tom Tromey <tromey@redhat.com>
12444 * windows-nat.c (windows_can_run): Add 'self' argument.
12445 * target.h (struct target_ops) <to_can_run>: Add argument.
12446 (target_can_run): Add argument.
12447 * target.c (debug_to_can_run): Add argument.
12448 (update_current_target): Update.
12449 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12450 * inf-child.c (inf_child_can_run): Add 'self' argument.
12451 * go32-nat.c (go32_can_run): Add 'self' argument.
12453 2014-02-19 Tom Tromey <tromey@redhat.com>
12455 * target.h (struct target_ops) <to_has_exited>: Add argument.
12456 (target_has_exited): Add argument.
12457 * target.c (debug_to_has_exited): Add argument.
12458 (update_current_target): Update.
12460 2014-02-19 Tom Tromey <tromey@redhat.com>
12462 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12464 (target_set_syscall_catchpoint): Add argument.
12465 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12467 * target.c (update_current_target): Update.
12469 2014-02-19 Tom Tromey <tromey@redhat.com>
12471 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12473 (target_remove_exec_catchpoint): Add argument.
12474 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12475 (update_current_target): Update.
12476 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12479 2014-02-19 Tom Tromey <tromey@redhat.com>
12481 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12483 (target_insert_exec_catchpoint): Add argument.
12484 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12485 (update_current_target): Update.
12486 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12489 2014-02-19 Tom Tromey <tromey@redhat.com>
12491 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12493 (target_remove_vfork_catchpoint): Add argument.
12494 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12495 (update_current_target): Update.
12496 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12501 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12503 (target_insert_vfork_catchpoint): Add argument.
12504 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12505 (update_current_target): Update.
12506 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12509 2014-02-19 Tom Tromey <tromey@redhat.com>
12511 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12513 (target_remove_fork_catchpoint): Add argument.
12514 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12515 (update_current_target): Update.
12516 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12521 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12523 (target_insert_fork_catchpoint): Add argument.
12524 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12525 (update_current_target): Update.
12526 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12529 2014-02-19 Tom Tromey <tromey@redhat.com>
12531 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12533 (target_post_startup_inferior): Add argument.
12534 * target.c (debug_to_post_startup_inferior): Add argument.
12535 (update_current_target): Update.
12536 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12538 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12540 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12542 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12544 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12546 (super_post_startup_inferior): Likewise.
12547 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12549 (super_post_startup_inferior): Likewise.
12550 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12551 Add 'self' argument.
12552 (super_post_startup_inferior): Likewise.
12554 2014-02-19 Tom Tromey <tromey@redhat.com>
12556 * target.h (struct target_ops) <to_load>: Add argument.
12557 * target.c (target_load): Add argument.
12558 (debug_to_load): Add argument.
12559 (update_current_target): Update.
12560 * remote.c (remote_load): Add 'self' argument.
12561 * remote-sim.c (gdbsim_load): Add 'self' argument.
12562 * remote-mips.c (mips_load): Add 'self' argument.
12563 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12564 * monitor.c (monitor_load): Add 'self' argument.
12565 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12567 2014-02-19 Tom Tromey <tromey@redhat.com>
12569 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12570 (target_terminal_info): Add argument.
12571 * target.c (debug_to_terminal_info): Add argument.
12572 (default_terminal_info): Likewise.
12573 * inflow.c (child_terminal_info): Add 'self' argument.
12574 * inferior.h (child_terminal_info): Add 'self' argument.
12575 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12577 2014-02-19 Tom Tromey <tromey@redhat.com>
12579 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12581 (target_terminal_save_ours): Add argument.
12582 * target.c (debug_to_terminal_save_ours): Add argument.
12583 (update_current_target): Update.
12584 * inflow.c (terminal_save_ours): Add 'self' argument.
12585 * inferior.h (terminal_save_ours): Add 'self' argument.
12587 2014-02-19 Tom Tromey <tromey@redhat.com>
12589 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12590 (target_terminal_ours): Add argument.
12591 * target.c (debug_to_terminal_ours): Add argument.
12592 (update_current_target): Update.
12593 * remote.c (remote_terminal_ours): Add 'self' argument.
12594 (remote_close): Update.
12595 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12596 * inflow.c (terminal_ours): Add 'self' argument.
12597 * inferior.h (terminal_ours): Add 'self' argument.
12598 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12600 2014-02-19 Pedro Alves <palves@redhat.com>
12601 Tom Tromey <tromey@redhat.com>
12603 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12605 (target_terminal_ours_for_output): Add argument.
12606 * target.c (debug_to_terminal_ours_for_output): Add argument.
12607 (update_current_target): Update.
12608 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12609 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12610 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12612 2014-02-19 Tom Tromey <tromey@redhat.com>
12614 * target.h (struct target_ops) <to_terminal_inferior>: Add
12616 * target.c (target_terminal_inferior): Add argument.
12617 (update_current_target): Update.
12618 * remote.c (remote_terminal_inferior): Add 'self' argument.
12619 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12620 * inflow.c (terminal_inferior): Add 'self' argument.
12621 * inferior.h (terminal_inferior): Add 'self' argument.
12622 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12623 (go32_terminal_inferior): Add 'self' argument.
12625 2014-02-19 Tom Tromey <tromey@redhat.com>
12627 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12628 (target_terminal_init): Add argument.
12629 * target.c (debug_to_terminal_init): Add argument.
12630 (update_current_target): Update.
12631 * inflow.c (terminal_init_inferior): Add 'self' argument.
12632 * inferior.h (terminal_init_inferior): Add 'self' argument.
12633 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12634 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12636 2014-02-19 Tom Tromey <tromey@redhat.com>
12638 * target.h (struct target_ops)
12639 <to_can_accel_watchpoint_condition>: Add argument.
12640 (target_can_accel_watchpoint_condition): Add argument.
12641 * target.c (debug_to_can_accel_watchpoint_condition): Add
12643 (update_current_target): Update.
12644 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12649 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12651 (target_region_ok_for_hw_watchpoint): Add argument.
12652 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12653 (default_region_ok_for_hw_watchpoint): Add argument.
12654 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12655 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12657 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12659 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12661 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12663 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12665 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12667 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12668 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12670 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12671 Add 'self' argument.
12673 2014-02-19 Tom Tromey <tromey@redhat.com>
12675 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12677 (target_insert_watchpoint): Add argument.
12678 * target.c (debug_to_insert_watchpoint): Add argument.
12679 (update_current_target): Update.
12680 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12681 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12682 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12683 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12684 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12685 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12687 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12688 (procfs_insert_hw_watchpoint): Add 'self' argument.
12689 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12691 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12693 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12695 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12696 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12698 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12701 2014-02-19 Tom Tromey <tromey@redhat.com>
12703 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12705 (target_remove_watchpoint): Add argument.
12706 * target.c (debug_to_remove_watchpoint): Add argument.
12707 (update_current_target): Update.
12708 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12709 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12710 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12711 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12712 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12713 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12715 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12716 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12718 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12720 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12722 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12723 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12725 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12728 2014-02-19 Tom Tromey <tromey@redhat.com>
12730 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12732 (target_remove_hw_breakpoint): Add argument.
12733 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12734 (update_current_target): Update.
12735 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12736 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12738 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12739 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12741 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12746 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12748 (target_insert_hw_breakpoint): Add argument.
12749 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12750 (update_current_target): Update.
12751 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12752 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12754 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12755 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12756 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12758 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12761 2014-02-19 Tom Tromey <tromey@redhat.com>
12763 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12765 (target_can_use_hardware_watchpoint): Add argument.
12766 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12767 (update_current_target): Update.
12768 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12770 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12772 * remote.c (remote_check_watch_resources): Add 'self' argument.
12773 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12774 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12776 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12777 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12779 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12781 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12783 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12785 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12787 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12789 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12790 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12792 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12795 2014-02-19 Tom Tromey <tromey@redhat.com>
12797 * target.h (struct target_ops) <to_post_attach>: Add argument.
12798 (target_post_attach): Add argument.
12799 * target.c (debug_to_post_attach): Add argument.
12800 (update_current_target): Update.
12801 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12802 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12803 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12804 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12805 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12807 2014-02-19 Tom Tromey <tromey@redhat.com>
12809 * windows-nat.c (windows_close): Add 'self' argument.
12810 * tracepoint.c (tfile_close): Add 'self' argument.
12811 * target.h (struct target_ops) <to_close>: Add argument.
12812 * target.c (target_close): Add argument.
12813 (update_current_target): Update.
12814 * remote.c (remote_close): Add 'self' argument.
12815 * remote-sim.c (gdbsim_close): Add 'self' argument.
12816 * remote-mips.c (mips_close): Add 'self' argument.
12817 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12818 * record-full.c (record_full_close): Add 'self' argument.
12819 * record-btrace.c (record_btrace_close): Add 'self' argument.
12820 * monitor.h (monitor_close): Add 'self' argument.
12821 * monitor.c (monitor_close): Add 'self' argument.
12822 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12823 * linux-nat.c (linux_nat_close): Add argument.
12824 * go32-nat.c (go32_close): Add 'self' argument.
12825 * exec.c (exec_close_1): Add 'self' argument.
12826 * ctf.c (ctf_close): Add 'self' argument.
12827 * corelow.c (core_close): Add 'self' argument.
12828 (core_close_cleanup): Update.
12829 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12830 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12834 * remote.c (remote_load): New function.
12835 (init_remote_ops): Use it.
12837 2014-02-19 Tom Tromey <tromey@redhat.com>
12839 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12841 * common/linux-btrace.h (linux_supports_btrace): Update.
12842 * remote.c (remote_supports_btrace): Add "self" argument.
12843 * target-delegates.c: Rebuild.
12844 * target.c (target_supports_btrace): Remove.
12845 * target.h (struct target_ops) <to_supports_btrace>: Add
12846 target_ops argument.
12847 (target_supports_btrace): New define.
12849 2014-02-19 Tom Tromey <tromey@redhat.com>
12851 * record-full.c (record_full_beneath_to_resume_ops)
12852 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12853 (record_full_beneath_to_wait)
12854 (record_full_beneath_to_store_registers_ops)
12855 (record_full_beneath_to_store_registers)
12856 (record_full_beneath_to_xfer_partial_ops)
12857 (record_full_beneath_to_xfer_partial)
12858 (record_full_beneath_to_insert_breakpoint_ops)
12859 (record_full_beneath_to_insert_breakpoint)
12860 (record_full_beneath_to_remove_breakpoint_ops)
12861 (record_full_beneath_to_remove_breakpoint)
12862 (record_full_beneath_to_stopped_by_watchpoint)
12863 (record_full_beneath_to_stopped_data_address)
12864 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12865 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12866 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12867 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12868 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12869 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12870 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12871 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12872 (record_full_resume, record_full_wait_1)
12873 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12874 (record_full_store_registers, record_full_xfer_partial)
12875 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12876 (record_full_async, record_full_core_xfer_partial): Use target
12878 * target-delegates.c: Rebuild.
12879 * target.c (current_xfer_partial): Remove.
12880 (update_current_target): Do not INHERIT or de_fault
12881 to_insert_breakpoint, to_remove_breakpoint,
12882 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12883 to_is_async_p, to_async. Do not set to_xfer_partial field.
12884 (default_xfer_partial): Simplify.
12885 (current_xfer_partial): Remove.
12886 (target_wait, target_resume): Simplify.
12887 (find_default_can_async_p, find_default_is_async_p): Update.
12888 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12889 to_xfer_partial, to_stopped_by_watchpoint,
12890 to_stopped_data_address.
12891 (target_store_registers): Simplify.
12892 (forward_target_remove_breakpoint)
12893 (forward_target_insert_breakpoint): Remove.
12894 (target_remove_breakpoint, target_insert_breakpoint)
12895 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12896 * target.h (struct target_ops) <to_resume, to_wait,
12897 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12898 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12899 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12901 (forward_target_remove_breakpoint)
12902 (forward_target_insert_breakpoint): Remove.
12903 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12905 (record_btrace_insert_breakpoint): Delegate directly.
12907 2014-02-19 Tom Tromey <tromey@redhat.com>
12910 * target-delegates.c: New file.
12911 * target.c: Include target-delegates.c.
12912 (init_dummy_target): Call install_dummy_methods.
12913 (complete_target_initialization): Call install_delegators.
12914 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12915 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12916 * make-target-delegates: New file.
12918 2014-02-19 Tom Tromey <tromey@redhat.com>
12920 * record.c (find_record_target): Use find_target_at.
12921 * target.c (find_target_at): New function.
12922 * target.h (find_target_at): Declare.
12924 2014-02-19 Tom Tromey <tromey@redhat.com>
12926 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12927 Add 'ops' argument.
12928 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12930 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12931 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12933 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12935 * linux-nat.c (save_sigtrap): Update.
12936 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12937 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12938 (linux_nat_close): Update.
12939 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12941 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12943 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12944 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12945 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12946 (tmp_to_async): Add 'ops' argument.
12947 (record_full_stopped_by_watchpoint, record_full_async)
12948 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12950 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12951 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12952 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12953 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12954 (remote_is_async_p, remote_async): Add 'ops' argument.
12955 (remote_stopped_data_address): Update.
12956 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12957 * target.c (update_current_target)
12958 (find_default_can_async_p, find_default_is_async_p): Update.
12959 (init_dummy_target): Update.
12960 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12961 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12962 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12963 (target_can_async_p, target_is_async_p, target_async)
12964 (target_stopped_by_watchpoint): Update.
12966 2014-02-19 Yao Qi <yao@codesourcery.com>
12969 * gdbarch.sh: Remove startup_gdbarch.
12970 * gdbarch.c: Regenerated.
12971 * gdbarch.h: Likewise.
12973 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12975 * rl78-tdep.c (rl78_g10_register_name): New function.
12976 (rl78_return_value): Add g10 support.
12977 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12980 2014-02-17 Doug Evans <xdje42@gmail.com>
12982 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12983 (SUBDIR_GUILE_SRCS): Ditto.
12984 (scm-gsmob.o): Ditto.
12986 2014-02-17 Yao Qi <yao@codesourcery.com>
12988 * gnu-nat.c (ILL_RPC): Declare defined function.
12990 2014-02-17 Yao Qi <yao@codesourcery.com>
12992 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12993 mach_msg_type_number_t.
12994 (gnu_write_inferior): Likewise.
12996 2014-02-17 Yao Qi <yao@codesourcery.com>
12998 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13000 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13001 (inf_validate_procs, inf_signal): Likewise.
13002 (S_exception_raise_request): Likewise.
13003 (do_mach_notify_dead_name): Likewise.
13004 (steal_exc_port): Likewise.
13005 (gnu_read_inferior): Change 'copy_count''s type to
13006 mach_msg_type_number_t.
13007 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13010 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13012 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13013 flag. Adjust all users; in particular...
13014 (gnu_wait): ..., don't decrement its value in here...
13015 (gnu_create_inferior): ..., and instead set the flag in here,
13016 around the startup_inferior call, and call that one with
13017 START_INFERIOR_TRAPS_EXPECTED.
13019 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13020 (ILL_RPC): ... new macro.
13021 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13022 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13023 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13024 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13025 functions with ILL_RPC macro.
13026 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13027 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13028 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13029 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13030 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13031 (S_proc_getlogin_reply, S_proc_getsid_reply)
13032 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13033 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13034 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13035 (S_proc_getnports_reply, S_proc_is_important_reply)
13036 (S_proc_get_code_reply): New stub functions, generated with
13039 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13040 collected the type check structures.
13042 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13044 2014-02-14 Doug Evans <dje@google.com>
13046 * target.c (target_write_partial): Fix result type.
13048 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13050 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13051 the proper offsets to access fpregset_t.
13053 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13055 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13056 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13057 * h8300-tdep.c (setmachinelist): Remove global.
13058 * hppa-tdep.c (hppa_sigtramp): Remove global.
13059 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13060 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13061 * ravenscar-thread.c (update_target_observer): Remove global.
13062 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13064 2014-02-12 Tom Tromey <tromey@redhat.com>
13066 * common/rsp-low.c: Update comments.
13067 * common/rsp-low.h: Update comments.
13069 2014-02-12 Tom Tromey <tromey@redhat.com>
13071 * common/rsp-low.c (convert_ascii_to_int): Remove.
13072 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13074 2014-02-12 Tom Tromey <tromey@redhat.com>
13076 * common/rsp-low.h (unhexify): Don't declare.
13077 * common/rsp-low.c (unhexify): Remove.
13079 2014-02-12 Tom Tromey <tromey@redhat.com>
13081 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13082 * common/rsp-low.c (convert_int_to_ascii): Remove.
13084 2014-02-12 Tom Tromey <tromey@redhat.com>
13086 * common/rsp-low.h (hexify): Don't declare.
13087 * common/rsp-low.c (hexify): Remove.
13089 2014-02-12 Tom Tromey <tromey@redhat.com>
13091 * common/rsp-low.c (hexify): Never take strlen of argument.
13093 2014-02-12 Tom Tromey <tromey@redhat.com>
13095 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13096 * remote.c (extended_remote_run, remote_rcmd)
13097 (remote_download_trace_state_variable, remote_save_trace_data)
13098 (remote_set_trace_notes): Update.
13099 * tracepoint.c (encode_source_string, tfile_write_status)
13100 (tfile_write_uploaded_tsv): Update.
13102 2014-02-12 Tom Tromey <tromey@redhat.com>
13104 * tracepoint.c: Include rsp-low.h.
13105 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13106 * remote.c: Include rsp-low.h.
13107 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13108 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13109 (remote_unescape_input): Move to common/rsp-low.c.
13110 * common/rsp-low.h: New file.
13111 * common/rsp-low.c: New file.
13112 * Makefile.in (SFILES): Add common/rsp-low.c.
13113 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13114 (COMMON_OBS): Add rsp-low.o.
13115 (rsp-low.o): New target.
13117 2014-02-12 Tom Tromey <tromey@redhat.com>
13119 * utils.h: Include print-utils.h.
13120 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13121 (int_string, core_addr_to_string, core_addr_to_string_nz)
13122 (hex_string, hex_string_custom): Don't declare.
13123 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13124 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13125 (hex_string_custom, int_string, core_addr_to_string)
13126 (core_addr_to_string_nz, host_address_to_string): Move to
13127 common/print-utils.c.
13128 * common/print-utils.h: New file.
13129 * common/print-utils.c: New file
13130 * Makefile.in (SFILES): Add common/print-utils.c.
13131 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13132 (COMMON_OBS): Add print-utils.o.
13133 (print-utils.o): New target.
13135 2014-02-12 Tom Tromey <tromey@redhat.com>
13137 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13139 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13141 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13143 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13145 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13146 if a PT_IO ptrace request returns sucessfully but indicates that 0
13147 bytes were transferred.
13149 2014-02-12 Pedro Alves <palves@redhat.com>
13150 Kevin Buettner <kevinb@redhat.com>
13152 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13153 TYPE_INSTANCE_FLAG_CODE_SPACE.
13155 2014-02-12 Pedro Alves <palves@redhat.com>
13157 * h8300-tdep.c (pseudo_from_raw_register)
13158 (raw_from_pseudo_register): New functions.
13159 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13162 2014-02-12 Pedro Alves <palves@redhat.com>
13164 * h8300-tdep.c (h8300_register_sim_regno): New function.
13165 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13166 gdbarch_register_sim_regno hook.
13168 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13170 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13172 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13174 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13176 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13178 * obsd-tdep.h (obsd_init_abi): New prototype.
13179 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13180 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13181 (obsd_init_abi): New functions.
13182 * i386obsd-tdep.c: Include "obsd-tdep.h".
13183 (i386obsd_init_abi): Call obsd_init_abi.
13184 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13185 (amd64obsd_init_abi): Call obsd_init_abi.
13186 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13187 obsd-tdep.c to gdb_target_obs.
13189 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13191 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13192 double float arguments to 16-byte in the argument slots.
13194 2014-02-11 Doug Evans <xdje42@gmail.com>
13196 * configure.ac: Don't crash if pkg-config is not found and guile
13197 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13199 * configure: Regenerate.
13201 2014-02-11 Yao Qi <yao@codesourcery.com>
13203 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13204 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13205 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13206 * gnu-nat.c (gnu_xfer_memory): Likewise.
13207 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13208 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13209 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13210 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13212 2014-02-11 Yao Qi <yao@codesourcery.com>
13214 * target.h (enum target_xfer_error): Rename to ...
13215 (enum target_xfer_status): ... it. New. All users updated.
13216 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13218 (TARGET_XFER_STATUS_ERROR_P): New macro.
13219 (target_xfer_error_to_string): Remove declaration.
13220 (target_xfer_status_to_string): Declare.
13221 (target_xfer_partial_ftype): Adjust it.
13222 (struct target_ops) <to_xfer_partial>: Return
13223 target_xfer_status. Add argument xfered_len. Update
13225 * target.c (target_xfer_error_to_string): Rename to ...
13226 (target_xfer_status_to_string): ... it. New. All callers
13228 (target_read_live_memory): Likewise. Call target_xfer_partial
13229 instead of target_read.
13230 (memory_xfer_live_readonly_partial): Return
13231 target_xfer_status. Add argument xfered_len.
13232 (raw_memory_xfer_partial): Likewise.
13233 (memory_xfer_partial_1): Likewise.
13234 (memory_xfer_partial): Likewise.
13235 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13236 properly. Update debug message.
13237 (default_xfer_partial, current_xfer_partial): Likewise.
13238 (target_write_partial): Likewise.
13239 (target_read_partial): Likewise. All callers updated.
13240 (read_whatever_is_readable): Likewise.
13241 (target_write_with_progress): Likewise.
13242 (target_read_alloc_1): Likewise.
13244 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13245 * auxv.c (procfs_xfer_auxv): Likewise.
13246 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13247 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13248 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13249 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13250 * corefile.c (read_memory): Adjust.
13251 * corelow.c (core_xfer_partial): Likewise.
13252 * ctf.c (ctf_xfer_partial): Likewise.
13253 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13255 (darwin_xfer_partial): Likewise.
13256 * exec.c (section_table_xfer_memory_partial): Likewise. All
13258 (exec_xfer_partial): Likewise.
13259 * exec.h (section_table_xfer_memory_partial): Update
13261 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13263 (gnu_xfer_partial): Likewise.
13264 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13265 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13266 (ia64_hpux_xfer_solib_got): Likewise.
13267 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13268 type of 'partial_len' to ULONGEST.
13269 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13270 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13271 (linux_nat_xfer_partial): Likewise.
13272 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13273 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13274 * monitor.c (monitor_xfer_memory): Likewise.
13275 (monitor_xfer_partial): Likewise.
13276 * procfs.c (procfs_xfer_partial): Likewise.
13277 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13278 * record-full.c (record_full_xfer_partial): Likewise.
13279 (record_full_core_xfer_partial): Likewise.
13280 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13281 (gdbsim_xfer_partial): Likewise.
13282 * remote.c (remote_write_bytes_aux): Likewise. All callers
13284 (remote_write_bytes, remote_read_bytes): Likewise. All
13286 (remote_flash_erase): Likewise. All callers updated.
13287 (remote_write_qxfer): Likewise. All callers updated.
13288 (remote_read_qxfer): Likewise. All callers updated.
13289 (remote_xfer_partial): Likewise.
13290 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13291 (rs6000_xfer_shared_libraries): Likewise.
13292 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13293 (sol_thread_xfer_partial): Likewise.
13294 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13295 (sparc_xfer_partial): Likewise.
13296 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13298 (spu_xfer_partial): Likewise.
13299 * spu-multiarch.c (spu_xfer_partial): Likewise.
13300 * tracepoint.c (tfile_xfer_partial): Likewise.
13301 * windows-nat.c (windows_xfer_memory): Likewise.
13302 (windows_xfer_shared_libraries): Likewise.
13303 (windows_xfer_partial): Likewise.
13304 * valprint.c: Replace 'target_xfer_error' with
13305 'target_xfer_status' in comments.
13307 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13309 Checked in by Joel Brobecker <brobecker@adacore.com>.
13310 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13312 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13314 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13315 function parameters.
13317 2014-02-10 Will Newton <will.newton@linaro.org>
13319 * elfread.c (elf_rel_plt_read): Look for a .got section if
13320 looking up .got.plt fails.
13321 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13322 on address passed to elf_gnu_ifunc_record_cache.
13323 (elf_gnu_ifunc_resolve_addr): Likewise.
13324 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13326 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13328 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13329 (X_RETTURN): New macro.
13330 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13332 * sparc64-tdep.c (sparc64_init_abi): Hook
13333 sparc_in_function_epilogue_p.
13335 2014-02-10 Gary Benson <gbenson@redhat.com>
13337 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13338 Rename name_matcher to symbol_matcher.
13340 2014-02-10 Gary Benson <gbenson@redhat.com>
13342 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13343 Use expand_symtabs_file_matcher_ftype and
13344 expand_symtabs_symbol_matcher_ftype.
13346 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13348 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13349 (struct ada_symbol_cache): New.
13350 (ada_free_symbol_cache): Forward declare.
13351 (struct ada_pspace_data): New.
13352 (ada_pspace_data_handle): New static global.
13353 (get_ada_pspace_data, ada_pspace_data_cleanup)
13354 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13355 (cache_space, cache): Delete, now folded inside struct
13357 (ada_get_symbol_cache): New function.
13358 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13360 (_initialize_ada_language): Remove initialization of cache_space.
13361 Move call to observer_attach_inferior_exit up, grouping it
13362 with the other observer registrations inside this function.
13363 Rename command to be more general. Add call to
13364 register_program_space_data_with_cleanup.
13366 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13368 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13369 ada_new_objfile_observer.
13370 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13371 (_initialize_tasks): Update uses of ada_new_objfile_observer
13372 and ada_tasks_normal_stop_observer.
13374 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13376 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13377 returned by the 'Length attribute to integer.
13379 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13381 * ada-lang.c (_initialize_ada_language): Initialize
13382 cache_space obstack.
13384 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13386 * ada-lang.c (HASH_SIZE): New macro.
13387 (struct cache_entry): New type.
13388 (cache_space, cache): New static globals.
13389 (ada_clear_symbol_cache, find_entry): New functions.
13390 (lookup_cached_symbol, cache_symbol): Implement.
13391 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13392 (_initialize_ada_language): Attach ada_new_objfile_observer
13393 and ada_free_objfile_observer.
13395 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13397 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13398 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13399 struct block * parameter.
13400 (ada_lookup_symbol_list_worker): Constify local variable "block".
13401 Remove cast which is no longer necessary.
13403 2014-02-10 Doug Evans <xdje42@gmail.com>
13405 Add Guile as an extension language.
13406 * NEWS: Mention Guile scripting.
13407 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13408 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13409 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13410 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13411 (CLIBS): Add GUILE_LIBS.
13412 (install-guile): New rule.
13413 (guile.o): New rule.
13414 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13415 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13416 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13417 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13418 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13419 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13420 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13421 * configure.ac: New option --with-guile.
13422 * configure: Regenerate.
13423 * config.in: Regenerate.
13424 * auto-load.c: Remove #include "python/python.h". Add #include
13425 "gdb/section-scripts.h".
13426 (source_section_scripts): Handle Guile scripts.
13427 (_initialize_auto_load): Add name of Guile objfile script to
13428 scripts-directory help text.
13429 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13430 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13431 (struct breakpoint): New member scm_bp_object.
13432 * defs.h (enum command_control_type): New value guile_control.
13433 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13435 (show_user): Update comment.
13436 (_initialize_cli_cmds): Update help text for "show user". Update help
13437 text for max-user-call-depth.
13438 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13440 (multi_line_command_p): Add guile_control.
13441 (print_command_lines): Handle guile_control.
13442 (execute_control_command, recurse_read_control_structure): Ditto.
13443 (process_next_line): Recognize "guile" commands.
13444 * disasm.c (gdb_disassemble_info): Make non-static.
13445 * disasm.h: #include "dis-asm.h".
13446 (struct gdbarch): Add forward decl.
13447 (gdb_disassemble_info): Declare.
13448 * extension.c: #include "guile/guile.h".
13449 (extension_languages): Add guile.
13450 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13451 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13452 * gdbtypes.c (get_unsigned_type_max): New function.
13453 (get_signed_type_minmax): New function.
13454 * gdbtypes.h (get_unsigned_type_max): Declare.
13455 (get_signed_type_minmax): Declare.
13456 * guile/README: New file.
13457 * guile/guile-internal.h: New file.
13458 * guile/guile.c: New file.
13459 * guile/guile.h: New file.
13460 * guile/scm-arch.c: New file.
13461 * guile/scm-auto-load.c: New file.
13462 * guile/scm-block.c: New file.
13463 * guile/scm-breakpoint.c: New file.
13464 * guile/scm-disasm.c: New file.
13465 * guile/scm-exception.c: New file.
13466 * guile/scm-frame.c: New file.
13467 * guile/scm-gsmob.c: New file.
13468 * guile/scm-iterator.c: New file.
13469 * guile/scm-lazy-string.c: New file.
13470 * guile/scm-math.c: New file.
13471 * guile/scm-objfile.c: New file.
13472 * guile/scm-ports.c: New file.
13473 * guile/scm-pretty-print.c: New file.
13474 * guile/scm-safe-call.c: New file.
13475 * guile/scm-string.c: New file.
13476 * guile/scm-symbol.c: New file.
13477 * guile/scm-symtab.c: New file.
13478 * guile/scm-type.c: New file.
13479 * guile/scm-utils.c: New file.
13480 * guile/scm-value.c: New file.
13481 * guile/lib/gdb.scm: New file.
13482 * guile/lib/gdb/boot.scm: New file.
13483 * guile/lib/gdb/experimental.scm: New file.
13484 * guile/lib/gdb/init.scm: New file.
13485 * guile/lib/gdb/iterator.scm: New file.
13486 * guile/lib/gdb/printing.scm: New file.
13487 * guile/lib/gdb/types.scm: New file.
13488 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13489 (VPATH): Add $(GUILE_SRCDIR).
13490 (GUILE_DIR): New variable.
13491 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13492 (all): Add stamp-guile dependency.
13493 (stamp-guile): New rule.
13494 (clean-guile, install-guile, uninstall-guile): New rules.
13495 (install-only): Add install-guile dependency.
13496 (uninstall): Add uninstall-guile dependency.
13497 (clean): Add clean-guile dependency.
13499 2014-02-09 Doug Evans <xdje42@gmail.com>
13501 Revert this patch (which I approved, mea culpa).
13503 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13505 * Makefile.in (all-lib): Remove.
13506 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13508 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13510 Fix Python stack corruption.
13511 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
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-07 Doug Evans <dje@google.com>
13521 * extension-priv.h (extension_language_script_ops): Add comment.
13522 (extension_language_ops): Add comment.
13523 (active_ext_lang_state): Fix typo in comment.
13525 2014-02-07 Pedro Alves <palves@redhat.com>
13527 PR breakpoints/16292
13528 * infrun.c (handle_signal_stop) <signal arrives while stepping
13529 over a breakpoint>: Switch back to the stepping thread.
13531 2014-02-07 Yao Qi <yao@codesourcery.com>
13533 * target.c (target_xfer_partial): Return zero if LEN is zero.
13535 2014-02-07 Yao Qi <yao@codesourcery.com>
13537 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13538 (ld_so_xfer_auxv): Likewise.
13539 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13540 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13541 * corelow.c (core_xfer_partial): Likewise.
13542 * ctf.c (ctf_xfer_partial): Likewise.
13543 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13544 (darwin_xfer_partial): Likewise.
13545 * exec.c (exec_xfer_partial): Likewise.
13546 * gnu-nat.c (gnu_xfer_partial): Likewise.
13547 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13548 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13549 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13550 * linux-nat.c (linux_xfer_siginfo): Likewise.
13551 (linux_proc_xfer_spu): Likewise.
13552 * procfs.c (procfs_xfer_partial): Likewise.
13553 * record-full.c (record_full_xfer_partial): Likewise.
13554 (record_full_core_xfer_partial): Likewise.
13555 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13556 * remote.c (remote_write_qxfer): Likewise.
13557 (remote_write_qxfer, remote_read_qxfer): Likewise.
13558 (remote_xfer_partial): Likewise.
13559 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13560 (rs6000_xfer_shared_libraries): Likewise.
13561 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13562 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13563 (spu_xfer_partial): Likewise.
13564 * target.c (memory_xfer_partial_1): Likewise.
13565 * tracepoint.c (tfile_xfer_partial): Likewise.
13566 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13567 (windows_xfer_partial): Likewise.
13569 2014-02-07 Yao Qi <yao@codesourcery.com>
13571 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13573 (core_xfer_shared_libraries_aix): Likewise.
13574 * gdbarch.c, gdbarch.h: Regenerated.
13575 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13576 ULONGEST. Change 'len_avail' type to ULONGEST.
13577 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13578 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13580 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13582 2014-02-07 Yao Qi <yao@codesourcery.com>
13584 * corefile.c (memory_error): Get 'exception' from ERR and pass
13585 'exception' to throw_error.
13587 2014-02-06 Doug Evans <xdje42@gmail.com>
13589 * configure.ac (libpython checking): Remove all but python.o from
13590 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13591 * configure: Regenerate.
13593 * Makefile.in (SFILES): Add extension.c.
13594 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13595 (COMMON_OBS): Add extension.o.
13596 * extension.h: New file.
13597 * extension-priv.h: New file.
13598 * extension.c: New file.
13600 * python/python-internal.h: #include "extension.h".
13601 (gdbpy_auto_load_enabled): Declare.
13602 (gdbpy_apply_val_pretty_printer): Declare.
13603 (gdbpy_apply_frame_filter): Declare.
13604 (gdbpy_preserve_values): Declare.
13605 (gdbpy_breakpoint_cond_says_stop): Declare.
13606 (gdbpy_breakpoint_has_cond): Declare.
13607 (void source_python_script_for_objfile): Delete.
13608 * python/python.c: #include "extension-priv.h".
13609 Delete inclusion of "observer.h".
13610 (extension_language_python): Moved here and renamed from
13611 script_language_python in py-auto-load.c.
13612 Redefined to be of type extension_language_defn.
13613 (python_extension_script_ops): New global.
13614 (python_extension_ops): New global.
13615 (struct python_env): New member previous_active.
13616 (restore_python_env): Call restore_active_ext_lang.
13617 (ensure_python_env): Call set_active_ext_lang.
13618 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13620 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13622 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13624 (gdbpy_eval_from_control_command): Renamed from
13625 eval_python_from_control_command, made static. New arg extlang.
13626 (gdbpy_source_script) Renamed from source_python_script, made static.
13628 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13629 result to int. New arg extlang.
13630 (gdbpy_source_objfile_script): Renamed from
13631 source_python_script_for_objfile, made static. New arg extlang.
13632 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13633 static. New args extlang, extlang_printers. Change result type to
13635 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13636 static. New arg extlang. Rename arg printers to extlang_printers
13637 and change type to ext_lang_type_printers *.
13638 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13639 static. Replace argument arg with extlang, extlang_printers.
13640 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13641 (!HAVE_PYTHON, source_python_script): Delete.
13642 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13643 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13644 (!HAVE_PYTHON, start_type_printers): Delete.
13645 (!HAVE_PYTHON, apply_type_printers): Delete.
13646 (!HAVE_PYTHON, free_type_printers): Delete.
13647 (_initialize_python): Delete call to observer_attach_before_prompt.
13648 (finalize_python): Set/restore active extension language.
13649 (gdbpy_finish_initialization) Renamed from
13650 finish_python_initialization, made static. New arg extlang.
13651 (gdbpy_initialized): New function.
13652 * python/python.h: #include "extension.h". Delete #include
13653 "value.h", "mi/mi-cmds.h".
13654 (extension_language_python): Declare.
13655 (GDBPY_AUTO_FILE_NAME): Delete.
13656 (enum py_bt_status): Moved to extension.h and renamed to
13657 ext_lang_bt_status.
13658 (enum frame_filter_flags): Moved to extension.h.
13659 (enum py_frame_args): Moved to extension.h and renamed to
13660 ext_lang_frame_args.
13661 (finish_python_initialization): Delete.
13662 (eval_python_from_control_command): Delete.
13663 (source_python_script): Delete.
13664 (apply_val_pretty_printer): Delete.
13665 (apply_frame_filter): Delete.
13666 (preserve_python_values): Delete.
13667 (gdbpy_script_language_defn): Delete.
13668 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13669 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13671 * auto-load.c: #include "extension.h".
13672 (GDB_AUTO_FILE_NAME): Delete.
13673 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13674 (script_language_gdb): Delete, moved to extension.c and renamed to
13675 extension_language_gdb.
13676 (source_gdb_script_for_objfile): Delete.
13677 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13678 (loaded_script): Change type of language member to
13679 struct extension_language_defn *.
13680 (init_loaded_scripts_info): Initialize
13681 unsupported_script_warning_printed.
13682 (maybe_add_script): Make static. Change type of language arg to
13683 struct extension_language_defn *.
13684 (clear_section_scripts): Reset unsupported_script_warning_printed.
13685 (auto_load_objfile_script_1): Rewrite to use extension language API.
13686 (auto_load_objfile_script): Make public. Remove support-compiled-in
13687 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13688 (source_section_scripts): Rewrite to use extension language API.
13689 (load_auto_scripts_for_objfile): Rewrite to use
13690 auto_load_scripts_for_objfile.
13691 (collect_matching_scripts_data): Change type of language member to
13692 struct extension_language_defn *.
13693 (auto_load_info_scripts): Change type of language arg to
13694 struct extension_language_defn *.
13695 (unsupported_script_warning_print): New function.
13696 (script_not_found_warning_print): Make static.
13697 (_initialize_auto_load): Rewrite construction of scripts-directory
13699 * auto-load.h (struct objfile): Add forward decl.
13700 (struct script_language): Delete.
13701 (struct auto_load_pspace_info): Add forward decl.
13702 (struct extension_language_defn): Add forward decl.
13703 (maybe_add_script): Delete.
13704 (auto_load_objfile_script): Declare.
13705 (script_not_found_warning_print): Delete.
13706 (auto_load_info_scripts): Update prototype.
13707 (auto_load_gdb_scripts_enabled): Declare.
13708 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13709 auto_load_python_scripts_enabled and made public.
13710 (script_language_python): Delete, moved to python.c.
13711 (gdbpy_script_language_defn): Delete.
13712 (info_auto_load_python_scripts): Update to use
13713 extension_language_python.
13715 * breakpoint.c (condition_command): Replace call to
13716 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13717 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13718 with call to breakpoint_ext_lang_cond_says_stop.
13719 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13720 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13721 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13722 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13724 (local_setattro): Print name of extension language with existing
13727 * valprint.c (val_print, value_print): Update to call
13728 apply_ext_lang_val_pretty_printer.
13729 * cp-valprint.c (cp_print_value): Update call to
13730 apply_ext_lang_val_pretty_printer.
13731 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13732 (gdbpy_apply_val_pretty_printer): Renamed from
13733 apply_val_pretty_printer. New arg extlang.
13734 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13736 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13737 extension language API.
13738 * cli/cli-script.c (execute_control_command): Update to call
13739 eval_ext_lang_from_control_command.
13741 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13742 enum ext_lang_bt_status values. Update call to
13743 apply_ext_lang_frame_filter.
13744 (mi_cmd_stack_list_locals): Ditto.
13745 (mi_cmd_stack_list_args): Ditto.
13746 (mi_cmd_stack_list_variables): Ditto.
13747 * mi/mi-main.c: Delete #include "python/python-internal.h".
13748 Add #include "extension.h".
13749 (mi_cmd_list_features): Replace reference to python internal variable
13750 gdb_python_initialized with call to ext_lang_initialized_p.
13752 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13753 Update to use enum ext_lang_frame_args. Update to call
13754 apply_ext_lang_frame_filter.
13755 * python/py-framefilter.c (extract_sym): Update to use enum
13756 ext_lang_bt_status.
13757 (extract_value, py_print_type, py_print_value): Ditto.
13758 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13759 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13760 (py_print_frame): Ditto.
13761 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13762 New arg extlang. Update to use enum ext_lang_bt_status.
13764 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13765 finish_python_initialization. Replace with call to
13766 finish_ext_lang_initialization.
13768 * typeprint.c (do_free_global_table): Update to call
13769 free_ext_lang_type_printers.
13770 (create_global_typedef_table): Update to call
13771 start_ext_lang_type_printers.
13772 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13773 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13774 (type_print_options): Change type of global_printers from "void *"
13775 to "struct ext_lang_type_printers *".
13777 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13778 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13779 (gdbpy_preserve_values): Renamed from preserve_python_values.
13781 (!HAVE_PYTHON, preserve_python_values): Delete.
13783 * utils.c (quit_flag): Delete, moved to extension.c.
13784 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13787 * eval.c: Delete #include "python/python.h".
13788 * main.c: Delete #include "python/python.h".
13790 * defs.h: Update comment.
13792 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13796 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13798 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13801 2014-02-05 Yao Qi <yao@codesourcery.com>
13803 * remote.c (remote_pass_signals): Remove local 'buf' and use
13805 (remote_program_signals): Likewise.
13807 2014-02-05 Yao Qi <yao@codesourcery.com>
13809 * ctf.c: Include "inferior.h" and "gdbthread.h".
13810 (CTF_PID): A new macro.
13811 (ctf_open): Call inferior_appeared and add_thread_silent.
13812 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13813 (ctf_thread_alive): New function.
13814 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13816 2014-02-05 Yao Qi <yao@codesourcery.com>
13820 2013-05-24 Yao Qi <yao@codesourcery.com>
13822 * tracepoint.c (TFILE_PID): Remove.
13823 (tfile_open): Don't add thread and inferior.
13824 (tfile_close): Don't set 'inferior_ptid'. Don't call
13825 exit_inferior_silent.
13826 (tfile_thread_alive): Remove.
13827 (init_tfile_ops): Don't set field 'to_thread_alive' of
13830 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13832 * remote.c (remote_start_remote): Call remote_check_symbols even
13833 if only symbol-file (not file) has been given.
13835 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13837 * gdbarch.sh (skip_entrypoint): New callback.
13838 * gdbarch.c, gdbarch.h: Regenerate.
13839 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13840 * infrun.c (fill_in_stop_func): Likewise.
13841 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13842 (ppc_elfv2_elf_make_msymbol_special): New function.
13843 (ppc_elfv2_skip_entrypoint): Likewise.
13844 (ppc_linux_init_abi): Install them for ELFv2.
13846 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13848 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13849 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13850 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13851 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13852 structures returned in GPRs.
13854 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13856 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13857 offset to the stack parameter list for the ELFv2 ABI.
13859 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13861 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13862 set_gdbarch_convert_from_func_ptr_addr and
13863 set_gdbarch_elf_make_msymbol_special for ELFv1.
13864 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13865 function descriptors on ELFv1.
13866 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13867 set up r12 at function entry.
13869 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13871 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13872 (struct gdbarch_tdep): New member elf_abi.
13874 * rs6000-tdep.c: Include "elf/ppc64.h".
13875 (rs6000_gdbarch_init): Detect ELF ABI version.
13877 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13879 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13880 within a register pair holding a DFP 128-bit value on little-endian.
13881 (ppc64_sysv_abi_return_value_base): Likewise.
13882 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13883 (dfp_pseudo_register_write): Likewise.
13885 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13887 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13888 offset on little-endian when passing _Decimal32.
13889 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13891 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13893 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13894 of the overlapped FP register within the VSX register on little-
13896 (efpr_pseudo_register_write): Likewise.
13898 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13900 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13901 offset on little-endian when passing small structures.
13903 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13905 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13906 (struct ppc64_sysv_argpos): New data structure.
13907 (ppc64_sysv_abi_push_float): Remove.
13908 (ppc64_sysv_abi_push_val): New function.
13909 (ppc64_sysv_abi_push_integer): Likewise.
13910 (ppc64_sysv_abi_push_freg): Likewise.
13911 (ppc64_sysv_abi_push_vreg): Likewise.
13912 (ppc64_sysv_abi_push_param): Likewise.
13913 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13914 (ppc64_sysv_abi_return_value_base): New function.
13915 (ppc64_sysv_abi_return_value): Refactor to use it.
13917 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13919 * NEWS: Document new target powerpc64le-*-linux*.
13921 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13923 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13924 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13926 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13927 register set used in ELF core dumps. Add floating-point register set.
13929 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13931 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13932 dwarf2_to_gdb[] table using symbolic constants. Adjust
13933 penultimate entry from number representing the PC register
13934 to symbolic constant representing the MDR register. Add
13935 constant for the PC register to the end of the table.
13937 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13939 * bsd-kvm.c: Include <sys/param.h>
13941 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13943 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13945 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13947 * ada-lang.h (clear_ada_sym_cache): Delete.
13949 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13951 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13953 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13955 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13956 the sigreturn register save area only if the syscall is
13959 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13961 * valops.c (value_slice): Minor reformatting.
13963 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13965 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13967 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13969 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13970 New static globals.
13971 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13972 (ada_ignore_descriptive_types_p): New static global.
13973 (find_parallel_type_by_descriptive_type): Return immediately
13974 if ada_ignore_descriptive_types_p is set.
13975 (_initialize_ada_language): Register new commands "maintenance
13976 set ada", "maintenance show ada", "maintenance set ada
13977 ignore-descriptive-types" and "maintenance show ada
13978 ignore-descriptive-types".
13979 * NEWS: Add entry for new "maint ada set/show
13980 ignore-descriptive-types" commands.
13982 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13984 * record-btrace.c (record_btrace_close): Call btrace_teardown
13987 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13989 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13992 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13994 * ada-typeprint (type_is_full_subrange_of_target_type):
13996 (print_range): Add parameter bounds_prefered_p. If not set,
13997 try printing range types using the name of their base type.
13998 (print_range_type): Add parameter bounds_prefered_p.
13999 Use it in call to print_range.
14000 (print_array_type, ada_print_type): Update calls to print_range
14001 and print_range_type.
14003 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14005 * ada-typeprint.c (print_array_type, print_choices, print_range)
14006 (print_range_bound, print_dynamic_range_bound, print_range_type):
14007 Remove declaration.
14009 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14011 * ada-typeprint.c (print_range): Add missing empty line
14012 after local declaration.
14014 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14016 * ada-valprint.c (print_optional_low_bound): Get index_type's
14017 target type for as long as it is a TYPE_CODE_RANGE.
14019 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14021 * procfs.c (procfs_make_note_section): Remove assertion and
14022 associated comment.
14024 2014-01-24 Yao Qi <yao@codesourcery.com>
14026 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14027 * corelow.c (get_core_siginfo): Likewise.
14029 2014-01-24 Yao Qi <yao@codesourcery.com>
14031 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14032 ULONGEST. Don't check 'len' is negative.
14033 (remote_write_bytes): Change type of 'len' to ULONGEST.
14035 2014-01-23 Tom Tromey <tromey@redhat.com>
14038 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14039 Handle exception from frame.block.
14040 (FrameVars.fetch_frame_locals): Likewise.
14042 2014-01-23 Tom Tromey <tromey@redhat.com>
14045 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14046 on a NULL pointer. Move "goto error" to correct place.
14048 2014-01-23 Tom Tromey <tromey@redhat.com>
14051 * python/py-framefilter.c (apply_frame_filter): Call
14052 ensure_python_env after computing gdbarch.
14054 2014-01-23 Yao Qi <yao@codesourcery.com>
14056 * target.c (raw_memory_xfer_partial): Change argument type
14057 from void * to gdb_byte *.
14058 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14060 2014-01-22 Doug Evans <dje@google.com>
14062 New gdbserver option --debug-format=timestamp.
14063 * NEWS: Mention it.
14065 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14067 * syscalls/s390x-linux.xml: New file.
14068 * syscalls/s390-linux.xml: New file.
14069 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14070 (XML_SYSCALL_FILENAME_S390X): Likewise.
14071 (op_svc): New enum value for SVC opcode.
14072 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14073 (s390_linux_get_syscall_number): New function.
14074 (s390_gdbarch_init): Register '*get_syscall_number' and the
14075 syscall xml file name.
14076 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14077 "s390-linux.xml" and "s390x-linux.xml".
14078 * NEWS: Announce new feature.
14080 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14082 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14084 2014-01-22 Pedro Alves <palves@redhat.com>
14086 * xtensa-config.c: Include defs.h.
14088 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14090 * common/common-utils.h: Add "ARI:" comment beside __func__
14093 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14095 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14096 documentation a bit.
14098 2014-01-21 Roland McGrath <mcgrathr@google.com>
14100 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14101 * configure: Regenerate.
14102 * aclocal.m4: Regenerate.
14103 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14104 New substituted variables.
14105 (install-strip): New target.
14106 (INSTALL_SCRIPT): New substituted variable.
14107 (FLAGS_TO_PASS): Add it.
14108 (install-only): Use $(INSTALL_SCRIPT) rather than
14109 $(INSTALL_PROGRAM) for gcore.
14111 2014-01-20 Tom Tromey <tromey@redhat.com>
14113 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14116 2014-01-20 Tom Tromey <tromey@redhat.com>
14118 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14119 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14120 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14121 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14122 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14123 (struct cmd_list_element) <flags>: Remove.
14124 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14125 doc_allocated>: New fields.
14126 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14128 * maint.c (maintenance_do_deprecate): Update.
14129 * top.c (execute_command): Update.
14131 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14133 * xtensa-linux-nat.c: Include asm/ptrace.h.
14135 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14137 * Makefile.in (SFILES): Add d-support.c.
14138 (COMMON_OBS): Add d-support.o.
14139 * d-lang.h (d_parse_symbol): Add comment, now defined in
14141 * d-lang.c (parse_call_convention)
14142 (parse_attributes, parse_function_types)
14143 (parse_function_args, parse_type, parse_identifier)
14144 (call_convention_p, d_parse_symbol): Move functions to ...
14145 * d-support.c: ... New file.
14147 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14149 * d-lang.h (d_parse_symbol): Add declaration.
14150 * d-lang.c (extract_identifiers)
14151 (extract_type_info): Remove functions.
14152 (parse_call_convention, parse_attributes)
14153 (parse_function_types, parse_function_args)
14154 (parse_type, parse_identifier, call_convention_p)
14155 (d_parse_symbol): New functions.
14156 (d_demangle): Use d_parse_symbol to demangle D symbols.
14158 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14160 * d-lang.h (struct builtin_d_type): New data type.
14161 (builtin_d_type): Add declaration.
14162 * d-lang.c (d_language_arch_info, build_d_types)
14163 (builtin_d_type): New functions.
14164 (enum d_primitive_types): New data type.
14165 (d_language_defn): Change c_language_arch_info to
14166 d_language_arch_info.
14167 (d_type_data): New static variable.
14168 (_initialize_d_language): Initialize d_type_data.
14170 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14172 * d-lang.h (d_main_name): Add declaration.
14173 * d-lang.c (d_main_name): New function.
14174 * symtab.c (find_main_name): Add call to d_main_name.
14176 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14178 * d-lang.c (d_language_defn): Change macro_expansion_c to
14179 macro_expansion_no.
14181 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14183 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14185 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14187 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14188 gdb_exception" declaration.
14189 * remote.c (getpkt_or_notif_sane): Likewise.
14191 2014-01-17 Doug Evans <dje@google.com>
14193 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14194 function, contents of dirnames_to_char_ptr_vec_append moved here.
14195 (delim_string_to_char_ptr_vec): New function.
14196 (dirnames_to_char_ptr_vec_append): Rewrite.
14197 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14199 2014-01-17 Doug Evans <dje@google.com>
14201 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14203 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14204 #include "common-utils.h".
14205 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14206 * common/vec.h (VEC_ASSERT_PASS): Update.
14207 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14208 (MACH_CHECK_ERROR): Update.
14210 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14212 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14214 * gdbarch.h: Regenerate.
14216 2014-01-16 Tom Tromey <tromey@redhat.com>
14218 * value.c (struct value) <regnum>: Move earlier.
14220 2014-01-16 Tom Tromey <tromey@redhat.com>
14222 * remote.c (extended_remote_create_inferior): Rename from
14223 extended_remote_create_inferior_1. Add "ops" argument. Remove
14224 old implementation.
14226 2014-01-16 Pedro Alves <palves@redhat.com>
14228 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14229 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14232 2014-01-16 Doug Evans <dje@google.com>
14234 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14236 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14238 * btrace.h (btrace_thread_flag): New.
14239 (struct btrace_thread_info) <flags>: New.
14240 * record-btrace.c (record_btrace_resume_thread)
14241 (record_btrace_find_thread_to_move, btrace_step_no_history)
14242 (btrace_step_stopped, record_btrace_start_replaying)
14243 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14244 (record_btrace_find_resume_thread): New.
14245 (record_btrace_resume, record_btrace_wait): Extend.
14246 (record_btrace_can_execute_reverse): New.
14247 (record_btrace_open): Fail in non-stop mode.
14248 (record_btrace_set_replay): Split into this, ...
14249 (record_btrace_stop_replaying): ... this, ...
14250 (record_btrace_clear_histories): ... and this.
14251 (init_record_btrace_ops): Init to_can_execute_reverse.
14252 * NEWS: Announce it.
14254 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14256 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14257 (forward_target_decr_pc_after_break)
14258 (target_decr_pc_after_break): New.
14259 * target.c (forward_target_decr_pc_after_break)
14260 (target_decr_pc_after_break): New.
14261 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14262 instead of gdbarch_decr_pc_after_break.
14263 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14264 instead of gdbarch_decr_pc_after_break.
14265 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14266 instead of gdbarch_decr_pc_after_break.
14267 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14268 instead of gdbarch_decr_pc_after_break.
14269 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14270 instead of gdbarch_decr_pc_after_break.
14271 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14272 instead of gdbarch_decr_pc_after_break.
14274 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14276 * btrace.c: Include regcache.h.
14277 (btrace_add_pc): New.
14278 (btrace_enable): Call btrace_add_pc.
14279 (btrace_is_empty): New.
14280 * btrace.h (btrace_is_empty): New.
14281 * record-btrace.c (require_btrace, record_btrace_info): Call
14284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14286 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14287 Support delta reads.
14288 (linux_disable_btrace): Change return type.
14289 * common/linux-btrace.h (linux_read_btrace): Change parameters
14290 and return type to allow error reporting. Update users.
14291 (linux_disable_btrace): Change return type. Update users.
14292 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14294 (btrace_error): New.
14295 (btrace_block) <begin>: Comment on BEGIN == 0.
14296 * btrace.c (btrace_compute_ftrace): Start from the end of
14298 (btrace_stitch_trace, btrace_clear_history): New.
14299 (btrace_fetch): Read delta trace, return if replaying.
14300 (btrace_clear): Move clear history code to btrace_clear_history.
14301 (parse_xml_btrace): Throw an error if parsing failed.
14302 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14303 and return type to allow error reporting.
14304 (target_read_btrace): Change parameters and return type to allow
14306 * target.c (target_read_btrace): Update.
14307 * remote.c (remote_read_btrace): Support delta reads. Pass
14309 * NEWS: Announce it.
14311 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14313 * record.h (record_btrace_frame_unwind)
14314 (record_btrace_tailcall_frame_unwind): New declarations.
14315 * dwarf2-frame: Include record.h
14316 (dwarf2_frame_cfa): Throw an error for btrace frames.
14317 * record-btrace.c: Include hashtab.h.
14318 (btrace_get_bfun_name): New.
14319 (btrace_call_history): Call btrace_get_bfun_name.
14320 (struct btrace_frame_cache): New.
14322 (bfcache_hash, bfcache_eq, bfcache_new): New.
14323 (btrace_get_frame_function): New.
14324 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14325 (record_btrace_frame_this_id): Compute own id.
14326 (record_btrace_frame_prev_register): Provide PC, throw_error
14327 for all other registers.
14328 (record_btrace_frame_sniffer): Detect btrace frames.
14329 (record_btrace_tailcall_frame_sniffer): New.
14330 (record_btrace_frame_dealloc_cache): New.
14331 (record_btrace_frame_unwind): Add new functions.
14332 (record_btrace_tailcall_frame_unwind): New.
14333 (_initialize_record_btrace): Allocate cache.
14334 * btrace.c (btrace_clear): Call reinit_frame_cache.
14335 * NEWS: Announce it.
14337 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14339 * record-btrace.c (record_btrace_set_replay)
14340 (record_btrace_goto_begin, record_btrace_goto_end)
14341 (record_btrace_goto): New.
14342 (init_record_btrace_ops): Initialize them.
14343 * NEWS: Announce it.
14345 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14347 * record-btrace.c (record_btrace_find_new_threads)
14348 (record_btrace_thread_alive): New.
14349 (init_record_btrace_ops): Initialize to_find_new_threads and
14352 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14354 * record-btrace.c (record_btrace_resume): New.
14355 (record_btrace_wait): New.
14356 (init_record_btrace_ops): Initialize to_wait and to_resume.
14358 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14360 * record-btrace.c (record_btrace_xfer_partial)
14361 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14362 (record_btrace_allow_memory_access): New.
14363 (init_record_btrace_ops): Initialize new methods.
14364 * target.c (raw_memory_xfer_partial): Bail out if target reports
14365 that this memory is not available.
14367 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14369 * target.h (target_ops) <to_insert_breakpoint>
14370 <to_remove_breakpoint>: Add target_ops parameter.
14371 (forward_target_insert_breakpoint): New.
14372 (forward_target_remove_breakpoint): New.
14373 (memory_remove_breakpoint, memory_insert_breakpoint):
14374 Add target_ops parameter.
14375 * target.c (target_insert_breakpoint): Split into this and ...
14376 (forward_target_insert_breakpoint): ... this.
14377 (target_remove_breakpoint): Split into this and ...
14378 (forward_target_remove_breakpoint): ... this.
14379 (debug_to_insert_breakpoint): Add target_ops parameter.
14380 Call forward_target_insert_breakpoint.
14381 (debug_to_remove_breakpoint): Add target_ops parameter.
14382 Call forward_target_remove_breakpoint.
14383 (update_current_target): Do not inherit or default to_insert_breakpoint
14384 and to_remove_breakpoint.
14385 * corelow.c (ignore): Add target_ops parameter.
14386 * exec.c (ignore): Add target_ops parameter.
14387 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14388 Add target_ops parameter.
14389 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14390 Add target_ops parameter.
14391 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14392 Add target_ops parameter.
14393 * record-full.c (record_full_beneath_to_insert_breakpoint)
14394 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14395 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14396 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14397 (record_full_core_remove_breakpoint): Add target_ops parameter.
14399 (record_full_beneath_to_insert_breakpoint_ops)
14400 (record_full_beneath_to_remove_breakpoint_ops)
14401 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14402 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14403 tmp_to_remove_breakpoint_ops,
14404 record_full_beneath_to_insert_breakpoint_ops, and
14405 record_full_beneath_to_remove_breakpoint_ops.
14406 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14407 (m32r_remove_breakpoint): Add target_ops parameter.
14408 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14409 Add target_ops parameter.
14410 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14411 Add target_ops parameter.
14413 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14414 Markus Metzger <markus.t.metzger@intel.com>
14416 * record-btrace.c: Include frame-unwind.h.
14417 (record_btrace_frame_unwind_stop_reason)
14418 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14419 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14421 (init_record_btrace_ops): Install it.
14423 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14425 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14428 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14430 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14433 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14435 * frame-unwind.c: Include target.h.
14436 (frame_unwind_try_unwinder): New function with code from ...
14437 (frame_unwind_find_by_frame): ... here. New variable
14438 unwinder_from_target, call also target_get_unwinder)
14439 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14440 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14441 * target.h (struct target_ops): New fields to_get_unwinder and
14442 to_get_tailcall_unwinder.
14443 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14445 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14447 * record-btrace.c (record_btrace_fetch_registers)
14448 (record_btrace_store_registers)
14449 (record_btrace_to_prepare_to_store): New.
14450 (init_record_btrace_ops): Add the above.
14452 2014-01-16 Tom Tromey <tromey@redhat.com>
14454 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14455 * target.h (struct target_ops) <to_prepare_to_store>: Add
14457 (target_prepare_to_store): Add argument.
14458 * target.c (debug_to_prepare_to_store): Add argument.
14459 (update_current_target): Update.
14460 * remote.c (remote_prepare_to_store): Add 'self' argument.
14461 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14462 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14463 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14464 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14466 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14467 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14468 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14469 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14470 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14472 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14474 * btrace.h (replay) <replay>: New.
14475 (btrace_is_replaying): New.
14476 * btrace.c (btrace_clear): Free replay iterator.
14477 (btrace_is_replaying): New.
14478 * record-btrace.c (record_btrace_is_replaying): New.
14479 (record_btrace_info): Print insn number if replaying.
14480 (record_btrace_insn_history): Start at replay position.
14481 (record_btrace_call_history): Start at replay position.
14482 (init_record_btrace_ops): Init to_record_is_replaying.
14484 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14486 * record-btrace.c (record_btrace_insn_history_range): Include
14488 (record_btrace_insn_history_from): Adjust range.
14489 (record_btrace_call_history_range): Include
14491 (record_btrace_call_history_from): Adjust range.
14492 * NEWS: Announce changes.
14494 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14496 * record.h (enum record_print_flag)
14497 <record_print_indent_calls>: New.
14498 * record.c (get_call_history_modifiers): Recognize /c modifier.
14499 (_initialize_record): Document /c modifier.
14500 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14501 Reorder fields. Optionally indent the function name. Update
14503 * NEWS: Announce changes.
14505 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14507 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14511 * btrace.c (ftrace_new_function): Start counting at one.
14512 * record-btrace.c (record_btrace_info): Adjust number of calls
14514 * NEWS: Announce it.
14516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14518 * record-btrace.c (btrace_call_history_insn_range): Print
14519 insn range as [begin, end].
14521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14523 * btrace.h (struct btrace_func_link): New.
14524 (enum btrace_function_flag): New.
14525 (struct btrace_inst): Rename to ...
14526 (struct btrace_insn): ...this. Update all users.
14527 (struct btrace_func) <ibegin, iend>: Remove.
14528 (struct btrace_func_link): New.
14529 (struct btrace_func): Rename to ...
14530 (struct btrace_function): ...this. Update all users.
14531 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14532 (number, level, flags>: New.
14533 (struct btrace_insn_iterator): Rename to ...
14534 (struct btrace_insn_history): ...this.
14536 (struct btrace_insn_iterator, btrace_call_iterator): New.
14537 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14538 (struct btrace_target_info) <begin, end, level>
14539 <insn_history, call_history>: New.
14540 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14541 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14542 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14543 (btrace_call_number, btrace_call_begin, btrace_call_end)
14544 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14545 (btrace_find_function_by_number, btrace_set_insn_history)
14546 (btrace_set_call_history): New.
14547 * btrace.c (btrace_init_insn_iterator)
14548 (btrace_init_func_iterator, compute_itrace): Remove.
14549 (ftrace_print_function_name, ftrace_print_filename)
14550 (ftrace_skip_file): Change
14551 parameter to const.
14552 (ftrace_init_func): Remove.
14553 (ftrace_debug): Use new btrace_function fields.
14554 (ftrace_function_switched): Also consider gaining and
14555 losing symbol information).
14556 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14557 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14558 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14560 (ftrace_new_function): Move. Remove debug print.
14561 (ftrace_update_lines, ftrace_update_insns): New.
14562 (ftrace_update_function): Check for call, ret, and jump.
14563 (compute_ftrace): Renamed to ...
14564 (btrace_compute_ftrace): ...this. Rewritten to compute call
14566 (btrace_fetch, btrace_clear): Updated.
14567 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14568 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14569 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14570 (btrace_call_number, btrace_call_begin, btrace_call_end)
14571 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14572 (btrace_find_function_by_number, btrace_set_insn_history)
14573 (btrace_set_call_history): New.
14574 * record-btrace.c (require_btrace): Use new btrace thread
14576 (record_btrace_info, btrace_insn_history)
14577 (record_btrace_insn_history, record_btrace_insn_history_range):
14578 Use new btrace thread info fields and new iterator.
14579 (btrace_func_history_src_line): Rename to ...
14580 (btrace_call_history_src_line): ...this. Use new btrace
14581 thread info fields.
14582 (btrace_func_history): Rename to ...
14583 (btrace_call_history): ...this. Use new btrace thread info
14584 fields and new iterator.
14585 (record_btrace_call_history, record_btrace_call_history_range):
14586 Use new btrace thread info fields and new iterator.
14588 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14590 * frame.h (frame_id_build_unavailable_stack_special): New.
14591 * frame.c (frame_id_build_unavailable_stack_special): New.
14593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14595 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14596 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14597 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14599 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14600 (i386_insn_is_jump, i386_jmp_p): New.
14601 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14602 insn_is_jump to gdbarch.
14603 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14604 * gdbarch.h: Regenerated.
14605 * gdbarch.c: Regenerated.
14606 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14607 (default_insn_is_jump): New.
14608 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14609 (default_insn_is_jump): New.
14611 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14613 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14615 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14616 (btrace_read_type) <btrace_read_new>: Change to ...
14617 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14621 * common/linux-btrace.c (linux_read_btrace): Free trace from
14622 previous iteration.
14624 2014-01-15 Doug Evans <dje@google.com>
14626 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14629 2014-01-15 Tom Tromey <tromey@redhat.com>
14631 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14632 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14633 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14634 (set_objfile_main_name): New function.
14635 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14636 language_of_main>: New fields.
14637 (set_objfile_main_name): Declare.
14638 * symtab.c (find_main_name): Loop over objfiles to find the main
14640 (set_main_name): Now static.
14641 (get_main_info): Add comment.
14642 * symtab.h (set_main_name): Don't declare.
14644 2014-01-15 Tom Tromey <tromey@redhat.com>
14646 * symtab.c (main_progspace_key): New global.
14647 (struct main_info): New.
14648 (name_of_main, language_of_main): Remove.
14649 (get_main_info, main_info_cleanup): New function.
14650 (set_main_name, main_name, main_language): Use get_main_info.
14651 (_initialize_symtab): Initialize main_progspace_key.
14653 2014-01-15 Tom Tromey <tromey@redhat.com>
14655 * dbxread.c (process_one_symbol): Update.
14656 * dwarf2read.c (read_partial_die): Update.
14657 * symfile.c (set_initial_language): Call main_language.
14658 * symtab.c (language_of_main): Now static.
14659 (set_main_name): Add 'lang' parameter.
14660 (find_main_name): Update.
14661 (main_language): New function.
14662 (symtab_observer_executable_changed): Update.
14663 * symtab.h (set_main_name): Update.
14664 (language_of_main): Remove.
14665 (main_language): Declare.
14667 2014-01-15 Tom Tromey <tromey@redhat.com>
14669 * symfile.c (init_entry_point_info): Use new "initialized" field.
14671 * objfiles.h (struct entry_point) <initialized>: New field.
14672 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14673 (struct objfile) <ei>: ...here. Remove.
14674 * objfiles.c (entry_point_address_query): Update.
14676 2014-01-15 Tom Tromey <tromey@redhat.com>
14678 * objfiles.c (entry_point_address_query): Relocate entry point
14680 (objfile_relocate1): Do not relocate entry point address.
14681 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14682 <the_bfd_section_index>: New field.
14683 * symfile.c (init_entry_point_info): Find the entry point's
14686 2014-01-15 Tom Tromey <tromey@redhat.com>
14688 * solib-frv.c (enable_break): Use entry_point_address_query.
14690 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14692 * NEWS: Add note on improved process record-replay on
14693 arm*-linux* targets.
14695 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14697 * arm-tdep.c (enum arm_record_result): New enum.
14698 (arm_record_unsupported_insn): New function.
14699 (arm_record_coproc_data_proc): Removed.
14700 (thumb2_record_ld_st_multiple): New function.
14701 (thumb2_record_ld_st_dual_ex_tbb): New function.
14702 (thumb2_record_data_proc_sreg_mimm): New function.
14703 (thumb2_record_ps_dest_generic): New function.
14704 (thumb2_record_branch_misc_cntrl): New function.
14705 (thumb2_record_str_single_data): New function.
14706 (thumb2_record_ld_mem_hints): New function.
14707 (thumb2_record_ld_word): New function.
14708 (thumb2_record_lmul_lmla_div): New function.
14709 (thumb2_record_decode_insn_handler): New function.
14710 (decode_insn): Add thumb32 instruction handlers.
14712 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14714 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14715 (struct arm_linux_record_tdep): Declare.
14716 (arm_canonicalize_syscall): New function.
14717 (arm_all_but_pc_registers_record): New function.
14718 (arm_linux_syscall_record): New function.
14719 (arm_linux_init_abi): Add syscall recording constructs.
14720 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14721 decoding. (arm_record_coproc_data_proc): Update arm syscall
14723 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14724 <arm_syscall_record>: New field.
14725 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14728 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14730 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14731 register for push instruction recording.
14733 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14735 * arm-tdep.c (thumb_record_misc): Update to correct logical
14736 error while recording ldm, ldmia and pop instructions.
14738 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14740 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14742 2014-01-15 Pedro Alves <palves@redhat.com>
14744 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14745 (go32_resume, go32_fetch_registers, store_register)
14746 (go32_store_registers, go32_prepare_to_store)
14747 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14748 (go32_create_inferior, go32_can_run, go32_terminal_init)
14749 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14752 2014-01-15 Tom Tromey <tromey@redhat.com>
14754 * target.h (async_callback_ftype): New typedef.
14755 (struct target_ops) <to_async>: Use it.
14757 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14759 * python/py-value.c (get_field_type): Remove unnecessary curly
14760 braces for single-statement if block.
14762 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14764 * python/py-type.c (convert_field): Add missing empty line
14765 after declarations.
14767 2014-01-14 Doug Evans <dje@google.com>
14769 * symfile.h (expand_symtabs_matching): Renamed from
14770 expand_partial_symbol_names. Update prototype.
14771 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14772 * symfile.c (expand_symtabs_matching): Renamed from
14773 expand_partial_symbol_names. New args file_matcher, kind.
14774 Rename arg fun to symbol_matcher.
14775 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14776 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14777 ada_expand_partial_symbol_name.
14778 (ada_make_symbol_completion_list): Update to call
14779 expand_symtabs_matching.
14780 (ada_add_global_exceptions): Call expand_symtabs_matching.
14781 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14782 call map_symbol_filenames.
14783 * symtab.c (sources_info): Update to call map_symbol_filenames.
14784 (search_symbols): Call expand_symtabs_matching.
14785 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14786 (default_make_symbol_completion_list_break_on): Update to call
14787 expand_symtabs_matching.
14788 (make_source_files_completion_list): Update to call
14789 map_symbol_filenames.
14791 2014-01-14 Doug Evans <dje@google.com>
14793 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14794 (expand_symtabs_symbol_matcher_ftype): New typedef.
14795 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14796 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14797 * symfile.c (expand_partial_symbol_names): Update to use
14798 expand_symtabs_symbol_matcher_ftype.
14799 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14800 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14801 Arg name_matcher renamed to symbol_matcher.
14802 * psymtab.c (recursively_search_psymtabs): Update to use
14803 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14805 (expand_symtabs_matching_via_partial): Update to use
14806 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14807 Arg name_matcher renamed to symbol_matcher.
14809 2014-01-14 Doug Evans <dje@google.com>
14811 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14812 (map_partial_symbol_filenames): Ditto.
14813 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14814 (map_partial_symbol_filenames): Ditto.
14815 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14816 (map_partial_symbol_filenames): Ditto.
14817 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14818 (map_partial_symbol_filenames): Ditto.
14819 * symtab.c: Delete #include "psymtab.h".
14821 2014-01-14 Pedro Alves <palves@redhat.com>
14822 Tom Tromey <tromey@redhat.com>
14824 * infrun.c (use_displaced_stepping): Use find_record_target
14825 instead of RECORD_IS_USED.
14826 (adjust_pc_after_break): Use record_full_is_used instead of
14828 * record-btrace.c (record_btrace_open): Call record_preopen
14829 instead of checking RECORD_IS_USED.
14830 * record-full.c (record_full_shortname)
14831 (record_full_core_shortname): New globals.
14832 (record_full_is_used): New function.
14833 (find_full_open): Call record_preopen instead of checking
14835 (init_record_full_ops): Set the target's shortname to
14836 record_full_shortname.
14837 (init_record_full_core_ops): Set the target's shortname to
14838 record_full_core_shortname.
14839 * record-full.h (record_full_is_used): Declare.
14840 * record.c (find_record_target): Make extern.
14841 (record_preopen): New function.
14842 * record.h (RECORD_IS_USED): Delete macro.
14843 (find_record_target, record_preopen): Declare functions.
14845 2014-01-14 Yao Qi <yao@codesourcery.com>
14847 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14848 'len''s type to ULONGEST.
14849 (core_xfer_shared_libraries_aix): Likewise.
14850 * gdbarch.c, gdbarch.h: Regenerated.
14851 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14852 Change type of 'len' to ULONGEST.
14853 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14854 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14856 2014-01-14 Yao Qi <yao@codesourcery.com>
14858 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14859 type of 'len' to ULONGEST.
14860 (linux_xfer_osdata_processgroups): Likewise.
14861 (linux_xfer_osdata_threads): Likewise.
14862 (linux_xfer_osdata_fds): Likewise.
14863 (linux_xfer_osdata_isockets): Likewise.
14864 (linux_xfer_osdata_shm): Likewise.
14865 (linux_xfer_osdata_sem): Likewise.
14866 (linux_xfer_osdata_msg): Likewise.
14867 (linux_common_xfer_osdata): Likewise.
14868 (struct osdata_type) <getter>: Likewise.
14869 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14872 2014-01-14 Yao Qi <yao@codesourcery.com>
14874 * target.h (target_xfer_partial_ftype): Update.
14875 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14877 * aix-thread.c (aix_thread_xfer_partial): Change type of
14878 argument 'len' to ULONGEST.
14879 * auxv.c (procfs_xfer_auxv): Likewise.
14880 (ld_so_xfer_auxv): Likewise.
14881 (memory_xfer_auxv): Likewise.
14882 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14883 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14884 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14885 * corelow.c (core_xfer_partial): Likewise.
14886 * ctf.c (ctf_xfer_partial): Likewise.
14887 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14889 (darwin_read_dyld_info): Likewise.
14890 (darwin_xfer_partial): Likewise.
14891 * exec.c (section_table_xfer_memory_partial): Likewise.
14892 (exec_xfer_partial): Likewise.
14893 * exec.h (section_table_xfer_memory_partial): Update
14895 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14896 instead of plongest.
14897 (gnu_xfer_partial): Likewise.
14898 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14899 (ia64_hpux_xfer_solib_got): Likewise.
14900 (ia64_hpux_xfer_partial): Likewise.
14901 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14902 * inf-ptrace.c (inf_ptrace_xfer_partial):
14903 * inf-ttrace.c (inf_ttrace_xfer_partial):
14904 * linux-nat.c (linux_xfer_siginfo): Likewise.
14905 (linux_nat_xfer_partial): Likewise.
14906 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14907 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14908 * monitor.c (monitor_xfer_memory): Likewise.
14909 (monitor_xfer_partial): Likewise.
14910 * procfs.c (procfs_xfer_partial): Likewise.
14911 * record-full.c (record_full_xfer_partial): Likewise.
14912 (record_full_core_xfer_partial): Likewise.
14913 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14914 instead of plongest.
14915 (gdbsim_xfer_partial): Likewise.
14916 * remote.c (remote_xfer_partial): Likewise.
14917 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14918 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14920 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14921 (rs6000_xfer_shared_libraries): Likewise.
14922 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14923 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14924 (sparc_xfer_partial): Likewise.
14925 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14926 (spu_xfer_partial): Likewise.
14927 * spu-multiarch.c (spu_xfer_partial): Likewise.
14928 * target.c (target_read_live_memory): Likewise.
14929 (memory_xfer_live_readonly_partial): Likewise.
14930 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14931 (target_xfer_partial, default_xfer_partial): Likewise.
14932 (current_xfer_partial): Likewise.
14933 * tracepoint.c (tfile_xfer_partial): Likewise.
14934 * windows-nat.c (windows_xfer_memory): Likewise. Call
14935 pulongest instead of plongest.
14936 (windows_xfer_partial): Likewise.
14937 (windows_xfer_shared_libraries): Likewise.
14939 2014-01-14 Yao Qi <yao@codesourcery.com>
14941 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14942 target_xfer_partial_ftype.
14944 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14948 * valops.c (value_struct_elt_bitpos): New function
14949 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14950 object to 'None' if the field name is an empty string ("").
14951 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14952 attribute to look for a field when 'name' is 'None'.
14953 (get_field_type): New function
14955 2014-01-13 Doug Evans <dje@google.com>
14958 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14959 (try_open_dwop_file): Ditto.
14960 * gdb_bfd.c: #include "vec.h".
14961 (bfdp): New typedef.
14962 (struct gdb_bfd_data): New member included_bfds.
14963 (gdb_bfd_unref): Unref all included bfds.
14964 (gdb_bfd_record_inclusion): New function.
14965 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14967 2014-01-13 Tom Tromey <tromey@redhat.com>
14969 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14971 2014-01-13 Tom Tromey <tromey@redhat.com>
14973 * defs.h (use_windows): Remove.
14974 * gdb.c (main): Update.
14975 * main.c (captured_main, gdb_main): Update.
14976 * main.h (struct captured_main_args) <use_windows>: Remove.
14977 * top.c (use_windows): Remove.
14979 2014-01-13 Tom Tromey <tromey@redhat.com>
14981 * defs.h (deprecated_flush_hook): Remove.
14983 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14986 * linux-thread-db.c (try_thread_db_load): Add parameter
14987 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14988 (try_thread_db_load_from_pdir_1): Move it there from here.
14989 (try_thread_db_load_from_sdir): Update caller.
14990 (try_thread_db_load_from_dir): Move it there from here.
14992 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14994 * regformats/regdat.sh: Always rewrite the register file.
14996 2014-01-13 Pedro Alves <palves@redhat.com>
14998 * Makefile.in (CHECK_HEADERS): New variable.
14999 (check-headers:): New rule.
15001 2014-01-13 Tom Tromey <tromey@redhat.com>
15003 * cli/cli-setshow.c (do_set_command): Update.
15004 * defs.h (deprecated_set_hook): Remove.
15005 * top.c (deprecated_set_hook): Remove.
15007 2014-01-13 Pedro Alves <palves@redhat.com>
15009 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15010 the tracepoint if the PC is a pseudo-register.
15012 2014-01-13 Tom Tromey <tromey@redhat.com>
15014 * defs.h (XCALLOC): Remove.
15015 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15016 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15017 * dwarf2loc.c (allocate_piece_closure): Likewise.
15018 * elfread.c (elf_symfile_segments): Likewise.
15019 (elf_symfile_segments): Likewise.
15020 * gdbtypes.c (copy_type_recursive): Likewise.
15021 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15022 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15023 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15025 * mt-tdep.c (mt_gdbarch_init): Likewise.
15026 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15028 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15029 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15030 * registry.c (registry_alloc_data): Likewise.
15031 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15032 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15033 * serial.c (serial_fdopen_ops): Likewise.
15034 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15036 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15037 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15040 2014-01-13 Tom Tromey <tromey@redhat.com>
15042 * defs.h (XMALLOC): Remove.
15043 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15044 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15045 * cli-out.c (struct ui_out *): Likewise.
15046 * cli/cli-dump.c (add_dump_command): Likewise.
15047 (add_dump_command): Likewise.
15048 * complaints.c (get_complaints): Likewise.
15049 (find_complaint): Likewise.
15050 * dwarf2-frame.c (execute_cfa_program): Likewise.
15051 * dwarf2read.c (abbrev_table_read_table): Likewise.
15052 * gdbarch.sh: Likewise.
15053 * gdbarch.c: Rebuild.
15054 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15055 * interps.c (interp_new): Likewise.
15056 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15057 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15058 * mi/mi-console.c (mi_console_file_new): Likewise.
15059 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15060 * mi/mi-out.c (mi_out_new): Likewise.
15061 * mi/mi-parse.c (mi_parse): Likewise.
15062 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15063 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15064 * observer.c (xalloc_observer_list_node): Likewise.
15065 * regcache.c (regcache_xmalloc_1): Likewise.
15066 * reggroups.c (reggroup_new): Likewise.
15067 (_initialize_reggroup): Likewise.
15068 * registry.c (register_data_with_cleanup): Likewise.
15069 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15070 * ser-base.c (serial_ttystate): Likewise.
15071 * ser-mingw.c (make_pipe_state): Likewise.
15072 * ser-pipe.c (pipe_open): Likewise.
15073 * serial.c (serial_open): Likewise.
15074 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15075 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15076 (tui_alloc_win_info): Likewise.
15077 (tui_add_content_elements): Likewise.
15078 * tui/tui-file.c (tui_file_new): Likewise.
15079 * tui/tui-out.c (tui_out_new): Likewise.
15080 * ui-file.c (mem_file_new): Likewise.
15081 * ui-out.c (push_level): Likewise.
15082 (make_cleanup_ui_out_end): Likewise.
15083 (append_header_to_list): Likewise.
15084 (ui_out_new): Likewise.
15085 * user-regs.c (user_reg_add_builtin): Likewise.
15087 2014-01-13 Tom Tromey <tromey@redhat.com>
15089 * defs.h (XZALLOC): Remove.
15090 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15091 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15092 (get_ada_tasks_inferior_data): Likewise.
15093 * auto-load.c (get_auto_load_pspace_data): Likewise.
15094 * auxv.c (get_auxv_inferior_data): Likewise.
15095 * bfd-target.c (target_bfd_reopen): Likewise.
15096 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15097 (deprecated_insert_raw_breakpoint): Likewise.
15098 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15099 * corelow.c (core_open): Likewise.
15100 * darwin-nat.c (darwin_check_new_threads): Likewise.
15101 (darwin_attach_pid): Likewise.
15102 * dummy-frame.c (dummy_frame_push): Likewise.
15103 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15104 * dwarf2loc.c (allocate_piece_closure): Likewise.
15105 * elfread.c (elf_symfile_segments): Likewise.
15106 * eval.c (ptrmath_type_p): Likewise.
15107 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15108 * gdbtypes.c (alloc_type_arch): Likewise.
15109 (alloc_type_instance): Likewise.
15110 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15111 * inf-child.c (inf_child_can_use_agent): Likewise.
15112 * inflow.c (get_inflow_inferior_data): Likewise.
15113 * infrun.c (save_infcall_suspend_state): Likewise.
15114 * jit.c (jit_reader_load): Likewise.
15115 (get_jit_objfile_data): Likewise.
15116 (get_jit_program_space_data): Likewise.
15117 (jit_object_open_impl): Likewise.
15118 (jit_symtab_open_impl): Likewise.
15119 (jit_block_open_impl): Likewise.
15120 (jit_frame_sniffer): Likewise.
15121 * linux-fork.c (add_fork): Likewise.
15122 * maint.c (make_command_stats_cleanup): Likewise.
15123 * objfiles.c (get_objfile_pspace_data): Likewise.
15124 * opencl-lang.c (struct lval_closure): Likewise.
15125 * osdata.c (osdata_start_osdata): Likewise.
15126 * progspace.c (new_address_space): Likewise.
15127 (add_program_space): Likewise.
15128 * remote-sim.c (get_sim_inferior_data): Likewise.
15129 * sh-tdep.c (sh_gdbarch_init): Likewise.
15130 * skip.c (Ignore): Likewise.
15131 (skip_delete_command): Likewise.
15132 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15133 (library_list_start_library): Likewise.
15134 (solib_aix_current_sos): Likewise.
15135 * solib-darwin.c (get_darwin_info): Likewise.
15136 (darwin_current_sos): Likewise.
15137 * solib-dsbt.c (get_dsbt_info): Likewise.
15138 * solib-ia64-hpux.c (new_so_list): Likewise.
15139 (ia64_hpux_get_solib_linkage_addr): Likewise.
15140 * solib-spu.c (append_ocl_sos): Likewise.
15141 (spu_current_sos): Likewise.
15142 * solib-svr4.c (get_svr4_info): Likewise.
15143 (svr4_keep_data_in_core): Likewise.
15144 (library_list_start_library): Likewise.
15145 (svr4_default_sos): Likewise.
15146 (svr4_read_so_list): Likewise.
15147 * solib-target.c (library_list_start_library): Likewise.
15148 (solib_target_current_sos): Likewise.
15149 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15150 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15151 * symfile.c (default_symfile_segments): Likewise.
15152 * target-descriptions.c (tdesc_data_init): Likewise.
15153 (tdesc_create_reg): Likewise.
15154 (struct tdesc_type *): Likewise.
15155 (tdesc_create_vector): Likewise.
15156 (tdesc_set_struct_size): Likewise.
15157 (struct tdesc_type *): Likewise.
15158 (tdesc_free_feature): Likewise.
15159 (tdesc_create_feature): Likewise.
15160 * windows-nat.c (windows_add_thread): Likewise.
15161 (windows_make_so): Likewise.
15162 * xml-support.c (gdb_xml_body_text): Likewise.
15163 (gdb_xml_create_parser_and_cleanup): Likewise.
15164 (xml_process_xincludes): Likewise.
15165 * xml-syscall.c (allocate_syscalls_info): Likewise.
15166 (syscall_create_syscall_desc): Likewise.
15168 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15170 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15171 function, with code from i386_stap_parse_special_token.
15172 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15173 (i386_stap_parse_special_token): Move code to the two functions
15174 above; simplify it.
15176 2014-01-09 Pedro Alves <palves@redhat.com>
15177 Hui Zhu <hui@codesourcery.com>
15180 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15181 bp_err_string. Don't mark the location shlib_disabled if the
15182 error thrown wasn't a generic or memory error. Catch errors
15183 thrown while inserting breakpoints in overlayed code. Output
15184 error message of software breakpoints.
15185 * remote.c (remote_insert_breakpoint): If this breakpoint has
15186 target-side commands but this stub doesn't support Z0 packets,
15187 throw NOT_SUPPORTED_ERROR error.
15188 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15189 * target.h (target_insert_breakpoint): Extend comment.
15190 (target_insert_hw_breakpoint): Add comment.
15192 2014-01-08 Pedro Alves <palves@redhat.com>
15194 * remote.c (remote_add_thread): Add threads silently if starting
15196 (remote_notice_new_inferior): If in all-stop, and starting up,
15197 don't call notice_new_inferior.
15198 (get_current_thread): New function, factored out from ...
15199 (add_current_inferior_and_thread): ... this. Adjust.
15200 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15201 found any thread, then select the remote's current thread as GDB's
15202 current thread too.
15204 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15206 * NEWS: Create a new section for the next release branch.
15207 Rename the section of the current branch, now that it has
15210 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15212 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15213 * version.in: Bump version to 7.7.50.DATE-cvs.
15215 2014-01-08 Yao Qi <yao@codesourcery.com>
15217 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15218 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15219 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15221 2014-01-08 Yao Qi <yao@codesourcery.com>
15223 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15224 return value of bfd_get_filename to symbol_file_add_from_bfd.
15226 2014-01-08 Pierre Muller <muller@sourceware.org>
15229 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15230 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15231 to prim_record_mininal_symbol_and_info.
15232 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15233 in call to prim_record_minimal_symbol_and_info.
15234 (read_pe_exported_syms): Set index field of section_data.
15236 2014-01-07 Andrew Pinski <apinski@cavium.com>
15238 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15239 * features/aarch64.c: Regenerate.
15241 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15243 * target.c (return_null): Define.
15244 (update_current_target): Use it instead of return_zero for
15245 functions that return a pointer.
15247 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15249 * source.c (add_path): Fix check for duplicated paths in the previously
15252 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15254 * ada-lang.c: Remove duplicated include statements.
15255 * alphabsd-nat.c: Ditto.
15256 * amd64-darwin-tdep.c: Ditto.
15257 * amd64fbsd-nat.c: Ditto.
15258 * auto-load.c: Ditto.
15260 * breakpoint.c: Ditto.
15261 * dbxread.c: Ditto.
15262 * fork-child.c: Ditto.
15263 * gdb_usleep.c: Ditto.
15264 * i386-darwin-tdep.c: Ditto.
15265 * i386fbsd-nat.c: Ditto.
15267 * inferior.c: Ditto.
15268 * jv-lang.c: Ditto.
15269 * linux-nat.c: Ditto.
15270 * linux-tdep.c: Ditto.
15271 * m68kbsd-nat.c: Ditto.
15272 * m68klinux-nat.c: Ditto.
15273 * microblaze-tdep.c: Ditto.
15274 * mips-linux-tdep.c: Ditto.
15275 * mn10300-tdep.c: Ditto.
15276 * nto-tdep.c: Ditto.
15277 * opencl-lang.c: Ditto.
15279 * printcmd.c: Ditto.
15280 * regcache.c: Ditto.
15281 * remote-m32r-sdi.c: Ditto.
15283 * symfile.c: Ditto.
15285 * tilegx-linux-nat.c: Ditto.
15286 * tilegx-tdep.c: Ditto.
15287 * tracepoint.c: Ditto.
15289 * vaxbsd-nat.c: Ditto.
15290 * windows-nat.c: Ditto.
15291 * xtensa-tdep.c: Ditto.
15293 2014-01-07 Yao Qi <yao@codesourcery.com>
15295 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15297 2014-01-07 Yao Qi <yao@codesourcery.com>
15298 Joel Brobecker <brobecker@adacore.com>
15300 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15301 (pdc_write_regs): Likewise.
15302 (fetch_regs_kernel_thread): Likewise.
15303 (store_regs_kernel_thread): Likewise.
15305 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15307 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15308 tagged type objects to their actual type.
15310 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15312 * ada-valprint.c (print_field_values): Add "language" parameter.
15313 Update calls to print_field_values and print_variant_part.
15314 Pass new parameter "language" in call to val_print instead
15315 of "current_language". Replace call to ada_val_print by call
15317 (print_variant_part): Add "language" parameter.
15318 (ada_val_print_struct_union): Update call to print_field_values.
15320 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15322 * ada-valprint.c (ui_memcpy): Delete.
15323 (ada_print_floating): Update documentation. Add empty line
15324 between between function documentation and implementation.
15325 Delete variable "buffer". Use ui_file_xstrdup in place of
15326 ui_file_put. Minor adjustments following this change.
15328 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15330 * ada-valprint.c (ada_val_print_string): New function,
15331 extracted from ada_val_print_array.
15332 (ada_val_print_array): Replace extracted code by call
15333 to ada_val_print_string followed by a return. Move
15334 "else" branch to the function's top block.
15336 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15338 * ada-valprint.c (ada_val_print_array): Move implementation
15339 down. Rename parameter "offset" and "val" into "offset_aligned"
15340 and "original_value" respectively. Add parameter "offset".
15342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15344 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15345 re-organizing the code. Change the "???" message printed
15346 when target type is a TYPE_CODE_UNDEF into
15347 "<ref to undefined type>".
15349 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15351 * ada-valprint.c (print_record): Delete, implementation inlined...
15352 (ada_val_print_struct_union): ... here. Remove call to
15353 ada_check_typedef in inlined implementation.
15355 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15357 * ada-valprint.c (ada_val_print_gnat_array): New function,
15358 extracted from ada_val_print_1;
15359 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15360 (ada_val_print_flt, ada_val_print_struct_union)
15361 (ada_val_print_ref): Likewise.
15362 (ada_val_print_1): Delete variables i and elttype.
15363 Replace extracted-out code by call to corresponding
15366 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15368 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15370 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15372 * ada-valprint.c (ada_val_print_1): Replace calls to
15373 ada_val_print_1 by calls to val_print.
15375 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15377 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15378 Update calls to self accordingly. Replace calls to c_val_print
15379 by calls to val_print.
15381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15383 * ada-valprint.c (print_record): Delete declaration.
15384 (adjust_type_signedness, ada_val_print_1): Likewise.
15385 (ada_val_print): Move function implementation down.
15386 (print_variant_part, print_field_values, print_record):
15387 Move function implementation up.
15389 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15391 * python/py-type.c (typy_get_name): New function.
15392 (type_object_getset): Add entry for attribute "name".
15393 * NEWS: Add entry mentioning this new attribute.
15395 2014-01-07 Yao Qi <yao@codesourcery.com>
15397 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15400 2014-01-07 Yao Qi <yao@codesourcery.com>
15402 * gnu-nat.c (info_port_rights): Add qualifier const to
15405 2014-01-07 Yao Qi <yao@codesourcery.com>
15407 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15409 2014-01-07 Yao Qi <yao@codesourcery.com>
15411 * gnu-nat.c (make_inf) Update declaration.
15412 (make_inf): Make it static.
15413 (inf_set_traced): Likewise.
15414 (inf_port_to_thread, inf_task_died_status): Likewise.
15416 2014-01-07 Yao Qi <yao@codesourcery.com>
15418 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15420 2014-01-07 Yao Qi <yao@codesourcery.com>
15422 * gnu-nat.c (_initialize_gnu_nat): Declare.
15424 2014-01-07 Yao Qi <yao@codesourcery.com>
15426 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15428 (struct gdbarch_info) <byte_order>: Change type to
15430 <byte_order_for_code>: Likewise.
15431 * gdbarch.c, gdbarch.h: Regenerated.
15433 2014-01-06 Sasha Smundak <asmundak@google.com>
15435 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15437 2014-01-06 Tom Tromey <tromey@redhat.com>
15439 * doublest.c (convert_doublest_to_floatformat): Use const, not
15441 * somread.c (som_symtab_read): Likewise.
15443 2014-01-07 Hui Zhu <hui@codesourcery.com>
15445 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15446 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15447 (gdb_bfd_fopen): Ditto.
15448 (gdb_bfd_openr): Ditto.
15449 (gdb_bfd_openw): Ditto.
15450 (gdb_bfd_openr_iovec): Ditto.
15451 (gdb_bfd_fdopenr): Ditto.
15452 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15453 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15455 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15457 * symfile-mem.c (symbol_file_add_from_memory): Removed
15458 gdb_bfd_stash_filename.
15460 2014-01-03 Doug Evans <dje@google.com>
15462 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15465 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15467 Update year range in copyright notice of all files.
15469 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15471 * top.c (print_gdb_version): Set copyright year to 2014.
15473 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15475 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15477 For older changes see ChangeLog-2013.
15483 version-control: never