1 2014-11-28 Pierre Muller <muller@sourceware.org>
3 Pushed by Joel Brobecker <brobecker@adacore.com>.
4 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
7 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
9 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
10 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12 * m68klinux-nat.c (fetch_core_registers): Remove.
13 (linux_elf_core_fns): Remove.
14 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
16 2014-11-28 Joel Brobecker <brobecker@adacore.com>
18 * utils.c (gdb_realpath): Rework comment about handling on
21 2014-11-28 Yao Qi <yao@codesourcery.com>
23 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
25 * gnulib/aclocal.m4: Re-generated.
26 * gnulib/config.in: Re-generated.
27 * gnulib/configure: Re-generated.
28 * gnulib/import/Makefile.am: Re-generated.
29 * gnulib/import/Makefile.in: Re-generated.
30 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
31 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
32 * import/basename-lgpl.c: New file.
33 * import/dirname-lgpl.c: New file.
34 * import/dirname.h: New file.
35 * import/m4/dirname.m4: New file.
36 * import/m4/malloc.m4: New file.
37 * import/m4/rename.m4: New file.
38 * import/m4/rmdir.m4: New file.
39 * import/m4/stdio_h.m4: New file.
40 * import/malloc.c: New file.
41 * import/rename.c: New file.
42 * import/rmdir.c: New file.
43 * import/same-inode.h: New file.
44 * import/stdio.c: New file.
45 * import/stdio.in.h: New file.
46 * import/stripslash.c: New file.
48 2014-11-28 Yao Qi <yao@codesourcery.com>
50 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
52 * config.in: Re-generated.
53 * configure: Re-generated.
54 * utils.c (gdb_realpath): Remove code calling realpath,
55 canonicalize_file_name and pathconf.
56 [!_WIN32]: Call canonicalize_file_name.
58 2014-11-28 Yao Qi <yao@codesourcery.com>
60 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
62 * aclocal.m4: Re-generated.
63 * config.in: Re-generated.
64 * configure: Re-generated.
65 * import/Makefile.am: Re-generated.
66 * import/Makefile.in: Re-generated.
67 * import/m4/gnulib-cache.m4: Re-generated.
68 * import/m4/gnulib-comp.m4: Re-generated.
69 * import/canonicalize-lgpl.c: New file.
70 * import/extra/snippet/_Noreturn.h: New file.
71 * import/m4/canonicalize.m4: New file.
72 * import/m4/double-slash-root.m4: New file.
73 * import/m4/eealloc.m4: New file.
74 * import/m4/malloca.m4: New file.
75 * import/m4/nocrash.m4: New file.
76 * import/m4/stdlib_h.m4: New file.
77 * import/malloca.c: New file.
78 * import/malloca.h: New file.
79 * import/malloca.valgrind: New file.
81 2014-11-28 Yao Qi <yao@codesourcery.com>
83 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
84 * config.in, configure: Regenerate.
85 * symfile.c (find_separate_debug_file_by_debuglink): Remove
86 code checking HAVE_LSTAT is defined.
88 2014-11-28 Yao Qi <yao@codesourcery.com>
90 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
92 * gnulib/aclocal.m4: Re-generated.
93 * gnulib/config.in: Re-generated.
94 * gnulib/configure: Re-generated.
95 * gnulib/import/Makefile.am: Re-generated.
96 * gnulib/import/Makefile.in: Re-generated.
97 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
98 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
99 * gnulib/import/lstat.c: New file.
100 * gnulib/import/m4/lstat.m4: New file.
102 2014-11-28 Yao Qi <yao@codesourcery.com>
104 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
105 * config.in, configure: Re-generate.
106 * inf-child.c (inf_child_fileio_readlink): Don't check
107 HAVE_READLINK is defined.
109 2014-11-28 Yao Qi <yao@codesourcery.com>
111 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
112 * gnulib/aclocal.m4: Re-generated.
113 * gnulib/config.in: Likewise.
114 * gnulib/configure: Likewise.
115 * gnulib/import/Makefile.am: Likewise.
116 * gnulib/import/Makefile.in: Likewise.
117 * gnulib/import/m4/gnulib-cache.m4: Likewise.
118 * gnulib/import/m4/gnulib-comp.m4: Likewise.
119 * gnulib/import/dosname.h: New file
120 * gnulib/import/m4/largefile.m4: New file.
121 * gnulib/import/m4/readlink.m4: New file.
122 * gnulib/import/m4/stat.m4: New file.
123 * gnulib/import/readlink.c: New file.
124 * gnulib/import/stat.c: New file.
126 2014-11-26 Mark Wielaard <mjw@redhat.com>
128 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
129 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
131 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
133 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
134 that there can be only one stack adjustment in the prologue
135 with tests to detect specific disallowed stack adjustments.
137 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
139 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
142 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
144 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
145 the instruction as well as reading it from memory.
146 (nios2_match_add): New.
147 (nios2_match_sub): New.
148 (nios2_match_addi): New.
149 (nios2_match_orhi): New.
150 (nios2_match_stw): New.
151 (nios2_match_ldw): New.
152 (nios2_match_rdctl): New.
153 (enum branch_condition): New.
154 (nios2_match_branch): New.
155 (nios2_match_jmpi): New.
156 (nios2_match_calli): New.
157 (nios2_match_jmpr): New.
158 (nios2_match_callr): New.
159 (nios2_match_break): New.
160 (nios2_match_trap): New.
161 (nios2_in_epilogue_p): Rewrite to use new functions.
162 (nios2_analyze_prologue): Likewise.
163 (nios2_skip_prologue): Delete unused local limit_pc.
164 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
165 (nios2_get_next_pc): Rewrite to use new functions.
167 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
169 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
171 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
173 Pushed by Joel Brobecker <brobecker@adacore.com>
174 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
175 elements pi_len by the size of the elements before calling
177 (inf_validate_task_sc): Likewise, and properly deallocate the
180 2014-11-23 Doug Evans <xdje42@gmail.com>
182 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
183 number and name if present. All callers updated.
184 (dump_fn_fieldlists): Fix indentation of args.
186 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
188 * MAINTAINERS (Write After Approval): Add myself.
190 2014-11-23 Joel Brobecker <brobecker@adacore.com>
192 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
193 to a bp_call_dummy breakpoint type.
195 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
197 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
198 registering the signal handler.
200 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
202 * event-top.h (call_stdin_event_handler_again_p): Declare.
203 * event-top.c (call_stdin_event_handler_again_p): Define.
204 (stdin_event_handler): Use it.
205 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
206 handler again if there is pending input following a
209 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
211 Pushed by Joel Brobecker <brobecker@adacore.com>
212 * linux-fork.c (checkpoint_command): Print index of new
213 checkpoint in response message.
215 2014-11-23 Yao Qi <yao@codesourcery.com>
217 * valprint.c (read_string): Move local variables 'found_nul',
218 'chunksize' and 'limit' to inner scope. Update comments.
220 2014-11-22 Doug Evans <xdje42@gmail.com>
222 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
224 (search_symbols): Fix comments and whitespace.
226 2014-11-22 Doug Evans <xdje42@gmail.com>
228 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
230 2014-11-21 Doug Evans <dje@google.com>
232 * psymtab.c (psymtab_search_name): Fix whitespace.
234 2014-11-21 Yao Qi <yao@codesourcery.com>
236 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
238 * gnulib/import/Makefile.am: Re-generated.
239 * gnulib/import/Makefile.in: Likewise.
240 * gnulib/import/m4/gnulib-cache.m4: Likewise.
242 2014-11-21 Yao Qi <yao@codesourcery.com>
244 * gdb_wchar.h: Include wchar.h and wctype.h.
245 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
246 include wchar.h and wctype.h.
247 Don't check HAVE_WCHAR_H.
249 2014-11-21 Yao Qi <yao@codesourcery.com>
251 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
253 * gnulib/import/Makefile.am: Re-generated.
254 * gnulib/import/Makefile.in: Likewise.
255 * gnulib/import/m4/gnulib-cache.m4: Likewise.
257 2014-11-21 Yao Qi <yao@codesourcery.com>
259 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
261 * gnulib/import/Makefile.am: Re-generated.
262 * gnulib/import/Makefile.in: Likewise.
263 * gnulib/import/m4/gnulib-cache.m4: Likewise.
265 2014-11-21 Yao Qi <yao@codesourcery.com>
267 * common/common-defs.h: Include alloca.h
268 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
269 * configure: Re-generated.
270 * defs.h: Remove code handling alloca.
271 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
274 2014-11-21 Yao Qi <yao@codesourcery.com>
276 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
278 * gnulib/import/Makefile.am: Re-generated.
279 * gnulib/import/Makefile.in: Likewise..
280 * gnulib/import/m4/gnulib-cache.m4: Likewise.
282 2014-11-21 Yao Qi <yao@codesourcery.com>
284 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
287 2014-11-21 Joel Brobecker <brobecker@adacore.com>
289 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
290 flag_unsigned if HIGH_BOUND is constant and negative.
292 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
295 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
296 modifier from "struct gdbarch" when compiling without Expat (XML)
298 (get_syscall_by_number): Likewise.
299 (get_syscall_by_name): Likewise.
300 (get_syscall_names): Likewise.
302 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
305 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
306 set_xml_syscall_file_name to provide gdbarch.
307 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
308 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
309 * breakpoint.c (print_it_catch_syscall): Adjust call to
310 get_syscall_by_number to provide gdbarch.
311 (print_one_catch_syscall): Likewise.
312 (print_mention_catch_syscall): Likewise.
313 (print_recreate_catch_syscall): Likewise.
314 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
315 and get_syscall_by_name to provide gdbarch.
316 (catch_syscall_completer): Adjust call to get_syscall_names to
318 * gdbarch.c: Regenerate.
319 * gdbarch.h: Likewise.
320 * gdbarch.sh: Forward declare "struct syscalls_info".
321 (xml_syscall_file): New variable.
322 (syscalls_info): Likewise.
323 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
324 set_xml_syscall_file_name to provide gdbarch.
325 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
326 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
327 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
328 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
329 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
330 * xml-syscall.c: Include gdbarch.h.
331 (set_xml_syscall_file_name): Accept gdbarch parameter.
332 (get_syscall_by_number): Likewise.
333 (get_syscall_by_name): Likewise.
334 (get_syscall_names): Likewise.
335 (my_gdb_datadir): Delete global variable.
336 (struct syscalls_info) <my_gdb_datadir>: New variable.
337 (struct syscalls_info) <sysinfo>: Rename variable to
339 (sysinfo): Delete global variable.
340 (have_initialized_sysinfo): Likewise.
341 (xml_syscall_file): Likewise.
342 (sysinfo_free_syscalls_desc): Rename to...
343 (syscalls_info_free_syscalls_desc): ... this.
344 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
345 code to the new layout of "struct syscalls_info".
346 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
348 (syscall_create_syscall_desc): Likewise.
349 (syscall_start_syscall): Likewise.
350 (syscall_parse_xml): Likewise.
351 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
352 (init_sysinfo): Rename to...
353 (init_syscalls_info): ...this. Add gdbarch as a parameter.
354 Adjust function to deal with gdbarch.
355 (xml_get_syscall_number): Delete parameter sysinfo. Accept
356 gdbarch as a parameter. Adjust code.
357 (xml_get_syscall_name): Likewise.
358 (xml_list_of_syscalls): Likewise.
359 (set_xml_syscall_file_name): Accept gdbarch as parameter.
360 (get_syscall_by_number): Likewise.
361 (get_syscall_by_name): Likewise.
362 (get_syscall_names): Likewise.
363 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
364 (get_syscall_by_number): Likewise.
365 (get_syscall_by_name): Likewise.
366 (get_syscall_names): Likewise.
368 2014-11-20 Doug Evans <xdje42@gmail.com>
370 Split struct symtab into two: struct symtab and compunit_symtab.
371 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
372 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
373 to "struct compunit_symtab *". All callers updated.
374 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
375 "struct symtab *" argument to "struct compunit_symtab *".
377 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
378 result to "struct compunit_symtab *". All callers updated.
379 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
380 Change result to "struct compunit_symtab *". All callers updated.
381 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
382 hange type to "struct compunit_symtab *". All uses updated.
383 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
384 Change type to "struct compunit_symtab *". All uses updated.
385 * buildsym.c (struct buildsym_compunit): New struct.
386 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
387 (buildsym_compunit): New static global.
388 (finish_block_internal): Update to fetch objfile from
390 (make_blockvector): Delete objfile argument.
391 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
392 debugformat, producer.
393 (start_buildsym_compunit): New function.
394 (free_buildsym_compunit): Renamed from free_subfiles_list.
396 (patch_subfile_names): Rewrite to use buildsym_compunit.
397 (get_compunit_symtab): New function.
398 (get_macro_table): Delete argument comp_dir. All callers updated.
399 (start_symtab): Change result to "struct compunit_symtab *".
400 All callers updated. Create the subfile of the main source file.
401 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
402 (reset_symtab_globals): Update.
403 (end_symtab_get_static_block): Update to use buildsym_compunit.
404 (end_symtab_without_blockvector): Rewrite.
405 (end_symtab_with_blockvector): Change result to
406 "struct compunit_symtab *". All callers updated.
407 Update to use buildsym_compunit. Don't set symtab->dirname,
408 instead set it in the compunit.
409 Explicitly make sure main symtab is first in its list.
410 Set debugformat, producer, blockvector, block_line_section, and
411 macrotable in the compunit.
412 (end_symtab_from_static_block): Change result to
413 "struct compunit_symtab *". All callers updated.
414 (end_symtab, end_expandable_symtab): Ditto.
415 (set_missing_symtab): Change symtab argument to
416 "struct compunit_symtab *". All callers updated.
417 (augment_type_symtab): Ditto.
418 (record_debugformat): Update to use buildsym_compunit.
419 (record_producer): Update to use buildsym_compunit.
420 * buildsym.h (struct subfile) <dirname>: Delete.
421 <producer, debugformat>: Delete.
422 <buildsym_compunit>: New member.
423 (get_compunit_symtab): Declare.
424 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
425 from primary_symtab. Change type to "struct compunit_symtab *".
427 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
429 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
430 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
431 symtab. Change type to "struct compunit_symtab *". All uses updated.
432 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
434 (dw2_find_last_source_symtab): Ditto.
435 (dw2_lookup_symbol): Ditto.
436 (recursively_find_pc_sect_compunit_symtab): Renamed from
437 recursively_find_pc_sect_symtab. Change result to
438 "struct compunit_symtab *". All callers updated.
439 (dw2_find_pc_sect_compunit_symtab): Renamed from
440 dw2_find_pc_sect_symtab. Change result to
441 "struct compunit_symtab *". All callers updated.
442 (get_compunit_symtab): Renamed from get_symtab. Change result to
443 "struct compunit_symtab *". All callers updated.
444 (recursively_compute_inclusions): Change type of immediate_parent
445 argument to "struct compunit_symtab *". All callers updated.
446 (compute_compunit_symtab_includes): Renamed from
447 compute_symtab_includes. All callers updated. Rewrite to compute
448 includes of compunit_symtabs and not symtabs.
449 (process_full_comp_unit): Update to work with struct compunit_symtab.
450 (process_full_type_unit): Ditto.
451 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
452 (dwarf_decode_lines): Remove special case handling of main subfile.
453 (macro_start_file): Delete argument comp_dir. All callers updated.
454 (dwarf_decode_macro_bytes): Ditto.
455 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
456 use struct compunit_symtab.
457 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
458 * jit.c (finalize_symtab): Build compunit_symtab.
459 * jv-lang.c (get_java_class_symtab): Change result to
460 "struct compunit_symtab *". All callers updated.
461 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
462 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
463 comp_dir. Change type to "struct compunit_symtab *".
465 (new_macro_table): Change comp_dir argument to cust,
466 "struct compunit_symtab *". All callers updated.
467 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
468 nr_primary_symtabs. All uses updated.
469 (count_symtabs_and_blocks): Update to handle compunits.
470 (report_command_stats): Update output, "primary symtabs" renamed to
472 * mdebugread.c (new_symtab): Change result to
473 "struct compunit_symtab *". All callers updated.
474 (parse_procedure): Change type of search_symtab argument to
475 "struct compunit_symtab *". All callers updated.
476 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
478 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
479 symtabs. Change type to "struct compunit_symtab *". All uses updated.
480 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
482 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
484 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
485 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
486 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
487 symtab. Change type to "struct compunit_symtab *". All uses updated.
488 * psymtab.c (psymtab_to_symtab): Change result type to
489 "struct compunit_symtab *". All callers updated.
490 (find_pc_sect_compunit_symtab_from_partial): Renamed from
491 find_pc_sect_symtab_from_partial. Change result type to
492 "struct compunit_symtab *". All callers updated.
493 (lookup_symbol_aux_psymtabs): Change result type to
494 "struct compunit_symtab *". All callers updated.
495 (find_last_source_symtab_from_partial): Ditto.
496 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
497 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
498 and macro_table from compunit.
499 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
500 type to "struct compunit_symtab *". All callers updated.
501 (debug_qf_lookup_symbol): Ditto.
502 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
503 debug_qf_find_pc_sect_symtab, change result type to
504 "struct compunit_symtab *". All callers updated.
505 * symfile.c (allocate_symtab): Delete objfile argument.
507 (allocate_compunit_symtab): New function.
508 (add_compunit_symtab_to_objfile): New function.
509 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
510 Change result type to "struct compunit_symtab *". All uses updated.
511 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
512 Change result type to "struct compunit_symtab *". All uses updated.
513 * symmisc.c (print_objfile_statistics): Compute blockvector count in
515 (dump_symtab_1): Update test for primary source symtab.
516 (maintenance_info_symtabs): Update to handle compunit symtabs.
517 (maintenance_check_symtabs): Ditto.
518 * symtab.c (set_primary_symtab): Delete.
519 (compunit_primary_filetab): New function.
520 (compunit_language): New function.
521 (iterate_over_some_symtabs): Change type of arguments "first",
522 "after_last" to "struct compunit_symtab *". All callers updated.
523 Update to loop over symtabs in each compunit.
524 (error_in_psymtab_expansion): Rename symtab argument to cust,
525 and change type to "struct compunit_symtab *". All callers updated.
526 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
527 Change result type to "struct compunit_symtab *". All callers updated.
528 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
529 Change result type to "struct compunit_symtab *". All callers updated.
530 (find_pc_sect_line): Only loop over symtabs within selected compunit
531 instead of all symtabs in the objfile.
532 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
533 <compunit_symtab> New member.
534 <block_line_section>: Moved to compunit_symtab.
535 <locations_valid>: Ditto.
536 <epilogue_unwind_valid>: Ditto.
537 <macro_table>: Ditto.
539 <debugformat>: Ditto.
542 <call_site_htab>: Ditto.
546 (SYMTAB_COMPUNIT): New macro.
547 (SYMTAB_BLOCKVECTOR): Update definition.
548 (SYMTAB_OBJFILE): Update definition.
549 (SYMTAB_DIRNAME): Update definition.
550 (struct compunit_symtab): New type. Common members among all source
551 symtabs within a compilation unit moved here. All uses updated.
552 (COMPUNIT_OBJFILE): New macro.
553 (COMPUNIT_FILETABS): New macro.
554 (COMPUNIT_DEBUGFORMAT): New macro.
555 (COMPUNIT_PRODUCER): New macro.
556 (COMPUNIT_DIRNAME): New macro.
557 (COMPUNIT_BLOCKVECTOR): New macro.
558 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
559 (COMPUNIT_LOCATIONS_VALID): New macro.
560 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
561 (COMPUNIT_CALL_SITE_HTAB): New macro.
562 (COMPUNIT_MACRO_TABLE): New macro.
563 (ALL_COMPUNIT_FILETABS): New macro.
564 (compunit_symtab_ptr): New typedef.
565 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
567 2014-11-20 Joel Brobecker <brobecker@adacore.com>
569 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
570 if the TYPE_CODE of range_type's base type does not match
571 the TYPE_CODE of encoding_type's base type.
573 2014-11-19 Joel Brobecker <brobecker@adacore.com>
575 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
578 2014-11-19 Joel Brobecker <brobecker@adacore.com>
580 * ada-lang.c (ada_is_redundant_range_encoding): New function.
581 (ada_is_redundant_index_type_desc): New function.
582 (to_fixed_array_type): Ignore parallel XA type if redundant.
584 2014-11-19 Joel Brobecker <brobecker@adacore.com>
586 * ada-lang.c (constrained_packed_array_type): Set the length
587 of the return array as if both bounds where zero if that
588 returned array's index type is dynamic.
590 2014-11-19 Yao Qi <yao@codesourcery.com>
592 * config/i386/go32.mh (CC): Remove.
594 2014-11-18 Doug Evans <xdje42@gmail.com>
596 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
599 2014-11-18 Doug Evans <xdje42@gmail.com>
601 * buildsym.c (buildsym_objfile): New static global.
602 (buildsym_comp_dir): New static global.
603 (finish_block_internal): Delete arg objfile. All callers updated.
604 (finish_block): Delete arg objfile. All callers updated.
605 (start_subfile): Delete arg dirname. All callers updated.
606 (patch_subfile_names): Update buildsym_comp_dir.
607 (get_macro_table): Delete arg objfile. All callers updated.
608 (start_symtab): New arg objfile. All callers updated.
609 Rename arg dirname to comp_dir.
610 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
611 (end_symtab_get_static_block): Delete arg objfile. All callers
613 (end_symtab_without_blockvector): Ditto.
614 (end_symtab_with_blockvector): Ditto.
615 (end_symtab_from_static_block): Ditto.
617 (end_expandable_symtab): Ditto.
618 (augment_type_symtab): Ditto.
619 * coffread.c (coff_start_symtab): New arg objfile. All callers
622 2014-11-18 Doug Evans <xdje42@gmail.com>
624 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
627 2014-11-18 Doug Evans <xdje42@gmail.com>
629 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
630 symtab.dirname updated to use it.
632 2014-11-18 Doug Evans <xdje42@gmail.com>
634 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
635 symtab.objfile updated to use it.
637 2014-11-18 Doug Evans <xdje42@gmail.com>
639 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
641 2014-11-18 Doug Evans <xdje42@gmail.com>
643 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
645 * findvar.c (default_read_var_value): Ditto.
646 * jv-lang.c (add_class_symtab_symbol): Ditto.
647 * parse.c (operator_check_standard): Ditto.
648 * printcmd.c (address_info): Ditto.
649 * symtab.c (fixup_symbol_section): Ditto.
650 (skip_prologue_sal): Ditto.
651 * tracepoint.c (scope_info): Ditto.
652 * valops.c (find_function_in_inferior): Ditto.
653 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
654 * python/py-symbol.c (set_symbol): Ditto.
656 2014-11-18 Doug Evans <xdje42@gmail.com>
658 * buildsym.c (main_subfile): New static global.
659 (free_subfiles_list): New function.
660 (start_symtab): Set main_subfile.
661 (restart_symtab): Replace init of subfiles, current_subfile with
662 call to free_subfiles_list.
663 (watch_main_source_file_lossage): Use main_subfile.
664 (reset_symtab_globals): Replace init of current_subfile with call
665 to free_subfiles_list.
666 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
667 functions, split out from ...
668 (end_symtab_from_static_block): ... here. Rewrite to call them.
670 2014-11-18 Doug Evans <xdje42@gmail.com>
672 The result of symtab expansion is always a primary symtab.
673 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
674 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
675 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
676 (psymtab_to_symtab): Add comment and assert.
677 (map_matching_symbols_psymtab): Remove unnecessary test for
680 2014-11-15 Doug Evans <xdje42@gmail.com>
683 * symtab.c (find_pc_line_symtab): New function.
684 * symtab.h (find_pc_line_symtab): Declare.
685 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
687 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
688 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
689 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
690 * tui/tui-win.c (make_visible_with_new_height): Ditto.
691 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
692 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
694 2014-11-15 Doug Evans <xdje42@gmail.com>
696 * symtab.c (expand_symtab_containing_pc): Renamed from
697 find_pc_sect_symtab_via_partial. All callers updated.
699 2014-11-15 Yao Qi <yao@codesourcery.com>
701 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
703 2014-11-14 Joel Brobecker <brobecker@adacore.com>
705 * common/common-defs.h: Move <stdarg.h> #include ahead of
708 2014-11-14 Pedro Alves <palves@redhat.com>
710 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
711 [!PHONY_ICONV] (gdb_iconv): New function.
712 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
714 2014-11-13 Doug Evans <dje@google.com>
717 * dwarf2read.c (find_slot_in_mapped_hash): Handle
718 "(anonymous namespace)".
720 2014-11-13 Doug Evans <dje@google.com>
722 * dwarf2read.c (update_enumeration_type_from_children): Avoid
725 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
727 * NEWS (maint set target-async): Fix typo.
729 2014-11-12 Pedro Alves <palves@redhat.com>
731 * infrun.c (enum infwait_states, infwait_state): Delete.
733 2014-11-12 Pedro Alves <palves@redhat.com>
735 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
736 Rewrite stepping over a permanent breakpoint.
737 (thread_still_needs_step_over, proceed): Don't set
738 stepping_over_breakpoint for permanent breakpoints.
739 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
740 single-step breakpoints out of the target on hardware step
742 (process_event_stop_test): If stepping a permanent breakpoint
743 doesn't hit the step-resume breakpoint, delete the step-resume
745 (switch_back_to_stepped_thread): Also check if the stepped thread
746 has advanced already on hardware step targets.
747 (currently_stepping): Return true if the thread stepped a
750 2014-11-12 Pedro Alves <palves@redhat.com>
752 Mark locations as permanent, not the whole breakpoint.
753 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
754 (mark_breakpoints_out): Don't mark permanent breakpoints as
756 (breakpoint_init_inferior): Use mark_breakpoints_out.
757 (breakpoint_here_p): Adjust.
758 (bpstat_stop_status, describe_other_breakpoints): Remove handling
759 of permanent breakpoints.
760 (make_breakpoint_permanent): Mark each location as permanent,
761 instead of marking the breakpoint.
762 (add_location_to_breakpoint): If the location is permanent, mark
763 it as such, and as inserted.
764 (init_breakpoint_sal): Don't make the breakpoint permanent here.
765 (bp_location_compare, update_global_location_list): Adjust.
766 (update_breakpoint_locations): Don't make the breakpoint permanent
768 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
770 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
771 (struct bp_location) <permanent>: New field.
772 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
773 reference to bp_permanent.
775 2014-11-12 Pedro Alves <palves@redhat.com>
777 * arch-utils.c (default_skip_permanent_breakpoint): New function.
778 * arch-utils.h (default_skip_permanent_breakpoint): New
780 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
781 Install default_skip_permanent_breakpoint as default method.
782 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
783 (i386_gdbarch_init): Don't install it.
784 * infrun.c (resume): Assume there's always a
785 gdbarch_skip_permanent_breakpoint implementation.
786 * gdbarch.h, gdbarch.c: Regenerate.
788 2014-11-11 Daniel Colascione <dancol@dancol.org>
790 Warn about cross-PID-namespace debugging.
791 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
792 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
793 * linux-thread-db.c (check_pid_namespace_match): New function.
794 (thread_db_inferior_created): Call it.
796 2014-11-10 Doug Evans <xdje42@gmail.com>
798 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
799 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
801 2014-11-10 Doug Evans <xdje42@gmail.com>
803 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
805 2014-11-10 Doug Evans <xdje42@gmail.com>
808 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
809 (lookup_static_symbol): Move definition to new location and rewrite.
810 (lookup_symbol_in_objfile): New function.
811 (lookup_symbol_global_iterator_cb): Call it.
813 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
815 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
817 2014-11-07 Pedro Alves <palves@redhat.com>
819 * infrun.c (process_event_stop_test) <subroutine check>: Don't
820 check if we did a "nexti" inside a prologue.
821 * symtab.c (in_prologue): Delete function.
822 * symtab.h (in_prologue): Delete declaration.
824 2014-11-06 Doug Evans <xdje42@gmail.com>
826 * symtab.h (lookup_global_symbol): Improve function comment.
828 2014-11-06 Doug Evans <xdje42@gmail.com>
830 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
832 * symtab.h (lookup_global_symbol): Update decl.
833 (lookup_static_symbol): Move decl to better location.
835 2014-11-06 Doug Evans <xdje42@gmail.com>
837 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
839 2014-11-06 Doug Evans <xdje42@gmail.com>
841 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
843 (lookup_symbol_in_all_objfiles): Renamed from
844 lookup_symbol_aux_symtabs. All callers updated.
845 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
847 (lookup_symbol_in_objfile_symtabs): Renamed from
848 lookup_symbol_aux_objfile. All callers updated.
850 2014-11-06 Doug Evans <xdje42@gmail.com>
852 * symtab.c (lookup_symbol_in_block): Renamed from
853 lookup_symbol_aux_block. All callers updated.
855 2014-11-06 Doug Evans <xdje42@gmail.com>
857 * symtab.c (lookup_static_symbol): Renamed from
858 lookup_static_symbol_aux. All callers updated.
859 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
862 2014-11-06 Doug Evans <xdje42@gmail.com>
864 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
865 * block.c (block_lookup_symbol): Use it.
866 * cp-support.c (make_symbol_overload_list_block): Use it.
867 * symtab.c (iterate_over_symbols): Use it.
869 2014-11-06 Doug Evans <xdje42@gmail.com>
871 * symtab.c (lookup_block_symbol): Moved to ...
872 * block.c (block_lookup_symbol): ... here and renamed.
874 * block.h (block_lookup_symbol): Declare.
875 * symtab.h (lookup_block_symbol): Delete.
877 2014-11-06 Doug Evans <xdje42@gmail.com>
879 * ada-lang.c (ada_make_symbol_completion_list): Use
880 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
881 * symtab.c (lookup_objfile_from_block): Ditto.
883 2014-11-06 Doug Evans <xdje42@gmail.com>
885 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
888 2014-11-06 Doug Evans <xdje42@gmail.com>
890 * objfiles.c (get_objfile_arch): Constify.
891 * objfiles.h (get_objfile_arch): Update prototype.
892 * solib.c (solib_global_lookup): Fetch arch from objfile,
895 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
897 * nios2-tdep.c (wild_insn): Delete.
898 (profiler_insn, irqentry_insn): Delete.
899 (nios2_match_sequence): Delete.
900 (nios2_analyze_prologue): Update comments. Remove matching
901 of obsolete profiler_insn and irqentry_insn sequences.
903 2014-11-05 Alan Modra <amodra@gmail.com>
905 * charset.c (convert_between_encodings): Shrink obstack using
907 * minsyms.c (install_minimal_symbols): Likewise.
908 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
909 to char* before doing pointer arithmetic.
911 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
913 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
915 2014-11-04 Pedro Alves <palves@redhat.com>
917 * breakpoint.c (breakpoint_thread_match): Delete function.
918 * breakpoint.h (breakpoint_thread_match): Delete declaration.
920 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
923 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
924 the method args also under EVAL_SKIP when evaluating method
925 calls under EVAL_SKIP.
927 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
929 * dwarf2loc.c (read_pieced_value): Do big endian
930 processing only if gdb_regnum is not -1.
931 (write_pieced_value): Ditto.
933 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
935 * arm-linux-tdep.c (arm_linux_init_abi): Use
936 info.byte_order_for_code to choose endianity of breakpoint
937 instructions snippets.
939 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
941 * arm-tdep.c (extract_arm_insn): Use
942 gdbarch_byte_order_for_code to read arm instruction.
944 2014-11-02 Doug Evans <xdje42@gmail.com>
946 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
948 2014-11-02 Doug Evans <xdje42@gmail.com>
950 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
951 main_subfile before returning.
953 2014-10-31 Doug Evans <xdje42@gmail.com>
955 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
956 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
958 2014-10-31 Doug Evans <xdje42@gmail.com>
960 * valops.c (value_cast_pointers): Fix whitespace.
961 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
964 2014-10-30 Doug Evans <dje@google.com>
966 * NEWS: Mention ability add attributes to gdb.Objfile and
967 gdb.Progspace objects.
968 * python/py-objfile.c (objfile_object): New member dict.
969 (objfpy_dealloc): Py_XDECREF dict.
970 (objfpy_initialize): Initialize dict.
971 (objfile_getset): Add __dict__.
972 (objfile_object_type): Set tp_dictoffset member.
973 * python/py-progspace.c (progspace_object): New member dict.
974 (pspy_dealloc): Py_XDECREF dict.
975 (pspy_initialize): Initialize dict.
976 (pspace_getset): Add __dict__.
977 (pspace_object_type): Set tp_dictoffset member.
979 2014-10-30 Yao Qi <yao@codesourcery.com>
981 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
982 replace '\\' with '\\\\'.
984 2014-10-29 Joel Brobecker <brobecker@adacore.com>
988 2014-10-29 Pedro Alves <palves@redhat.com>
991 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
992 instead of assuming a thread with a stepping range is always
995 2014-10-29 Pedro Alves <palves@redhat.com>
998 * event-top.c (change_line_handler): Call
999 gdb_rl_callback_handler_remove instead of
1000 rl_callback_handler_remove.
1001 (callback_handler_installed): New global.
1002 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1003 (gdb_rl_callback_handler_reinstall): New functions.
1004 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1005 gdb_rl_callback_handler_install instead of
1006 rl_callback_handler_remove and rl_callback_handler_install.
1007 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1008 instead of rl_callback_handler_remove.
1009 * event-top.h (gdb_rl_callback_handler_remove)
1010 (gdb_rl_callback_handler_install)
1011 (gdb_rl_callback_handler_reinstall): New declarations.
1012 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1014 (fetch_inferior_event): Install it.
1015 * top.c (gdb_readline_wrapper_line) Call
1016 gdb_rl_callback_handler_remove instead of
1017 rl_callback_handler_remove.
1018 (gdb_readline_wrapper_cleanup): Don't call
1019 rl_callback_handler_install.
1021 2014-10-29 Pedro Alves <palves@redhat.com>
1023 * event-top.c (command_line_handler): Clear the first byte of
1024 linebuffer, when it is first allocated.
1026 2014-10-29 Pedro Alves <palves@redhat.com>
1028 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1031 2014-10-29 Pedro Alves <palves@redhat.com>
1035 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1036 (tui_allowed_p): Delete function.
1037 * tui/tui.c: Include "interps.h".
1038 (tui_enable): Don't use tui_allowed_p. Error out here with
1039 detailed error messages if the TUI is the top level interpreter,
1040 or if output is not a terminal. Use newterm instead of initscr,
1041 and error out if initializing the terminal fails. Also error out if
1042 the terminal doesn't support cursor addressing.
1043 * tui/tui.h (tui_allowed_p): Delete declaration.
1045 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1047 * arm-tdep.c (arm_skip_stack_protector): Return early if
1048 address loaded by first "ldr" instruction does not have
1049 a corresponding minimal symbol. Update comment.
1051 2014-10-29 Yao Qi <yao@codesourcery.com>
1053 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1054 loaded address correctly of ldr instruction.
1056 2014-10-28 Pedro Alves <palves@redhat.com>
1059 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1061 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1062 thread's stepped_breakpoint field. Skip if reverse debugging.
1064 (init_thread_stepping_state, handle_signal_stop): Clear the
1065 thread's stepped_breakpoint field.
1067 2014-10-27 Pedro Alves <palves@redhat.com>
1069 * remote.c (remote_thread_alive): New, factored out from ...
1070 (remote_thread_alive): ... this.
1071 (remote_update_thread_list): Bail out before deleting threads if
1072 the target returned an empty list, and, the current thread has a
1075 2014-10-27 Pedro Alves <palves@redhat.com>
1077 * infrun.c (handle_signal_stop): Also skip handlers when a random
1078 signal arrives while handling a "stepi" or a "nexti". Set the
1079 thread's 'step_after_step_resume_breakpoint' flag.
1081 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1083 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1084 (arm_record_ld_st_imm_offset): Reimplement to cover all
1085 load/store cases for ARM opcode 010.
1086 (arm_record_ld_st_multiple): Reimplement to cover all
1087 load/store cases for ARM opcode 100.
1089 2014-10-26 Doug Evans <xdje42@gmail.com>
1091 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1093 2014-10-26 Doug Evans <xdje42@gmail.com>
1095 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1096 parameter "kind" to "block_index".
1097 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1099 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1101 2014-10-26 Doug Evans <xdje42@gmail.com>
1103 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1105 2014-10-26 Doug Evans <xdje42@gmail.com>
1107 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1110 2014-10-26 Doug Evans <xdje42@gmail.com>
1112 * parser-defs.h (block_found): Move decl from here ...
1113 * symtab.h (block_found): ... to here.
1115 2014-10-26 Doug Evans <xdje42@gmail.com>
1117 * symtab.h (struct field_of_this_result): Fix typo in comment.
1118 (lookup_symbol_in_language): Move function comment here.
1119 (lookup_symbol): Improve function comment.
1120 (basic_lookup_symbol_nonlocal): Ditto.
1121 (lookup_symbol_static, lookup_symbol_global): Ditto.
1122 (lookup_symbol_aux_block): Ditto.
1123 (lookup_language_this): Add function comment.
1124 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1126 (lookup_block_symbol): Improve function comment.
1127 (lookup_struct): Fix capitalization in function comment.
1128 (lookup_transparent_type): Add function comment.
1129 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1130 Improve function comment.
1131 (lookup_objfile_from_block): Add function comment.
1132 * symtab.c (lookup_symbol_in_language): Update function comment.
1133 (lookup_symbol, lookup_language_this): Ditto.
1134 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1135 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1136 (basic_lookup_symbol_nonlocal): Ditto.
1137 (lookup_symbol_static, lookup_symbol_global): Ditto.
1138 (lookup_transparent_type, lookup_block_symbol): Ditto.
1140 2014-10-25 Doug Evans <xdje42@gmail.com>
1142 * symtab.c (types_info): Delete forward decl.
1143 (functions_info, variables_info, sources_info): Ditto.
1144 (_initialize_symtab): Rewrite forward decl to use
1145 initialize_file_ftype.
1147 2014-10-25 Doug Evans <xdje42@gmail.com>
1149 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1151 2014-10-25 Doug Evans <xdje42@gmail.com>
1153 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1154 of local var child_die.
1156 2014-10-24 Don Breazeal <donb@codesourcery.com>
1158 * infrun.c (follow_fork_inferior): Update fork message printing
1159 to use target_terminal_ours_for_output instead of
1160 target_terminal_ours, to use _() for all format strings, to print
1161 "vfork" instead of "fork" for vforks, and to add a detach message.
1162 (handle_vfork_child_exec_or_exit): Update message printing to use
1163 target_terminal_ours_for_output instead of target_terminal_ours, to
1164 use _() for all format strings, and to fix some formatting.
1166 2014-10-24 Pedro Alves <palves@redhat.com>
1168 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1169 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1170 * config/vax/vax.mh: Delete.
1171 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1172 obsolete configurations section.
1173 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1174 * vax-nat.c: Delete file.
1176 2014-10-24 Pedro Alves <palves@redhat.com>
1178 * NEWS (Removed targets): Add OS/arch column.
1180 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1182 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1183 on the arg type of a constructor only if it is of reference type.
1185 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1187 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1188 accessors and constants from nios2 opcodes update.
1189 (nios2_get_next_pc): Likewise.
1191 2014-10-19 Doug Evans <xdje42@gmail.com>
1193 * gdbthread.h (set_running): Fix comment.
1194 (set_executing, finish_thread_state): Fix comment.
1196 2014-10-18 Doug Evans <xdje42@gmail.com>
1198 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1200 2014-10-17 Doug Evans <dje@google.com>
1202 * NEWS: Mention new event gdb.clear_objfiles.
1203 * python/py-event.h (emit_clear_objfiles_event): Clear
1204 * python/py-events.h (events_object): New member clear_objfiles.
1205 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1207 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1208 emit clear_objfiles event.
1209 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1211 (emit_clear_objfiles_event): New function.
1212 (clear_objfiles): New event.
1213 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1215 * python/python.c (_initialize_python): Call
1216 gdbpy_initialize_clear_objfiles_event.
1218 2014-10-17 Doug Evans <dje@google.com>
1220 * NEWS: Mention new gdb.Objfile.progspace attribute.
1221 * python/py-objfile.c (objfpy_get_progspace): New function.
1222 (objfile_getset): New entry for "progspace".
1224 2014-10-17 Pedro Alves <palves@redhat.com>
1227 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1228 returns a copy of the input.
1229 (run_command_1, continue_command, step_1, jump_command)
1230 (signal_command, until_command, advance_command, finish_command)
1231 (attach_command): Adjust and install a cleanup to free the
1234 2014-10-17 Pedro Alves <palves@redhat.com>
1237 * infcmd.c (continue_1): If continuing all threads in the
1238 foreground, make sure the inferior's terminal settings are put in
1241 2014-10-17 Pedro Alves <palves@redhat.com>
1244 * annotate.c (annotate_breakpoints_invalid): Use
1245 target_terminal_our_for_output instead of target_terminal_ours.
1246 Give back the terminal to the target.
1247 (annotate_frames_invalid): Likewise.
1249 2014-10-17 Pedro Alves <palves@redhat.com>
1251 * target.c (enum terminal_state): New enum.
1252 (terminal_state): New global.
1253 (target_terminal_init): New function.
1254 (target_terminal_inferior): Skip if inferior already owns the
1256 (target_terminal_ours, target_terminal_ours_for_output): New
1258 * target.h (target_terminal_init): Convert to function prototype.
1259 (target_terminal_ours_for_output): Convert to function prototype
1261 (target_terminal_ours): Convert to function prototype and tweak
1263 * windows-nat.c (do_initial_windows_stuff): Call
1264 target_terminal_init instead of child_terminal_init_with_pgrp.
1266 2014-10-17 Pedro Alves <palves@redhat.com>
1268 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1269 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1270 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1272 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1273 * ada-lang.h [__alpha__ && __osf__]
1274 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1275 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1276 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1278 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1280 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1281 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1282 * configure: Regenerate.
1283 * configure.ac: Remove references to osf.
1284 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1285 section. Remove all other references to osf.
1286 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1287 Remove all other references to osf.
1288 * dec-thread.c: Delete file.
1289 * defs.h (GDB_OSABI_OSF1): Delete.
1290 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1292 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1293 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1295 (unconditionally_kill_inferior)
1296 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1297 * solib-osf.c: Delete file.
1299 2014-10-17 Pedro Alves <palves@redhat.com>
1301 * remote.c (clear_threads_listing_context): Move higher up, out of
1302 the HAVE_LIBEXPAT guard.
1304 2014-10-16 Tristan Gingold <gingold@adacore.com>
1306 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1307 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1310 2014-10-15 Pedro Alves <palves@redhat.com>
1312 * dec-thread.c (dec_thread_count_gdb_threads)
1313 (dec_thread_add_gdb_thread): Delete.
1314 (dec_thread_update_thread_list): Delete.
1315 (dec_thread_find_new_threads): Rename to ...
1316 (dec_thread_update_thread_list): ... this. Delete GDB-size
1317 threads that are no longer found in dec_thread_list.
1318 (resync_thread_list): Delete.
1319 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1322 2014-10-15 Pedro Alves <palves@redhat.com>
1324 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1325 * remote.c (remote_update_thread_list): Skip calling prune_threads
1326 if any thread listing method is supported, and instead walk over
1327 the set of remote threads listed, deleting those that are not
1328 found in GDB's thread list.
1330 2014-10-15 Pedro Alves <palves@redhat.com>
1332 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1333 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1334 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1335 (bsd_uthread_target): Adjust.
1336 * corelow.c (core_open): Adjust.
1337 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1338 (dec_thread_update_thread_list): New function.
1339 (init_dec_thread_ops): Adjust.
1340 * gdbthread.h (prune_threads): New declaration.
1341 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1342 (thread_db_update_thread_list): ... this. Call prune_threads.
1343 (init_thread_db_ops): Adjust.
1344 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1345 (procfs_update_thread_list): ... this. Call prune_threads.
1346 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1348 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1349 (obsd_update_thread_list): ... this. Call prune_threads.
1350 (obsd_add_target): Adjust.
1351 * procfs.c (procfs_target): Adjust.
1352 (procfs_notice_thread): Update comment.
1353 (procfs_find_new_threads): Rename to ...
1354 (procfs_update_thread_list): ... this. Call prune_threads.
1355 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1357 (ravenscar_wait): Adjust.
1358 (ravenscar_find_new_threads): Rename to ...
1359 (ravenscar_update_thread_list): ... this. Call prune_threads.
1360 (init_ravenscar_thread_ops): Adjust.
1361 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1362 (record_btrace_update_thread_list): ... this. Adjust comment.
1363 (init_record_btrace_ops): Adjust.
1364 * remote.c (remote_threads_info): Rename to ...
1365 (remote_update_thread_list): ... this. Call prune_threads.
1366 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1368 * sol-thread.c (check_for_thread_db): Adjust.
1369 (sol_find_new_threads_callback): Rename to ...
1370 (sol_update_thread_list_callback): ... this.
1371 (sol_find_new_threads): Rename to ...
1372 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1373 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1374 * target-delegates.c: Regenerate.
1375 * target.c (target_find_new_threads): Rename to ...
1376 (target_update_thread_list): ... this.
1377 * target.h (struct target_ops): Rename to_find_new_threads field
1378 to to_update_thread_list.
1379 (target_find_new_threads): Rename to ...
1380 (target_update_thread_list): ... this.
1381 * thread.c (prune_threads): Make extern.
1382 (update_thread_list): Adjust.
1384 2014-10-15 Pedro Alves <palves@redhat.com>
1386 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1387 Add describing comment. Return -1 if the qL packet is not
1389 (struct thread_item, thread_item_t): Move higher up in
1390 the file. Add comments.
1391 (struct threads_parsing_context): Move higher up in
1392 the file, add comments, and remote to ...
1393 (struct threads_listing_context): ... this.
1394 (remote_newthread_step): Don't add the thread to GDB's thread
1395 database here. Instead push it to the thread_listing_context
1397 (remote_find_new_threads): Rename to ...
1398 (remote_get_threads_with_ql): ... this. Add target_ops and
1399 targets_listing_context parameters. Pass down context.
1400 (start_thread): Adjust.
1401 (clear_threads_parsing_context): Rename to ...
1402 (clear_threads_listing_context): ... this.
1403 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1404 remote_threads_info.
1405 (remote_get_threads_with_qthreadinfo): Ditto.
1406 (remote_threads_info): Reimplement.
1408 2014-10-15 Pedro Alves <palves@redhat.com>
1410 * infrun.c (resume): Don't force displaced-stepping for all
1411 single-steps on software single-stepping archs.
1413 2014-10-15 Pedro Alves <palves@redhat.com>
1415 * breakpoint.c (single_step_breakpoints): Delete global.
1416 (insert_single_step_breakpoint): Adjust to store the breakpoint
1417 pointer in the current thread.
1418 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1419 (cancel_single_step_breakpoints): Delete functions.
1420 (breakpoint_has_location_inserted_here): Make extern.
1421 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1423 * breakpoint.h (breakpoint_has_location_inserted_here): New
1425 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1426 (cancel_single_step_breakpoints): Remove declarations.
1427 * gdbthread.h (struct thread_control_state)
1428 <single_step_breakpoints>: New field.
1429 (delete_single_step_breakpoints)
1430 (thread_has_single_step_breakpoints_set)
1431 (thread_has_single_step_breakpoint_here): New declarations.
1432 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1433 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1434 (singlestep_pc): Delete globals.
1435 (infrun_thread_ptid_changed): Remove references to removed
1437 (resume_cleanups): Delete the current thread's single-step
1439 (maybe_software_singlestep): Remove references to removed globals.
1440 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1441 delete_single_step_breakpoints.
1442 (init_wait_for_inferior): Remove references to removed globals.
1443 (delete_thread_infrun_breakpoints): Delete the thread's
1444 single-step breakpoints too.
1445 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1446 single-step breakpoints here.
1447 (delete_stopped_threads_single_step_breakpoints): New function.
1448 (adjust_pc_after_break): Adjust to use
1449 thread_has_single_step_breakpoints_set.
1450 (handle_inferior_event): Remove references to removed globals.
1451 Use delete_stopped_threads_single_step_breakpoints.
1452 (handle_signal_stop): Adjust to per-thread single-step
1453 breakpoints. Swap test order to do cheaper tests first.
1454 (switch_back_to_stepped_thread): Extend debug output. Remove
1455 references to removed globals.
1456 * record-full.c (record_full_wait_1): Adjust to per-thread
1457 single-step breakpoints.
1458 * thread.c (delete_single_step_breakpoints)
1459 (thread_has_single_step_breakpoints_set)
1460 (thread_has_single_step_breakpoint_here): New functions.
1461 (clear_thread_inferior_resources): Also delete the thread's
1462 single-step breakpoints.
1464 2014-10-15 Pedro Alves <palves@redhat.com>
1466 * thread.c (delete_thread_breakpoint): New function.
1467 (delete_step_resume_breakpoint)
1468 (delete_exception_resume_breakpoint): Use it.
1469 (delete_at_next_stop): New function.
1470 (clear_thread_inferior_resources): Use delete_at_next_stop.
1472 2014-10-15 Pedro Alves <palves@redhat.com>
1474 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1475 (breakpoint_inserted_here_p): ... here. Remove special case for
1476 software single-step breakpoints.
1477 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1478 (software_breakpoint_inserted_here_p): ... here. Remove special
1479 case for software single-step breakpoints.
1480 (bp_target_info_copy_insertion_state)
1481 (deprecated_insert_raw_breakpoint)
1482 (deprecated_remove_raw_breakpoint): Delete functions.
1483 * breakpoint.h (deprecated_insert_raw_breakpoint)
1484 (deprecated_remove_raw_breakpoint): Remove declarations.
1486 2014-10-15 Pedro Alves <palves@redhat.com>
1489 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1490 Delete array globals.
1491 (single_step_breakpoints): New global.
1492 (breakpoint_xfer_memory): Remove special handling for single-step
1494 (update_breakpoints_after_exec): Delete bp_single_step
1496 (detach_breakpoints): Remove special handling for single-step
1498 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1499 (bpstat_stop_status): Add comment.
1500 (bpstat_what, bptype_string, print_one_breakpoint_location)
1501 (adjust_breakpoint_address, init_bp_location): Handle
1503 (new_single_step_breakpoint): New function.
1504 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1505 handling for single-step breakpoints.
1506 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1507 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1509 (detach_single_step_breakpoints, find_single_step_breakpoint):
1511 (breakpoint_has_location_inserted_here): New function.
1512 (single_step_breakpoint_inserted_here_p): Rewrite.
1513 * breakpoint.h: Remove FIXME.
1514 (enum bptype) <bp_single_step>: New enum value.
1515 (insert_single_step_breakpoint): Update comment.
1516 * infrun.c (resume_cleanups)
1517 (delete_step_thread_step_resume_breakpoint): Remove single-step
1519 (fetch_inferior_event): Install a cleanup that removes infrun
1521 (switch_back_to_stepped_thread) <expect thread advanced also>:
1522 Clear step-over info.
1524 2014-10-15 Pedro Alves <palves@redhat.com>
1526 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1527 (delete_thread_infrun_breakpoints): New function, with parts
1528 salvaged from delete_step_resume_breakpoint_callback.
1529 (delete_step_thread_step_resume_breakpoint): Delete.
1530 (for_each_just_stopped_thread_callback_func): New typedef.
1531 (for_each_just_stopped_thread): New function.
1532 (delete_just_stopped_threads_infrun_breakpoints): New function.
1533 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1534 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1536 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1538 2014-10-15 Pedro Alves <palves@redhat.com>
1540 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1541 trying to step past a non-steppable watchpoint.
1542 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1544 * infrun.c (struct step_over_info): Add new field
1545 'nonsteppable_watchpoint_p' and adjust comments.
1546 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1548 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1549 (stepping_past_nonsteppable_watchpoint): New function.
1550 (step_over_info_valid_p): Also return true if stepping past a
1551 nonsteppable watchpoint.
1552 (proceed): Adjust call to set_step_over_info. Remove reference to
1554 (init_wait_for_inferior): Remove reference to init_infwait_state.
1555 (waiton_ptid): Delete global.
1556 (struct execution_control_state)
1557 <stepped_after_stopped_by_watchpoint>: Delete field.
1558 (wait_for_inferior, fetch_inferior_event): Always pass
1559 minus_one_ptid to target_wait.
1560 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1562 (init_infwait_state): Delete function.
1563 (handle_inferior_event): Remove infwait_state handling.
1564 (handle_signal_stop) <watchpoints handling>: Adjust after
1565 stepped_after_stopped_by_watchpoint removal. Don't remove
1566 breakpoints here nor set infwait_state. Set the thread's
1567 stepping_over_watchpoint flag, and call keep_going instead.
1568 (keep_going): Handle stepping_over_watchpoint. Adjust
1569 set_step_over_info calls.
1570 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1573 2014-10-15 Pedro Alves <palves@redhat.com>
1575 * infrun.c (step_over_info_valid_p): New function.
1576 (resume): Use step_over_info_valid_p instead of checking the
1577 threads's trap_expected flag.
1579 2014-10-15 Doug Evans <dje@google.com>
1580 Walfred Tedeschi <walfred.tedeschi@intel.com>
1583 * python/lib/gdb/__init__.py (packages): Add "printer".
1584 * python/lib/gdb/command/bound_registers.py: Moved to ...
1585 * python/lib/gdb/printer/bound_registers.py: ... here.
1586 Add printer to global set of builtin printers. Rename printer from
1587 "bound" to "mpx_bound128".
1588 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1589 registered as global "builtin" printer.
1590 (add_builtin_pretty_printer): New function.
1591 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1592 gdb/printer/__init__.py.
1594 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1596 * Makefile.in (SFILES): Remove d-support.c.
1597 (COMMON_OBS): Remove d-support.o.
1598 * d-lang.h (d_parse_symbol): Remove declaration.
1599 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1600 * d-support.c: Remove file.
1602 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1604 * gdb/infrun.c (process_event_stop_test): Apply
1605 gdbarch_addr_bits_remove to longjmp resume address.
1607 2014-10-15 Pedro Alves <palves@redhat.com>
1609 * regformats/microblaze.dat: Delete file.
1611 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1613 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1614 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1616 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1618 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1621 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1625 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1626 with qualified args.
1628 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1630 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1631 of the case where the second operand is a pointer.
1632 <BINOP_SUB>: Likewise.
1634 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1636 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1637 only if it is not NULL.
1638 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1639 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1640 (struct probe_ops) <clear_semaphore>: Likewise.
1641 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1643 (stop_tracing): Likewise, for clear_semaphore.
1645 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1647 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1648 using language_c, instead of current_language.
1650 2014-10-13 Doug Evans <dje@google.com>
1652 * python/py-objfile.c (objfpy_initialize): New function.
1653 (objfpy_new, objfile_to_objfile_object): Call it.
1654 * python/py-progspace.c (pspy_initialize): New function.
1655 (pspy_new, pspace_to_pspace_object): Call it.
1657 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1658 Jan Kratochvil <jan.kratochvil@redhat.com>
1660 Fix "save breakpoints" for "catch" command.
1661 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1664 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1666 Fix "save breakpoints" for "disable $bpnum" command.
1667 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1669 2014-10-10 Pedro Alves <palves@redhat.com>
1671 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1672 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1673 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1674 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1676 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1677 * configure.ac: Remove references to IRIX.
1678 * configure.host: Add *-*-irix* to the obsolete hosts section.
1679 Remove all other references to irix.
1680 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1683 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1685 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1686 isn't valid, release the tdesc arch data and return NULL.
1688 2014-10-10 Pedro Alves <palves@redhat.com>
1690 * linux-tdep.c: Include observer.h.
1691 (linux_inferior_data): New global.
1692 (struct linux_info): New structure.
1693 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1694 (get_linux_inferior_data): New functions.
1695 (linux_vsyscall_range): Rename to ...
1696 (linux_vsyscall_range_raw): ... this.
1697 (linux_vsyscall_range): New function; handles caching.
1698 (_initialize_linux_tdep): Register linux_inferior_data. Install
1699 inferior_exit and inferior_appeared observers.
1701 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1702 Pedro Alves <palves@redhat.com>
1705 * solib-svr4.c (svr4_read_so_list): Rename to ...
1706 (svr4_current_sos_1): ... this and change the function comment.
1707 (svr4_current_sos): New function.
1709 2014-10-10 Pedro Alves <palves@redhat.com>
1711 * arch-utils.c (default_vsyscall_range): New function.
1712 * arch-utils.h (default_vsyscall_range): New declaration.
1713 * gdbarch.sh (vsyscall_range): New hook.
1714 * gdbarch.h, gdbarch.c: Regenerate.
1715 * linux-tdep.c (linux_vsyscall_range): New function.
1716 (linux_init_abi): Install linux_vsyscall_range as
1717 vsyscall_range gdbarch hook.
1718 * memrange.c (address_in_mem_range): New function.
1719 * memrange.h (address_in_mem_range): New declaration.
1720 * symfile-mem.c (find_vdso_size): Delete function.
1721 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1723 2014-10-10 Pedro Alves <palves@redhat.com>
1725 * infrun.c (normal_stop): Fix typo in comment.
1727 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1730 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1731 typo when using logical AND to determine instruction type.
1733 2014-10-09 Yao Qi <yao@codesourcery.com>
1735 * infrun.c (handle_signal_stop): Remove local variable
1738 2014-10-08 Stan Shebs <stan@codesourcery.com>
1740 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1742 2014-10-08 Gary Benson <gbenson@redhat.com>
1744 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1746 2014-10-08 Gary Benson <gbenson@redhat.com>
1748 * common/common-defs.h: Include common-exceptions.h.
1749 * exceptions.h: Do not include common-exceptions.h.
1751 2014-10-08 Gary Benson <gbenson@redhat.com>
1753 * common/common-defs.h: Include cleanups.h.
1754 * common/common-exceptions.c: Do not include cleanups.h.
1755 * utils.h: Likewise.
1757 2014-10-08 Gary Benson <gbenson@redhat.com>
1759 * ada-lang.c: Do not include exceptions.h.
1760 * ada-valprint.c: Likewise.
1761 * amd64-tdep.c: Likewise.
1762 * auto-load.c: Likewise.
1763 * block.c: Likewise.
1764 * break-catch-throw.c: Likewise.
1765 * breakpoint.c: Likewise.
1766 * btrace.c: Likewise.
1767 * c-lang.c: Likewise.
1768 * cli/cli-cmds.c: Likewise.
1769 * cli/cli-interp.c: Likewise.
1770 * cli/cli-script.c: Likewise.
1771 * completer.c: Likewise.
1772 * corefile.c: Likewise.
1773 * corelow.c: Likewise.
1774 * cp-abi.c: Likewise.
1775 * cp-support.c: Likewise.
1776 * cp-valprint.c: Likewise.
1777 * darwin-nat.c: Likewise.
1778 * dwarf2-frame-tailcall.c: Likewise.
1779 * dwarf2-frame.c: Likewise.
1780 * dwarf2loc.c: Likewise.
1781 * dwarf2read.c: Likewise.
1783 * event-loop.c: Likewise.
1784 * event-top.c: Likewise.
1785 * f-valprint.c: Likewise.
1786 * frame-unwind.c: Likewise.
1787 * frame.c: Likewise.
1788 * gdbtypes.c: Likewise.
1789 * gnu-v2-abi.c: Likewise.
1790 * gnu-v3-abi.c: Likewise.
1791 * guile/scm-auto-load.c: Likewise.
1792 * guile/scm-breakpoint.c: Likewise.
1793 * guile/scm-cmd.c: Likewise.
1794 * guile/scm-frame.c: Likewise.
1795 * guile/scm-lazy-string.c: Likewise.
1796 * guile/scm-param.c: Likewise.
1797 * guile/scm-symbol.c: Likewise.
1798 * guile/scm-type.c: Likewise.
1799 * hppa-hpux-tdep.c: Likewise.
1800 * i386-tdep.c: Likewise.
1801 * inf-loop.c: Likewise.
1802 * infcall.c: Likewise.
1803 * infcmd.c: Likewise.
1804 * infrun.c: Likewise.
1805 * interps.c: Likewise.
1806 * interps.h: Likewise.
1808 * linespec.c: Likewise.
1809 * linux-nat.c: Likewise.
1810 * linux-thread-db.c: Likewise.
1811 * m32r-rom.c: Likewise.
1813 * memory-map.c: Likewise.
1814 * mi/mi-cmd-break.c: Likewise.
1815 * mi/mi-cmd-stack.c: Likewise.
1816 * mi/mi-interp.c: Likewise.
1817 * mi/mi-main.c: Likewise.
1818 * monitor.c: Likewise.
1819 * nto-procfs.c: Likewise.
1820 * objc-lang.c: Likewise.
1821 * p-valprint.c: Likewise.
1822 * parse.c: Likewise.
1823 * ppc-linux-tdep.c: Likewise.
1824 * printcmd.c: Likewise.
1825 * probe.c: Likewise.
1826 * python/py-auto-load.c: Likewise.
1827 * python/py-breakpoint.c: Likewise.
1828 * python/py-cmd.c: Likewise.
1829 * python/py-finishbreakpoint.c: Likewise.
1830 * python/py-frame.c: Likewise.
1831 * python/py-framefilter.c: Likewise.
1832 * python/py-function.c: Likewise.
1833 * python/py-gdb-readline.c: Likewise.
1834 * python/py-inferior.c: Likewise.
1835 * python/py-infthread.c: Likewise.
1836 * python/py-lazy-string.c: Likewise.
1837 * python/py-linetable.c: Likewise.
1838 * python/py-param.c: Likewise.
1839 * python/py-prettyprint.c: Likewise.
1840 * python/py-symbol.c: Likewise.
1841 * python/py-type.c: Likewise.
1842 * python/py-value.c: Likewise.
1843 * python/python-internal.h: Likewise.
1844 * python/python.c: Likewise.
1845 * record-btrace.c: Likewise.
1846 * record-full.c: Likewise.
1847 * regcache.c: Likewise.
1848 * remote-fileio.c: Likewise.
1849 * remote-mips.c: Likewise.
1850 * remote.c: Likewise.
1851 * rs6000-aix-tdep.c: Likewise.
1852 * rs6000-nat.c: Likewise.
1854 * solib-darwin.c: Likewise.
1855 * solib-dsbt.c: Likewise.
1856 * solib-frv.c: Likewise.
1857 * solib-ia64-hpux.c: Likewise.
1858 * solib-spu.c: Likewise.
1859 * solib-svr4.c: Likewise.
1860 * solib.c: Likewise.
1861 * spu-tdep.c: Likewise.
1862 * stack.c: Likewise.
1863 * stap-probe.c: Likewise.
1864 * symfile-mem.c: Likewise.
1865 * symmisc.c: Likewise.
1866 * target.c: Likewise.
1867 * thread.c: Likewise.
1869 * tracepoint.c: Likewise.
1870 * tui/tui-interp.c: Likewise.
1871 * typeprint.c: Likewise.
1872 * utils.c: Likewise.
1873 * valarith.c: Likewise.
1874 * valops.c: Likewise.
1875 * valprint.c: Likewise.
1876 * value.c: Likewise.
1877 * varobj.c: Likewise.
1878 * windows-nat.c: Likewise.
1879 * xml-support.c: Likewise.
1881 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1883 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1885 (extended_mips16_next_pc): Update accordingly.
1887 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1889 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1891 (micromips_instruction_is_compact_branch): Likewise.
1892 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1893 or a compact jump, reaching a jump delay slot, or seeing a
1894 second non-prologue instruction.
1895 (micromips_scan_prologue): Also terminate scanning upon seeing a
1896 compact branch or jump, or reaching a branch or jump delay slot.
1897 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1898 or jump delay slot, or seeing a second non-prologue instruction.
1899 (mips32_instruction_has_delay_slot): Retain instruction
1900 examination code only, update arguments accordingly and move
1901 instruction fetch pieces to...
1902 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1903 (micromips_instruction_has_delay_slot): Likewise and to...
1904 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1905 (mips16_instruction_has_delay_slot): Likewise and to...
1906 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1907 (mips_single_step_through_delay): Update accordingly.
1908 (mips_adjust_breakpoint_address): Likewise.
1910 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1912 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1913 !mustbe32 also return 1 for 32-bit instructions.
1914 (mips16_instruction_has_delay_slot): Likewise. Add an
1915 explanatory comment.
1917 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1919 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1922 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1924 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1926 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1927 for the breakpoint's address. Don't preinitialize `placed_size'.
1928 (insert_bp_location): Set `reqstd_address' rather than
1930 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1931 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1933 (bkpt_remove_location): Likewise.
1934 (deprecated_insert_raw_breakpoint): Likewise.
1935 (deprecated_remove_raw_breakpoint): Likewise.
1936 (find_single_step_breakpoint): Likewise.
1937 * mem-break.c (default_memory_insert_breakpoint): Use
1938 `reqstd_address' for the breakpoint's address. Don't set
1939 `placed_address' or `placed_size' if breakpoint contents couldn't
1940 have been determined.
1941 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1942 the breakpoint's address.
1943 (remote_insert_hw_breakpoint): Likewise. Don't set
1944 `placed_address' or `placed_size' if breakpoint couldn't have been
1946 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1947 `reqstd_address' for the breakpoint's address.
1948 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1949 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1950 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1951 * microblaze-linux-tdep.c
1952 (microblaze_linux_memory_remove_breakpoint): Likewise.
1953 * monitor.c (monitor_insert_breakpoint): Likewise.
1954 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1955 (procfs_insert_hw_breakpoint): Likewise.
1956 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1957 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1958 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1959 * remote-mips.c (mips_insert_breakpoint): Likewise.
1960 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1962 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1964 * valops.c (value_assign): Check for bit field assignments
1965 before calling architecture-specific register value
1966 conversion functions.
1968 2014-10-03 Pierre Muller <muller@sourceware.org>
1970 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1972 2014-10-02 Pedro Alves <palves@redhat.com>
1974 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1975 threads_are_executing.
1976 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1978 * gdbthread.h (threads_are_executing): Declare.
1979 (handle_signal_stop) <random signals>: Don't print about the
1980 signal here if stopping.
1981 (end_stepping_range): Don't notify observers here.
1982 (normal_stop): Update the thread list. If stopped by a random
1983 signal or a stepping range ended, notify observers.
1984 * thread.c (threads_executing): New global.
1985 (init_thread_list): Clear 'threads_executing'.
1986 (set_executing): Set or clear 'threads_executing'.
1987 (threads_are_executing): New function.
1988 (update_threads_executing): New function.
1989 (update_thread_list): Use it.
1991 2014-10-02 Pedro Alves <palves@redhat.com>
1993 PR breakpoints/17431
1994 * breakpoint.c (update_breakpoints_after_exec): Don't create
1995 overlay, longjmp, std terminate nor exception breakpoints here.
1997 2014-10-02 Pedro Alves <palves@redhat.com>
1999 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2001 * inferior.c (find_inferior_for_program_space): Give preference to
2002 the current inferior.
2003 * inferior.h (find_inferior_for_program_space): Update comment.
2004 * progspace.c (switch_to_program_space_and_thread): Prefer the
2005 current inferior if it's bound to the program space requested. If
2006 the inferior found doesn't have a PID yet, don't bother looking up
2008 * progspace.h (switch_to_program_space_and_thread): Adjust
2010 * thread.c (any_thread_of_process, any_live_thread_of_process):
2011 Give preference to the current thread.
2013 2014-10-01 Pedro Alves <palves@redhat.com>
2015 * breakpoint.c (insert_bp_location): Error out if inserting a
2016 software breakpoint at a read-only address.
2017 * target.c (memory_xfer_check_region): New function, factored out
2019 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2021 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2022 against the memory region attributes.
2024 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2026 * NEWS: Announce new exit-code field in -list-thread-groups
2028 * inferior.c (exit_inferior_1): Don't clear exit code.
2029 (inferior_appeared): Clear exit code.
2030 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2033 2014-10-01 Pedro Alves <palves@redhat.com>
2035 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2036 GENERATED" along with emacs/vi read-only markers.
2037 * regformats/aarch64.dat: Regenerate.
2038 * regformats/arm-with-iwmmxt.dat: Regenerate.
2039 * regformats/arm-with-neon.dat: Regenerate.
2040 * regformats/arm-with-vfpv2.dat: Regenerate.
2041 * regformats/arm-with-vfpv3.dat: Regenerate.
2042 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2043 * regformats/i386/amd64-avx.dat: Regenerate.
2044 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2045 * regformats/i386/amd64-avx512.dat: Regenerate.
2046 * regformats/i386/amd64-linux.dat: Regenerate.
2047 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2048 * regformats/i386/amd64-mpx.dat: Regenerate.
2049 * regformats/i386/amd64.dat: Regenerate.
2050 * regformats/i386/i386-avx-linux.dat: Regenerate.
2051 * regformats/i386/i386-avx.dat: Regenerate.
2052 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2053 * regformats/i386/i386-avx512.dat: Regenerate.
2054 * regformats/i386/i386-linux.dat: Regenerate.
2055 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2056 * regformats/i386/i386-mmx.dat: Regenerate.
2057 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2058 * regformats/i386/i386-mpx.dat: Regenerate.
2059 * regformats/i386/i386.dat: Regenerate.
2060 * regformats/i386/x32-avx-linux.dat: Regenerate.
2061 * regformats/i386/x32-avx.dat: Regenerate.
2062 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2063 * regformats/i386/x32-avx512.dat: Regenerate.
2064 * regformats/i386/x32-linux.dat: Regenerate.
2065 * regformats/i386/x32.dat: Regenerate.
2066 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2067 * regformats/mips-dsp-linux.dat: Regenerate.
2068 * regformats/mips-linux.dat: Regenerate.
2069 * regformats/mips64-dsp-linux.dat: Regenerate.
2070 * regformats/mips64-linux.dat: Regenerate.
2071 * regformats/nios2-linux.dat: Regenerate.
2072 * regformats/rs6000/powerpc-32.dat: Regenerate.
2073 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2074 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2075 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2076 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2077 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2078 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2079 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2080 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2081 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2082 * regformats/s390-linux32.dat: Regenerate.
2083 * regformats/s390-linux32v1.dat: Regenerate.
2084 * regformats/s390-linux32v2.dat: Regenerate.
2085 * regformats/s390-linux64.dat: Regenerate.
2086 * regformats/s390-linux64v1.dat: Regenerate.
2087 * regformats/s390-linux64v2.dat: Regenerate.
2088 * regformats/s390-te-linux64.dat: Regenerate.
2089 * regformats/s390x-linux64.dat: Regenerate.
2090 * regformats/s390x-linux64v1.dat: Regenerate.
2091 * regformats/s390x-linux64v2.dat: Regenerate.
2092 * regformats/s390x-te-linux64.dat: Regenerate.
2093 * regformats/tic6x-c62x-linux.dat: Regenerate.
2094 * regformats/tic6x-c62x.dat: Regenerate.
2095 * regformats/tic6x-c64x-linux.dat: Regenerate.
2096 * regformats/tic6x-c64x.dat: Regenerate.
2097 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2098 * regformats/tic6x-c64xp.dat: Regenerate.
2100 2014-10-01 Pedro Alves <palves@redhat.com>
2102 * features/Makefile: Update comments.
2103 (XMLTOC): List all xml files we build C files from.
2104 (clean-cfiles): New rule.
2106 2014-10-01 Pedro Alves <palves@redhat.com>
2108 * features/i386/amd64-avx512-linux.c: Regenerate.
2109 * features/i386/amd64-avx512.c: Regenerate.
2110 * features/i386/x32-avx512-linux.c: Regenerate.
2111 * features/i386/x32-avx512.c: Regenerate.
2113 2014-10-01 Pedro Alves <palves@redhat.com>
2115 * features/Makefile (WHICH): Remove arm-with-m,
2116 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2118 2014-10-01 Pedro Alves <palves@redhat.com>
2120 * features/Makefile (clean): New rule.
2122 2014-10-01 Pedro Alves <palves@redhat.com>
2124 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2125 (zmm14h): Add missing end quotes.
2127 2014-10-01 Pedro Alves <palves@redhat.com>
2129 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2130 * features/aarch64.c: Regenerate.
2132 2014-09-30 Don Breazeal <donb@codesourcery.com>
2134 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2135 code so as to work with follow_fork_inferior.
2136 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2137 (inf_ttrace_create_inferior): Remove reference to
2138 inf_ttrace_vfork_ppid.
2139 (inf_ttrace_attach): Ditto.
2140 (inf_ttrace_detach): Ditto.
2141 (inf_ttrace_kill): Use current_inferior instead of
2142 inf_ttrace_vfork_ppid.
2143 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2144 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2145 inferior away from the parent.
2146 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2148 (follow_fork_inferior): New function.
2149 (follow_inferior_reset_breakpoints): Make function static.
2150 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2151 * linux-nat.c (linux_child_follow_fork): Move target-independent
2152 code to infrun.c:follow_fork_inferior.
2154 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2156 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2157 * gdbarch.c: Regenerate.
2158 * gdbarch.h: Likewise.
2159 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2160 gdbarch method 'regset_from_core_section'.
2161 (get_core_register_section): Remove handling for the case that
2162 regset == NULL and regset_from_core_section is defined.
2163 (get_core_registers): Drop check for deleted method.
2164 * procfs.c (procfs_do_thread_registers): Adjust comment.
2166 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2168 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2169 (linux_nat_make_corefile_notes): Remove.
2170 (linux_target_install_ops): Do not set target method
2171 'make_corefile_notes'.
2172 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2174 (linux_corefile_thread_callback): Instead of args->collect, call
2175 linux_collect_thread_registers.
2176 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2177 NULL unless there is a regset iterator.
2178 (linux_make_corefile_notes_1): Remove.
2179 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2180 by linux_make_corefile_notes.
2181 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2183 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2185 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2186 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2188 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2190 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2192 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2193 (xtensa_iterate_over_regset_sections): New.
2194 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2196 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2198 * vax-tdep.c (vax_regset_from_core_section): Remove.
2199 (vax_iterate_over_regset_sections): New.
2200 (vax_gdbarch_init): Adjust gdbarch initialization.
2202 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2204 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2205 (tilegx_regset_from_core_section): Remove.
2206 (tilegx_iterate_over_regset_sections): New.
2207 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2209 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2211 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2212 (sparc_iterate_over_regset_sections): New.
2213 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2214 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2216 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2217 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2218 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2219 target method 'make_corefile_notes'.
2221 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2223 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2224 'sizeof_gregset' and 'sizeof_fpregset'.
2225 * sh-tdep.c (sh_regset_from_core_section): Remove.
2226 (sh_iterate_over_regset_sections): New.
2227 (sh_gdbarch_init): Adjust gdbarch initialization.
2228 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2230 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2233 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2235 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2236 (score7_linux_iterate_over_regset_sections): New.
2237 (score_gdbarch_init): Adjust gdbarch initialization.
2239 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2243 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2244 method 'make_corefile_notes'.
2245 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2246 (ppcfbsd_regset_from_core_section): Remove.
2247 (ppcfbsd_iterate_over_regset_sections): New.
2248 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2250 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2251 (ppcnbsd_iterate_over_regset_sections): New.
2252 (ppcnbsd_init_abi): Adjust.
2253 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2254 (ppcobsd_iterate_over_regset_sections): New.
2255 (ppcobsd_init_abi): Adjust.
2256 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2257 (rs6000_aix_iterate_over_regset_sections): New.
2258 (rs6000_aix_init_osabi): Adjust.
2260 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2262 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2263 (nios2_regset_from_core_section): Remove.
2264 (nios2_iterate_over_regset_sections): New.
2265 (nios2_linux_init_abi): Adjust gdbarch initialization.
2267 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2269 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2270 (am33_iterate_over_regset_sections): New.
2271 (am33_linux_init_osabi): Adjust gdbarch initialization.
2273 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2275 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2276 (mips_linux_iterate_over_regset_sections): New.
2277 (mips_linux_init_abi): Adjust gdbarch initialization.
2278 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2279 (mips64obsd_iterate_over_regset_sections): New.
2280 (mips64obsd_init_abi): Adjust.
2281 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2282 (mipsnbsd_iterate_over_regset_sections): New.
2283 (mipsnbsd_init_abi): Adjust.
2285 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2287 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2288 (m88k_iterate_over_regset_sections): New.
2289 (m88k_gdbarch_init): Adjust gdbarch initialization.
2291 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2293 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2294 (ia64_linux_iterate_over_regset_sections): New.
2295 (ia64_linux_init_abi): Adjust gdbarch initialization.
2297 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2299 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2300 (m68kbsd_iterate_over_regset_sections): New.
2301 (m68kbsd_init_abi): Adjust gdbarch initialization.
2302 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2303 (m68k_linux_iterate_over_regset_sections): New.
2304 (m68k_linux_init_abi): Adjust gdbarch initialization.
2306 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2308 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2309 (m32r_linux_regset_from_core_section): Remove.
2310 (m32r_linux_iterate_over_regset_sections): New.
2311 (m32r_linux_init_abi): Adjust gdbarch initialization.
2313 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2315 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2316 (amd64obsd_iterate_over_regset_sections): New.
2317 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2318 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2320 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2321 regset_from_core_section initialization.
2322 * i386-tdep.c (i386_regset_from_core_section): Remove.
2323 (i386_iterate_over_regset_sections): New.
2324 (i386_gdbarch_init): Adjust gdbarch initialization.
2325 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2326 (i386_iterate_over_regset_sections): New prototype.
2327 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2329 (i386obsd_aout_iterate_over_regset_sections): New.
2330 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2331 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2333 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2334 (amd64fbsd_init_abi): Call fbsd_init_abi.
2335 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2336 (i386fbsd4_init_abi): Call fbsd_init_abi.
2337 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2338 target method 'make_corefile_notes'.
2339 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2341 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2343 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2344 (hppa_hpux_iterate_over_regset_sections): New.
2345 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2346 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2347 (hppa_linux_iterate_over_regset_sections): New.
2348 (hppa_linux_init_abi): Adjust.
2349 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2350 (hppanbsd_iterate_over_regset_sections): New.
2351 (hppanbsd_init_abi): Adjust.
2352 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2353 (hppaobsd_iterate_over_regset_sections): New.
2354 (hppaobsd_init_abi): Adjust.
2356 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2358 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2359 (frv_linux_iterate_over_regset_sections): New.
2360 (frv_linux_init_abi): Adjust gdbarch initialization.
2362 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2364 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2365 (armbsd_iterate_over_regset_sections): New prototype.
2366 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2367 (armbsd_iterate_over_regset_sections): New.
2368 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2371 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2373 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2374 (alpha_linux_iterate_over_regset_sections): New.
2375 (alpha_linux_init_abi): Adjust gdbarch initialization.
2376 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2378 (alphanbsd_iterate_over_regset_sections): New prototype.
2380 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2382 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2384 (aarch64_linux_iterate_over_regset_sections): New.
2385 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2387 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2389 * fbsd-tdep.c: New file.
2390 * fbsd-tdep.h: New file.
2391 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2392 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2393 (ALLDEPFILES): Add fbsd-tdep.c.
2395 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2397 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2399 * gdbarch.h: Regenerate.
2400 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2402 (get_core_register_section): Add parameter 'regset' and use it, if
2403 set. Add parameter 'min_size' and verify the bfd section size
2405 (get_core_registers_cb): Add parameter 'regset' and pass it to
2406 get_core_register section. For the "standard" register sections
2407 ".reg" and ".reg2", set an appropriate default for human_name.
2408 (get_core_registers): Don't abort when the gdbarch has an iterator
2409 but no regset_from_core_section. Add NULL/0 for parameters
2410 'regset'/'min_size' in calls to get_core_register_section.
2411 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2412 'regset' and use it instead of calling the
2413 regset_from_core_section gdbarch method.
2414 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2415 * i386-tdep.c (i386_supply_xstateregset)
2416 (i386_collect_xstateregset, i386_xstateregset): Moved to
2418 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2420 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2421 core file support only if the regset iterator hasn't been set.
2422 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2423 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2424 Moved from i386-tdep.c and renamed to *_linux*.
2425 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2426 each callback invocation. Allow any .reg-xstate size when reading
2428 * amd64-tdep.c (amd64_supply_xstateregset)
2429 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2431 (amd64_regset_from_core_section): Remove.
2432 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2433 install an amd64-specific regset_from_core_section gdbarch method.
2434 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2435 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2436 Moved from amd64-tdep.c and renamed to *_linux*.
2437 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2438 to each callback invocation. Allow any .reg-xstate size when
2439 reading from a core file.
2440 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2441 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2442 each callback invocation.
2443 (arm_linux_init_abi): No longer set the regset_from_core_section
2445 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2446 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2447 each callback invocation.
2448 (ppc_linux_init_abi): No longer set the regset_from_core_section
2450 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2451 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2452 (s390_regset_from_core_section): Remove.
2453 (s390_iterate_over_regset_sections): Add regset parameter to each
2454 callback invocation.
2455 (s390_gdbarch_init): No longer set the regset_from_core_section
2456 gdbarch method. Drop initialization of deleted tdep fields.
2458 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2460 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2461 (amd64_linux_iterate_over_regset_sections): New.
2462 (amd64_linux_init_abi_common): Don't install the regset section
2463 list, but the new iterator in gdbarch.
2464 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2465 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2466 (arm_linux_iterate_over_regset_sections): ...here. New function.
2467 (arm_linux_init_abi): Set iterator instead of section list.
2468 * corelow.c (get_core_registers_cb): New function, logic moved
2470 (get_core_registers): ...loop body here. Use new iterator method
2471 instead of walking through the regset section list.
2472 * gdbarch.sh: Remove 'core_regset_sections'. New method
2473 'iterate_over_regset_sections'. New typedef
2474 'iterate_over_regset_sections_cb'.
2475 * gdbarch.c: Regenerate.
2476 * gdbarch.h: Likewise.
2477 * i386-linux-tdep.c (i386_linux_regset_sections)
2478 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2480 (i386_linux_iterate_over_regset_sections): New.
2481 (i386_linux_init_abi): Don't choose a regset section list, but
2482 install new iterator in gdbarch.
2483 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2484 (linux_collect_regset_section_cb): New function, logic moved
2486 (linux_collect_thread_registers): ...loop body here. Use iterator
2487 method instead of walking through list.
2488 (linux_make_corefile_notes_1): Check for presence of iterator
2489 method instead of regset section list.
2490 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2491 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2492 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2493 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2494 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2495 (ppc_linux_init_abi): Don't choose from above regset section
2496 lists, but install new iterator in gdbarch.
2497 * regset.h (struct core_regset_section): Remove.
2498 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2499 have_linux_v1, have_linux_v2, and have_tdb.
2500 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2501 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2502 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2503 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2504 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2505 (s390_iterate_over_regset_sections): ...here. New function. Use
2507 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2508 regset section lists, but install new iterator.
2510 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2512 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2514 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2516 * progspace.c (print_program_space): Don't prune program spaces
2517 before printing them.
2519 2014-09-25 Pedro Alves <palves@redhat.com>
2521 * infrun.c (user_visible_resume_ptid): Don't check
2522 singlestep_breakpoints_inserted_p.
2524 2014-09-25 Pedro Alves <palves@redhat.com>
2526 * breakpoint.c (should_be_inserted): Add debug output.
2528 2014-09-25 Pedro Alves <palves@redhat.com>
2530 * infrun.c (stepping_past_instruction_at)
2531 (clear_exit_convenience_vars): Point at infrun.h instead of
2533 (handle_signal_stop): Fix typo.
2535 2014-09-24 Yao Qi <yao@codesourcery.com>
2537 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2540 2014-09-22 Gary Benson <gbenson@redhat.com>
2542 * target.c (target_stop): Updated comment.
2544 2014-09-22 Gary Benson <gbenson@redhat.com>
2546 * target/target.h (target_stop_ptid): Renamed as...
2547 (target_stop_and_wait): New function. Updated comment.
2549 (target_continue_ptid): Renamed as...
2550 (target_continue_no_signal): New function. Updated comment.
2553 2014-09-22 Pedro Alves <palves@redhat.com>
2555 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2557 * breakpoint.c (enum ugll_insert_mode): New enum.
2558 (always_inserted_mode): Now a plain boolean.
2559 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2560 (breakpoints_always_inserted_mode): Delete.
2561 (breakpoints_should_be_inserted_now): New function.
2562 (insert_breakpoints): Pass UGLL_INSERT to
2563 update_global_location_list instead of calling
2564 insert_breakpoint_locations manually.
2565 (create_solib_event_breakpoint_1): New, factored out from ...
2566 (create_solib_event_breakpoint): ... this.
2567 (create_and_insert_solib_event_breakpoint): Use
2568 create_solib_event_breakpoint_1 instead of calling
2569 insert_breakpoint_locations manually.
2570 (update_global_location_list): Change parameter type from boolean
2571 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2572 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2573 (update_global_location_list_nothrow): Change parameter type from
2574 boolean to enum ugll_insert_mode.
2575 (_initialize_breakpoint): "breakpoint always-inserted" option is
2576 now a boolean command. Update help text.
2577 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2578 (breakpoints_should_be_inserted_now): New declaration.
2579 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2580 Remove breakpoints_always_inserted_mode check.
2581 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2582 * remote.c (remote_start_remote): Likewise.
2584 2014-09-22 Pedro Alves <palves@redhat.com>
2586 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2587 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2588 Instead, pass UGLL_INSERT to update_global_location_list.
2589 (update_global_location_list): Change parameter type from boolean
2590 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2591 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2592 (create_solib_event_breakpoint_1): New, factored out from ...
2593 (create_solib_event_breakpoint): ... this.
2594 (create_and_insert_solib_event_breakpoint): Use
2595 create_solib_event_breakpoint_1 instead of calling
2596 insert_breakpoint_locations manually.
2597 (update_global_location_list): Handle UGLL_INSERT.
2599 2014-09-22 Pedro Alves <palves@redhat.com>
2601 * breakpoint.c (enum ugll_insert_mode): New enum.
2602 (update_global_location_list)
2603 (update_global_location_list_nothrow): Change parameter type from
2604 boolean to enum ugll_insert_mode. All callers adjusted.
2606 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2608 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2609 SystemTap support in GDB.
2611 2014-09-19 Don Breazeal <donb@codesourcery.com>
2613 * linux-nat.c (linux_handle_extended_wait): Call
2614 linux_ptrace_get_extended_event.
2615 (wait_lwp): Call linux_is_extended_waitstatus.
2616 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2617 and linux_is_extended_waitstatus.
2618 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2619 linux_ptrace_get_extended_event.
2620 (linux_ptrace_get_extended_event): New function.
2621 (linux_is_extended_waitstatus): New function.
2622 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2623 (linux_is_extended_waitstatus): New declarations.
2625 2014-09-19 Yao Qi <yao@codesourcery.com>
2627 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2628 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2629 comments. Callers update.
2630 (dwarf_decode_lines): Likewise.
2631 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2632 comments. Skip the line table if 'lowpc' is greater than
2633 'address'. Don't check
2634 dwarf2_per_objfile->has_section_at_zero.
2636 2014-09-18 Doug Evans <dje@google.com>
2638 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2639 * python/py-symtab.c (stpy_get_producer): New function.
2640 (symtab_object_getset): Add "producer" attribute.
2642 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2645 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2646 (do_captured_read_memory_integer): Remove.
2647 (safe_read_memory_integer): Use target_read_memory directly instead
2648 of catching errors in do_captured_read_memory_integer.
2650 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2652 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2655 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2657 * objc-lang.c (find_implementation_from_class): Remove dead code.
2659 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2662 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2663 "fprintf_unfiltered (gdb_stdlog...)".
2665 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2667 PR breakpoints/12526
2668 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2670 * breakpoint.c (watch_command_1): Use these fields to retain
2671 bitfield information.
2672 (extract_bitfield_from_watchpoint_value): New function.
2673 (watchpoint_check): Use it.
2674 (update_watchpoint): Use it. Optimize the address and length of a
2675 HW watchpoint pointing to a bitfield.
2676 * value.h (unpack_value_bitfield): New prototype.
2677 * value.c (unpack_value_bitfield): Make extern.
2679 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2681 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2683 * gnu-nat.c (inf_threads): New function.
2684 * gnu-nat.h (inf_threads_ftype): New typedef.
2685 (inf_threads): New declaration.
2686 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2687 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2688 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2689 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2690 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2691 (i386_gnu_dr_get_control): New functions.
2692 (reg_addr): New structure.
2693 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2694 i386 debugging register hooks.
2695 * NEWS: Mention this.
2697 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2699 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2700 vector data transfer instructions.
2701 (arm_record_coproc_data_proc): Updated.
2703 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2705 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2706 arm_record_exreg_ld_st_insn.
2707 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2710 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2712 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2713 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2714 processing instructions.
2716 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2718 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2719 for advance SIMD struct ld/st insn.
2720 (thumb2_record_decode_insn_handler): Replace stub handler with
2721 thumb2_record_asimd_struct_ld_st.
2723 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2725 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2726 for asimd, vfp and coprocessor insns.
2727 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2728 and coprocessor insns.
2729 (thumb2_record_coproc_insn): New function.
2730 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2732 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2735 2014-09-13 Doug Evans <xdje42@gmail.com>
2737 * NEWS: Mention new "queue-signal" command.
2738 * infcmd.c (queue_signal_command): New function.
2739 (_initialize_infcmd): Add new queue-signal command.
2741 2014-09-13 Doug Evans <xdje42@gmail.com>
2743 * linux-nat.c (wait_lwp): Add debugging printf.
2744 (linux_nat_wait_1): Ditto.
2746 2014-09-12 Pedro Alves <palves@redhat.com>
2748 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2749 (create_and_insert_solib_event_breakpoint): New functions.
2750 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2751 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2752 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2753 (remove_dbx_link_breakpoint): Delete function.
2754 (insert_dbx_link_bpt_in_file): Use
2755 create_and_insert_solib_event_breakpoint instead of
2756 deprecated_insert_raw_breakpoint.
2757 (procfs_wait): Don't check whether we hit __dbx_link here.
2758 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2760 * solib-irix.c (base_breakpoint): Delete global.
2761 (disable_break): Delete function.
2762 (enable_break): Use create_solib_event_breakpoint
2763 instead of deprecated_insert_raw_breakpoint.
2764 (irix_solib_handle_event): New function.
2765 (irix_solib_create_inferior_hook): Don't run the target or disable
2766 the mapping-complete breakpoint here.
2767 (_initialize_irix_solib): Install irix_solib_handle_event as
2768 so_ops->handle_event hook.
2770 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2771 Ulrich Weigand <uweigand@de.ibm.com>
2774 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2775 instead of read_memory_unsigned_integer.
2777 2014-09-12 Gary Benson <gbenson@redhat.com>
2779 * nat/linux-waitpid.c: Include common-defs.h.
2780 [GDBSERVER]: Add FIXME comment.
2781 [!GDBSERVER]: Don't include defs.h or signal.h.
2782 (linux_debug) [!GDBSERVER]: Remove empty block.
2784 2014-09-12 Gary Benson <gbenson@redhat.com>
2786 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2787 Don't include defs.h or server.h.
2789 2014-09-12 Gary Benson <gbenson@redhat.com>
2791 * nat/linux-btrace.c: Include common-defs.h.
2792 Don't include defs.h, server.h or gdbthread.h.
2793 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2795 2014-09-12 Gary Benson <gbenson@redhat.com>
2797 * common/agent.c: Include common-defs.h.
2798 Don't include defs.h or server.h.
2799 * common/buffer.c: Likewise.
2800 * common/common-debug.c: Likewise.
2801 * common/common-utils.c: Likewise.
2802 * common/errors.c: Likewise.
2803 * common/filestuff.c: Likewise.
2804 * common/format.c: Likewise.
2805 * common/gdb_vecs.c: Likewise.
2806 * common/print-utils.c: Likewise.
2807 * common/ptid.c: Likewise.
2808 * common/rsp-low.c: Likewise.
2809 * common/signals.c: Likewise.
2810 * common/vec.c: Likewise.
2811 * common/xml-utils.c: Likewise.
2812 * nat/linux-osdata.c: Likewise.
2813 * nat/linux-procfs.c: Likewise.
2814 * nat/linux-ptrace.c: Likewise.
2815 * nat/mips-linux-watch.c: Likewise.
2816 * target/waitstatus.c: Likewise.
2818 2014-09-12 Tom Tromey <tromey@redhat.com>
2819 Gary Benson <gbenson@redhat.com>
2821 * common/common-regcache.h: New file.
2822 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2823 * regcache.h: Include common-regcache.h.
2824 (regcache_read_pc): Don't declare.
2825 * regcache.c (get_thread_regcache_for_ptid): New function.
2826 * nat/linux-btrace.c: Don't include regcache.h.
2827 Include common-regcache.h.
2828 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2830 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2832 * regcache.h (struct regset): Declare.
2834 2014-09-11 Pedro Alves <palves@redhat.com>
2837 * main.c: Include "infrun.h".
2838 (catch_command_errors, catch_command_errors_const): Wait for the
2839 foreground command to complete.
2840 * top.c (maybe_wait_sync_command_done): New function, factored out
2842 (maybe_wait_sync_command_done): ... here.
2843 * top.h (maybe_wait_sync_command_done): New declaration.
2845 2014-09-11 Tom Tromey <tromey@redhat.com>
2846 Gary Benson <gbenson@redhat.com>
2848 * common/symbol.h: New file.
2849 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2850 * minsyms.c (find_minimal_symbol_address): New function.
2851 * common/agent.c: Include common/symbol.h.
2852 [!GDBSERVER]: Don't include objfiles.h.
2853 (agent_look_up_symbols): Use find_minimal_symbol_address.
2855 2014-09-11 Gary Benson <gbenson@redhat.com>
2857 * target/target.h (target_stop_ptid, target_continue_ptid):
2859 * target.c (target_stop_ptid, target_continue_ptid): New
2861 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2862 (agent_run_command): Always use target_stop_ptid and
2863 target_continue_ptid.
2865 2014-09-11 Tom Tromey <tromey@redhat.com>
2866 Gary Benson <gbenson@redhat.com>
2868 * target/target.h: New file.
2869 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2870 * target.h: Include target/target.h.
2871 (target_read_memory, target_write_memory): Don't declare.
2872 * target.c (target_read_uint32): New function.
2873 * common/agent.c: Include target/target.h.
2874 [!GDBSERVER]: Don't include target.h.
2875 (helper_thread_id): Type changed to uint32_t.
2876 (agent_get_helper_thread_id): Use target_read_uint32.
2877 (agent_run_command): Always use target_read_memory and
2878 target_write_memory.
2879 (agent_capability): Type changed to uint32_t.
2880 (agent_capability_check): Use target_read_uint32.
2882 2014-09-11 Gary Benson <gbenson@redhat.com>
2884 * common/common-debug.h (show_debug_regs): Declare.
2885 * common/common-debug.c (show_debug_regs): Define.
2886 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2887 all uses with show_debug_regs. Replace all uses that considered
2888 debug_hw_points as a multi-value integer with straight boolean
2890 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2891 with show_debug_regs.
2892 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2893 all uses with show_debug_regs.
2894 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2895 uses with show_debug_regs.
2897 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2899 * findvar.c (address_from_register): Handle targets requiring
2900 a special conversion routine even for plain pointer types.
2902 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2904 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2905 (store_register): Do not call exec_one_dummy_insn.
2907 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2909 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2910 dereference it first. Use value_enclosing_type instead of
2912 (ada_array_length): Likewise.
2914 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2916 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2917 Adjust function implementation and documentation accordingly.
2918 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2919 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2920 Update call to ada_value_ptr_subscript.
2922 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2924 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2925 instead of VAL's type.
2927 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2929 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2931 2014-09-09 Doug Evans <xdje42@gmail.com>
2934 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2935 last parameter to pkg-config, not first.
2936 * configure.ac: Pass --with-guile provided pkg-config path to
2937 GDB_GUILE_PROGRAM_NAMES.
2938 * configure: Regenerate.
2940 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2942 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2945 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2947 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2948 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2949 the list of sections determining GDB_OSABI_IRIX.
2951 2014-09-09 James Hogan <james.hogan@imgtec.com>
2953 * MAINTAINERS (Write After Approval): Add "James Hogan".
2955 2014-09-09 James Hogan <james.hogan@imgtec.com>
2957 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2959 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2961 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2963 2014-09-08 Doug Evans <xdje42@gmail.com>
2966 * guile.c: #include <signal.h>.
2967 (_initialize_guile): Block SIGCHLD while initializing Guile.
2969 Replaces the following, which is reverted.
2971 2014-07-26 Doug Evans <xdje42@gmail.com>
2974 * configure.ac: Add check for header gc/gc.h.
2975 Add check for function setenv.
2976 * configure: Regenerate.
2977 * config.in: Regenerate.
2978 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2980 2014-09-08 Doug Evans <xdje42@gmail.com>
2982 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2983 with named constant. Fix style of pointer comparison.
2984 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2986 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2989 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2990 decide whether we display the command on "show user".
2991 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2992 printing command name.
2993 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2994 * cli/cli-decode.c (cli_user_command_p): Create helper function
2995 to verify whether cmd_list_element is a user-defined command.
2997 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3000 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3001 Fix goto out of TRY_CATCH.
3003 2014-09-06 Doug Evans <xdje42@gmail.com>
3004 Tom Tromey <tromey@redhat.com>
3007 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3008 $_any_caller_matches.
3009 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3010 * python/lib/gdb/function/caller_is.py: New file.
3012 2014-09-06 Doug Evans <xdje42@gmail.com>
3014 * infcmd.c (program_info): Fix typo.
3016 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3019 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3020 'number'. New variable 'has_digit'. Rewrite code to deal with
3021 subexpressions on SDT probes.
3023 2014-09-04 Pedro Alves <palves@redhat.com>
3025 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3026 the input is only one character long.
3028 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3031 * f-valprint.c (f_val_print): Specify the correct print option to
3032 use when printing integer values.
3034 2014-09-04 Gary Benson <gbenson@redhat.com>
3036 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3037 Remove code to cope with LWPs wrapped as PIDs.
3038 Add assertions to ensure no wrapped LWPs are passed.
3040 2014-09-04 Pedro Alves <palves@redhat.com>
3042 * value.c (value_ranges_copy_adjusted): New function, factored out
3044 (value_contents_copy_raw): ... here.
3045 (unpack_value_bits_as_long_1): Rename back to ...
3046 (unpack_bits_as_long): ... this. Remove 'original_value' and
3047 'result' parameters. Change return type to LONGEST.
3048 (unpack_value_bits_as_long): Delete.
3049 (unpack_value_field_as_long_1): Delete.
3050 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3051 (unpack_value_bitfield): New function.
3052 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3053 (value_fetch_lazy): Use unpack_value_bitfield.
3054 * value.h (unpack_value_bits_as_long): Delete declaration.
3056 2014-09-03 Sasha Smundak <asmundak@google.com>
3058 * python/py-frame.c (frapy_read_register): New function.
3060 2014-09-03 James Hogan <james.hogan@imgtec.com>
3062 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3063 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3065 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3068 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3070 (add_cmd): Set "completer_handle_brkchars" to NULL.
3071 * cli/cli-decode.h (struct cmd_list_element)
3072 <completer_handle_brkchars>: New field.
3073 * command.h (completer_ftype_void): New typedef.
3074 (set_cmd_completer_handle_brkchars): New prototype.
3075 * completer.c (set_gdb_completion_word_break_characters): New
3077 (complete_line_internal): Call "completer_handle_brkchars"
3078 callback from command.
3079 * completer.h: Include "command.h".
3080 (set_gdb_completion_word_break_characters): New prototype.
3081 * python/py-cmd.c (cmdpy_completer_helper): New function.
3082 (cmdpy_completer_handle_brkchars): New function.
3083 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3084 (cmdpy_init): Set completer_handle_brkchars to
3085 cmdpy_completer_handle_brkchars.
3087 2014-09-03 Gary Benson <gbenson@redhat.com>
3089 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3090 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3091 Loop conditions changed to equivalent form.
3092 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3093 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3094 ALL_DEBUG_ADDRESS_REGISTERS.
3096 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3098 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3101 2014-09-02 Doug Evans <dje@google.com>
3103 * typeprint.c (find_global_typedef): Fix comment.
3105 2014-09-02 Gary Benson <gbenson@redhat.com>
3107 * i386-nat.h: Renamed as...
3108 * x86-nat.h: New file. All type, function and variable name
3109 prefixes changed from "i386_" to "x86_". All references updated.
3110 * i386-nat.c: Renamed as...
3111 * x86-nat.c: New file. All type, function and variable name
3112 prefixes changed from "i386_" to "x86_". All references updated.
3113 * common/i386-xstate.h: Renamed as...
3114 * common/x86-xstate.h: New file. All type, function and variable
3115 name prefixes changed from "i386_" to "x86_". All references
3117 * nat/i386-cpuid.h: Renamed as...
3118 * nat/x86-cpuid.h: New file. All type, function and variable name
3119 prefixes changed from "i386_" to "x86_". All references updated.
3120 * nat/i386-gcc-cpuid.h: Renamed as...
3121 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3122 name prefixes changed from "i386_" to "x86_". All references
3124 * nat/i386-dregs.h: Renamed as...
3125 * nat/x86-dregs.h: New file. All type, function and variable name
3126 prefixes changed from "i386_" to "x86_". All references updated.
3127 * nat/i386-dregs.c: Renamed as...
3128 * nat/x86-dregs.c: New file. All type, function and variable name
3129 prefixes changed from "i386_" to "x86_". All references updated.
3131 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3133 * varobj.c (_initialize_varobj): Move to the end of file.
3135 2014-08-29 Gary Benson <gbenson@redhat.com>
3137 * common/common-exceptions.h: New file.
3138 * common/common-exceptions.c: Likewise.
3139 * Makefile.in (SFILES): Add common/common-exceptions.c.
3140 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3141 (COMMON_OBS): Add common-exceptions.o.
3142 (common-exceptions.o): New rule.
3143 * exceptions.h (common-exceptions.h): Include.
3144 (gdb_setjmp.h): Do not include.
3145 (return_reason): Moved to common-exceptions.h.
3146 (enum return_reason): Likewise.
3147 (RETURN_MASK): Likewise.
3148 (typedef return_mask): Likewise.
3149 (enum errors): Likewise.
3150 (struct gdb_exception): Likewise.
3151 (exceptions_state_mc_init): Likewise.
3152 (exceptions_state_mc_action_iter): Likewise.
3153 (exceptions_state_mc_action_iter_1): Likewise.
3154 (TRY_CATCH): Likewise.
3155 (throw_exception): Likewise.
3156 (throw_verror): Likewise.
3157 (throw_vquit): Likewise.
3158 (throw_error): Likewise.
3159 (throw_quit): Likewise.
3160 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3161 (enum catcher_action): Likewise.
3162 (struct catcher): Likewise.
3163 (current_catcher): Likewise.
3164 (catcher_list_size): Likewise.
3165 (exceptions_state_mc_init): Likewise.
3166 (catcher_pop): Likewise.
3167 (exceptions_state_mc): Likewise.
3168 (exceptions_state_mc_action_iter): Likewise.
3169 (exceptions_state_mc_action_iter_1): Likewise.
3170 (throw_exception): Likewise.
3171 (exception_messages): Likewise.
3172 (exception_messages_size): Likewise.
3173 (throw_it): Likewise.
3174 (throw_verror): Likewise.
3175 (throw_vquit): Likewise.
3176 (throw_error): Likewise.
3177 (throw_quit): Likewise.
3178 (prepare_to_throw_exception): New function.
3180 2014-08-29 Gary Benson <gbenson@redhat.com>
3182 * common/gdb_setjmp.h: New file.
3183 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3184 * configure.ac: Move sigsetjmp check...
3185 * common/common.m4: ...here.
3186 * configure: Regenerate.
3187 * cp-support.c (SIGJMP_BUF): Delete.
3188 (SIGSETJMP): Likewise.
3189 (SIGLONGJMP): Likewise.
3190 * exceptions.h (gdb_setjmp.h): Include.
3191 (setjmp.h): Do not include.
3192 (EXCEPTIONS_SIGJMP_BUF): Delete.
3193 (EXCEPTIONS_SIGSETJMP): Likewise.
3194 (EXCEPTIONS_SIGLONGJMP): Likewise.
3195 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3197 * exceptions.c: Likewise.
3199 2014-08-29 Gary Benson <gbenson@redhat.com>
3201 * cleanups.h: Moved to...
3202 * common/cleanups.h: New file.
3203 * cleanups.c: Moved to...
3204 * common/cleanups.c: New file. Include common-defs.h and
3205 cleanups.h. Do not include defs.h.
3206 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3207 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3208 (cleanups.o): New rule.
3210 2014-08-29 Gary Benson <gbenson@redhat.com>
3212 * common/errors.h (internal_warning): New declaration.
3213 (internal_vwarning): Likewise.
3214 * common/errors.c (internal_warning): New function.
3215 * utils.h (internal_warning): Don't declare.
3216 (internal_vwarning): Likewise.
3217 * utils.c (internal_warning): Removed.
3219 2014-08-29 Gary Benson <gbenson@redhat.com>
3221 * main.c (captured_main): Use warning during startup.
3222 Prefix startup warning messages with command name.
3224 2014-08-29 Gary Benson <gbenson@redhat.com>
3226 * main.c (captured_main): Handle usage errors with error.
3228 2014-08-29 Gary Benson <gbenson@redhat.com>
3230 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3231 exit pair with a call to error. Wrap the message with _().
3233 2014-08-29 Gary Benson <gbenson@redhat.com>
3235 * main.c (captured_main): Replace a fprintf/exit
3236 pair with a call to error. Wrap the message with _().
3238 2014-08-29 Gary Benson <gbenson@redhat.com>
3240 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3241 pairs with calls to error. Wrap the message with _().
3243 2014-08-29 Gary Benson <gbenson@redhat.com>
3245 * utils.c (vwarning): Protect calls to target_terminal_ours
3248 2014-08-29 Gary Benson <gbenson@redhat.com>
3250 * exceptions.c (print_flush): Protect calls to
3251 target_terminal_ours and wrap_here.
3253 2014-08-29 Gary Benson <gbenson@redhat.com>
3255 * utils.h (filtered_printing_initialized): New declaration.
3256 * utils.c (abort_with_message): New function.
3257 (internal_vproblem): Use abort_with_message for first level
3258 recursive internal problems, and if gdb_stderr is not set up.
3259 Protect calls to target_terminal_ours, begin_line and query.
3261 2014-08-28 Doug Evans <dje@google.com>
3263 * symtab.c (in_prologue): Move definition to better spot.
3264 (skip_prologue_using_sal): Ditto.
3266 2014-08-28 Doug Evans <dje@google.com>
3268 * symtab.c (find_function_start_sal): Move definition to better spot.
3270 2014-08-28 Yao Qi <yao@codesourcery.com>
3272 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3273 found_stack_adjust in forward scan. Remove condition check
3274 on found_stack_adjust which is always true. Indent the code.
3276 2014-08-28 Yao Qi <yao@codesourcery.com>
3278 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3279 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3280 (dwarf_decode_lines): Remove argument
3281 want_line_info. Remove condition check on want_line_info.
3284 2014-08-27 Doug Evans <dje@google.com>
3286 * dwarf2read.c (dwarf_record_line): Fix typo.
3288 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3290 * target.h (struct target_ops::to_terminal_save_ours): Remove
3292 (target_terminal_save_ours): Remove macro.
3293 * target-delegates.c: Regenerate.
3294 * inf-child.c (inf_child_target): Don't set the nonexistent
3295 field to_terminal_save_ours.
3296 * inferior.h (child_terminal_save_ours): Remove declaration.
3297 * terminal.h (gdb_save_tty_state): New declaration.
3298 * inflow.c (child_terminal_save_ours): Rename to ...
3299 (gdb_save_tty_state): ... this.
3300 * tui/tui.c: Include terminal.h.
3301 (tui_enable): Use gdb_save_tty_state instead of
3302 target_terminal_save_ours.
3303 (tui_disable): Likewise.
3305 2014-08-25 Doug Evans <dje@google.com>
3307 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3308 Pass NULL instead of 0 for context pointer.
3310 2014-08-25 Yao Qi <yao@codesourcery.com>
3312 * dwarf2read.c: Fix grammatical error.
3314 2014-08-24 Yao Qi <yao@codesourcery.com>
3316 * dwarf2read.c (scan_partial_symbols): Update comments.
3317 Rename argument 'need_pc' with 'set_addrmap'.
3318 (add_partial_namespace): Rename argument 'need_pc' with
3320 (add_partial_module): Likewise.
3321 (add_partial_subprogram): Likewise. Update comments.
3322 (dwarf2_name): Fix typo.
3324 2014-08-22 Doug Evans <dje@google.com>
3327 * dwarf2read.c (dwarf_record_line_p): New function.
3328 (dwarf_decode_lines_1): Ignore subsequent line number entries
3329 for the same line if any entry had a non-zero discriminator.
3331 2014-08-22 Doug Evans <dje@google.com>
3333 * buildsym.h (record_line_ftype): New typedef.
3334 (record_line): Use it.
3335 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3336 (dwarf_decode_lines_1): Call them.
3338 2014-08-22 Yao Qi <yao@codesourcery.com>
3340 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3341 (ctf_end): Remove code.
3343 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3345 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3346 (linux_make_corefile_notes): call update_thread_list, protected against
3349 2014-08-21 Pedro Alves <palves@redhat.com>
3351 * infcmd.c (attach_command): Remove comment.
3353 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3355 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3356 unsigned LONGEST to ULONGEST.
3358 2014-08-20 Pedro Alves <palves@redhat.com>
3360 * Makefile.in (check-read1): New rule.
3362 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3364 * value.c (value_from_contents_and_address): Strip resolved_type's
3365 typedef layers before checking its TYPE_DATA_LOCATION.
3367 2014-08-20 Pedro Alves <palves@redhat.com>
3369 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3371 2014-08-20 Yao Qi <yao@codesourcery.com>
3373 * amd64-tdep.c (amd64_classify): Add a blank line after the
3374 example. Move "*/" to a new line.
3375 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3376 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3377 * dwarf2read.c (psymtab_include_file_name): Likewise.
3379 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3380 Pedro Alves <palves@redhat.com>
3384 * ada-lang.c (coerce_unspec_val_to_type): Use
3385 value_contents_copy_raw.
3386 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3387 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3388 * cp-valprint.c (cp_print_value_fields): Let the common printing
3389 code handle optimized out values.
3390 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3391 * d-valprint.c (dynamic_array_type): Use
3392 value_bits_any_optimized_out.
3393 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3394 check_any_valid fields.
3395 (check_pieced_value_bits): Delete and inline ...
3396 (check_pieced_synthetic_pointer): ... here.
3397 (check_pieced_value_validity): Delete.
3398 (check_pieced_value_invalid): Delete.
3399 (pieced_value_funcs): Remove check_validity and check_any_valid
3401 (read_pieced_value): Use mark_value_bits_optimized_out.
3402 (write_pieced_value): Switch to use
3403 mark_value_bytes_optimized_out.
3404 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3405 of assuming the whole value is optimized out.
3406 * findvar.c (read_frame_register_value): Remove special handling
3407 of optimized out registers.
3408 (value_from_register): Use mark_value_bytes_optimized_out.
3409 * frame-unwind.c (frame_unwind_got_optimized): Use
3410 mark_value_bytes_optimized_out.
3411 * jv-valprint.c (java_value_print): Adjust.
3412 (java_print_value_fields): Let the common printing code handle
3413 optimized out values.
3414 * mips-tdep.c (mips_print_register): Remove special handling of
3415 optimized out registers.
3416 * opencl-lang.c (lval_func_check_validity): Delete.
3417 (lval_func_check_any_valid): Delete.
3418 (opencl_value_funcs): Remove check_validity and check_any_valid
3420 * p-valprint.c (pascal_object_print_value_fields): Let the common
3421 printing code handle optimized out values.
3422 * stack.c (read_frame_arg): Remove special handling of optimized
3423 out values. Fetch both VAL and ENTRYVAL before comparing
3424 contents. Adjust to value_available_contents_eq rename.
3425 * valprint.c (valprint_check_validity)
3426 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3427 (val_print_array_elements): Adjust.
3428 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3429 (value_bits_any_optimized_out): New function.
3430 (value_entirely_covered_by_range_vector): New function, factored
3431 out from value_entirely_unavailable.
3432 (value_entirely_unavailable): Reimplement.
3433 (value_entirely_optimized_out): New function.
3434 (insert_into_bit_range_vector): New function, factored out from
3435 mark_value_bits_unavailable.
3436 (mark_value_bits_unavailable): Reimplement.
3437 (struct ranges_and_idx): New struct.
3438 (find_first_range_overlap_and_match): New function, factored out
3439 from value_available_contents_bits_eq.
3440 (value_available_contents_bits_eq): Rename to ...
3441 (value_contents_bits_eq): ... this. Check both unavailable
3442 contents and optimized out contents.
3443 (value_available_contents_eq): Rename to ...
3444 (value_contents_eq): ... this.
3445 (allocate_value_lazy): Remove reference to the old optimized_out
3447 (allocate_optimized_out_value): Use
3448 mark_value_bytes_optimized_out.
3449 (require_not_optimized_out): Adjust to check whether the
3450 optimized_out vec is empty.
3451 (ranges_copy_adjusted): New function, factored out from
3452 value_contents_copy_raw.
3453 (value_contents_copy_raw): Also copy the optimized out ranges.
3454 Assert the destination ranges aren't optimized out.
3455 (value_contents_copy): Update comment, remove call to
3456 require_not_optimized_out.
3457 (value_contents_equal): Adjust to check whether the optimized_out
3459 (set_value_optimized_out, value_optimized_out_const): Delete.
3460 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3462 (value_entirely_optimized_out, value_bits_valid): Delete.
3463 (value_copy): Take a VEC copy of the 'optimized_out' field.
3464 (value_primitive_field): Remove special handling of optimized out.
3465 (value_fetch_lazy): Assert that lazy values have no unavailable
3466 regions. Use value_bits_any_optimized_out. Remove some special
3467 handling for optimized out values.
3468 * value.h: Add intro comment about <optimized out> and
3470 (struct lval_funcs): Remove check_validity and check_any_valid
3472 (set_value_optimized_out, value_optimized_out_const): Remove.
3473 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3475 (value_bits_any_optimized_out): New declaration.
3476 (value_bits_valid): Delete declaration.
3477 (value_available_contents_eq): Rename to ...
3478 (value_contents_eq): ... this, and extend comments.
3480 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3482 Fix -fsanitize=address on unreadable inferior strings.
3483 * valprint.c (val_print_string): Fix access before BUFFER.
3485 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3487 * target.c (target_struct_size): Remove.
3488 (target_struct_allocsize): Remove.
3489 (DEFAULT_ALLOCSIZE): Remove.
3490 (target_ops_p): New typedef.
3491 (DEF_VEC_P (target_ops_p)): New vector type.
3492 (target_structs): Change type to VEC (target_ops_p).
3493 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3494 (find_default_run_target): Rewrite for loop following changes to
3497 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3499 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3500 Adjust code accordingly. Adjust function description comment.
3502 2014-08-19 Yao Qi <yao@codesourcery.com>
3504 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3507 2014-08-19 Alan Modra <amodra@gmail.com>
3509 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3510 * config.in: Regenerate.
3511 * configure: Regenerate.
3513 2014-08-19 Tom Tromey <tromey@redhat.com>
3514 Gary Benson <gbenson@redhat.com>
3516 * common/common-debug.h: New file.
3517 * common/common-debug.c: Likewise.
3518 * debug.c: Likewise.
3519 * Makefile.in (SFILES): Add common/common-debug.c.
3520 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3521 (COMMON_OBS): Add common-debug.o and debug.o.
3522 (common-debug.o): New rule.
3523 * common/common-defs.h: Include common-debug.h.
3524 * common/agent.c (debug_agent_printf): New function.
3525 (DEBUG_AGENT): Redefine.
3526 * nat/i386-dregs.c (debug_printf): Undefine.
3528 2014-08-19 Gary Benson <gbenson@redhat.com>
3530 * common/common-defs.h: Include print-utils.h.
3531 * utils.h: Do not include print-utils.h.
3533 2014-08-19 Tom Tromey <tromey@redhat.com>
3534 Gary Benson <gbenson@redhat.com>
3536 * common/common-types.h: New file.
3537 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3538 * common/common-defs.h: Include common-types.h.
3539 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3542 2014-08-19 Tom Tromey <tromey@redhat.com>
3543 Gary Benson <gbenson@redhat.com>
3545 * common/errors.h: New file.
3546 * common/errors.c: Likewise.
3547 * Makefile.in (SFILES): Add common/errors.c.
3548 (HFILES_NO_SRCDIR): Add common/errors.h.
3549 (COMMON_OBS): Add errors.o.
3550 (errors.o): New rule.
3551 * common/common-defs.h: Include errors.h.
3552 * utils.h (perror_with_name, error, verror, warning, vwarning):
3554 * common/common-utils.h: (malloc_failure, internal_error):
3557 2014-08-19 Gary Benson <gbenson@redhat.com>
3559 * utils.c (internal_vproblem): Always print the message.
3561 2014-08-18 Doug Evans <dje@google.com>
3563 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3565 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3567 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3568 Return 0 if TYPE is dynamic.
3569 (print_range): Add handling of dynamic ranges.
3571 2014-08-18 Keven Boell <keven.boell@intel.com>
3572 Joel Brobecker <brobecker@adacore.com>
3574 * gdbtypes.h (struct main_type): Add field "data_location".
3575 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3576 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3577 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3578 a dynamic data location.
3579 (resolve_dynamic_type): Add DW_AT_data_location handling.
3580 (copy_recursive, copy_type): Copy the data_location information
3582 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3583 * value.c (value_from_contents_and_address): Add
3584 DW_AT_data_location handling.
3586 2014-08-18 Keven Boell <keven.boell@intel.com>
3587 Joel Brobecker <brobecker@adacore.com>
3589 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3590 field "get_object_address".
3591 * dwarf2expr.c (execute_stack_op): Add handling for
3592 DW_OP_push_object_address.
3593 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3594 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3595 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3596 (dwarf_expr_get_obj_addr): New function.
3597 (dwarf_expr_ctx_funcs): Add get_object_address field.
3598 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3599 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3600 (dwarf2_evaluate_property): Add parameter "address". Use it.
3601 (needs_get_obj_addr): New function.
3602 (needs_frame_ctx_funcs): Add get_object_address field.
3603 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3604 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3605 (resolve_dynamic_array): Likewise.
3607 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3609 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3610 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3611 fixed value for records and unions for which some GNAT encodings
3614 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3616 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3617 rewrite to avoid "else if" and "else" constructs. Should be
3618 a no-op in practice.
3620 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3622 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3625 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3628 * eval.c: Update all calls to find_overload_match.
3629 * valarith.c: Likewise.
3630 (value_user_defined_cpp_op, value_user_defined_op): New
3631 argument NOSIDE. Update all callers.
3632 * valops.c (find_overload_match): New argument NOSIDE.
3633 * value.h (find_overload_match): Update signature.
3635 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3637 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3638 'items' methods instead of 'iteritems' method on dictionaries.
3640 2014-08-15 Doug Evans <dje@google.com>
3642 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3645 2014-08-15 Doug Evans <dje@google.com>
3647 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3649 2014-08-15 Doug Evans <dje@google.com>
3651 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3653 2014-08-15 Doug Evans <dje@google.com>
3655 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3658 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3660 * dcache.h: Include target.h, to avoid compile time warnings.
3662 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3664 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3665 frame_info" partial declaration.
3666 * gdbarch.h: Regenerate.
3668 2014-08-15 Yao Qi <yao@codesourcery.com>
3670 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3671 Add parameter 'decode_for_pst_p'. Callers update.
3673 2014-08-13 Yao Qi <yao@codesourcery.com>
3676 * configure.ac: Use local variable 'pos'.
3677 * configure: Regenerated.
3679 2014-08-11 Doug Evans <dje@google.com>
3681 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3682 message, it is redundant with "Reading symbols from ..." message.
3684 2014-08-10 Doug Evans <xdje42@gmail.com>
3686 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3688 2014-08-09 Yao Qi <yao@codesourcery.com>
3691 * remote.c (remote_xfer_partial): Remove dead code.
3693 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3695 * ia64-linux-tdep.c: Include "regset.h".
3696 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3697 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3698 (ia64_linux_supply_fpregset): New function.
3699 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3700 (ia64_linux_regset_from_core_section): New function.
3701 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3704 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3706 * m68klinux-tdep.c: Include "regset.h".
3707 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3708 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3709 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3710 (m68k_linux_regset_from_core_section): New function.
3711 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3714 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3716 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3717 function. Move logic to...
3718 (tilegx_linux_regmap): ... this new register map.
3719 (tilegx_linux_regset): Refer to register map, replace supply
3720 method by regcache_supply_regset, and add collect method.
3721 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3722 TILEGX_FIRST_EASY_REGNUM.
3724 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3726 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3727 that calls regcache_supply_regset and handles the EPC register
3728 separately. Move main logic to...
3729 (score7_linux_gregmap): ... this new register map.
3730 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3731 (score7_linux_gregset): Refer to register map. Add collect method.
3732 (score7_linux_regset_from_core_section): Replace
3733 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3734 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3735 (struct regset): Delete unused forward declaraction.
3736 (struct pt_regs): Delete structure definition.
3737 (elf_gregset_t): Delete typedef.
3739 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3741 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3742 (nios2_core_regset): Add collect method.
3744 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3746 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3747 platform-independent and don't write to read-only input buffer.
3748 (m32r_linux_collect_gregset): New function.
3749 (m32r_linux_gregset): Add collect method.
3751 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3753 * hppa-linux-tdep.c (greg_map): Rename to...
3754 (hppa_linux_gregmap): ... this. Also convert to
3755 regcache_map_entry format.
3756 (hppa_linux_supply_regset): Delete function.
3757 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3758 (hppa_linux_fpregmap): ... this new register map.
3759 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3760 register map, replace supply method by regcache_supply_regset, and
3761 add collect method regcache_collect_regset.
3763 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3765 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3766 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3767 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3768 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3769 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3770 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3771 (frv_linux_supply_gregset): Replace main logic by call to
3772 regcache_supply_regset, but keep clearing gr32-gr63.
3773 (frv_linux_supply_fpregset): Delete function.
3774 (frv_linux_gregset): Refer to appropriate register map and add
3775 regcache_collect_regset as the collect method.
3776 (frv_linux_fpregset): Likewise. Also exchange the supply method
3777 by regcache_supply_regset.
3779 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3781 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3782 by call to alpha_supply_int_regs.
3783 (alpha_linux_collect_gregset): New function.
3784 (alpha_linux_supply_fpregset): Replace logic by call to
3785 alpha_supply_fp_regs.
3786 (alpha_linux_collect_fpregset): New function.
3787 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3789 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3791 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3792 by call to regcache_collect_regset.
3793 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3794 instead of aarch64_linux_supply_gregset/_fpregset.
3795 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3796 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3797 header file instead.
3798 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3799 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3800 functions. Move logic to ...
3801 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3803 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3804 refer to new register maps, replace *_regset_from_core by
3805 regcache_supply_regset, and also use regcache_collect_regset.
3806 * aarch64-linux-tdep.h: Include "regset.h".
3807 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3809 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3810 macros, moved from C source file.
3811 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3812 variable declarations.
3814 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3816 * s390-linux-nat.c: Include "regset.h".
3817 (regmap_gregset): Delete macro.
3818 (s390_64_regmap_gregset): New register map for
3819 regcache_supply/_collect_regset.
3820 (s390_64_gregset): New regset.
3821 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3822 (regmap_fpregset): Delete macro.
3823 (s390_native_supply, s390_native_collect): Delete functions.
3824 (supply_gregset, fill_gregset): Replace s390-specific regmap
3825 handling by a call to regcache_supply/_collect_regset.
3826 (supply_fpregset, fill_fpregset): Call regcache_supply/
3827 _collect_regset instead of s390_native_supply/_collect.
3828 (fetch_regset, store_regset): Likewise. Also change the last
3829 parameter to a regset instead of a regmap.
3830 (s390_linux_fetch_inferior_registers)
3831 (390_linux_store_inferior_registers): Adjust last parameter in
3832 calls to fetch_regset and store_regset.
3833 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3834 (s390_gregmap): ... this. Also make static const and convert to
3835 regcache_map_entry format.
3836 (s390x_regmap_gregset): Delete.
3837 (s390_regmap_fpregset): Rename to...
3838 (s390_fpregmap): ... this. Make static const and convert to
3839 regcache_map_entry format.
3840 (s390_regmap_upper, s390_regmap_last_break)
3841 (s390x_regmap_last_break, s390_regmap_system_call)
3842 (s390_regmap_tdb): Likewise.
3843 (s390_supply_regset, s390_collect_regset): Remove functions.
3844 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3846 (s390_gregset, s390_fpregset, s390_upper_regset)
3847 (s390_last_break_regset, s390x_last_break_regset)
3848 (s390_system_call_regset, s390_tdb_regset): Make global and
3849 replace s390_supply/_collect_regset by regcache_supply/
3851 (s390x_gregset): Delete.
3852 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3853 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3854 (s390_regmap_fpregset, s390_regmap_last_break)
3855 (s390x_regmap_last_break, s390_regmap_system_call)
3856 (s390_regmap_tdb): Delete global variable declarations.
3857 (s390_gregset, s390_fpregset, s390_last_break_regset)
3858 (s390x_last_break_regset, s390_system_call_regset)
3859 (s390_tdb_regset): New global variable declarations.
3861 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3863 * regcache.c: Include "regset.h".
3864 (regcache_transfer_regset): New local function.
3865 (regcache_supply_regset, regcache_collect_regset): New functions.
3866 * regcache.h (struct regcache_map_entry): New structure.
3867 (REGCACHE_MAP_SKIP): New enum value.
3868 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3870 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3872 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3873 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3874 (ppc_linux_collect_gregset ): Likewise.
3875 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3876 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3877 (ppc_collect_vrregset): Likewise.
3878 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3881 2014-08-07 Yao Qi <yao@codesourcery.com>
3883 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3884 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3885 * remote.c (remote_read_bytes): Likewise.
3887 2014-08-07 Yao Qi <yao@codesourcery.com>
3889 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3891 2014-08-07 Yao Qi <yao@codesourcery.com>
3894 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3895 TARGET_XFER_OK instead of 0.
3897 2014-08-07 Gary Benson <gbenson@redhat.com>
3899 * common/common-defs.h: Include errno.h.
3900 * defs.h: Do not include errno.h.
3901 * ada-typeprint.c: Likewise.
3902 * c-typeprint.c: Likewise.
3903 * core-regset.c: Likewise.
3904 * corefile.c: Likewise.
3905 * corelow.c: Likewise.
3906 * event-loop.c: Likewise.
3907 * f-typeprint.c: Likewise.
3908 * gnu-nat.c: Likewise.
3909 * go32-nat.c: Likewise.
3910 * i386gnu-nat.c: Likewise.
3911 * m2-typeprint.c: Likewise.
3912 * nat/linux-btrace.c: Likewise.
3913 * p-typeprint.c: Likewise.
3914 * procfs.c: Likewise.
3915 * remote-sim.c: Likewise.
3916 * rs6000-nat.c: Likewise.
3917 * target.c: Likewise.
3918 * typeprint.c: Likewise.
3919 * ui-file.c: Likewise.
3920 * valops.c: Likewise.
3921 * valprint.c: Likewise.
3923 2014-08-07 Gary Benson <gbenson@redhat.com>
3925 * common/common-defs.h: Include string.h.
3926 * aarch64-tdep.c: Do not include string.h.
3927 * ada-exp.y: Likewise.
3928 * ada-lang.c: Likewise.
3929 * ada-lex.l: Likewise.
3930 * ada-typeprint.c: Likewise.
3931 * ada-valprint.c: Likewise.
3932 * aix-thread.c: Likewise.
3933 * alpha-linux-tdep.c: Likewise.
3934 * alpha-mdebug-tdep.c: Likewise.
3935 * alpha-nat.c: Likewise.
3936 * alpha-osf1-tdep.c: Likewise.
3937 * alpha-tdep.c: Likewise.
3938 * alphanbsd-tdep.c: Likewise.
3939 * amd64-dicos-tdep.c: Likewise.
3940 * amd64-linux-tdep.c: Likewise.
3941 * amd64-nat.c: Likewise.
3942 * amd64-sol2-tdep.c: Likewise.
3943 * amd64fbsd-tdep.c: Likewise.
3944 * amd64obsd-tdep.c: Likewise.
3945 * arch-utils.c: Likewise.
3946 * arm-linux-nat.c: Likewise.
3947 * arm-linux-tdep.c: Likewise.
3948 * arm-tdep.c: Likewise.
3949 * arm-wince-tdep.c: Likewise.
3950 * armbsd-tdep.c: Likewise.
3951 * armnbsd-nat.c: Likewise.
3952 * armnbsd-tdep.c: Likewise.
3953 * armobsd-tdep.c: Likewise.
3954 * avr-tdep.c: Likewise.
3955 * ax-gdb.c: Likewise.
3956 * ax-general.c: Likewise.
3957 * bcache.c: Likewise.
3958 * bfin-tdep.c: Likewise.
3959 * breakpoint.c: Likewise.
3960 * build-id.c: Likewise.
3961 * buildsym.c: Likewise.
3962 * c-exp.y: Likewise.
3963 * c-lang.c: Likewise.
3964 * c-typeprint.c: Likewise.
3965 * c-valprint.c: Likewise.
3966 * charset.c: Likewise.
3967 * cli-out.c: Likewise.
3968 * cli/cli-cmds.c: Likewise.
3969 * cli/cli-decode.c: Likewise.
3970 * cli/cli-dump.c: Likewise.
3971 * cli/cli-interp.c: Likewise.
3972 * cli/cli-logging.c: Likewise.
3973 * cli/cli-script.c: Likewise.
3974 * cli/cli-setshow.c: Likewise.
3975 * cli/cli-utils.c: Likewise.
3976 * coffread.c: Likewise.
3977 * common/agent.c: Likewise.
3978 * common/buffer.c: Likewise.
3979 * common/buffer.h: Likewise.
3980 * common/common-utils.c: Likewise.
3981 * common/filestuff.c: Likewise.
3982 * common/filestuff.c: Likewise.
3983 * common/format.c: Likewise.
3984 * common/print-utils.c: Likewise.
3985 * common/rsp-low.c: Likewise.
3986 * common/signals.c: Likewise.
3987 * common/vec.h: Likewise.
3988 * common/xml-utils.c: Likewise.
3989 * core-regset.c: Likewise.
3990 * corefile.c: Likewise.
3991 * corelow.c: Likewise.
3992 * cp-abi.c: Likewise.
3993 * cp-name-parser.y: Likewise.
3994 * cp-support.c: Likewise.
3995 * cp-valprint.c: Likewise.
3996 * cris-tdep.c: Likewise.
3997 * d-exp.y: Likewise.
3998 * darwin-nat.c: Likewise.
3999 * dbxread.c: Likewise.
4000 * dcache.c: Likewise.
4001 * demangle.c: Likewise.
4002 * dicos-tdep.c: Likewise.
4003 * disasm.c: Likewise.
4004 * doublest.c: Likewise.
4005 * dsrec.c: Likewise.
4006 * dummy-frame.c: Likewise.
4007 * dwarf2-frame.c: Likewise.
4008 * dwarf2loc.c: Likewise.
4009 * dwarf2read.c: Likewise.
4010 * elfread.c: Likewise.
4011 * environ.c: Likewise.
4013 * event-loop.c: Likewise.
4014 * exceptions.c: Likewise.
4016 * expprint.c: Likewise.
4017 * f-exp.y: Likewise.
4018 * f-lang.c: Likewise.
4019 * f-typeprint.c: Likewise.
4020 * f-valprint.c: Likewise.
4021 * fbsd-nat.c: Likewise.
4022 * findcmd.c: Likewise.
4023 * findvar.c: Likewise.
4024 * fork-child.c: Likewise.
4025 * frame.c: Likewise.
4026 * frv-linux-tdep.c: Likewise.
4027 * frv-tdep.c: Likewise.
4029 * gdb_bfd.c: Likewise.
4030 * gdbarch.c: Likewise.
4031 * gdbarch.sh: Likewise.
4032 * gdbtypes.c: Likewise.
4033 * gnu-nat.c: Likewise.
4034 * gnu-v2-abi.c: Likewise.
4035 * gnu-v3-abi.c: Likewise.
4036 * go-exp.y: Likewise.
4037 * go-lang.c: Likewise.
4038 * go32-nat.c: Likewise.
4039 * guile/guile.c: Likewise.
4040 * guile/scm-auto-load.c: Likewise.
4041 * hppa-hpux-tdep.c: Likewise.
4042 * hppa-linux-nat.c: Likewise.
4043 * hppanbsd-tdep.c: Likewise.
4044 * hppaobsd-tdep.c: Likewise.
4045 * i386-cygwin-tdep.c: Likewise.
4046 * i386-dicos-tdep.c: Likewise.
4047 * i386-linux-tdep.c: Likewise.
4048 * i386-nto-tdep.c: Likewise.
4049 * i386-sol2-tdep.c: Likewise.
4050 * i386-tdep.c: Likewise.
4051 * i386bsd-tdep.c: Likewise.
4052 * i386gnu-nat.c: Likewise.
4053 * i386nbsd-tdep.c: Likewise.
4054 * i386obsd-tdep.c: Likewise.
4055 * i387-tdep.c: Likewise.
4056 * ia64-libunwind-tdep.c: Likewise.
4057 * ia64-linux-nat.c: Likewise.
4058 * inf-child.c: Likewise.
4059 * inf-ptrace.c: Likewise.
4060 * inf-ttrace.c: Likewise.
4061 * infcall.c: Likewise.
4062 * infcmd.c: Likewise.
4063 * inflow.c: Likewise.
4064 * infrun.c: Likewise.
4065 * interps.c: Likewise.
4066 * iq2000-tdep.c: Likewise.
4067 * irix5-nat.c: Likewise.
4068 * jv-exp.y: Likewise.
4069 * jv-lang.c: Likewise.
4070 * jv-typeprint.c: Likewise.
4071 * jv-valprint.c: Likewise.
4072 * language.c: Likewise.
4073 * linux-fork.c: Likewise.
4074 * linux-nat.c: Likewise.
4075 * lm32-tdep.c: Likewise.
4076 * m2-exp.y: Likewise.
4077 * m2-typeprint.c: Likewise.
4078 * m32c-tdep.c: Likewise.
4079 * m32r-linux-nat.c: Likewise.
4080 * m32r-linux-tdep.c: Likewise.
4081 * m32r-rom.c: Likewise.
4082 * m32r-tdep.c: Likewise.
4083 * m68hc11-tdep.c: Likewise.
4084 * m68k-tdep.c: Likewise.
4085 * m68kbsd-tdep.c: Likewise.
4086 * m68klinux-nat.c: Likewise.
4087 * m68klinux-tdep.c: Likewise.
4088 * m88k-tdep.c: Likewise.
4089 * machoread.c: Likewise.
4090 * macrocmd.c: Likewise.
4092 * mdebugread.c: Likewise.
4093 * mem-break.c: Likewise.
4094 * memattr.c: Likewise.
4095 * memory-map.c: Likewise.
4096 * mep-tdep.c: Likewise.
4097 * mi/mi-cmd-break.c: Likewise.
4098 * mi/mi-cmd-disas.c: Likewise.
4099 * mi/mi-cmd-env.c: Likewise.
4100 * mi/mi-cmd-stack.c: Likewise.
4101 * mi/mi-cmd-var.c: Likewise.
4102 * mi/mi-cmds.c: Likewise.
4103 * mi/mi-console.c: Likewise.
4104 * mi/mi-getopt.c: Likewise.
4105 * mi/mi-interp.c: Likewise.
4106 * mi/mi-main.c: Likewise.
4107 * mi/mi-parse.c: Likewise.
4108 * microblaze-rom.c: Likewise.
4109 * microblaze-tdep.c: Likewise.
4110 * mingw-hdep.c: Likewise.
4111 * minidebug.c: Likewise.
4112 * minsyms.c: Likewise.
4113 * mips-irix-tdep.c: Likewise.
4114 * mips-linux-tdep.c: Likewise.
4115 * mips-tdep.c: Likewise.
4116 * mips64obsd-tdep.c: Likewise.
4117 * mipsnbsd-tdep.c: Likewise.
4118 * mipsread.c: Likewise.
4119 * mn10300-linux-tdep.c: Likewise.
4120 * mn10300-tdep.c: Likewise.
4121 * monitor.c: Likewise.
4122 * moxie-tdep.c: Likewise.
4123 * mt-tdep.c: Likewise.
4124 * nat/linux-btrace.c: Likewise.
4125 * nat/linux-osdata.c: Likewise.
4126 * nat/linux-procfs.c: Likewise.
4127 * nat/linux-ptrace.c: Likewise.
4128 * nat/linux-waitpid.c: Likewise.
4129 * nbsd-tdep.c: Likewise.
4130 * nios2-linux-tdep.c: Likewise.
4131 * nto-procfs.c: Likewise.
4132 * nto-tdep.c: Likewise.
4133 * objc-lang.c: Likewise.
4134 * objfiles.c: Likewise.
4135 * opencl-lang.c: Likewise.
4136 * osabi.c: Likewise.
4137 * osdata.c: Likewise.
4138 * p-exp.y: Likewise.
4139 * p-lang.c: Likewise.
4140 * p-typeprint.c: Likewise.
4141 * parse.c: Likewise.
4142 * posix-hdep.c: Likewise.
4143 * ppc-linux-nat.c: Likewise.
4144 * ppc-sysv-tdep.c: Likewise.
4145 * ppcfbsd-tdep.c: Likewise.
4146 * ppcnbsd-tdep.c: Likewise.
4147 * ppcobsd-tdep.c: Likewise.
4148 * printcmd.c: Likewise.
4149 * procfs.c: Likewise.
4150 * prologue-value.c: Likewise.
4151 * python/py-auto-load.c: Likewise.
4152 * python/py-gdb-readline.c: Likewise.
4153 * ravenscar-thread.c: Likewise.
4154 * regcache.c: Likewise.
4155 * registry.c: Likewise.
4156 * remote-fileio.c: Likewise.
4157 * remote-m32r-sdi.c: Likewise.
4158 * remote-mips.c: Likewise.
4159 * remote-notif.c: Likewise.
4160 * remote-sim.c: Likewise.
4161 * remote.c: Likewise.
4162 * reverse.c: Likewise.
4163 * rs6000-aix-tdep.c: Likewise.
4164 * ser-base.c: Likewise.
4165 * ser-go32.c: Likewise.
4166 * ser-mingw.c: Likewise.
4167 * ser-pipe.c: Likewise.
4168 * ser-tcp.c: Likewise.
4169 * ser-unix.c: Likewise.
4170 * serial.c: Likewise.
4171 * sh-tdep.c: Likewise.
4172 * sh64-tdep.c: Likewise.
4173 * shnbsd-tdep.c: Likewise.
4175 * sol-thread.c: Likewise.
4176 * solib-dsbt.c: Likewise.
4177 * solib-frv.c: Likewise.
4178 * solib-osf.c: Likewise.
4179 * solib-som.c: Likewise.
4180 * solib-spu.c: Likewise.
4181 * solib-target.c: Likewise.
4182 * solib.c: Likewise.
4183 * somread.c: Likewise.
4184 * source.c: Likewise.
4185 * sparc-nat.c: Likewise.
4186 * sparc-sol2-tdep.c: Likewise.
4187 * sparc-tdep.c: Likewise.
4188 * sparc64-tdep.c: Likewise.
4189 * sparc64fbsd-tdep.c: Likewise.
4190 * sparc64nbsd-tdep.c: Likewise.
4191 * sparcnbsd-tdep.c: Likewise.
4192 * spu-linux-nat.c: Likewise.
4193 * spu-multiarch.c: Likewise.
4194 * spu-tdep.c: Likewise.
4195 * stabsread.c: Likewise.
4196 * stack.c: Likewise.
4197 * std-regs.c: Likewise.
4198 * symfile.c: Likewise.
4199 * symmisc.c: Likewise.
4200 * symtab.c: Likewise.
4201 * target.c: Likewise.
4202 * thread.c: Likewise.
4203 * tilegx-linux-nat.c: Likewise.
4204 * tilegx-tdep.c: Likewise.
4206 * tracepoint.c: Likewise.
4207 * tui/tui-command.c: Likewise.
4208 * tui/tui-data.c: Likewise.
4209 * tui/tui-disasm.c: Likewise.
4210 * tui/tui-file.c: Likewise.
4211 * tui/tui-layout.c: Likewise.
4212 * tui/tui-out.c: Likewise.
4213 * tui/tui-regs.c: Likewise.
4214 * tui/tui-source.c: Likewise.
4215 * tui/tui-stack.c: Likewise.
4216 * tui/tui-win.c: Likewise.
4217 * tui/tui-windata.c: Likewise.
4218 * tui/tui-winsource.c: Likewise.
4219 * typeprint.c: Likewise.
4220 * ui-file.c: Likewise.
4221 * ui-out.c: Likewise.
4222 * user-regs.c: Likewise.
4223 * utils.c: Likewise.
4224 * v850-tdep.c: Likewise.
4225 * valarith.c: Likewise.
4226 * valops.c: Likewise.
4227 * valprint.c: Likewise.
4228 * value.c: Likewise.
4229 * varobj.c: Likewise.
4230 * vax-tdep.c: Likewise.
4231 * vaxnbsd-tdep.c: Likewise.
4232 * vaxobsd-tdep.c: Likewise.
4233 * windows-nat.c: Likewise.
4234 * xcoffread.c: Likewise.
4235 * xml-support.c: Likewise.
4236 * xstormy16-tdep.c: Likewise.
4237 * xtensa-linux-nat.c: Likewise.
4239 2014-08-07 Gary Benson <gbenson@redhat.com>
4241 * common/common-defs.h: Include gdb_assert.h.
4242 * aarch64-tdep.c: Do not include gdb_assert.h.
4243 * addrmap.c: Likewise.
4244 * aix-thread.c: Likewise.
4245 * alpha-linux-tdep.c: Likewise.
4246 * alpha-mdebug-tdep.c: Likewise.
4247 * alphanbsd-tdep.c: Likewise.
4248 * amd64-nat.c: Likewise.
4249 * amd64-tdep.c: Likewise.
4250 * amd64bsd-nat.c: Likewise.
4251 * amd64fbsd-nat.c: Likewise.
4252 * amd64fbsd-tdep.c: Likewise.
4253 * amd64nbsd-nat.c: Likewise.
4254 * amd64nbsd-tdep.c: Likewise.
4255 * amd64obsd-nat.c: Likewise.
4256 * amd64obsd-tdep.c: Likewise.
4257 * arch-utils.c: Likewise.
4258 * arm-tdep.c: Likewise.
4259 * armbsd-tdep.c: Likewise.
4261 * bcache.c: Likewise.
4262 * bfin-tdep.c: Likewise.
4263 * blockframe.c: Likewise.
4264 * breakpoint.c: Likewise.
4265 * bsd-kvm.c: Likewise.
4266 * bsd-uthread.c: Likewise.
4267 * buildsym.c: Likewise.
4268 * c-exp.y: Likewise.
4269 * c-lang.c: Likewise.
4270 * charset.c: Likewise.
4271 * cleanups.c: Likewise.
4272 * cli-out.c: Likewise.
4273 * cli/cli-decode.c: Likewise.
4274 * cli/cli-dump.c: Likewise.
4275 * cli/cli-logging.c: Likewise.
4276 * cli/cli-script.c: Likewise.
4277 * cli/cli-utils.c: Likewise.
4278 * coffread.c: Likewise.
4279 * common/common-utils.c: Likewise.
4280 * common/queue.h: Likewise.
4281 * common/signals.c: Likewise.
4282 * common/vec.h: Likewise.
4283 * complaints.c: Likewise.
4284 * completer.c: Likewise.
4285 * corelow.c: Likewise.
4286 * cp-abi.c: Likewise.
4287 * cp-name-parser.y: Likewise.
4288 * cp-namespace.c: Likewise.
4289 * cp-support.c: Likewise.
4290 * cris-tdep.c: Likewise.
4291 * dbxread.c: Likewise.
4292 * dictionary.c: Likewise.
4293 * doublest.c: Likewise.
4294 * dsrec.c: Likewise.
4295 * dummy-frame.c: Likewise.
4296 * dwarf2-frame-tailcall.c: Likewise.
4297 * dwarf2-frame.c: Likewise.
4298 * dwarf2expr.c: Likewise.
4299 * dwarf2loc.c: Likewise.
4300 * dwarf2read.c: Likewise.
4302 * event-loop.c: Likewise.
4303 * exceptions.c: Likewise.
4304 * expprint.c: Likewise.
4305 * f-valprint.c: Likewise.
4306 * fbsd-nat.c: Likewise.
4307 * findvar.c: Likewise.
4308 * frame-unwind.c: Likewise.
4309 * frame.c: Likewise.
4310 * frv-tdep.c: Likewise.
4311 * gcore.c: Likewise.
4312 * gdb-dlfcn.c: Likewise.
4313 * gdb_bfd.c: Likewise.
4314 * gdbarch.c: Likewise.
4315 * gdbarch.sh: Likewise.
4316 * gdbtypes.c: Likewise.
4317 * gnu-nat.c: Likewise.
4318 * gnu-v3-abi.c: Likewise.
4319 * go-lang.c: Likewise.
4320 * guile/scm-exception.c: Likewise.
4321 * guile/scm-gsmob.c: Likewise.
4322 * guile/scm-lazy-string.c: Likewise.
4323 * guile/scm-math.c: Likewise.
4324 * guile/scm-pretty-print.c: Likewise.
4325 * guile/scm-safe-call.c: Likewise.
4326 * guile/scm-utils.c: Likewise.
4327 * guile/scm-value.c: Likewise.
4328 * h8300-tdep.c: Likewise.
4329 * hppa-hpux-nat.c: Likewise.
4330 * hppa-tdep.c: Likewise.
4331 * hppanbsd-tdep.c: Likewise.
4332 * hppaobsd-tdep.c: Likewise.
4333 * i386-darwin-nat.c: Likewise.
4334 * i386-darwin-tdep.c: Likewise.
4335 * i386-nto-tdep.c: Likewise.
4336 * i386-tdep.c: Likewise.
4337 * i386bsd-nat.c: Likewise.
4338 * i386fbsd-tdep.c: Likewise.
4339 * i386gnu-nat.c: Likewise.
4340 * i386nbsd-tdep.c: Likewise.
4341 * i386obsd-tdep.c: Likewise.
4342 * i387-tdep.c: Likewise.
4343 * ia64-libunwind-tdep.c: Likewise.
4344 * ia64-tdep.c: Likewise.
4345 * inf-ptrace.c: Likewise.
4346 * inf-ttrace.c: Likewise.
4347 * infcall.c: Likewise.
4348 * infcmd.c: Likewise.
4349 * infrun.c: Likewise.
4350 * inline-frame.c: Likewise.
4351 * interps.c: Likewise.
4352 * jv-lang.c: Likewise.
4353 * jv-typeprint.c: Likewise.
4354 * linux-fork.c: Likewise.
4355 * linux-nat.c: Likewise.
4356 * linux-thread-db.c: Likewise.
4357 * m32c-tdep.c: Likewise.
4358 * m32r-linux-nat.c: Likewise.
4359 * m32r-tdep.c: Likewise.
4360 * m68k-tdep.c: Likewise.
4361 * m68kbsd-nat.c: Likewise.
4362 * m68kbsd-tdep.c: Likewise.
4363 * m88k-tdep.c: Likewise.
4364 * machoread.c: Likewise.
4365 * macroexp.c: Likewise.
4366 * macrotab.c: Likewise.
4367 * maint.c: Likewise.
4368 * mdebugread.c: Likewise.
4369 * memory-map.c: Likewise.
4370 * mep-tdep.c: Likewise.
4371 * mi/mi-common.c: Likewise.
4372 * microblaze-tdep.c: Likewise.
4373 * mingw-hdep.c: Likewise.
4374 * mips-linux-nat.c: Likewise.
4375 * mips-linux-tdep.c: Likewise.
4376 * mips-tdep.c: Likewise.
4377 * mips64obsd-tdep.c: Likewise.
4378 * mipsnbsd-tdep.c: Likewise.
4379 * mn10300-linux-tdep.c: Likewise.
4380 * mn10300-tdep.c: Likewise.
4381 * moxie-tdep.c: Likewise.
4382 * mt-tdep.c: Likewise.
4383 * nat/linux-btrace.c: Likewise.
4384 * nat/linux-osdata.c: Likewise.
4385 * nat/linux-ptrace.c: Likewise.
4386 * nat/mips-linux-watch.c: Likewise.
4387 * nios2-linux-tdep.c: Likewise.
4388 * nios2-tdep.c: Likewise.
4389 * objc-lang.c: Likewise.
4390 * objfiles.c: Likewise.
4391 * obsd-nat.c: Likewise.
4392 * opencl-lang.c: Likewise.
4393 * osabi.c: Likewise.
4394 * parse.c: Likewise.
4395 * ppc-linux-nat.c: Likewise.
4396 * ppc-sysv-tdep.c: Likewise.
4397 * ppcfbsd-nat.c: Likewise.
4398 * ppcfbsd-tdep.c: Likewise.
4399 * ppcnbsd-nat.c: Likewise.
4400 * ppcnbsd-tdep.c: Likewise.
4401 * ppcobsd-nat.c: Likewise.
4402 * ppcobsd-tdep.c: Likewise.
4403 * printcmd.c: Likewise.
4404 * procfs.c: Likewise.
4405 * prologue-value.c: Likewise.
4406 * psymtab.c: Likewise.
4407 * python/py-lazy-string.c: Likewise.
4408 * python/py-value.c: Likewise.
4409 * regcache.c: Likewise.
4410 * reggroups.c: Likewise.
4411 * registry.c: Likewise.
4412 * remote-sim.c: Likewise.
4413 * remote.c: Likewise.
4414 * rs6000-aix-tdep.c: Likewise.
4415 * rs6000-tdep.c: Likewise.
4416 * s390-linux-tdep.c: Likewise.
4417 * score-tdep.c: Likewise.
4418 * ser-base.c: Likewise.
4419 * ser-mingw.c: Likewise.
4420 * sh-tdep.c: Likewise.
4421 * sh64-tdep.c: Likewise.
4422 * solib-darwin.c: Likewise.
4423 * solib-spu.c: Likewise.
4424 * solib-svr4.c: Likewise.
4425 * source.c: Likewise.
4426 * sparc-nat.c: Likewise.
4427 * sparc-sol2-tdep.c: Likewise.
4428 * sparc-tdep.c: Likewise.
4429 * sparc64-sol2-tdep.c: Likewise.
4430 * sparc64-tdep.c: Likewise.
4431 * sparc64fbsd-tdep.c: Likewise.
4432 * sparc64nbsd-tdep.c: Likewise.
4433 * sparc64obsd-tdep.c: Likewise.
4434 * sparcnbsd-tdep.c: Likewise.
4435 * sparcobsd-tdep.c: Likewise.
4436 * spu-multiarch.c: Likewise.
4437 * spu-tdep.c: Likewise.
4438 * stabsread.c: Likewise.
4439 * stack.c: Likewise.
4440 * symfile.c: Likewise.
4441 * symtab.c: Likewise.
4442 * target-descriptions.c: Likewise.
4443 * target-memory.c: Likewise.
4444 * target.c: Likewise.
4445 * tic6x-linux-tdep.c: Likewise.
4446 * tic6x-tdep.c: Likewise.
4447 * tilegx-linux-nat.c: Likewise.
4448 * tilegx-tdep.c: Likewise.
4450 * tramp-frame.c: Likewise.
4451 * tui/tui-out.c: Likewise.
4452 * tui/tui-winsource.c: Likewise.
4453 * ui-out.c: Likewise.
4454 * user-regs.c: Likewise.
4455 * utils.c: Likewise.
4456 * v850-tdep.c: Likewise.
4457 * valops.c: Likewise.
4458 * value.c: Likewise.
4459 * varobj.c: Likewise.
4460 * vax-nat.c: Likewise.
4461 * xml-syscall.c: Likewise.
4462 * xml-tdesc.c: Likewise.
4463 * xstormy16-tdep.c: Likewise.
4464 * xtensa-linux-nat.c: Likewise.
4465 * xtensa-tdep.c: Likewise.
4467 2014-08-07 Gary Benson <gbenson@redhat.com>
4469 * common/common-defs.h: Include common-utils.h.
4470 * defs.h: Do not include common-utils.h.
4471 * common/gdb_assert.h: Likewise.
4472 * darwin-nat.h: Likewise.
4473 * nat/linux-btrace.c: Likewise.
4474 * target/waitstatus.h: Likewise.
4476 2014-08-07 Gary Benson <gbenson@redhat.com>
4478 * common/common-defs.h: Include ptid.h.
4479 * defs.h: Do not include ptid.h.
4480 * inferior.h: Likewise.
4481 * infrun.h: Likewise.
4482 * nat/linux-btrace.h: Likewise.
4483 * nat/linux-osdata.h: Likewise.
4484 * target/waitstatus.h: Likewise.
4486 2014-08-07 Gary Benson <gbenson@redhat.com>
4488 * common/common-defs.h: Include gdb_locale.h.
4489 * defs.h: Do not include gdb_locale.h.
4491 2014-08-07 Gary Benson <gbenson@redhat.com>
4493 * common/common-defs.h: Include gdb/signals.h.
4494 * defs.h: Do not include gdb/signals.h.
4496 2014-08-07 Gary Benson <gbenson@redhat.com>
4498 * common/common-defs.h: Include pathmax.h.
4499 * defs.h: Do not include pathmax.h.
4501 2014-08-07 Gary Benson <gbenson@redhat.com>
4503 * common/common-defs.h: Include libiberty.h.
4504 * defs.h: Do not include libiberty.h.
4505 * common/queue.h: Likewise.
4506 * cp-name-parser.y: Likewise.
4507 * mi/mi-cmd-catch.c: Likewise.
4508 * python/python.c: Likewise.
4510 2014-08-07 Gary Benson <gbenson@redhat.com>
4512 * common/common-defs.h: Include ansidecl.h.
4513 * defs.h: Do not include ansidecl.h.
4514 * common/buffer.h: Likewise.
4515 * common/common-utils.h: Likewise.
4517 2014-08-07 Gary Benson <gbenson@redhat.com>
4519 * common/common-defs.h: Include stddef.h.
4520 * defs.h: Do not include stddef.h.
4521 * common/common-utils.h: Likewise.
4522 * amd64fbsd-nat.c: Likewise.
4523 * bcache.c: Likewise.
4524 * charset.c: Likewise.
4525 * common/buffer.h: Likewise.
4526 * common/vec.h: Likewise.
4527 * i386bsd-nat.c: Likewise.
4528 * nat/linux-btrace.h: Likewise.
4529 * ppcfbsd-nat.c: Likewise.
4530 * ppcnbsd-tdep.h: Likewise.
4531 * ppcobsd-nat.c: Likewise.
4532 * ppcobsd-tdep.h: Likewise.
4533 * python/py-gdb-readline.c: Likewise.
4535 2014-08-07 Gary Benson <gbenson@redhat.com>
4537 * common/common-defs.h: Include stdarg.h.
4538 * defs.h: Do not include stdarg.h.
4539 * ada-lang.c: Likewise.
4540 * common/common-utils.h: Likewise.
4541 * guile/scm-string.c: Likewise.
4542 * guile/scm-utils.c: Likewise.
4543 * m32c-tdep.c: Likewise.
4545 2014-08-07 Gary Benson <gbenson@redhat.com>
4547 * common/common-defs.h: Include stdlib.h.
4548 * defs.h: Do not include stdlib.h.
4549 * addrmap.c: Likewise.
4550 * bcache.c: Likewise.
4551 * common/buffer.c: Likewise.
4552 * common/common-utils.c: Likewise.
4553 * cp-name-parser.y: Likewise.
4554 * go32-nat.c: Likewise.
4555 * mn10300-linux-tdep.c: Likewise.
4556 * nat/linux-osdata.c: Likewise.
4557 * tui/tui.c: Likewise.
4558 * windows-nat.c: Likewise.
4560 2014-08-07 Gary Benson <gbenson@redhat.com>
4562 * common/common-defs.h: Include stdio.h.
4563 * defs.h: Do not include stdio.h.
4564 * ada-lang.c: Likewise.
4565 * common/buffer.c: Likewise.
4566 * common/common-utils.c: Likewise.
4567 * cp-name-parser.y: Likewise.
4568 * gnu-nat.c: Likewise.
4569 * go32-nat.c: Likewise.
4570 * i386gnu-nat.c: Likewise.
4571 * proc-api.c: Likewise.
4572 * proc-events.c: Likewise.
4573 * proc-flags.c: Likewise.
4574 * proc-why.c: Likewise.
4575 * python/python-internal.h: Likewise.
4576 * target-memory.c: Likewise.
4577 * tui/tui-io.c: Likewise.
4578 * tui/tui.c: Likewise.
4580 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4582 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4583 (scan_dyntag_auxv): Same.
4585 2014-08-06 Yao Qi <yao@codesourcery.com>
4587 * amd64-linux-nat.c: Remove duplicated include
4589 * i386-linux-nat.c: Likewise.
4591 2014-08-06 Yao Qi <yao@codesourcery.com>
4593 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4594 operand" with "Special opcode" in comments.
4596 2014-08-05 Gary Benson <gbenson@redhat.com>
4598 * interps.c (initialize_interps): Remove prototype.
4599 (interpreter_initialized): Remove static global.
4600 (interp_add): Do not call initialize_interps.
4601 (initialize_interps): Remove function.
4603 2014-08-05 Gary Benson <gbenson@redhat.com>
4605 * utils.c (vwarning): Remove spurious va_end.
4607 2014-08-05 Alan Modra <amodra@gmail.com>
4609 * charset.c (convert_between_encodings): Cast result of obstack_base.
4610 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4611 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4612 (read_unwind_info): Use size_t for some locals.
4613 * jit.c (finalize_symtab): Likewise.
4614 * utils.c (hashtab_obstack_allocate): Likewise.
4615 * symmisc.c (print_objfile_statistics): Update format strings.
4617 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4619 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4620 (Changes in GDB 7.8): ... here.
4622 2014-08-04 Tom Tromey <tromey@redhat.com>
4624 * target.c (set_targetdebug): New function.
4625 (initialize_targets): Pass set_targetdebug when creating "set
4628 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4630 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4631 if detecting a variable-sized field that is not the last field.
4632 Fix struct type length computation.
4634 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4636 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4639 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4641 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4642 Remove "+ 8" offset in computation of CHAIN_VMA.
4644 2014-07-31 Doug Evans <dje@google.com>
4646 * inflow.c (child_terminal_inferior): Add comment.
4647 (child_terminal_ours_for_output): Add comment.
4648 (child_terminal_ours): Add comment.
4649 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4650 (linux_nat_terminal_ours): Add comment.
4652 2014-07-31 Gary Benson <gbenson@redhat.com>
4654 * common/btrace-common.h: Do not include defs.h or server.h.
4655 * nat/mips-linux-watch.h: Likewise.
4656 * gdb-dlfcn.h: Do not include defs.h.
4657 * tracefile.h: Likewise.
4659 2014-07-30 Roland McGrath <mcgrathr@google.com>
4661 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4663 2014-07-30 Tom Tromey <tromey@redhat.com>
4665 * bsd-kvm.c (bsd_kvm_open): Constify.
4666 * corelow.c (core_open): Constify.
4667 * ctf.c (ctf_open): Constify.
4668 * dbug-rom.c (dbug_open): Constify.
4669 * exec.c (exec_open): Constify.
4670 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4671 * microblaze-rom.c (picobug_open): Constify.
4672 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4674 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4675 * record-btrace.c (record_btrace_open): Constify.
4676 * record-full.c (record_full_core_open_1, record_full_open_1)
4677 (record_full_open): Constify.
4678 * remote-m32r-sdi.c (m32r_open): Constify.
4679 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4680 (rockhopper_open, lsi_open): Constify.
4681 * remote-sim.c (gdbsim_open): Constify.
4682 * remote.c (remote_open, extended_remote_open, remote_open_1):
4684 * target.h (struct target_ops) <to_open>: Make "arg" const.
4685 * tracefile-tfile.c (tfile_open): Constify.
4687 2014-07-30 Tom Tromey <tromey@redhat.com>
4689 * breakpoint.c (map_breakpoint_numbers): Update.
4690 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4691 (get_number_const): New function.
4692 (get_number): Rewrite using get_number_const.
4693 (init_number_or_range): Make "string" const.
4694 (number_is_in_list): Make "list" const.
4695 * cli/cli-utils.h (get_number_const): Declare.
4696 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4697 (init_number_or_range, number_is_in_list): Update.
4698 * printcmd.c (map_display_numbers): Update.
4699 * value.c (value_from_history_ref): Constify.
4700 * value.h (value_from_history_ref): Update.
4702 2014-07-30 Tom Tromey <tromey@redhat.com>
4704 * corefile.c (hook_type, call_extra_exec_file_hooks)
4705 (specify_exec_file_hook): Constify.
4706 * exec.c (exec_file_attach): Make "filename" const.
4707 * gdbcore.h (deprecated_exec_file_display_hook)
4708 (specify_exec_file_hook, exec_file_attach): Constify.
4709 * main.c (captured_main): Use catch_command_errors_const.
4711 2014-07-30 Tom Tromey <tromey@redhat.com>
4713 * target.c (open_target): New function.
4714 (add_target_with_completer, add_deprecated_target_alias): Use
4715 set_cmd_sfunc, set_cmd_context.
4716 (debug_to_open): Remove.
4717 (setup_target_debug): Update.
4719 2014-07-30 Yao Qi <yao@codesourcery.com>
4721 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4723 * parse.c (exp_iterate): Update comments.
4725 2014-07-30 Gary Benson <gbenson@redhat.com>
4727 * common/common-defs.h: New file.
4728 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4729 * defs.h: Include common-defs.h.
4730 Do not include config.h or build-gnulib/config.h.
4732 2014-07-30 Gary Benson <gbenson@redhat.com>
4734 * common/common-utils.h: Do not include config.h.
4735 * nat/linux-btrace.h: Likewise.
4737 2014-07-30 Gary Benson <gbenson@redhat.com>
4739 * btrace.c: Include defs.h.
4740 * common/ptid.c: Include defs.h or server.h as appropriate.
4741 * nat/mips-linux-watch.c: Likewise.
4743 2014-07-29 Tom Tromey <tromey@redhat.com>
4745 * target.c (target_is_pushed): Simplify.
4747 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4751 2014-07-29 Yao Qi <yao@codesourcery.com>
4754 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4756 2014-07-28 Doug Evans <xdje42@gmail.com>
4759 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4760 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4763 2014-07-28 Will Newton <will.newton@linaro.org>
4765 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4766 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4767 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4768 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4769 (THUMB2_EABI_SYSCALL): Likewise.
4770 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4772 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4773 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4775 2014-07-27 Doug Evans <xdje42@gmail.com>
4777 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4779 2014-07-27 Doug Evans <xdje42@gmail.com>
4781 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4783 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4784 Doug Evans <xdje42@gmail.com>
4787 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4788 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4789 * configure.ac: Try to use guild to compile an scm file, if it fails
4790 then disable guile support.
4791 * configure: Regenerate.
4792 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4794 (GUILE_COMPILED_FILES): New variable.
4795 (GUILE_FILES) Update.
4796 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4797 (stamp-guile): Compile scm files.
4798 * guile/guile.c (boot_guile_support): New function.
4799 (standard_throw_args_p): New function.
4800 (print_standard_throw_error, print_throw_error): New functions.
4801 (handle_boot_error): New function.
4802 (initialize_scheme_side): Rewrite to call boot_guile_support.
4803 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4804 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4806 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4807 Doug Evans <xdje42@gmail.com>
4810 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4811 * guile/lib/gdb/support.scm: New file.
4812 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4813 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4815 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4817 (%assert-type): Ditto, and renamed to assert-type.
4818 (%exception-print-style): Delete.
4820 2014-07-26 Doug Evans <xdje42@gmail.com>
4823 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4824 * configure: Regenerate.
4825 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4827 (PYTHON_FILES): New variable.
4828 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4829 (GUILE_FILES): New variable.
4830 (stamp-python, install-python, uninstall-python): Handle empty
4832 (stamp-guile, install-guile, uninstall-guile): Ditto.
4834 2014-07-26 Doug Evans <xdje42@gmail.com>
4837 * guile/lib/gdb.scm (pretty-printers): Export.
4838 (set-pretty-printers!): Export.
4839 * guile/lib/gdb/printing.scm (gdb module): Update.
4840 (prepend-pretty-printer!, append-pretty-printer!): Update.
4841 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4842 (pretty_printer_list_var): Delete.
4843 (pretty_printer_list): New static global.
4844 (gdbscm_pretty_printers): New function.
4845 (gdbscm_set_pretty_printers_x): New function.
4846 (ppscm_find_pretty_printer_from_gdb): Update.
4847 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4848 (gdbscm_initialize_pretty_printers): Update.
4850 2014-07-26 Doug Evans <xdje42@gmail.com>
4853 * configure.ac: Add check for header gc/gc.h.
4854 Add check for function setenv.
4855 * configure: Regenerate.
4856 * config.in: Regenerate.
4857 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4859 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4861 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4862 variation in gdbarch matching.
4864 2014-07-25 Tom Tromey <tromey@redhat.com>
4866 * exec.c (using_exec_ops): Remove.
4867 (exec_close_1): Update. Remove extraneous block, reindent.
4868 (add_target_sections): Use target_is_pushed.
4870 2014-07-25 Pedro Alves <palves@redhat.com>
4872 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4873 * monitor.c (monitor_create_inferior): Likewise.
4874 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4875 * remote-sim.c (gdbsim_create_inferior): Likewise.
4876 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4877 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4878 * windows-nat.c (do_initial_windows_stuff): Likewise.
4880 2014-07-25 Pedro Alves <palves@redhat.com>
4882 * NEWS: Mention signal passing and "signal" command changes.
4883 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4885 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4887 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4888 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4889 (jump_command): Adjust clear_proceed_status call.
4890 (signal_command): Warn if other thread that are resumed have
4891 signals that will be delivered. Adjust clear_proceed_status call.
4892 (until_next_command, finish_command)
4893 (proceed_after_attach_callback, attach_command_post_wait)
4894 (attach_command): Adjust clear_proceed_status call.
4895 * infrun.c (proceed_after_vfork_done): Likewise.
4896 (proceed_after_attach_callback): Adjust comment.
4897 (clear_proceed_status_thread): Clear stop_signal if not in pass
4899 (clear_proceed_status_callback): Delete.
4900 (clear_proceed_status): New 'step' parameter. Only clear the
4901 proceed status of threads the command being prepared is about to
4903 (proceed): If passed in an explicit signal, override stop_signal
4904 with it. Don't pass the last stop signal to the thread we're
4906 (init_wait_for_inferior): Adjust clear_proceed_status call.
4907 (switch_back_to_stepped_thread): Clear the signal if it should not
4909 * infrun.h (clear_proceed_status): New 'step' parameter.
4910 (user_visible_resume_ptid): Add comment.
4911 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4912 signal is in pass state.
4913 * remote.c (append_pending_thread_resumptions): Likewise.
4914 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4916 2014-07-25 Tom Tromey <tromey@redhat.com>
4918 * target.h (target_stopped_data_address)
4919 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4922 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4924 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4926 (avr_pointer_to_address): Likewise.
4928 2014-07-24 Tom Tromey <tromey@redhat.com>
4930 * monitor.c (compile_pattern): Update.
4931 * target.h (struct target_ops) <to_shortname, to_longname,
4934 2014-07-24 Tom Tromey <tromey@redhat.com>
4936 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4937 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4938 (add_info_alias, add_com): Make "doc" const.
4939 (print_doc_line): Make "str" const.
4940 (delete_cmd): Update.
4941 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4942 (print_doc_line): Update.
4943 * cli/cli-script.c (document_command): Update.
4944 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4945 (add_com, add_info, add_info_alias): Update.
4946 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4947 * python/py-cmd.c (cmdpy_destroyer): Update.
4949 2014-07-24 Tom Tromey <tromey@redhat.com>
4951 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4952 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4953 (help_cmd_list): Constify.
4954 (lookup_cmd): Update.
4955 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4957 (help_cmd_list, apropos_cmd): Update.
4958 * cli/cli-script.c (show_user): Update.
4959 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4960 * cli/cli-setshow.h (cmd_show_list): Update.
4961 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4962 (cmd_show_list): Update.
4963 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4964 * python/py-cmd.c (cmdpy_destroyer): Update.
4966 2014-07-24 Tom Tromey <tromey@redhat.com>
4968 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4969 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4971 * command.h (deprecate_cmd): Update.
4972 * maint.c (maintenance_do_deprecate): Add casts.
4974 2014-07-24 Tom Tromey <tromey@redhat.com>
4976 * cli/cli-decode.c (help_cmd): Make parameter "const".
4977 * cli/cli-decode.h (help_cmd): Update.
4979 2014-07-24 Tom Tromey <tromey@redhat.com>
4981 * stack.c (up_silently_base, down_silently_base): Make argument
4984 2014-07-24 Tom Tromey <tromey@redhat.com>
4986 * solib.c (solib_add): Make "pattern" const.
4987 * solib.h (solib_add): Update.
4989 2014-07-24 Tom Tromey <tromey@redhat.com>
4991 * remote.c (remote_serial_open, print_packet, putpkt)
4992 (putpkt_binary): Constify.
4993 * remote.h (putpkt): Update.
4995 2014-07-24 Tom Tromey <tromey@redhat.com>
4997 * monitor.c (monitor_open): Make "args" const.
4998 * monitor.h (monitor_open): Update.
5000 2014-07-24 Tom Tromey <tromey@redhat.com>
5002 * maint.c (match_bfd_flags): Make "string" const.
5003 (print_bfd_section_info): Remove casts.
5004 (print_objfile_section_info): Make "string" const.
5006 2014-07-24 Tom Tromey <tromey@redhat.com>
5008 * inf-child.c (inf_child_open_target): Make "arg" const.
5009 * inf-child.h (inf_child_open_target): Update.
5011 2014-07-24 Tom Tromey <tromey@redhat.com>
5013 * environ.c (unset_in_environ): Make "var" const.
5014 * environ.h (unset_in_environ): Update.
5016 2014-07-24 Tom Tromey <tromey@redhat.com>
5018 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5020 (scan_filename_with_cleanup): Likewise.
5021 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5022 Make arguments const.
5023 (restore_command): Update.
5025 2014-07-24 Pedro Alves <palves@redhat.com>
5027 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5029 2014-07-24 Tom Tromey <tromey@redhat.com>
5030 Gary Benson <gbenson@redhat.com>
5032 * nat/linux-ptrace.c (additional_flags): New global.
5033 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5034 additional_flags; don't check GDBSERVER.
5035 (linux_ptrace_set_additional_flags): New function.
5036 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5038 * linux-nat.c (_initialize_linux_nat): Call
5039 linux_ptrace_set_additional_flags.
5041 2014-07-24 Tom Tromey <tromey@redhat.com>
5043 * make-target-delegates (munge_type, write_debugmethod): New
5045 (debug_names): New global.
5046 ($TARGET_DEBUG_PRINTER): New global.
5047 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5049 Write debug methods. Generate init_debug_target.
5050 * target-debug.h: New file.
5051 * target-delegates.c: Rebuild.
5052 * target.c: Include target-debug.h.
5053 (debug_target): Hoist definition.
5054 (target_kill, target_get_section_table, target_memory_map)
5055 (target_flash_erase, target_flash_done, target_detach)
5056 (target_disconnect, target_wait, target_resume)
5057 (target_pass_signals, target_program_signals, target_follow_fork)
5058 (target_mourn_inferior, target_search_memory)
5059 (target_thread_address_space, target_close)
5060 (target_find_new_threads, target_core_of_thread)
5061 (target_verify_memory, target_insert_mask_watchpoint)
5062 (target_remove_mask_watchpoint): Remove targetdebug code.
5063 (debug_to_post_attach, debug_to_prepare_to_store)
5064 (debug_to_files_info, debug_to_insert_breakpoint)
5065 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5066 (debug_to_region_ok_for_hw_watchpoint)
5067 (debug_to_can_accel_watchpoint_condition)
5068 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5069 (debug_to_watchpoint_addr_within_range)
5070 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5071 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5072 (debug_to_terminal_init, debug_to_terminal_inferior)
5073 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5074 (debug_to_terminal_save_ours, debug_to_terminal_info)
5075 (debug_to_load, debug_to_post_startup_inferior)
5076 (debug_to_insert_fork_catchpoint)
5077 (debug_to_remove_fork_catchpoint)
5078 (debug_to_insert_vfork_catchpoint)
5079 (debug_to_remove_vfork_catchpoint)
5080 (debug_to_insert_exec_catchpoint)
5081 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5082 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5083 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5084 (setup_target_debug): Call init_debug_target.
5085 * target.h (TARGET_DEBUG_PRINTER): New macro.
5086 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5087 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5089 2014-07-24 Gary Benson <gbenson@redhat.com>
5091 * exceptions.h (throw_vfatal): Renamed to...
5092 (throw_vquit): New declaration.
5093 (throw_quit): Likewise.
5094 * exceptions.c (throw_vfatal): Renamed to...
5095 (throw_vquit): New function.
5096 (throw_quit): Likewise.
5097 (throw_error): Call throw_verror rather than throw_it.
5098 * utils.h (vfatal): Removed.
5100 * utils.c (vfatal): Removed.
5102 (internal_verror): Replaced call to fatal with call to throw_quit.
5103 (quit): Replaced calls to fatal with calls to throw_quit.
5105 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5107 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5110 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5112 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5113 less than zero in conditional expression.
5115 2014-07-23 Tom Tromey <tromey@redhat.com>
5117 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5118 ($INTRO_PART): Don't match whitespace.
5119 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5121 ($METHOD): Add $METHOD_TRAILER.
5123 (scan_target_h): New sub.
5124 Change main loop not to collect state.
5125 * target-delegates.c: Rebuild.
5127 2014-07-23 Gary Benson <gbenson@redhat.com>
5129 * cp-support.c (gdb_demangle): Fix build on systems without
5132 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5134 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5135 for reference entry value target data value.
5137 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5139 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5140 value_available_contents_eq.
5142 2014-07-22 Pedro Alves <palves@redhat.com>
5144 * value.c (allocate_optimized_out_value): Don't mark value as
5147 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5149 * MAINTAINERS (Write After Approval): Update my email address.
5151 2014-07-20 Doug Evans <dje@google.com>
5154 * remote.c (putpkt_binary): Add text to error message.
5156 2014-07-20 Yao Qi <yao@codesourcery.com>
5158 * eval.c: Remove "Chill" from comments.
5159 * gdbtypes.h: Likewise.
5160 * symtab.h: Likewise.
5162 2014-07-20 Yao Qi <yao@codesourcery.com>
5164 * std-operator.def: Update comments to TERNOP_SLICE.
5166 2014-07-20 Yao Qi <yao@codesourcery.com>
5168 * std-operator.def: Remove BINOP_RANGE.
5169 * breakpoint.c (watchpoint_exp_is_const): Update.
5170 * expprint.c (dump_subexp_body_standard): Likewise.
5171 * eval.c (init_array_element): Remove dead code.
5172 (evaluate_subexp_standard): Likewise.
5174 2014-07-20 Yao Qi <yao@codesourcery.com>
5176 * std-operator.def: Remove BINOP_IN.
5177 * breakpoint.c (watchpoint_exp_is_const): Update.
5178 * eval.c (evaluate_subexp_standard): Likewise.
5179 * expprint.c (dump_subexp_body_standard): Likewise.
5181 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5183 * microblaze-tdep.c (microblaze_register_names): Add
5184 the rshr and rslr register names.
5185 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5186 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5187 Use of tdesc_numbered_register. Use of
5188 microblaze_register_g_packet_guesses. Use of
5189 tdesc_use_registers. Use of set_gdbarch_register_type.
5190 (microblaze_register_g_packet_guesses): New.
5191 * microblaze-tdep.h (microblaze_reg_num): Add
5192 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5193 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5194 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5195 * features/microblaze-core.xml: New file.
5196 * features/microblaze-stack-protect.xml: New file.
5197 * features/microblaze-with-stack-protect.c: New file.
5198 * features/microblaze-with-stack-protect.xml: New file.
5199 * features/microblaze.xml: New file.
5200 * features/microblaze.c: New file.
5201 * features/Makefile (microblaze-with-stack-protect): Add
5202 microblaze-with-stack-protect microblaze and microblaze-expedite.
5203 * regformats/microblaze-with-stack-protect.dat: New file.
5204 * regformats/microblaze.dat: New file.
5205 * doc/gdb.texinfo (MicroBlaze Features): Added.
5207 2014-07-18 Tom Tromey <tromey@redhat.com>
5209 * exec.c (exec_ops): Now static.
5210 * exec.h (exec_ops): Don't declare.
5212 2014-07-18 Tom Tromey <tromey@redhat.com>
5214 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5215 to find_target_beneath.
5216 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5217 find_target_beneath.
5218 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5220 2014-07-18 Tom Tromey <tromey@redhat.com>
5223 * utils.c (quit): Use target_supports_terminal_ours.
5224 * target.h (target_supports_terminal_ours): Declare.
5225 * target.c (target_supports_delete_record): Don't check
5226 to_delete_record against NULL.
5227 (target_supports_terminal_ours): New function.
5229 2014-07-18 Tom Tromey <tromey@redhat.com>
5232 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5233 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5234 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5235 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5236 * windows-nat.c (windows_xfer_partial): Always delegate.
5237 * record-btrace.c (record_btrace_xfer_partial): Simplify
5239 (record_btrace_fetch_registers, record_btrace_store_registers)
5240 (record_btrace_prepare_to_store, record_btrace_resume)
5241 (record_btrace_wait, record_btrace_find_new_threads)
5242 (record_btrace_thread_alive): Likewise.
5243 * procfs.c (procfs_xfer_partial): Always delegate.
5244 * corelow.c (core_xfer_partial): Always delegate.
5245 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5247 2014-07-18 Tom Tromey <tromey@redhat.com>
5249 * exec.c (exec_make_note_section): Move earlier.
5251 2014-07-17 Doug Evans <dje@google.com>
5254 * maint.c (count_symtabs_and_blocks): Handle NULL
5255 current_program_space.
5256 (report_command_stats): Check global enabled flag in addition to
5257 recorded enabled flag.
5258 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5260 2014-07-16 Pedro Alves <palves@redhat.com>
5262 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5264 2014-07-16 Tom Tromey <tromey@redhat.com>
5266 * target.h (struct target_ops) <to_delete_record>: Reformat
5269 2014-07-16 Tom Tromey <tromey@redhat.com>
5271 * target-delegates.c: Rebuild.
5273 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5275 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5276 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5277 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5278 (avr_pointer_to_address): Likewise.
5279 (avr_address_class_type_flags): New function.
5280 (avr_address_class_type_flags_to_name): Likewise.
5281 (avr_address_class_name_to_type_flags): Likewise.
5282 (avr_gdbarch_init): Set address_class_type_flags,
5283 address_class_type_flags_to_name and
5284 address_class_name_to_type_flags.
5286 2014-07-15 Pedro Alves <palves@redhat.com>
5288 * linux-nat.c (kill_callback): Save errno and work with saved
5291 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5293 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5295 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5297 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5298 breakpoint support correctly.
5300 2014-07-14 Pedro Alves <palves@redhat.com>
5302 * utils.c (prompt_for_continue): Call target_terminal_ours.
5304 2014-07-14 Pedro Alves <palves@redhat.com>
5306 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5307 catch_errors. Don't re-enable stdin or notify observers where,
5309 (fetch_inferior_event_wrapper): Delete.
5311 2014-07-14 Pedro Alves <palves@redhat.com>
5314 * top.c: Include "inf-loop.h".
5315 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5317 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5319 (gdb_readline_wrapper): Store whether the target is async, and
5322 2014-07-14 Pedro Alves <palves@redhat.com>
5325 * top.c (gdb_readline_wrapper_line): Tweak comment.
5326 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5327 the input handler callback.
5329 2014-07-14 Pedro Alves <palves@redhat.com>
5332 * main.c: Include event-top.h.
5333 (handle_command_errors): New function.
5334 (catch_command_errors, catch_command_errors_const): Use it.
5336 2014-07-14 Pedro Alves <palves@redhat.com>
5338 * exceptions.c (catch_command_errors, catch_command_errors_const):
5340 * exceptions.h (catch_command_errors_ftype)
5341 (catch_command_errors_const_ftype): Moved to main.c.
5342 (catch_command_errors, catch_command_errors_const): Delete
5344 * main.c (catch_command_errors_ftype)
5345 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5346 (catch_command_errors, catch_command_errors_const)): Moved here
5347 from exceptions.c and make static.
5349 2014-07-14 Pedro Alves <palves@redhat.com>
5351 * exceptions.c (print_any_exception): Delete.
5352 (catch_exceptions_with_msg): Use exception_print instead of
5353 print_any_exception.
5354 (catch_errors): Use exception_fprintf instead of
5355 print_any_exception.
5356 (catch_command_errors, catch_command_errors_const): Use
5357 exception_print instead of print_any_exception.
5359 2014-07-14 Pedro Alves <palves@redhat.com>
5361 * infcall.c (run_inferior_call): Set 'sync_execution' while
5362 running the inferior call.
5364 2014-07-14 Pedro Alves <palves@redhat.com>
5366 * value.c (value_contents_equal): Delete function.
5367 * value.h (value_contents_equal): Delete declaration.
5369 2014-07-14 Tom Tromey <tromey@redhat.com>
5372 * gdbtypes.c (is_dynamic_type_internal): New function, from
5374 (is_dynamic_type): Rewrite.
5375 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5376 (resolve_dynamic_struct): Likewise.
5377 (resolve_dynamic_type_internal): New function, from
5378 resolve_dynamic_type.
5379 (resolve_dynamic_type): Rewrite.
5381 2014-07-14 Tom Tromey <tromey@redhat.com>
5383 * target.c (target_require_runnable): Also check record_stratum.
5386 2014-07-11 Yao Qi <yao@codesourcery.com>
5388 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5389 thumb_instruction_restores_sp return true.
5391 2014-07-11 Yao Qi <yao@codesourcery.com>
5393 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5394 (thumb_in_function_epilogue_p): Call
5395 thumb_instruction_restores_sp.
5397 2014-07-11 Yao Qi <yao@codesourcery.com>
5399 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5401 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5403 2014-07-11 Gary Benson <gbenson@redhat.com>
5405 * amd64-linux-nat.c (gdbcore.h): Remove include.
5406 (regset.h): Likewise.
5407 (nat/linux-btrace.h): Likewise.
5408 (btrace.h): Likewise.
5409 (gdb_assert.h): Likewise.
5410 (string.h): Likewise.
5411 (sys/uio.h): Likewise.
5412 (sys/debugreg.h): Likewise.
5413 (sys/syscall.h): Likewise.
5414 (sys/procfs.h): Likewise.
5415 (sys/user.h): Likewise.
5416 (asm/ptrace.h): Likewise.
5417 (i386-nat.h): Likewise.
5418 * i386-linux-nat.c (i386-nat.h): Likewise.
5419 (regset.h): Likewise.
5420 (target.h): Likewise.
5421 (linux-nat.h): Likewise.
5422 (nat/linux-btrace.h): Likewise.
5423 (btrace.h): Likewise.
5424 (gdb_assert.h): Likewise.
5425 (string.h): Likewise.
5426 (sys/uio.h): Likewise.
5427 (sys/user.h): Likewise.
5428 (sys/procfs.h): Likewise.
5429 (sys/reg.h): Likewise.
5430 (sys/debugreg.h): Likewise.
5431 (ORIG_EAX): Remove definition.
5433 2014-07-11 Gary Benson <gbenson@redhat.com>
5435 * i386-linux-nat.h: New file.
5436 * x86-linux-nat.h: Likewise.
5437 * x86-linux-nat.c: Likewise.
5438 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5439 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5440 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5441 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5442 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5443 (PTRACE_SETREGSET): Likewise.
5444 (arch_lwp_info): Now in x86-linux-nat.c.
5445 (have_ptrace_getregset): Now in x86-linux-nat.h.
5446 (x86_linux_dr_get): Now in x86-linux-nat.c.
5447 (x86_linux_dr_set): Likewise.
5448 (x86_linux_dr_get_addr): Likewise.
5449 (x86_linux_dr_get_control): Likewise.
5450 (x86_linux_dr_get_status): Likewise.
5451 (update_debug_registers_callback): Likewise.
5452 (x86_linux_dr_set_control): Likewise.
5453 (x86_linux_dr_set_addr): Likewise.
5454 (x86_linux_prepare_to_resume): Likewise.
5455 (x86_linux_new_thread): Likewise.
5456 (x86_linux_new_fork): Likewise.
5457 (x86_linux_get_thread_area): Likewise.
5458 (super_post_startup_inferior): Likewise.
5459 (x86_linux_child_post_startup_inferior): Likewise.
5460 (AMD64_LINUX_USER64_CS): Likewise.
5461 (AMD64_LINUX_X32_DS): Likewise.
5462 (x86_linux_read_description): Likewise.
5463 (x86_linux_enable_btrace): Likewise.
5464 (x86_linux_disable_btrace): Likewise.
5465 (x86_linux_teardown_btrace): Likewise.
5466 (x86_linux_read_btrace): Likewise.
5467 (x86_linux_create_target): Likewise.
5468 (x86_linux_add_target): Likewise.
5469 * i386-linux-nat.c (x86-linux-nat.h): New include.
5470 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5471 (PTRACE_SETREGSET): Likewise.
5472 (arch_lwp_info): Now in x86-linux-nat.c.
5473 (have_ptrace_getregset): Now in x86-linux-nat.h.
5474 (x86_linux_dr_get): Now in x86-linux-nat.c.
5475 (x86_linux_dr_set): Likewise.
5476 (x86_linux_dr_get_addr): Likewise.
5477 (x86_linux_dr_get_control): Likewise.
5478 (x86_linux_dr_get_status): Likewise.
5479 (update_debug_registers_callback): Likewise.
5480 (x86_linux_dr_set_control): Likewise.
5481 (x86_linux_dr_set_addr): Likewise.
5482 (x86_linux_prepare_to_resume): Likewise.
5483 (x86_linux_new_thread): Likewise.
5484 (x86_linux_new_fork): Likewise.
5485 (x86_linux_get_thread_area): Likewise.
5486 (super_post_startup_inferior): Likewise.
5487 (x86_linux_child_post_startup_inferior): Likewise.
5488 (AMD64_LINUX_USER64_CS): Likewise.
5489 (AMD64_LINUX_X32_DS): Likewise.
5490 (x86_linux_read_description): Likewise.
5491 (x86_linux_enable_btrace): Likewise.
5492 (x86_linux_disable_btrace): Likewise.
5493 (x86_linux_teardown_btrace): Likewise.
5494 (x86_linux_read_btrace): Likewise.
5495 (x86_linux_create_target): Likewise.
5496 (x86_linux_add_target): Likewise.
5498 2014-07-11 Gary Benson <gbenson@redhat.com>
5500 * amd64-linux-nat.c: Comment and whitespace changes.
5501 * i386-linux-nat.c: Comment and whitespace changes.
5503 2014-07-11 Gary Benson <gbenson@redhat.com>
5505 * amd64-linux-nat.c (x86_linux_create_target): New function.
5506 (x86_linux_add_target): Likewise.
5507 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5508 * i386-linux-nat.c (x86_linux_create_target): New function.
5509 (x86_linux_add_target): Likewise.
5510 (_initialize_i386_linux_nat): Delegate to the above new functions.
5512 2014-07-11 Gary Benson <gbenson@redhat.com>
5514 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5515 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5516 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5517 (ps_get_thread_area): Delegate to the above.
5519 2014-07-11 Gary Benson <gbenson@redhat.com>
5521 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5522 x86_linux_read_description. All uses updated. amd64-specific
5523 code conditionalized. Conditionalized i386-specific code added.
5524 Redundant cast removed.
5525 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5526 x86_linux_read_description. All uses updated. i386-specific
5527 code conditionalized. Conditionalized amd64-specific code added.
5528 One sizeof replaced with the actual type it is describing.
5530 2014-07-11 Gary Benson <gbenson@redhat.com>
5532 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5533 x86_linux_dr_get. All uses updated.
5534 (amd64_linux_dr_set): Renamed to
5535 x86_linux_dr_set. All uses updated.
5536 (amd64_linux_dr_get_addr): Renamed to
5537 x86_linux_dr_get_addr. All uses updated.
5538 (amd64_linux_dr_get_control): Renamed to
5539 x86_linux_dr_get_control. All uses updated.
5540 (amd64_linux_dr_get_status): Renamed to
5541 x86_linux_dr_get_status. All uses updated.
5542 (amd64_linux_dr_set_control): Renamed to
5543 x86_linux_dr_set_control. All uses updated.
5544 (amd64_linux_dr_set_addr): Renamed to
5545 x86_linux_dr_set_addr. All uses updated.
5546 (amd64_linux_prepare_to_resume): Renamed to
5547 x86_linux_prepare_to_resume. All uses updated.
5548 (amd64_linux_new_thread): Renamed to
5549 x86_linux_new_thread. All uses updated.
5550 (amd64_linux_new_fork): Renamed to
5551 x86_linux_new_fork. All uses updated.
5552 (amd64_linux_child_post_startup_inferior): Renamed to
5553 x86_linux_child_post_startup_inferior. All uses updated.
5554 (amd64_linux_enable_btrace): Renamed to
5555 x86_linux_enable_btrace. All uses updated.
5556 (amd64_linux_disable_btrace): Renamed to
5557 x86_linux_disable_btrace. All uses updated.
5558 (amd64_linux_teardown_btrace): Renamed to
5559 x86_linux_teardown_btrace. All uses updated.
5560 (amd64_linux_read_btrace): Renamed to
5561 x86_linux_read_btrace. All uses updated.
5562 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5563 x86_linux_dr_get. All uses updated.
5564 (i386_linux_dr_set): Renamed to
5565 x86_linux_dr_set. All uses updated.
5566 (i386_linux_dr_get_addr): Renamed to
5567 x86_linux_dr_get_addr. All uses updated.
5568 (i386_linux_dr_get_control): Renamed to
5569 x86_linux_dr_get_control. All uses updated.
5570 (i386_linux_dr_get_status): Renamed to
5571 x86_linux_dr_get_status. All uses updated.
5572 (i386_linux_dr_set_control): Renamed to
5573 x86_linux_dr_set_control. All uses updated.
5574 (i386_linux_dr_set_addr): Renamed to
5575 x86_linux_dr_set_addr. All uses updated.
5576 (i386_linux_prepare_to_resume): Renamed to
5577 x86_linux_prepare_to_resume. All uses updated.
5578 (i386_linux_new_thread): Renamed to
5579 x86_linux_new_thread. All uses updated.
5580 (i386_linux_new_fork): Renamed to
5581 x86_linux_new_fork. All uses updated.
5582 (i386_linux_child_post_startup_inferior): Renamed to
5583 x86_linux_child_post_startup_inferior. All uses updated.
5584 (i386_linux_enable_btrace): Renamed to
5585 x86_linux_enable_btrace. All uses updated.
5586 (i386_linux_disable_btrace): Renamed to
5587 x86_linux_disable_btrace. All uses updated.
5588 (i386_linux_teardown_btrace): Renamed to
5589 x86_linux_teardown_btrace. All uses updated.
5590 (i386_linux_read_btrace): Renamed to
5591 x86_linux_read_btrace. All uses updated.
5593 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5595 * remote.c (extended_remote_post_attach): New function.
5596 (init_extended_remote_ops): Install it as to_post_attach method.
5598 2014-07-09 Pedro Alves <palves@redhat.com>
5600 * infcmd.c (attach_command_post_wait): Don't call
5601 target_terminal_inferior here.
5602 (attach_command): Call it here instead.
5604 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5606 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5608 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5609 from varobj.c, with additional checks.
5610 (c_varobj_ops): Fill in is_path_expr_parent field.
5611 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5612 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5614 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5616 (varobj_default_is_path_expr_parent): New function.
5617 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5618 (varobj_default_is_path_expr_parent): Declare new function.
5620 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5622 * infcmd.c (finish_backward): Turn internal error into normal error.
5624 2014-07-07 Pedro Alves <palves@redhat.com>
5627 * remote.c (async_handle_remote_sigint)
5628 (async_handle_remote_sigint_twice): Call
5629 gdb_call_async_signal_handler instead of
5630 mark_async_signal_handler.
5632 2014-07-07 Tom Tromey <tromey@redhat.com>
5634 * target-delegates.c: Rebuild.
5635 * target.c (target_info_record): Remove.
5636 * record.c (info_record_command): Unconditionally call
5638 * target.h (struct target_ops) <to_info_record>: Use
5639 TARGET_DEFAULT_IGNORE.
5640 (target_info_record): Remove.
5642 2014-07-07 Tom Tromey <tromey@redhat.com>
5644 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5645 TARGET_DEFAULT_NORETURN.
5646 * target.c (generic_tls_error): New function.
5647 (target_translate_tls_address): Don't search target stack.
5648 * target-delegates.c: Rebuild.
5649 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5651 * linux-thread-db.c (thread_db_get_thread_local_address):
5652 Unconditionally call beneath target.
5654 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5656 * cli/cli-logging.c (pop_output_files): Assign targerr to
5659 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5661 * MAINTAINERS (Write After Approval): Update my email address.
5663 2014-07-02 Gary Benson <gbenson@redhat.com>
5665 * proc-service.c (ps_xfer_memory): Update comment.
5666 (ps_pstop): Remove unused function.
5667 (ps_pcontinue): Likewise.
5668 (ps_lstop): Likewise.
5669 (ps_lcontinue): Likewise.
5670 (ps_lgetxregsize): Likewise.
5671 (ps_lgetxregs): Likewise.
5672 (ps_lsetxregs): Likewise.
5673 (ps_plog): Likewise.
5674 (ps_ptread): Likewise.
5675 (ps_ptwrite): Likewise.
5677 2014-07-01 Mark Wielaard <mjw@redhat.com>
5679 * dwarf2read.c (add_array_cv_type): New function.
5680 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5681 (read_tag_volatile_type): Likewise.
5683 2014-07-01 Tom Tromey <tromey@redhat.com>
5685 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5686 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5687 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5688 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5689 * command.h (cmd_cfunc_ftype): Move earlier.
5690 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5691 (add_com, add_info): Use cmd_cfunc_ftype.
5693 2014-06-30 Tom Tromey <tromey@redhat.com>
5695 * symtab.c (operator_chars): Make parameters and return type
5697 (file_matches): Make "files" const.
5698 (struct search_symbols_data) <files>: Now const.
5699 (search_symbols): Make "regexp" and "files" parameters const.
5701 (symtab_symbol_info): Remove cast.
5702 (rbreak_command): Update.
5703 * symtab.h (search_symbols): Update.
5705 2014-06-27 Yao Qi <yao@codesourcery.com>
5707 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5708 Change parameter type to 'struct thread_info *'. Caller
5710 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5712 * dummy-frame.c (struct dummy_frame_id): New.
5713 (dummy_frame_id_eq): New function.
5714 (struct dummy_frame) <id>: Change its type to 'struct
5716 (dummy_frame_push): Add parameter ptid and save it in
5718 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5720 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5722 (lookup_dummy_frame): Change parameter type to 'struct
5723 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5724 instead of frame_id_eq.
5725 (dummy_frame_pop): Add parameter ptid. Callers updated.
5726 Update comments. Compose dummy_frame_id and pass it to
5728 (dummy_frame_discard): Add parameter ptid.
5729 (dummy_frame_sniffer): Compose dummy_frame_id and call
5730 dummy_frame_id_eq instead of frame_id_eq.
5731 (fprint_dummy_frames): Print ptid.
5732 * dummy-frame.h: Remove comments.
5733 (dummy_frame_push): Add ptid in declaration.
5734 (dummy_frame_pop, dummy_frame_discard): Likewise.
5736 2014-06-26 Tom Tromey <tromey@redhat.com>
5738 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5739 * command.h (error_no_arg): Update.
5741 2014-06-26 Tom Tromey <tromey@redhat.com>
5743 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5744 (do_show_command): Make "arg" const.
5745 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5747 2014-06-26 Tom Tromey <tromey@redhat.com>
5749 * record-full.c (record_full_get_bookmark): Make "args" const.
5750 (record_full_goto_bookmark): Make "raw_bookmark" const.
5751 * record.c (record_goto): New function.
5752 (cmd_record_goto): Use it. Now static.
5753 * record.h (record_goto): Declare.
5754 (cmd_record_goto): Remove declaration.
5755 * target-delegates.c: Rebuild.
5756 * target.h (struct target_ops) <to_get_bookmark,
5757 to_goto_bookmark>: Make parameter const.
5759 2014-06-26 Tom Tromey <tromey@redhat.com>
5761 * defs.h (generic_load): Update.
5762 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5763 * monitor.c (monitor_load): Make "args" const.
5764 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5765 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5767 (mips_load): Make "file" const.
5768 * remote-sim.c (gdbsim_load): Make "args" const.
5769 * remote.c (remote_load): Make "name" const.
5770 * symfile.c (generic_load): Make "args" const.
5771 * target-delegates.c: Rebuild.
5772 * target.c (target_load): Make "arg" const.
5773 (debug_to_load): Make "args" const.
5774 * target.h (struct target_ops) <to_load>: Make parameter const.
5775 (target_load): Update.
5777 2014-06-26 Tom Tromey <tromey@redhat.com>
5780 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5781 (dwarf2_physname, read_partial_die)
5782 (guess_partial_die_structure_name, fixup_partial_die)
5783 (guess_full_die_structure_name, anonymous_struct_prefix)
5784 (dwarf2_name): Use per-BFD obstack.
5786 2014-06-26 Yao Qi <yao@codesourcery.com>
5788 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5789 dummyframe and this_id into inner block below.
5791 2014-06-26 Yao Qi <yao@codesourcery.com>
5793 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5794 with "signal_pass[0]" in the initialization of signal_pass.
5796 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5798 * record-btrace.c (record_btrace_generating_corefile)
5799 (record_btrace_prepare_to_generate_core)
5800 (record_btrace_done_generating_core): New.
5801 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5802 (record_btrace_store_registers, record_btrace_prepare_to_store):
5803 Forward request when generating a core file.
5804 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5805 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5806 to_done_generating_core.
5808 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5810 * target.h (target_ops) <to_prepare_to_generate_core>
5811 <to_done_generating_core>: New.
5812 (target_prepare_to_generate_core, target_done_generating_core): New.
5813 * target.c (target_prepare_to_generate_core)
5814 (target_done_generating_core): New.
5815 * target-delegates.c: Regenerate.
5816 * gcore.c: (write_gcore_file): Rename to ...
5817 (write_gcore_file_1): ...this.
5818 (write_gcore_file): Call target_prepare_to_generate_core
5819 and target_done_generating_core.
5821 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5823 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5824 * gcore.c (write_gcore_file): Free memory returned from
5825 make_corefile_notes.
5826 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5827 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5829 2014-06-24 Yao Qi <yao@codesourcery.com>
5831 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5832 (arm_linux_init_abi): Set skip_trampoline_code with
5833 gdbarch_skip_trampoline_code instead of
5834 find_solib_trampoline_target.
5836 2014-06-24 Yao Qi <yao@codesourcery.com>
5838 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5839 arm_skip_bx_reg returns non-zero.
5841 2014-06-24 Yao Qi <yao@codesourcery.com>
5843 * arm-tdep.c (arm_skip_bx_reg): New function.
5844 (arm_skip_stub): Call arm_skip_bx_reg.
5846 2014-06-23 Don Breazeal <donb@codesourcery.com>
5848 * MAINTAINERS: Add myself as write-after-approval maintainer.
5850 2014-06-23 Pedro Alves <palves@redhat.com>
5852 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5853 DR_CONTROL before setting DR0..DR3.
5854 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5855 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5856 bits of DR_CONTROL related to the debug register slot being
5857 disabled. If all slots are vacant, clear local slowdown as well,
5858 and assert DR_CONTROL is 0.
5860 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5862 * python/lib/gdb/command/xmethods.py
5863 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5864 current progspace only if the string "progspace" matches LOCUS_RE.
5866 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5868 Fix --with-system-readline with readline-6.3 patch 5.
5869 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5870 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5873 2014-06-20 Tom Tromey <tromey@redhat.com>
5875 * dwarf2read.c (dw2_get_real_path): Use correct type in
5877 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5879 2014-06-20 Gary Benson <gbenson@redhat.com>
5881 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5882 * common/glibc_thread_db.h: Likewise.
5883 * common/i386-cpuid.h: Likewise.
5884 * common/i386-gcc-cpuid.h: Likewise.
5885 * common/linux-btrace.h: Likewise.
5886 * common/linux-osdata.h: Likewise.
5887 * common/linux-procfs.h: Likewise.
5888 * common/linux-ptrace.h: Likewise.
5889 * common/mips-linux-watch.h: Likewise.
5890 * common/linux-btrace.c: Moved to nat.
5891 * common/linux-osdata.c: Likewise.
5892 * common/linux-procfs.c: Likewise.
5893 * common/linux-ptrace.c: Likewise.
5894 * common/mips-linux-watch.c: Likewise.
5895 * nat/gdb_thread_db.h: Moved from common.
5896 * nat/glibc_thread_db.h: Likewise.
5897 * nat/i386-cpuid.h: Likewise.
5898 * nat/i386-gcc-cpuid.h: Likewise.
5899 * nat/linux-btrace.c: Likewise.
5900 * nat/linux-btrace.h: Likewise.
5901 * nat/linux-osdata.c: Likewise.
5902 * nat/linux-osdata.h: Likewise.
5903 * nat/linux-procfs.c: Likewise.
5904 * nat/linux-procfs.h: Likewise.
5905 * nat/linux-ptrace.c: Likewise.
5906 * nat/linux-ptrace.h: Likewise.
5907 * nat/mips-linux-watch.c: Likewise.
5908 * nat/mips-linux-watch.h: Likewise.
5909 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5910 (object file files): Reordered.
5911 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5912 of glibc_thread_db.h.
5914 2014-06-20 Gary Benson <gbenson@redhat.com>
5916 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5917 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5918 (i386_dr_low): Likewise.
5919 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5920 (i386_dr_low_set_addr): Likewise.
5921 (i386_dr_low_get_addr): Likewise.
5922 (i386_dr_low_can_set_control): Likewise.
5923 (i386_dr_low_set_control): Likewise.
5924 (i386_dr_low_get_control): Likewise.
5925 (i386_dr_low_get_status): Likewise.
5926 (i386_get_debug_register_length): Likewise.
5927 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5928 (i386_dr_low): Likewise.
5929 * nat/i386-dregs.c (i386-low.h): Remove include.
5930 (i386-nat.h): Likewise.
5931 (nat/i386-dregs.h): New include.
5932 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5933 (i386_dr_low_set_addr): Likewise.
5934 (i386_dr_low_get_addr): Likewise.
5935 (i386_dr_low_can_set_control): Likewise.
5936 (i386_dr_low_set_control): Likewise.
5937 (i386_dr_low_get_control): Likewise.
5938 (i386_dr_low_get_status): Likewise.
5939 (i386_get_debug_register_length): Likewise.
5940 (debug_hw_points): Likewise.
5942 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5944 * Makefile.in (SFILES): Add d-exp.y.
5945 (YYFILES): Add d-exp.c.
5946 (YYOBJ): Add d-exp.o.
5947 (local-maintainer-clean): Delete d-exp.c.
5948 * d-exp.y: New file.
5949 * d-lang.h (d_parse): New declaration.
5950 (d_error): New declaration.
5951 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5952 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5953 PREC_ORDER operators.
5954 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5956 2014-06-19 Yao Qi <yao@codesourcery.com>
5958 * gdbthread.h (any_running): Remove the declaration.
5959 * thread.c (any_running): Remove.
5961 2014-06-19 Yao Qi <yao@codesourcery.com>
5963 * gdbthread.h (struct thread_info) <state>: Change its type to
5964 'enum thread_state'. Update comments.
5966 2014-06-19 Pedro Alves <palves@redhat.com>
5968 * gdbthread.h (ALL_THREADS): Delete.
5969 (ALL_NON_EXITED_THREADS): New macro.
5970 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5971 instead of ALL_THREADS.
5972 * infrun.c (find_thread_needs_step_over)
5973 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5974 instead of ALL_THREADS.
5975 * record-btrace.c (record_btrace_open)
5976 (record_btrace_stop_recording, record_btrace_close)
5977 (record_btrace_is_replaying, record_btrace_resume)
5978 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5979 * remote.c (append_pending_thread_resumptions): Likewise.
5980 * thread.c (thread_apply_all_command): Likewise.
5982 2014-06-19 Gary Benson <gbenson@redhat.com>
5984 * i386-nat.c (i386_stopped_by_watchpoint):
5985 Use i386_dr_stopped_by_watchpoint.
5986 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5987 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5989 2014-06-19 Gary Benson <gbenson@redhat.com>
5991 * nat/i386-dregs.c: New file.
5992 * Makefile.in (i386-dregs.o): New rule.
5993 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5994 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5995 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5996 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5997 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5998 * config/i386/go32.mh (NATDEPFILES): Likewise.
5999 * config/i386/linux.mh (NATDEPFILES): Likewise.
6000 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6001 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6002 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6003 * i386-nat.h (debug_hw_points): New declaration.
6004 * i386-nat.c (breakpoint.h): Remove include.
6005 (command.h): Likewise.
6006 (target.h): Likewise.
6007 (gdb_assert.h): Likewise.
6008 (debug_hw_points): Made nonstatic.
6009 (debug_printf): Now in i386-dregs.c.
6010 (TARGET_HAS_DR_LEN_8): Likewise.
6011 (DR_CONTROL_SHIFT): Likewise.
6012 (DR_CONTROL_SIZE): Likewise.
6013 (DR_RW_EXECUTE): Likewise.
6014 (DR_RW_WRITE): Likewise.
6015 (DR_RW_READ): Likewise.
6016 (DR_RW_IORW): Likewise.
6017 (DR_LEN_1): Likewise.
6018 (DR_LEN_2): Likewise.
6019 (DR_LEN_4): Likewise.
6020 (DR_LEN_8): Likewise.
6021 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6022 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6023 (DR_ENABLE_SIZE): Likewise.
6024 (DR_LOCAL_SLOWDOWN): Likewise.
6025 (DR_GLOBAL_SLOWDOWN): Likewise.
6026 (DR_CONTROL_RESERVED): Likewise.
6027 (I386_DR_CONTROL_MASK): Likewise.
6028 (I386_DR_VACANT): Likewise.
6029 (I386_DR_LOCAL_ENABLE): Likewise.
6030 (I386_DR_GLOBAL_ENABLE): Likewise.
6031 (I386_DR_DISABLE): Likewise.
6032 (I386_DR_SET_RW_LEN): Likewise.
6033 (I386_DR_GET_RW_LEN): Likewise.
6034 (I386_DR_WATCH_HIT): Likewise.
6035 (i386_wp_op_t): Likewise.
6036 (i386_show_dr): Likewise.
6037 (i386_length_and_rw_bits): Likewise.
6038 (i386_insert_aligned_watchpoint): Likewise.
6039 (i386_remove_aligned_watchpoint): Likewise.
6040 (i386_handle_nonaligned_watchpoint): Likewise.
6041 (i386_update_inferior_debug_regs): Likewise.
6042 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6043 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6044 (i386_region_ok_for_watchpoint):
6045 Use i386_dr_region_ok_for_watchpoint.
6046 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6048 2014-06-19 Gary Benson <gbenson@redhat.com>
6050 * i386-nat.c (i386_insert_hw_breakpoint): Use
6051 i386_insert_watchpoint.
6052 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6054 2014-06-19 Gary Benson <gbenson@redhat.com>
6056 * i386-nat.c (i386_dr_show): Renamed to
6057 i386_show_dr and made static. All uses updated.
6058 (i386_dr_length_and_rw_bits): Renamed to
6059 i386_length_and_rw_bits and made static.
6061 (i386_dr_insert_aligned_watchpoint): Renamed to
6062 i386_insert_aligned_watchpoint and made static.
6064 (i386_dr_remove_aligned_watchpoint): Renamed to
6065 i386_remove_aligned_watchpoint and made static.
6067 (i386_dr_update_inferior_debug_regs): Renamed to
6068 i386_update_inferior_debug_regs and made static.
6070 * nat/i386-dregs.h (i386_dr_show): Removed.
6071 (i386_dr_length_and_rw_bits): Likewise.
6072 (i386_dr_insert_aligned_watchpoint): Likewise.
6073 (i386_dr_remove_aligned_watchpoint): Likewise.
6074 (i386_dr_update_inferior_debug_regs): Likewise.
6076 2014-06-19 Gary Benson <gbenson@redhat.com>
6078 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6079 * configure: Regenerate.
6080 * config.in: Likewise.
6081 * main.c (signal.h): New include.
6082 (setup_alternate_signal_stack): New function.
6083 (captured_main): Call the above.
6084 * cp-support.c (signal.h): New include.
6085 (catch_demangler_crashes): New flag.
6086 (SIGJMP_BUF): New define.
6087 (SIGSETJMP): Likewise.
6088 (SIGLONGJMP): Likewise.
6089 (gdb_demangle_jmp_buf): New static global.
6090 (gdb_demangle_attempt_core_dump): Likewise.
6091 (gdb_demangle_signal_handler): New function.
6092 (gdb_demangle): If catch_demangler_crashes is set, install the
6093 above signal handler before calling bfd_demangle, and restore
6094 the original signal handler afterwards. Display the offending
6095 symbol and call demangler_warning the first time a segmentation
6097 (_initialize_cp_support): New maint set/show command.
6099 2014-06-19 Gary Benson <gbenson@redhat.com>
6101 * utils.h (resource_limit_kind): New enum.
6102 (can_dump_core): New declaration.
6103 (warn_cant_dump_core): Likewise.
6104 (dump_core): Likewise.
6105 * utils.c (dump_core): Made nonstatic. Added new
6106 parameter "limit_kind".
6107 (can_dump_core): Made nonstatic. Moved printing code to...
6108 (warn_cant_dump_core): New function.
6109 (can_dump_core_warn): Likewise.
6110 (internal_vproblem): Replace calls to can_dump_core with
6111 calls to can_dump_core_warn. Supply new argument to each.
6113 2014-06-19 Gary Benson <gbenson@redhat.com>
6115 * utils.h (demangler_vwarning): New declaration.
6116 (demangler_warning): Likewise.
6117 * utils.c (struct internal_problem)
6118 <user_settable_should_quit>: New field.
6119 <user_settable_should_dump_core>: Likewise
6120 (internal_error_problem): Add values for above new fields.
6121 (internal_warning_problem): Likewise.
6122 (demangler_warning_problem): New static global.
6123 (demangler_vwarning): New function.
6124 (demangler_warning): Likewise.
6125 (add_internal_problem_command): Selectively add commands.
6126 (_initialize_utils): New internal problem command.
6127 * maint.c (maintenance_demangler_warning): New function.
6128 (_initialize_maint_cmds): New command.
6130 2014-06-18 Tom Tromey <tromey@redhat.com>
6132 * f-valprint.c (info_common_command_for_block): Update.
6133 * symtab.h (struct general_symbol_info) <common_block>: Now
6136 2014-06-18 Tom Tromey <tromey@redhat.com>
6138 * symtab.h (struct symtab) <blockvector>: Now const.
6139 * ada-lang.c (ada_add_global_exceptions): Update.
6140 * buildsym.c (augment_type_symtab): Update.
6141 * dwarf2read.c (dw2_lookup_symbol): Update.
6142 * jit.c (finalize_symtab): Update.
6143 * jv-lang.c (add_class_symtab_symbol): Update.
6144 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6146 * objfiles.c (objfile_relocate1): Update.
6147 * psymtab.c (lookup_symbol_aux_psymtabs)
6148 (maintenance_check_psymtabs): Update.
6149 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6151 * spu-tdep.c (spu_catch_start): Update.
6152 * symmisc.c (dump_symtab_1): Update.
6153 * symtab.c (lookup_global_symbol_from_objfile)
6154 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6155 (basic_lookup_transparent_type_quick)
6156 (basic_lookup_transparent_type, find_pc_sect_symtab)
6157 (find_pc_sect_line, search_symbols): Update.
6158 * block.c (find_block_in_blockvector): Make "bl" const.
6159 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6161 (blockvector_contains_pc): Make "bv" const.
6162 (block_for_pc_sect): Update.
6163 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6164 (blockvector_contains_pc): Update.
6165 * breakpoint.c (resolve_sal_pc): Update.
6166 * inline-frame.c (block_starting_point_at): Update.
6168 2014-06-18 Tom Tromey <tromey@redhat.com>
6170 * completer.c (complete_line): Make "line_buffer" const.
6171 * completer.h (complete_line): Update.
6173 2014-06-18 Tom Tromey <tromey@redhat.com>
6175 * symtab.c (add_macro_name): Remove unneeded cast.
6177 2014-06-18 Tom Tromey <tromey@redhat.com>
6179 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6180 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6182 2014-06-18 Tom Tromey <tromey@redhat.com>
6184 * probe.c (info_probes_for_ops): Make "arg" const.
6185 * probe.h (info_probes_for_ops): Update.
6187 2014-06-18 Tom Tromey <tromey@redhat.com>
6189 * varobj.c (varobj_create): Update.
6190 * valops.c (value_of_this): Update.
6191 * tracepoint.c (add_local_symbols, scope_info): Update.
6192 * symtab.h (struct general_symbol_info) <block>: Now const.
6193 * symtab.c (skip_prologue_sal)
6194 (default_make_symbol_completion_list_break_on)
6195 (skip_prologue_using_sal): Update.
6196 * stack.h (iterate_over_block_locals)
6197 (iterate_over_block_local_vars): Update.
6198 * stack.c (print_frame_args): Update.
6199 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6201 (get_selected_block): Make return type const.
6202 * python/py-frame.c (frapy_block): Update.
6203 * python/py-block.c (gdbpy_block_for_pc): Update.
6204 * p-exp.y (%union) <bval>: Now const.
6205 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6206 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6207 * m2-exp.y (%union) <bval>: Now const.
6208 * linespec.c (get_current_search_block): Make return type const.
6209 (create_sals_line_offset, find_label_symbols): Update.
6210 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6212 (block_starting_point_at): Make "block" const.
6213 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6214 (check_exception_resume): Update.
6215 * guile/scm-frame.c (gdbscm_frame_block): Update.
6216 * guile/scm-block.c (gdbscm_lookup_block): Update.
6217 * frame.h (get_frame_block): Update.
6218 (get_selected_block): Make return type const.
6219 * frame.c (frame_id_inner): Update.
6220 * f-valprint.c (info_common_command_for_block)
6221 (info_common_command): Update.
6222 * dwarf2loc.c (dwarf2_find_location_expression)
6223 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6224 (locexpr_describe_location_piece): Update.
6225 * c-exp.y (%union) <bval>: Now const.
6226 * breakpoint.c (resolve_sal_pc): Update.
6227 * blockframe.c (get_frame_block):Make return type const.
6228 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6229 (block_innermost_frame): Update.
6230 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6231 (block_for_pc, block_for_pc_sect): Update.
6232 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6234 (block_for_pc_sect, block_for_pc): Make return type const.
6235 * ax-gdb.c (gen_expr): Update.
6236 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6237 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6238 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6239 (ada_read_var_value): Update.
6240 * ada-exp.y (struct name_info) <block>: Now const.
6242 (block_lookup): Constify.
6244 2014-06-18 Gary Benson <gbenson@redhat.com>
6246 * nat/i386-dregs.h: New file.
6247 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6248 * i386-nat.h (i386-dregs.h): New include.
6249 (DR_FIRSTADDR): Now in i386-dregs.h.
6250 (DR_LASTADDR): Likewise.
6251 (DR_NADDR): Likewise.
6252 (DR_STATUS): Likewise.
6253 (DR_CONTROL): Likewise.
6254 (i386_debug_reg_state): Likewise.
6255 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6257 2014-06-18 Don Breazeal <donb@codesourcery.com>
6259 * breakpoint.c (set_longjmp_breakpoint): Call
6260 momentary_breakpoint_from_master with additional argument.
6261 (set_longjmp_breakpoint_for_call_dummy): Call
6262 momentary_breakpoint_from_master with additional argument.
6263 (set_std_terminate_breakpoint): Call
6264 momentary_breakpoint_from_master with additional argument.
6265 (momentary_breakpoint_from_master): Add argument to function
6266 definition and use it to initialize structure member flag.
6267 (clone_momentary_breakpoint): Call
6268 momentary_breakpoint_from_master with additional argument.
6269 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6270 member flags set in momentary_breakpoint_from_master.
6272 2014-06-18 Gary Benson <gbenson@redhat.com>
6274 * i386-nat.c (i386_show_dr): Renamed to
6275 i386_dr_show and made nonstatic. All uses updated.
6276 (i386_length_and_rw_bits): Renamed to
6277 i386_dr_length_and_rw_bits and made nonstatic.
6279 (i386_insert_aligned_watchpoint): Renamed to
6280 i386_dr_insert_aligned_watchpoint and made nonstatic.
6282 (i386_remove_aligned_watchpoint): Renamed to
6283 i386_dr_remove_aligned_watchpoint and made nonstatic.
6285 (i386_update_inferior_debug_regs): Renamed to
6286 i386_dr_update_inferior_debug_regs and made nonstatic.
6289 2014-06-18 Gary Benson <gbenson@redhat.com>
6291 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6292 (i386_dr_low_can_set_control): Likewise.
6293 (i386_dr_low_set_addr): Likewise.
6294 (i386_dr_low_set_control): Likewise.
6295 (i386_dr_low_get_addr): Likewise.
6296 (i386_dr_low_get_status): Likewise.
6297 (i386_dr_low_get_control): Likewise.
6298 (i386_insert_aligned_watchpoint): Use new macros.
6299 (i386_update_inferior_debug_regs): Likewise.
6300 (i386_stopped_data_address): Likewise.
6302 2014-06-18 Gary Benson <gbenson@redhat.com>
6304 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6305 New parameter. All uses updated.
6307 2014-06-18 Gary Benson <gbenson@redhat.com>
6309 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6312 2014-06-18 Gary Benson <gbenson@redhat.com>
6314 * i386-nat.c (debug_printf): New macro.
6315 (i386_get_debug_register_length): Likewise.
6316 (TARGET_HAS_DR_LEN_8): Use above macro.
6317 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6318 and printf_unfiltered. Use phex to format values.
6320 2014-06-18 Gary Benson <gbenson@redhat.com>
6322 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6325 2014-06-18 Gary Benson <gbenson@redhat.com>
6327 * i386-nat.c: Comment changes.
6329 2014-06-18 Gary Benson <gbenson@redhat.com>
6331 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6333 2014-06-18 Gary Benson <gbenson@redhat.com>
6335 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6336 (i386_insert_aligned_watchpoint): Likewise.
6337 (i386_remove_aligned_watchpoint): Likewise.
6338 (i386_handle_nonaligned_watchpoint): Likewise.
6340 2014-06-18 Gary Benson <gbenson@redhat.com>
6342 * i386-nat.c: Whitespace changes.
6344 2014-06-17 Samuel Bronson <naesten@gmail.com>
6346 * MAINTAINERS: Update Roland McGrath's email address.
6347 Thanks to Sergio Durigan Junior for pointing out that he left
6348 Red Hat a while ago, and giving me a current address.
6350 2014-06-17 Tom Tromey <tromey@redhat.com>
6352 * utils.h (savestring): Remove declaration.
6354 2014-06-17 Tom Tromey <tromey@redhat.com>
6356 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6358 2014-06-16 Keith Seitz <keiths@redhat.com>
6361 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6362 to update the varobj if inferior_ptid is null_ptid.
6364 2014-06-16 Tom Tromey <tromey@redhat.com>
6366 * target.h (struct target_ops) <to_info_proc>: Make parameter
6368 (target_info_proc): Update.
6369 * target.c (target_info_proc): Make "args" const.
6370 * procfs.c (procfs_info_proc): Update.
6371 * linux-tdep.c (linux_info_proc): Update.
6372 (linux_core_info_proc_mappings): Make "args" const.
6373 (linux_core_info_proc): Update.
6374 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6375 * gdbarch.c: Rebuild.
6376 * gdbarch.h: Rebuild.
6377 * corelow.c (core_info_proc): Update.
6379 2014-06-16 Tom Tromey <tromey@redhat.com>
6381 * target.h (struct target_ops) <to_disconnect>: Make parameter
6383 (target_disconnect): Update.
6384 * target.c (target_disconnect): Make "args" const.
6385 * target-delegates.c: Rebuild.
6386 * remote.c (remote_disconnect): Update.
6387 * record.h (record_disconnect): Update.
6388 * record.c (record_disconnect): Update.
6389 * inf-child.c (inf_child_disconnect): Update.
6391 2014-06-16 Tom Tromey <tromey@redhat.com>
6393 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6394 * target.c (debug_to_rcmd, default_rcmd): Update.
6395 * target-delegates.c: Rebuild.
6396 * remote.c (remote_rcmd): Update.
6397 * monitor.c (monitor_rcmd): Update.
6399 2014-06-16 Pedro Alves <palves@redhat.com>
6401 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6402 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6403 have OBJF_SHARED set.
6404 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6405 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6406 instead of OBJF_USERLOADED.
6407 * objfiles.h (OBJF_SHARED): Update comment.
6408 (userloaded_objfile_contains_address_p): Rename to ...
6409 (shared_objfile_contains_address_p): ... this, and update
6411 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6413 (remove_symbol_file_command): Skip objfiles that don't have
6416 2014-06-16 Tom Tromey <tromey@redhat.com>
6418 * minsyms.h (prim_record_minimal_symbol)
6419 (prim_record_minimal_symbol_and_info): Update comments.
6421 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6423 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6424 or --without-guile, according to how GDB was built.
6426 2014-06-13 Tom Tromey <tromey@redhat.com>
6428 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6430 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6432 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6434 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6435 help_list.Pass all_commands, not -1, to help_list.
6436 * cli/cli-dump.c (dump_command, append_command)
6437 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6438 (binary_dump_command, binary_append_command): Pass all_commands,
6439 not -1, to help_list.
6440 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6442 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6444 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6446 * top.c (set_history): Pass all_commands, not -1, to help_list.
6447 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6448 all_commands, not -1, to help_list.
6449 * symfile.c (overlay_command): Pass all_commands, not -1, to
6451 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6453 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6455 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6457 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6458 not -1, to help_list.
6459 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6460 not -1, to help_list.
6461 * maint.c (maintenance_command, maintenance_info_command)
6462 (maintenance_print_command, maintenance_set_cmd): Pass
6463 all_commands, not -1, to help_list.
6464 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6466 * language.c (set_check): Pass all_commands, not -1, to help_list.
6467 * infcmd.c (unset_command): Pass all_commands, not -1, to
6469 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6471 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6473 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6475 * breakpoint.c (save_command): Pass all_commands, not -1, to
6477 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6478 all_commands, not -1, to help_list.
6480 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6482 * regcache.c (struct register_to_invalidate): New structure.
6483 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6485 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6487 2014-06-12 Yao Qi <yao@codesourcery.com>
6489 * varobj.c (varobj_get_num_children): Call
6490 varobj_is_dynamic_p.
6491 (varobj_list_children): Likewise.
6492 (varobj_update): Likewise. Update comments.
6494 2014-06-12 Yao Qi <yao@codesourcery.com>
6496 * varobj.c (varobj_pretty_printed_p): Rename to ...
6497 (varobj_is_dynamic_p): ... this. New function.
6498 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6499 (varobj_is_dynamic_p): Declare.
6500 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6501 (mi_print_value_p, varobj_update_one): Likewise.
6503 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6504 Yao Qi <yao@codesourcery.com>
6506 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6507 (varobj_get_iterator): Wrap up code for pretty-printer by
6508 "#if HAVE_PYTHON" and "#endif".
6509 (update_dynamic_varobj_children): Likewise.
6511 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6512 Yao Qi <yao@codesourcery.com>
6514 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6515 gdb_python_initialized is false. Move some code from varobj.c.
6516 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6517 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6518 (struct varobj_item): Moved to varobj-iter.h".
6519 (varobj_clear_saved_item): New function.
6520 (update_dynamic_varobj_children): Move python-related code to
6522 (free_variable): Call varobj_clear_saved_item and
6525 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6526 Yao Qi <yao@codesourcery.com>
6528 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6529 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6530 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6531 (py-varobj.o): New rule.
6532 * python/py-varobj.c: New file.
6533 * python/python-internal.h (py_varobj_get_iterator): Declare.
6534 * varobj-iter.h: New file.
6535 * varobj.c: Include "varobj-iter.h"
6536 (struct varobj) <child_iter>: Change its type from "PyObject *"
6537 to "struct varobj_iter *".
6538 <saved_item>: Likewise.
6539 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6540 [HAVE_PYTHON] (varobj_get_iterator): New function.
6541 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6542 python-specific code to python/py-varobj.c.
6543 (install_visualizer): Call varobj_iter_delete instead of
6545 * varobj.h (varobj_ensure_python_env): Declare.
6547 2014-06-12 Yao Qi <yao@codesourcery.com>
6549 * varobj.c (struct varobj_item): New structure.
6550 (create_child_with_value): Update declaration.
6551 (varobj_add_child): Replace arguments 'name' and 'value' with
6552 'item'. All callers updated.
6553 (install_dynamic_child): Likewise.
6554 (update_dynamic_varobj_children): Likewise.
6555 (varobj_add_child): Likewise.
6556 (create_child_with_value): Likewise.
6558 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6560 * NEWS: Create a new section for the next release branch.
6561 Rename the section of the current branch, now that it has
6564 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6566 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6567 * version.in: Bump version to 7.8.50.DATE-cvs.
6569 2014-06-11 Pedro Alves <palves@redhat.com>
6572 * ser-mingw.c (net_windows_socket_check_pending): New function.
6573 (net_windows_select_thread): Ignore spurious wakeups. Use
6574 net_windows_socket_check_pending.
6575 (net_windows_wait_handle): Check for pending events with
6576 ioctlsocket, through net_windows_socket_check_pending, instead of
6577 checking the socket's event.
6579 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6581 * python/python-internal.h (gdb_PyObject_GetAttrString)
6582 (gdb_PyObject_HasAttrString): New inline function definitions.
6583 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6584 char * of the second argument to PyObject_GetAttrString.
6586 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6588 * serial.c (serial_write): Fix index of character to be printed
6589 in call to serial_logchar when serial debug traces are enabled.
6591 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6593 * gdbtypes (resolve_dynamic_range): Add function description.
6595 2014-06-09 Pedro Alves <palves@redhat.com>
6597 * linux-nat.c (linux_child_follow_fork): Initialize status with
6598 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6599 inner block. Only pass the signal to PTRACE_DETACH if in pass
6602 2014-06-09 Gary Benson <gbenson@redhat.com>
6604 * common/signals.c (gdb_signal_from_host): Reorder to separate
6605 the always-available ANSI-standard signals from the signals that
6607 (do_gdb_signal_to_host): Likewise.
6608 * proc-events.c (signal_table): Likewise.
6610 2014-06-08 Hui Zhu <hui@codesourcery.com>
6612 * common/linux-ptrace.c (linux_disable_event_reporting): New
6614 * common/linux-ptrace.h (linux_disable_event_reporting): New
6616 * linux-nat.c (linux_child_follow_fork): Do a single step before
6619 2014-06-07 Keith Seitz <keiths@redhat.com>
6623 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6624 from symbol_matches_domain in symtab.c. All local callers
6625 of symbol_matches_domain updated.
6626 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6627 search STRUCT_DOMAIN.
6628 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6629 independently. standard_lookup will do that automatically.
6630 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6631 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6632 (cp_lookup_symbol_in_namespace): Likewise.
6633 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6634 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6635 may return a STRUCT_DOMAIN match.
6636 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6637 * cp-support.c: Include language.h.
6638 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6640 * psymtab.c (match_partial_symbol): Compare the requested
6641 domain with the symbol's domain directly.
6642 (lookup_partial_symbol): Likewise.
6643 * symtab.c (lookup_symbol_in_language): Explain when/why
6644 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6645 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6646 appropriate languages.
6647 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6648 and moved to ada-lang.c
6649 (lookup_block_symbol): Explain that this function only returns
6650 symbol matching the requested DOMAIN.
6651 Compare the requested domain with the symbol's domain directly.
6652 (iterate_over_symbols): Compare the requested domain with the
6653 symbol's domain directly.
6654 * symtab.h (symbol_matches_domain): Remove.
6656 2014-06-06 Doug Evans <xdje42@gmail.com>
6658 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6659 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6660 (gdbscm_guile_version_is_at_least): Declare.
6661 (gdbscm_scm_string_to_int): Declare.
6662 * guile/guile.c (gdbscm_guile_major_version): New global.
6663 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6664 (guile_datadir): New static global.
6665 (gdbscm_guile_data_directory): New function.
6666 (initialize_scheme_side): Update.
6667 (misc_guile_functions): Add guile-data-directory.
6668 (initialize_gdb_module): Fetch guile version number.
6669 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6670 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6671 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6672 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6674 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6675 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6676 * guile/scm-value.c (gdbscm_value_to_string): Only call
6677 scm_port_conversion_strategy if Guile version >= 2.0.6.
6679 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6681 * main.c (print_gdb_help): Add -q and --silent.
6683 2014-06-06 Gary Benson <gbenson@redhat.com>
6685 * common/signals.c: Remove preprocessor conditionals for
6686 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6687 SIGSEGV and SIGTERM.
6688 * proc-events.c: Likewise.
6690 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6692 * symfile.c (symfile_free_objfile): Remove restriction to
6694 * symfile-mem.c (symbol_file_add_from_memory): Call
6695 add_target_sections_of_objfile.
6697 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6699 * guile/scm-value.c (gdbscm_history_append_x): Use
6700 'vlscm_get_value_smob_arg_unsafe' instead of
6701 'vlscm_scm_to_value'.
6703 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6706 * utils.c (printchar): Don't escape at all if quoter is NUL.
6707 Update function documentation to clarify effect of parameter
6709 * remote.c (escape_buffer): Pass '\\' as the quoter to
6710 fputstrn_unfiltered.
6711 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6712 generate the output.
6713 (mi_solib_unloaded): Same.
6715 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6717 * development.sh: Delete.
6718 * Makefile.in (config.status): Adjust dependency on development.sh.
6719 * configure.ac: Adjust development.sh source call.
6720 * configure: Regenerate.
6722 2014-06-04 Doug Evans <xdje42@gmail.com>
6724 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6725 is_scheme_bkpt, spec.
6726 (bpscm_make_breakpoint_smob): Initialize new members.
6727 (gdbscm_create_breakpoint_x): Split into two ...
6728 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6729 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6730 (scheme_function breakpoint_functions): Update.
6731 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6732 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6733 register-breakpoint!.
6735 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6738 * mem-break.c (z_type_supported): Return zero if
6739 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6741 2014-06-04 Tom Tromey <tromey@redhat.com>
6743 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6744 value_from_contents_and_address_unresolved.
6745 (ada_template_to_fixed_record_type_1): Likewise.
6746 (ada_which_variant_applies): Likewise.
6747 * value.h (value_from_contents_and_address_unresolved): Declare.
6748 * value.c (value_from_contents_and_address_unresolved): New
6750 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6751 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6752 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6754 2014-06-04 Tom Tromey <tromey@redhat.com>
6756 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6758 2014-06-04 Tom Tromey <tromey@redhat.com>
6760 * procfs.c (procfs_attach): Make "args" const.
6761 * windows-nat.c (windows_attach): Make "args" const.
6762 * nto-procfs.c (procfs_attach): Make "args" const.
6763 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6764 * go32-nat.c (go32_attach): Make "args" const.
6765 * gnu-nat.c (gnu_attach): Make "args" const.
6766 * darwin-nat.c (darwin_attach): Make "args" const.
6767 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6768 * linux-nat.c (linux_nat_attach): Make "args" const.
6769 * remote.c (extended_remote_attach_1, extended_remote_attach):
6771 * target.h (struct target_ops) <to_attach>: Make "args" const.
6772 (find_default_attach): Likewise.
6773 * utils.c (parse_pid_to_attach): Make "args" const.
6774 * utils.h (parse_pid_to_attach): Update.
6776 2014-06-04 Tom Tromey <tromey@redhat.com>
6778 * target-delegates.c: Rebuild.
6779 * target.c (default_thread_address_space): New function.
6780 (target_thread_address_space): Simplify.
6781 * target.h (struct target_ops) <to_thread_address_space>: Add
6782 TARGET_DEFAULT_FUNC.
6784 2014-06-04 Doug Evans <xdje42@gmail.com>
6786 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6788 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6790 * record-btrace.c: Include event-loop.h and inf-loop.h.
6791 (record_btrace_resume_exec_dir)
6792 (record_btrace_async_inferior_event_handler)
6793 (record_btrace_handle_async_inferior_event): New.
6794 (record_btrace_open): Create async event handler.
6795 (record_btrace_close): Delete async event handler.
6796 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6797 Mark async event handler.
6798 (record_btrace_execution_direction): New.
6799 (init_record_btrace_ops): Initialize to_execution_direction.
6801 2014-06-03 Doug Evans <xdje42@gmail.com>
6803 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6804 (gdbscm_make_parameter): Ditto.
6806 2014-06-03 Doug Evans <dje@google.com>
6808 * exec.c (exec_close_1): Call clear_section_table instead of
6809 resize_section_table.
6810 (clear_section_table): New function.
6811 (resize_section_table): Make static. Rename arg num_added to
6813 * exec.h (clear_section_table): Declare.
6814 (resize_section_table): Delete.
6815 * progspace.c (release_program_space): Call clear_section_table
6816 instead of resize_section_table.
6818 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6820 * NEWS (Python Scripting): Add entry about the new xmethods
6823 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6825 * python/py-xmethods.c: New file.
6826 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6827 (objfpy_dealloc): XDECREF on the new xmethods field.
6828 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6830 (objfpy_get_xmethods): New function.
6831 (objfile_getset): New entry 'xmethods'.
6832 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6833 (pspy_dealloc): XDECREF on the new xmethods field.
6834 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6836 (pspy_get_xmethods): New function.
6837 (pspace_getset): New entry 'xmethods'.
6838 * python/python-internal.h: Add declarations for new functions.
6839 * python/python.c (_initialize_python): Invoke
6840 gdbpy_initialize_xmethods.
6841 * python/lib/gdb/__init__.py (xmethods): New
6843 * python/lib/gdb/xmethod.py: New file.
6844 * python/lib/gdb/command/xmethods.py: New file.
6846 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6848 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6849 best match method returned by find_overload_match is an xmethod.
6850 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6851 the best matching operator returned by find_overload_match is an
6853 * valops.c: #include "extension.h".
6854 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6855 Return void. The list of matching source methods is returned in
6856 "fn_list" and a vector of matching debug method workers is
6857 returned in "xm_worker_vec". Update all callers.
6858 (value_find_oload_method_list): Likewise.
6859 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6860 non-NULL, then the index of the best matching method in this
6861 vector is returned. Update all callers.
6862 (find_overload_match): Include xmethods while performing overload
6865 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6867 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6868 * extension-priv.h (struct extension_language_ops): Add the
6870 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6871 get_matching_xmethod_workers, get_xmethod_argtypes,
6872 invoke_xmethod, free_xmethod_worker,
6873 free_xmethod_worker_vec): New functions.
6874 * extension.h: #include "common/vec.h".
6875 New function declarations.
6876 (struct xmethod_worker): New struct.
6877 (VEC (xmethod_worker_ptr)): New vector type.
6878 (xmethod_worker_ptr): New typedef.
6879 (xmethod_worker_vec): Likewise.
6880 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6882 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6883 (struct builtin_type): New field "xmethod".
6884 * valarith.c (value_ptradd): Assert that the value argument is not
6886 * valops.c (value_must_coerce_to_target): Return 0 for
6887 lval_xcallable values.
6888 * value.c (struct value): New field XM_WORKER in the field
6890 (value_address, value_raw_address): Return 0 for lval_xcallable
6892 (set_value_address): Assert that the value is not an
6894 (value_free): Free the associated xmethod worker when freeing
6895 lval_xcallable values.
6896 (set_value_component_location): Assert that the WHOLE value is not
6898 (value_of_xmethod, call_xmethod): New functions.
6899 * value.h: Declare "struct xmethod_worker".
6900 Declare new functions value_of_xmethod, call_xmethod.
6902 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6903 Pedro Alves <palves@redhat.com>
6905 PR breakpoints/17000
6906 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6907 New function, extracted from software_breakpoint_inserted_here_p.
6908 (software_breakpoint_inserted_here_p): Replace factored out code
6909 by call to find_non_raw_software_breakpoint_inserted_here.
6910 (bp_target_info_copy_insertion_state): New function.
6911 (bkpt_insert_location): Handle the case of a single-step
6912 breakpoint already inserted at the same address.
6913 (bkpt_remove_location): Handle the case of a single-step
6914 breakpoint still inserted at the same address.
6915 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6916 breakpoint already inserted at the same address.
6917 (deprecated_remove_raw_breakpoint): Handle the case of a
6918 non-raw breakpoint still inserted at the same address.
6919 (find_single_step_breakpoint): New function, extracted from
6920 single_step_breakpoint_inserted_here_p.
6921 (find_single_step_breakpoint): New function,
6922 factored out from single_step_breakpoint_inserted_here_p.
6923 (single_step_breakpoint_inserted_here_p): Reimplement.
6925 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6927 Pushed by Joel Brobecker <brobecker@adacore.com>
6928 * source.c (show_substitute_path_command): Fix display of matching
6931 2014-06-03 Gary Benson <gbenson@redhat.com>
6933 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6935 2014-06-02 Doug Evans <xdje42@gmail.com>
6937 Add parameter support for Guile.
6938 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6939 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6940 (scm-param.o): New rule.
6941 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6942 (gdbscm_misc_error): Declare.
6943 (gdbscm_canonicalize_command_name): Declare.
6944 (gdbscm_scm_to_host_string): Declare.
6945 (gdbscm_scm_from_host_string): Declare.
6946 (gdbscm_initialize_parameters): Declare.
6947 * guile/guile.c (initialize_gdb_module): Call
6948 gdbscm_initialize_parameters.
6949 * guile/lib/gdb.scm: Export parameter symbols.
6950 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6951 cmdscm_canonicalize_name and made public. All callers updated.
6952 * guile/scm-exception.c (gdbscm_misc_error): New function.
6953 * guile/scm-param.c: New file.
6954 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6955 (gdbscm_scm_to_host_string): New function.
6956 (gdbscm_scm_from_host_string): New function.
6957 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6959 2014-06-02 Doug Evans <xdje42@gmail.com>
6961 Add command support for Guile.
6962 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6963 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6964 (scm-cmd.o): New rule.
6965 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6966 (gdbscm_user_error_p): Declare.
6967 (gdbscm_parse_command_name): Declare.
6968 (gdbscm_valid_command_class_p): Declare.
6969 (gdbscm_initialize_commands): Declare.
6970 * guile/guile.c (initialize_gdb_module): Call
6971 gdbscm_initialize_commands.
6972 * guile/lib/gdb.scm: Export command symbols.
6973 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6974 (throw-user-error): New function.
6975 * guile/scm-cmd.c: New file.
6976 * guile/scm-exception.c (user_error_symbol): New static global.
6977 (gdbscm_user_error_p): New function.
6978 (gdbscm_initialize_exceptions): Set user_error_symbol.
6979 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6981 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6983 * top.c (command_loop): Handle comments here...
6984 (command_line_input): ... not here.
6986 2014-06-02 Doug Evans <xdje42@gmail.com>
6988 Add progspace support for Guile.
6989 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6990 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6991 (scm-progspace.o): New rule.
6992 * guile/guile-internal.h (pspace_smob): New typedef.
6993 (psscm_pspace_smob_pretty_printers): Declare.
6994 (psscm_pspace_smob_from_pspace): Declare.
6995 (psscm_scm_from_pspace): Declare.
6996 * guile/guile.c (initialize_gdb_module): Call
6997 gdbscm_initialize_pspaces.
6998 * guile/lib/gdb.scm: Export progspace symbols.
6999 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7001 (append-pretty-printer!): Ditto.
7002 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7004 * guile/scm-progspace.c: New file.
7006 2014-06-03 Alan Modra <amodra@gmail.com>
7008 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7009 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7011 2014-06-02 Doug Evans <dje@google.com>
7013 Add support for skeletonless type units.
7014 * dwarf2read.c (struct dwarf2_per_objfile): New member
7015 n_allocated_type_units.
7016 (struct dwarf2_per_objfile) <tu_stats>: New member
7017 nr_all_type_units_reallocs.
7018 (create_signatured_type_table_from_index): Initialize
7019 n_allocated_type_units
7020 (create_all_type_units): Ditto.
7021 (add_type_unit): Move up in file. New arg slot.
7022 All callers updated. Increase space for all_type_units more
7024 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7025 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7026 (lookup_dwp_signatured_type): Ditto.
7027 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7028 All callers updated.
7029 (build_type_psymtabs_1): Leave type_unit_groups as
7030 NULL if no TUs present.
7031 (print_tu_stats): New function.
7032 (process_skeletonless_type_unit): New function.
7033 (process_dwo_file_for_skeletonless_type_units): New
7035 (process_skeletonless_type_units): New function.
7036 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7037 Call print tu_stats if debugging enabled.
7039 2014-06-02 Pedro Alves <palves@redhat.com>
7041 * breakpoint.c (build_target_command_list): Don't build a command
7042 list if we have any duplicate location that isn't a dprintf.
7044 2014-06-02 Pedro Alves <palves@redhat.com>
7046 * breakpoint.c (dprintf_breakpoint_hit): New function.
7047 (initialize_breakpoint_ops): Install it as dprintf's
7048 breakpoint_hit method.
7050 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7052 * source.c (substitute_path_rule_matches): Simplify using
7053 filename_ncmp instead of FILENAME_CMP.
7055 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7057 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7059 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7061 * configure.ac: When Guile is available, check for the
7062 availability of 'scm_new_smob'.
7063 * configure, config.h.in: Regenerate.
7064 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7067 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7069 * frame.c (struct frame_info): Add stop_string field.
7070 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7071 (get_prev_frame_always): Old content moved into
7072 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7073 TRY_CATCH, handle MEMORY_ERROR exceptions.
7074 (frame_stop_reason_string): New function definition.
7075 * frame.h (unwind_stop_reason_to_string): Extend comment to
7076 mention frame_stop_reason_string.
7077 (frame_stop_reason_string): New function declaration.
7078 * stack.c (frame_info): Switch to frame_stop_reason_string.
7079 (backtrace_command_1): Switch to frame_stop_reason_string.
7080 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7081 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7082 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7084 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7086 * frame.c (frame_stop_reason_string): Rename to ...
7087 (unwind_stop_reason_to_string): this.
7088 * frame.h (frame_stop_reason_string): Rename to ...
7089 (unwind_stop_reason_to_string): this.
7090 * stack.c (frame_info): Update call to frame_stop_reason_string.
7091 (backtrace_command_1): Likewise.
7092 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7093 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7095 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7097 * frame.c (remove_prev_frame): New function.
7098 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7101 2014-05-29 Pedro Alves <palves@redhat.com>
7103 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7104 and make it const. When a single-step decays to a continue,
7105 clear 'step', not 'hw_step'. Pass whether the caller wanted
7106 to step to user_visible_resume_ptid, not what we ask the
7109 2014-05-29 Pedro Alves <palves@redhat.com>
7111 * infrun.c (process_event_stop_test, handle_step_into_function)
7112 (handle_step_into_function_backward): Adjust.
7113 Don't set the even thread's stop_step and call stop_waiting before
7114 calling end_stepping_range. Instead do that ...
7115 (end_stepping_range): ... here. Take an ecs pointer parameter.
7117 2014-05-29 Pedro Alves <palves@redhat.com>
7119 * infrun.c (stop_stepping): Rename to ...
7120 (stop_waiting): ... this.
7121 (proceed): Update comment.
7122 (process_event_stop_test, handle_inferior_event)
7123 (handle_signal_stop, handle_step_into_function)
7124 (handle_step_into_function_backward): Update.
7126 2014-05-29 Pedro Alves <palves@redhat.com>
7128 * infcall.c (run_inferior_call): Don't check whether the current
7129 thread is running after the proceed call.
7131 2014-05-29 Pedro Alves <palves@redhat.com>
7132 Tom Tromey <tromey@redhat.com>
7134 * NEWS: Mention "maint set target-async", "set mi-async", and that
7135 background execution commands are now always available.
7136 * target.h (target_async_permitted): Update comment.
7137 * target.c (target_async_permitted, target_async_permitted_1):
7139 (set_target_async_command): Rename to ...
7140 (maint_set_target_async_command): ... this.
7141 (show_target_async_command): Rename to ...
7142 (maint_show_target_async_command): ... this.
7143 (_initialize_target): Adjust.
7144 * infcmd.c (prepare_execution_command): Make extern.
7145 * inferior.h (prepare_execution_command): Declare.
7146 * infrun.c (set_observer_mode): Leave target async alone.
7147 * mi/mi-interp.c (mi_interpreter_init): Install
7148 mi_on_sync_execution_done as sync_execution_done observer.
7149 (mi_on_sync_execution_done): New function.
7150 (mi_execute_command_input_handler): Don't print the prompt if we
7151 just started a synchronous command with an async target.
7152 (mi_on_resume): Check sync_execution before printing prompt.
7153 * mi/mi-main.h (mi_async_p): Declare.
7154 * mi/mi-main.c: Include gdbcmd.h.
7155 (mi_async_p): New function.
7156 (mi_async, mi_async_1): New globals.
7157 (set_mi_async_command, show_mi_async_command, mi_async): New
7159 (exec_continue): Call prepare_execution_command.
7160 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7161 (mi_execute_async_cli_command): Use mi_async_p.
7162 (_initialize_mi_main): Install "set mi-async". Make
7163 "target-async" a deprecated alias.
7165 2014-05-29 Pedro Alves <palves@redhat.com>
7167 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7168 (_initialize_cli_interp): Adjust.
7169 * event-loop.c: Include "observer.h".
7170 (start_event_loop): Notify 'command_error' observers instead of
7171 calling display_gdb_prompt. Remove FIXME comment.
7172 * event-top.c (display_gdb_prompt): Remove call into the
7174 * inf-loop.c: Include "observer.h".
7175 (inferior_event_handler): Notify 'command_error' observers instead
7176 of calling display_gdb_prompt.
7177 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7178 observers instead of calling display_gdb_prompt.
7179 * interps.c (interp_set): Don't call display_gdb_prompt.
7180 (current_interp_display_prompt_p): Delete.
7181 * interps.h (interp_prompt_p): Delete declaration.
7182 (interp_prompt_p_ftype): Delete.
7183 (struct interp_procs) <prompt_proc_p>: Delete field.
7184 (current_interp_display_prompt_p): Delete declaration.
7185 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7186 (_initialize_mi_interp): Adjust.
7187 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7188 'command_error' observers.
7189 (tui_on_sync_execution_done, tui_on_command_error): New
7191 (tui_display_prompt_p): Delete.
7192 (_initialize_tui_interp): Adjust.
7194 2014-05-29 Pedro Alves <palves@redhat.com>
7197 * cli/cli-interp.c: Include infrun.h and observer.h.
7198 (cli_uiout, cli_interp): New globals.
7199 (cli_on_signal_received, cli_on_end_stepping_range)
7200 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7202 (cli_interpreter_init): Install them as 'end_stepping_range',
7203 'signal_received' 'signal_exited', 'exited' and 'no_history'
7205 (_initialize_cli_interp): Remove cli_interp local.
7206 * infrun.c (handle_inferior_event): Call the several stop reason
7207 observers instead of printing the stop reason directly.
7208 (end_stepping_range): New function.
7209 (print_end_stepping_range_reason, print_signal_exited_reason)
7210 (print_exited_reason, print_signal_received_reason)
7211 (print_no_history_reason): Make static, and add an uiout
7212 parameter. Print to that instead of to CURRENT_UIOUT.
7213 * infrun.h (print_end_stepping_range_reason)
7214 (print_signal_exited_reason, print_exited_reason)
7215 (print_signal_received_reason print_no_history_reason): New
7217 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7219 <cli_uiout>: New field.
7220 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7221 uiout for CLI output. Install 'signal_received',
7222 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7224 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7225 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7226 (mi_on_no_history): New functions.
7227 (ui_out_free_cleanup): Delete function.
7228 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7229 instead use the one already stored in the MI interpreter data.
7230 (mi_ui_out): Adjust.
7231 * tui/tui-interp.c: Include infrun.h and observer.h.
7232 (tui_interp): New global.
7233 (tui_on_signal_received, tui_on_end_stepping_range)
7234 (tui_on_signal_exited, tui_on_exited)
7235 (tui_on_no_history): New functions.
7236 (tui_init): Install them as 'end_stepping_range',
7237 'signal_received' 'signal_exited', 'exited' and 'no_history'
7239 (_initialize_tui_interp): Delete tui_interp local.
7241 2014-05-29 Pedro Alves <palves@redhat.com>
7244 * linux-nat.c (linux_nat_resume_callback): Rename the second
7245 parameter to 'except'. Skip LP if it points to EXCEPT.
7246 (linux_nat_resume): Don't mark the event lwp as not stopped
7247 before resuming sibling lwps. Instead ask
7248 linux_nat_resume_callback to skip the event lwp. Mark it as not
7249 stopped after actually resuming it.
7250 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7252 (wait_lwp): Mark the lwp as stopped here.
7253 (stop_wait_callback): Mark the lwp as not stopped right after
7254 resuming it. Don't mark lwps as stopped here.
7255 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7256 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7258 2014-05-29 Pedro Alves <palves@redhat.com>
7261 * infrun.c (resume): Determine how much to resume depending on
7262 whether the caller wanted a step, not whether we can hardware step
7263 the target. Mark all threads that we intend to run as running,
7264 unless we're calling an inferior function.
7265 (normal_stop): If the thread is running an infcall, don't finish
7267 * target.c (target_resume): Don't mark threads as running here.
7269 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7271 * serial.c (_initialize_serial): Remove support for
7272 the "set remotebaud" and "show remotebaud" commands.
7273 * NEWS: Add entry documenting the removal of that command.
7275 2014-05-28 Yao Qi <yao@codesourcery.com>
7277 * charset.c: Fix typo in comments.
7279 2014-05-27 Gary Benson <gbenson@redhat.com>
7281 * utils.c (internal_vproblem): Prompt for a bug report.
7283 2014-05-26 Andy Wingo <wingo@igalia.com>
7285 * guile/scm-arch.c (arscm_mark_arch_smob):
7286 * guile/scm-block.c (bkscm_mark_block_smob)
7287 (bkscm_mark_block_syms_progress_smob):
7288 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7289 * guile/scm-exception.c (exscm_mark_exception_smob):
7290 * guile/scm-frame.c (frscm_mark_frame_smob):
7291 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7292 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7293 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7294 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7295 (ppscm_mark_pretty_printer_worker_smob):
7296 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7297 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7298 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7299 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7301 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7304 2014-05-26 Andy Wingo <wingo@igalia.com>
7305 Doug Evans <xdje42@gmail.com>
7307 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7308 empty_base_class. All uses updated.
7309 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7310 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7312 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7313 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7314 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7315 (gdbscm_gsmob_has_property_p, add_property_name)
7316 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7317 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7318 (gdb-object-has-property?, gdb-object-properties): Remove.
7319 (gdb-object-kind): Renamed from gsmob-kind.
7321 2014-05-26 Andy Wingo <wingo@igalia.com>
7323 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7324 * configure: Regenerate.
7326 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7328 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7330 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7332 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7333 (replay_memory_access_read_only, replay_memory_access_read_write)
7334 (replay_memory_access_types, replay_memory_access)
7335 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7336 (cmd_set_record_btrace, cmd_show_record_btrace)
7337 (cmd_show_replay_memory_access): New.
7338 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7339 (record_btrace_remove_breakpoint): Replace
7340 record_btrace_allow_memory_access with replay_memory_access.
7341 (_initialize_record_btrace): Add commands.
7342 * NEWS: Announce it.
7344 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7346 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7348 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7350 * MAINTAINERS (Write After Approval): Move self back from
7353 2014-05-22 Pedro Alves <palves@redhat.com>
7355 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7356 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7357 (disable_randomization, enum exec_direction_kind)
7358 (execution_direction, stop_registers, start_remote)
7359 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7360 (wait_for_inferior, normal_stop, get_last_target_status)
7361 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7362 (insert_step_resume_breakpoint_at_sal)
7363 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7364 (set_step_info, print_stop_event, signal_stop_state)
7365 (signal_print_state, signal_pass_state, signal_stop_update)
7366 (signal_print_update, signal_pass_update)
7367 (update_signals_program_target, clear_exit_convenience_vars)
7368 (displaced_step_dump_bytes, update_observer_mode)
7369 (signal_catch_update, gdb_signal_from_command): Move
7371 * infrun.h: ... to this new file.
7372 * amd64-tdep.c: Include infrun.h.
7373 * annotate.c: Include infrun.h.
7374 * arch-utils.c: Include infrun.h.
7375 * arm-linux-tdep.c: Include infrun.h.
7376 * arm-tdep.c: Include infrun.h.
7377 * break-catch-sig.c: Include infrun.h.
7378 * breakpoint.c: Include infrun.h.
7379 * common/agent.c: Include infrun.h instead of inferior.h.
7380 * corelow.c: Include infrun.h.
7381 * event-top.c: Include infrun.h.
7382 * go32-nat.c: Include infrun.h.
7383 * i386-tdep.c: Include infrun.h.
7384 * inf-loop.c: Include infrun.h.
7385 * infcall.c: Include infrun.h.
7386 * infcmd.c: Include infrun.h.
7387 * infrun.c: Include infrun.h.
7388 * linux-fork.c: Include infrun.h.
7389 * linux-nat.c: Include infrun.h.
7390 * linux-thread-db.c: Include infrun.h.
7391 * monitor.c: Include infrun.h.
7392 * nto-tdep.c: Include infrun.h.
7393 * procfs.c: Include infrun.h.
7394 * record-btrace.c: Include infrun.h.
7395 * record-full.c: Include infrun.h.
7396 * remote-m32r-sdi.c: Include infrun.h.
7397 * remote-mips.c: Include infrun.h.
7398 * remote-notif.c: Include infrun.h.
7399 * remote-sim.c: Include infrun.h.
7400 * remote.c: Include infrun.h.
7401 * reverse.c: Include infrun.h.
7402 * rs6000-tdep.c: Include infrun.h.
7403 * s390-linux-tdep.c: Include infrun.h.
7404 * solib-irix.c: Include infrun.h.
7405 * solib-osf.c: Include infrun.h.
7406 * solib-svr4.c: Include infrun.h.
7407 * target.c: Include infrun.h.
7408 * top.c: Include infrun.h.
7409 * windows-nat.c: Include infrun.h.
7410 * mi/mi-interp.c: Include infrun.h.
7411 * mi/mi-main.c: Include infrun.h.
7412 * python/py-threadevent.c: Include infrun.h.
7414 2014-05-22 Pedro Alves <palves@redhat.com>
7416 * infrun.c (handle_inferior_event): Store the exit code for
7417 --return-child-result here, instead of ...
7418 (print_exited_reason): ... here.
7420 2014-05-21 Pedro Alves <palves@redhat.com>
7423 * gdbthread.h (struct thread_control_state): New field
7425 * infrun.c (follow_fork): Copy the new thread control field to the
7427 (clear_proceed_status_thread): Clear the new thread control field.
7428 (proceed): Set the new thread control field.
7429 * interps.h (command_interp): Declare.
7430 * interps.c (command_interpreter): New global.
7431 (command_interp): New function.
7432 (interp_exec): Set `command_interpreter' while here.
7433 * cli-out.c (cli_uiout_dtor): New function.
7434 (cli_ui_out_impl): Install it.
7435 * mi/mi-interp.c: Include cli-out.h.
7436 (mi_cmd_interpreter_exec): Add comment.
7437 (restore_current_uiout_cleanup): New function.
7438 (ui_out_free_cleanup): New function.
7439 (mi_on_normal_stop): If finishing an execution command started by
7440 a CLI command, or any kind of breakpoint-like event triggered,
7441 print the stop event to the output (CLI) stream.
7442 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7444 2014-05-21 Pedro Alves <palves@redhat.com>
7446 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7447 current source line having changed.
7448 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7449 * infrun.c (normal_stop): Adjust call to
7450 set_current_sal_from_frame.
7451 * source.c (clear_lines_listed_range): New function.
7452 (set_current_source_symtab_and_line, identify_source_line): Clear
7453 the lines listed range.
7454 (line_info): Handle the first "info line" after the current source
7455 line having changed.
7456 * stack.c (print_stack_frame): Remove center handling.
7457 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7460 2014-05-21 Pedro Alves <palves@redhat.com>
7462 * inf-child.c (inf_child_mourn_inferior): New function.
7463 * inf-child.h (inf_child_mourn_inferior): New declaration.
7464 * darwin-nat.c (darwin_mourn_inferior): Use
7465 inf_child_mourn_inferior.
7466 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7467 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7468 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7469 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7470 * windows-nat.c (windows_mourn_inferior): Likewise.
7472 2014-05-21 Doug Evans <xdje42@gmail.com>
7474 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7476 2014-05-21 Doug Evans <xdje42@gmail.com>
7478 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7479 (gdbscm_out_of_range_error): Ditto.
7480 (gdbscm_memory_error): Ditto.
7481 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7482 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7483 (gdbscm_out_of_range_error): Update.
7484 (gdbscm_memory_error): Update.
7485 (gdbscm_scm_to_target_string_unsafe): Delete.
7487 2014-05-21 Pedro Alves <palves@redhat.com>
7489 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7491 (inf_child_open_target): New function.
7492 (inf_child_open): Use inf_child_open_target to push the target
7493 instead of erroring out.
7494 (inf_child_disconnect, inf_child_close)
7495 (inf_child_maybe_unpush_target): New functions.
7496 (inf_child_target): Install inf_child_disconnect and
7497 inf_child_close. Store a pointer to the returned object.
7498 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7500 * target.c (auto_connect_native_target): New global.
7501 (show_default_run_target): New function.
7502 (find_default_run_target): Return NULL if automatically connecting
7503 to the native target is disabled.
7504 (_initialize_target): Install set/show auto-connect-native-target.
7505 * NEWS: Mention "set auto-connect-native-target", and "target
7507 * linux-nat.c (super_close): New global.
7508 (linux_nat_close): Call super_close.
7509 (linux_nat_add_target): Store a pointer to the base class's
7511 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7512 inf_child_maybe_unpush.
7513 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7515 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7516 the inferior. Use inf_child_maybe_unpush_target.
7517 (inf_ttrace_attach): Don't push the target if it is already
7519 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7520 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7521 after mourning the inferior. Use inf_child_maybe_unpush_target.
7522 (darwin_attach_pid): Don't push the target if it is already
7524 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7525 mourning the inferior. Use inf_child_maybe_unpush_target.
7526 (gnu_detach): Use inf_child_maybe_unpush_target.
7527 * go32-nat.c (go32_create_inferior): Don't push the target if it
7529 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7530 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7531 (procfs_open): Rename to ...
7532 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7533 comments. Can target_preopen before changing node. Call
7534 inf_child_open_target to push the target explicitly.
7535 (procfs_attach): Don't push the target if it is already pushed.
7536 (procfs_detach): Use inf_child_maybe_unpush_target.
7537 (procfs_create_inferior): Don't push the target if it is already
7539 (nto_native_ops): New global.
7540 (procfs_open): Reimplement.
7541 (procfs_native_open): New function.
7542 (init_procfs_targets): Install procfs_native_open as to_open of
7543 "target native". Store a pointer to the "native" target in
7545 * procfs.c (procfs_attach): Don't push the target if it is already
7547 (procfs_detach): Use inf_child_maybe_unpush_target.
7548 (procfs_mourn_inferior): Only unpush the target after mourning the
7549 inferior. Use inf_child_maybe_unpush_target.
7550 (procfs_init_inferior): Don't push the target if it is already
7552 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7553 if it is already pushed.
7555 2014-05-21 Pedro Alves <palves@redhat.com>
7557 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7558 and "procfs" targets are now called "native" instead.
7560 2014-05-21 Pedro Alves <palves@redhat.com>
7562 * go32-nat.c (go32_open): Delete.
7563 (go32_target): Don't override the to_open method.
7565 2014-05-21 Pedro Alves <palves@redhat.com>
7567 * nto-procfs.c (procfs_can_run): New function.
7568 (nto_procfs_ops): New global.
7569 (init_procfs_targets): New, based on procfs_target. Install
7570 "target native" in addition to "target procfs".
7571 (_initialize_procfs): Call init_procfs_targets instead of adding
7574 2014-05-21 Pedro Alves <palves@redhat.com>
7576 * windows-nat.c (windows_target): Don't override to_shortname,
7577 to_longname or to_doc.
7579 2014-05-21 Pedro Alves <palves@redhat.com>
7581 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7584 2014-05-21 Pedro Alves <palves@redhat.com>
7586 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7587 to_shortname, to_longname or to_doc.
7589 2014-05-21 Pedro Alves <palves@redhat.com>
7591 * go32-nat.c (go32_target): Don't override to_shortname,
7592 to_longname or to_doc.
7594 2014-05-21 Pedro Alves <palves@redhat.com>
7596 * inf-child.c (inf_child_open): Remove mention of "child".
7597 (inf_child_target): Rename target to "native" instead of "child".
7599 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7601 * Makefile.in (SFILES): Delete "regset.c".
7602 (COMMON_OBS): Delete "regset.o".
7604 * regset.h (regset_alloc): Delete prototype.
7606 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7608 * sparc-linux-tdep.c (sparc32_linux_gregset)
7609 (sparc32_linux_fpregset): New static regset structures.
7610 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7611 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7613 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7614 (sparc64_linux_fpregset): New static regset structures.
7615 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7616 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7617 New static regset structures.
7618 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7619 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7620 New static regset structures.
7621 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7622 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7623 New static regset structures.
7624 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7625 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7626 New static regset structures.
7627 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7629 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7631 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7632 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7633 register maps ("regmaps") from "*regset" to "*regmap". Do this
7634 for all regmap types and variables.
7635 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7636 (sparc32_linux_supply_core_gregset)
7637 (sparc32_linux_collect_core_gregset)
7638 (sparc32_linux_supply_core_fpregset)
7639 (sparc32_linux_collect_core_fpregset): Likewise.
7640 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7641 (sparc_gregmap, sparc_fpregmap): ... these.
7642 (sparc_supply_gregset, sparc_collect_gregset)
7643 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7644 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7645 (_initialize_sparc_nat): Rename regmaps.
7646 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7647 (sparc_gregmap, sparc_fpregmap): ... these.
7648 (sparc_supply_gregset, sparc_collect_gregset)
7649 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7650 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7652 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7653 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7655 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7657 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7658 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7659 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7661 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7662 (sparc32_bsd_fpregset): Rename to...
7663 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7664 (sparc32_bsd_fpregmap): ... these.
7665 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7666 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7667 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7668 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7669 (struct sparc_gregmap, struct sparc_fpregmap)
7670 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7671 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7672 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7673 (sparc32_supply_regset, sparc32_collect_gregset)
7674 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7676 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7677 (sparc64_linux_ptrace_gregmap): ... this.
7678 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7679 (_initialize_sparc64_linux_nat): Rename regmaps.
7680 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7681 (sparc64_linux_core_gregmap): ... this.
7682 (sparc64_linux_supply_core_gregset)
7683 (sparc64_linux_collect_core_gregset)
7684 (sparc64_linux_supply_core_fpregset)
7685 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7686 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7687 (sparc64_sol2_fpregset): Rename to...
7688 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7689 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7690 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7692 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7693 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7694 (sparc64_bsd_fpregset): Rename to...
7695 (struct sparc_gregmap, sparc64_sol2_gregmap)
7696 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7697 (sparc64_bsd_fpregmap): ... these.
7698 (sparc64_supply_gregset, sparc64_collect_gregset)
7699 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7701 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7702 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7703 (sparc64fbsd_gregmap): ... this.
7704 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7705 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7707 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7708 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7709 (sparc64nbsd_collect_fpregset): Likewise.
7710 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7711 (sparc64nbsd_gregmap): ... this.
7712 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7714 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7715 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7716 (sparc64obsd_gregmap): ... this.
7717 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7719 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7720 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7721 (sparc32nbsd_gregmap): ... this.
7722 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7725 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7727 * score-tdep.c (score7_linux_gregset): New static regset
7729 (score7_linux_regset_from_core_section): Remove dynamic regset
7731 (score_gdbarch_init): Drop allocation of tdep structure.
7732 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7734 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7736 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7738 (am33_regset_from_core_section): Remove dynamic regset
7741 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7743 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7744 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7746 (mips_linux_regset_from_core_section): Remove dynamic regset
7748 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7749 'gregset64', 'fpregset', and 'fpregset64'.
7750 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7751 deleted tdep fields.
7753 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7755 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7757 (amd64_regset_from_core_section): Remove dynamic regset
7759 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7761 (amd64obsd_regset_from_core_section): Remove dynamic regset
7763 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7765 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7766 x86-common regset supply function.
7767 * i386-tdep.c (i386_collect_gregset): Make static.
7768 (i386_gregset): New global regset structure.
7769 (i386_fpregset, i386_xstateregset): New static regset structures.
7770 (i386_regset_from_core_section): Remove dynamic regset
7772 (i386_gdbarch_init): Remove initialization of tdep fields
7773 'gregset', 'fpregset', and 'xstateregset'.
7774 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7775 'fpregset', and 'xstateregset'.
7776 (i386_collect_gregset): Remove prototype.
7777 (i386_gregset): New declaration.
7778 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7780 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7783 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7785 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7786 (arm_linux_vfpregset): New static regset structures.
7787 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7789 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7790 and 'vfpregset' fields.
7792 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7794 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7795 (aarch64_linux_fpregset): New static regset structures.
7796 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7797 of regset structures.
7798 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7801 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7803 * regset.h (struct regset): Remove gdbarch field.
7804 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7805 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7806 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7808 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7809 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7810 (ppc32_linux_vsxregset): Likewise.
7811 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7812 via the regcache instead of the regset.
7813 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7814 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7815 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7816 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7819 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7821 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7822 Constify structures.
7823 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7824 (alphanbsd_aout_gregset): Likewise.
7825 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7826 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7828 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7829 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7831 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7832 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7833 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7834 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7835 * m88k-tdep.c (m88k_gregset): Likewise.
7836 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7837 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7838 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7839 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7840 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7841 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7842 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7843 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7844 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7846 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7847 * sh-tdep.h (sh_corefile_gregset): Likewise.
7848 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7849 * vax-tdep.c (vax_gregset): Likewise.
7851 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7853 Fix TLS access for -static -pthread.
7854 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7855 (try_thread_db_load_1): Initialize it.
7856 (thread_db_get_thread_local_address): Call it if LM is zero.
7857 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7858 * target.h (struct target_ops) (to_get_thread_local_address): Add
7859 load_module_addr comment.
7861 2014-05-21 Pedro Alves <palves@redhat.com>
7863 * dcache.c (dcache_read_memory_partial): If reading the cache line
7864 fails, fallback to reading just the memory the caller wanted.
7866 2014-05-20 Doug Evans <dje@google.com>
7868 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7869 instead of get_current_arch.
7871 2014-05-20 Pedro Alves <palves@redhat.com>
7873 * NEWS: Mention that compare-sections now works with all targets.
7875 * remote.c (PACKET_qCRC): New enum value.
7876 (remote_verify_memory): Don't send qCRC if the target has no
7877 execution. Use packet_support/packet_ok. If the target doesn't
7878 support the qCRC packet, fallback to a deep memory copy.
7879 (compare_sections_command): Say "target image" instead of "remote
7881 (_initialize_remote): Add PACKET_qCRC to the list of config
7882 packets that have no associated command. Extend comment.
7883 * target.c (simple_verify_memory, default_verify_memory): New
7885 * target.h (struct target_ops) <to_verify_memory>: Default to
7886 default_verify_memory.
7887 (simple_verify_memory): New declaration.
7888 * target-delegates.c: Regenerate.
7890 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7892 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7894 2014-05-20 Hui Zhu <hui@codesourcery.com>
7895 Yao Qi <yao@codesourcery.com>
7898 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7899 and change address of sp and pc.
7901 2014-05-19 Tom Tromey <tromey@redhat.com>
7903 * gdbtypes.c (rank_function): Use XNEWVEC.
7904 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7906 2014-05-19 Doug Evans <dje@google.com>
7908 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7909 build_type_unit_groups and moved closer to only caller. Remove
7910 arguments. All references updated. Remove outdated .gdb_index
7912 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7913 build_type_psymtabs_1.
7915 2014-05-19 Doug Evans <dje@google.com>
7917 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7918 n_type_unit_groups, all_type_unit_groups. All uses removed.
7919 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7920 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7921 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7922 (add_type_unit_group_to_table): Delete.
7924 2014-05-19 Doug Evans <dje@google.com>
7926 * eval.c (evaluate_subexp_standard): Add some comments.
7928 2014-05-17 Doug Evans <xdje42@gmail.com>
7930 * progspace.c (remove_program_space): Delete, unused.
7931 * progspace.h (remove_program_space): Ditto.
7933 2014-05-17 Doug Evans <xdje42@gmail.com>
7935 * inferior.c (prune_inferiors): Fix comment.
7936 (remove_inferior_command): Call prune_program_spaces.
7938 2014-05-16 Doug Evans <dje@google.com>
7940 New command line option -D.
7942 * main.c (set_gdb_data_directory): New function.
7943 (captured_main): Recognize -D. Flag error for --data-directory "".
7944 Call set_gdb_data_directory.
7945 (print_gdb_help): Print --data-directory, -D.
7946 * main.h (set_gdb_data_directory): Declare.
7947 * top.c (staged_gdb_datadir): New static global.
7948 (set_gdb_datadir): Call set_gdb_data_directory
7949 (show_gdb_datadir): New function.
7950 (init_main): Update init of data-directory parameter.
7952 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7954 Import the "dirfd" gnulib module.
7955 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7956 * gnulib/aclocal.m4: Update.
7957 * gnulib/config.in: Update.
7958 * gnulib/configure: Update.
7959 * gnulib/import/Makefile.am: Update.
7960 * gnulib/import/Makefile.in: Update.
7961 * gnulib/import/dirfd.c: New.
7962 * gnulib/import/m4/dirfd.m4: New.
7963 * gnulib/import/m4/gnulib-cache.m4: Update.
7964 * gnulib/import/m4/gnulib-comp.m4: Update.
7966 2014-05-16 Pierre Muller <muller@sourceware.org>
7967 Yao Qi <yao@codesourcery.com>
7969 * valprint.c (print_wchar): Move the code on checking whether
7970 W is a printable wide char to the default branch of switch
7971 statement below. Call wchar_printable instead of gdb_iswprint.
7973 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7975 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7976 ldr.w and ldrd instructions.
7978 2014-05-15 Doug Evans <dje@google.com>
7980 * dwarf2read.c (read_structure_type): Delete outdated comments.
7982 2014-05-14 Tom Tromey <tromey@redhat.com>
7984 * macrocmd.c (print_macro_definition): Reindent.
7986 2014-05-13 Doug Evans <xdje42@gmail.com>
7988 * python/py-cmd.c (cmdpy_completer): Add comment.
7989 (completers): Make const.
7991 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7993 * infrun.c (resume): Remove should_resume (unused). Move up
7994 declaration of resume_ptid.
7996 2014-05-13 Tom Tromey <tromey@redhat.com>
7998 * language.h (unop_type_check): Remove.
7999 (binop_type_check): Don't declare.
8001 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8003 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8004 call to regcache_raw_collect.
8006 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8008 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8009 mi_console->quote as the quoting character.
8011 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8013 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8015 2014-04-29 Tom Tromey <tromey@redhat.com>
8017 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8018 "show debug varobj".
8020 2014-05-07 Kyle McMartin <kyle@redhat.com>
8022 Pushed by Joel Brobecker <brobecker@adacore.com>.
8023 * aarch64-tdep.c (aarch64_software_single_step): New function.
8024 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8025 with aarch64_software_single_step.
8027 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8031 2014-05-05 Keith Seitz <keiths@redhat.com>
8033 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8034 variable or history value is successfully parsed.
8036 2014-05-05 Yao Qi <yao@codesourcery.com>
8037 Pedro Alves <palves@redhat.com>
8039 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8040 address of blocks that intersects the requested range. Trim
8041 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8043 * ctf.c (ctf_xfer_partial): Likewise.
8045 2014-05-05 Yao Qi <yao@codesourcery.com>
8047 * printcmd.c (display_command): Remove the check to
8048 target_has_execution.
8050 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8052 * ppcobsd-nat.c: Include "obsd-nat.h".
8053 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8055 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8057 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8059 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8060 and 16-bit signed and unsigned arguments. Update comment.
8061 (stap_parse_probe_arguments): Extend code to handle such
8062 arguments. Use warning instead of complaint to notify about
8063 unrecognized bitness.
8065 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8067 PR breakpoints/16889
8068 * stap-probe.c (stap_parse_probe_arguments): Simplify
8069 check for non-prefixed probes (i.e., probes whose
8070 arguments do not start with "N@"). Always set the
8071 argument type to a sane value.
8073 2014-05-01 David Taylor <dtaylor@emc.com>
8075 * remote.c (compare_sections_command): Add -r option to compare
8076 all loadable read-only sections.
8078 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8080 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8081 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8083 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8084 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8085 Remove unused CORE_ADDR argument. Update all callers.
8087 2014-04-29 Pedro Alves <palves@redhat.com>
8089 * remote.c (struct packet_config) <detect>: Extend comment.
8090 (add_packet_config_cmd): Don't set the config's detect or support
8092 (init_all_packet_configs): Also initialize the config's 'detect'
8094 (reset_all_packet_configs_support): New function.
8095 (remote_open_1): Call reset_all_packet_configs_support instead of
8096 init_all_packet_configs.
8097 (_initialize_remote): Initialize all packet configs. Assert that
8098 all packets have an associated command, except a few known
8101 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8103 * dwarf2read.c (read_subrange_type): Handle dynamic
8104 DW_AT_lower_bound attributes.
8106 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8108 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8109 dynamic bounds before computing its upper bound.
8110 (ada_discrete_type_low_bound): Same as above with the lower bound.
8112 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8114 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8115 range types. Adjust the array handling implementation to
8116 take advantage of this change.
8117 (resolve_dynamic_range): New function, mostly extracted from
8118 resolve_dynamic_bounds.
8119 (resolve_dynamic_array): New function, mostly extracted from
8120 resolve_dynamic_bounds.
8121 (resolve_dynamic_bounds): Delete.
8122 (resolve_dynamic_type): Reimplement. Add handling of
8123 TYPE_CODE_RANGE types.
8125 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8127 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8128 handling of parallel ___XA types.
8130 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8132 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8133 unnecessary second call to static_unwrap_type.
8135 2014-04-27 Hui Zhu <hui@codesourcery.com>
8137 * stack.c (print_frame_info): Call do_gdb_disassembly with
8138 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8140 2014-04-26 Doug Evans <xdje42@gmail.com>
8142 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8144 2014-04-25 Pedro Alves <palves@redhat.com>
8147 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8148 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8149 and newline from built string.
8150 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8151 (linux_ptrace_attach_fail_reason): ... this.
8152 * linux-nat.c (linux_nat_attach): Adjust to use
8153 linux_ptrace_attach_fail_reason.
8155 2014-04-25 Pedro Alves <palves@redhat.com>
8157 * remote.c (struct remote_state): Remove multi_process_aware,
8158 non_stop_aware, cond_tracepoints, cond_breakpoints,
8159 breakpoint_commands, fast_tracepoints, static_tracepoints,
8160 install_in_trace, disconnected_tracing,
8161 enable_disable_tracepoints, string_tracing, and
8162 augmented_libraries_svr4_read fields.
8163 (remote_multi_process_p): Move further below in the file.
8164 (struct packet_config): Add comments.
8165 (update_packet_config): Delete function.
8166 (show_packet_config_cmd): Use packet_config_support.
8167 (add_packet_config_cmd): Use NULL as set callback.
8168 (packet_ok): "set remote foo-packet"-style commands no longer
8169 change config->supported -- adjust.
8170 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8171 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8172 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8173 (PACKET_QNonStop, PACKET_multiprocess_feature)
8174 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8175 (PACKET_DisconnectedTracing_feature)
8176 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8177 (set_remote_protocol_packet_cmd): Delete function.
8178 (packet_config_support, packet_support): New functions.
8179 (set_remote_protocol_Z_packet_cmd): Don't call
8180 update_packet_config.
8181 (remote_query_attached, remote_pass_signals)
8182 (remote_program_signals, remote_threads_info)
8183 (remote_threads_extra_info, remote_start_remote): Use
8185 (remote_start_remote): Use packet_config_support and
8187 (init_all_packet_configs): Set all packets to unknown support,
8188 instead of calling update_packet_config.
8189 (remote_check_symbols): Use packet_support.
8190 (remote_supported_packet): Unconditionally set the packet config's
8192 (remote_multi_process_feature, remote_non_stop_feature)
8193 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8194 (remote_breakpoint_commands_feature)
8195 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8196 (remote_install_in_trace_feature)
8197 (remote_disconnected_tracing_feature)
8198 (remote_enable_disable_tracepoint_feature)
8199 (remote_string_tracing_feature)
8200 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8201 (remote_protocol_features): Adjust to use remote_supported_packet
8202 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8203 "ConditionalTracepoints", "ConditionalBreakpoints",
8204 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8205 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8206 "EnableDisableTracepoints", and "tracenz".
8207 (remote_query_supported): Use packet_support.
8208 (remote_open_1): Adjust.
8209 (extended_remote_attach_1): Use packet_support. Switch on the
8210 result of packet_ok instead of checking whether the packet ended
8212 (remote_vcont_resume): Use packet_support.
8213 (remote_resume, remote_stop_ns, fetch_register_using_p)
8214 (remote_prepare_to_store, store_register_using_P)
8215 (check_binary_download, remote_write_bytes): Use packet_support.
8216 (remote_vkill): Use packet_support. Switch on the result of
8217 packet_ok instead of checking whether the packet ended up
8219 (extended_remote_supports_disable_randomization): Use
8221 (extended_remote_run): Switch on the result of packet_ok instead
8222 of checking whether the packet ended up disabled.
8223 (remote_insert_breakpoint, remote_remove_breakpoint)
8224 (remote_insert_watchpoint, remote_remove_watchpoint)
8225 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8227 (remote_search_memory): Use packet_config_support.
8228 (remote_get_thread_local_address, remote_get_tib_address)
8229 (remote_hostio_send_command, remote_can_execute_reverse): Use
8231 (remote_supports_cond_tracepoints)
8232 (remote_supports_cond_breakpoints)
8233 (remote_supports_fast_tracepoints)
8234 (remote_supports_static_tracepoints)
8235 (remote_supports_install_in_trace)
8236 (remote_supports_enable_disable_tracepoint)
8237 (remote_supports_string_tracing)
8238 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8239 the packet config says the feature is enabled or disabled.
8240 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8241 (remote_get_trace_status): Use packet_support.
8242 (remote_set_disconnected_tracing): Adjust to check whether the
8243 feature is enabled with packet_support.
8244 (remote_set_trace_buffer_size, remote_use_agent)
8245 (remote_can_use_agent, remote_supports_btrace): Use
8247 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8248 Use packet_config_support.
8249 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8250 the packet config says the feature is enabled or disabled.
8251 (set_range_stepping): Use packet_support.
8253 2014-04-25 Tom Tromey <tromey@redhat.com>
8255 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8258 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8260 * NEWS: Mention support for C99 variable length arrays.
8262 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8264 * ada-lang.c (standard_exc): Expand introductory comment.
8266 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8267 Walfred Tedeschi <walfred.tedeschi@intel.com>
8269 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8271 (amd64_linux_read_description): Add code to handle AVX512 xstate
8272 mask and return respective tdesc.
8273 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8274 and features/i386/x32-avx512-linux.c.
8275 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8276 (amd64_linux_core_read_description): Add code to handle AVX512
8277 xstate mask and return respective tdesc.
8278 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8279 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8281 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8282 (tdesc_amd64_avx512_linux): New prototype.
8283 (tdesc_x32_avx512_linux): Likewise.
8284 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8285 features/i386/x32-avx512.c.
8286 (amd64_ymm_avx512_names): New register names for pseudo
8288 (amd64_ymmh_avx512_names): New register names for raw registers
8290 (amd64_k_names): New register names for K registers.
8291 (amd64_zmmh_names): New register names for ZMM raw registers.
8292 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8293 (amd64_xmm_avx512_names): New register names for XMM16-31
8295 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8297 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8298 if feature is present.
8299 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8300 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8301 (AMD64_NUM_REGS): Adjust to new number of registers.
8302 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8303 registers supplied via XSTATE by AVX512 registers.
8304 (i386_linux_read_description): Add case for AVX512.
8305 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8306 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8307 (i386_linux_core_read_description): Add case for AVX512.
8308 (i386_linux_init_abi): Install supported register note section
8310 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8312 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8313 registers to be number of zmm7h + 1.
8314 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8315 * i386-tdep.c: Include features/i386/i386-avx512.c.
8316 (i386_zmm_names): Add ZMM pseudo register names array.
8317 (i386_zmmh_names): Add ZMM raw register names array.
8318 (i386_k_names): Add K raw register names array.
8319 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8320 registers. AVX512 has 16 more ZMM registers than there are YMM
8322 (i386_zmmh_regnum_p): Add function to look up register number of
8324 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8325 (i386_k_regnum_p): Likewise for K raw registers.
8326 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8327 registers added by AVX512.
8328 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8329 registers added by AVX512.
8330 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8332 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8333 (i386_pseudo_register_name): Add ZMM pseudo registers.
8334 (i386_zmm_type): Construct and return vector registers type for ZMM
8336 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8337 ZMM0-31 pseudo registers and K registers.
8338 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8339 and YMM16-31 registers from register cache.
8340 (i386_pseudo_register_write): Add code to write K, ZMM and
8342 (i386_register_reggroup_p): Add code to include/exclude AVX512
8343 registers in/from respective register groups.
8344 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8345 registers if feature is present in xcr0.
8346 (i386_gdbarch_init): Add code to initialize AVX512 feature
8347 variables in tdep structure, wire in pseudo registers and call
8348 initialize_tdesc_i386_avx512.
8349 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8351 (i386_regnum): Add AVX512 registers.
8352 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8353 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8354 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8355 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8357 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8358 (i386_ymm_avx512_regnum_p): Likewise.
8359 (i386_k_regnum_p): Likewise.
8360 (i386_zmm_regnum_p): Likewise.
8361 (i386_zmmh_regnum_p): Likewise.
8362 * i387-tdep.c : Update year in copyright notice.
8363 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8365 (XSAVE_YMM_AVX512_ADDR): New macro.
8366 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8368 (XSAVE_XMM_AVX512_ADDR): New macro.
8369 (xsave_avx512_k_offset): New table for K register offsets in
8371 (XSAVE_AVX512_K_ADDR): New macro.
8372 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8374 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8375 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8377 (i387_collect_xsave): Add code to collect AVX512 registers from
8379 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8380 of XMM16-31 registers.
8381 (I387_NUM_K_REGS): New define for number of K registers.
8382 (I387_K0_REGNUM): New define for K0 register number.
8383 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8384 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8385 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8387 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8388 (I387_XMM16_REGNUM): New define for XMM16 register number.
8389 (I387_YMM0_REGNUM): New define for YMM0 register number.
8390 (I387_KEND_REGNUM): New define for last K register number.
8391 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8392 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8394 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8396 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8398 * features/Makefile: Add AVX512 related files.
8399 * features/i386/32bit-avx512.xml: New file.
8400 * features/i386/64bit-avx512.xml: Likewise.
8401 * features/i386/amd64-avx512-linux.c: Likewise.
8402 * features/i386/amd64-avx512-linux.xml: Likewise.
8403 * features/i386/amd64-avx512.c: Likewise.
8404 * features/i386/amd64-avx512.xml: Likewise.
8405 * features/i386/i386-avx512-linux.c: Likewise.
8406 * features/i386/i386-avx512-linux.xml: Likewise.
8407 * features/i386/i386-avx512.c: Likewise.
8408 * features/i386/i386-avx512.xml: Likewise.
8409 * features/i386/x32-avx512-linux.c: Likewise.
8410 * features/i386/x32-avx512-linux.xml: Likewise.
8411 * features/i386/x32-avx512.c: Likewise.
8412 * features/i386/x32-avx512.xml: Likewise.
8413 * regformats/i386/amd64-avx512-linux.dat: New file.
8414 * regformats/i386/amd64-avx512.dat: Likewise.
8415 * regformats/i386/i386-avx512-linux.dat: Likewise.
8416 * regformats/i386/i386-avx512.dat: Likewise.
8417 * regformats/i386/x32-avx512-linux.dat: Likewise.
8418 * regformats/i386/x32-avx512.dat: Likewise.
8419 * NEWS: Add note about new support for AVX512.
8422 2014-04-23 Pedro Alves <palves@redhat.com>
8424 * breakpoint.c (insert_bp_location): Tolerate errors if the
8425 breakpoint is set in a user-loaded objfile.
8426 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8427 location is marked shlib_disabled. If the breakpoint is set in a
8428 user-loaded objfile is a GDB-side memory breakpoint, validate it
8429 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8430 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8432 * mem-break.c (memory_validate_breakpoint): New function.
8433 * objfiles.c (userloaded_objfile_contains_address_p): New
8435 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8436 * target.h (memory_validate_breakpoint): New declaration.
8438 2014-04-23 Pedro Alves <palves@redhat.com>
8440 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8441 the breakpoint is set in a shared library, only suppress
8442 errors for software breakpoints, not hardware breakpoints.
8444 2014-04-22 Pedro Alves <palves@redhat.com>
8446 * infrun.c (schedlock_applies): New function, factored out from
8447 find_thread_needs_step_over.
8448 (find_thread_needs_step_over): Use it.
8449 (switch_back_to_stepped_thread): Always clear trap_expected if the
8450 step over is finished. Return early if scheduler locking applies.
8451 Look for the stepping thread and a potential step-over thread with
8453 (currently_stepping_or_nexting_callback): Delete.
8455 2014-04-22 Nick Clifton <nickc@redhat.com>
8457 * NEWS: Mention that ARM sim now supports tracing.
8459 2014-04-22 Yao Qi <yao@codesourcery.com>
8461 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8463 * tracefile.c (tracefile_fetch_registers): ... it. New
8465 * tracefile.h (tracefile_fetch_registers): Declare.
8466 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8467 tracefile_fetch_registers.
8469 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8472 * windows-nat.c (thread_rec): Don't display a warning when
8473 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8474 fails for any reason, set th->suspended to -1, so that we don't
8475 try to resume such a thread. Also, don't return NULL in these
8476 cases, to avoid completely ruin the session due to "PC register is
8477 not available" error.
8478 (do_windows_fetch_inferior_registers): Check errors in
8479 GetThreadContext call.
8480 (windows_continue): Accept an additional argument KILLED; if not
8481 zero, ignore errors in the SetThreadContext call, since the
8482 inferior was killed and is shutting down.
8483 (windows_resume, get_windows_debug_event)
8484 (windows_create_inferior, windows_mourn_inferior)
8485 (windows_kill_inferior): All callers of windows_continue changed
8486 to adjust to its new calling sequence.
8488 2014-04-19 Yao Qi <yao@codesourcery.com>
8490 * ctf.c (ctf_open): Call post_create_inferior.
8492 2014-04-19 Yao Qi <yao@codesourcery.com>
8494 * ctf.c (handle_id): New static variable.
8495 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8496 value. Get the declaration of event "register" and get length
8497 of field "contents".
8499 2014-04-19 Yao Qi <yao@codesourcery.com>
8501 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8503 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8505 * valops.c (oload_method_static): Remove unnecessary argument
8506 METHOD. Update all callers.
8508 2014-04-18 Pedro alves <palves@redhat.com>
8509 Tom Tromey <tromey@redhat.com>
8512 * frame.c (get_prev_frame_1): Rename to ...
8513 (get_prev_frame_always): ... this, and make extern. Adjust.
8514 (skip_artificial_frames): Use get_prev_frame_always.
8515 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8516 (get_frame_unwind_stop_reason): Adjust to rename.
8517 * frame.h (get_prev_frame_always): Declare.
8518 * inline-frame.c: Include frame.h.
8519 (inline_frame_this_id): Use get_prev_frame_always.
8521 2014-04-18 Tristan Gingold <gingold@adacore.com>
8523 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8524 code by using bfd_mach_o_get_base_address.
8526 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8528 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8529 (spu_ax_pseudo_register_collect): New function.
8530 (spu_ax_pseudo_register_push_stack): Likewise.
8531 (spu_dwarf_reg_to_regnum): Likewise.
8532 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8534 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8536 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8537 Replace FRAME argument with FRAME_ID.
8538 * gdbarch.c, gdbarch.h: Regenerate.
8539 * findvar.c (default_value_from_register): Add GDBARCH argument;
8540 replace FRAME by FRAME_ID. No longer call get_frame_id.
8541 (value_from_register): Update call to gdbarch_value_from_register.
8542 * value.h (default_value_from_register): Update prototype.
8543 * s390-linux-tdep.c (s390_value_from_register): Update interface
8544 and call to default_value_from_register.
8545 * spu-tdep.c (spu_value_from_register): Likewise.
8547 * findvar.c (address_from_register): Remove TYPE argument.
8548 Do not call value_from_register; use gdbarch_value_from_register
8549 with null_frame_id instead.
8550 * value.h (address_from_register): Update prototype.
8551 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8552 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8553 address_from_register interface change.
8555 2014-04-17 Yao Qi <yao@codesourcery.com>
8557 * gdbtypes.h: Update comments to link to types and macros'
8560 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8562 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8564 2014-04-16 Keith Seitz <keiths@redhat.com>
8567 * dwarf2read.c (skip_one_die): Check that all relative-offset
8568 sibling DIEs fall within range of the current reader's buffer.
8569 (read_partial_die): Likewise.
8571 2014-04-16 Keith Seitz <keiths@redhat.com>
8574 * cp-namespace.c (lookup_symbol_file): If the type name of
8575 `this' is NULL, return immediately.
8577 2014-04-14 Keith Seitz <keiths@redhat.com>
8580 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8581 from symbol_matches_domain in symtab.c. All local callers
8582 of symbol_matches_domain updated.
8583 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8584 search STRUCT_DOMAIN.
8585 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8586 independently. standard_lookup will do that automatically.
8587 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8588 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8589 (cp_lookup_symbol_in_namespace): Likewise.
8590 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8591 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8592 may return a STRUCT_DOMAIN match.
8593 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8594 * cp-support.c: Include language.h.
8595 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8597 * psymtab.c (match_partial_symbol): Compare the requested
8598 domain with the symbol's domain directly.
8599 (lookup_partial_symbol): Likewise.
8600 * symtab.c (lookup_symbol_in_language): Explain when/why
8601 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8602 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8603 appropriate languages.
8604 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8605 and moved to ada-lang.c
8606 (lookup_block_symbol): Explain that this function only returns
8607 symbol matching the requested DOMAIN.
8608 Compare the requested domain with the symbol's domain directly.
8609 (iterate_over_symbols): Compare the requested domain with the
8610 symbol's domain directly.
8611 * symtab.h (symbol_matches_domain): Remove.
8613 2014-04-14 Tom Tromey <tromey@redhat.com>
8616 * c-exp.y (type_aggregate_p): New function.
8617 (qualified_name, classify_inner_name): Use it.
8618 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8619 and TYPE_TARGET_TYPE of an enum type.
8620 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8622 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8623 handle TYPE_DECLARED_CLASS.
8624 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8626 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8627 * valops.c (enum_constant_from_type): New function.
8628 (value_aggregate_elt): Use it.
8629 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8632 2014-04-14 Tom Tromey <tromey@redhat.com>
8634 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8635 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8637 * value.h (value_aggregate_elt): Update.
8639 2014-04-14 Tom Tromey <tromey@redhat.com>
8641 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8643 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8645 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8646 (evaluate_subexp_standard): Pass noside argument.
8647 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8648 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8649 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8650 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8651 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8653 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8655 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8656 points to a constant blob.
8658 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8660 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8661 property and store it as the high bound and flag the range accordingly.
8662 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8663 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8664 * gdbtypes.h (enum range_flags): New enum.
8665 (struct range_bounds): Add flags member.
8667 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8669 * c-typeprint.c (c_type_print_varspec_suffix): Added
8670 check for not yet resolved high bound. If unresolved, print
8671 "variable length" string to the console instead of random
8674 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8676 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8678 (ada_template_to_fixed_record_type_1): Likewise.
8679 (ada_to_fixed_type_1): Likewise.
8680 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8681 (cp_print_value): Likewise.
8682 * d-valprint.c (dynamic_array_type): Likewise.
8683 * findvar.c (address_of_variable): Likewise.
8684 * jv-valprint.c (java_value_print): Likewise.
8685 * valops.c (value_ind): Likewise.
8686 * value.c (coerce_ref): Likewise.
8688 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8690 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8691 value and retrieve the dynamic type size.
8693 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8695 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8696 passed to sizeof is dynamic evaluate the argument to compute the length.
8698 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8699 Joel Brobecker <brobecker@adacore.com>
8701 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8702 (dwarf2_evaluate_property): New function.
8703 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8704 * dwarf2read.c (attr_to_dynamic_prop): New function.
8705 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8707 * gdbtypes.c: Include dwarf2loc.h.
8708 (is_dynamic_type): New function.
8709 (resolve_dynamic_type): New function.
8710 (resolve_dynamic_bounds): New function.
8711 (get_type_length): New function.
8712 (check_typedef): Use get_type_length to compute type length.
8713 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8714 (TYPE_LOW_BOUND_KIND): New macro.
8715 (is_dynamic_type): New function prototype.
8716 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8717 to resolve dynamic properties of the type. Update comment.
8718 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8720 2014-04-14 Richard Henderson <rth@redhat.com>
8722 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8724 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8725 Doug Evans <xdje42@gmail.com>
8727 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8728 dereference TYPE_CODE_REF values.
8730 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8732 Revert the following changes due to regressions:
8734 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8735 (dwarf2_evaluate_property): New function.
8736 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8737 * dwarf2read.c (attr_to_dynamic_prop): New function.
8738 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8740 * gdbtypes.c: Include dwarf2loc.h.
8741 (is_dynamic_type): New function.
8742 (resolve_dynamic_type): New function.
8743 (resolve_dynamic_bounds): New function.
8744 (get_type_length): New function.
8745 (check_typedef): Use get_type_length to compute type length.
8746 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8747 (TYPE_LOW_BOUND_KIND): New macro.
8748 (is_dynamic_type): New function prototype.
8749 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8750 to resolve dynamic properties of the type. Update comment.
8751 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8753 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8754 passed to sizeof is dynamic evaluate the argument to compute the length.
8756 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8757 value and retrieve the dynamic type size.
8759 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8760 (ada_template_to_fixed_record_type_1): Likewise.
8761 (ada_to_fixed_type_1): Likewise.
8762 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8763 (cp_print_value): Likewise.
8764 * d-valprint.c (dynamic_array_type): Likewise.
8765 * eval.c (evaluate_subexp_with_coercion): Likewise.
8766 * findvar.c (address_of_variable): Likewise.
8767 * jv-valprint.c (java_value_print): Likewise.
8768 * valops.c (value_ind): Likewise.
8769 * value.c (coerce_ref): Likewise.
8771 * c-typeprint.c (c_type_print_varspec_suffix): Added
8772 check for not yet resolved high bound. If unresolved, print
8773 "variable length" string to the console instead of random
8776 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8777 property and store it as the high bound and flag the range accordingly.
8778 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8779 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8780 * gdbtypes.h (enum range_flags): New enum.
8781 (struct range_bounds): Add flags member.
8783 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8784 points to a constant blob.
8786 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8787 (evaluate_subexp_standard): Pass noside argument.
8788 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8789 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8790 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8791 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8792 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8794 2014-04-11 Keith Seitz <keiths@redhat.com>
8797 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8798 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8801 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8803 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8804 (evaluate_subexp_standard): Pass noside argument.
8805 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8806 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8807 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8808 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8809 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8811 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8813 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8814 points to a constant blob.
8816 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8818 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8819 property and store it as the high bound and flag the range accordingly.
8820 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8821 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8822 * gdbtypes.h (enum range_flags): New enum.
8823 (struct range_bounds): Add flags member.
8825 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8827 * c-typeprint.c (c_type_print_varspec_suffix): Added
8828 check for not yet resolved high bound. If unresolved, print
8829 "variable length" string to the console instead of random
8832 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8834 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8835 (ada_template_to_fixed_record_type_1): Likewise.
8836 (ada_to_fixed_type_1): Likewise.
8837 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8838 (cp_print_value): Likewise.
8839 * d-valprint.c (dynamic_array_type): Likewise.
8840 * eval.c (evaluate_subexp_with_coercion): Likewise.
8841 * findvar.c (address_of_variable): Likewise.
8842 * jv-valprint.c (java_value_print): Likewise.
8843 * valops.c (value_ind): Likewise.
8844 * value.c (coerce_ref): Likewise.
8846 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8848 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8849 value and retrieve the dynamic type size.
8851 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8853 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8854 passed to sizeof is dynamic evaluate the argument to compute the length.
8856 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8858 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8859 (dwarf2_evaluate_property): New function.
8860 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8861 * dwarf2read.c (attr_to_dynamic_prop): New function.
8862 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8864 * gdbtypes.c: Include dwarf2loc.h.
8865 (is_dynamic_type): New function.
8866 (resolve_dynamic_type): New function.
8867 (resolve_dynamic_bounds): New function.
8868 (get_type_length): New function.
8869 (check_typedef): Use get_type_length to compute type length.
8870 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8871 (TYPE_LOW_BOUND_KIND): New macro.
8872 (is_dynamic_type): New function prototype.
8873 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8874 to resolve dynamic properties of the type. Update comment.
8875 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8877 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8879 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8880 declaring high/low bounds and change uses accordingly. Call
8881 create_range_type instead of create_static_range_type.
8882 * gdbtypes.c (create_range_type): New function.
8883 (create_range_type): Convert bounds into struct bound_prop and pass
8884 them to create_range_type.
8885 * gdbtypes.h (struct bound_prop): New struct.
8886 (create_range_type): New function prototype.
8887 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8888 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8889 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8891 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8893 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8895 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8896 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8897 * ada-lang.c: All uses of create_range_type updated.
8898 * coffread.c: All uses of create_range_type updated.
8899 * dwarf2read.c: All uses of create_range_type updated.
8900 * f-exp.y: All uses of create_range_type updated.
8901 * m2-valprint.c: All uses of create_range_type updated.
8902 * mdebugread.c: All uses of create_range_type updated.
8903 * stabsread.c: All uses of create_range_type updated.
8904 * valops.c: All uses of create_range_type updated.
8905 * valprint.c: All uses of create_range_type updated.
8907 2014-04-10 Pedro Alves <palves@redhat.com>
8909 * breakpoint.c (single_step_breakpoints)
8910 (single_step_gdbarch): Move up in the file.
8911 (one_breakpoint_xfer_memory): New function, factored out from ...
8912 (breakpoint_xfer_memory): ... here. Also process single-step
8915 2014-04-09 Tristan Gingold <gingold@adacore.com>
8917 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8919 (darwin_decode_exception_message): Free port only after use.
8921 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8923 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8924 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8925 when setting the size of call_length.
8927 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8929 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8930 dereference TYPE_CODE_REF values.
8932 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8934 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8935 end of warning message.
8937 2014-04-03 Doug Evans <dje@google.com>
8939 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8940 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8942 2014-04-02 Alan Modra <amodra@gmail.com>
8944 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8945 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8946 (struct symbol_file_add_from_memory_args): Add size field.
8947 (find_vdso_size): New function.
8948 (add_vsyscall_page): Attempt to find vdso size.
8950 2014-04-01 Doug Evans <dje@google.com>
8952 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8954 2014-04-01 Tristan Gingold <gingold@adacore.com>
8956 * darwin-nat.c (darwin_encode_reply): Add prototype.
8957 (darwin_decode_exception_message): Reply to unknown inferiors.
8958 (darwin_decode_message): Handle message by id. Ignore message
8959 to unknown inferior.
8960 (darwin_wait): Discard unknown messages, add debug trace.
8962 2014-03-31 Doug Evans <dje@google.com>
8964 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8967 2014-03-31 Doug Evans <dje@google.com>
8969 New option "set print symbol-loading".
8971 * solib.c (solib_read_symbols): Only print symbol loading messages
8973 (solib_add): If symbol loading is in "brief" mode, notify user
8974 symbols are being loaded.
8975 (reload_shared_libraries_1): Ditto.
8976 * symfile.c (print_symbol_loading_off): New static global.
8977 (print_symbol_loading_brief): New static global.
8978 (print_symbol_loading_full): New static global.
8979 (print_symbol_loading_enums): New static global.
8980 (print_symbol_loading): New static global.
8981 (print_symbol_loading_p): New function.
8982 (symbol_file_add_with_addrs): Only print symbol loading messages
8984 (_initialize_symfile): Register "print symbol-loading" set/show
8986 * symfile.h (print_symbol_loading_p): Declare.
8988 2014-03-30 Doug Evans <xdje42@gmail.com>
8990 * infrun.c (set_last_target_status): New function.
8991 (handle_inferior_event): Call it.
8993 2014-03-30 Doug Evans <xdje42@gmail.com>
8995 * inferior.h (enum stop_kind): Improve comment.
8997 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8999 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9000 a reference, strip the reference layer before calling
9001 the lang_ops value_has_mutated callback.
9003 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9005 Remove some globals from our parser.
9006 * language.c (unk_lang_parser): Add "struct parser_state"
9008 * language.h (struct language_defn) <la_parser>: Likewise.
9009 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9010 (initialize_expout): Add "struct parser_state" argument.
9011 Rewrite function to use the parser state.
9012 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9013 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9014 write_exp_elt_longcst, write_exp_elt_dblcst,
9015 write_exp_elt_decfloatcst, write_exp_elt_type,
9016 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9017 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9018 write_dollar_variable): Likewise.
9019 (parse_exp_in_context_1): Use parser state.
9020 (insert_type_address_space): Add "struct parser_state" argument.
9022 (increase_expout_size): New function.
9023 * parser-defs.h: Forward declare "struct language_defn" and
9024 "struct parser_state".
9025 (expout, expout_size, expout_ptr): Remove extern declarations.
9026 (parse_gdbarch, parse_language): Rewrite macro declarations to
9027 accept the parser state.
9028 (struct parser_state): New struct.
9029 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9030 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9031 write_exp_elt_decfloatcst, write_exp_elt_type,
9032 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9033 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9034 write_exp_msymbol, write_dollar_variable,
9035 mark_struct_expression, insert_type_address_space): Add "struct
9036 parser_state" argument.
9037 (increase_expout_size): New function.
9038 * utils.c (do_clear_parser_state): New function.
9039 (make_cleanup_clear_parser_state): Likewise.
9040 * utils.h (make_cleanup_clear_parser_state): New function
9042 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9043 Update calls to write_exp* in order to pass the parser state.
9044 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9045 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9046 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9047 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9048 * stap-probe.c (stap_parse_register_operand): Likewise.
9049 (stap_parse_single_operand): Likewise.
9050 (stap_parse_argument_1): Likewise.
9051 (stap_parse_argument): Use parser state.
9052 * stap-probe.h: Include "parser-defs.h".
9053 (struct stap_parse_info) <pstate>: New field.
9054 * c-exp.y (parse_type): Rewrite to use parser state.
9055 (yyparse): Redefine to c_parse_internal.
9056 (pstate): New global variable.
9057 (parse_number): Add "struct parser_state" argument.
9058 (write_destructor_name): Likewise.
9059 (type_exp): Update calls to write_exp* and similars in order to
9061 (exp1, exp, variable, qualified_name, space_identifier,
9062 typename, typebase): Likewise.
9063 (write_destructor_name, parse_number, lex_one_token,
9064 classify_name, classify_inner_name, c_parse): Add "struct
9065 parser_state" argument. Update function to use parser state.
9066 * c-lang.h: Forward declare "struct parser_state".
9067 (c_parse): Add "struct parser_state" argument.
9068 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9069 (yyparse): Redefine macro to ada_parse_internal.
9070 (pstate): New variable.
9071 (write_int, write_object_renaming, write_var_or_type,
9072 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9073 type_int, type_long, type_long_long, type_float, type_double,
9074 type_long_double, type_char, type_boolean, type_system_address):
9075 Add "struct parser_state" argument.
9076 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9077 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9078 var_or_type, aggregate, aggregate_component_list,
9079 positional_list, others, component_group,
9080 component_associations): Update calls to write_exp* and similar
9081 functions in order to use parser state.
9082 (ada_parse, write_var_from_sym, write_int,
9083 write_exp_op_with_string, write_object_renaming,
9084 find_primitive_type, write_selectors, write_ambiguous_var,
9085 write_var_or_type, write_name_assoc, type_int, type_long,
9086 type_long_long, type_float, type_double, type_long_double,
9087 type_char, type_boolean, type_system_address): Add "struct
9088 parser_state" argument. Adjust function to use parser state.
9089 * ada-lang.c (parse): Likewise.
9090 * ada-lang.h: Forward declare "struct parser_state".
9091 (ada_parse): Add "struct parser_state" argument.
9092 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9093 calls to both functions.
9094 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9096 (yyparse): Redefine macro to f_parse_internal.
9097 (pstate): New variable.
9098 (parse_number): Add "struct parser_state" argument.
9099 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9100 and similars in order to use parser state.
9101 (parse_number): Adjust code to use parser state.
9103 (f_parse): New function.
9104 * f-lang.h: Forward declare "struct parser_state".
9105 (f_parse): Add "struct parser_state" argument.
9106 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9108 (yyparse): Redefine macro for java_parse_internal.
9109 (pstate): New variable.
9110 (push_expression_name, push_expression_name, insert_exp): Add
9111 "struct parser_state" argument.
9112 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9113 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9114 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9115 PostIncrementExpression, PostDecrementExpression,
9116 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9117 UnaryExpressionNotPlusMinus, CastExpression,
9118 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9119 RelationalExpression, EqualityExpression, AndExpression,
9120 ExclusiveOrExpression, InclusiveOrExpression,
9121 ConditionalAndExpression, ConditionalOrExpression,
9122 ConditionalExpression, Assignment, LeftHandSide): Update
9123 calls to write_exp* and similars in order to use parser state.
9124 (parse_number): Ajust code to use parser state.
9126 (java_parse): New function.
9127 (push_variable): Add "struct parser_state" argument. Adjust
9128 code to user parser state.
9129 (push_fieldnames, push_qualified_expression_name,
9130 push_expression_name, insert_exp): Likewise.
9131 * jv-lang.h: Forward declare "struct parser_state".
9132 (java_parse): Add "struct parser_state" argument.
9133 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9135 (yyparse): Redefine macro to m2_parse_internal.
9136 (pstate): New variable.
9137 (type_exp, exp, fblock, variable, type): Update calls to
9138 write_exp* and similars to use parser state.
9140 (m2_parse): New function.
9141 * m2-lang.h: Forward declare "struct parser_state".
9142 (m2_parse): Add "struct parser_state" argument.
9143 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9144 * objc-lang.h: Forward declare "struct parser_state".
9145 (end_msglist): Add "struct parser_state" argument.
9146 * p-exp.y (parse_type): Rewrite macro to use parser state.
9147 (yyparse): Redefine macro to pascal_parse_internal.
9148 (pstate): New variable.
9149 (parse_number): Add "struct parser_state" argument.
9150 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9151 write_exp* and similars in order to use parser state.
9152 (parse_number, yylex): Adjust code to use parser state.
9153 (pascal_parse): New function.
9154 * p-lang.h: Forward declare "struct parser_state".
9155 (pascal_parse): Add "struct parser_state" argument.
9156 * go-exp.y (parse_type): Rewrite macro to use parser state.
9157 (yyparse): Redefine macro to go_parse_internal.
9158 (pstate): New variable.
9159 (parse_number): Add "struct parser_state" argument.
9160 (type_exp, exp1, exp, variable, type): Update calls to
9161 write_exp* and similars in order to use parser state.
9162 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9163 to use parser state.
9164 (go_parse): Likewise.
9165 * go-lang.h: Forward declare "struct parser_state".
9166 (go_parse): Add "struct parser_state" argument.
9168 2014-03-27 Doug Evans <dje@google.com>
9170 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9172 2014-03-27 Doug Evans <dje@google.com>
9174 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9175 Remove argument abbrev_section. All callers updated.
9177 2014-03-27 Doug Evans <dje@google.com>
9179 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9180 addr_base, ranges_base.
9182 2014-03-26 Keith Seitz <keiths@redhat.com>
9184 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9185 types, not VAR_DOMAIN.
9187 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9189 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9191 * features/nios2-linux.c: Regenerated.
9192 * features/nios2.c: Regenerated.
9194 2014-03-25 Pedro Alves <palves@redhat.com>
9196 * cli/cli-script.c (script_from_file): Force the interpreter to
9199 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9201 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9202 small stack allocation.
9204 2014-03-24 Tristan Gingold <gingold@adacore.com>
9206 * darwin-nat.c (exc_server): Remove unused prototype.
9207 (darwin_dump_message): Correctly display data on x86_64.
9208 (darwin_encode_reply): Fix style.
9209 Add comments and fix indentation.
9211 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9213 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9215 2014-03-22 Doug Evans <xdje42@gmail.com>
9217 * infcmd.c: Whitespace fixes.
9218 (interrupt_command): Merge two function comments into one.
9220 2014-03-22 Doug Evans <xdje42@gmail.com>
9222 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9225 2014-03-22 Yao Qi <yao@codesourcery.com>
9227 * remote.c (target_read_live_memory): Remove.
9228 (memory_xfer_live_readonly_partial): Rename it to
9229 remote_xfer_live_readonly_partial. Remove argument 'object'.
9230 All callers updated. Call remote_read_bytes_1
9231 instead of target_read_live_memory.
9232 * tracepoint.c (set_traceframe_number): Remove.
9233 (make_cleanup_restore_traceframe_number): Likewise .
9234 * tracepoint.h (set_traceframe_number): Remove declaration.
9235 (make_cleanup_restore_traceframe_number): Likewise.
9237 2014-03-22 Yao Qi <yao@codesourcery.com>
9239 * remote.c (remote_read_bytes): Move code on reading from the
9241 (remote_read_bytes_1): ... here. New function.
9243 2014-03-22 Yao Qi <yao@codesourcery.com>
9245 * ctf.c (ctf_xfer_partial): Check the return value of
9246 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9247 return TARGET_XFER_UNAVAILABLE.
9248 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9249 * target.c (target_read_live_memory): Move it to remote.c.
9250 (memory_xfer_live_readonly_partial): Likewise.
9251 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9252 * remote.c (target_read_live_memory): Moved from target.c.
9253 (memory_xfer_live_readonly_partial): Likewise.
9254 (remote_read_bytes): Factored out from
9255 memory_xfer_partial_1.
9257 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9259 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9262 2014-03-21 Pedro Alves <palves@redhat.com>
9264 * infrun.c (normal_stop): Extend comment.
9266 2014-03-21 Hui Zhu <hui@codesourcery.com>
9267 Pedro Alves <palves@redhat.com>
9269 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9271 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9272 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9273 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9275 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9277 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9278 `z' formatted output modifier.
9280 2014-03-20 Tom Tromey <tromey@redhat.com>
9281 Sergio Durigan Junior <sergiodj@redhat.com>
9283 * probe.c (parse_probes): Turn assert into an ordinary error.
9284 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9285 exceptions when parsing probes. Rearrange the code for clarity.
9287 2014-03-20 Tom Tromey <tromey@redhat.com>
9290 * top.c (execute_command): Only dispatch events if the command
9293 2014-03-20 Tom Tromey <tromey@redhat.com>
9296 * infcall.c: Include event-top.h.
9297 (run_inferior_call): Call async_disable_stdin if needed.
9299 2014-03-20 Pedro Alves <palves@redhat.com>
9301 * infrun.c (prepare_to_proceed): Delete.
9302 (thread_still_needs_step_over): New function.
9303 (find_thread_needs_step_over): New function.
9304 (proceed): If the current thread needs a step-over, set its
9305 steping_over_breakpoint flag. Adjust to use
9306 find_thread_needs_step_over instead of prepare_to_proceed.
9307 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9308 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9310 (switch_back_to_stepped_thread): Step over breakpoints of all
9311 threads not the stepping thread, before switching back to the
9314 2014-03-20 Pedro Alves <palves@redhat.com>
9316 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9318 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9319 * infrun.c (saved_singlestep_ptid)
9320 (stepping_past_singlestep_breakpoint): Delete.
9321 (resume): Remove stepping_past_singlestep_breakpoint handling.
9322 (proceed): Store the prev_pc of the stepping thread too.
9323 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9325 (enum infwait_states): Delete infwait_thread_hop_state.
9326 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9328 (handle_inferior_event): Adjust.
9329 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9330 handling and the thread-hop code. Before removing single-step
9331 breakpoints, check whether the thread hit a single-step breakpoint
9332 of another thread. If it did, the trap is not a random signal.
9333 (switch_back_to_stepped_thread): If the event thread hit a
9334 single-step breakpoint, unblock it before switching to the
9335 stepping thread. Handle the case of the stepped thread having
9337 (keep_going): Handle the case of the current thread moving past a
9338 single-step breakpoint.
9340 2014-03-20 Pedro Alves <palves@redhat.com>
9343 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9344 are being stepped over.
9345 (breakpoint_address_match): Make extern.
9346 * breakpoint.h (breakpoint_address_match): New declaration.
9347 * inferior.h (stepping_past_instruction_at): New declaration.
9348 * infrun.c (struct step_over_info): New type.
9349 (step_over_info): New global.
9350 (set_step_over_info, clear_step_over_info)
9351 (stepping_past_instruction_at): New functions.
9352 (handle_inferior_event): Clear the step-over info when
9353 trap_expected is cleared.
9354 (resume): Remove now stale comment.
9355 (clear_proceed_status): Clear step-over info.
9356 (proceed): Adjust step-over handling to set or clear the step-over
9357 info instead of removing all breakpoints.
9358 (handle_signal_stop): When setting up a thread-hop, don't remove
9360 (stop_stepping): Clear step-over info.
9361 (keep_going): Adjust step-over handling to set or clear step-over
9362 info and then always inserting breakpoints, instead of removing
9363 all breakpoints when stepping over one.
9365 2014-03-20 Pedro Alves <palves@redhat.com>
9367 * infrun.c (previous_inferior_ptid): Adjust comment.
9368 (deferred_step_ptid): Delete.
9369 (infrun_thread_ptid_changed, prepare_to_proceed)
9370 (init_wait_for_inferior): Adjust.
9371 (handle_signal_stop): Delete deferred_step_ptid handling.
9373 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9376 * defs.h (sync_quit_force_run): New declaration.
9377 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9378 * event-top.c (async_sigterm_handler): New declaration.
9379 (async_sigterm_token): New variable.
9380 (async_init_signals): Create also async_sigterm_token.
9381 (async_sigterm_handler): New function.
9382 (sync_quit_force_run): New variable.
9383 (handle_sigterm): Replace quit_force call by other calls.
9384 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9386 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9388 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9389 offset into SPE pseudo registers.
9391 2014-03-18 Pedro Alves <palves@redhat.com>
9394 * inferior.h (print_stop_event): Declare.
9395 * infrun.c (print_stop_event): New, factored out from ...
9396 (normal_stop): ... this.
9397 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9398 of bpstat_print/print_stack_frame.
9400 2014-03-17 Tom Tromey <tromey@redhat.com>
9402 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9404 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9406 * ada-lang.c (decode_constrained_packed_array): Perform a
9407 minimal coercion for reference with coerce_ref instead of
9410 2014-03-17 Tristan Gingold <gingold@adacore.com>
9412 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9413 (darwin_solib_create_inferior_hook): Emit a warning if version
9416 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9418 * python/py-value.c (get_field_flag): Cast flag_name argument to
9419 PyObject_GetAttrString to support Python 2.4.
9421 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9423 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9424 (Global Maintainers): Remove Jan Kratochvil.
9426 2014-03-14 Pedro Alves <palves@redhat.com>
9428 * inferior.h (terminal_ours_for_output): Rename to ...
9429 (child_terminal_ours_for_output): ... this.
9430 (terminal_save_ours): Rename to ...
9431 (child_terminal_save_ours): ... this.
9432 (terminal_ours): Rename to ...
9433 (child_terminal_ours): ... this.
9434 (terminal_inferior): Rename to ...
9435 (child_terminal_inferior): ... this.
9436 (terminal_init_inferior): Rename to ...
9437 (child_terminal_init_inferior): ... this.
9438 (terminal_init_inferior_with_pgrp): Rename to ...
9439 (child_terminal_init_inferior_with_pgrp): ... this.
9440 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9441 (child_terminal_init_with_pgrp): ... this.
9442 (terminal_save_ours): Rename to ...
9443 (child_terminal_save_ours): ... this.
9444 (terminal_init_inferior): Rename to ...
9445 (child_terminal_init): ... this. Adjust.
9446 (terminal_inferior): Rename to ...
9447 (child_terminal_inferior): ... this.
9448 (terminal_ours_for_output): Rename to ...
9449 (child_terminal_ours_for_output): ... this. Adjust.
9450 (terminal_ours): Rename to ...
9451 (child_terminal_ours): ... this.
9452 (terminal_ours_1): Rename to ...
9453 (child_terminal_ours_1): ... this. Adjust.
9454 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9455 * windows-nat.c (do_initial_windows_stuff): Adjust.
9456 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9457 (gnu_terminal_init): ... this. Adjust.
9458 (gnu_target): Adjust.
9459 * inf-child.c (inf_child_target): Adjust.
9461 2014-03-13 Doug Evans <xdje42@gmail.com>
9464 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9467 2014-03-13 Doug Evans <xdje42@gmail.com>
9469 * value.c (record_latest_value): Call release_value_or_incref
9470 instead of release_value.
9472 2014-03-13 Pedro Alves <palves@redhat.com>
9474 * procfs.c (procfs_target): Don't override to_shortname,
9475 to_longname or to_doc.
9477 2014-03-13 Pedro Alves <palves@redhat.com>
9479 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9480 Unix in user visible strings.
9482 2014-03-12 Stan Shebs <stan@codesourcery.com>
9484 * gdbtypes.h: Annotate comments for Doxygen, add a page
9485 block comment with some general info.
9487 2014-03-12 Pedro Alves <palves@redhat.com>
9489 * infcmd.c (prepare_execution_command): New function, factored out
9490 from several execution commands.
9491 (run_command_1, continue_command, step_1, jump_command)
9492 (signal_command, until_command, advance_command, finish_command)
9493 (attach_command): Use prepare_execution_command.
9495 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9497 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9500 (struct arm_linux_thread_points): Removed.
9501 (struct arm_linux_process_info): New.
9502 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9503 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9504 (arm_linux_find_breakpoints_by_tid): Removed.
9505 (struct arch_lwp_info): New.
9506 (arm_linux_find_process_pid): New functions.
9507 (arm_linux_add_process): New functions.
9508 (arm_linux_process_info_get): New functions.
9509 (arm_linux_forget_process): New function.
9510 (arm_linux_get_debug_reg_state): New function.
9511 (struct update_registers_data): New.
9512 (update_registers_callback): New function.
9513 (arm_linux_insert_hw_breakpoint1): Updated.
9514 (arm_linux_remove_hw_breakpoint1): Updated.
9515 (arm_linux_insert_hw_breakpoint): Updated.
9516 (arm_linux_remove_hw_breakpoint): Updated.
9517 (arm_linux_insert_watchpoint): Updated.
9518 (arm_linux_remove_watchpoint): Updated.
9519 (arm_linux_new_thread): Updated.
9520 (arm_linux_prepare_to_resume): New function.
9521 (arm_linux_new_fork): New function.
9522 (_initialize_arm_linux_nat): Updated.
9524 2014-03-12 Pedro Alves <palves@redhat.com>
9526 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9528 2014-03-12 Tom Tromey <tromey@redhat.com>
9530 * inf-child.c (return_zero): New function.
9531 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9532 * aix-thread.c (aix_thread_inferior_created): New function.
9533 (aix_thread_attach): Remove.
9534 (init_aix_thread_ops): Don't set to_attach.
9535 (_initialize_aix_thread): Register inferior_created observer.
9536 * corelow.c (init_core_ops): Don't set to_attach or
9538 * exec.c (init_exec_ops): Don't set to_attach or
9540 * infcmd.c (run_command_1): Use find_run_target. Make direct
9542 (attach_command): Use find_attach_target. Make direct target
9544 * record-btrace.c (init_record_btrace_ops): Don't set
9546 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9548 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9549 set to_create_inferior.
9550 * target.c (complete_target_initialization): Add assertion.
9551 (target_create_inferior): Remove.
9552 (find_default_attach, find_default_create_inferior): Remove.
9553 (find_attach_target, find_run_target): New functions.
9554 (find_default_is_async_p, find_default_can_async_p)
9555 (target_supports_non_stop, target_attach): Remove.
9556 (init_dummy_target): Don't set to_create_inferior or
9557 to_supports_non_stop.
9558 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9559 TARGET_DEFAULT_FUNC.
9560 <to_create_inferior>: Add comment.
9561 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9562 TARGET_DEFAULT_RETURN.
9563 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9564 (find_attach_target, find_run_target): Declare.
9565 (target_create_inferior): Remove.
9566 (target_has_execution_1): Update comment.
9567 (target_supports_non_stop): Remove.
9568 * target-delegates.c: Rebuild.
9570 2014-03-12 Pedro Alves <palves@redhat.com>
9572 * inf-child.h: Update comment to not mention Unix.
9574 2014-03-12 Pedro Alves <palves@redhat.com>
9576 * inf-child.c: Update top comment to not mention Unix. Add
9577 generic comment describing how this target is meant to be used.
9578 (inf_child_post_attach, inf_child_post_startup_inferior)
9579 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9582 2014-03-12 Pedro Alves <palves@redhat.com>
9584 * nto-procfs.c: Include inf-child.h.
9585 (procfs_ops): Delete global.
9586 (procfs_can_run): Delete method.
9587 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9588 target pointer instead of referencing procfs_ops.
9589 (procfs_prepare_to_store): Delete.
9590 (init_procfs_ops): Delete function.
9591 (procfs_target): New function, based on init_procfs_ops, but
9592 inherit inf_child_target.
9593 (_initialize_procfs): Use procfs_target.
9595 2014-03-12 Pedro Alves <palves@redhat.com>
9597 * windows-nat.c: Include inf-child.h.
9598 (windows_ops): Delete global.
9599 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9601 (init_windows_ops): Delete function.
9602 (windows_target): New function, based on init_windows_ops, but
9603 inherit inf_child_target.
9604 (_initialize_windows_nat): Use windows_target. Install x86
9605 specific target methods here.
9607 2014-03-10 Doug Evans <xdje42@gmail.com>
9609 * guile/guile.c (call_initialize_gdb_module): New function.
9610 (initialize_guile): Replace call to scm_init_guile with call to
9613 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9615 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9616 in call to TYPE_CODE macro.
9618 2014-03-10 Jerome Guitton <guitton@adacore.com>
9620 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9621 Resolve tagged types to full view.
9623 2014-03-10 Hui Zhu <hui@codesourcery.com>
9625 * target.h (target_insert_breakpoint): Remove "hardware" from its
9628 2014-03-07 Doug Evans <dje@google.com>
9630 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9632 2014-03-07 Doug Evans <dje@google.com>
9634 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9635 Remove unused local comp_dir_attr. Assert exactly one of
9636 stub_comp_unit_die, stub_comp_dir is non-NULL.
9638 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9640 * target.h (complete_target_initialization, add_target):
9643 2014-03-07 Pedro Alves <palves@redhat.com>
9645 * go32-nat.c: Include inf-child.h.
9646 (go32_ops): Delete global.
9647 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9649 (go32_create_inferior): Push the passed in target pointer instead
9650 of referencing go32_ops.
9651 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9652 (go32_target): New function, based on init_go32_ops, but inherit
9654 (_initialize_go32_nat): Use go32_target. Move parts of
9657 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9659 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9660 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9661 SYMBOL_VALUE_ADDRESS.
9662 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9664 2014-03-06 Yao Qi <yao@codesourcery.com>
9666 * breakpoint.c (get_tracepoint_by_number): Remove argument
9667 optional_p. All callers updated. Adjust comments. Update
9669 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9671 2014-03-06 Yao Qi <yao@codesourcery.com>
9673 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9674 early if get_number returns zero. Use 'p' instead of 'args'.
9676 2014-03-06 Yao Qi <yao@codesourcery.com>
9678 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9681 2014-03-06 Yao Qi <yao@codesourcery.com>
9683 PR breakpoints/16508
9684 * tracepoint.c (check_trace_running): New function.
9685 (trace_find_command): Move code to check_trace_running and
9686 call check_trace_running.
9687 (trace_find_pc_command): Likewise.
9688 (trace_find_tracepoint_command): Likewise.
9689 (trace_find_line_command): Likewise.
9690 (trace_find_range_command): Likewise.
9691 * tracepoint.h (check_trace_running): Likewise.
9692 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9694 2014-03-06 Yao Qi <yao@codesourcery.com>
9696 * target.h (struct target_ops) <to_traceframe_info>: Use
9697 TARGET_DEFAULT_NORETURN (tcomplain ()).
9698 * target-delegates.c: Regenerated.
9700 2014-03-05 Pedro Alves <palves@redhat.com>
9703 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9704 void. Update comment.
9705 (dcache_xfer_memory): Delete.
9706 (dcache_read_memory_partial): New, based on the read bits of
9708 (dcache_update): Add status parameter. Use ULONGEST for len, and
9709 adjust. Discard cache lines if the reason for the update was
9711 * dcache.h (dcache_xfer_memory): Delete declaration.
9712 (dcache_read_memory_partial): New declaration.
9713 (dcache_update): Update prototype.
9714 * target.c (raw_memory_xfer_partial): Update the dcache here.
9715 (memory_xfer_partial_1): Don't handle dcache writes here.
9717 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9719 * remote-sim.c (gdbsim_load): Add const to prog.
9721 2014-03-03 Tom Tromey <tromey@redhat.com>
9723 * elfread.c (probe_key): Change to bfd_data.
9724 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9725 now per-BFD, not per-objfile.
9726 * stap-probe.c (stap_probe_destroy): Update comment.
9727 (handle_stap_probe): Allocate on the per-BFD obstack.
9729 2014-03-03 Tom Tromey <tromey@redhat.com>
9731 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9732 * breakpoint.c (create_longjmp_master_breakpoint): Use
9734 (add_location_to_breakpoint, bkpt_probe_insert_location)
9735 (bkpt_probe_remove_location): Update.
9736 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9737 * elfread.c (elf_symfile_relocate_probe): Remove.
9738 (elf_probe_fns): Update.
9739 (insert_exception_resume_breakpoint): Change type of "probe"
9740 parameter to bound_probe.
9741 (check_exception_resume): Update.
9742 * objfiles.c (objfile_relocate1): Don't relocate probes.
9743 * probe.c (bound_probe_s): New typedef.
9744 (parse_probes): Use get_probe_address. Set sal's objfile.
9745 (find_probe_by_pc): Return a bound_probe.
9746 (collect_probes): Return a VEC(bound_probe_s).
9747 (compare_probes): Update.
9748 (gen_ui_out_table_header_info): Change type of "probes"
9750 (info_probes_for_ops): Update.
9751 (get_probe_address): New function.
9752 (probe_safe_evaluate_at_pc): Update.
9753 * probe.h (struct probe_ops) <get_probe_address>: New field.
9754 <set_semaphore, clear_semaphore>: Add objfile parameter.
9755 (struct probe) <objfile>: Remove field.
9757 <address>: Update comment.
9758 (struct bound_probe): New.
9759 (find_probe_by_pc): Return a bound_probe.
9760 (get_probe_address): Declare.
9761 * solib-svr4.c (struct probe_and_action) <address>: New field.
9762 (hash_probe_and_action, equal_probe_and_action): Update.
9763 (register_solib_event_probe): Add address parameter.
9764 (solib_event_probe_at): Update.
9765 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9767 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9768 (stap_get_probe_address): New function.
9769 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9770 (compile_probe_arg): Update.
9771 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9773 (handle_stap_probe): Don't relocate the probe.
9774 (stap_relocate): Remove.
9775 (stap_gen_info_probes_table_values): Update.
9776 (stap_probe_ops): Remove stap_relocate.
9777 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9778 (debug_sym_probe_fns): Update.
9779 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9780 * symtab.c (init_sal): Use memset.
9781 * symtab.h (struct symtab_and_line) <objfile>: New field.
9782 * tracepoint.c (start_tracing, stop_tracing): Update.
9784 2014-03-03 Tom Tromey <tromey@redhat.com>
9786 * probe.h (parse_probes, find_probe_by_pc)
9787 (find_probes_in_objfile): Fix comments.
9789 2014-03-02 Doug Evans <xdje42@gmail.com>
9791 * infrun.c (handle_signal_stop): Replace test for
9792 TARGET_WAITKIND_STOPPED with an assert.
9794 2014-03-02 Doug Evans <xdje42@gmail.com>
9796 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9798 2014-03-02 Doug Evans <xdje42@gmail.com>
9800 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9802 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9804 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9806 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9808 * i386obsd-nat.c: Include "obsd-nat.h".
9809 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9811 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9813 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9815 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9817 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9819 * mips64obsd-nat.c: Include "obsd-nath".
9820 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9822 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9824 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9826 * amd64obsd-nat.c: Include "obsd-nat,h.
9827 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9829 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9831 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9833 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9834 (find_overload_match): Update call to find_oload_champ.
9835 (find_oload_champ_namespace_loop): Likewise
9837 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9839 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9841 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9842 * config/sparc/obsd64.mh: New file.
9843 * sparc64obsd-nat.c: New file.
9845 * obsd-nat.h: New file.
9846 * obsd-nat.c: New file.
9847 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9848 (ALLDEPFILES): Add obsd-nat.c.
9850 2014-02-28 Tom Tromey <tromey@redhat.com>
9852 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9853 * cli-out.h (cli_ui_out_impl): Now const.
9854 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9855 * ui-out.c (struct ui_out) <impl>: Now const.
9856 (default_ui_out_impl): Now const.
9857 (ui_out_new): Make 'impl' parameter const.
9858 * ui-out.h (ui_out_new): Update.
9860 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9862 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9864 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9866 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9868 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9870 Additional PR 8882 fix.
9871 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9873 2014-02-27 Pedro Alves <palves@redhat.com>
9875 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9878 2014-02-27 Pedro Alves <palves@redhat.com>
9881 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9882 * nat/linux-waitpid.c: Include string.h.
9883 (status_to_str): Moved here and made extern.
9884 * nat/linux-waitpid.h (status_to_str): New declaration.
9886 2014-02-27 Hui Zhu <hui@codesourcery.com>
9889 * infrun.c (ptid_match): Move ...
9890 * common/ptid.c (ptid_match): ... here.
9891 * inferior.h (ptid_match): Move ...
9892 * common/ptid.h (ptid_match): ... here.
9894 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9896 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9897 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9900 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9902 * obsd-tdep.c (obsd_auxv_parse): New function.
9903 (obsd_init_abi): Set auxv_parse.
9905 * gdbarch.sh (auxv_parse): New.
9906 * gdbarch.h: Regenerated.
9907 * gdbarch.c: Regenerated.
9908 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9910 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9912 * guile/scm-value.c (gdbscm_history_append_x): New function.
9913 (value_functions): Add it.
9915 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9917 * dwarf2read.c (attr_value_as_address): New function.
9918 (dwarf2_find_base_address, read_call_site_scope): Use
9919 attr_value_as_address in place of DW_ADDR.
9920 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9921 the low and high addresses. Slight rework of the handling
9922 of the high pc being a constant form, and limit it to
9923 DWARF verson 4 or higher.
9924 (dwarf2_record_block_ranges): Likewise.
9925 (read_partial_die): Likewise.
9926 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9928 2014-02-26 Tom Tromey <tromey@redhat.com>
9930 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9932 2014-02-26 Tom Tromey <tromey@redhat.com>
9934 * elfread.c (elf_read_minimal_symbols): Return early if
9935 minimal symbols have already been read. Add "ei" parameter.
9936 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9937 * minsyms.c (prim_record_minimal_symbol_full): Update.
9938 * objfiles.h (struct objstats) <n_minsyms>: Move...
9939 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9940 * symmisc.c (print_objfile_statistics): Update.
9942 2014-02-26 Tom Tromey <tromey@redhat.com>
9944 * elfread.c (elf_read_minimal_symbols): New function, from
9946 (elf_symfile_read): Call it.
9948 2014-02-26 Tom Tromey <tromey@redhat.com>
9950 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9951 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9952 (lookup_minimal_symbol_solib_trampoline)
9953 (lookup_minimal_symbol_by_pc_section_1)
9954 (lookup_minimal_symbol_and_objfile): Update.
9955 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9956 Don't allocate a minimal symbol if minsyms have already been read.
9957 (build_minimal_symbol_hash_tables): Update.
9958 (install_minimal_symbols): Do nothing if minsyms already read.
9959 Use the per-BFD obstack.
9960 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9961 * objfiles.c (allocate_objfile): Call
9962 terminate_minimal_symbol_table later.
9963 (have_minimal_symbols): Update.
9964 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9965 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9966 Move from struct objfile.
9967 <minsyms_read>: New field.
9968 (struct objfile) <msymbols, minimal_symbol_count,
9969 msymbol_hash, msymbol_demangled_hash>: Move.
9970 (ALL_OBJFILE_MSYMBOLS): Update.
9971 * symfile.c (read_symbols): Set minsyms_read.
9972 (reread_symbols): Update.
9973 * symmisc.c (dump_objfile, dump_msymbols): Update.
9975 2014-02-26 Tom Tromey <tromey@redhat.com>
9977 * minsyms.c (msymbols_sort): Remove.
9978 * minsyms.h (msymbols_sort): Remove.
9979 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9980 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9981 * elfread.c (elf_symtab_read): Don't add section offsets.
9982 * xcoffread.c (record_minimal_symbol): Don't add section offset
9983 to minimal symbol address.
9984 * somread.c (text_offset, data_offset): Remove.
9985 (som_symtab_read): Don't add section offsets to minimal symbol
9987 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9988 Don't add section offsets to minimal symbols.
9989 * coffread.c (coff_symtab_read): Don't add section offsets
9990 to minimal symbol addresses.
9991 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9992 to minimal symbol addresses.
9993 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9994 section offset to minimal symbol addresses.
9995 * mdebugread.c (parse_partial_symbols): Don't add section
9996 offset to minimal symbol addresses.
9997 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9998 offset to minimal symbol addresses.
10000 2014-02-26 Tom Tromey <tromey@redhat.com>
10002 * ada-lang.c (ada_main_name): Update.
10003 (ada_add_standard_exceptions): Update.
10004 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10005 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10006 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10007 * auxv.c (ld_so_xfer_auxv): Update.
10008 * avr-tdep.c (avr_scan_prologue): Update.
10009 * ax-gdb.c (gen_var_ref): Update.
10010 * blockframe.c (get_pc_function_start)
10011 (find_pc_partial_function_gnu_ifunc): Update.
10012 * breakpoint.c (create_overlay_event_breakpoint)
10013 (create_longjmp_master_breakpoint)
10014 (create_std_terminate_master_breakpoint)
10015 (create_exception_master_breakpoint): Update.
10016 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10017 * c-valprint.c (c_val_print): Update.
10018 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10019 * common/agent.c (agent_look_up_symbols): Update.
10020 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10021 * dwarf2loc.c (call_site_to_target_addr): Update.
10022 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10023 * elfread.c (elf_gnu_ifunc_record_cache)
10024 (elf_gnu_ifunc_resolve_by_got): Update.
10025 * findvar.c (default_read_var_value): Update.
10026 * frame.c (inside_main_func): Update.
10027 * frv-tdep.c (frv_frame_this_id): Update.
10028 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10029 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10031 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10032 (hppa_hpux_find_dummy_bpaddr): Update.
10033 * hppa-tdep.c (hppa_symbol_address): Update.
10034 * infcmd.c (until_next_command): Update.
10035 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10037 * linespec.c (minsym_found, add_minsym): Update.
10038 * linux-nat.c (get_signo): Update.
10039 * linux-thread-db.c (inferior_has_bug): Update.
10040 * m32c-tdep.c (m32c_return_value)
10041 (m32c_m16c_address_to_pointer): Update.
10042 * m32r-tdep.c (m32r_frame_this_id): Update.
10043 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10044 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10045 * maint.c (maintenance_translate_address): Update.
10046 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10047 (frob_address): New function.
10048 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10049 frob_address. Rename parameter to "pc_in".
10050 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10052 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10054 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10055 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10056 * objc-lang.c (find_objc_msgsend): Update.
10057 * objfiles.c (objfile_relocate1): Update.
10058 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10059 * p-valprint.c (pascal_val_print): Update.
10060 * parse.c (write_exp_msymbol): Update.
10061 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10062 (ppc_elfv2_skip_entrypoint): Update.
10063 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10064 * printcmd.c (build_address_symbolic, msym_info)
10065 (address_info): Update.
10066 * proc-service.c (ps_pglobal_lookup): Update.
10067 * psymtab.c (find_pc_sect_psymtab_closer)
10068 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10069 Change msymbol parameter to bound_minimal_symbol.
10070 * ravenscar-thread.c (get_running_thread_id): Update.
10071 * remote.c (remote_check_symbols): Update.
10072 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10074 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10075 * solib-dsbt.c (lm_base): Update.
10076 * solib-frv.c (lm_base, main_got): Update.
10077 * solib-irix.c (locate_base): Update.
10078 * solib-som.c (som_solib_create_inferior_hook)
10079 (link_map_start): Update.
10080 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10081 * solib-svr4.c (elf_locate_base, enable_break): Update.
10082 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10083 (flush_ea_cache): Update.
10084 * stabsread.c (define_symbol, scan_file_globals): Update.
10085 * stack.c (find_frame_funname): Update.
10086 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10087 (debug_qf_find_pc_sect_symtab): Update.
10088 * symfile.c (simple_read_overlay_table)
10089 (simple_overlay_update): Update.
10090 * symfile.h (struct quick_symbol_functions)
10091 <find_pc_sect_symtab>: Change type of msymbol to
10092 bound_minimal_symbol.
10093 * symmisc.c (dump_msymbols): Update.
10094 * symtab.c (find_pc_sect_symtab_via_partial)
10095 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10096 (search_symbols, print_msymbol_info): Update.
10097 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10098 (MSYMBOL_VALUE_ADDRESS): Redefine.
10099 (BMSYMBOL_VALUE_ADDRESS): New macro.
10100 * tracepoint.c (scope_info): Update.
10101 * tui/tui-disasm.c (tui_find_disassembly_address)
10102 (tui_get_begin_asm_address): Update.
10103 * valops.c (find_function_in_inferior): Update.
10104 * value.c (value_static_field, value_fn_field): Update.
10106 2014-02-26 Tom Tromey <tromey@redhat.com>
10108 * ada-lang.c (ada_update_initial_language): Update.
10109 (ada_main_name, ada_has_this_exception_support): Update.
10110 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10111 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10112 * arm-tdep.c (arm_skip_stub): Update.
10113 * auxv.c (ld_so_xfer_auxv): Update.
10114 * avr-tdep.c (avr_scan_prologue): Update.
10115 * ax-gdb.c (gen_var_ref): Update.
10116 * breakpoint.c (struct breakpoint_objfile_data)
10117 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10118 type to bound_minimal_symbol.
10119 (create_overlay_event_breakpoint)
10120 (create_longjmp_master_breakpoint)
10121 (create_std_terminate_master_breakpoint)
10122 (create_exception_master_breakpoint): Update.
10123 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10124 * c-exp.y (classify_name): Update.
10125 * coffread.c (coff_symfile_read): Update.
10126 * common/agent.c (agent_look_up_symbols): Update.
10127 * d-lang.c (d_main_name): Update.
10128 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10129 * dec-thread.c (enable_dec_thread): Update.
10130 * dwarf2loc.c (call_site_to_target_addr): Update.
10131 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10132 * eval.c (evaluate_subexp_standard): Update.
10133 * findvar.c (struct minsym_lookup_data) <result>: Change type
10134 to bound_minimal_symbol.
10136 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10137 * frame.c (inside_main_func): Update.
10138 * frv-tdep.c (frv_frame_this_id): Update.
10139 * gcore.c (call_target_sbrk): Update.
10140 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10141 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10143 * go-lang.c (go_main_name): Update.
10144 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10145 (hppa_hpux_find_import_stub_for_addr): Update.
10146 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10147 Update. Change return type.
10148 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10150 * jit.c (jit_breakpoint_re_set_internal): Update.
10151 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10153 * linux-nat.c (get_signo): Update.
10154 * linux-thread-db.c (inferior_has_bug): Update
10155 * m32c-tdep.c (m32c_return_value)
10156 (m32c_m16c_address_to_pointer): Update.
10157 * m32r-tdep.c (m32r_frame_this_id): Update.
10158 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10159 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10160 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10161 lookup_minimal_symbol. Change return type.
10162 (lookup_minimal_symbol): Remove.
10163 (lookup_bound_minimal_symbol): Update.
10164 (lookup_minimal_symbol_text): Change return type.
10165 (lookup_minimal_symbol_solib_trampoline): Change return type.
10166 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10167 (lookup_minimal_symbol_solib_trampoline): Change return type.
10168 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10169 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10170 (value_nsstring, find_imps): Update.
10171 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10172 * p-lang.c (pascal_main_name): Update.
10173 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10174 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10175 * proc-service.c (ps_pglobal_lookup): Update.
10176 * ravenscar-thread.c (get_running_thread_msymbol): Change
10178 (has_ravenscar_runtime, get_running_thread_id): Update.
10179 * remote.c (remote_check_symbols): Update.
10180 * sol-thread.c (ps_pglobal_lookup): Update.
10181 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10182 * solib-dsbt.c (lm_base): Update.
10183 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10185 * solib-irix.c (locate_base): Update.
10186 * solib-som.c (som_solib_create_inferior_hook)
10187 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10189 * solib-spu.c (spu_enable_break): Update.
10190 * solib-svr4.c (elf_locate_base, enable_break): Update.
10191 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10192 (flush_ea_cache): Update.
10193 * stabsread.c (define_symbol): Update.
10194 * symfile.c (simple_read_overlay_table): Update.
10195 * symtab.c (find_pc_sect_line): Update.
10196 * tracepoint.c (scope_info): Update.
10197 * tui-disasm.c (tui_get_begin_asm_address): Update.
10198 * value.c (value_static_field): Update.
10200 2014-02-26 Tom Tromey <tromey@redhat.com>
10202 * minsyms.c (prim_record_minimal_symbol_full): Use
10203 SET_MSYMBOL_VALUE_ADDRESS.
10204 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10205 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10206 SET_MSYMBOL_VALUE_ADDRESS.
10207 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10208 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10210 2014-02-26 Tom Tromey <tromey@redhat.com>
10212 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10213 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10214 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10215 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10216 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10217 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10218 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10219 * ada-lang.c (ada_main_name): Update.
10220 (ada_lookup_simple_minsym): Update.
10221 (ada_make_symbol_completion_list): Update.
10222 (ada_add_standard_exceptions): Update.
10223 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10224 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10225 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10226 * arm-tdep.c (skip_prologue_function): Update.
10227 (arm_skip_stack_protector, arm_skip_stub): Update.
10228 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10229 (arm_wince_skip_main_prologue): Update.
10230 * auxv.c (ld_so_xfer_auxv): Update.
10231 * avr-tdep.c (avr_scan_prologue): Update.
10232 * ax-gdb.c (gen_var_ref): Update.
10233 * block.c (call_site_for_pc): Update.
10234 * blockframe.c (get_pc_function_start): Update.
10235 (find_pc_partial_function_gnu_ifunc): Update.
10236 * breakpoint.c (create_overlay_event_breakpoint): Update.
10237 (create_longjmp_master_breakpoint): Update.
10238 (create_std_terminate_master_breakpoint): Update.
10239 (create_exception_master_breakpoint): Update.
10240 (resolve_sal_pc): Update.
10241 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10242 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10244 * c-valprint.c (c_val_print): Update.
10245 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10246 * coffread.c (coff_symfile_read): Update.
10247 * common/agent.c (agent_look_up_symbols): Update.
10248 * dbxread.c (find_stab_function_addr): Update.
10249 (end_psymtab): Update.
10250 * dwarf2loc.c (call_site_to_target_addr): Update.
10251 (func_verify_no_selftailcall): Update.
10252 (tailcall_dump): Update.
10253 (call_site_find_chain_1): Update.
10254 (dwarf_expr_reg_to_entry_parameter): Update.
10255 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10256 (elf_gnu_ifunc_resolve_by_got): Update.
10257 * f-valprint.c (info_common_command): Update.
10258 * findvar.c (read_var_value): Update.
10259 * frame.c (get_prev_frame_1): Update.
10260 (inside_main_func): Update.
10261 * frv-tdep.c (frv_skip_main_prologue): Update.
10262 (frv_frame_this_id): Update.
10263 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10264 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10265 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10266 (gnuv3_skip_trampoline): Update.
10267 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10268 (hppa64_hpux_in_solib_call_trampoline): Update.
10269 (hppa_hpux_skip_trampoline_code): Update.
10270 (hppa64_hpux_search_dummy_call_sequence): Update.
10271 (hppa_hpux_find_import_stub_for_addr): Update.
10272 (hppa_hpux_find_dummy_bpaddr): Update.
10273 * hppa-tdep.c (hppa_symbol_address)
10274 (hppa_lookup_stub_minimal_symbol): Update.
10275 * i386-tdep.c (i386_skip_main_prologue): Update.
10276 (i386_pe_skip_trampoline_code): Update.
10277 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10278 * infcall.c (get_function_name): Update.
10279 * infcmd.c (until_next_command): Update.
10280 * jit.c (jit_breakpoint_re_set_internal): Update.
10281 (jit_inferior_init): Update.
10282 * linespec.c (minsym_found): Update.
10283 (add_minsym): Update.
10284 * linux-fork.c (info_checkpoints_command): Update.
10285 * linux-nat.c (get_signo): Update.
10286 * linux-thread-db.c (inferior_has_bug): Update.
10287 * m32c-tdep.c (m32c_return_value): Update.
10288 (m32c_m16c_address_to_pointer): Update.
10289 (m32c_m16c_pointer_to_address): Update.
10290 * m32r-tdep.c (m32r_frame_this_id): Update.
10291 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10292 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10293 * maint.c (maintenance_translate_address): Update.
10294 * minsyms.c (add_minsym_to_hash_table): Update.
10295 (add_minsym_to_demangled_hash_table): Update.
10296 (msymbol_objfile): Update.
10297 (lookup_minimal_symbol): Update.
10298 (iterate_over_minimal_symbols): Update.
10299 (lookup_minimal_symbol_text): Update.
10300 (lookup_minimal_symbol_by_pc_name): Update.
10301 (lookup_minimal_symbol_solib_trampoline): Update.
10302 (lookup_minimal_symbol_by_pc_section_1): Update.
10303 (lookup_minimal_symbol_and_objfile): Update.
10304 (prim_record_minimal_symbol_full): Update.
10305 (compare_minimal_symbols): Update.
10306 (compact_minimal_symbols): Update.
10307 (build_minimal_symbol_hash_tables): Update.
10308 (install_minimal_symbols): Update.
10309 (terminate_minimal_symbol_table): Update.
10310 (find_solib_trampoline_target): Update.
10311 (minimal_symbol_upper_bound): Update.
10312 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10313 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10314 (mips_skip_pic_trampoline_code): Update.
10315 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10316 * objc-lang.c (selectors_info): Update.
10317 (classes_info): Update.
10318 (find_methods): Update.
10319 (find_imps): Update.
10320 (find_objc_msgsend): Update.
10321 * objfiles.c (objfile_relocate1): Update.
10322 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10323 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10324 * p-valprint.c (pascal_val_print): Update.
10325 * parse.c (write_exp_msymbol): Update.
10326 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10327 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10328 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10329 * printcmd.c (build_address_symbolic): Update.
10330 (sym_info): Update.
10331 (address_info): Update.
10332 * proc-service.c (ps_pglobal_lookup): Update.
10333 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10334 (find_pc_sect_psymtab): Update.
10335 * python/py-framefilter.c (py_print_frame): Update.
10336 * ravenscar-thread.c (get_running_thread_id): Update.
10337 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10339 * remote.c (remote_check_symbols): Update.
10340 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10341 (rs6000_skip_trampoline_code): Update.
10342 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10343 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10344 * solib-dsbt.c (lm_base): Update.
10345 * solib-frv.c (lm_base): Update.
10346 (main_got): Update.
10347 * solib-irix.c (locate_base): Update.
10348 * solib-som.c (som_solib_create_inferior_hook): Update.
10349 (som_solib_desire_dynamic_linker_symbols): Update.
10350 (link_map_start): Update.
10351 * solib-spu.c (spu_enable_break): Update.
10352 (ocl_enable_break): Update.
10353 * solib-svr4.c (elf_locate_base): Update.
10354 (enable_break): Update.
10355 * spu-tdep.c (spu_get_overlay_table): Update.
10356 (spu_catch_start): Update.
10357 (flush_ea_cache): Update.
10358 * stabsread.c (define_symbol): Update.
10359 (scan_file_globals): Update.
10360 * stack.c (find_frame_funname): Update.
10361 (frame_info): Update.
10362 * symfile.c (simple_read_overlay_table): Update.
10363 (simple_overlay_update): Update.
10364 * symmisc.c (dump_msymbols): Update.
10365 * symtab.c (fixup_section): Update.
10366 (find_pc_sect_line): Update.
10367 (skip_prologue_sal): Update.
10368 (search_symbols): Update.
10369 (print_msymbol_info): Update.
10370 (rbreak_command): Update.
10371 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10372 (completion_list_objc_symbol): Update.
10373 (default_make_symbol_completion_list_break_on): Update.
10374 * tracepoint.c (scope_info): Update.
10375 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10376 (tui_get_begin_asm_address): Update.
10377 * valops.c (find_function_in_inferior): Update.
10378 * value.c (value_static_field): Update.
10379 (value_fn_field): Update.
10381 2014-02-26 Tom Tromey <tromey@redhat.com>
10383 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10384 bound minimal symbols. Move code that knows about minsym
10386 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10388 * minsyms.h (minimal_symbol_upper_bound): Declare.
10389 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10390 minimal_symbol_upper_bound.
10392 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10394 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10395 Use the type's name if its basic type does not have a tag.
10397 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10399 * dwarf2read.c (read_subrange_type): Add comment.
10401 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10403 * dwarf2read.c (update_enumeration_type_from_children): New
10404 function, mostly extracted from process_structure_scope.
10405 (read_enumeration_type): Call update_enumeration_type_from_children.
10406 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10407 and flag_flag_enum fields.
10409 2014-02-26 Pedro Alves <palves@redhat.com>
10411 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10412 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10413 to_xfer_partial method.
10415 2014-02-26 Pedro Alves <palves@redhat.com>
10417 * target.c (complete_target_initialization): Don't install
10418 default_xfer_partial as to_xfer_partial hook.
10419 (nomemory): Delete.
10420 (update_current_target): Don't INHERIT nor de_fault
10421 deprecated_xfer_memory. Delete de_fault macro.
10422 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10423 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10424 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10427 2014-02-26 Pedro Alves <palves@redhat.com>
10429 * go32-nat.c (my_write_child): New function.
10430 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10431 (go32_xfer_partial): New function.
10432 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10433 Instead install a to_xfer_partial hook.
10435 2014-02-26 Pedro Alves <palves@redhat.com>
10437 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10438 to_xfer_partial helper. Rewrite.
10439 (procfs_xfer_partial): New function.
10440 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10441 Install a to_xfer_partial hook.
10443 2014-02-26 Pedro Alves <palves@redhat.com>
10445 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10446 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10447 (m32r_xfer_partial): New function.
10448 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10449 Install a to_xfer_partial hook.
10451 2014-02-26 Pedro Alves <palves@redhat.com>
10453 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10455 (mips_xfer_partial): New function.
10456 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10457 hook. Install a to_xfer_partial hook.
10459 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10461 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10462 * gdbtypes.c (create_array_type_with_stride): New function,
10463 renaming create_array_type, but with an added parameter
10464 called "bit_stride".
10465 (create_array_type): Re-implement using
10466 create_array_type_with_stride.
10467 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10468 and DW_AT_bit_stride attributes.
10470 2014-02-26 Pedro Alves <palves@redhat.com>
10472 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10473 task-specific breakpoints.
10475 2014-02-25 Pedro Alves <palves@redhat.com>
10477 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10478 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10480 2014-02-25 Stan Shebs <stan@codesourcery.com>
10482 * defs.h: Annotate comments for Doxygen.
10484 2014-02-25 Tom Tromey <tromey@redhat.com>
10486 * target.h (target_ignore): Don't declare.
10487 * target.c (target_ignore): Remove.
10489 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10492 * auto-load.c (auto_load_objfile_script_1): Change filename to
10495 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10497 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10498 documentation. Adjust prototype to match the target_ops
10499 to_xfer_partial method. Adjust implementation accordingly.
10501 2014-02-25 Hui Zhu <hui@codesourcery.com>
10503 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10504 to_traceframe_info.
10506 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10508 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10509 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10510 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10511 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10512 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10513 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10514 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10515 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10517 (rl78_register_type): Use a data pointer type for SP and
10518 new pseudo registers mentioned above. Use a 16 bit integer
10519 type for all other register pairs.
10520 (rl78_register_name, rl78_g10_register_name): Update for
10521 new pseudo registers.
10522 (rl78_pseudo_register_read): Likewise.
10523 (rl78_pseudo_register_write): Likewise.
10524 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10525 to the newly added pseudo registers.
10527 2014-02-24 Doug Evans <dje@google.com>
10529 * value.c (record_latest_value): Fix comment.
10530 * printcmd.c (print_command_1): Remove code to handle -1 return from
10531 record_latest_value.
10533 2014-02-24 Pedro Alves <palves@redhat.com>
10535 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10536 deprecated_xfer_memory hook.
10537 (procfs_xfer_partial): Call procfs_xfer_memory instead
10538 of the deprecated_xfer_memory target hook.
10539 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10542 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10544 * windows-nat.c (windows_xfer_shared_libraries): Return
10545 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10546 requested object is TARGET_OBJECT_LIBRARIES.
10548 2014-02-24 Yao Qi <yao@codesourcery.com>
10550 * target.h (enum target_xfer_status)
10551 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10552 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10554 * corefile.c (memory_error_message): User updated.
10555 * exec.c (section_table_read_available_memory): Likewise.
10556 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10557 * target.c (target_xfer_status_to_string): Likewise.
10558 (raw_memory_xfer_partial): Likewise.
10559 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10560 * valops.c (read_value_memory): Likewise.
10561 * exec.h: Update comments.
10563 2014-02-24 Yao Qi <yao@codesourcery.com>
10565 * target.c (target_xfer_status_to_string): Rename argument err
10567 * target.h (target_xfer_status_to_string): Update declaration.
10568 Replace target_xfer_error_to_string with
10569 target_xfer_status_to_string in comment.
10571 2014-02-24 Yao Qi <yao@codesourcery.com>
10573 * mips-linux-nat.c (super_close): Update its type.
10574 (mips_linux_close): Pass 'self' to super_close.
10576 2014-02-24 Yao Qi <yao@codesourcery.com>
10578 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10579 * corefile.c (read_memory): Adjusted.
10580 * target.c (target_write_with_progress): Adjusted.
10582 2014-02-23 Yao Qi <yao@codesourcery.com>
10584 Revert two patches:
10586 2013-10-25 Yao Qi <yao@codesourcery.com>
10588 * remote.c (remote_traceframe_info): Return early if
10589 traceframe is not selected.
10591 2013-07-19 Yao Qi <yao@codesourcery.com>
10593 * target.c (update_current_target): Change the default action
10594 of 'to_traceframe_info' from tcomplain to return_zero.
10595 * target.h (struct target_ops) <to_traceframe_info>: Add more
10598 2014-02-23 Yao Qi <yao@codesourcery.com>
10600 * valops.c (read_value_memory): Rewrite it. Call
10601 target_xfer_partial in a loop.
10602 * exec.h (section_table_available_memory): Remove declaration.
10603 Move comments to ...
10604 * exec.c (section_table_available_memory): ... here. Make it
10607 2014-02-23 Yao Qi <yao@codesourcery.com>
10609 * exec.c (section_table_read_available_memory): New function.
10610 * exec.h (section_table_read_available_memory): Declare.
10611 * ctf.c (ctf_xfer_partial): Call
10612 section_table_read_available_memory.
10613 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10615 2014-02-23 Yao Qi <yao@codesourcery.com>
10617 * ctf.c (ctf_xfer_partial): Move code to ...
10618 * exec.c (exec_read_partial_read_only): ... it. New function.
10619 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10620 * tracefile.c: Include "exec.h".
10621 * exec.h (exec_read_partial_read_only): Declare.
10623 2014-02-23 Yao Qi <yao@codesourcery.com>
10625 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10626 (tfile_has_memory): Remove.
10627 (init_tfile_ops): Don't set fields to_has_all_memory and
10628 to_has_memory of tfile_ops.
10629 * tracefile.c (tracefile_has_all_memory): New function.
10630 (tracefile_has_memory): New function.
10631 (init_tracefile_ops): Initialize fields to_has_all_memory and
10632 to_has_memory of 'ops'.
10634 2014-02-23 Yao Qi <yao@codesourcery.com>
10636 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10637 (ctf_thread_alive, ctf_get_trace_status): Remove.
10638 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10639 init_tracefile_ops.
10640 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10641 (tfile_has_stack, tfile_has_registers): Remove.
10642 (tfile_thread_alive): Remove.
10643 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10644 init_tracefile_ops.
10645 * tracefile.c (tracefile_has_stack): New function.
10646 (tracefile_has_registers): New function.
10647 (tracefile_thread_alive): New function.
10648 (tracefile_get_trace_status): New function.
10649 (init_tracefile_ops): New function.
10650 * tracefile.h (init_tracefile_ops): Declare.
10652 2014-02-23 Yao Qi <yao@codesourcery.com>
10654 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10655 (O_LARGEFILE): Likewise.
10656 (tfile_ops): Likewise.
10657 (TRACE_HEADER_SIZE): Likewise.
10658 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10659 (cur_data_size): Likewise.
10660 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10661 (tfile_close, tfile_files_info): Likewise.
10662 (tfile_get_trace_status): Likewise.
10663 (tfile_get_tracepoint_status): Likewise.
10664 (tfile_get_traceframe_address): Likewise.
10665 (tfile_trace_find, match_blocktype): Likewise.
10666 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10667 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10668 (tfile_get_trace_state_variable_value): Likewise.
10669 (tfile_has_all_memory, tfile_has_memory): Likewise.
10670 (tfile_has_stack, tfile_has_registers): Likewise.
10671 (tfile_thread_alive, build_traceframe_info): Likewise.
10672 (tfile_traceframe_info, init_tfile_ops): Likewise.
10673 (_initialize_tracepoint): Don't call init_tfile_ops
10674 and add_target_with_completer.
10675 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10676 exec.h, completer.h and filenames.h.
10677 (_initialize_tracefile_tfile): New function.
10679 2014-02-23 Yao Qi <yao@codesourcery.com>
10681 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10683 (HFILES_NO_SRCDIR): Add tracefile.h.
10684 * ctf.c: Include "tracefile.h".
10685 * tracefile.h: New file.
10686 * tracefile.c: New file
10687 * tracefile-tfile.c: New file.
10688 * tracepoint.c: Include "tracefile.h".
10689 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10690 (stop_reason_names): Add const.
10691 (trace_file_writer_xfree): Move it to tracefile.c.
10692 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10693 (trace_save_ctf): Likewise.
10694 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10695 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10696 (tfile_write_header, tfile_write_regblock_type): Likewise.
10697 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10698 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10699 (tfile_write_raw_data, tfile_end): Likewise.
10700 (tfile_trace_file_writer_new): Likewise.
10701 (free_uploaded_tp): Make it extern.
10702 (free_uploaded_tsv): Make it extern.
10703 (_initialize_tracepoint): Move code to register command 'tsave'
10705 * tracepoint.h (stop_reason_names): Declare.
10706 (struct trace_frame_write_ops): Move it to tracefile.h.
10707 (struct trace_file_write_ops): Likewise.
10708 (struct trace_file_writer): Likewise.
10709 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10711 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10714 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10716 (get_cores_used_by_process): New parameter num_cores, use it.
10717 (linux_xfer_osdata_processes): Pass num_cores to it.
10718 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10721 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10723 * target.c (memory_xfer_partial): Fix length arg in call to
10724 breakpoint_xfer_memory.
10726 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10729 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10730 number comes after the + or - signs. Adjust length of register
10731 name to be extracted.
10733 2014-02-20 Tom Tromey <tromey@redhat.com>
10735 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10736 (ada_varobj_ops): Mark "extern".
10738 2014-02-20 Tom Tromey <tromey@redhat.com>
10740 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10742 2014-02-20 Doug Evans <xdje42@gmail.com>
10744 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10745 All callers updated.
10746 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10747 All callers updated.
10748 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10749 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10751 2014-02-20 lin zuojian <manjian2006@gmail.com>
10752 Joel Brobecker <brobecker@adacore.com>
10753 Doug Evans <xdje42@gmail.com>
10756 * dwarf2read.c (struct die_info): New member in_process.
10757 (reset_die_in_process): New function.
10758 (process_die): Set it at the start, reset when returning.
10759 (inherit_abstract_dies): Only call process_die if origin_child_die
10760 not already being processed.
10762 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10764 * windows-nat.c (handle_unload_dll): Add function documentation.
10765 (do_initial_windows_stuff): Add comment explaining why we wait
10766 until after inferior initialization has finished before
10767 processing all DLLs.
10769 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10771 * windows-nat.c (get_module_name): Delete.
10772 (windows_get_exec_module_filename): New function, mostly
10773 inspired from get_module_name.
10774 (windows_pid_to_exec_file): Replace call to get_module_name
10775 by call to windows_get_exec_module_filename.
10777 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10779 * windows-nat.c (handle_load_dll): Rewrite this function's
10780 introductory comment. Remove code using get_module_name
10781 to get the DLL's name.
10783 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10785 * windows-nat.c (get_windows_debug_event): Ignore
10786 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10787 if windows_initialization_done == 0.
10788 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10789 Adjust implementation to always load all DLLs.
10790 (do_initial_windows_stuff): Replace call to
10791 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10793 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10795 * windows-nat.c (_initialize_windows_nat): Deprecate the
10796 "dll-symbols" command. Turn the "add-shared-symbol-files"
10797 and "assf" aliases into commands, and deprecate them as well.
10798 * NEWS: Add entry explaining that "dll-symbols" and its two
10799 aliases are now deprecated.
10801 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10803 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10804 new-line in debug string. Remove trailing spaces.
10806 2014-02-19 Stan Shebs <stan@codesourcery.com>
10808 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10810 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10812 * NEWS: Add entry for the new feature
10813 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10816 2014-02-19 Stan Shebs <stan@codesourcery.com>
10818 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10820 2014-02-19 Pedro Alves <palves@redhat.com>
10822 * common/ptid.h (struct ptid): Mention that process_stratum
10823 targets should prefer ptid.lwp.
10825 2014-02-19 Pedro Alves <palves@redhat.com>
10827 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10828 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10829 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10830 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10831 store remote thread ids rather than ptid.tid.
10832 (_initialize_remote): Adjust.
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target.c (target_get_unwinder): Rewrite.
10837 (target_get_tailcall_unwinder): Rewrite.
10838 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10839 (record_btrace_to_get_tailcall_unwinder): New function.
10840 (init_record_btrace_ops): Update.
10841 * target.h (struct target_ops) <to_get_unwinder,
10842 to_get_tailcall_unwinder>: Now function pointers. Use
10843 TARGET_DEFAULT_RETURN.
10845 2014-02-19 Tom Tromey <tromey@redhat.com>
10847 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10849 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10851 2014-02-19 Tom Tromey <tromey@redhat.com>
10853 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10855 * target-delegates.c: Rebuild.
10856 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10857 TARGET_DEFAULT_FUNC.
10858 * target.c (default_target_decr_pc_after_break): Rename from
10859 forward_target_decr_pc_after_break. Simplify.
10860 (target_decr_pc_after_break): Rely on delegation.
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10864 * target.c (update_current_target): Do not INHERIT to_doc or
10865 to_magic. Do not de_fault to_open or to_close.
10867 2014-02-19 Tom Tromey <tromey@redhat.com>
10869 * gcore.h (objfile_find_memory_regions): Declare.
10870 * gcore.c (objfile_find_memory_regions): No longer static. Add
10872 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10873 * exec.c: Include gcore.h.
10874 (exec_set_find_memory_regions): Remove.
10875 (exec_find_memory_regions): Remove.
10876 (exec_do_find_memory_regions): Remove.
10877 (init_exec_ops): Update.
10878 * defs.h (exec_set_find_memory_regions): Remove.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * target-delegates.c: Rebuild.
10883 * target.h (struct target_ops) <to_extra_thread_info,
10884 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10885 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10886 not 0, in TARGET_DEFAULT_RETURN.
10888 2014-02-19 Tom Tromey <tromey@redhat.com>
10890 * target.c (complete_target_initialization): Remove casts. Use
10891 return_zero_has_execution.
10892 (return_zero): Add "ignore" argument.
10893 (return_zero_has_execution): New function.
10894 (init_dummy_target): Remove casts. Use
10895 return_zero_has_execution.
10897 2014-02-19 Tom Tromey <tromey@redhat.com>
10899 * target.c (update_current_target): Update comments. Do not
10900 INHERIT to_stratum.
10902 2014-02-19 Tom Tromey <tromey@redhat.com>
10904 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10906 * corelow.c (core_read_description): Delegate when needed.
10907 * remote.c (remote_read_description): Delegate when needed.
10908 * target-delegates.c: Rebuild.
10909 * target.c (target_read_description): Rewrite.
10910 * target.h (struct target_ops) <to_read_description>: Update
10911 comment. Use TARGET_DEFAULT_RETURN.
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10915 * target-delegates.c: Rebuild.
10916 * target.c (update_current_target): Don't inherit or default
10918 (find_default_run_target): Check against delegate_can_run.
10919 * target.h (struct target_ops) <to_can_run>: Use
10920 TARGET_DEFAULT_RETURN.
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10924 * target-delegates.c: Rebuild.
10925 * target.c (target_disconnect): Unconditionally delegate.
10926 * target.h (struct target_ops) <to_disconnect>: Use
10927 TARGET_DEFAULT_NORETURN.
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10931 * record.c (record_stop): Unconditionally delegate.
10932 * target-delegates.c: Rebuild.
10933 * target.c (target_stop_recording): Unconditionally delegate.
10934 * target.h (struct target_ops) <to_stop_recording>: Use
10935 TARGET_DEFAULT_IGNORE.
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10939 * target-delegates.c: Rebuild.
10940 * target.c (target_enable_btrace): Unconditionally delegate.
10941 * target.h (struct target_ops) <to_enable_btrace>: Use
10942 TARGET_DEFAULT_NORETURN.
10944 2014-02-19 Tom Tromey <tromey@redhat.com>
10946 * target-delegates.c: Rebuild.
10947 * target.c (target_read_btrace): Unconditionally delegate.
10948 * target.h (struct target_ops) <to_read_btrace>: Use
10949 TARGET_DEFAULT_NORETURN.
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10953 * target-delegates.c: Rebuild.
10954 * target.c (target_teardown_btrace): Unconditionally delegate.
10955 * target.h (struct target_ops) <to_teardown_btrace>: Use
10956 TARGET_DEFAULT_NORETURN.
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10960 * target-delegates.c: Rebuild.
10961 * target.c (target_disable_btrace): Unconditionally delegate.
10962 * target.h (struct target_ops) <to_disable_btrace>: Use
10963 TARGET_DEFAULT_NORETURN.
10965 2014-02-19 Tom Tromey <tromey@redhat.com>
10967 * target-delegates.c: Rebuild.
10968 * target.c (default_search_memory): New function.
10969 (simple_search_memory): Update comment.
10970 (target_search_memory): Unconditionally delegate.
10971 * target.h (struct target_ops) <to_search_memory>: Use
10972 TARGET_DEFAULT_FUNC.
10974 2014-02-19 Tom Tromey <tromey@redhat.com>
10976 * auxv.c (default_auxv_parse): No longer static.
10977 (target_auxv_parse): Unconditionally delegate.
10978 * auxv.h (default_auxv_parse): Declare.
10979 * target-delegates.c: Rebuild.
10980 * target.c: Include auxv.h.
10981 * target.h (struct target_ops) <to_auxv_parse>: Use
10982 TARGET_DEFAULT_FUNC.
10984 2014-02-19 Tom Tromey <tromey@redhat.com>
10986 * target-delegates.c: Rebuild.
10987 * target.c (target_memory_map): Unconditionally delegate.
10988 * target.h (struct target_ops) <to_memory_map>: Use
10989 TARGET_DEFAULT_RETURN.
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10993 * target-delegates.c: Rebuild.
10994 * target.c (target_thread_alive): Unconditionally delegate.
10995 * target.h (struct target_ops) <to_thread_alive>: Use
10996 TARGET_DEFAULT_RETURN.
10998 2014-02-19 Tom Tromey <tromey@redhat.com>
11000 * target-delegates.c: Rebuild.
11001 * target.c (target_save_record): Unconditionally delegate.
11002 * target.h (struct target_ops) <to_save_record>: Use
11003 TARGET_DEFAULT_NORETURN.
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11007 * target-delegates.c: Rebuild.
11008 * target.c (target_delete_record): Unconditionally delegate.
11009 * target.h (struct target_ops) <to_delete_record>: Use
11010 TARGET_DEFAULT_NORETURN.
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11014 * target-delegates.c: Rebuild.
11015 * target.c (target_record_is_replaying): Unconditionally
11017 * target.h (struct target_ops) <to_record_is_replaying>: Use
11018 TARGET_DEFAULT_RETURN.
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11022 * target-delegates.c: Rebuild.
11023 * target.c (target_goto_record_begin): Unconditionally delegate.
11024 * target.h (struct target_ops) <to_goto_record_begin>: Use
11025 TARGET_DEFAULT_NORETURN.
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11029 * target-delegates.c: Rebuild.
11030 * target.c (target_goto_record_end): Unconditionally delegate.
11031 * target.h (struct target_ops) <to_goto_record_end>: Use
11032 TARGET_DEFAULT_NORETURN.
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target-delegates.c: Rebuild.
11037 * target.c (target_goto_record): Unconditionally delegate.
11038 * target.h (struct target_ops) <to_goto_record>: Use
11039 TARGET_DEFAULT_NORETURN.
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11043 * target-delegates.c: Rebuild.
11044 * target.c (target_insn_history): Unconditionally delegate.
11045 * target.h (struct target_ops) <to_insn_history>: Use
11046 TARGET_DEFAULT_NORETURN.
11048 2014-02-19 Tom Tromey <tromey@redhat.com>
11050 * target-delegates.c: Rebuild.
11051 * target.c (target_insn_history_from): Unconditionally delegate.
11052 * target.h (struct target_ops) <to_insn_history_from>: Use
11053 TARGET_DEFAULT_NORETURN.
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11057 * target-delegates.c: Rebuild.
11058 * target.c (target_insn_history_range): Unconditionally delegate.
11059 * target.h (struct target_ops) <to_insn_history_range>: Use
11060 TARGET_DEFAULT_NORETURN.
11062 2014-02-19 Tom Tromey <tromey@redhat.com>
11064 * target-delegates.c: Rebuild.
11065 * target.c (target_call_history): Unconditionally delegate.
11066 * target.h (struct target_ops) <to_call_history>: Use
11067 TARGET_DEFAULT_NORETURN.
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11071 * target-delegates.c: Rebuild.
11072 * target.c (target_call_history_from): Unconditionally delegate.
11073 * target.h (struct target_ops) <to_call_history_from>: Use
11074 TARGET_DEFAULT_NORETURN.
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * target-delegates.c: Rebuild.
11079 * target.c (target_call_history_range): Unconditionally delegate.
11080 * target.h (struct target_ops) <to_call_history_range>: Use
11081 TARGET_DEFAULT_NORETURN.
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11085 * target-delegates.c: Rebuild.
11086 * target.c (target_verify_memory): Unconditionally delegate.
11087 * target.h (struct target_ops) <to_verify_memory>: Use
11088 TARGET_DEFAULT_NORETURN.
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * target-delegates.c: Rebuild.
11093 * target.c (target_core_of_thread): Unconditionally delegate.
11094 * target.h (struct target_ops) <to_core_of_thread>: Use
11095 TARGET_DEFAULT_RETURN.
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11099 * target-delegates.c: Rebuild.
11100 * target.c (target_flash_done): Unconditionally delegate.
11101 * target.h (struct target_ops) <to_flash_done>: Use
11102 TARGET_DEFAULT_NORETURN.
11104 2014-02-19 Tom Tromey <tromey@redhat.com>
11106 * target-delegates.c: Rebuild.
11107 * target.c (target_flash_erase): Unconditionally delegate.
11108 * target.h (struct target_ops) <to_flash_erase>: Use
11109 TARGET_DEFAULT_NORETURN.
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11113 * target-delegates.c: Rebuild.
11114 * target.c (target_get_section_table): Unconditionally delegate.
11115 * target.h (struct target_ops) <to_get_section_table>: Use
11116 TARGET_DEFAULT_RETURN.
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target-delegates.c: Rebuild.
11121 * target.c (target_pid_to_str): Unconditionally delegate.
11122 (init_dummy_target): Don't initialize to_pid_to_str.
11123 (default_pid_to_str): Rename from dummy_pid_to_str.
11124 * target.h (struct target_ops) <to_pid_to_str>: Use
11125 TARGET_DEFAULT_FUNC.
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target-delegates.c: Rebuild.
11130 * target.c (target_find_new_threads): Unconditionally delegate.
11131 * target.h (struct target_ops) <to_find_new_threads>: Use
11132 TARGET_DEFAULT_RETURN.
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target-delegates.c: Rebuild.
11137 * target.c (target_program_signals): Unconditionally delegate.
11138 * target.h (struct target_ops) <to_program_signals>: Use
11139 TARGET_DEFAULT_IGNORE.
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target-delegates.c: Rebuild.
11144 * target.c (target_pass_signals): Unconditionally delegate.
11145 * target.h (struct target_ops) <to_pass_signals>: Use
11146 TARGET_DEFAULT_IGNORE.
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11150 * target-delegates.c: Rebuild.
11151 * target.c (default_mourn_inferior): New function.
11152 (target_mourn_inferior): Unconditionally delegate.
11153 * target.h (struct target_ops) <to_mourn_inferior>: Use
11154 TARGET_DEFAULT_FUNC.
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11158 * target-delegates.c: Rebuild.
11159 * target.c (default_follow_fork): New function.
11160 (target_follow_fork): Unconditionally delegate.
11161 * target.h (struct target_ops) <to_follow_fork>: Use
11162 TARGET_DEFAULT_FUNC.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_kill): Unconditionally delegate.
11168 * target.h (struct target_ops) <to_kill>: Use
11169 TARGET_DEFAULT_NORETURN.
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11173 * target-delegates.c: Rebuild.
11174 * target.c (target_masked_watch_num_registers): Unconditionally
11176 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11177 Use TARGET_DEFAULT_RETURN.
11179 2014-02-19 Tom Tromey <tromey@redhat.com>
11181 * target-delegates.c: Rebuild.
11182 * target.c (target_remove_mask_watchpoint): Unconditionally
11184 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11185 TARGET_DEFAULT_RETURN.
11187 2014-02-19 Tom Tromey <tromey@redhat.com>
11189 * target-delegates.c: Rebuild.
11190 * target.c (target_insert_mask_watchpoint): Unconditionally
11192 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11193 TARGET_DEFAULT_RETURN.
11195 2014-02-19 Tom Tromey <tromey@redhat.com>
11197 * target-delegates.c: Rebuild.
11198 * target.c (target_ranged_break_num_registers): Unconditionally
11200 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11201 Use TARGET_DEFAULT_RETURN.
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11205 * target-delegates.c: Rebuild.
11206 * target.c (target_fetch_registers): Unconditionally delegate.
11207 * target.h (struct target_ops) <to_fetch_registers>: Use
11208 TARGET_DEFAULT_NORETURN.
11210 2014-02-19 Tom Tromey <tromey@redhat.com>
11212 * target-delegates.c: Rebuild.
11213 * target.c (update_current_target): Don't inherit or default
11215 * target.h (struct target_ops) <to_stop>: Use
11216 TARGET_DEFAULT_IGNORE.
11218 2014-02-19 Tom Tromey <tromey@redhat.com>
11220 * target-delegates.c: Rebuild.
11221 * target.c (update_current_target): Don't inherit or default
11222 to_can_run_breakpoint_commands.
11223 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11224 Use TARGET_DEFAULT_RETURN.
11226 2014-02-19 Tom Tromey <tromey@redhat.com>
11228 * target-delegates.c: Rebuild.
11229 * target.c (update_current_target): Don't inherit or default
11230 to_supports_evaluation_of_breakpoint_conditions.
11231 * target.h (struct target_ops)
11232 <to_supports_evaluation_of_breakpoint_conditions>: Use
11233 TARGET_DEFAULT_RETURN.
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11237 * target-delegates.c: Rebuild.
11238 * target.c (update_current_target): Don't inherit or default
11239 to_augmented_libraries_svr4_read.
11240 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11241 Use TARGET_DEFAULT_RETURN.
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11245 * target-delegates.c: Rebuild.
11246 * target.c (update_current_target): Don't inherit or default
11248 * target.h (struct target_ops) <to_can_use_agent>: Use
11249 TARGET_DEFAULT_RETURN.
11251 2014-02-19 Tom Tromey <tromey@redhat.com>
11253 * target-delegates.c: Rebuild.
11254 * target.c (update_current_target): Don't inherit or default
11256 * target.h (struct target_ops) <to_use_agent>: Use
11257 TARGET_DEFAULT_NORETURN.
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11261 * target-delegates.c: Rebuild.
11262 * target.c (update_current_target): Don't inherit or default
11263 to_traceframe_info.
11264 (return_null): Remove.
11265 * target.h (struct target_ops) <to_traceframe_info>: Use
11266 TARGET_DEFAULT_RETURN.
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11270 * target-delegates.c: Rebuild.
11271 * target.c (update_current_target): Don't inherit or default
11272 to_static_tracepoint_markers_by_strid.
11273 * target.h (struct target_ops)
11274 <to_static_tracepoint_markers_by_strid>: Use
11275 TARGET_DEFAULT_NORETURN.
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
11281 to_static_tracepoint_marker_at.
11282 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11283 Use TARGET_DEFAULT_RETURN.
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_set_permissions.
11290 * target.h (struct target_ops) <to_set_permissions>: Use
11291 TARGET_DEFAULT_IGNORE.
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_get_tib_address.
11298 * target.h (struct target_ops) <to_get_tib_address>: 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_set_trace_notes.
11306 * target.h (struct target_ops) <to_set_trace_notes>: Use
11307 TARGET_DEFAULT_RETURN.
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11311 * target-delegates.c: Rebuild.
11312 * target.c (update_current_target): Don't initialize
11313 to_set_trace_buffer_size.
11314 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11315 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
11322 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11323 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
11330 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11331 TARGET_DEFAULT_IGNORE.
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
11337 to_get_min_fast_tracepoint_insn_len.
11338 (return_minus_one): Remove.
11339 * target.h (struct target_ops)
11340 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11344 * target-delegates.c: Rebuild.
11345 * target.c (update_current_target): Don't inherit or default
11346 to_get_raw_trace_data.
11347 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11348 TARGET_DEFAULT_NORETURN.
11350 2014-02-19 Tom Tromey <tromey@redhat.com>
11352 * target-delegates.c: Rebuild.
11353 * target.c (update_current_target): Don't inherit or default
11354 to_upload_trace_state_variables.
11355 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11356 Use 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_upload_tracepoints.
11363 * target.h (struct target_ops) <to_upload_tracepoints>: 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_save_trace_data.
11371 * target.h (struct target_ops) <to_save_trace_data>: Use
11372 TARGET_DEFAULT_NORETURN.
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_get_trace_state_variable_value.
11379 * target.h (struct target_ops)
11380 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
11387 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11389 2014-02-19 Tom Tromey <tromey@redhat.com>
11391 * target-delegates.c: Rebuild.
11392 * target.c (update_current_target): Don't inherit or default
11394 * target.h (struct target_ops) <to_trace_stop>: Use
11395 TARGET_DEFAULT_NORETURN.
11397 2014-02-19 Tom Tromey <tromey@redhat.com>
11399 * target-delegates.c: Rebuild.
11400 * target.c (update_current_target): Don't inherit or default
11401 to_get_tracepoint_status.
11402 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11403 TARGET_DEFAULT_NORETURN.
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11407 * target-delegates.c: Rebuild.
11408 * target.c (update_current_target): Don't inherit or default
11409 to_get_trace_status.
11410 * target.h (struct target_ops) <to_get_trace_status>: Use
11411 TARGET_DEFAULT_RETURN.
11413 2014-02-19 Tom Tromey <tromey@redhat.com>
11415 * target-delegates.c: Rebuild.
11416 * target.c (update_current_target): Don't inherit or default
11418 * target.h (struct target_ops) <to_trace_start>: Use
11419 TARGET_DEFAULT_NORETURN.
11421 2014-02-19 Tom Tromey <tromey@redhat.com>
11423 * target-delegates.c: Rebuild.
11424 * target.c (update_current_target): Don't inherit or default
11425 to_trace_set_readonly_regions.
11426 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11427 Use TARGET_DEFAULT_NORETURN.
11429 2014-02-19 Tom Tromey <tromey@redhat.com>
11431 * target-delegates.c: Rebuild.
11432 * target.c (update_current_target): Don't inherit or default
11433 to_disable_tracepoint.
11434 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11435 TARGET_DEFAULT_NORETURN.
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
11441 to_enable_tracepoint.
11442 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11443 TARGET_DEFAULT_NORETURN.
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11447 * target-delegates.c: Rebuild.
11448 * target.c (update_current_target): Don't inherit or default
11449 to_download_trace_state_variable.
11450 * target.h (struct target_ops) <to_download_trace_state_variable>:
11451 Use TARGET_DEFAULT_NORETURN.
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target-delegates.c: Rebuild.
11456 * target.c (update_current_target): Don't inherit or default
11457 to_can_download_tracepoint.
11458 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11459 TARGET_DEFAULT_RETURN.
11461 2014-02-19 Tom Tromey <tromey@redhat.com>
11463 * target-delegates.c: Rebuild.
11464 * target.c (update_current_target): Don't inherit or default
11465 to_download_tracepoint.
11466 * target.h (struct target_ops) <to_download_tracepoint>: Use
11467 TARGET_DEFAULT_NORETURN.
11469 2014-02-19 Tom Tromey <tromey@redhat.com>
11471 * target-delegates.c: Rebuild.
11472 * target.c (update_current_target): Don't inherit or default
11474 * target.h (struct target_ops) <to_trace_init>: Use
11475 TARGET_DEFAULT_RETURN.
11477 2014-02-19 Tom Tromey <tromey@redhat.com>
11479 * target-delegates.c: Rebuild.
11480 * target.c (update_current_target): Don't inherit or default
11481 to_supports_string_tracing.
11482 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11483 TARGET_DEFAULT_RETURN.
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11487 * target-delegates.c: Rebuild.
11488 * target.c (update_current_target): Don't inherit or default
11489 to_supports_enable_disable_tracepoint.
11490 * target.h (struct target_ops)
11491 <to_supports_enable_disable_tracepoint>: Use
11492 TARGET_DEFAULT_RETURN.
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11496 * target-delegates.c: Rebuild.
11497 * target.c (update_current_target): Don't inherit or default
11498 to_supports_multi_process.
11499 * target.h (struct target_ops) <to_supports_multi_process>: Use
11500 TARGET_DEFAULT_RETURN.
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11504 * target-delegates.c: Rebuild.
11505 * target.c (update_current_target): Don't inherit or default
11506 to_get_ada_task_ptid.
11507 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11508 TARGET_DEFAULT_FUNC.
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11512 * target-delegates.c: Rebuild.
11513 * target.c (update_current_target): Don't inherit or default
11514 to_thread_architecture.
11515 * target.h (struct target_ops) <to_thread_architecture>: Use
11516 TARGET_DEFAULT_FUNC.
11518 2014-02-19 Tom Tromey <tromey@redhat.com>
11520 * target-delegates.c: Rebuild.
11521 * target.c (update_current_target): Don't inherit or default
11522 to_execution_direction.
11523 * target.h (struct target_ops) <to_execution_direction>: Use
11524 TARGET_DEFAULT_FUNC.
11526 2014-02-19 Tom Tromey <tromey@redhat.com>
11528 * target-delegates.c: Rebuild.
11529 * target.c (update_current_target): Don't inherit or default
11530 to_can_execute_reverse.
11531 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11532 TARGET_DEFAULT_RETURN.
11533 (target_can_execute_reverse): Unconditionally delegate.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11540 (dummy_goto_bookmark): Remove.
11541 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11542 * target.h (struct target_ops) <to_goto_bookmark>: Use
11543 TARGET_DEFAULT_NORETURN.
11545 2014-02-19 Tom Tromey <tromey@redhat.com>
11547 * target-delegates.c: Rebuild.
11548 * target.c (update_current_target): Don't inherit or default
11550 (dummy_get_bookmark): Remove.
11551 (init_dummy_target): Don't inherit or default to_get_bookmark.
11552 * target.h (struct target_ops) <to_get_bookmark>: Use
11553 TARGET_DEFAULT_NORETURN
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11557 * target-delegates.c: Rebuild.
11558 * target.c (update_current_target): Don't inherit or default
11559 to_make_corefile_notes.
11560 (init_dummy_target): Don't initialize to_make_corefile_notes.
11561 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11562 TARGET_DEFAULT_FUNC.
11564 2014-02-19 Tom Tromey <tromey@redhat.com>
11566 * target-delegates.c: Rebuild.
11567 * target.c (update_current_target): Don't inherit or default
11568 to_find_memory_regions.
11569 (init_dummy_target): Don't initialize to_find_memory_regions.
11570 * target.h (struct target_ops) <to_find_memory_regions>: Use
11571 TARGET_DEFAULT_FUNC.
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11575 * target-delegates.c: Rebuild.
11576 * target.c (update_current_target): Don't inherit or default
11578 * target.h (struct target_ops) <to_log_command>: Use
11579 TARGET_DEFAULT_IGNORE.
11580 (target_log_command): Unconditionally delegate.
11582 2014-02-19 Tom Tromey <tromey@redhat.com>
11584 * target-delegates.c: Rebuild.
11585 * target.c (update_current_target): Don't inherit or default
11586 to_pid_to_exec_file.
11587 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11588 TARGET_DEFAULT_RETURN.
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11592 * target-delegates.c: Rebuild.
11593 * target.c (update_current_target): Don't inherit or default
11595 (target_thread_name): Unconditionally delegate.
11596 * target.h (struct target_ops) <to_thread_name>: Use
11597 TARGET_DEFAULT_RETURN.
11599 2014-02-19 Tom Tromey <tromey@redhat.com>
11601 * target-delegates.c: Rebuild.
11602 * target.c (update_current_target): Don't inherit or default
11603 to_extra_thread_info.
11604 * target.h (struct target_ops) <to_extra_thread_info>: Use
11605 TARGET_DEFAULT_RETURN.
11607 2014-02-19 Tom Tromey <tromey@redhat.com>
11609 * target-delegates.c: Rebuild.
11610 * target.c (update_current_target): Don't inherit or default
11612 * target.h (struct target_ops) <to_has_exited>: Use
11613 TARGET_DEFAULT_RETURN..
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11617 * target-delegates.c: Rebuild.
11618 * target.c (update_current_target): Don't inherit or default
11619 to_set_syscall_catchpoint.
11620 (return_one): Remove.
11621 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11622 TARGET_DEFAULT_RETURN.
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_insert_exec_catchpoint.
11629 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11630 TARGET_DEFAULT_RETURN.
11632 2014-01-08 Tom Tromey <tromey@redhat.com>
11634 * target-delegates.c: Rebuild.
11635 * target.c (update_current_target): Don't inherit or default
11636 to_insert_exec_catchpoint.
11637 * target.h (struct target_ops) <to_insert_exec_catchpoint>: 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_vfork_catchpoint.
11645 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: 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_vfork_catchpoint.
11653 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: 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_remove_fork_catchpoint.
11661 * target.h (struct target_ops) <to_remove_fork_catchpoint>: 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
11668 to_insert_fork_catchpoint.
11669 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11670 TARGET_DEFAULT_RETURN.
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
11676 to_post_startup_inferior.
11677 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11678 TARGET_DEFAULT_IGNORE.
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_load>: Use
11686 TARGET_DEFAULT_NORETURN.
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 * target.h (struct target_ops) <to_terminal_info>: Use
11694 TARGET_DEFAULT_FUNC.
11696 2014-02-19 Tom Tromey <tromey@redhat.com>
11698 * target-delegates.c: Rebuild.
11699 * target.c (update_current_target): Don't inherit or default
11700 to_terminal_save_ours.
11701 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11702 TARGET_DEFAULT_IGNORE.
11704 2014-02-19 Tom Tromey <tromey@redhat.com>
11706 * target-delegates.c: Rebuild.
11707 * target.c (update_current_target): Don't inherit or default
11709 * target.h (struct target_ops) <to_terminal_ours>: Use
11710 TARGET_DEFAULT_IGNORE.
11712 2014-02-19 Tom Tromey <tromey@redhat.com>
11714 * target-delegates.c: Rebuild.
11715 * target.c (update_current_target): Don't inherit or default
11716 to_terminal_ours_for_output.
11717 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11718 TARGET_DEFAULT_IGNORE.
11720 2014-02-19 Tom Tromey <tromey@redhat.com>
11722 * target-delegates.c: Rebuild.
11723 * target.c (update_current_target): Don't inherit or default
11724 to_terminal_inferior.
11725 * target.h (struct target_ops) <to_terminal_inferior>: Use
11726 TARGET_DEFAULT_IGNORE.
11728 2014-02-19 Tom Tromey <tromey@redhat.com>
11730 * target-delegates.c: Rebuild.
11731 * target.c (update_current_target): Don't inherit or default
11733 * target.h (struct target_ops) <to_terminal_init>: Use
11734 TARGET_DEFAULT_IGNORE.
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11738 * target-delegates.c: Rebuild.
11739 * target.c (update_current_target): Don't inherit or default
11740 to_can_accel_watchpoint_condition.
11741 * target.h (struct target_ops)
11742 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11744 2014-02-19 Tom Tromey <tromey@redhat.com>
11746 * target-delegates.c: Rebuild.
11747 * target.c (update_current_target): Don't inherit or default
11748 to_region_ok_for_hw_watchpoint.
11749 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11750 Use TARGET_DEFAULT_FUNC.
11752 2014-02-19 Tom Tromey <tromey@redhat.com>
11754 * target-delegates.c: Rebuild.
11755 * target.c (update_current_target): Don't inherit or default
11756 to_watchpoint_addr_within_range.
11757 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11758 Use TARGET_DEFAULT_FUNC.
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11762 * target-delegates.c: Rebuild.
11763 * target.c (update_current_target): Don't inherit or default
11764 to_remove_watchpoint.
11765 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11766 TARGET_DEFAULT_NORETURN.
11768 2014-02-19 Tom Tromey <tromey@redhat.com>
11770 * target-delegates.c: Rebuild.
11771 * target.c (update_current_target): Don't inherit or default
11772 to_insert_watchpoint.
11773 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11774 TARGET_DEFAULT_RETURN.
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11778 * target-delegates.c: Rebuild.
11779 * target.c (update_current_target): Don't inherit or default
11780 to_remove_hw_breakpoint.
11781 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11782 TARGET_DEFAULT_RETURN.
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11786 * target-delegates.c: Rebuild.
11787 * target.c (update_current_target): Don't inherit or default
11788 to_insert_hw_breakpoint.
11789 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11790 TARGET_DEFAULT_RETURN.
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11794 * target-delegates.c: Rebuild.
11795 * target.c (update_current_target): Don't inherit or default
11796 to_can_use_hw_breakpoint.
11797 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11798 TARGET_DEFAULT_RETURN.
11800 2014-02-19 Tom Tromey <tromey@redhat.com>
11802 * target-delegates.c: Rebuild.
11803 * target.c (update_current_target): Don't inherit or default
11805 * target.h (struct target_ops) <to_files_info>: Use
11806 TARGET_DEFAULT_IGNORE.
11808 2014-02-19 Tom Tromey <tromey@redhat.com>
11810 * target-delegates.c: Rebuild.
11811 * target.c (update_current_target): Don't inherit or default
11813 * target.h (struct target_ops) <to_store>: Use
11814 TARGET_DEFAULT_NORETURN.
11816 2014-02-19 Tom Tromey <tromey@redhat.com>
11818 * target-delegates.c: Rebuild.
11819 * target.c (update_current_target): Don't inherit or default
11821 * target.h (struct target_ops) <to_post_attach>: Use
11822 TARGET_DEFAULT_IGNORE.
11824 2014-02-19 Tom Tromey <tromey@redhat.com>
11826 * target-delegates.c: Rebuild.
11827 * target.c (update_current_target): Don't inherit or default
11829 (default_rcmd): New function.
11830 (do_monitor_command): Unconditionally delegate.
11831 * target.h (struct target_ops) <to_rmcd>: Use
11832 TARGET_DEFAULT_FUNC.
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11836 * target-delegates.c: Rebuild.
11837 * target.c (init_dummy_target): Don't initialize to_attach.
11838 (target_attach): Unconditionally delegate.
11839 * target.h (struct target_ops) <to_attach>: Use
11840 TARGET_DEFAULT_FUNC.
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target-delegates.c: Rebuild.
11845 * target.c (target_detach): Unconditionally delegate.
11846 (init_dummy_target): Don't initialize to_detach.
11847 * target.h (struct target_ops) <to_detach>: Use
11848 TARGET_DEFAULT_IGNORE.
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11852 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11854 (target_augmented_libraries_svr4_read): Add argument.
11855 * target.c (update_current_target): Update.
11856 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11861 * target.h (struct target_ops) <to_call_history_range>: Add
11863 * target.c (target_call_history_range): Add argument.
11864 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11866 (record_btrace_call_history_from): Update.
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11870 * target.h (struct target_ops) <to_call_history_from>: Add
11872 * target.c (target_call_history_from): Add argument.
11873 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11878 * target.h (struct target_ops) <to_call_history>: Add argument.
11879 * target.c (target_call_history): Add argument.
11880 * record-btrace.c (record_btrace_call_history): Add 'self'
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11885 * target.h (struct target_ops) <to_insn_history_range>: Add
11887 * target.c (target_insn_history_range): Add argument.
11888 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11890 (record_btrace_insn_history_from): Update.
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11894 * target.h (struct target_ops) <to_insn_history_from>: Add
11896 * target.c (target_insn_history_from): Add argument.
11897 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target.h (struct target_ops) <to_insn_history>: Add argument.
11903 * target.c (target_insn_history): Add argument.
11904 * record-btrace.c (record_btrace_insn_history): Add 'self'
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11909 * target.h (struct target_ops) <to_goto_record>: Add argument.
11910 * target.c (target_goto_record): Add argument.
11911 * record-full.c (record_full_goto): Add 'self' argument.
11912 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11916 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11917 * target.c (target_goto_record_end): Add argument.
11918 * record-full.c (record_full_goto_end): Add 'self' argument.
11919 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11921 2014-02-19 Tom Tromey <tromey@redhat.com>
11923 * target.h (struct target_ops) <to_goto_record_begin>: Add
11925 * target.c (target_goto_record_begin): Add argument.
11926 * record-full.c (record_full_goto_begin): Add 'self' argument.
11927 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11930 2014-02-19 Tom Tromey <tromey@redhat.com>
11932 * target.h (struct target_ops) <to_record_is_replaying>: Add
11934 * target.c (target_record_is_replaying): Add argument.
11935 * record-full.c (record_full_is_replaying): Add 'self' argument.
11936 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11938 (record_btrace_xfer_partial, record_btrace_store_registers)
11939 (record_btrace_prepare_to_store, record_btrace_resume)
11940 (record_btrace_wait, record_btrace_decr_pc_after_break)
11941 (record_btrace_find_new_threads, record_btrace_thread_alive):
11944 2014-02-19 Tom Tromey <tromey@redhat.com>
11946 * target.h (struct target_ops) <to_delete_record>: Add argument.
11947 * target.c (target_delete_record): Add argument.
11948 * record-full.c (record_full_delete): Add 'self' argument.
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11952 * target.h (struct target_ops) <to_save_record>: Add argument.
11953 * target.c (target_save_record): Add argument.
11954 * record-full.c (record_full_save): Add 'self' argument.
11955 (record_full_save): Add 'self' argument.
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11959 * target.h (struct target_ops) <to_info_record>: Add argument.
11960 * target.c (target_info_record): Add argument.
11961 * record.c (info_record_command): Add argument.
11962 * record-full.c (record_full_info): Add 'self' argument.
11963 * record-btrace.c (record_btrace_info): Add 'self' argument.
11965 2014-02-19 Tom Tromey <tromey@redhat.com>
11967 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11968 * target.c (target_stop_recording): Add argument.
11969 * record.c (record_stop): Add argument.
11970 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11973 2014-02-19 Tom Tromey <tromey@redhat.com>
11975 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11976 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11977 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11979 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11980 (_initialize_amd64_linux_nat): Use it.
11981 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11982 (_initialize_i386_linux_nat): Use it.
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11986 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11987 * target.c (target_teardown_btrace): Add argument.
11988 * remote.c (remote_teardown_btrace): Add 'self' argument.
11989 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11991 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11996 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11997 * target.c (target_disable_btrace): Add argument.
11998 * remote.c (remote_disable_btrace): Add 'self' argument.
11999 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12001 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12007 * target.c (target_enable_btrace): Add argument.
12008 * remote.c (remote_enable_btrace): Add 'self' argument.
12009 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12011 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12016 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12017 (target_can_use_agent): Add argument.
12018 * target.c (update_current_target): Update.
12019 * remote.c (remote_can_use_agent): Add 'self' argument.
12020 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12022 2014-02-19 Tom Tromey <tromey@redhat.com>
12024 * target.h (struct target_ops) <to_use_agent>: Add argument.
12025 (target_use_agent): Add argument.
12026 * target.c (update_current_target): Update.
12027 * remote.c (remote_use_agent): Add 'self' argument.
12028 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12032 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12033 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12034 (target_traceframe_info): Add argument.
12035 * target.c (update_current_target): Update.
12036 * remote.c (remote_traceframe_info): Add 'self' argument.
12037 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12039 2014-02-19 Tom Tromey <tromey@redhat.com>
12041 * target.h (target_static_tracepoint_markers_by_strid): Add
12043 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12045 * target.c (update_current_target): Update.
12046 * remote.c (struct target_ops)
12047 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12048 * linux-nat.c (struct target_ops)
12049 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12051 2014-02-19 Tom Tromey <tromey@redhat.com>
12053 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12055 (target_static_tracepoint_marker_at): Add argument.
12056 * target.c (update_current_target): Update.
12057 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12062 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12063 (target_set_permissions): Add argument.
12064 * target.c (update_current_target): Update.
12065 * remote.c (remote_set_permissions): Add 'self' argument.
12066 (remote_start_remote): Update.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12071 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12072 (target_get_tib_address): Add argument.
12073 * target.c (update_current_target): Update.
12074 * remote.c (remote_get_tib_address): Add 'self' argument.
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12078 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12079 (target_set_trace_notes): Add argument.
12080 * target.c (update_current_target): Update.
12081 * remote.c (remote_set_trace_notes): Add 'self' argument.
12083 2014-02-19 Tom Tromey <tromey@redhat.com>
12085 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12087 (target_set_trace_buffer_size): Add argument.
12088 * target.c (update_current_target): Update.
12089 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12091 2014-02-19 Tom Tromey <tromey@redhat.com>
12093 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12095 (target_set_circular_trace_buffer): Add argument.
12096 * target.c (update_current_target): Update.
12097 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12100 2014-02-19 Tom Tromey <tromey@redhat.com>
12102 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12104 (target_set_disconnected_tracing): Add argument.
12105 * target.c (update_current_target): Update.
12106 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12108 2014-02-19 Tom Tromey <tromey@redhat.com>
12110 * target.h (struct target_ops)
12111 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12112 (target_get_min_fast_tracepoint_insn_len): Add argument.
12113 * target.c (update_current_target): Update.
12114 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12117 2014-02-19 Tom Tromey <tromey@redhat.com>
12119 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12121 (target_get_raw_trace_data): Add argument.
12122 * target.c (update_current_target): Update.
12123 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12125 2014-02-19 Tom Tromey <tromey@redhat.com>
12127 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12129 (target_upload_trace_state_variables): Add argument.
12130 * target.c (update_current_target): Update.
12131 * remote.c (remote_upload_trace_state_variables): Add 'self'
12133 (remote_start_remote): Update.
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12137 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12139 (target_upload_tracepoints): Add argument.
12140 * target.c (update_current_target): Update.
12141 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12142 (remote_start_remote): Update.
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12147 (target_save_trace_data): Add argument.
12148 * target.c (update_current_target): Update.
12149 * remote.c (remote_save_trace_data): Add 'self' argument.
12151 2014-02-19 Tom Tromey <tromey@redhat.com>
12153 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12155 * target.h (struct target_ops)
12156 <to_get_trace_state_variable_value>: Add argument.
12157 (target_get_trace_state_variable_value): Add argument.
12158 * target.c (update_current_target): Update.
12159 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12161 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12165 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12166 * target.h (struct target_ops) <to_trace_find>: Add argument.
12167 (target_trace_find): Add argument.
12168 * target.c (update_current_target): Update.
12169 * remote.c (remote_trace_find): Add 'self' argument.
12170 * ctf.c (ctf_trace_find): Add 'self' argument.
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12174 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12175 (target_trace_stop): Add argument.
12176 * target.c (update_current_target): Update.
12177 * remote.c (remote_trace_stop): Add 'self' argument.
12179 2014-02-19 Tom Tromey <tromey@redhat.com>
12181 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12182 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12184 (target_get_tracepoint_status): Add argument.
12185 * target.c (update_current_target): Update.
12186 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12188 2014-02-19 Tom Tromey <tromey@redhat.com>
12190 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12191 * target.h (struct target_ops) <to_get_trace_status>: Add
12193 (target_get_trace_status): Add argument.
12194 * target.c (update_current_target): Update.
12195 * remote.c (remote_get_trace_status): Add 'self' argument.
12196 (remote_start_remote, remote_can_download_tracepoint): Update.
12197 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12201 * target.h (struct target_ops) <to_trace_start>: Add argument.
12202 (target_trace_start): Add argument.
12203 * target.c (update_current_target): Update.
12204 * remote.c (remote_trace_start): Add 'self' argument.
12206 2014-02-19 Tom Tromey <tromey@redhat.com>
12208 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12210 (target_trace_set_readonly_regions): Add argument.
12211 * target.c (update_current_target): Update.
12212 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12215 2014-02-19 Tom Tromey <tromey@redhat.com>
12217 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12219 (target_disable_tracepoint): Add argument.
12220 * target.c (update_current_target): Update.
12221 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12223 2014-02-19 Tom Tromey <tromey@redhat.com>
12225 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12227 (target_enable_tracepoint): Add argument.
12228 * target.c (update_current_target): Update.
12229 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12231 2014-02-19 Tom Tromey <tromey@redhat.com>
12233 * target.h (struct target_ops) <to_download_trace_state_variable>:
12235 (target_download_trace_state_variable): Add argument.
12236 * target.c (update_current_target): Update.
12237 * remote.c (remote_download_trace_state_variable): Add 'self'
12240 2014-02-19 Tom Tromey <tromey@redhat.com>
12242 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12244 (target_can_download_tracepoint): Add argument.
12245 * target.c (update_current_target): Update.
12246 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12250 * target.h (struct target_ops) <to_download_tracepoint>: Add
12252 (target_download_tracepoint): Add argument.
12253 * target.c (update_current_target): Update.
12254 * remote.c (remote_download_tracepoint): Add 'self' argument.
12256 2014-02-19 Tom Tromey <tromey@redhat.com>
12258 * target.h (struct target_ops) <to_trace_init>: Add argument.
12259 (target_trace_init): Add argument.
12260 * target.c (update_current_target): Update.
12261 * remote.c (remote_trace_init): Add 'self' argument.
12263 2014-02-19 Tom Tromey <tromey@redhat.com>
12265 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12266 * target.c (target_fileio_readlink): Add argument.
12267 * remote.c (remote_hostio_readlink): Add 'self' argument.
12268 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12272 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12273 * target.c (target_fileio_unlink): Add argument.
12274 * remote.c (remote_hostio_unlink): Add 'self' argument.
12275 (remote_file_delete): Update.
12276 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12278 2014-02-19 Tom Tromey <tromey@redhat.com>
12280 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12281 * target.c (target_fileio_close): Add argument.
12282 * remote.c (remote_hostio_close): Add 'self' argument.
12283 (remote_hostio_close_cleanup): Update.
12284 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12286 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12290 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12291 * target.c (target_fileio_pread): Add argument.
12292 * remote.c (remote_hostio_pread): Add 'self' argument.
12293 (remote_bfd_iovec_pread, remote_file_get): Update.
12294 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12296 2014-02-19 Tom Tromey <tromey@redhat.com>
12298 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12299 * target.c (target_fileio_pwrite): Add argument.
12300 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12301 (remote_file_put): Update.
12302 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12304 2014-02-19 Tom Tromey <tromey@redhat.com>
12306 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12307 * target.c (target_fileio_open): Add argument.
12308 * remote.c (remote_hostio_open): Add 'self' argument.
12309 (remote_bfd_iovec_open): Add 'self' argument.
12310 (remote_file_put): Add 'self' argument.
12311 (remote_file_get): Add 'self' argument.
12312 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12314 2014-02-19 Tom Tromey <tromey@redhat.com>
12316 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12318 (target_can_run_breakpoint_commands): Add argument.
12319 * target.c (update_current_target): Update.
12320 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12322 (remote_insert_breakpoint): Add 'self' argument.
12323 (remote_insert_hw_breakpoint): Add 'self' argument.
12324 (remote_can_run_breakpoint_commands): Add 'self' argument.
12326 2014-02-19 Tom Tromey <tromey@redhat.com>
12328 * target.h (struct target_ops)
12329 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12330 (target_supports_evaluation_of_breakpoint_conditions): Add
12332 * target.c (update_current_target): Update.
12333 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12335 (remote_insert_breakpoint): Add 'self' argument.
12336 (remote_insert_hw_breakpoint): Add 'self' argument.
12337 (remote_supports_cond_breakpoints): Add 'self' argument.
12339 2014-02-19 Tom Tromey <tromey@redhat.com>
12341 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12343 (target_supports_string_tracing): Add argument.
12344 * target.c (update_current_target): Update.
12345 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12347 2014-02-19 Tom Tromey <tromey@redhat.com>
12349 * target.h (struct target_ops)
12350 <to_supports_disable_randomization>: Add argument.
12351 * target.c (find_default_supports_disable_randomization): Add
12353 (target_supports_disable_randomization): Add argument.
12354 (find_default_supports_disable_randomization): Add 'self'
12356 * remote.c (extended_remote_supports_disable_randomization): Add
12358 (remote_supports_disable_randomization): Add 'self' argument.
12359 (extended_remote_create_inferior): Update.
12360 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12363 2014-02-19 Tom Tromey <tromey@redhat.com>
12365 * target.h (struct target_ops)
12366 <to_supports_enable_disable_tracepoint>: Add argument.
12367 (target_supports_enable_disable_tracepoint): Add argument.
12368 * target.c (update_current_target): Update.
12369 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12372 2014-02-19 Tom Tromey <tromey@redhat.com>
12374 * target.h (struct target_ops) <to_supports_multi_process>: Add
12376 (target_supports_multi_process): Add argument.
12377 * target.c (update_current_target): Update.
12378 * remote.c (remote_supports_multi_process): Add 'self' argument.
12379 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12381 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12384 2014-02-19 Tom Tromey <tromey@redhat.com>
12386 * target.h (struct target_ops) <to_execution_direction>: Add
12388 (target_execution_direction): Add argument.
12389 * target.c (default_execution_direction): Add 'self' argument.
12390 * record-full.c (record_full_execution_direction): Add 'self'
12393 2014-02-19 Tom Tromey <tromey@redhat.com>
12395 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12397 (target_can_execute_reverse): Add argument.
12398 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12399 * record-full.c (record_full_can_execute_reverse): Add 'self'
12401 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12404 2014-02-19 Tom Tromey <tromey@redhat.com>
12406 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12407 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12409 (target_get_ada_task_ptid): Add argument.
12410 * target.c (update_current_target): Update.
12411 (default_get_ada_task_ptid): Add 'self' argument.
12412 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12413 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12414 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12416 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12418 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12420 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12422 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12423 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12426 2014-02-19 Tom Tromey <tromey@redhat.com>
12428 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12429 (target_goto_bookmark): Add argument.
12430 * target.c (dummy_goto_bookmark): Add 'self' argument.
12431 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12433 2014-02-19 Tom Tromey <tromey@redhat.com>
12435 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12436 (target_get_bookmark): Add argument.
12437 * target.c (dummy_get_bookmark): Add 'self' argument.
12438 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12440 2014-02-19 Tom Tromey <tromey@redhat.com>
12442 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12444 (target_make_corefile_notes): Add argument.
12445 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12446 * procfs.c (procfs_make_note_section): Add 'self' argument.
12447 (procfs_make_note_section): Add 'self' argument.
12448 (procfs_make_note_section): Add 'self' argument.
12449 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12451 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12452 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12453 * exec.c (exec_make_note_section): Add 'self' argument.
12454 (exec_make_note_section): Add 'self' argument.
12456 2014-02-19 Tom Tromey <tromey@redhat.com>
12458 * target.h (struct target_ops) <to_find_memory_regions>: Add
12460 (target_find_memory_regions): Add argument.
12461 * target.c (dummy_find_memory_regions): Add 'self' argument.
12462 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12463 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12464 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12465 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12466 * exec. (exec_do_find_memory_regions): New global.
12467 (exec_set_find_memory_regions): Rewrite.
12468 (exec_find_memory_regions): New function.
12469 (init_exec_ops): Use exec_find_memory_regions.
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12473 * target.h (struct target_ops) <to_supports_non_stop>: Add
12475 * target.c (find_default_supports_non_stop): Add argument.
12476 (target_supports_non_stop): Add argument.
12477 (find_default_supports_non_stop): Add 'self' argument.
12478 * remote.c (remote_supports_non_stop): Add 'self' argument.
12479 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12481 2014-02-19 Tom Tromey <tromey@redhat.com>
12483 * target.h (struct target_ops) <to_log_command>: Add argument.
12484 (target_log_command): Add argument.
12485 * serial.h (serial_log_command): Add 'self' argument.
12486 * serial.c (serial_log_command): Add 'self' argument.
12488 2014-02-19 Tom Tromey <tromey@redhat.com>
12490 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12491 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12493 (target_pid_to_exec_file): Add argument.
12494 * target.c (debug_to_pid_to_exec_file): Add argument.
12495 (update_current_target): Update.
12496 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12497 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12498 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12499 (linux_handle_extended_wait): Update.
12500 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12501 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12502 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12503 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12505 2014-02-19 Tom Tromey <tromey@redhat.com>
12507 * target.h (struct target_ops) <to_rcmd>: Add argument.
12508 (target_rcmd): Add argument.
12509 * target.c (debug_to_rcmd): Add argument.
12510 (update_current_target, do_monitor_command): Update.
12511 * remote.c (remote_rcmd): Add 'self' argument.
12512 * monitor.c (monitor_rcmd): Add 'self' argument.
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12516 * windows-nat.c (windows_stop): Add 'self' argument.
12517 * target.h (struct target_ops) <to_stop>: Add argument.
12518 * target.c (target_stop): Add argument.
12519 (debug_to_stop): Add argument.
12520 (update_current_target): Update.
12521 * remote.c (remote_stop): Add 'self' argument.
12522 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12523 (gdbsim_cntrl_c): Update.
12524 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12525 * procfs.c (procfs_stop): Add 'self' argument.
12526 * nto-procfs.c (procfs_stop): Add 'self' argument.
12527 * monitor.c (monitor_stop): Add 'self' argument.
12528 (monitor_open): Update.
12529 * linux-nat.c (linux_nat_stop): Add argument.
12530 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12531 * gnu-nat.c (gnu_stop): Add 'self' argument.
12532 * darwin-nat.c (darwin_stop): Add 'self' argument.
12534 2014-02-19 Tom Tromey <tromey@redhat.com>
12536 * target.h (struct target_ops) <to_thread_name>: Add argument.
12537 * target.c (target_thread_name): Add argument.
12538 (update_current_target): Update.
12539 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12541 2014-02-19 Tom Tromey <tromey@redhat.com>
12543 * target.h (struct target_ops) <to_extra_thread_info>: Add
12545 (target_extra_thread_info): Add argument.
12546 * target.c (update_current_target): Update.
12547 * remote.c (remote_threads_extra_info): Add 'self' argument.
12548 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12550 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12551 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12552 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12554 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12556 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12558 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12561 2014-02-19 Tom Tromey <tromey@redhat.com>
12563 * target.h (struct target_ops) <to_program_signals>: Add argument.
12564 * target.c (target_program_signals): Add argument.
12565 * remote.c (remote_program_signals): Add 'self' argument.
12567 2014-02-19 Tom Tromey <tromey@redhat.com>
12569 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12570 * target.c (target_pass_signals): Add argument.
12571 * remote.c (remote_pass_signals): Add 'self' argument.
12572 (remote_start_remote): Update.
12573 * procfs.c (procfs_pass_signals): Add 'self' argument.
12574 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12575 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12576 (linux_nat_create_inferior, linux_nat_attach): Update.
12578 2014-02-19 Tom Tromey <tromey@redhat.com>
12580 * windows-nat.c (windows_can_run): Add 'self' argument.
12581 * target.h (struct target_ops) <to_can_run>: Add argument.
12582 (target_can_run): Add argument.
12583 * target.c (debug_to_can_run): Add argument.
12584 (update_current_target): Update.
12585 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12586 * inf-child.c (inf_child_can_run): Add 'self' argument.
12587 * go32-nat.c (go32_can_run): Add 'self' argument.
12589 2014-02-19 Tom Tromey <tromey@redhat.com>
12591 * target.h (struct target_ops) <to_has_exited>: Add argument.
12592 (target_has_exited): Add argument.
12593 * target.c (debug_to_has_exited): Add argument.
12594 (update_current_target): Update.
12596 2014-02-19 Tom Tromey <tromey@redhat.com>
12598 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12600 (target_set_syscall_catchpoint): Add argument.
12601 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12603 * target.c (update_current_target): Update.
12605 2014-02-19 Tom Tromey <tromey@redhat.com>
12607 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12609 (target_remove_exec_catchpoint): Add argument.
12610 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12611 (update_current_target): Update.
12612 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12617 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12619 (target_insert_exec_catchpoint): Add argument.
12620 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12621 (update_current_target): Update.
12622 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12625 2014-02-19 Tom Tromey <tromey@redhat.com>
12627 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12629 (target_remove_vfork_catchpoint): Add argument.
12630 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12631 (update_current_target): Update.
12632 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12635 2014-02-19 Tom Tromey <tromey@redhat.com>
12637 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12639 (target_insert_vfork_catchpoint): Add argument.
12640 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12641 (update_current_target): Update.
12642 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12645 2014-02-19 Tom Tromey <tromey@redhat.com>
12647 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12649 (target_remove_fork_catchpoint): Add argument.
12650 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12651 (update_current_target): Update.
12652 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12655 2014-02-19 Tom Tromey <tromey@redhat.com>
12657 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12659 (target_insert_fork_catchpoint): Add argument.
12660 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12661 (update_current_target): Update.
12662 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12665 2014-02-19 Tom Tromey <tromey@redhat.com>
12667 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12669 (target_post_startup_inferior): Add argument.
12670 * target.c (debug_to_post_startup_inferior): Add argument.
12671 (update_current_target): Update.
12672 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12674 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12676 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12678 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12680 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12682 (super_post_startup_inferior): Likewise.
12683 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12685 (super_post_startup_inferior): Likewise.
12686 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12687 Add 'self' argument.
12688 (super_post_startup_inferior): Likewise.
12690 2014-02-19 Tom Tromey <tromey@redhat.com>
12692 * target.h (struct target_ops) <to_load>: Add argument.
12693 * target.c (target_load): Add argument.
12694 (debug_to_load): Add argument.
12695 (update_current_target): Update.
12696 * remote.c (remote_load): Add 'self' argument.
12697 * remote-sim.c (gdbsim_load): Add 'self' argument.
12698 * remote-mips.c (mips_load): Add 'self' argument.
12699 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12700 * monitor.c (monitor_load): Add 'self' argument.
12701 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12703 2014-02-19 Tom Tromey <tromey@redhat.com>
12705 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12706 (target_terminal_info): Add argument.
12707 * target.c (debug_to_terminal_info): Add argument.
12708 (default_terminal_info): Likewise.
12709 * inflow.c (child_terminal_info): Add 'self' argument.
12710 * inferior.h (child_terminal_info): Add 'self' argument.
12711 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12713 2014-02-19 Tom Tromey <tromey@redhat.com>
12715 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12717 (target_terminal_save_ours): Add argument.
12718 * target.c (debug_to_terminal_save_ours): Add argument.
12719 (update_current_target): Update.
12720 * inflow.c (terminal_save_ours): Add 'self' argument.
12721 * inferior.h (terminal_save_ours): Add 'self' argument.
12723 2014-02-19 Tom Tromey <tromey@redhat.com>
12725 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12726 (target_terminal_ours): Add argument.
12727 * target.c (debug_to_terminal_ours): Add argument.
12728 (update_current_target): Update.
12729 * remote.c (remote_terminal_ours): Add 'self' argument.
12730 (remote_close): Update.
12731 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12732 * inflow.c (terminal_ours): Add 'self' argument.
12733 * inferior.h (terminal_ours): Add 'self' argument.
12734 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12736 2014-02-19 Pedro Alves <palves@redhat.com>
12737 Tom Tromey <tromey@redhat.com>
12739 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12741 (target_terminal_ours_for_output): Add argument.
12742 * target.c (debug_to_terminal_ours_for_output): Add argument.
12743 (update_current_target): Update.
12744 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12745 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12746 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12748 2014-02-19 Tom Tromey <tromey@redhat.com>
12750 * target.h (struct target_ops) <to_terminal_inferior>: Add
12752 * target.c (target_terminal_inferior): Add argument.
12753 (update_current_target): Update.
12754 * remote.c (remote_terminal_inferior): Add 'self' argument.
12755 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12756 * inflow.c (terminal_inferior): Add 'self' argument.
12757 * inferior.h (terminal_inferior): Add 'self' argument.
12758 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12759 (go32_terminal_inferior): Add 'self' argument.
12761 2014-02-19 Tom Tromey <tromey@redhat.com>
12763 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12764 (target_terminal_init): Add argument.
12765 * target.c (debug_to_terminal_init): Add argument.
12766 (update_current_target): Update.
12767 * inflow.c (terminal_init_inferior): Add 'self' argument.
12768 * inferior.h (terminal_init_inferior): Add 'self' argument.
12769 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12770 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12772 2014-02-19 Tom Tromey <tromey@redhat.com>
12774 * target.h (struct target_ops)
12775 <to_can_accel_watchpoint_condition>: Add argument.
12776 (target_can_accel_watchpoint_condition): Add argument.
12777 * target.c (debug_to_can_accel_watchpoint_condition): Add
12779 (update_current_target): Update.
12780 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12783 2014-02-19 Tom Tromey <tromey@redhat.com>
12785 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12787 (target_region_ok_for_hw_watchpoint): Add argument.
12788 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12789 (default_region_ok_for_hw_watchpoint): Add argument.
12790 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12791 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12793 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12795 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12797 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12799 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12801 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12803 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12804 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12806 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12807 Add 'self' argument.
12809 2014-02-19 Tom Tromey <tromey@redhat.com>
12811 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12813 (target_insert_watchpoint): Add argument.
12814 * target.c (debug_to_insert_watchpoint): Add argument.
12815 (update_current_target): Update.
12816 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12817 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12818 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12819 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12820 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12821 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12823 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12824 (procfs_insert_hw_watchpoint): Add 'self' argument.
12825 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12827 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12829 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12831 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12832 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12834 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12837 2014-02-19 Tom Tromey <tromey@redhat.com>
12839 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12841 (target_remove_watchpoint): Add argument.
12842 * target.c (debug_to_remove_watchpoint): Add argument.
12843 (update_current_target): Update.
12844 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12845 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12846 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12847 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12848 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12849 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12851 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12852 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12854 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12856 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12858 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12859 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12861 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12864 2014-02-19 Tom Tromey <tromey@redhat.com>
12866 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12868 (target_remove_hw_breakpoint): Add argument.
12869 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12870 (update_current_target): Update.
12871 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12872 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12874 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12875 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12877 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12880 2014-02-19 Tom Tromey <tromey@redhat.com>
12882 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12884 (target_insert_hw_breakpoint): Add argument.
12885 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12886 (update_current_target): Update.
12887 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12888 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12890 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12891 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12892 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12894 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12897 2014-02-19 Tom Tromey <tromey@redhat.com>
12899 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12901 (target_can_use_hardware_watchpoint): Add argument.
12902 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12903 (update_current_target): Update.
12904 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12906 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12908 * remote.c (remote_check_watch_resources): Add 'self' argument.
12909 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12910 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12912 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12913 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12915 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12917 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12919 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12921 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12923 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12925 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12926 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12928 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12931 2014-02-19 Tom Tromey <tromey@redhat.com>
12933 * target.h (struct target_ops) <to_post_attach>: Add argument.
12934 (target_post_attach): Add argument.
12935 * target.c (debug_to_post_attach): Add argument.
12936 (update_current_target): Update.
12937 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12938 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12939 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12940 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12941 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12943 2014-02-19 Tom Tromey <tromey@redhat.com>
12945 * windows-nat.c (windows_close): Add 'self' argument.
12946 * tracepoint.c (tfile_close): Add 'self' argument.
12947 * target.h (struct target_ops) <to_close>: Add argument.
12948 * target.c (target_close): Add argument.
12949 (update_current_target): Update.
12950 * remote.c (remote_close): Add 'self' argument.
12951 * remote-sim.c (gdbsim_close): Add 'self' argument.
12952 * remote-mips.c (mips_close): Add 'self' argument.
12953 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12954 * record-full.c (record_full_close): Add 'self' argument.
12955 * record-btrace.c (record_btrace_close): Add 'self' argument.
12956 * monitor.h (monitor_close): Add 'self' argument.
12957 * monitor.c (monitor_close): Add 'self' argument.
12958 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12959 * linux-nat.c (linux_nat_close): Add argument.
12960 * go32-nat.c (go32_close): Add 'self' argument.
12961 * exec.c (exec_close_1): Add 'self' argument.
12962 * ctf.c (ctf_close): Add 'self' argument.
12963 * corelow.c (core_close): Add 'self' argument.
12964 (core_close_cleanup): Update.
12965 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12966 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12968 2014-02-19 Tom Tromey <tromey@redhat.com>
12970 * remote.c (remote_load): New function.
12971 (init_remote_ops): Use it.
12973 2014-02-19 Tom Tromey <tromey@redhat.com>
12975 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12977 * common/linux-btrace.h (linux_supports_btrace): Update.
12978 * remote.c (remote_supports_btrace): Add "self" argument.
12979 * target-delegates.c: Rebuild.
12980 * target.c (target_supports_btrace): Remove.
12981 * target.h (struct target_ops) <to_supports_btrace>: Add
12982 target_ops argument.
12983 (target_supports_btrace): New define.
12985 2014-02-19 Tom Tromey <tromey@redhat.com>
12987 * record-full.c (record_full_beneath_to_resume_ops)
12988 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12989 (record_full_beneath_to_wait)
12990 (record_full_beneath_to_store_registers_ops)
12991 (record_full_beneath_to_store_registers)
12992 (record_full_beneath_to_xfer_partial_ops)
12993 (record_full_beneath_to_xfer_partial)
12994 (record_full_beneath_to_insert_breakpoint_ops)
12995 (record_full_beneath_to_insert_breakpoint)
12996 (record_full_beneath_to_remove_breakpoint_ops)
12997 (record_full_beneath_to_remove_breakpoint)
12998 (record_full_beneath_to_stopped_by_watchpoint)
12999 (record_full_beneath_to_stopped_data_address)
13000 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13001 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13002 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13003 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13004 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13005 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13006 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13007 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13008 (record_full_resume, record_full_wait_1)
13009 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13010 (record_full_store_registers, record_full_xfer_partial)
13011 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13012 (record_full_async, record_full_core_xfer_partial): Use target
13014 * target-delegates.c: Rebuild.
13015 * target.c (current_xfer_partial): Remove.
13016 (update_current_target): Do not INHERIT or de_fault
13017 to_insert_breakpoint, to_remove_breakpoint,
13018 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13019 to_is_async_p, to_async. Do not set to_xfer_partial field.
13020 (default_xfer_partial): Simplify.
13021 (current_xfer_partial): Remove.
13022 (target_wait, target_resume): Simplify.
13023 (find_default_can_async_p, find_default_is_async_p): Update.
13024 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13025 to_xfer_partial, to_stopped_by_watchpoint,
13026 to_stopped_data_address.
13027 (target_store_registers): Simplify.
13028 (forward_target_remove_breakpoint)
13029 (forward_target_insert_breakpoint): Remove.
13030 (target_remove_breakpoint, target_insert_breakpoint)
13031 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13032 * target.h (struct target_ops) <to_resume, to_wait,
13033 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13034 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13035 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13037 (forward_target_remove_breakpoint)
13038 (forward_target_insert_breakpoint): Remove.
13039 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13041 (record_btrace_insert_breakpoint): Delegate directly.
13043 2014-02-19 Tom Tromey <tromey@redhat.com>
13046 * target-delegates.c: New file.
13047 * target.c: Include target-delegates.c.
13048 (init_dummy_target): Call install_dummy_methods.
13049 (complete_target_initialization): Call install_delegators.
13050 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13051 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13052 * make-target-delegates: New file.
13054 2014-02-19 Tom Tromey <tromey@redhat.com>
13056 * record.c (find_record_target): Use find_target_at.
13057 * target.c (find_target_at): New function.
13058 * target.h (find_target_at): Declare.
13060 2014-02-19 Tom Tromey <tromey@redhat.com>
13062 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13063 Add 'ops' argument.
13064 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13066 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13067 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13069 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13071 * linux-nat.c (save_sigtrap): Update.
13072 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13073 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13074 (linux_nat_close): Update.
13075 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13077 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13079 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13080 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13081 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13082 (tmp_to_async): Add 'ops' argument.
13083 (record_full_stopped_by_watchpoint, record_full_async)
13084 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13086 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13087 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13088 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13089 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13090 (remote_is_async_p, remote_async): Add 'ops' argument.
13091 (remote_stopped_data_address): Update.
13092 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13093 * target.c (update_current_target)
13094 (find_default_can_async_p, find_default_is_async_p): Update.
13095 (init_dummy_target): Update.
13096 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13097 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13098 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13099 (target_can_async_p, target_is_async_p, target_async)
13100 (target_stopped_by_watchpoint): Update.
13102 2014-02-19 Yao Qi <yao@codesourcery.com>
13105 * gdbarch.sh: Remove startup_gdbarch.
13106 * gdbarch.c: Regenerated.
13107 * gdbarch.h: Likewise.
13109 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13111 * rl78-tdep.c (rl78_g10_register_name): New function.
13112 (rl78_return_value): Add g10 support.
13113 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13116 2014-02-17 Doug Evans <xdje42@gmail.com>
13118 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13119 (SUBDIR_GUILE_SRCS): Ditto.
13120 (scm-gsmob.o): Ditto.
13122 2014-02-17 Yao Qi <yao@codesourcery.com>
13124 * gnu-nat.c (ILL_RPC): Declare defined function.
13126 2014-02-17 Yao Qi <yao@codesourcery.com>
13128 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13129 mach_msg_type_number_t.
13130 (gnu_write_inferior): Likewise.
13132 2014-02-17 Yao Qi <yao@codesourcery.com>
13134 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13136 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13137 (inf_validate_procs, inf_signal): Likewise.
13138 (S_exception_raise_request): Likewise.
13139 (do_mach_notify_dead_name): Likewise.
13140 (steal_exc_port): Likewise.
13141 (gnu_read_inferior): Change 'copy_count''s type to
13142 mach_msg_type_number_t.
13143 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13146 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13148 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13149 flag. Adjust all users; in particular...
13150 (gnu_wait): ..., don't decrement its value in here...
13151 (gnu_create_inferior): ..., and instead set the flag in here,
13152 around the startup_inferior call, and call that one with
13153 START_INFERIOR_TRAPS_EXPECTED.
13155 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13156 (ILL_RPC): ... new macro.
13157 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13158 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13159 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13160 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13161 functions with ILL_RPC macro.
13162 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13163 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13164 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13165 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13166 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13167 (S_proc_getlogin_reply, S_proc_getsid_reply)
13168 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13169 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13170 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13171 (S_proc_getnports_reply, S_proc_is_important_reply)
13172 (S_proc_get_code_reply): New stub functions, generated with
13175 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13176 collected the type check structures.
13178 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13180 2014-02-14 Doug Evans <dje@google.com>
13182 * target.c (target_write_partial): Fix result type.
13184 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13186 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13187 the proper offsets to access fpregset_t.
13189 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13191 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13192 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13193 * h8300-tdep.c (setmachinelist): Remove global.
13194 * hppa-tdep.c (hppa_sigtramp): Remove global.
13195 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13196 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13197 * ravenscar-thread.c (update_target_observer): Remove global.
13198 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13200 2014-02-12 Tom Tromey <tromey@redhat.com>
13202 * common/rsp-low.c: Update comments.
13203 * common/rsp-low.h: Update comments.
13205 2014-02-12 Tom Tromey <tromey@redhat.com>
13207 * common/rsp-low.c (convert_ascii_to_int): Remove.
13208 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13210 2014-02-12 Tom Tromey <tromey@redhat.com>
13212 * common/rsp-low.h (unhexify): Don't declare.
13213 * common/rsp-low.c (unhexify): Remove.
13215 2014-02-12 Tom Tromey <tromey@redhat.com>
13217 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13218 * common/rsp-low.c (convert_int_to_ascii): Remove.
13220 2014-02-12 Tom Tromey <tromey@redhat.com>
13222 * common/rsp-low.h (hexify): Don't declare.
13223 * common/rsp-low.c (hexify): Remove.
13225 2014-02-12 Tom Tromey <tromey@redhat.com>
13227 * common/rsp-low.c (hexify): Never take strlen of argument.
13229 2014-02-12 Tom Tromey <tromey@redhat.com>
13231 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13232 * remote.c (extended_remote_run, remote_rcmd)
13233 (remote_download_trace_state_variable, remote_save_trace_data)
13234 (remote_set_trace_notes): Update.
13235 * tracepoint.c (encode_source_string, tfile_write_status)
13236 (tfile_write_uploaded_tsv): Update.
13238 2014-02-12 Tom Tromey <tromey@redhat.com>
13240 * tracepoint.c: Include rsp-low.h.
13241 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13242 * remote.c: Include rsp-low.h.
13243 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13244 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13245 (remote_unescape_input): Move to common/rsp-low.c.
13246 * common/rsp-low.h: New file.
13247 * common/rsp-low.c: New file.
13248 * Makefile.in (SFILES): Add common/rsp-low.c.
13249 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13250 (COMMON_OBS): Add rsp-low.o.
13251 (rsp-low.o): New target.
13253 2014-02-12 Tom Tromey <tromey@redhat.com>
13255 * utils.h: Include print-utils.h.
13256 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13257 (int_string, core_addr_to_string, core_addr_to_string_nz)
13258 (hex_string, hex_string_custom): Don't declare.
13259 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13260 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13261 (hex_string_custom, int_string, core_addr_to_string)
13262 (core_addr_to_string_nz, host_address_to_string): Move to
13263 common/print-utils.c.
13264 * common/print-utils.h: New file.
13265 * common/print-utils.c: New file
13266 * Makefile.in (SFILES): Add common/print-utils.c.
13267 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13268 (COMMON_OBS): Add print-utils.o.
13269 (print-utils.o): New target.
13271 2014-02-12 Tom Tromey <tromey@redhat.com>
13273 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13275 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13277 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13279 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13281 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13282 if a PT_IO ptrace request returns sucessfully but indicates that 0
13283 bytes were transferred.
13285 2014-02-12 Pedro Alves <palves@redhat.com>
13286 Kevin Buettner <kevinb@redhat.com>
13288 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13289 TYPE_INSTANCE_FLAG_CODE_SPACE.
13291 2014-02-12 Pedro Alves <palves@redhat.com>
13293 * h8300-tdep.c (pseudo_from_raw_register)
13294 (raw_from_pseudo_register): New functions.
13295 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13298 2014-02-12 Pedro Alves <palves@redhat.com>
13300 * h8300-tdep.c (h8300_register_sim_regno): New function.
13301 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13302 gdbarch_register_sim_regno hook.
13304 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13306 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13308 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13310 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13312 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13314 * obsd-tdep.h (obsd_init_abi): New prototype.
13315 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13316 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13317 (obsd_init_abi): New functions.
13318 * i386obsd-tdep.c: Include "obsd-tdep.h".
13319 (i386obsd_init_abi): Call obsd_init_abi.
13320 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13321 (amd64obsd_init_abi): Call obsd_init_abi.
13322 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13323 obsd-tdep.c to gdb_target_obs.
13325 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13327 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13328 double float arguments to 16-byte in the argument slots.
13330 2014-02-11 Doug Evans <xdje42@gmail.com>
13332 * configure.ac: Don't crash if pkg-config is not found and guile
13333 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13335 * configure: Regenerate.
13337 2014-02-11 Yao Qi <yao@codesourcery.com>
13339 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13340 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13341 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13342 * gnu-nat.c (gnu_xfer_memory): Likewise.
13343 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13344 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13345 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13346 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13348 2014-02-11 Yao Qi <yao@codesourcery.com>
13350 * target.h (enum target_xfer_error): Rename to ...
13351 (enum target_xfer_status): ... it. New. All users updated.
13352 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13354 (TARGET_XFER_STATUS_ERROR_P): New macro.
13355 (target_xfer_error_to_string): Remove declaration.
13356 (target_xfer_status_to_string): Declare.
13357 (target_xfer_partial_ftype): Adjust it.
13358 (struct target_ops) <to_xfer_partial>: Return
13359 target_xfer_status. Add argument xfered_len. Update
13361 * target.c (target_xfer_error_to_string): Rename to ...
13362 (target_xfer_status_to_string): ... it. New. All callers
13364 (target_read_live_memory): Likewise. Call target_xfer_partial
13365 instead of target_read.
13366 (memory_xfer_live_readonly_partial): Return
13367 target_xfer_status. Add argument xfered_len.
13368 (raw_memory_xfer_partial): Likewise.
13369 (memory_xfer_partial_1): Likewise.
13370 (memory_xfer_partial): Likewise.
13371 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13372 properly. Update debug message.
13373 (default_xfer_partial, current_xfer_partial): Likewise.
13374 (target_write_partial): Likewise.
13375 (target_read_partial): Likewise. All callers updated.
13376 (read_whatever_is_readable): Likewise.
13377 (target_write_with_progress): Likewise.
13378 (target_read_alloc_1): Likewise.
13380 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13381 * auxv.c (procfs_xfer_auxv): Likewise.
13382 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13383 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13384 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13385 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13386 * corefile.c (read_memory): Adjust.
13387 * corelow.c (core_xfer_partial): Likewise.
13388 * ctf.c (ctf_xfer_partial): Likewise.
13389 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13391 (darwin_xfer_partial): Likewise.
13392 * exec.c (section_table_xfer_memory_partial): Likewise. All
13394 (exec_xfer_partial): Likewise.
13395 * exec.h (section_table_xfer_memory_partial): Update
13397 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13399 (gnu_xfer_partial): Likewise.
13400 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13401 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13402 (ia64_hpux_xfer_solib_got): Likewise.
13403 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13404 type of 'partial_len' to ULONGEST.
13405 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13406 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13407 (linux_nat_xfer_partial): Likewise.
13408 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13409 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13410 * monitor.c (monitor_xfer_memory): Likewise.
13411 (monitor_xfer_partial): Likewise.
13412 * procfs.c (procfs_xfer_partial): Likewise.
13413 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13414 * record-full.c (record_full_xfer_partial): Likewise.
13415 (record_full_core_xfer_partial): Likewise.
13416 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13417 (gdbsim_xfer_partial): Likewise.
13418 * remote.c (remote_write_bytes_aux): Likewise. All callers
13420 (remote_write_bytes, remote_read_bytes): Likewise. All
13422 (remote_flash_erase): Likewise. All callers updated.
13423 (remote_write_qxfer): Likewise. All callers updated.
13424 (remote_read_qxfer): Likewise. All callers updated.
13425 (remote_xfer_partial): Likewise.
13426 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13427 (rs6000_xfer_shared_libraries): Likewise.
13428 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13429 (sol_thread_xfer_partial): Likewise.
13430 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13431 (sparc_xfer_partial): Likewise.
13432 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13434 (spu_xfer_partial): Likewise.
13435 * spu-multiarch.c (spu_xfer_partial): Likewise.
13436 * tracepoint.c (tfile_xfer_partial): Likewise.
13437 * windows-nat.c (windows_xfer_memory): Likewise.
13438 (windows_xfer_shared_libraries): Likewise.
13439 (windows_xfer_partial): Likewise.
13440 * valprint.c: Replace 'target_xfer_error' with
13441 'target_xfer_status' in comments.
13443 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13445 Checked in by Joel Brobecker <brobecker@adacore.com>.
13446 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13448 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13450 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13451 function parameters.
13453 2014-02-10 Will Newton <will.newton@linaro.org>
13455 * elfread.c (elf_rel_plt_read): Look for a .got section if
13456 looking up .got.plt fails.
13457 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13458 on address passed to elf_gnu_ifunc_record_cache.
13459 (elf_gnu_ifunc_resolve_addr): Likewise.
13460 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13462 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13464 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13465 (X_RETTURN): New macro.
13466 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13468 * sparc64-tdep.c (sparc64_init_abi): Hook
13469 sparc_in_function_epilogue_p.
13471 2014-02-10 Gary Benson <gbenson@redhat.com>
13473 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13474 Rename name_matcher to symbol_matcher.
13476 2014-02-10 Gary Benson <gbenson@redhat.com>
13478 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13479 Use expand_symtabs_file_matcher_ftype and
13480 expand_symtabs_symbol_matcher_ftype.
13482 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13484 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13485 (struct ada_symbol_cache): New.
13486 (ada_free_symbol_cache): Forward declare.
13487 (struct ada_pspace_data): New.
13488 (ada_pspace_data_handle): New static global.
13489 (get_ada_pspace_data, ada_pspace_data_cleanup)
13490 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13491 (cache_space, cache): Delete, now folded inside struct
13493 (ada_get_symbol_cache): New function.
13494 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13496 (_initialize_ada_language): Remove initialization of cache_space.
13497 Move call to observer_attach_inferior_exit up, grouping it
13498 with the other observer registrations inside this function.
13499 Rename command to be more general. Add call to
13500 register_program_space_data_with_cleanup.
13502 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13504 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13505 ada_new_objfile_observer.
13506 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13507 (_initialize_tasks): Update uses of ada_new_objfile_observer
13508 and ada_tasks_normal_stop_observer.
13510 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13512 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13513 returned by the 'Length attribute to integer.
13515 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13517 * ada-lang.c (_initialize_ada_language): Initialize
13518 cache_space obstack.
13520 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13522 * ada-lang.c (HASH_SIZE): New macro.
13523 (struct cache_entry): New type.
13524 (cache_space, cache): New static globals.
13525 (ada_clear_symbol_cache, find_entry): New functions.
13526 (lookup_cached_symbol, cache_symbol): Implement.
13527 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13528 (_initialize_ada_language): Attach ada_new_objfile_observer
13529 and ada_free_objfile_observer.
13531 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13533 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13534 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13535 struct block * parameter.
13536 (ada_lookup_symbol_list_worker): Constify local variable "block".
13537 Remove cast which is no longer necessary.
13539 2014-02-10 Doug Evans <xdje42@gmail.com>
13541 Add Guile as an extension language.
13542 * NEWS: Mention Guile scripting.
13543 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13544 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13545 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13546 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13547 (CLIBS): Add GUILE_LIBS.
13548 (install-guile): New rule.
13549 (guile.o): New rule.
13550 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13551 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13552 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13553 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13554 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13555 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13556 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13557 * configure.ac: New option --with-guile.
13558 * configure: Regenerate.
13559 * config.in: Regenerate.
13560 * auto-load.c: Remove #include "python/python.h". Add #include
13561 "gdb/section-scripts.h".
13562 (source_section_scripts): Handle Guile scripts.
13563 (_initialize_auto_load): Add name of Guile objfile script to
13564 scripts-directory help text.
13565 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13566 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13567 (struct breakpoint): New member scm_bp_object.
13568 * defs.h (enum command_control_type): New value guile_control.
13569 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13571 (show_user): Update comment.
13572 (_initialize_cli_cmds): Update help text for "show user". Update help
13573 text for max-user-call-depth.
13574 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13576 (multi_line_command_p): Add guile_control.
13577 (print_command_lines): Handle guile_control.
13578 (execute_control_command, recurse_read_control_structure): Ditto.
13579 (process_next_line): Recognize "guile" commands.
13580 * disasm.c (gdb_disassemble_info): Make non-static.
13581 * disasm.h: #include "dis-asm.h".
13582 (struct gdbarch): Add forward decl.
13583 (gdb_disassemble_info): Declare.
13584 * extension.c: #include "guile/guile.h".
13585 (extension_languages): Add guile.
13586 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13587 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13588 * gdbtypes.c (get_unsigned_type_max): New function.
13589 (get_signed_type_minmax): New function.
13590 * gdbtypes.h (get_unsigned_type_max): Declare.
13591 (get_signed_type_minmax): Declare.
13592 * guile/README: New file.
13593 * guile/guile-internal.h: New file.
13594 * guile/guile.c: New file.
13595 * guile/guile.h: New file.
13596 * guile/scm-arch.c: New file.
13597 * guile/scm-auto-load.c: New file.
13598 * guile/scm-block.c: New file.
13599 * guile/scm-breakpoint.c: New file.
13600 * guile/scm-disasm.c: New file.
13601 * guile/scm-exception.c: New file.
13602 * guile/scm-frame.c: New file.
13603 * guile/scm-gsmob.c: New file.
13604 * guile/scm-iterator.c: New file.
13605 * guile/scm-lazy-string.c: New file.
13606 * guile/scm-math.c: New file.
13607 * guile/scm-objfile.c: New file.
13608 * guile/scm-ports.c: New file.
13609 * guile/scm-pretty-print.c: New file.
13610 * guile/scm-safe-call.c: New file.
13611 * guile/scm-string.c: New file.
13612 * guile/scm-symbol.c: New file.
13613 * guile/scm-symtab.c: New file.
13614 * guile/scm-type.c: New file.
13615 * guile/scm-utils.c: New file.
13616 * guile/scm-value.c: New file.
13617 * guile/lib/gdb.scm: New file.
13618 * guile/lib/gdb/boot.scm: New file.
13619 * guile/lib/gdb/experimental.scm: New file.
13620 * guile/lib/gdb/init.scm: New file.
13621 * guile/lib/gdb/iterator.scm: New file.
13622 * guile/lib/gdb/printing.scm: New file.
13623 * guile/lib/gdb/types.scm: New file.
13624 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13625 (VPATH): Add $(GUILE_SRCDIR).
13626 (GUILE_DIR): New variable.
13627 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13628 (all): Add stamp-guile dependency.
13629 (stamp-guile): New rule.
13630 (clean-guile, install-guile, uninstall-guile): New rules.
13631 (install-only): Add install-guile dependency.
13632 (uninstall): Add uninstall-guile dependency.
13633 (clean): Add clean-guile dependency.
13635 2014-02-09 Doug Evans <xdje42@gmail.com>
13637 Revert this patch (which I approved, mea culpa).
13639 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13641 * Makefile.in (all-lib): Remove.
13642 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13644 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13646 Fix Python stack corruption.
13647 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13650 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13652 * Makefile.in (all-lib): Remove.
13653 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13655 2014-02-07 Doug Evans <dje@google.com>
13657 * extension-priv.h (extension_language_script_ops): Add comment.
13658 (extension_language_ops): Add comment.
13659 (active_ext_lang_state): Fix typo in comment.
13661 2014-02-07 Pedro Alves <palves@redhat.com>
13663 PR breakpoints/16292
13664 * infrun.c (handle_signal_stop) <signal arrives while stepping
13665 over a breakpoint>: Switch back to the stepping thread.
13667 2014-02-07 Yao Qi <yao@codesourcery.com>
13669 * target.c (target_xfer_partial): Return zero if LEN is zero.
13671 2014-02-07 Yao Qi <yao@codesourcery.com>
13673 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13674 (ld_so_xfer_auxv): Likewise.
13675 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13676 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13677 * corelow.c (core_xfer_partial): Likewise.
13678 * ctf.c (ctf_xfer_partial): Likewise.
13679 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13680 (darwin_xfer_partial): Likewise.
13681 * exec.c (exec_xfer_partial): Likewise.
13682 * gnu-nat.c (gnu_xfer_partial): Likewise.
13683 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13684 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13685 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13686 * linux-nat.c (linux_xfer_siginfo): Likewise.
13687 (linux_proc_xfer_spu): Likewise.
13688 * procfs.c (procfs_xfer_partial): Likewise.
13689 * record-full.c (record_full_xfer_partial): Likewise.
13690 (record_full_core_xfer_partial): Likewise.
13691 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13692 * remote.c (remote_write_qxfer): Likewise.
13693 (remote_write_qxfer, remote_read_qxfer): Likewise.
13694 (remote_xfer_partial): Likewise.
13695 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13696 (rs6000_xfer_shared_libraries): Likewise.
13697 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13698 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13699 (spu_xfer_partial): Likewise.
13700 * target.c (memory_xfer_partial_1): Likewise.
13701 * tracepoint.c (tfile_xfer_partial): Likewise.
13702 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13703 (windows_xfer_partial): Likewise.
13705 2014-02-07 Yao Qi <yao@codesourcery.com>
13707 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13709 (core_xfer_shared_libraries_aix): Likewise.
13710 * gdbarch.c, gdbarch.h: Regenerated.
13711 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13712 ULONGEST. Change 'len_avail' type to ULONGEST.
13713 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13714 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13716 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13718 2014-02-07 Yao Qi <yao@codesourcery.com>
13720 * corefile.c (memory_error): Get 'exception' from ERR and pass
13721 'exception' to throw_error.
13723 2014-02-06 Doug Evans <xdje42@gmail.com>
13725 * configure.ac (libpython checking): Remove all but python.o from
13726 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13727 * configure: Regenerate.
13729 * Makefile.in (SFILES): Add extension.c.
13730 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13731 (COMMON_OBS): Add extension.o.
13732 * extension.h: New file.
13733 * extension-priv.h: New file.
13734 * extension.c: New file.
13736 * python/python-internal.h: #include "extension.h".
13737 (gdbpy_auto_load_enabled): Declare.
13738 (gdbpy_apply_val_pretty_printer): Declare.
13739 (gdbpy_apply_frame_filter): Declare.
13740 (gdbpy_preserve_values): Declare.
13741 (gdbpy_breakpoint_cond_says_stop): Declare.
13742 (gdbpy_breakpoint_has_cond): Declare.
13743 (void source_python_script_for_objfile): Delete.
13744 * python/python.c: #include "extension-priv.h".
13745 Delete inclusion of "observer.h".
13746 (extension_language_python): Moved here and renamed from
13747 script_language_python in py-auto-load.c.
13748 Redefined to be of type extension_language_defn.
13749 (python_extension_script_ops): New global.
13750 (python_extension_ops): New global.
13751 (struct python_env): New member previous_active.
13752 (restore_python_env): Call restore_active_ext_lang.
13753 (ensure_python_env): Call set_active_ext_lang.
13754 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13756 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13758 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13760 (gdbpy_eval_from_control_command): Renamed from
13761 eval_python_from_control_command, made static. New arg extlang.
13762 (gdbpy_source_script) Renamed from source_python_script, made static.
13764 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13765 result to int. New arg extlang.
13766 (gdbpy_source_objfile_script): Renamed from
13767 source_python_script_for_objfile, made static. New arg extlang.
13768 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13769 static. New args extlang, extlang_printers. Change result type to
13771 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13772 static. New arg extlang. Rename arg printers to extlang_printers
13773 and change type to ext_lang_type_printers *.
13774 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13775 static. Replace argument arg with extlang, extlang_printers.
13776 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13777 (!HAVE_PYTHON, source_python_script): Delete.
13778 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13779 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13780 (!HAVE_PYTHON, start_type_printers): Delete.
13781 (!HAVE_PYTHON, apply_type_printers): Delete.
13782 (!HAVE_PYTHON, free_type_printers): Delete.
13783 (_initialize_python): Delete call to observer_attach_before_prompt.
13784 (finalize_python): Set/restore active extension language.
13785 (gdbpy_finish_initialization) Renamed from
13786 finish_python_initialization, made static. New arg extlang.
13787 (gdbpy_initialized): New function.
13788 * python/python.h: #include "extension.h". Delete #include
13789 "value.h", "mi/mi-cmds.h".
13790 (extension_language_python): Declare.
13791 (GDBPY_AUTO_FILE_NAME): Delete.
13792 (enum py_bt_status): Moved to extension.h and renamed to
13793 ext_lang_bt_status.
13794 (enum frame_filter_flags): Moved to extension.h.
13795 (enum py_frame_args): Moved to extension.h and renamed to
13796 ext_lang_frame_args.
13797 (finish_python_initialization): Delete.
13798 (eval_python_from_control_command): Delete.
13799 (source_python_script): Delete.
13800 (apply_val_pretty_printer): Delete.
13801 (apply_frame_filter): Delete.
13802 (preserve_python_values): Delete.
13803 (gdbpy_script_language_defn): Delete.
13804 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13805 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13807 * auto-load.c: #include "extension.h".
13808 (GDB_AUTO_FILE_NAME): Delete.
13809 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13810 (script_language_gdb): Delete, moved to extension.c and renamed to
13811 extension_language_gdb.
13812 (source_gdb_script_for_objfile): Delete.
13813 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13814 (loaded_script): Change type of language member to
13815 struct extension_language_defn *.
13816 (init_loaded_scripts_info): Initialize
13817 unsupported_script_warning_printed.
13818 (maybe_add_script): Make static. Change type of language arg to
13819 struct extension_language_defn *.
13820 (clear_section_scripts): Reset unsupported_script_warning_printed.
13821 (auto_load_objfile_script_1): Rewrite to use extension language API.
13822 (auto_load_objfile_script): Make public. Remove support-compiled-in
13823 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13824 (source_section_scripts): Rewrite to use extension language API.
13825 (load_auto_scripts_for_objfile): Rewrite to use
13826 auto_load_scripts_for_objfile.
13827 (collect_matching_scripts_data): Change type of language member to
13828 struct extension_language_defn *.
13829 (auto_load_info_scripts): Change type of language arg to
13830 struct extension_language_defn *.
13831 (unsupported_script_warning_print): New function.
13832 (script_not_found_warning_print): Make static.
13833 (_initialize_auto_load): Rewrite construction of scripts-directory
13835 * auto-load.h (struct objfile): Add forward decl.
13836 (struct script_language): Delete.
13837 (struct auto_load_pspace_info): Add forward decl.
13838 (struct extension_language_defn): Add forward decl.
13839 (maybe_add_script): Delete.
13840 (auto_load_objfile_script): Declare.
13841 (script_not_found_warning_print): Delete.
13842 (auto_load_info_scripts): Update prototype.
13843 (auto_load_gdb_scripts_enabled): Declare.
13844 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13845 auto_load_python_scripts_enabled and made public.
13846 (script_language_python): Delete, moved to python.c.
13847 (gdbpy_script_language_defn): Delete.
13848 (info_auto_load_python_scripts): Update to use
13849 extension_language_python.
13851 * breakpoint.c (condition_command): Replace call to
13852 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13853 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13854 with call to breakpoint_ext_lang_cond_says_stop.
13855 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13856 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13857 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13858 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13860 (local_setattro): Print name of extension language with existing
13863 * valprint.c (val_print, value_print): Update to call
13864 apply_ext_lang_val_pretty_printer.
13865 * cp-valprint.c (cp_print_value): Update call to
13866 apply_ext_lang_val_pretty_printer.
13867 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13868 (gdbpy_apply_val_pretty_printer): Renamed from
13869 apply_val_pretty_printer. New arg extlang.
13870 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13872 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13873 extension language API.
13874 * cli/cli-script.c (execute_control_command): Update to call
13875 eval_ext_lang_from_control_command.
13877 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13878 enum ext_lang_bt_status values. Update call to
13879 apply_ext_lang_frame_filter.
13880 (mi_cmd_stack_list_locals): Ditto.
13881 (mi_cmd_stack_list_args): Ditto.
13882 (mi_cmd_stack_list_variables): Ditto.
13883 * mi/mi-main.c: Delete #include "python/python-internal.h".
13884 Add #include "extension.h".
13885 (mi_cmd_list_features): Replace reference to python internal variable
13886 gdb_python_initialized with call to ext_lang_initialized_p.
13888 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13889 Update to use enum ext_lang_frame_args. Update to call
13890 apply_ext_lang_frame_filter.
13891 * python/py-framefilter.c (extract_sym): Update to use enum
13892 ext_lang_bt_status.
13893 (extract_value, py_print_type, py_print_value): Ditto.
13894 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13895 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13896 (py_print_frame): Ditto.
13897 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13898 New arg extlang. Update to use enum ext_lang_bt_status.
13900 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13901 finish_python_initialization. Replace with call to
13902 finish_ext_lang_initialization.
13904 * typeprint.c (do_free_global_table): Update to call
13905 free_ext_lang_type_printers.
13906 (create_global_typedef_table): Update to call
13907 start_ext_lang_type_printers.
13908 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13909 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13910 (type_print_options): Change type of global_printers from "void *"
13911 to "struct ext_lang_type_printers *".
13913 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13914 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13915 (gdbpy_preserve_values): Renamed from preserve_python_values.
13917 (!HAVE_PYTHON, preserve_python_values): Delete.
13919 * utils.c (quit_flag): Delete, moved to extension.c.
13920 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13923 * eval.c: Delete #include "python/python.h".
13924 * main.c: Delete #include "python/python.h".
13926 * defs.h: Update comment.
13928 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13932 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13934 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13937 2014-02-05 Yao Qi <yao@codesourcery.com>
13939 * remote.c (remote_pass_signals): Remove local 'buf' and use
13941 (remote_program_signals): Likewise.
13943 2014-02-05 Yao Qi <yao@codesourcery.com>
13945 * ctf.c: Include "inferior.h" and "gdbthread.h".
13946 (CTF_PID): A new macro.
13947 (ctf_open): Call inferior_appeared and add_thread_silent.
13948 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13949 (ctf_thread_alive): New function.
13950 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13952 2014-02-05 Yao Qi <yao@codesourcery.com>
13956 2013-05-24 Yao Qi <yao@codesourcery.com>
13958 * tracepoint.c (TFILE_PID): Remove.
13959 (tfile_open): Don't add thread and inferior.
13960 (tfile_close): Don't set 'inferior_ptid'. Don't call
13961 exit_inferior_silent.
13962 (tfile_thread_alive): Remove.
13963 (init_tfile_ops): Don't set field 'to_thread_alive' of
13966 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13968 * remote.c (remote_start_remote): Call remote_check_symbols even
13969 if only symbol-file (not file) has been given.
13971 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13973 * gdbarch.sh (skip_entrypoint): New callback.
13974 * gdbarch.c, gdbarch.h: Regenerate.
13975 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13976 * infrun.c (fill_in_stop_func): Likewise.
13977 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13978 (ppc_elfv2_elf_make_msymbol_special): New function.
13979 (ppc_elfv2_skip_entrypoint): Likewise.
13980 (ppc_linux_init_abi): Install them for ELFv2.
13982 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13984 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13985 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13986 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13987 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13988 structures returned in GPRs.
13990 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13992 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13993 offset to the stack parameter list for the ELFv2 ABI.
13995 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13997 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13998 set_gdbarch_convert_from_func_ptr_addr and
13999 set_gdbarch_elf_make_msymbol_special for ELFv1.
14000 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14001 function descriptors on ELFv1.
14002 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14003 set up r12 at function entry.
14005 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14007 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14008 (struct gdbarch_tdep): New member elf_abi.
14010 * rs6000-tdep.c: Include "elf/ppc64.h".
14011 (rs6000_gdbarch_init): Detect ELF ABI version.
14013 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14015 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14016 within a register pair holding a DFP 128-bit value on little-endian.
14017 (ppc64_sysv_abi_return_value_base): Likewise.
14018 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14019 (dfp_pseudo_register_write): Likewise.
14021 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14023 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14024 offset on little-endian when passing _Decimal32.
14025 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14027 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14029 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14030 of the overlapped FP register within the VSX register on little-
14032 (efpr_pseudo_register_write): Likewise.
14034 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14036 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14037 offset on little-endian when passing small structures.
14039 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14041 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14042 (struct ppc64_sysv_argpos): New data structure.
14043 (ppc64_sysv_abi_push_float): Remove.
14044 (ppc64_sysv_abi_push_val): New function.
14045 (ppc64_sysv_abi_push_integer): Likewise.
14046 (ppc64_sysv_abi_push_freg): Likewise.
14047 (ppc64_sysv_abi_push_vreg): Likewise.
14048 (ppc64_sysv_abi_push_param): Likewise.
14049 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14050 (ppc64_sysv_abi_return_value_base): New function.
14051 (ppc64_sysv_abi_return_value): Refactor to use it.
14053 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14055 * NEWS: Document new target powerpc64le-*-linux*.
14057 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14059 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14060 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14062 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14063 register set used in ELF core dumps. Add floating-point register set.
14065 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14067 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14068 dwarf2_to_gdb[] table using symbolic constants. Adjust
14069 penultimate entry from number representing the PC register
14070 to symbolic constant representing the MDR register. Add
14071 constant for the PC register to the end of the table.
14073 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14075 * bsd-kvm.c: Include <sys/param.h>
14077 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14079 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14081 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14083 * ada-lang.h (clear_ada_sym_cache): Delete.
14085 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14087 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14089 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14091 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14092 the sigreturn register save area only if the syscall is
14095 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14097 * valops.c (value_slice): Minor reformatting.
14099 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14101 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14103 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14105 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14106 New static globals.
14107 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14108 (ada_ignore_descriptive_types_p): New static global.
14109 (find_parallel_type_by_descriptive_type): Return immediately
14110 if ada_ignore_descriptive_types_p is set.
14111 (_initialize_ada_language): Register new commands "maintenance
14112 set ada", "maintenance show ada", "maintenance set ada
14113 ignore-descriptive-types" and "maintenance show ada
14114 ignore-descriptive-types".
14115 * NEWS: Add entry for new "maint ada set/show
14116 ignore-descriptive-types" commands.
14118 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14120 * record-btrace.c (record_btrace_close): Call btrace_teardown
14123 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14125 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14128 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14130 * ada-typeprint (type_is_full_subrange_of_target_type):
14132 (print_range): Add parameter bounds_prefered_p. If not set,
14133 try printing range types using the name of their base type.
14134 (print_range_type): Add parameter bounds_prefered_p.
14135 Use it in call to print_range.
14136 (print_array_type, ada_print_type): Update calls to print_range
14137 and print_range_type.
14139 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14141 * ada-typeprint.c (print_array_type, print_choices, print_range)
14142 (print_range_bound, print_dynamic_range_bound, print_range_type):
14143 Remove declaration.
14145 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14147 * ada-typeprint.c (print_range): Add missing empty line
14148 after local declaration.
14150 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14152 * ada-valprint.c (print_optional_low_bound): Get index_type's
14153 target type for as long as it is a TYPE_CODE_RANGE.
14155 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14157 * procfs.c (procfs_make_note_section): Remove assertion and
14158 associated comment.
14160 2014-01-24 Yao Qi <yao@codesourcery.com>
14162 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14163 * corelow.c (get_core_siginfo): Likewise.
14165 2014-01-24 Yao Qi <yao@codesourcery.com>
14167 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14168 ULONGEST. Don't check 'len' is negative.
14169 (remote_write_bytes): Change type of 'len' to ULONGEST.
14171 2014-01-23 Tom Tromey <tromey@redhat.com>
14174 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14175 Handle exception from frame.block.
14176 (FrameVars.fetch_frame_locals): Likewise.
14178 2014-01-23 Tom Tromey <tromey@redhat.com>
14181 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14182 on a NULL pointer. Move "goto error" to correct place.
14184 2014-01-23 Tom Tromey <tromey@redhat.com>
14187 * python/py-framefilter.c (apply_frame_filter): Call
14188 ensure_python_env after computing gdbarch.
14190 2014-01-23 Yao Qi <yao@codesourcery.com>
14192 * target.c (raw_memory_xfer_partial): Change argument type
14193 from void * to gdb_byte *.
14194 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14196 2014-01-22 Doug Evans <dje@google.com>
14198 New gdbserver option --debug-format=timestamp.
14199 * NEWS: Mention it.
14201 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14203 * syscalls/s390x-linux.xml: New file.
14204 * syscalls/s390-linux.xml: New file.
14205 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14206 (XML_SYSCALL_FILENAME_S390X): Likewise.
14207 (op_svc): New enum value for SVC opcode.
14208 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14209 (s390_linux_get_syscall_number): New function.
14210 (s390_gdbarch_init): Register '*get_syscall_number' and the
14211 syscall xml file name.
14212 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14213 "s390-linux.xml" and "s390x-linux.xml".
14214 * NEWS: Announce new feature.
14216 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14218 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14220 2014-01-22 Pedro Alves <palves@redhat.com>
14222 * xtensa-config.c: Include defs.h.
14224 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14226 * common/common-utils.h: Add "ARI:" comment beside __func__
14229 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14231 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14232 documentation a bit.
14234 2014-01-21 Roland McGrath <mcgrathr@google.com>
14236 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14237 * configure: Regenerate.
14238 * aclocal.m4: Regenerate.
14239 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14240 New substituted variables.
14241 (install-strip): New target.
14242 (INSTALL_SCRIPT): New substituted variable.
14243 (FLAGS_TO_PASS): Add it.
14244 (install-only): Use $(INSTALL_SCRIPT) rather than
14245 $(INSTALL_PROGRAM) for gcore.
14247 2014-01-20 Tom Tromey <tromey@redhat.com>
14249 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14252 2014-01-20 Tom Tromey <tromey@redhat.com>
14254 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14255 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14256 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14257 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14258 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14259 (struct cmd_list_element) <flags>: Remove.
14260 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14261 doc_allocated>: New fields.
14262 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14264 * maint.c (maintenance_do_deprecate): Update.
14265 * top.c (execute_command): Update.
14267 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14269 * xtensa-linux-nat.c: Include asm/ptrace.h.
14271 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14273 * Makefile.in (SFILES): Add d-support.c.
14274 (COMMON_OBS): Add d-support.o.
14275 * d-lang.h (d_parse_symbol): Add comment, now defined in
14277 * d-lang.c (parse_call_convention)
14278 (parse_attributes, parse_function_types)
14279 (parse_function_args, parse_type, parse_identifier)
14280 (call_convention_p, d_parse_symbol): Move functions to ...
14281 * d-support.c: ... New file.
14283 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14285 * d-lang.h (d_parse_symbol): Add declaration.
14286 * d-lang.c (extract_identifiers)
14287 (extract_type_info): Remove functions.
14288 (parse_call_convention, parse_attributes)
14289 (parse_function_types, parse_function_args)
14290 (parse_type, parse_identifier, call_convention_p)
14291 (d_parse_symbol): New functions.
14292 (d_demangle): Use d_parse_symbol to demangle D symbols.
14294 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14296 * d-lang.h (struct builtin_d_type): New data type.
14297 (builtin_d_type): Add declaration.
14298 * d-lang.c (d_language_arch_info, build_d_types)
14299 (builtin_d_type): New functions.
14300 (enum d_primitive_types): New data type.
14301 (d_language_defn): Change c_language_arch_info to
14302 d_language_arch_info.
14303 (d_type_data): New static variable.
14304 (_initialize_d_language): Initialize d_type_data.
14306 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14308 * d-lang.h (d_main_name): Add declaration.
14309 * d-lang.c (d_main_name): New function.
14310 * symtab.c (find_main_name): Add call to d_main_name.
14312 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14314 * d-lang.c (d_language_defn): Change macro_expansion_c to
14315 macro_expansion_no.
14317 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14319 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14321 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14323 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14324 gdb_exception" declaration.
14325 * remote.c (getpkt_or_notif_sane): Likewise.
14327 2014-01-17 Doug Evans <dje@google.com>
14329 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14330 function, contents of dirnames_to_char_ptr_vec_append moved here.
14331 (delim_string_to_char_ptr_vec): New function.
14332 (dirnames_to_char_ptr_vec_append): Rewrite.
14333 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14335 2014-01-17 Doug Evans <dje@google.com>
14337 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14339 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14340 #include "common-utils.h".
14341 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14342 * common/vec.h (VEC_ASSERT_PASS): Update.
14343 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14344 (MACH_CHECK_ERROR): Update.
14346 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14348 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14350 * gdbarch.h: Regenerate.
14352 2014-01-16 Tom Tromey <tromey@redhat.com>
14354 * value.c (struct value) <regnum>: Move earlier.
14356 2014-01-16 Tom Tromey <tromey@redhat.com>
14358 * remote.c (extended_remote_create_inferior): Rename from
14359 extended_remote_create_inferior_1. Add "ops" argument. Remove
14360 old implementation.
14362 2014-01-16 Pedro Alves <palves@redhat.com>
14364 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14365 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14368 2014-01-16 Doug Evans <dje@google.com>
14370 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14374 * btrace.h (btrace_thread_flag): New.
14375 (struct btrace_thread_info) <flags>: New.
14376 * record-btrace.c (record_btrace_resume_thread)
14377 (record_btrace_find_thread_to_move, btrace_step_no_history)
14378 (btrace_step_stopped, record_btrace_start_replaying)
14379 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14380 (record_btrace_find_resume_thread): New.
14381 (record_btrace_resume, record_btrace_wait): Extend.
14382 (record_btrace_can_execute_reverse): New.
14383 (record_btrace_open): Fail in non-stop mode.
14384 (record_btrace_set_replay): Split into this, ...
14385 (record_btrace_stop_replaying): ... this, ...
14386 (record_btrace_clear_histories): ... and this.
14387 (init_record_btrace_ops): Init to_can_execute_reverse.
14388 * NEWS: Announce it.
14390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14392 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14393 (forward_target_decr_pc_after_break)
14394 (target_decr_pc_after_break): New.
14395 * target.c (forward_target_decr_pc_after_break)
14396 (target_decr_pc_after_break): New.
14397 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14398 instead of gdbarch_decr_pc_after_break.
14399 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14400 instead of gdbarch_decr_pc_after_break.
14401 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14402 instead of gdbarch_decr_pc_after_break.
14403 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14404 instead of gdbarch_decr_pc_after_break.
14405 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14406 instead of gdbarch_decr_pc_after_break.
14407 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14408 instead of gdbarch_decr_pc_after_break.
14410 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14412 * btrace.c: Include regcache.h.
14413 (btrace_add_pc): New.
14414 (btrace_enable): Call btrace_add_pc.
14415 (btrace_is_empty): New.
14416 * btrace.h (btrace_is_empty): New.
14417 * record-btrace.c (require_btrace, record_btrace_info): Call
14420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14422 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14423 Support delta reads.
14424 (linux_disable_btrace): Change return type.
14425 * common/linux-btrace.h (linux_read_btrace): Change parameters
14426 and return type to allow error reporting. Update users.
14427 (linux_disable_btrace): Change return type. Update users.
14428 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14430 (btrace_error): New.
14431 (btrace_block) <begin>: Comment on BEGIN == 0.
14432 * btrace.c (btrace_compute_ftrace): Start from the end of
14434 (btrace_stitch_trace, btrace_clear_history): New.
14435 (btrace_fetch): Read delta trace, return if replaying.
14436 (btrace_clear): Move clear history code to btrace_clear_history.
14437 (parse_xml_btrace): Throw an error if parsing failed.
14438 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14439 and return type to allow error reporting.
14440 (target_read_btrace): Change parameters and return type to allow
14442 * target.c (target_read_btrace): Update.
14443 * remote.c (remote_read_btrace): Support delta reads. Pass
14445 * NEWS: Announce it.
14447 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14449 * record.h (record_btrace_frame_unwind)
14450 (record_btrace_tailcall_frame_unwind): New declarations.
14451 * dwarf2-frame: Include record.h
14452 (dwarf2_frame_cfa): Throw an error for btrace frames.
14453 * record-btrace.c: Include hashtab.h.
14454 (btrace_get_bfun_name): New.
14455 (btrace_call_history): Call btrace_get_bfun_name.
14456 (struct btrace_frame_cache): New.
14458 (bfcache_hash, bfcache_eq, bfcache_new): New.
14459 (btrace_get_frame_function): New.
14460 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14461 (record_btrace_frame_this_id): Compute own id.
14462 (record_btrace_frame_prev_register): Provide PC, throw_error
14463 for all other registers.
14464 (record_btrace_frame_sniffer): Detect btrace frames.
14465 (record_btrace_tailcall_frame_sniffer): New.
14466 (record_btrace_frame_dealloc_cache): New.
14467 (record_btrace_frame_unwind): Add new functions.
14468 (record_btrace_tailcall_frame_unwind): New.
14469 (_initialize_record_btrace): Allocate cache.
14470 * btrace.c (btrace_clear): Call reinit_frame_cache.
14471 * NEWS: Announce it.
14473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14475 * record-btrace.c (record_btrace_set_replay)
14476 (record_btrace_goto_begin, record_btrace_goto_end)
14477 (record_btrace_goto): New.
14478 (init_record_btrace_ops): Initialize them.
14479 * NEWS: Announce it.
14481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14483 * record-btrace.c (record_btrace_find_new_threads)
14484 (record_btrace_thread_alive): New.
14485 (init_record_btrace_ops): Initialize to_find_new_threads and
14488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14490 * record-btrace.c (record_btrace_resume): New.
14491 (record_btrace_wait): New.
14492 (init_record_btrace_ops): Initialize to_wait and to_resume.
14494 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14496 * record-btrace.c (record_btrace_xfer_partial)
14497 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14498 (record_btrace_allow_memory_access): New.
14499 (init_record_btrace_ops): Initialize new methods.
14500 * target.c (raw_memory_xfer_partial): Bail out if target reports
14501 that this memory is not available.
14503 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14505 * target.h (target_ops) <to_insert_breakpoint>
14506 <to_remove_breakpoint>: Add target_ops parameter.
14507 (forward_target_insert_breakpoint): New.
14508 (forward_target_remove_breakpoint): New.
14509 (memory_remove_breakpoint, memory_insert_breakpoint):
14510 Add target_ops parameter.
14511 * target.c (target_insert_breakpoint): Split into this and ...
14512 (forward_target_insert_breakpoint): ... this.
14513 (target_remove_breakpoint): Split into this and ...
14514 (forward_target_remove_breakpoint): ... this.
14515 (debug_to_insert_breakpoint): Add target_ops parameter.
14516 Call forward_target_insert_breakpoint.
14517 (debug_to_remove_breakpoint): Add target_ops parameter.
14518 Call forward_target_remove_breakpoint.
14519 (update_current_target): Do not inherit or default to_insert_breakpoint
14520 and to_remove_breakpoint.
14521 * corelow.c (ignore): Add target_ops parameter.
14522 * exec.c (ignore): Add target_ops parameter.
14523 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14524 Add target_ops parameter.
14525 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14526 Add target_ops parameter.
14527 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14528 Add target_ops parameter.
14529 * record-full.c (record_full_beneath_to_insert_breakpoint)
14530 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14531 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14532 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14533 (record_full_core_remove_breakpoint): Add target_ops parameter.
14535 (record_full_beneath_to_insert_breakpoint_ops)
14536 (record_full_beneath_to_remove_breakpoint_ops)
14537 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14538 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14539 tmp_to_remove_breakpoint_ops,
14540 record_full_beneath_to_insert_breakpoint_ops, and
14541 record_full_beneath_to_remove_breakpoint_ops.
14542 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14543 (m32r_remove_breakpoint): Add target_ops parameter.
14544 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14545 Add target_ops parameter.
14546 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14547 Add target_ops parameter.
14549 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14550 Markus Metzger <markus.t.metzger@intel.com>
14552 * record-btrace.c: Include frame-unwind.h.
14553 (record_btrace_frame_unwind_stop_reason)
14554 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14555 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14557 (init_record_btrace_ops): Install it.
14559 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14561 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14564 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14566 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14569 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14571 * frame-unwind.c: Include target.h.
14572 (frame_unwind_try_unwinder): New function with code from ...
14573 (frame_unwind_find_by_frame): ... here. New variable
14574 unwinder_from_target, call also target_get_unwinder)
14575 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14576 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14577 * target.h (struct target_ops): New fields to_get_unwinder and
14578 to_get_tailcall_unwinder.
14579 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14583 * record-btrace.c (record_btrace_fetch_registers)
14584 (record_btrace_store_registers)
14585 (record_btrace_to_prepare_to_store): New.
14586 (init_record_btrace_ops): Add the above.
14588 2014-01-16 Tom Tromey <tromey@redhat.com>
14590 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14591 * target.h (struct target_ops) <to_prepare_to_store>: Add
14593 (target_prepare_to_store): Add argument.
14594 * target.c (debug_to_prepare_to_store): Add argument.
14595 (update_current_target): Update.
14596 * remote.c (remote_prepare_to_store): Add 'self' argument.
14597 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14598 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14599 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14600 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14602 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14603 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14604 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14605 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14606 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14610 * btrace.h (replay) <replay>: New.
14611 (btrace_is_replaying): New.
14612 * btrace.c (btrace_clear): Free replay iterator.
14613 (btrace_is_replaying): New.
14614 * record-btrace.c (record_btrace_is_replaying): New.
14615 (record_btrace_info): Print insn number if replaying.
14616 (record_btrace_insn_history): Start at replay position.
14617 (record_btrace_call_history): Start at replay position.
14618 (init_record_btrace_ops): Init to_record_is_replaying.
14620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14622 * record-btrace.c (record_btrace_insn_history_range): Include
14624 (record_btrace_insn_history_from): Adjust range.
14625 (record_btrace_call_history_range): Include
14627 (record_btrace_call_history_from): Adjust range.
14628 * NEWS: Announce changes.
14630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14632 * record.h (enum record_print_flag)
14633 <record_print_indent_calls>: New.
14634 * record.c (get_call_history_modifiers): Recognize /c modifier.
14635 (_initialize_record): Document /c modifier.
14636 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14637 Reorder fields. Optionally indent the function name. Update
14639 * NEWS: Announce changes.
14641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14643 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14647 * btrace.c (ftrace_new_function): Start counting at one.
14648 * record-btrace.c (record_btrace_info): Adjust number of calls
14650 * NEWS: Announce it.
14652 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14654 * record-btrace.c (btrace_call_history_insn_range): Print
14655 insn range as [begin, end].
14657 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14659 * btrace.h (struct btrace_func_link): New.
14660 (enum btrace_function_flag): New.
14661 (struct btrace_inst): Rename to ...
14662 (struct btrace_insn): ...this. Update all users.
14663 (struct btrace_func) <ibegin, iend>: Remove.
14664 (struct btrace_func_link): New.
14665 (struct btrace_func): Rename to ...
14666 (struct btrace_function): ...this. Update all users.
14667 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14668 (number, level, flags>: New.
14669 (struct btrace_insn_iterator): Rename to ...
14670 (struct btrace_insn_history): ...this.
14672 (struct btrace_insn_iterator, btrace_call_iterator): New.
14673 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14674 (struct btrace_target_info) <begin, end, level>
14675 <insn_history, call_history>: New.
14676 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14677 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14678 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14679 (btrace_call_number, btrace_call_begin, btrace_call_end)
14680 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14681 (btrace_find_function_by_number, btrace_set_insn_history)
14682 (btrace_set_call_history): New.
14683 * btrace.c (btrace_init_insn_iterator)
14684 (btrace_init_func_iterator, compute_itrace): Remove.
14685 (ftrace_print_function_name, ftrace_print_filename)
14686 (ftrace_skip_file): Change
14687 parameter to const.
14688 (ftrace_init_func): Remove.
14689 (ftrace_debug): Use new btrace_function fields.
14690 (ftrace_function_switched): Also consider gaining and
14691 losing symbol information).
14692 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14693 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14694 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14696 (ftrace_new_function): Move. Remove debug print.
14697 (ftrace_update_lines, ftrace_update_insns): New.
14698 (ftrace_update_function): Check for call, ret, and jump.
14699 (compute_ftrace): Renamed to ...
14700 (btrace_compute_ftrace): ...this. Rewritten to compute call
14702 (btrace_fetch, btrace_clear): Updated.
14703 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14704 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14705 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14706 (btrace_call_number, btrace_call_begin, btrace_call_end)
14707 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14708 (btrace_find_function_by_number, btrace_set_insn_history)
14709 (btrace_set_call_history): New.
14710 * record-btrace.c (require_btrace): Use new btrace thread
14712 (record_btrace_info, btrace_insn_history)
14713 (record_btrace_insn_history, record_btrace_insn_history_range):
14714 Use new btrace thread info fields and new iterator.
14715 (btrace_func_history_src_line): Rename to ...
14716 (btrace_call_history_src_line): ...this. Use new btrace
14717 thread info fields.
14718 (btrace_func_history): Rename to ...
14719 (btrace_call_history): ...this. Use new btrace thread info
14720 fields and new iterator.
14721 (record_btrace_call_history, record_btrace_call_history_range):
14722 Use new btrace thread info fields and new iterator.
14724 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14726 * frame.h (frame_id_build_unavailable_stack_special): New.
14727 * frame.c (frame_id_build_unavailable_stack_special): New.
14729 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14731 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14732 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14733 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14735 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14736 (i386_insn_is_jump, i386_jmp_p): New.
14737 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14738 insn_is_jump to gdbarch.
14739 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14740 * gdbarch.h: Regenerated.
14741 * gdbarch.c: Regenerated.
14742 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14743 (default_insn_is_jump): New.
14744 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14745 (default_insn_is_jump): New.
14747 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14749 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14751 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14752 (btrace_read_type) <btrace_read_new>: Change to ...
14753 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14755 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14757 * common/linux-btrace.c (linux_read_btrace): Free trace from
14758 previous iteration.
14760 2014-01-15 Doug Evans <dje@google.com>
14762 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14765 2014-01-15 Tom Tromey <tromey@redhat.com>
14767 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14768 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14769 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14770 (set_objfile_main_name): New function.
14771 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14772 language_of_main>: New fields.
14773 (set_objfile_main_name): Declare.
14774 * symtab.c (find_main_name): Loop over objfiles to find the main
14776 (set_main_name): Now static.
14777 (get_main_info): Add comment.
14778 * symtab.h (set_main_name): Don't declare.
14780 2014-01-15 Tom Tromey <tromey@redhat.com>
14782 * symtab.c (main_progspace_key): New global.
14783 (struct main_info): New.
14784 (name_of_main, language_of_main): Remove.
14785 (get_main_info, main_info_cleanup): New function.
14786 (set_main_name, main_name, main_language): Use get_main_info.
14787 (_initialize_symtab): Initialize main_progspace_key.
14789 2014-01-15 Tom Tromey <tromey@redhat.com>
14791 * dbxread.c (process_one_symbol): Update.
14792 * dwarf2read.c (read_partial_die): Update.
14793 * symfile.c (set_initial_language): Call main_language.
14794 * symtab.c (language_of_main): Now static.
14795 (set_main_name): Add 'lang' parameter.
14796 (find_main_name): Update.
14797 (main_language): New function.
14798 (symtab_observer_executable_changed): Update.
14799 * symtab.h (set_main_name): Update.
14800 (language_of_main): Remove.
14801 (main_language): Declare.
14803 2014-01-15 Tom Tromey <tromey@redhat.com>
14805 * symfile.c (init_entry_point_info): Use new "initialized" field.
14807 * objfiles.h (struct entry_point) <initialized>: New field.
14808 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14809 (struct objfile) <ei>: ...here. Remove.
14810 * objfiles.c (entry_point_address_query): Update.
14812 2014-01-15 Tom Tromey <tromey@redhat.com>
14814 * objfiles.c (entry_point_address_query): Relocate entry point
14816 (objfile_relocate1): Do not relocate entry point address.
14817 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14818 <the_bfd_section_index>: New field.
14819 * symfile.c (init_entry_point_info): Find the entry point's
14822 2014-01-15 Tom Tromey <tromey@redhat.com>
14824 * solib-frv.c (enable_break): Use entry_point_address_query.
14826 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14828 * NEWS: Add note on improved process record-replay on
14829 arm*-linux* targets.
14831 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14833 * arm-tdep.c (enum arm_record_result): New enum.
14834 (arm_record_unsupported_insn): New function.
14835 (arm_record_coproc_data_proc): Removed.
14836 (thumb2_record_ld_st_multiple): New function.
14837 (thumb2_record_ld_st_dual_ex_tbb): New function.
14838 (thumb2_record_data_proc_sreg_mimm): New function.
14839 (thumb2_record_ps_dest_generic): New function.
14840 (thumb2_record_branch_misc_cntrl): New function.
14841 (thumb2_record_str_single_data): New function.
14842 (thumb2_record_ld_mem_hints): New function.
14843 (thumb2_record_ld_word): New function.
14844 (thumb2_record_lmul_lmla_div): New function.
14845 (thumb2_record_decode_insn_handler): New function.
14846 (decode_insn): Add thumb32 instruction handlers.
14848 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14850 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14851 (struct arm_linux_record_tdep): Declare.
14852 (arm_canonicalize_syscall): New function.
14853 (arm_all_but_pc_registers_record): New function.
14854 (arm_linux_syscall_record): New function.
14855 (arm_linux_init_abi): Add syscall recording constructs.
14856 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14857 decoding. (arm_record_coproc_data_proc): Update arm syscall
14859 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14860 <arm_syscall_record>: New field.
14861 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14864 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14866 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14867 register for push instruction recording.
14869 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14871 * arm-tdep.c (thumb_record_misc): Update to correct logical
14872 error while recording ldm, ldmia and pop instructions.
14874 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14876 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14878 2014-01-15 Pedro Alves <palves@redhat.com>
14880 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14881 (go32_resume, go32_fetch_registers, store_register)
14882 (go32_store_registers, go32_prepare_to_store)
14883 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14884 (go32_create_inferior, go32_can_run, go32_terminal_init)
14885 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14888 2014-01-15 Tom Tromey <tromey@redhat.com>
14890 * target.h (async_callback_ftype): New typedef.
14891 (struct target_ops) <to_async>: Use it.
14893 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14895 * python/py-value.c (get_field_type): Remove unnecessary curly
14896 braces for single-statement if block.
14898 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14900 * python/py-type.c (convert_field): Add missing empty line
14901 after declarations.
14903 2014-01-14 Doug Evans <dje@google.com>
14905 * symfile.h (expand_symtabs_matching): Renamed from
14906 expand_partial_symbol_names. Update prototype.
14907 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14908 * symfile.c (expand_symtabs_matching): Renamed from
14909 expand_partial_symbol_names. New args file_matcher, kind.
14910 Rename arg fun to symbol_matcher.
14911 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14912 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14913 ada_expand_partial_symbol_name.
14914 (ada_make_symbol_completion_list): Update to call
14915 expand_symtabs_matching.
14916 (ada_add_global_exceptions): Call expand_symtabs_matching.
14917 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14918 call map_symbol_filenames.
14919 * symtab.c (sources_info): Update to call map_symbol_filenames.
14920 (search_symbols): Call expand_symtabs_matching.
14921 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14922 (default_make_symbol_completion_list_break_on): Update to call
14923 expand_symtabs_matching.
14924 (make_source_files_completion_list): Update to call
14925 map_symbol_filenames.
14927 2014-01-14 Doug Evans <dje@google.com>
14929 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14930 (expand_symtabs_symbol_matcher_ftype): New typedef.
14931 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14932 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14933 * symfile.c (expand_partial_symbol_names): Update to use
14934 expand_symtabs_symbol_matcher_ftype.
14935 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14936 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14937 Arg name_matcher renamed to symbol_matcher.
14938 * psymtab.c (recursively_search_psymtabs): Update to use
14939 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14941 (expand_symtabs_matching_via_partial): Update to use
14942 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14943 Arg name_matcher renamed to symbol_matcher.
14945 2014-01-14 Doug Evans <dje@google.com>
14947 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14948 (map_partial_symbol_filenames): Ditto.
14949 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14950 (map_partial_symbol_filenames): Ditto.
14951 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14952 (map_partial_symbol_filenames): Ditto.
14953 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14954 (map_partial_symbol_filenames): Ditto.
14955 * symtab.c: Delete #include "psymtab.h".
14957 2014-01-14 Pedro Alves <palves@redhat.com>
14958 Tom Tromey <tromey@redhat.com>
14960 * infrun.c (use_displaced_stepping): Use find_record_target
14961 instead of RECORD_IS_USED.
14962 (adjust_pc_after_break): Use record_full_is_used instead of
14964 * record-btrace.c (record_btrace_open): Call record_preopen
14965 instead of checking RECORD_IS_USED.
14966 * record-full.c (record_full_shortname)
14967 (record_full_core_shortname): New globals.
14968 (record_full_is_used): New function.
14969 (find_full_open): Call record_preopen instead of checking
14971 (init_record_full_ops): Set the target's shortname to
14972 record_full_shortname.
14973 (init_record_full_core_ops): Set the target's shortname to
14974 record_full_core_shortname.
14975 * record-full.h (record_full_is_used): Declare.
14976 * record.c (find_record_target): Make extern.
14977 (record_preopen): New function.
14978 * record.h (RECORD_IS_USED): Delete macro.
14979 (find_record_target, record_preopen): Declare functions.
14981 2014-01-14 Yao Qi <yao@codesourcery.com>
14983 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14984 'len''s type to ULONGEST.
14985 (core_xfer_shared_libraries_aix): Likewise.
14986 * gdbarch.c, gdbarch.h: Regenerated.
14987 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14988 Change type of 'len' to ULONGEST.
14989 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14990 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14992 2014-01-14 Yao Qi <yao@codesourcery.com>
14994 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14995 type of 'len' to ULONGEST.
14996 (linux_xfer_osdata_processgroups): Likewise.
14997 (linux_xfer_osdata_threads): Likewise.
14998 (linux_xfer_osdata_fds): Likewise.
14999 (linux_xfer_osdata_isockets): Likewise.
15000 (linux_xfer_osdata_shm): Likewise.
15001 (linux_xfer_osdata_sem): Likewise.
15002 (linux_xfer_osdata_msg): Likewise.
15003 (linux_common_xfer_osdata): Likewise.
15004 (struct osdata_type) <getter>: Likewise.
15005 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15008 2014-01-14 Yao Qi <yao@codesourcery.com>
15010 * target.h (target_xfer_partial_ftype): Update.
15011 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15013 * aix-thread.c (aix_thread_xfer_partial): Change type of
15014 argument 'len' to ULONGEST.
15015 * auxv.c (procfs_xfer_auxv): Likewise.
15016 (ld_so_xfer_auxv): Likewise.
15017 (memory_xfer_auxv): Likewise.
15018 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15019 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15020 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15021 * corelow.c (core_xfer_partial): Likewise.
15022 * ctf.c (ctf_xfer_partial): Likewise.
15023 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15025 (darwin_read_dyld_info): Likewise.
15026 (darwin_xfer_partial): Likewise.
15027 * exec.c (section_table_xfer_memory_partial): Likewise.
15028 (exec_xfer_partial): Likewise.
15029 * exec.h (section_table_xfer_memory_partial): Update
15031 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15032 instead of plongest.
15033 (gnu_xfer_partial): Likewise.
15034 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15035 (ia64_hpux_xfer_solib_got): Likewise.
15036 (ia64_hpux_xfer_partial): Likewise.
15037 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15038 * inf-ptrace.c (inf_ptrace_xfer_partial):
15039 * inf-ttrace.c (inf_ttrace_xfer_partial):
15040 * linux-nat.c (linux_xfer_siginfo): Likewise.
15041 (linux_nat_xfer_partial): Likewise.
15042 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15043 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15044 * monitor.c (monitor_xfer_memory): Likewise.
15045 (monitor_xfer_partial): Likewise.
15046 * procfs.c (procfs_xfer_partial): Likewise.
15047 * record-full.c (record_full_xfer_partial): Likewise.
15048 (record_full_core_xfer_partial): Likewise.
15049 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15050 instead of plongest.
15051 (gdbsim_xfer_partial): Likewise.
15052 * remote.c (remote_xfer_partial): Likewise.
15053 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15054 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15056 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15057 (rs6000_xfer_shared_libraries): Likewise.
15058 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15059 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15060 (sparc_xfer_partial): Likewise.
15061 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15062 (spu_xfer_partial): Likewise.
15063 * spu-multiarch.c (spu_xfer_partial): Likewise.
15064 * target.c (target_read_live_memory): Likewise.
15065 (memory_xfer_live_readonly_partial): Likewise.
15066 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15067 (target_xfer_partial, default_xfer_partial): Likewise.
15068 (current_xfer_partial): Likewise.
15069 * tracepoint.c (tfile_xfer_partial): Likewise.
15070 * windows-nat.c (windows_xfer_memory): Likewise. Call
15071 pulongest instead of plongest.
15072 (windows_xfer_partial): Likewise.
15073 (windows_xfer_shared_libraries): Likewise.
15075 2014-01-14 Yao Qi <yao@codesourcery.com>
15077 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15078 target_xfer_partial_ftype.
15080 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15084 * valops.c (value_struct_elt_bitpos): New function
15085 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15086 object to 'None' if the field name is an empty string ("").
15087 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15088 attribute to look for a field when 'name' is 'None'.
15089 (get_field_type): New function
15091 2014-01-13 Doug Evans <dje@google.com>
15094 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15095 (try_open_dwop_file): Ditto.
15096 * gdb_bfd.c: #include "vec.h".
15097 (bfdp): New typedef.
15098 (struct gdb_bfd_data): New member included_bfds.
15099 (gdb_bfd_unref): Unref all included bfds.
15100 (gdb_bfd_record_inclusion): New function.
15101 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15103 2014-01-13 Tom Tromey <tromey@redhat.com>
15105 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15107 2014-01-13 Tom Tromey <tromey@redhat.com>
15109 * defs.h (use_windows): Remove.
15110 * gdb.c (main): Update.
15111 * main.c (captured_main, gdb_main): Update.
15112 * main.h (struct captured_main_args) <use_windows>: Remove.
15113 * top.c (use_windows): Remove.
15115 2014-01-13 Tom Tromey <tromey@redhat.com>
15117 * defs.h (deprecated_flush_hook): Remove.
15119 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15122 * linux-thread-db.c (try_thread_db_load): Add parameter
15123 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15124 (try_thread_db_load_from_pdir_1): Move it there from here.
15125 (try_thread_db_load_from_sdir): Update caller.
15126 (try_thread_db_load_from_dir): Move it there from here.
15128 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15130 * regformats/regdat.sh: Always rewrite the register file.
15132 2014-01-13 Pedro Alves <palves@redhat.com>
15134 * Makefile.in (CHECK_HEADERS): New variable.
15135 (check-headers:): New rule.
15137 2014-01-13 Tom Tromey <tromey@redhat.com>
15139 * cli/cli-setshow.c (do_set_command): Update.
15140 * defs.h (deprecated_set_hook): Remove.
15141 * top.c (deprecated_set_hook): Remove.
15143 2014-01-13 Pedro Alves <palves@redhat.com>
15145 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15146 the tracepoint if the PC is a pseudo-register.
15148 2014-01-13 Tom Tromey <tromey@redhat.com>
15150 * defs.h (XCALLOC): Remove.
15151 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15152 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15153 * dwarf2loc.c (allocate_piece_closure): Likewise.
15154 * elfread.c (elf_symfile_segments): Likewise.
15155 (elf_symfile_segments): Likewise.
15156 * gdbtypes.c (copy_type_recursive): Likewise.
15157 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15158 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15159 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15161 * mt-tdep.c (mt_gdbarch_init): Likewise.
15162 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15164 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15165 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15166 * registry.c (registry_alloc_data): Likewise.
15167 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15168 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15169 * serial.c (serial_fdopen_ops): Likewise.
15170 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15172 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15173 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15176 2014-01-13 Tom Tromey <tromey@redhat.com>
15178 * defs.h (XMALLOC): Remove.
15179 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15180 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15181 * cli-out.c (struct ui_out *): Likewise.
15182 * cli/cli-dump.c (add_dump_command): Likewise.
15183 (add_dump_command): Likewise.
15184 * complaints.c (get_complaints): Likewise.
15185 (find_complaint): Likewise.
15186 * dwarf2-frame.c (execute_cfa_program): Likewise.
15187 * dwarf2read.c (abbrev_table_read_table): Likewise.
15188 * gdbarch.sh: Likewise.
15189 * gdbarch.c: Rebuild.
15190 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15191 * interps.c (interp_new): Likewise.
15192 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15193 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15194 * mi/mi-console.c (mi_console_file_new): Likewise.
15195 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15196 * mi/mi-out.c (mi_out_new): Likewise.
15197 * mi/mi-parse.c (mi_parse): Likewise.
15198 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15199 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15200 * observer.c (xalloc_observer_list_node): Likewise.
15201 * regcache.c (regcache_xmalloc_1): Likewise.
15202 * reggroups.c (reggroup_new): Likewise.
15203 (_initialize_reggroup): Likewise.
15204 * registry.c (register_data_with_cleanup): Likewise.
15205 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15206 * ser-base.c (serial_ttystate): Likewise.
15207 * ser-mingw.c (make_pipe_state): Likewise.
15208 * ser-pipe.c (pipe_open): Likewise.
15209 * serial.c (serial_open): Likewise.
15210 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15211 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15212 (tui_alloc_win_info): Likewise.
15213 (tui_add_content_elements): Likewise.
15214 * tui/tui-file.c (tui_file_new): Likewise.
15215 * tui/tui-out.c (tui_out_new): Likewise.
15216 * ui-file.c (mem_file_new): Likewise.
15217 * ui-out.c (push_level): Likewise.
15218 (make_cleanup_ui_out_end): Likewise.
15219 (append_header_to_list): Likewise.
15220 (ui_out_new): Likewise.
15221 * user-regs.c (user_reg_add_builtin): Likewise.
15223 2014-01-13 Tom Tromey <tromey@redhat.com>
15225 * defs.h (XZALLOC): Remove.
15226 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15227 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15228 (get_ada_tasks_inferior_data): Likewise.
15229 * auto-load.c (get_auto_load_pspace_data): Likewise.
15230 * auxv.c (get_auxv_inferior_data): Likewise.
15231 * bfd-target.c (target_bfd_reopen): Likewise.
15232 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15233 (deprecated_insert_raw_breakpoint): Likewise.
15234 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15235 * corelow.c (core_open): Likewise.
15236 * darwin-nat.c (darwin_check_new_threads): Likewise.
15237 (darwin_attach_pid): Likewise.
15238 * dummy-frame.c (dummy_frame_push): Likewise.
15239 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15240 * dwarf2loc.c (allocate_piece_closure): Likewise.
15241 * elfread.c (elf_symfile_segments): Likewise.
15242 * eval.c (ptrmath_type_p): Likewise.
15243 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15244 * gdbtypes.c (alloc_type_arch): Likewise.
15245 (alloc_type_instance): Likewise.
15246 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15247 * inf-child.c (inf_child_can_use_agent): Likewise.
15248 * inflow.c (get_inflow_inferior_data): Likewise.
15249 * infrun.c (save_infcall_suspend_state): Likewise.
15250 * jit.c (jit_reader_load): Likewise.
15251 (get_jit_objfile_data): Likewise.
15252 (get_jit_program_space_data): Likewise.
15253 (jit_object_open_impl): Likewise.
15254 (jit_symtab_open_impl): Likewise.
15255 (jit_block_open_impl): Likewise.
15256 (jit_frame_sniffer): Likewise.
15257 * linux-fork.c (add_fork): Likewise.
15258 * maint.c (make_command_stats_cleanup): Likewise.
15259 * objfiles.c (get_objfile_pspace_data): Likewise.
15260 * opencl-lang.c (struct lval_closure): Likewise.
15261 * osdata.c (osdata_start_osdata): Likewise.
15262 * progspace.c (new_address_space): Likewise.
15263 (add_program_space): Likewise.
15264 * remote-sim.c (get_sim_inferior_data): Likewise.
15265 * sh-tdep.c (sh_gdbarch_init): Likewise.
15266 * skip.c (Ignore): Likewise.
15267 (skip_delete_command): Likewise.
15268 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15269 (library_list_start_library): Likewise.
15270 (solib_aix_current_sos): Likewise.
15271 * solib-darwin.c (get_darwin_info): Likewise.
15272 (darwin_current_sos): Likewise.
15273 * solib-dsbt.c (get_dsbt_info): Likewise.
15274 * solib-ia64-hpux.c (new_so_list): Likewise.
15275 (ia64_hpux_get_solib_linkage_addr): Likewise.
15276 * solib-spu.c (append_ocl_sos): Likewise.
15277 (spu_current_sos): Likewise.
15278 * solib-svr4.c (get_svr4_info): Likewise.
15279 (svr4_keep_data_in_core): Likewise.
15280 (library_list_start_library): Likewise.
15281 (svr4_default_sos): Likewise.
15282 (svr4_read_so_list): Likewise.
15283 * solib-target.c (library_list_start_library): Likewise.
15284 (solib_target_current_sos): Likewise.
15285 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15286 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15287 * symfile.c (default_symfile_segments): Likewise.
15288 * target-descriptions.c (tdesc_data_init): Likewise.
15289 (tdesc_create_reg): Likewise.
15290 (struct tdesc_type *): Likewise.
15291 (tdesc_create_vector): Likewise.
15292 (tdesc_set_struct_size): Likewise.
15293 (struct tdesc_type *): Likewise.
15294 (tdesc_free_feature): Likewise.
15295 (tdesc_create_feature): Likewise.
15296 * windows-nat.c (windows_add_thread): Likewise.
15297 (windows_make_so): Likewise.
15298 * xml-support.c (gdb_xml_body_text): Likewise.
15299 (gdb_xml_create_parser_and_cleanup): Likewise.
15300 (xml_process_xincludes): Likewise.
15301 * xml-syscall.c (allocate_syscalls_info): Likewise.
15302 (syscall_create_syscall_desc): Likewise.
15304 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15306 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15307 function, with code from i386_stap_parse_special_token.
15308 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15309 (i386_stap_parse_special_token): Move code to the two functions
15310 above; simplify it.
15312 2014-01-09 Pedro Alves <palves@redhat.com>
15313 Hui Zhu <hui@codesourcery.com>
15316 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15317 bp_err_string. Don't mark the location shlib_disabled if the
15318 error thrown wasn't a generic or memory error. Catch errors
15319 thrown while inserting breakpoints in overlayed code. Output
15320 error message of software breakpoints.
15321 * remote.c (remote_insert_breakpoint): If this breakpoint has
15322 target-side commands but this stub doesn't support Z0 packets,
15323 throw NOT_SUPPORTED_ERROR error.
15324 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15325 * target.h (target_insert_breakpoint): Extend comment.
15326 (target_insert_hw_breakpoint): Add comment.
15328 2014-01-08 Pedro Alves <palves@redhat.com>
15330 * remote.c (remote_add_thread): Add threads silently if starting
15332 (remote_notice_new_inferior): If in all-stop, and starting up,
15333 don't call notice_new_inferior.
15334 (get_current_thread): New function, factored out from ...
15335 (add_current_inferior_and_thread): ... this. Adjust.
15336 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15337 found any thread, then select the remote's current thread as GDB's
15338 current thread too.
15340 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15342 * NEWS: Create a new section for the next release branch.
15343 Rename the section of the current branch, now that it has
15346 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15348 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15349 * version.in: Bump version to 7.7.50.DATE-cvs.
15351 2014-01-08 Yao Qi <yao@codesourcery.com>
15353 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15354 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15355 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15357 2014-01-08 Yao Qi <yao@codesourcery.com>
15359 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15360 return value of bfd_get_filename to symbol_file_add_from_bfd.
15362 2014-01-08 Pierre Muller <muller@sourceware.org>
15365 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15366 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15367 to prim_record_mininal_symbol_and_info.
15368 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15369 in call to prim_record_minimal_symbol_and_info.
15370 (read_pe_exported_syms): Set index field of section_data.
15372 2014-01-07 Andrew Pinski <apinski@cavium.com>
15374 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15375 * features/aarch64.c: Regenerate.
15377 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15379 * target.c (return_null): Define.
15380 (update_current_target): Use it instead of return_zero for
15381 functions that return a pointer.
15383 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15385 * source.c (add_path): Fix check for duplicated paths in the previously
15388 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15390 * ada-lang.c: Remove duplicated include statements.
15391 * alphabsd-nat.c: Ditto.
15392 * amd64-darwin-tdep.c: Ditto.
15393 * amd64fbsd-nat.c: Ditto.
15394 * auto-load.c: Ditto.
15396 * breakpoint.c: Ditto.
15397 * dbxread.c: Ditto.
15398 * fork-child.c: Ditto.
15399 * gdb_usleep.c: Ditto.
15400 * i386-darwin-tdep.c: Ditto.
15401 * i386fbsd-nat.c: Ditto.
15403 * inferior.c: Ditto.
15404 * jv-lang.c: Ditto.
15405 * linux-nat.c: Ditto.
15406 * linux-tdep.c: Ditto.
15407 * m68kbsd-nat.c: Ditto.
15408 * m68klinux-nat.c: Ditto.
15409 * microblaze-tdep.c: Ditto.
15410 * mips-linux-tdep.c: Ditto.
15411 * mn10300-tdep.c: Ditto.
15412 * nto-tdep.c: Ditto.
15413 * opencl-lang.c: Ditto.
15415 * printcmd.c: Ditto.
15416 * regcache.c: Ditto.
15417 * remote-m32r-sdi.c: Ditto.
15419 * symfile.c: Ditto.
15421 * tilegx-linux-nat.c: Ditto.
15422 * tilegx-tdep.c: Ditto.
15423 * tracepoint.c: Ditto.
15425 * vaxbsd-nat.c: Ditto.
15426 * windows-nat.c: Ditto.
15427 * xtensa-tdep.c: Ditto.
15429 2014-01-07 Yao Qi <yao@codesourcery.com>
15431 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15433 2014-01-07 Yao Qi <yao@codesourcery.com>
15434 Joel Brobecker <brobecker@adacore.com>
15436 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15437 (pdc_write_regs): Likewise.
15438 (fetch_regs_kernel_thread): Likewise.
15439 (store_regs_kernel_thread): Likewise.
15441 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15443 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15444 tagged type objects to their actual type.
15446 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15448 * ada-valprint.c (print_field_values): Add "language" parameter.
15449 Update calls to print_field_values and print_variant_part.
15450 Pass new parameter "language" in call to val_print instead
15451 of "current_language". Replace call to ada_val_print by call
15453 (print_variant_part): Add "language" parameter.
15454 (ada_val_print_struct_union): Update call to print_field_values.
15456 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15458 * ada-valprint.c (ui_memcpy): Delete.
15459 (ada_print_floating): Update documentation. Add empty line
15460 between between function documentation and implementation.
15461 Delete variable "buffer". Use ui_file_xstrdup in place of
15462 ui_file_put. Minor adjustments following this change.
15464 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15466 * ada-valprint.c (ada_val_print_string): New function,
15467 extracted from ada_val_print_array.
15468 (ada_val_print_array): Replace extracted code by call
15469 to ada_val_print_string followed by a return. Move
15470 "else" branch to the function's top block.
15472 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15474 * ada-valprint.c (ada_val_print_array): Move implementation
15475 down. Rename parameter "offset" and "val" into "offset_aligned"
15476 and "original_value" respectively. Add parameter "offset".
15478 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15480 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15481 re-organizing the code. Change the "???" message printed
15482 when target type is a TYPE_CODE_UNDEF into
15483 "<ref to undefined type>".
15485 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15487 * ada-valprint.c (print_record): Delete, implementation inlined...
15488 (ada_val_print_struct_union): ... here. Remove call to
15489 ada_check_typedef in inlined implementation.
15491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15493 * ada-valprint.c (ada_val_print_gnat_array): New function,
15494 extracted from ada_val_print_1;
15495 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15496 (ada_val_print_flt, ada_val_print_struct_union)
15497 (ada_val_print_ref): Likewise.
15498 (ada_val_print_1): Delete variables i and elttype.
15499 Replace extracted-out code by call to corresponding
15502 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15504 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15508 * ada-valprint.c (ada_val_print_1): Replace calls to
15509 ada_val_print_1 by calls to val_print.
15511 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15513 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15514 Update calls to self accordingly. Replace calls to c_val_print
15515 by calls to val_print.
15517 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15519 * ada-valprint.c (print_record): Delete declaration.
15520 (adjust_type_signedness, ada_val_print_1): Likewise.
15521 (ada_val_print): Move function implementation down.
15522 (print_variant_part, print_field_values, print_record):
15523 Move function implementation up.
15525 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15527 * python/py-type.c (typy_get_name): New function.
15528 (type_object_getset): Add entry for attribute "name".
15529 * NEWS: Add entry mentioning this new attribute.
15531 2014-01-07 Yao Qi <yao@codesourcery.com>
15533 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15536 2014-01-07 Yao Qi <yao@codesourcery.com>
15538 * gnu-nat.c (info_port_rights): Add qualifier const to
15541 2014-01-07 Yao Qi <yao@codesourcery.com>
15543 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15545 2014-01-07 Yao Qi <yao@codesourcery.com>
15547 * gnu-nat.c (make_inf) Update declaration.
15548 (make_inf): Make it static.
15549 (inf_set_traced): Likewise.
15550 (inf_port_to_thread, inf_task_died_status): Likewise.
15552 2014-01-07 Yao Qi <yao@codesourcery.com>
15554 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15556 2014-01-07 Yao Qi <yao@codesourcery.com>
15558 * gnu-nat.c (_initialize_gnu_nat): Declare.
15560 2014-01-07 Yao Qi <yao@codesourcery.com>
15562 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15564 (struct gdbarch_info) <byte_order>: Change type to
15566 <byte_order_for_code>: Likewise.
15567 * gdbarch.c, gdbarch.h: Regenerated.
15569 2014-01-06 Sasha Smundak <asmundak@google.com>
15571 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15573 2014-01-06 Tom Tromey <tromey@redhat.com>
15575 * doublest.c (convert_doublest_to_floatformat): Use const, not
15577 * somread.c (som_symtab_read): Likewise.
15579 2014-01-07 Hui Zhu <hui@codesourcery.com>
15581 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15582 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15583 (gdb_bfd_fopen): Ditto.
15584 (gdb_bfd_openr): Ditto.
15585 (gdb_bfd_openw): Ditto.
15586 (gdb_bfd_openr_iovec): Ditto.
15587 (gdb_bfd_fdopenr): Ditto.
15588 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15589 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15591 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15593 * symfile-mem.c (symbol_file_add_from_memory): Removed
15594 gdb_bfd_stash_filename.
15596 2014-01-03 Doug Evans <dje@google.com>
15598 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15601 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15603 Update year range in copyright notice of all files.
15605 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15607 * top.c (print_gdb_version): Set copyright year to 2014.
15609 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15611 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15613 For older changes see ChangeLog-2013.
15619 version-control: never