1 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
3 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
4 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
5 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
6 (supply_gregset, supply_fpregset): Remove.
7 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
8 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
11 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
13 Add add-auto-load-scripts-directory.
14 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
15 * auto-load.c (add_auto_load_dir): New function.
16 (_initialize_auto_load): Install it.
18 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
20 Pushed by Joel Brobecker <brobecker@adacore.com>.
21 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
23 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
25 * eval.c (evaluate_subexp): Check that the thread stack temporaries
26 are not already enabled before enabling them.
28 2014-11-29 Yao Qi <yao@codesourcery.com>
30 * arm-tdep.c (arm_analyze_prologue): Move local variables
31 'framereg' and 'framesize' to inner block. Move code to
34 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
36 * eval.c: Include gdbthread.h.
37 (evaluate_subexp): Enable thread stack temporaries before
38 evaluating a complete expression and clean them up after the
39 evaluation is complete.
40 * gdbthread.h: Include common/vec.h.
41 (value_ptr): New typedef.
42 (VEC (value_ptr)): New vector type.
43 (value_vec): New typedef.
44 (struct thread_info): Add new fields stack_temporaries_enabled
45 and stack_temporaries.
46 (enable_thread_stack_temporaries)
47 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
48 (get_last_thread_stack_temporary)
49 (value_in_thread_stack_temporaries): Declare.
50 * gdbtypes.c (class_or_union_p): New function.
51 * gdbtypes.h (class_or_union_p): Declare.
52 * infcall.c (call_function_by_hand): Store return values of class
53 type as temporaries on stack.
54 * thread.c (enable_thread_stack_temporaries): New function.
55 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
56 (get_last_thread_stack_temporary): Likewise.
57 (value_in_thread_stack_temporaries): Likewise.
58 * value.c (value_force_lval): New function.
59 * value.h (value_force_lval): Declare.
61 2014-11-28 Pierre Muller <muller@sourceware.org>
63 Pushed by Joel Brobecker <brobecker@adacore.com>.
64 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
67 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
69 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
70 * config/sparc/linux.mh (NATDEPFILES): Likewise.
71 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
72 * m68klinux-nat.c (fetch_core_registers): Remove.
73 (linux_elf_core_fns): Remove.
74 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
76 2014-11-28 Joel Brobecker <brobecker@adacore.com>
78 * utils.c (gdb_realpath): Rework comment about handling on
81 2014-11-28 Yao Qi <yao@codesourcery.com>
83 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
85 * gnulib/aclocal.m4: Re-generated.
86 * gnulib/config.in: Re-generated.
87 * gnulib/configure: Re-generated.
88 * gnulib/import/Makefile.am: Re-generated.
89 * gnulib/import/Makefile.in: Re-generated.
90 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
91 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
92 * import/basename-lgpl.c: New file.
93 * import/dirname-lgpl.c: New file.
94 * import/dirname.h: New file.
95 * import/m4/dirname.m4: New file.
96 * import/m4/malloc.m4: New file.
97 * import/m4/rename.m4: New file.
98 * import/m4/rmdir.m4: New file.
99 * import/m4/stdio_h.m4: New file.
100 * import/malloc.c: New file.
101 * import/rename.c: New file.
102 * import/rmdir.c: New file.
103 * import/same-inode.h: New file.
104 * import/stdio.c: New file.
105 * import/stdio.in.h: New file.
106 * import/stripslash.c: New file.
108 2014-11-28 Yao Qi <yao@codesourcery.com>
110 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
112 * config.in: Re-generated.
113 * configure: Re-generated.
114 * utils.c (gdb_realpath): Remove code calling realpath,
115 canonicalize_file_name and pathconf.
116 [!_WIN32]: Call canonicalize_file_name.
118 2014-11-28 Yao Qi <yao@codesourcery.com>
120 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
122 * aclocal.m4: Re-generated.
123 * config.in: Re-generated.
124 * configure: Re-generated.
125 * import/Makefile.am: Re-generated.
126 * import/Makefile.in: Re-generated.
127 * import/m4/gnulib-cache.m4: Re-generated.
128 * import/m4/gnulib-comp.m4: Re-generated.
129 * import/canonicalize-lgpl.c: New file.
130 * import/extra/snippet/_Noreturn.h: New file.
131 * import/m4/canonicalize.m4: New file.
132 * import/m4/double-slash-root.m4: New file.
133 * import/m4/eealloc.m4: New file.
134 * import/m4/malloca.m4: New file.
135 * import/m4/nocrash.m4: New file.
136 * import/m4/stdlib_h.m4: New file.
137 * import/malloca.c: New file.
138 * import/malloca.h: New file.
139 * import/malloca.valgrind: New file.
141 2014-11-28 Yao Qi <yao@codesourcery.com>
143 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
144 * config.in, configure: Regenerate.
145 * symfile.c (find_separate_debug_file_by_debuglink): Remove
146 code checking HAVE_LSTAT is defined.
148 2014-11-28 Yao Qi <yao@codesourcery.com>
150 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
152 * gnulib/aclocal.m4: Re-generated.
153 * gnulib/config.in: Re-generated.
154 * gnulib/configure: Re-generated.
155 * gnulib/import/Makefile.am: Re-generated.
156 * gnulib/import/Makefile.in: Re-generated.
157 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
158 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
159 * gnulib/import/lstat.c: New file.
160 * gnulib/import/m4/lstat.m4: New file.
162 2014-11-28 Yao Qi <yao@codesourcery.com>
164 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
165 * config.in, configure: Re-generate.
166 * inf-child.c (inf_child_fileio_readlink): Don't check
167 HAVE_READLINK is defined.
169 2014-11-28 Yao Qi <yao@codesourcery.com>
171 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
172 * gnulib/aclocal.m4: Re-generated.
173 * gnulib/config.in: Likewise.
174 * gnulib/configure: Likewise.
175 * gnulib/import/Makefile.am: Likewise.
176 * gnulib/import/Makefile.in: Likewise.
177 * gnulib/import/m4/gnulib-cache.m4: Likewise.
178 * gnulib/import/m4/gnulib-comp.m4: Likewise.
179 * gnulib/import/dosname.h: New file
180 * gnulib/import/m4/largefile.m4: New file.
181 * gnulib/import/m4/readlink.m4: New file.
182 * gnulib/import/m4/stat.m4: New file.
183 * gnulib/import/readlink.c: New file.
184 * gnulib/import/stat.c: New file.
186 2014-11-26 Mark Wielaard <mjw@redhat.com>
188 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
189 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
191 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
193 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
194 that there can be only one stack adjustment in the prologue
195 with tests to detect specific disallowed stack adjustments.
197 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
199 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
202 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
204 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
205 the instruction as well as reading it from memory.
206 (nios2_match_add): New.
207 (nios2_match_sub): New.
208 (nios2_match_addi): New.
209 (nios2_match_orhi): New.
210 (nios2_match_stw): New.
211 (nios2_match_ldw): New.
212 (nios2_match_rdctl): New.
213 (enum branch_condition): New.
214 (nios2_match_branch): New.
215 (nios2_match_jmpi): New.
216 (nios2_match_calli): New.
217 (nios2_match_jmpr): New.
218 (nios2_match_callr): New.
219 (nios2_match_break): New.
220 (nios2_match_trap): New.
221 (nios2_in_epilogue_p): Rewrite to use new functions.
222 (nios2_analyze_prologue): Likewise.
223 (nios2_skip_prologue): Delete unused local limit_pc.
224 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
225 (nios2_get_next_pc): Rewrite to use new functions.
227 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
229 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
231 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
233 Pushed by Joel Brobecker <brobecker@adacore.com>
234 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
235 elements pi_len by the size of the elements before calling
237 (inf_validate_task_sc): Likewise, and properly deallocate the
240 2014-11-23 Doug Evans <xdje42@gmail.com>
242 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
243 number and name if present. All callers updated.
244 (dump_fn_fieldlists): Fix indentation of args.
246 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
248 * MAINTAINERS (Write After Approval): Add myself.
250 2014-11-23 Joel Brobecker <brobecker@adacore.com>
252 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
253 to a bp_call_dummy breakpoint type.
255 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
257 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
258 registering the signal handler.
260 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
262 * event-top.h (call_stdin_event_handler_again_p): Declare.
263 * event-top.c (call_stdin_event_handler_again_p): Define.
264 (stdin_event_handler): Use it.
265 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
266 handler again if there is pending input following a
269 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
271 Pushed by Joel Brobecker <brobecker@adacore.com>
272 * linux-fork.c (checkpoint_command): Print index of new
273 checkpoint in response message.
275 2014-11-23 Yao Qi <yao@codesourcery.com>
277 * valprint.c (read_string): Move local variables 'found_nul',
278 'chunksize' and 'limit' to inner scope. Update comments.
280 2014-11-22 Doug Evans <xdje42@gmail.com>
282 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
284 (search_symbols): Fix comments and whitespace.
286 2014-11-22 Doug Evans <xdje42@gmail.com>
288 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
290 2014-11-21 Doug Evans <dje@google.com>
292 * psymtab.c (psymtab_search_name): Fix whitespace.
294 2014-11-21 Yao Qi <yao@codesourcery.com>
296 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
298 * gnulib/import/Makefile.am: Re-generated.
299 * gnulib/import/Makefile.in: Likewise.
300 * gnulib/import/m4/gnulib-cache.m4: Likewise.
302 2014-11-21 Yao Qi <yao@codesourcery.com>
304 * gdb_wchar.h: Include wchar.h and wctype.h.
305 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
306 include wchar.h and wctype.h.
307 Don't check HAVE_WCHAR_H.
309 2014-11-21 Yao Qi <yao@codesourcery.com>
311 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
313 * gnulib/import/Makefile.am: Re-generated.
314 * gnulib/import/Makefile.in: Likewise.
315 * gnulib/import/m4/gnulib-cache.m4: Likewise.
317 2014-11-21 Yao Qi <yao@codesourcery.com>
319 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
321 * gnulib/import/Makefile.am: Re-generated.
322 * gnulib/import/Makefile.in: Likewise.
323 * gnulib/import/m4/gnulib-cache.m4: Likewise.
325 2014-11-21 Yao Qi <yao@codesourcery.com>
327 * common/common-defs.h: Include alloca.h
328 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
329 * configure: Re-generated.
330 * defs.h: Remove code handling alloca.
331 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
334 2014-11-21 Yao Qi <yao@codesourcery.com>
336 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
338 * gnulib/import/Makefile.am: Re-generated.
339 * gnulib/import/Makefile.in: Likewise..
340 * gnulib/import/m4/gnulib-cache.m4: Likewise.
342 2014-11-21 Yao Qi <yao@codesourcery.com>
344 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
347 2014-11-21 Joel Brobecker <brobecker@adacore.com>
349 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
350 flag_unsigned if HIGH_BOUND is constant and negative.
352 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
355 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
356 modifier from "struct gdbarch" when compiling without Expat (XML)
358 (get_syscall_by_number): Likewise.
359 (get_syscall_by_name): Likewise.
360 (get_syscall_names): Likewise.
362 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
365 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
366 set_xml_syscall_file_name to provide gdbarch.
367 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
368 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
369 * breakpoint.c (print_it_catch_syscall): Adjust call to
370 get_syscall_by_number to provide gdbarch.
371 (print_one_catch_syscall): Likewise.
372 (print_mention_catch_syscall): Likewise.
373 (print_recreate_catch_syscall): Likewise.
374 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
375 and get_syscall_by_name to provide gdbarch.
376 (catch_syscall_completer): Adjust call to get_syscall_names to
378 * gdbarch.c: Regenerate.
379 * gdbarch.h: Likewise.
380 * gdbarch.sh: Forward declare "struct syscalls_info".
381 (xml_syscall_file): New variable.
382 (syscalls_info): Likewise.
383 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
384 set_xml_syscall_file_name to provide gdbarch.
385 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
386 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
387 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
388 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
389 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
390 * xml-syscall.c: Include gdbarch.h.
391 (set_xml_syscall_file_name): Accept gdbarch parameter.
392 (get_syscall_by_number): Likewise.
393 (get_syscall_by_name): Likewise.
394 (get_syscall_names): Likewise.
395 (my_gdb_datadir): Delete global variable.
396 (struct syscalls_info) <my_gdb_datadir>: New variable.
397 (struct syscalls_info) <sysinfo>: Rename variable to
399 (sysinfo): Delete global variable.
400 (have_initialized_sysinfo): Likewise.
401 (xml_syscall_file): Likewise.
402 (sysinfo_free_syscalls_desc): Rename to...
403 (syscalls_info_free_syscalls_desc): ... this.
404 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
405 code to the new layout of "struct syscalls_info".
406 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
408 (syscall_create_syscall_desc): Likewise.
409 (syscall_start_syscall): Likewise.
410 (syscall_parse_xml): Likewise.
411 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
412 (init_sysinfo): Rename to...
413 (init_syscalls_info): ...this. Add gdbarch as a parameter.
414 Adjust function to deal with gdbarch.
415 (xml_get_syscall_number): Delete parameter sysinfo. Accept
416 gdbarch as a parameter. Adjust code.
417 (xml_get_syscall_name): Likewise.
418 (xml_list_of_syscalls): Likewise.
419 (set_xml_syscall_file_name): Accept gdbarch as parameter.
420 (get_syscall_by_number): Likewise.
421 (get_syscall_by_name): Likewise.
422 (get_syscall_names): Likewise.
423 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
424 (get_syscall_by_number): Likewise.
425 (get_syscall_by_name): Likewise.
426 (get_syscall_names): Likewise.
428 2014-11-20 Doug Evans <xdje42@gmail.com>
430 Split struct symtab into two: struct symtab and compunit_symtab.
431 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
432 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
433 to "struct compunit_symtab *". All callers updated.
434 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
435 "struct symtab *" argument to "struct compunit_symtab *".
437 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
438 result to "struct compunit_symtab *". All callers updated.
439 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
440 Change result to "struct compunit_symtab *". All callers updated.
441 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
442 hange type to "struct compunit_symtab *". All uses updated.
443 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
444 Change type to "struct compunit_symtab *". All uses updated.
445 * buildsym.c (struct buildsym_compunit): New struct.
446 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
447 (buildsym_compunit): New static global.
448 (finish_block_internal): Update to fetch objfile from
450 (make_blockvector): Delete objfile argument.
451 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
452 debugformat, producer.
453 (start_buildsym_compunit): New function.
454 (free_buildsym_compunit): Renamed from free_subfiles_list.
456 (patch_subfile_names): Rewrite to use buildsym_compunit.
457 (get_compunit_symtab): New function.
458 (get_macro_table): Delete argument comp_dir. All callers updated.
459 (start_symtab): Change result to "struct compunit_symtab *".
460 All callers updated. Create the subfile of the main source file.
461 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
462 (reset_symtab_globals): Update.
463 (end_symtab_get_static_block): Update to use buildsym_compunit.
464 (end_symtab_without_blockvector): Rewrite.
465 (end_symtab_with_blockvector): Change result to
466 "struct compunit_symtab *". All callers updated.
467 Update to use buildsym_compunit. Don't set symtab->dirname,
468 instead set it in the compunit.
469 Explicitly make sure main symtab is first in its list.
470 Set debugformat, producer, blockvector, block_line_section, and
471 macrotable in the compunit.
472 (end_symtab_from_static_block): Change result to
473 "struct compunit_symtab *". All callers updated.
474 (end_symtab, end_expandable_symtab): Ditto.
475 (set_missing_symtab): Change symtab argument to
476 "struct compunit_symtab *". All callers updated.
477 (augment_type_symtab): Ditto.
478 (record_debugformat): Update to use buildsym_compunit.
479 (record_producer): Update to use buildsym_compunit.
480 * buildsym.h (struct subfile) <dirname>: Delete.
481 <producer, debugformat>: Delete.
482 <buildsym_compunit>: New member.
483 (get_compunit_symtab): Declare.
484 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
485 from primary_symtab. Change type to "struct compunit_symtab *".
487 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
489 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
490 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
491 symtab. Change type to "struct compunit_symtab *". All uses updated.
492 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
494 (dw2_find_last_source_symtab): Ditto.
495 (dw2_lookup_symbol): Ditto.
496 (recursively_find_pc_sect_compunit_symtab): Renamed from
497 recursively_find_pc_sect_symtab. Change result to
498 "struct compunit_symtab *". All callers updated.
499 (dw2_find_pc_sect_compunit_symtab): Renamed from
500 dw2_find_pc_sect_symtab. Change result to
501 "struct compunit_symtab *". All callers updated.
502 (get_compunit_symtab): Renamed from get_symtab. Change result to
503 "struct compunit_symtab *". All callers updated.
504 (recursively_compute_inclusions): Change type of immediate_parent
505 argument to "struct compunit_symtab *". All callers updated.
506 (compute_compunit_symtab_includes): Renamed from
507 compute_symtab_includes. All callers updated. Rewrite to compute
508 includes of compunit_symtabs and not symtabs.
509 (process_full_comp_unit): Update to work with struct compunit_symtab.
510 (process_full_type_unit): Ditto.
511 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
512 (dwarf_decode_lines): Remove special case handling of main subfile.
513 (macro_start_file): Delete argument comp_dir. All callers updated.
514 (dwarf_decode_macro_bytes): Ditto.
515 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
516 use struct compunit_symtab.
517 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
518 * jit.c (finalize_symtab): Build compunit_symtab.
519 * jv-lang.c (get_java_class_symtab): Change result to
520 "struct compunit_symtab *". All callers updated.
521 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
522 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
523 comp_dir. Change type to "struct compunit_symtab *".
525 (new_macro_table): Change comp_dir argument to cust,
526 "struct compunit_symtab *". All callers updated.
527 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
528 nr_primary_symtabs. All uses updated.
529 (count_symtabs_and_blocks): Update to handle compunits.
530 (report_command_stats): Update output, "primary symtabs" renamed to
532 * mdebugread.c (new_symtab): Change result to
533 "struct compunit_symtab *". All callers updated.
534 (parse_procedure): Change type of search_symtab argument to
535 "struct compunit_symtab *". All callers updated.
536 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
538 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
539 symtabs. Change type to "struct compunit_symtab *". All uses updated.
540 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
542 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
544 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
545 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
546 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
547 symtab. Change type to "struct compunit_symtab *". All uses updated.
548 * psymtab.c (psymtab_to_symtab): Change result type to
549 "struct compunit_symtab *". All callers updated.
550 (find_pc_sect_compunit_symtab_from_partial): Renamed from
551 find_pc_sect_symtab_from_partial. Change result type to
552 "struct compunit_symtab *". All callers updated.
553 (lookup_symbol_aux_psymtabs): Change result type to
554 "struct compunit_symtab *". All callers updated.
555 (find_last_source_symtab_from_partial): Ditto.
556 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
557 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
558 and macro_table from compunit.
559 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
560 type to "struct compunit_symtab *". All callers updated.
561 (debug_qf_lookup_symbol): Ditto.
562 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
563 debug_qf_find_pc_sect_symtab, change result type to
564 "struct compunit_symtab *". All callers updated.
565 * symfile.c (allocate_symtab): Delete objfile argument.
567 (allocate_compunit_symtab): New function.
568 (add_compunit_symtab_to_objfile): New function.
569 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
570 Change result type to "struct compunit_symtab *". All uses updated.
571 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
572 Change result type to "struct compunit_symtab *". All uses updated.
573 * symmisc.c (print_objfile_statistics): Compute blockvector count in
575 (dump_symtab_1): Update test for primary source symtab.
576 (maintenance_info_symtabs): Update to handle compunit symtabs.
577 (maintenance_check_symtabs): Ditto.
578 * symtab.c (set_primary_symtab): Delete.
579 (compunit_primary_filetab): New function.
580 (compunit_language): New function.
581 (iterate_over_some_symtabs): Change type of arguments "first",
582 "after_last" to "struct compunit_symtab *". All callers updated.
583 Update to loop over symtabs in each compunit.
584 (error_in_psymtab_expansion): Rename symtab argument to cust,
585 and change type to "struct compunit_symtab *". All callers updated.
586 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
587 Change result type to "struct compunit_symtab *". All callers updated.
588 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
589 Change result type to "struct compunit_symtab *". All callers updated.
590 (find_pc_sect_line): Only loop over symtabs within selected compunit
591 instead of all symtabs in the objfile.
592 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
593 <compunit_symtab> New member.
594 <block_line_section>: Moved to compunit_symtab.
595 <locations_valid>: Ditto.
596 <epilogue_unwind_valid>: Ditto.
597 <macro_table>: Ditto.
599 <debugformat>: Ditto.
602 <call_site_htab>: Ditto.
606 (SYMTAB_COMPUNIT): New macro.
607 (SYMTAB_BLOCKVECTOR): Update definition.
608 (SYMTAB_OBJFILE): Update definition.
609 (SYMTAB_DIRNAME): Update definition.
610 (struct compunit_symtab): New type. Common members among all source
611 symtabs within a compilation unit moved here. All uses updated.
612 (COMPUNIT_OBJFILE): New macro.
613 (COMPUNIT_FILETABS): New macro.
614 (COMPUNIT_DEBUGFORMAT): New macro.
615 (COMPUNIT_PRODUCER): New macro.
616 (COMPUNIT_DIRNAME): New macro.
617 (COMPUNIT_BLOCKVECTOR): New macro.
618 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
619 (COMPUNIT_LOCATIONS_VALID): New macro.
620 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
621 (COMPUNIT_CALL_SITE_HTAB): New macro.
622 (COMPUNIT_MACRO_TABLE): New macro.
623 (ALL_COMPUNIT_FILETABS): New macro.
624 (compunit_symtab_ptr): New typedef.
625 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
627 2014-11-20 Joel Brobecker <brobecker@adacore.com>
629 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
630 if the TYPE_CODE of range_type's base type does not match
631 the TYPE_CODE of encoding_type's base type.
633 2014-11-19 Joel Brobecker <brobecker@adacore.com>
635 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
638 2014-11-19 Joel Brobecker <brobecker@adacore.com>
640 * ada-lang.c (ada_is_redundant_range_encoding): New function.
641 (ada_is_redundant_index_type_desc): New function.
642 (to_fixed_array_type): Ignore parallel XA type if redundant.
644 2014-11-19 Joel Brobecker <brobecker@adacore.com>
646 * ada-lang.c (constrained_packed_array_type): Set the length
647 of the return array as if both bounds where zero if that
648 returned array's index type is dynamic.
650 2014-11-19 Yao Qi <yao@codesourcery.com>
652 * config/i386/go32.mh (CC): Remove.
654 2014-11-18 Doug Evans <xdje42@gmail.com>
656 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
659 2014-11-18 Doug Evans <xdje42@gmail.com>
661 * buildsym.c (buildsym_objfile): New static global.
662 (buildsym_comp_dir): New static global.
663 (finish_block_internal): Delete arg objfile. All callers updated.
664 (finish_block): Delete arg objfile. All callers updated.
665 (start_subfile): Delete arg dirname. All callers updated.
666 (patch_subfile_names): Update buildsym_comp_dir.
667 (get_macro_table): Delete arg objfile. All callers updated.
668 (start_symtab): New arg objfile. All callers updated.
669 Rename arg dirname to comp_dir.
670 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
671 (end_symtab_get_static_block): Delete arg objfile. All callers
673 (end_symtab_without_blockvector): Ditto.
674 (end_symtab_with_blockvector): Ditto.
675 (end_symtab_from_static_block): Ditto.
677 (end_expandable_symtab): Ditto.
678 (augment_type_symtab): Ditto.
679 * coffread.c (coff_start_symtab): New arg objfile. All callers
682 2014-11-18 Doug Evans <xdje42@gmail.com>
684 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
687 2014-11-18 Doug Evans <xdje42@gmail.com>
689 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
690 symtab.dirname updated to use it.
692 2014-11-18 Doug Evans <xdje42@gmail.com>
694 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
695 symtab.objfile updated to use it.
697 2014-11-18 Doug Evans <xdje42@gmail.com>
699 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
701 2014-11-18 Doug Evans <xdje42@gmail.com>
703 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
705 * findvar.c (default_read_var_value): Ditto.
706 * jv-lang.c (add_class_symtab_symbol): Ditto.
707 * parse.c (operator_check_standard): Ditto.
708 * printcmd.c (address_info): Ditto.
709 * symtab.c (fixup_symbol_section): Ditto.
710 (skip_prologue_sal): Ditto.
711 * tracepoint.c (scope_info): Ditto.
712 * valops.c (find_function_in_inferior): Ditto.
713 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
714 * python/py-symbol.c (set_symbol): Ditto.
716 2014-11-18 Doug Evans <xdje42@gmail.com>
718 * buildsym.c (main_subfile): New static global.
719 (free_subfiles_list): New function.
720 (start_symtab): Set main_subfile.
721 (restart_symtab): Replace init of subfiles, current_subfile with
722 call to free_subfiles_list.
723 (watch_main_source_file_lossage): Use main_subfile.
724 (reset_symtab_globals): Replace init of current_subfile with call
725 to free_subfiles_list.
726 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
727 functions, split out from ...
728 (end_symtab_from_static_block): ... here. Rewrite to call them.
730 2014-11-18 Doug Evans <xdje42@gmail.com>
732 The result of symtab expansion is always a primary symtab.
733 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
734 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
735 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
736 (psymtab_to_symtab): Add comment and assert.
737 (map_matching_symbols_psymtab): Remove unnecessary test for
740 2014-11-15 Doug Evans <xdje42@gmail.com>
743 * symtab.c (find_pc_line_symtab): New function.
744 * symtab.h (find_pc_line_symtab): Declare.
745 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
747 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
748 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
749 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
750 * tui/tui-win.c (make_visible_with_new_height): Ditto.
751 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
752 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
754 2014-11-15 Doug Evans <xdje42@gmail.com>
756 * symtab.c (expand_symtab_containing_pc): Renamed from
757 find_pc_sect_symtab_via_partial. All callers updated.
759 2014-11-15 Yao Qi <yao@codesourcery.com>
761 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
763 2014-11-14 Joel Brobecker <brobecker@adacore.com>
765 * common/common-defs.h: Move <stdarg.h> #include ahead of
768 2014-11-14 Pedro Alves <palves@redhat.com>
770 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
771 [!PHONY_ICONV] (gdb_iconv): New function.
772 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
774 2014-11-13 Doug Evans <dje@google.com>
777 * dwarf2read.c (find_slot_in_mapped_hash): Handle
778 "(anonymous namespace)".
780 2014-11-13 Doug Evans <dje@google.com>
782 * dwarf2read.c (update_enumeration_type_from_children): Avoid
785 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
787 * NEWS (maint set target-async): Fix typo.
789 2014-11-12 Pedro Alves <palves@redhat.com>
791 * infrun.c (enum infwait_states, infwait_state): Delete.
793 2014-11-12 Pedro Alves <palves@redhat.com>
795 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
796 Rewrite stepping over a permanent breakpoint.
797 (thread_still_needs_step_over, proceed): Don't set
798 stepping_over_breakpoint for permanent breakpoints.
799 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
800 single-step breakpoints out of the target on hardware step
802 (process_event_stop_test): If stepping a permanent breakpoint
803 doesn't hit the step-resume breakpoint, delete the step-resume
805 (switch_back_to_stepped_thread): Also check if the stepped thread
806 has advanced already on hardware step targets.
807 (currently_stepping): Return true if the thread stepped a
810 2014-11-12 Pedro Alves <palves@redhat.com>
812 Mark locations as permanent, not the whole breakpoint.
813 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
814 (mark_breakpoints_out): Don't mark permanent breakpoints as
816 (breakpoint_init_inferior): Use mark_breakpoints_out.
817 (breakpoint_here_p): Adjust.
818 (bpstat_stop_status, describe_other_breakpoints): Remove handling
819 of permanent breakpoints.
820 (make_breakpoint_permanent): Mark each location as permanent,
821 instead of marking the breakpoint.
822 (add_location_to_breakpoint): If the location is permanent, mark
823 it as such, and as inserted.
824 (init_breakpoint_sal): Don't make the breakpoint permanent here.
825 (bp_location_compare, update_global_location_list): Adjust.
826 (update_breakpoint_locations): Don't make the breakpoint permanent
828 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
830 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
831 (struct bp_location) <permanent>: New field.
832 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
833 reference to bp_permanent.
835 2014-11-12 Pedro Alves <palves@redhat.com>
837 * arch-utils.c (default_skip_permanent_breakpoint): New function.
838 * arch-utils.h (default_skip_permanent_breakpoint): New
840 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
841 Install default_skip_permanent_breakpoint as default method.
842 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
843 (i386_gdbarch_init): Don't install it.
844 * infrun.c (resume): Assume there's always a
845 gdbarch_skip_permanent_breakpoint implementation.
846 * gdbarch.h, gdbarch.c: Regenerate.
848 2014-11-11 Daniel Colascione <dancol@dancol.org>
850 Warn about cross-PID-namespace debugging.
851 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
852 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
853 * linux-thread-db.c (check_pid_namespace_match): New function.
854 (thread_db_inferior_created): Call it.
856 2014-11-10 Doug Evans <xdje42@gmail.com>
858 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
859 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
861 2014-11-10 Doug Evans <xdje42@gmail.com>
863 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
865 2014-11-10 Doug Evans <xdje42@gmail.com>
868 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
869 (lookup_static_symbol): Move definition to new location and rewrite.
870 (lookup_symbol_in_objfile): New function.
871 (lookup_symbol_global_iterator_cb): Call it.
873 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
875 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
877 2014-11-07 Pedro Alves <palves@redhat.com>
879 * infrun.c (process_event_stop_test) <subroutine check>: Don't
880 check if we did a "nexti" inside a prologue.
881 * symtab.c (in_prologue): Delete function.
882 * symtab.h (in_prologue): Delete declaration.
884 2014-11-06 Doug Evans <xdje42@gmail.com>
886 * symtab.h (lookup_global_symbol): Improve function comment.
888 2014-11-06 Doug Evans <xdje42@gmail.com>
890 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
892 * symtab.h (lookup_global_symbol): Update decl.
893 (lookup_static_symbol): Move decl to better location.
895 2014-11-06 Doug Evans <xdje42@gmail.com>
897 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
899 2014-11-06 Doug Evans <xdje42@gmail.com>
901 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
903 (lookup_symbol_in_all_objfiles): Renamed from
904 lookup_symbol_aux_symtabs. All callers updated.
905 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
907 (lookup_symbol_in_objfile_symtabs): Renamed from
908 lookup_symbol_aux_objfile. All callers updated.
910 2014-11-06 Doug Evans <xdje42@gmail.com>
912 * symtab.c (lookup_symbol_in_block): Renamed from
913 lookup_symbol_aux_block. All callers updated.
915 2014-11-06 Doug Evans <xdje42@gmail.com>
917 * symtab.c (lookup_static_symbol): Renamed from
918 lookup_static_symbol_aux. All callers updated.
919 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
922 2014-11-06 Doug Evans <xdje42@gmail.com>
924 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
925 * block.c (block_lookup_symbol): Use it.
926 * cp-support.c (make_symbol_overload_list_block): Use it.
927 * symtab.c (iterate_over_symbols): Use it.
929 2014-11-06 Doug Evans <xdje42@gmail.com>
931 * symtab.c (lookup_block_symbol): Moved to ...
932 * block.c (block_lookup_symbol): ... here and renamed.
934 * block.h (block_lookup_symbol): Declare.
935 * symtab.h (lookup_block_symbol): Delete.
937 2014-11-06 Doug Evans <xdje42@gmail.com>
939 * ada-lang.c (ada_make_symbol_completion_list): Use
940 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
941 * symtab.c (lookup_objfile_from_block): Ditto.
943 2014-11-06 Doug Evans <xdje42@gmail.com>
945 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
948 2014-11-06 Doug Evans <xdje42@gmail.com>
950 * objfiles.c (get_objfile_arch): Constify.
951 * objfiles.h (get_objfile_arch): Update prototype.
952 * solib.c (solib_global_lookup): Fetch arch from objfile,
955 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
957 * nios2-tdep.c (wild_insn): Delete.
958 (profiler_insn, irqentry_insn): Delete.
959 (nios2_match_sequence): Delete.
960 (nios2_analyze_prologue): Update comments. Remove matching
961 of obsolete profiler_insn and irqentry_insn sequences.
963 2014-11-05 Alan Modra <amodra@gmail.com>
965 * charset.c (convert_between_encodings): Shrink obstack using
967 * minsyms.c (install_minimal_symbols): Likewise.
968 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
969 to char* before doing pointer arithmetic.
971 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
973 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
975 2014-11-04 Pedro Alves <palves@redhat.com>
977 * breakpoint.c (breakpoint_thread_match): Delete function.
978 * breakpoint.h (breakpoint_thread_match): Delete declaration.
980 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
983 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
984 the method args also under EVAL_SKIP when evaluating method
985 calls under EVAL_SKIP.
987 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
989 * dwarf2loc.c (read_pieced_value): Do big endian
990 processing only if gdb_regnum is not -1.
991 (write_pieced_value): Ditto.
993 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
995 * arm-linux-tdep.c (arm_linux_init_abi): Use
996 info.byte_order_for_code to choose endianity of breakpoint
997 instructions snippets.
999 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1001 * arm-tdep.c (extract_arm_insn): Use
1002 gdbarch_byte_order_for_code to read arm instruction.
1004 2014-11-02 Doug Evans <xdje42@gmail.com>
1006 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1008 2014-11-02 Doug Evans <xdje42@gmail.com>
1010 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1011 main_subfile before returning.
1013 2014-10-31 Doug Evans <xdje42@gmail.com>
1015 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1016 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1018 2014-10-31 Doug Evans <xdje42@gmail.com>
1020 * valops.c (value_cast_pointers): Fix whitespace.
1021 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1024 2014-10-30 Doug Evans <dje@google.com>
1026 * NEWS: Mention ability add attributes to gdb.Objfile and
1027 gdb.Progspace objects.
1028 * python/py-objfile.c (objfile_object): New member dict.
1029 (objfpy_dealloc): Py_XDECREF dict.
1030 (objfpy_initialize): Initialize dict.
1031 (objfile_getset): Add __dict__.
1032 (objfile_object_type): Set tp_dictoffset member.
1033 * python/py-progspace.c (progspace_object): New member dict.
1034 (pspy_dealloc): Py_XDECREF dict.
1035 (pspy_initialize): Initialize dict.
1036 (pspace_getset): Add __dict__.
1037 (pspace_object_type): Set tp_dictoffset member.
1039 2014-10-30 Yao Qi <yao@codesourcery.com>
1041 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1042 replace '\\' with '\\\\'.
1044 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1048 2014-10-29 Pedro Alves <palves@redhat.com>
1051 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1052 instead of assuming a thread with a stepping range is always
1055 2014-10-29 Pedro Alves <palves@redhat.com>
1058 * event-top.c (change_line_handler): Call
1059 gdb_rl_callback_handler_remove instead of
1060 rl_callback_handler_remove.
1061 (callback_handler_installed): New global.
1062 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1063 (gdb_rl_callback_handler_reinstall): New functions.
1064 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1065 gdb_rl_callback_handler_install instead of
1066 rl_callback_handler_remove and rl_callback_handler_install.
1067 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1068 instead of rl_callback_handler_remove.
1069 * event-top.h (gdb_rl_callback_handler_remove)
1070 (gdb_rl_callback_handler_install)
1071 (gdb_rl_callback_handler_reinstall): New declarations.
1072 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1074 (fetch_inferior_event): Install it.
1075 * top.c (gdb_readline_wrapper_line) Call
1076 gdb_rl_callback_handler_remove instead of
1077 rl_callback_handler_remove.
1078 (gdb_readline_wrapper_cleanup): Don't call
1079 rl_callback_handler_install.
1081 2014-10-29 Pedro Alves <palves@redhat.com>
1083 * event-top.c (command_line_handler): Clear the first byte of
1084 linebuffer, when it is first allocated.
1086 2014-10-29 Pedro Alves <palves@redhat.com>
1088 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1091 2014-10-29 Pedro Alves <palves@redhat.com>
1095 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1096 (tui_allowed_p): Delete function.
1097 * tui/tui.c: Include "interps.h".
1098 (tui_enable): Don't use tui_allowed_p. Error out here with
1099 detailed error messages if the TUI is the top level interpreter,
1100 or if output is not a terminal. Use newterm instead of initscr,
1101 and error out if initializing the terminal fails. Also error out if
1102 the terminal doesn't support cursor addressing.
1103 * tui/tui.h (tui_allowed_p): Delete declaration.
1105 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1107 * arm-tdep.c (arm_skip_stack_protector): Return early if
1108 address loaded by first "ldr" instruction does not have
1109 a corresponding minimal symbol. Update comment.
1111 2014-10-29 Yao Qi <yao@codesourcery.com>
1113 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1114 loaded address correctly of ldr instruction.
1116 2014-10-28 Pedro Alves <palves@redhat.com>
1119 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1121 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1122 thread's stepped_breakpoint field. Skip if reverse debugging.
1124 (init_thread_stepping_state, handle_signal_stop): Clear the
1125 thread's stepped_breakpoint field.
1127 2014-10-27 Pedro Alves <palves@redhat.com>
1129 * remote.c (remote_thread_alive): New, factored out from ...
1130 (remote_thread_alive): ... this.
1131 (remote_update_thread_list): Bail out before deleting threads if
1132 the target returned an empty list, and, the current thread has a
1135 2014-10-27 Pedro Alves <palves@redhat.com>
1137 * infrun.c (handle_signal_stop): Also skip handlers when a random
1138 signal arrives while handling a "stepi" or a "nexti". Set the
1139 thread's 'step_after_step_resume_breakpoint' flag.
1141 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1143 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1144 (arm_record_ld_st_imm_offset): Reimplement to cover all
1145 load/store cases for ARM opcode 010.
1146 (arm_record_ld_st_multiple): Reimplement to cover all
1147 load/store cases for ARM opcode 100.
1149 2014-10-26 Doug Evans <xdje42@gmail.com>
1151 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1153 2014-10-26 Doug Evans <xdje42@gmail.com>
1155 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1156 parameter "kind" to "block_index".
1157 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1159 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1161 2014-10-26 Doug Evans <xdje42@gmail.com>
1163 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1165 2014-10-26 Doug Evans <xdje42@gmail.com>
1167 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1170 2014-10-26 Doug Evans <xdje42@gmail.com>
1172 * parser-defs.h (block_found): Move decl from here ...
1173 * symtab.h (block_found): ... to here.
1175 2014-10-26 Doug Evans <xdje42@gmail.com>
1177 * symtab.h (struct field_of_this_result): Fix typo in comment.
1178 (lookup_symbol_in_language): Move function comment here.
1179 (lookup_symbol): Improve function comment.
1180 (basic_lookup_symbol_nonlocal): Ditto.
1181 (lookup_symbol_static, lookup_symbol_global): Ditto.
1182 (lookup_symbol_aux_block): Ditto.
1183 (lookup_language_this): Add function comment.
1184 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1186 (lookup_block_symbol): Improve function comment.
1187 (lookup_struct): Fix capitalization in function comment.
1188 (lookup_transparent_type): Add function comment.
1189 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1190 Improve function comment.
1191 (lookup_objfile_from_block): Add function comment.
1192 * symtab.c (lookup_symbol_in_language): Update function comment.
1193 (lookup_symbol, lookup_language_this): Ditto.
1194 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1195 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1196 (basic_lookup_symbol_nonlocal): Ditto.
1197 (lookup_symbol_static, lookup_symbol_global): Ditto.
1198 (lookup_transparent_type, lookup_block_symbol): Ditto.
1200 2014-10-25 Doug Evans <xdje42@gmail.com>
1202 * symtab.c (types_info): Delete forward decl.
1203 (functions_info, variables_info, sources_info): Ditto.
1204 (_initialize_symtab): Rewrite forward decl to use
1205 initialize_file_ftype.
1207 2014-10-25 Doug Evans <xdje42@gmail.com>
1209 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1211 2014-10-25 Doug Evans <xdje42@gmail.com>
1213 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1214 of local var child_die.
1216 2014-10-24 Don Breazeal <donb@codesourcery.com>
1218 * infrun.c (follow_fork_inferior): Update fork message printing
1219 to use target_terminal_ours_for_output instead of
1220 target_terminal_ours, to use _() for all format strings, to print
1221 "vfork" instead of "fork" for vforks, and to add a detach message.
1222 (handle_vfork_child_exec_or_exit): Update message printing to use
1223 target_terminal_ours_for_output instead of target_terminal_ours, to
1224 use _() for all format strings, and to fix some formatting.
1226 2014-10-24 Pedro Alves <palves@redhat.com>
1228 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1229 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1230 * config/vax/vax.mh: Delete.
1231 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1232 obsolete configurations section.
1233 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1234 * vax-nat.c: Delete file.
1236 2014-10-24 Pedro Alves <palves@redhat.com>
1238 * NEWS (Removed targets): Add OS/arch column.
1240 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1242 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1243 on the arg type of a constructor only if it is of reference type.
1245 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1247 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1248 accessors and constants from nios2 opcodes update.
1249 (nios2_get_next_pc): Likewise.
1251 2014-10-19 Doug Evans <xdje42@gmail.com>
1253 * gdbthread.h (set_running): Fix comment.
1254 (set_executing, finish_thread_state): Fix comment.
1256 2014-10-18 Doug Evans <xdje42@gmail.com>
1258 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1260 2014-10-17 Doug Evans <dje@google.com>
1262 * NEWS: Mention new event gdb.clear_objfiles.
1263 * python/py-event.h (emit_clear_objfiles_event): Clear
1264 * python/py-events.h (events_object): New member clear_objfiles.
1265 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1267 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1268 emit clear_objfiles event.
1269 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1271 (emit_clear_objfiles_event): New function.
1272 (clear_objfiles): New event.
1273 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1275 * python/python.c (_initialize_python): Call
1276 gdbpy_initialize_clear_objfiles_event.
1278 2014-10-17 Doug Evans <dje@google.com>
1280 * NEWS: Mention new gdb.Objfile.progspace attribute.
1281 * python/py-objfile.c (objfpy_get_progspace): New function.
1282 (objfile_getset): New entry for "progspace".
1284 2014-10-17 Pedro Alves <palves@redhat.com>
1287 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1288 returns a copy of the input.
1289 (run_command_1, continue_command, step_1, jump_command)
1290 (signal_command, until_command, advance_command, finish_command)
1291 (attach_command): Adjust and install a cleanup to free the
1294 2014-10-17 Pedro Alves <palves@redhat.com>
1297 * infcmd.c (continue_1): If continuing all threads in the
1298 foreground, make sure the inferior's terminal settings are put in
1301 2014-10-17 Pedro Alves <palves@redhat.com>
1304 * annotate.c (annotate_breakpoints_invalid): Use
1305 target_terminal_our_for_output instead of target_terminal_ours.
1306 Give back the terminal to the target.
1307 (annotate_frames_invalid): Likewise.
1309 2014-10-17 Pedro Alves <palves@redhat.com>
1311 * target.c (enum terminal_state): New enum.
1312 (terminal_state): New global.
1313 (target_terminal_init): New function.
1314 (target_terminal_inferior): Skip if inferior already owns the
1316 (target_terminal_ours, target_terminal_ours_for_output): New
1318 * target.h (target_terminal_init): Convert to function prototype.
1319 (target_terminal_ours_for_output): Convert to function prototype
1321 (target_terminal_ours): Convert to function prototype and tweak
1323 * windows-nat.c (do_initial_windows_stuff): Call
1324 target_terminal_init instead of child_terminal_init_with_pgrp.
1326 2014-10-17 Pedro Alves <palves@redhat.com>
1328 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1329 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1330 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1332 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1333 * ada-lang.h [__alpha__ && __osf__]
1334 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1335 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1336 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1338 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1340 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1341 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1342 * configure: Regenerate.
1343 * configure.ac: Remove references to osf.
1344 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1345 section. Remove all other references to osf.
1346 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1347 Remove all other references to osf.
1348 * dec-thread.c: Delete file.
1349 * defs.h (GDB_OSABI_OSF1): Delete.
1350 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1352 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1353 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1355 (unconditionally_kill_inferior)
1356 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1357 * solib-osf.c: Delete file.
1359 2014-10-17 Pedro Alves <palves@redhat.com>
1361 * remote.c (clear_threads_listing_context): Move higher up, out of
1362 the HAVE_LIBEXPAT guard.
1364 2014-10-16 Tristan Gingold <gingold@adacore.com>
1366 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1367 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1370 2014-10-15 Pedro Alves <palves@redhat.com>
1372 * dec-thread.c (dec_thread_count_gdb_threads)
1373 (dec_thread_add_gdb_thread): Delete.
1374 (dec_thread_update_thread_list): Delete.
1375 (dec_thread_find_new_threads): Rename to ...
1376 (dec_thread_update_thread_list): ... this. Delete GDB-size
1377 threads that are no longer found in dec_thread_list.
1378 (resync_thread_list): Delete.
1379 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1382 2014-10-15 Pedro Alves <palves@redhat.com>
1384 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1385 * remote.c (remote_update_thread_list): Skip calling prune_threads
1386 if any thread listing method is supported, and instead walk over
1387 the set of remote threads listed, deleting those that are not
1388 found in GDB's thread list.
1390 2014-10-15 Pedro Alves <palves@redhat.com>
1392 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1393 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1394 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1395 (bsd_uthread_target): Adjust.
1396 * corelow.c (core_open): Adjust.
1397 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1398 (dec_thread_update_thread_list): New function.
1399 (init_dec_thread_ops): Adjust.
1400 * gdbthread.h (prune_threads): New declaration.
1401 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1402 (thread_db_update_thread_list): ... this. Call prune_threads.
1403 (init_thread_db_ops): Adjust.
1404 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1405 (procfs_update_thread_list): ... this. Call prune_threads.
1406 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1408 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1409 (obsd_update_thread_list): ... this. Call prune_threads.
1410 (obsd_add_target): Adjust.
1411 * procfs.c (procfs_target): Adjust.
1412 (procfs_notice_thread): Update comment.
1413 (procfs_find_new_threads): Rename to ...
1414 (procfs_update_thread_list): ... this. Call prune_threads.
1415 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1417 (ravenscar_wait): Adjust.
1418 (ravenscar_find_new_threads): Rename to ...
1419 (ravenscar_update_thread_list): ... this. Call prune_threads.
1420 (init_ravenscar_thread_ops): Adjust.
1421 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1422 (record_btrace_update_thread_list): ... this. Adjust comment.
1423 (init_record_btrace_ops): Adjust.
1424 * remote.c (remote_threads_info): Rename to ...
1425 (remote_update_thread_list): ... this. Call prune_threads.
1426 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1428 * sol-thread.c (check_for_thread_db): Adjust.
1429 (sol_find_new_threads_callback): Rename to ...
1430 (sol_update_thread_list_callback): ... this.
1431 (sol_find_new_threads): Rename to ...
1432 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1433 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1434 * target-delegates.c: Regenerate.
1435 * target.c (target_find_new_threads): Rename to ...
1436 (target_update_thread_list): ... this.
1437 * target.h (struct target_ops): Rename to_find_new_threads field
1438 to to_update_thread_list.
1439 (target_find_new_threads): Rename to ...
1440 (target_update_thread_list): ... this.
1441 * thread.c (prune_threads): Make extern.
1442 (update_thread_list): Adjust.
1444 2014-10-15 Pedro Alves <palves@redhat.com>
1446 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1447 Add describing comment. Return -1 if the qL packet is not
1449 (struct thread_item, thread_item_t): Move higher up in
1450 the file. Add comments.
1451 (struct threads_parsing_context): Move higher up in
1452 the file, add comments, and remote to ...
1453 (struct threads_listing_context): ... this.
1454 (remote_newthread_step): Don't add the thread to GDB's thread
1455 database here. Instead push it to the thread_listing_context
1457 (remote_find_new_threads): Rename to ...
1458 (remote_get_threads_with_ql): ... this. Add target_ops and
1459 targets_listing_context parameters. Pass down context.
1460 (start_thread): Adjust.
1461 (clear_threads_parsing_context): Rename to ...
1462 (clear_threads_listing_context): ... this.
1463 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1464 remote_threads_info.
1465 (remote_get_threads_with_qthreadinfo): Ditto.
1466 (remote_threads_info): Reimplement.
1468 2014-10-15 Pedro Alves <palves@redhat.com>
1470 * infrun.c (resume): Don't force displaced-stepping for all
1471 single-steps on software single-stepping archs.
1473 2014-10-15 Pedro Alves <palves@redhat.com>
1475 * breakpoint.c (single_step_breakpoints): Delete global.
1476 (insert_single_step_breakpoint): Adjust to store the breakpoint
1477 pointer in the current thread.
1478 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1479 (cancel_single_step_breakpoints): Delete functions.
1480 (breakpoint_has_location_inserted_here): Make extern.
1481 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1483 * breakpoint.h (breakpoint_has_location_inserted_here): New
1485 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1486 (cancel_single_step_breakpoints): Remove declarations.
1487 * gdbthread.h (struct thread_control_state)
1488 <single_step_breakpoints>: New field.
1489 (delete_single_step_breakpoints)
1490 (thread_has_single_step_breakpoints_set)
1491 (thread_has_single_step_breakpoint_here): New declarations.
1492 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1493 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1494 (singlestep_pc): Delete globals.
1495 (infrun_thread_ptid_changed): Remove references to removed
1497 (resume_cleanups): Delete the current thread's single-step
1499 (maybe_software_singlestep): Remove references to removed globals.
1500 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1501 delete_single_step_breakpoints.
1502 (init_wait_for_inferior): Remove references to removed globals.
1503 (delete_thread_infrun_breakpoints): Delete the thread's
1504 single-step breakpoints too.
1505 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1506 single-step breakpoints here.
1507 (delete_stopped_threads_single_step_breakpoints): New function.
1508 (adjust_pc_after_break): Adjust to use
1509 thread_has_single_step_breakpoints_set.
1510 (handle_inferior_event): Remove references to removed globals.
1511 Use delete_stopped_threads_single_step_breakpoints.
1512 (handle_signal_stop): Adjust to per-thread single-step
1513 breakpoints. Swap test order to do cheaper tests first.
1514 (switch_back_to_stepped_thread): Extend debug output. Remove
1515 references to removed globals.
1516 * record-full.c (record_full_wait_1): Adjust to per-thread
1517 single-step breakpoints.
1518 * thread.c (delete_single_step_breakpoints)
1519 (thread_has_single_step_breakpoints_set)
1520 (thread_has_single_step_breakpoint_here): New functions.
1521 (clear_thread_inferior_resources): Also delete the thread's
1522 single-step breakpoints.
1524 2014-10-15 Pedro Alves <palves@redhat.com>
1526 * thread.c (delete_thread_breakpoint): New function.
1527 (delete_step_resume_breakpoint)
1528 (delete_exception_resume_breakpoint): Use it.
1529 (delete_at_next_stop): New function.
1530 (clear_thread_inferior_resources): Use delete_at_next_stop.
1532 2014-10-15 Pedro Alves <palves@redhat.com>
1534 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1535 (breakpoint_inserted_here_p): ... here. Remove special case for
1536 software single-step breakpoints.
1537 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1538 (software_breakpoint_inserted_here_p): ... here. Remove special
1539 case for software single-step breakpoints.
1540 (bp_target_info_copy_insertion_state)
1541 (deprecated_insert_raw_breakpoint)
1542 (deprecated_remove_raw_breakpoint): Delete functions.
1543 * breakpoint.h (deprecated_insert_raw_breakpoint)
1544 (deprecated_remove_raw_breakpoint): Remove declarations.
1546 2014-10-15 Pedro Alves <palves@redhat.com>
1549 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1550 Delete array globals.
1551 (single_step_breakpoints): New global.
1552 (breakpoint_xfer_memory): Remove special handling for single-step
1554 (update_breakpoints_after_exec): Delete bp_single_step
1556 (detach_breakpoints): Remove special handling for single-step
1558 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1559 (bpstat_stop_status): Add comment.
1560 (bpstat_what, bptype_string, print_one_breakpoint_location)
1561 (adjust_breakpoint_address, init_bp_location): Handle
1563 (new_single_step_breakpoint): New function.
1564 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1565 handling for single-step breakpoints.
1566 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1567 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1569 (detach_single_step_breakpoints, find_single_step_breakpoint):
1571 (breakpoint_has_location_inserted_here): New function.
1572 (single_step_breakpoint_inserted_here_p): Rewrite.
1573 * breakpoint.h: Remove FIXME.
1574 (enum bptype) <bp_single_step>: New enum value.
1575 (insert_single_step_breakpoint): Update comment.
1576 * infrun.c (resume_cleanups)
1577 (delete_step_thread_step_resume_breakpoint): Remove single-step
1579 (fetch_inferior_event): Install a cleanup that removes infrun
1581 (switch_back_to_stepped_thread) <expect thread advanced also>:
1582 Clear step-over info.
1584 2014-10-15 Pedro Alves <palves@redhat.com>
1586 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1587 (delete_thread_infrun_breakpoints): New function, with parts
1588 salvaged from delete_step_resume_breakpoint_callback.
1589 (delete_step_thread_step_resume_breakpoint): Delete.
1590 (for_each_just_stopped_thread_callback_func): New typedef.
1591 (for_each_just_stopped_thread): New function.
1592 (delete_just_stopped_threads_infrun_breakpoints): New function.
1593 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1594 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1596 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1598 2014-10-15 Pedro Alves <palves@redhat.com>
1600 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1601 trying to step past a non-steppable watchpoint.
1602 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1604 * infrun.c (struct step_over_info): Add new field
1605 'nonsteppable_watchpoint_p' and adjust comments.
1606 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1608 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1609 (stepping_past_nonsteppable_watchpoint): New function.
1610 (step_over_info_valid_p): Also return true if stepping past a
1611 nonsteppable watchpoint.
1612 (proceed): Adjust call to set_step_over_info. Remove reference to
1614 (init_wait_for_inferior): Remove reference to init_infwait_state.
1615 (waiton_ptid): Delete global.
1616 (struct execution_control_state)
1617 <stepped_after_stopped_by_watchpoint>: Delete field.
1618 (wait_for_inferior, fetch_inferior_event): Always pass
1619 minus_one_ptid to target_wait.
1620 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1622 (init_infwait_state): Delete function.
1623 (handle_inferior_event): Remove infwait_state handling.
1624 (handle_signal_stop) <watchpoints handling>: Adjust after
1625 stepped_after_stopped_by_watchpoint removal. Don't remove
1626 breakpoints here nor set infwait_state. Set the thread's
1627 stepping_over_watchpoint flag, and call keep_going instead.
1628 (keep_going): Handle stepping_over_watchpoint. Adjust
1629 set_step_over_info calls.
1630 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1633 2014-10-15 Pedro Alves <palves@redhat.com>
1635 * infrun.c (step_over_info_valid_p): New function.
1636 (resume): Use step_over_info_valid_p instead of checking the
1637 threads's trap_expected flag.
1639 2014-10-15 Doug Evans <dje@google.com>
1640 Walfred Tedeschi <walfred.tedeschi@intel.com>
1643 * python/lib/gdb/__init__.py (packages): Add "printer".
1644 * python/lib/gdb/command/bound_registers.py: Moved to ...
1645 * python/lib/gdb/printer/bound_registers.py: ... here.
1646 Add printer to global set of builtin printers. Rename printer from
1647 "bound" to "mpx_bound128".
1648 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1649 registered as global "builtin" printer.
1650 (add_builtin_pretty_printer): New function.
1651 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1652 gdb/printer/__init__.py.
1654 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1656 * Makefile.in (SFILES): Remove d-support.c.
1657 (COMMON_OBS): Remove d-support.o.
1658 * d-lang.h (d_parse_symbol): Remove declaration.
1659 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1660 * d-support.c: Remove file.
1662 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1664 * gdb/infrun.c (process_event_stop_test): Apply
1665 gdbarch_addr_bits_remove to longjmp resume address.
1667 2014-10-15 Pedro Alves <palves@redhat.com>
1669 * regformats/microblaze.dat: Delete file.
1671 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1673 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1674 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1676 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1678 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1681 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1685 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1686 with qualified args.
1688 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1690 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1691 of the case where the second operand is a pointer.
1692 <BINOP_SUB>: Likewise.
1694 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1696 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1697 only if it is not NULL.
1698 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1699 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1700 (struct probe_ops) <clear_semaphore>: Likewise.
1701 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1703 (stop_tracing): Likewise, for clear_semaphore.
1705 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1707 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1708 using language_c, instead of current_language.
1710 2014-10-13 Doug Evans <dje@google.com>
1712 * python/py-objfile.c (objfpy_initialize): New function.
1713 (objfpy_new, objfile_to_objfile_object): Call it.
1714 * python/py-progspace.c (pspy_initialize): New function.
1715 (pspy_new, pspace_to_pspace_object): Call it.
1717 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1718 Jan Kratochvil <jan.kratochvil@redhat.com>
1720 Fix "save breakpoints" for "catch" command.
1721 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1724 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1726 Fix "save breakpoints" for "disable $bpnum" command.
1727 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1729 2014-10-10 Pedro Alves <palves@redhat.com>
1731 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1732 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1733 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1734 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1736 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1737 * configure.ac: Remove references to IRIX.
1738 * configure.host: Add *-*-irix* to the obsolete hosts section.
1739 Remove all other references to irix.
1740 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1743 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1745 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1746 isn't valid, release the tdesc arch data and return NULL.
1748 2014-10-10 Pedro Alves <palves@redhat.com>
1750 * linux-tdep.c: Include observer.h.
1751 (linux_inferior_data): New global.
1752 (struct linux_info): New structure.
1753 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1754 (get_linux_inferior_data): New functions.
1755 (linux_vsyscall_range): Rename to ...
1756 (linux_vsyscall_range_raw): ... this.
1757 (linux_vsyscall_range): New function; handles caching.
1758 (_initialize_linux_tdep): Register linux_inferior_data. Install
1759 inferior_exit and inferior_appeared observers.
1761 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 Pedro Alves <palves@redhat.com>
1765 * solib-svr4.c (svr4_read_so_list): Rename to ...
1766 (svr4_current_sos_1): ... this and change the function comment.
1767 (svr4_current_sos): New function.
1769 2014-10-10 Pedro Alves <palves@redhat.com>
1771 * arch-utils.c (default_vsyscall_range): New function.
1772 * arch-utils.h (default_vsyscall_range): New declaration.
1773 * gdbarch.sh (vsyscall_range): New hook.
1774 * gdbarch.h, gdbarch.c: Regenerate.
1775 * linux-tdep.c (linux_vsyscall_range): New function.
1776 (linux_init_abi): Install linux_vsyscall_range as
1777 vsyscall_range gdbarch hook.
1778 * memrange.c (address_in_mem_range): New function.
1779 * memrange.h (address_in_mem_range): New declaration.
1780 * symfile-mem.c (find_vdso_size): Delete function.
1781 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1783 2014-10-10 Pedro Alves <palves@redhat.com>
1785 * infrun.c (normal_stop): Fix typo in comment.
1787 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1790 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1791 typo when using logical AND to determine instruction type.
1793 2014-10-09 Yao Qi <yao@codesourcery.com>
1795 * infrun.c (handle_signal_stop): Remove local variable
1798 2014-10-08 Stan Shebs <stan@codesourcery.com>
1800 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1802 2014-10-08 Gary Benson <gbenson@redhat.com>
1804 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1806 2014-10-08 Gary Benson <gbenson@redhat.com>
1808 * common/common-defs.h: Include common-exceptions.h.
1809 * exceptions.h: Do not include common-exceptions.h.
1811 2014-10-08 Gary Benson <gbenson@redhat.com>
1813 * common/common-defs.h: Include cleanups.h.
1814 * common/common-exceptions.c: Do not include cleanups.h.
1815 * utils.h: Likewise.
1817 2014-10-08 Gary Benson <gbenson@redhat.com>
1819 * ada-lang.c: Do not include exceptions.h.
1820 * ada-valprint.c: Likewise.
1821 * amd64-tdep.c: Likewise.
1822 * auto-load.c: Likewise.
1823 * block.c: Likewise.
1824 * break-catch-throw.c: Likewise.
1825 * breakpoint.c: Likewise.
1826 * btrace.c: Likewise.
1827 * c-lang.c: Likewise.
1828 * cli/cli-cmds.c: Likewise.
1829 * cli/cli-interp.c: Likewise.
1830 * cli/cli-script.c: Likewise.
1831 * completer.c: Likewise.
1832 * corefile.c: Likewise.
1833 * corelow.c: Likewise.
1834 * cp-abi.c: Likewise.
1835 * cp-support.c: Likewise.
1836 * cp-valprint.c: Likewise.
1837 * darwin-nat.c: Likewise.
1838 * dwarf2-frame-tailcall.c: Likewise.
1839 * dwarf2-frame.c: Likewise.
1840 * dwarf2loc.c: Likewise.
1841 * dwarf2read.c: Likewise.
1843 * event-loop.c: Likewise.
1844 * event-top.c: Likewise.
1845 * f-valprint.c: Likewise.
1846 * frame-unwind.c: Likewise.
1847 * frame.c: Likewise.
1848 * gdbtypes.c: Likewise.
1849 * gnu-v2-abi.c: Likewise.
1850 * gnu-v3-abi.c: Likewise.
1851 * guile/scm-auto-load.c: Likewise.
1852 * guile/scm-breakpoint.c: Likewise.
1853 * guile/scm-cmd.c: Likewise.
1854 * guile/scm-frame.c: Likewise.
1855 * guile/scm-lazy-string.c: Likewise.
1856 * guile/scm-param.c: Likewise.
1857 * guile/scm-symbol.c: Likewise.
1858 * guile/scm-type.c: Likewise.
1859 * hppa-hpux-tdep.c: Likewise.
1860 * i386-tdep.c: Likewise.
1861 * inf-loop.c: Likewise.
1862 * infcall.c: Likewise.
1863 * infcmd.c: Likewise.
1864 * infrun.c: Likewise.
1865 * interps.c: Likewise.
1866 * interps.h: Likewise.
1868 * linespec.c: Likewise.
1869 * linux-nat.c: Likewise.
1870 * linux-thread-db.c: Likewise.
1871 * m32r-rom.c: Likewise.
1873 * memory-map.c: Likewise.
1874 * mi/mi-cmd-break.c: Likewise.
1875 * mi/mi-cmd-stack.c: Likewise.
1876 * mi/mi-interp.c: Likewise.
1877 * mi/mi-main.c: Likewise.
1878 * monitor.c: Likewise.
1879 * nto-procfs.c: Likewise.
1880 * objc-lang.c: Likewise.
1881 * p-valprint.c: Likewise.
1882 * parse.c: Likewise.
1883 * ppc-linux-tdep.c: Likewise.
1884 * printcmd.c: Likewise.
1885 * probe.c: Likewise.
1886 * python/py-auto-load.c: Likewise.
1887 * python/py-breakpoint.c: Likewise.
1888 * python/py-cmd.c: Likewise.
1889 * python/py-finishbreakpoint.c: Likewise.
1890 * python/py-frame.c: Likewise.
1891 * python/py-framefilter.c: Likewise.
1892 * python/py-function.c: Likewise.
1893 * python/py-gdb-readline.c: Likewise.
1894 * python/py-inferior.c: Likewise.
1895 * python/py-infthread.c: Likewise.
1896 * python/py-lazy-string.c: Likewise.
1897 * python/py-linetable.c: Likewise.
1898 * python/py-param.c: Likewise.
1899 * python/py-prettyprint.c: Likewise.
1900 * python/py-symbol.c: Likewise.
1901 * python/py-type.c: Likewise.
1902 * python/py-value.c: Likewise.
1903 * python/python-internal.h: Likewise.
1904 * python/python.c: Likewise.
1905 * record-btrace.c: Likewise.
1906 * record-full.c: Likewise.
1907 * regcache.c: Likewise.
1908 * remote-fileio.c: Likewise.
1909 * remote-mips.c: Likewise.
1910 * remote.c: Likewise.
1911 * rs6000-aix-tdep.c: Likewise.
1912 * rs6000-nat.c: Likewise.
1914 * solib-darwin.c: Likewise.
1915 * solib-dsbt.c: Likewise.
1916 * solib-frv.c: Likewise.
1917 * solib-ia64-hpux.c: Likewise.
1918 * solib-spu.c: Likewise.
1919 * solib-svr4.c: Likewise.
1920 * solib.c: Likewise.
1921 * spu-tdep.c: Likewise.
1922 * stack.c: Likewise.
1923 * stap-probe.c: Likewise.
1924 * symfile-mem.c: Likewise.
1925 * symmisc.c: Likewise.
1926 * target.c: Likewise.
1927 * thread.c: Likewise.
1929 * tracepoint.c: Likewise.
1930 * tui/tui-interp.c: Likewise.
1931 * typeprint.c: Likewise.
1932 * utils.c: Likewise.
1933 * valarith.c: Likewise.
1934 * valops.c: Likewise.
1935 * valprint.c: Likewise.
1936 * value.c: Likewise.
1937 * varobj.c: Likewise.
1938 * windows-nat.c: Likewise.
1939 * xml-support.c: Likewise.
1941 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1943 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1945 (extended_mips16_next_pc): Update accordingly.
1947 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1949 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1951 (micromips_instruction_is_compact_branch): Likewise.
1952 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1953 or a compact jump, reaching a jump delay slot, or seeing a
1954 second non-prologue instruction.
1955 (micromips_scan_prologue): Also terminate scanning upon seeing a
1956 compact branch or jump, or reaching a branch or jump delay slot.
1957 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1958 or jump delay slot, or seeing a second non-prologue instruction.
1959 (mips32_instruction_has_delay_slot): Retain instruction
1960 examination code only, update arguments accordingly and move
1961 instruction fetch pieces to...
1962 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1963 (micromips_instruction_has_delay_slot): Likewise and to...
1964 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1965 (mips16_instruction_has_delay_slot): Likewise and to...
1966 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1967 (mips_single_step_through_delay): Update accordingly.
1968 (mips_adjust_breakpoint_address): Likewise.
1970 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1972 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1973 !mustbe32 also return 1 for 32-bit instructions.
1974 (mips16_instruction_has_delay_slot): Likewise. Add an
1975 explanatory comment.
1977 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1979 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1982 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1984 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1986 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1987 for the breakpoint's address. Don't preinitialize `placed_size'.
1988 (insert_bp_location): Set `reqstd_address' rather than
1990 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1991 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1993 (bkpt_remove_location): Likewise.
1994 (deprecated_insert_raw_breakpoint): Likewise.
1995 (deprecated_remove_raw_breakpoint): Likewise.
1996 (find_single_step_breakpoint): Likewise.
1997 * mem-break.c (default_memory_insert_breakpoint): Use
1998 `reqstd_address' for the breakpoint's address. Don't set
1999 `placed_address' or `placed_size' if breakpoint contents couldn't
2000 have been determined.
2001 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2002 the breakpoint's address.
2003 (remote_insert_hw_breakpoint): Likewise. Don't set
2004 `placed_address' or `placed_size' if breakpoint couldn't have been
2006 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2007 `reqstd_address' for the breakpoint's address.
2008 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2009 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2010 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2011 * microblaze-linux-tdep.c
2012 (microblaze_linux_memory_remove_breakpoint): Likewise.
2013 * monitor.c (monitor_insert_breakpoint): Likewise.
2014 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2015 (procfs_insert_hw_breakpoint): Likewise.
2016 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2017 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2018 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2019 * remote-mips.c (mips_insert_breakpoint): Likewise.
2020 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2022 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2024 * valops.c (value_assign): Check for bit field assignments
2025 before calling architecture-specific register value
2026 conversion functions.
2028 2014-10-03 Pierre Muller <muller@sourceware.org>
2030 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2032 2014-10-02 Pedro Alves <palves@redhat.com>
2034 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2035 threads_are_executing.
2036 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2038 * gdbthread.h (threads_are_executing): Declare.
2039 (handle_signal_stop) <random signals>: Don't print about the
2040 signal here if stopping.
2041 (end_stepping_range): Don't notify observers here.
2042 (normal_stop): Update the thread list. If stopped by a random
2043 signal or a stepping range ended, notify observers.
2044 * thread.c (threads_executing): New global.
2045 (init_thread_list): Clear 'threads_executing'.
2046 (set_executing): Set or clear 'threads_executing'.
2047 (threads_are_executing): New function.
2048 (update_threads_executing): New function.
2049 (update_thread_list): Use it.
2051 2014-10-02 Pedro Alves <palves@redhat.com>
2053 PR breakpoints/17431
2054 * breakpoint.c (update_breakpoints_after_exec): Don't create
2055 overlay, longjmp, std terminate nor exception breakpoints here.
2057 2014-10-02 Pedro Alves <palves@redhat.com>
2059 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2061 * inferior.c (find_inferior_for_program_space): Give preference to
2062 the current inferior.
2063 * inferior.h (find_inferior_for_program_space): Update comment.
2064 * progspace.c (switch_to_program_space_and_thread): Prefer the
2065 current inferior if it's bound to the program space requested. If
2066 the inferior found doesn't have a PID yet, don't bother looking up
2068 * progspace.h (switch_to_program_space_and_thread): Adjust
2070 * thread.c (any_thread_of_process, any_live_thread_of_process):
2071 Give preference to the current thread.
2073 2014-10-01 Pedro Alves <palves@redhat.com>
2075 * breakpoint.c (insert_bp_location): Error out if inserting a
2076 software breakpoint at a read-only address.
2077 * target.c (memory_xfer_check_region): New function, factored out
2079 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2081 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2082 against the memory region attributes.
2084 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2086 * NEWS: Announce new exit-code field in -list-thread-groups
2088 * inferior.c (exit_inferior_1): Don't clear exit code.
2089 (inferior_appeared): Clear exit code.
2090 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2093 2014-10-01 Pedro Alves <palves@redhat.com>
2095 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2096 GENERATED" along with emacs/vi read-only markers.
2097 * regformats/aarch64.dat: Regenerate.
2098 * regformats/arm-with-iwmmxt.dat: Regenerate.
2099 * regformats/arm-with-neon.dat: Regenerate.
2100 * regformats/arm-with-vfpv2.dat: Regenerate.
2101 * regformats/arm-with-vfpv3.dat: Regenerate.
2102 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2103 * regformats/i386/amd64-avx.dat: Regenerate.
2104 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2105 * regformats/i386/amd64-avx512.dat: Regenerate.
2106 * regformats/i386/amd64-linux.dat: Regenerate.
2107 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2108 * regformats/i386/amd64-mpx.dat: Regenerate.
2109 * regformats/i386/amd64.dat: Regenerate.
2110 * regformats/i386/i386-avx-linux.dat: Regenerate.
2111 * regformats/i386/i386-avx.dat: Regenerate.
2112 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2113 * regformats/i386/i386-avx512.dat: Regenerate.
2114 * regformats/i386/i386-linux.dat: Regenerate.
2115 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2116 * regformats/i386/i386-mmx.dat: Regenerate.
2117 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2118 * regformats/i386/i386-mpx.dat: Regenerate.
2119 * regformats/i386/i386.dat: Regenerate.
2120 * regformats/i386/x32-avx-linux.dat: Regenerate.
2121 * regformats/i386/x32-avx.dat: Regenerate.
2122 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2123 * regformats/i386/x32-avx512.dat: Regenerate.
2124 * regformats/i386/x32-linux.dat: Regenerate.
2125 * regformats/i386/x32.dat: Regenerate.
2126 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2127 * regformats/mips-dsp-linux.dat: Regenerate.
2128 * regformats/mips-linux.dat: Regenerate.
2129 * regformats/mips64-dsp-linux.dat: Regenerate.
2130 * regformats/mips64-linux.dat: Regenerate.
2131 * regformats/nios2-linux.dat: Regenerate.
2132 * regformats/rs6000/powerpc-32.dat: Regenerate.
2133 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2134 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2135 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2136 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2137 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2138 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2139 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2140 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2141 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2142 * regformats/s390-linux32.dat: Regenerate.
2143 * regformats/s390-linux32v1.dat: Regenerate.
2144 * regformats/s390-linux32v2.dat: Regenerate.
2145 * regformats/s390-linux64.dat: Regenerate.
2146 * regformats/s390-linux64v1.dat: Regenerate.
2147 * regformats/s390-linux64v2.dat: Regenerate.
2148 * regformats/s390-te-linux64.dat: Regenerate.
2149 * regformats/s390x-linux64.dat: Regenerate.
2150 * regformats/s390x-linux64v1.dat: Regenerate.
2151 * regformats/s390x-linux64v2.dat: Regenerate.
2152 * regformats/s390x-te-linux64.dat: Regenerate.
2153 * regformats/tic6x-c62x-linux.dat: Regenerate.
2154 * regformats/tic6x-c62x.dat: Regenerate.
2155 * regformats/tic6x-c64x-linux.dat: Regenerate.
2156 * regformats/tic6x-c64x.dat: Regenerate.
2157 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2158 * regformats/tic6x-c64xp.dat: Regenerate.
2160 2014-10-01 Pedro Alves <palves@redhat.com>
2162 * features/Makefile: Update comments.
2163 (XMLTOC): List all xml files we build C files from.
2164 (clean-cfiles): New rule.
2166 2014-10-01 Pedro Alves <palves@redhat.com>
2168 * features/i386/amd64-avx512-linux.c: Regenerate.
2169 * features/i386/amd64-avx512.c: Regenerate.
2170 * features/i386/x32-avx512-linux.c: Regenerate.
2171 * features/i386/x32-avx512.c: Regenerate.
2173 2014-10-01 Pedro Alves <palves@redhat.com>
2175 * features/Makefile (WHICH): Remove arm-with-m,
2176 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2178 2014-10-01 Pedro Alves <palves@redhat.com>
2180 * features/Makefile (clean): New rule.
2182 2014-10-01 Pedro Alves <palves@redhat.com>
2184 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2185 (zmm14h): Add missing end quotes.
2187 2014-10-01 Pedro Alves <palves@redhat.com>
2189 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2190 * features/aarch64.c: Regenerate.
2192 2014-09-30 Don Breazeal <donb@codesourcery.com>
2194 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2195 code so as to work with follow_fork_inferior.
2196 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2197 (inf_ttrace_create_inferior): Remove reference to
2198 inf_ttrace_vfork_ppid.
2199 (inf_ttrace_attach): Ditto.
2200 (inf_ttrace_detach): Ditto.
2201 (inf_ttrace_kill): Use current_inferior instead of
2202 inf_ttrace_vfork_ppid.
2203 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2204 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2205 inferior away from the parent.
2206 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2208 (follow_fork_inferior): New function.
2209 (follow_inferior_reset_breakpoints): Make function static.
2210 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2211 * linux-nat.c (linux_child_follow_fork): Move target-independent
2212 code to infrun.c:follow_fork_inferior.
2214 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2216 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2217 * gdbarch.c: Regenerate.
2218 * gdbarch.h: Likewise.
2219 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2220 gdbarch method 'regset_from_core_section'.
2221 (get_core_register_section): Remove handling for the case that
2222 regset == NULL and regset_from_core_section is defined.
2223 (get_core_registers): Drop check for deleted method.
2224 * procfs.c (procfs_do_thread_registers): Adjust comment.
2226 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2228 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2229 (linux_nat_make_corefile_notes): Remove.
2230 (linux_target_install_ops): Do not set target method
2231 'make_corefile_notes'.
2232 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2234 (linux_corefile_thread_callback): Instead of args->collect, call
2235 linux_collect_thread_registers.
2236 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2237 NULL unless there is a regset iterator.
2238 (linux_make_corefile_notes_1): Remove.
2239 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2240 by linux_make_corefile_notes.
2241 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2243 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2245 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2246 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2248 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2250 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2252 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2253 (xtensa_iterate_over_regset_sections): New.
2254 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2256 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2258 * vax-tdep.c (vax_regset_from_core_section): Remove.
2259 (vax_iterate_over_regset_sections): New.
2260 (vax_gdbarch_init): Adjust gdbarch initialization.
2262 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2264 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2265 (tilegx_regset_from_core_section): Remove.
2266 (tilegx_iterate_over_regset_sections): New.
2267 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2269 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2271 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2272 (sparc_iterate_over_regset_sections): New.
2273 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2274 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2276 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2277 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2278 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2279 target method 'make_corefile_notes'.
2281 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2283 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2284 'sizeof_gregset' and 'sizeof_fpregset'.
2285 * sh-tdep.c (sh_regset_from_core_section): Remove.
2286 (sh_iterate_over_regset_sections): New.
2287 (sh_gdbarch_init): Adjust gdbarch initialization.
2288 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2290 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2293 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2295 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2296 (score7_linux_iterate_over_regset_sections): New.
2297 (score_gdbarch_init): Adjust gdbarch initialization.
2299 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2301 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2303 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2304 method 'make_corefile_notes'.
2305 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2306 (ppcfbsd_regset_from_core_section): Remove.
2307 (ppcfbsd_iterate_over_regset_sections): New.
2308 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2310 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2311 (ppcnbsd_iterate_over_regset_sections): New.
2312 (ppcnbsd_init_abi): Adjust.
2313 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2314 (ppcobsd_iterate_over_regset_sections): New.
2315 (ppcobsd_init_abi): Adjust.
2316 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2317 (rs6000_aix_iterate_over_regset_sections): New.
2318 (rs6000_aix_init_osabi): Adjust.
2320 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2322 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2323 (nios2_regset_from_core_section): Remove.
2324 (nios2_iterate_over_regset_sections): New.
2325 (nios2_linux_init_abi): Adjust gdbarch initialization.
2327 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2329 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2330 (am33_iterate_over_regset_sections): New.
2331 (am33_linux_init_osabi): Adjust gdbarch initialization.
2333 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2335 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2336 (mips_linux_iterate_over_regset_sections): New.
2337 (mips_linux_init_abi): Adjust gdbarch initialization.
2338 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2339 (mips64obsd_iterate_over_regset_sections): New.
2340 (mips64obsd_init_abi): Adjust.
2341 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2342 (mipsnbsd_iterate_over_regset_sections): New.
2343 (mipsnbsd_init_abi): Adjust.
2345 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2347 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2348 (m88k_iterate_over_regset_sections): New.
2349 (m88k_gdbarch_init): Adjust gdbarch initialization.
2351 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2353 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2354 (ia64_linux_iterate_over_regset_sections): New.
2355 (ia64_linux_init_abi): Adjust gdbarch initialization.
2357 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2359 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2360 (m68kbsd_iterate_over_regset_sections): New.
2361 (m68kbsd_init_abi): Adjust gdbarch initialization.
2362 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2363 (m68k_linux_iterate_over_regset_sections): New.
2364 (m68k_linux_init_abi): Adjust gdbarch initialization.
2366 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2368 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2369 (m32r_linux_regset_from_core_section): Remove.
2370 (m32r_linux_iterate_over_regset_sections): New.
2371 (m32r_linux_init_abi): Adjust gdbarch initialization.
2373 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2375 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2376 (amd64obsd_iterate_over_regset_sections): New.
2377 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2378 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2380 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2381 regset_from_core_section initialization.
2382 * i386-tdep.c (i386_regset_from_core_section): Remove.
2383 (i386_iterate_over_regset_sections): New.
2384 (i386_gdbarch_init): Adjust gdbarch initialization.
2385 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2386 (i386_iterate_over_regset_sections): New prototype.
2387 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2389 (i386obsd_aout_iterate_over_regset_sections): New.
2390 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2391 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2393 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2394 (amd64fbsd_init_abi): Call fbsd_init_abi.
2395 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2396 (i386fbsd4_init_abi): Call fbsd_init_abi.
2397 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2398 target method 'make_corefile_notes'.
2399 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2401 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2403 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2404 (hppa_hpux_iterate_over_regset_sections): New.
2405 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2406 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2407 (hppa_linux_iterate_over_regset_sections): New.
2408 (hppa_linux_init_abi): Adjust.
2409 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2410 (hppanbsd_iterate_over_regset_sections): New.
2411 (hppanbsd_init_abi): Adjust.
2412 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2413 (hppaobsd_iterate_over_regset_sections): New.
2414 (hppaobsd_init_abi): Adjust.
2416 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2418 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2419 (frv_linux_iterate_over_regset_sections): New.
2420 (frv_linux_init_abi): Adjust gdbarch initialization.
2422 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2424 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2425 (armbsd_iterate_over_regset_sections): New prototype.
2426 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2427 (armbsd_iterate_over_regset_sections): New.
2428 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2431 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2433 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2434 (alpha_linux_iterate_over_regset_sections): New.
2435 (alpha_linux_init_abi): Adjust gdbarch initialization.
2436 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2438 (alphanbsd_iterate_over_regset_sections): New prototype.
2440 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2442 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2444 (aarch64_linux_iterate_over_regset_sections): New.
2445 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2447 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2449 * fbsd-tdep.c: New file.
2450 * fbsd-tdep.h: New file.
2451 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2452 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2453 (ALLDEPFILES): Add fbsd-tdep.c.
2455 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2457 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2459 * gdbarch.h: Regenerate.
2460 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2462 (get_core_register_section): Add parameter 'regset' and use it, if
2463 set. Add parameter 'min_size' and verify the bfd section size
2465 (get_core_registers_cb): Add parameter 'regset' and pass it to
2466 get_core_register section. For the "standard" register sections
2467 ".reg" and ".reg2", set an appropriate default for human_name.
2468 (get_core_registers): Don't abort when the gdbarch has an iterator
2469 but no regset_from_core_section. Add NULL/0 for parameters
2470 'regset'/'min_size' in calls to get_core_register_section.
2471 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2472 'regset' and use it instead of calling the
2473 regset_from_core_section gdbarch method.
2474 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2475 * i386-tdep.c (i386_supply_xstateregset)
2476 (i386_collect_xstateregset, i386_xstateregset): Moved to
2478 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2480 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2481 core file support only if the regset iterator hasn't been set.
2482 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2483 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2484 Moved from i386-tdep.c and renamed to *_linux*.
2485 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2486 each callback invocation. Allow any .reg-xstate size when reading
2488 * amd64-tdep.c (amd64_supply_xstateregset)
2489 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2491 (amd64_regset_from_core_section): Remove.
2492 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2493 install an amd64-specific regset_from_core_section gdbarch method.
2494 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2495 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2496 Moved from amd64-tdep.c and renamed to *_linux*.
2497 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2498 to each callback invocation. Allow any .reg-xstate size when
2499 reading from a core file.
2500 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2501 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2502 each callback invocation.
2503 (arm_linux_init_abi): No longer set the regset_from_core_section
2505 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2506 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2507 each callback invocation.
2508 (ppc_linux_init_abi): No longer set the regset_from_core_section
2510 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2511 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2512 (s390_regset_from_core_section): Remove.
2513 (s390_iterate_over_regset_sections): Add regset parameter to each
2514 callback invocation.
2515 (s390_gdbarch_init): No longer set the regset_from_core_section
2516 gdbarch method. Drop initialization of deleted tdep fields.
2518 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2520 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2521 (amd64_linux_iterate_over_regset_sections): New.
2522 (amd64_linux_init_abi_common): Don't install the regset section
2523 list, but the new iterator in gdbarch.
2524 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2525 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2526 (arm_linux_iterate_over_regset_sections): ...here. New function.
2527 (arm_linux_init_abi): Set iterator instead of section list.
2528 * corelow.c (get_core_registers_cb): New function, logic moved
2530 (get_core_registers): ...loop body here. Use new iterator method
2531 instead of walking through the regset section list.
2532 * gdbarch.sh: Remove 'core_regset_sections'. New method
2533 'iterate_over_regset_sections'. New typedef
2534 'iterate_over_regset_sections_cb'.
2535 * gdbarch.c: Regenerate.
2536 * gdbarch.h: Likewise.
2537 * i386-linux-tdep.c (i386_linux_regset_sections)
2538 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2540 (i386_linux_iterate_over_regset_sections): New.
2541 (i386_linux_init_abi): Don't choose a regset section list, but
2542 install new iterator in gdbarch.
2543 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2544 (linux_collect_regset_section_cb): New function, logic moved
2546 (linux_collect_thread_registers): ...loop body here. Use iterator
2547 method instead of walking through list.
2548 (linux_make_corefile_notes_1): Check for presence of iterator
2549 method instead of regset section list.
2550 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2551 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2552 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2553 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2554 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2555 (ppc_linux_init_abi): Don't choose from above regset section
2556 lists, but install new iterator in gdbarch.
2557 * regset.h (struct core_regset_section): Remove.
2558 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2559 have_linux_v1, have_linux_v2, and have_tdb.
2560 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2561 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2562 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2563 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2564 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2565 (s390_iterate_over_regset_sections): ...here. New function. Use
2567 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2568 regset section lists, but install new iterator.
2570 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2572 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2574 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2576 * progspace.c (print_program_space): Don't prune program spaces
2577 before printing them.
2579 2014-09-25 Pedro Alves <palves@redhat.com>
2581 * infrun.c (user_visible_resume_ptid): Don't check
2582 singlestep_breakpoints_inserted_p.
2584 2014-09-25 Pedro Alves <palves@redhat.com>
2586 * breakpoint.c (should_be_inserted): Add debug output.
2588 2014-09-25 Pedro Alves <palves@redhat.com>
2590 * infrun.c (stepping_past_instruction_at)
2591 (clear_exit_convenience_vars): Point at infrun.h instead of
2593 (handle_signal_stop): Fix typo.
2595 2014-09-24 Yao Qi <yao@codesourcery.com>
2597 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2600 2014-09-22 Gary Benson <gbenson@redhat.com>
2602 * target.c (target_stop): Updated comment.
2604 2014-09-22 Gary Benson <gbenson@redhat.com>
2606 * target/target.h (target_stop_ptid): Renamed as...
2607 (target_stop_and_wait): New function. Updated comment.
2609 (target_continue_ptid): Renamed as...
2610 (target_continue_no_signal): New function. Updated comment.
2613 2014-09-22 Pedro Alves <palves@redhat.com>
2615 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2617 * breakpoint.c (enum ugll_insert_mode): New enum.
2618 (always_inserted_mode): Now a plain boolean.
2619 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2620 (breakpoints_always_inserted_mode): Delete.
2621 (breakpoints_should_be_inserted_now): New function.
2622 (insert_breakpoints): Pass UGLL_INSERT to
2623 update_global_location_list instead of calling
2624 insert_breakpoint_locations manually.
2625 (create_solib_event_breakpoint_1): New, factored out from ...
2626 (create_solib_event_breakpoint): ... this.
2627 (create_and_insert_solib_event_breakpoint): Use
2628 create_solib_event_breakpoint_1 instead of calling
2629 insert_breakpoint_locations manually.
2630 (update_global_location_list): Change parameter type from boolean
2631 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2632 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2633 (update_global_location_list_nothrow): Change parameter type from
2634 boolean to enum ugll_insert_mode.
2635 (_initialize_breakpoint): "breakpoint always-inserted" option is
2636 now a boolean command. Update help text.
2637 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2638 (breakpoints_should_be_inserted_now): New declaration.
2639 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2640 Remove breakpoints_always_inserted_mode check.
2641 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2642 * remote.c (remote_start_remote): Likewise.
2644 2014-09-22 Pedro Alves <palves@redhat.com>
2646 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2647 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2648 Instead, pass UGLL_INSERT to update_global_location_list.
2649 (update_global_location_list): Change parameter type from boolean
2650 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2651 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2652 (create_solib_event_breakpoint_1): New, factored out from ...
2653 (create_solib_event_breakpoint): ... this.
2654 (create_and_insert_solib_event_breakpoint): Use
2655 create_solib_event_breakpoint_1 instead of calling
2656 insert_breakpoint_locations manually.
2657 (update_global_location_list): Handle UGLL_INSERT.
2659 2014-09-22 Pedro Alves <palves@redhat.com>
2661 * breakpoint.c (enum ugll_insert_mode): New enum.
2662 (update_global_location_list)
2663 (update_global_location_list_nothrow): Change parameter type from
2664 boolean to enum ugll_insert_mode. All callers adjusted.
2666 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2668 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2669 SystemTap support in GDB.
2671 2014-09-19 Don Breazeal <donb@codesourcery.com>
2673 * linux-nat.c (linux_handle_extended_wait): Call
2674 linux_ptrace_get_extended_event.
2675 (wait_lwp): Call linux_is_extended_waitstatus.
2676 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2677 and linux_is_extended_waitstatus.
2678 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2679 linux_ptrace_get_extended_event.
2680 (linux_ptrace_get_extended_event): New function.
2681 (linux_is_extended_waitstatus): New function.
2682 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2683 (linux_is_extended_waitstatus): New declarations.
2685 2014-09-19 Yao Qi <yao@codesourcery.com>
2687 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2688 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2689 comments. Callers update.
2690 (dwarf_decode_lines): Likewise.
2691 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2692 comments. Skip the line table if 'lowpc' is greater than
2693 'address'. Don't check
2694 dwarf2_per_objfile->has_section_at_zero.
2696 2014-09-18 Doug Evans <dje@google.com>
2698 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2699 * python/py-symtab.c (stpy_get_producer): New function.
2700 (symtab_object_getset): Add "producer" attribute.
2702 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2705 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2706 (do_captured_read_memory_integer): Remove.
2707 (safe_read_memory_integer): Use target_read_memory directly instead
2708 of catching errors in do_captured_read_memory_integer.
2710 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2712 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2715 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2717 * objc-lang.c (find_implementation_from_class): Remove dead code.
2719 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2722 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2723 "fprintf_unfiltered (gdb_stdlog...)".
2725 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2727 PR breakpoints/12526
2728 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2730 * breakpoint.c (watch_command_1): Use these fields to retain
2731 bitfield information.
2732 (extract_bitfield_from_watchpoint_value): New function.
2733 (watchpoint_check): Use it.
2734 (update_watchpoint): Use it. Optimize the address and length of a
2735 HW watchpoint pointing to a bitfield.
2736 * value.h (unpack_value_bitfield): New prototype.
2737 * value.c (unpack_value_bitfield): Make extern.
2739 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2741 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2743 * gnu-nat.c (inf_threads): New function.
2744 * gnu-nat.h (inf_threads_ftype): New typedef.
2745 (inf_threads): New declaration.
2746 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2747 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2748 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2749 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2750 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2751 (i386_gnu_dr_get_control): New functions.
2752 (reg_addr): New structure.
2753 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2754 i386 debugging register hooks.
2755 * NEWS: Mention this.
2757 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2759 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2760 vector data transfer instructions.
2761 (arm_record_coproc_data_proc): Updated.
2763 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2765 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2766 arm_record_exreg_ld_st_insn.
2767 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2770 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2772 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2773 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2774 processing instructions.
2776 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2778 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2779 for advance SIMD struct ld/st insn.
2780 (thumb2_record_decode_insn_handler): Replace stub handler with
2781 thumb2_record_asimd_struct_ld_st.
2783 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2785 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2786 for asimd, vfp and coprocessor insns.
2787 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2788 and coprocessor insns.
2789 (thumb2_record_coproc_insn): New function.
2790 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2792 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2795 2014-09-13 Doug Evans <xdje42@gmail.com>
2797 * NEWS: Mention new "queue-signal" command.
2798 * infcmd.c (queue_signal_command): New function.
2799 (_initialize_infcmd): Add new queue-signal command.
2801 2014-09-13 Doug Evans <xdje42@gmail.com>
2803 * linux-nat.c (wait_lwp): Add debugging printf.
2804 (linux_nat_wait_1): Ditto.
2806 2014-09-12 Pedro Alves <palves@redhat.com>
2808 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2809 (create_and_insert_solib_event_breakpoint): New functions.
2810 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2811 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2812 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2813 (remove_dbx_link_breakpoint): Delete function.
2814 (insert_dbx_link_bpt_in_file): Use
2815 create_and_insert_solib_event_breakpoint instead of
2816 deprecated_insert_raw_breakpoint.
2817 (procfs_wait): Don't check whether we hit __dbx_link here.
2818 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2820 * solib-irix.c (base_breakpoint): Delete global.
2821 (disable_break): Delete function.
2822 (enable_break): Use create_solib_event_breakpoint
2823 instead of deprecated_insert_raw_breakpoint.
2824 (irix_solib_handle_event): New function.
2825 (irix_solib_create_inferior_hook): Don't run the target or disable
2826 the mapping-complete breakpoint here.
2827 (_initialize_irix_solib): Install irix_solib_handle_event as
2828 so_ops->handle_event hook.
2830 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2831 Ulrich Weigand <uweigand@de.ibm.com>
2834 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2835 instead of read_memory_unsigned_integer.
2837 2014-09-12 Gary Benson <gbenson@redhat.com>
2839 * nat/linux-waitpid.c: Include common-defs.h.
2840 [GDBSERVER]: Add FIXME comment.
2841 [!GDBSERVER]: Don't include defs.h or signal.h.
2842 (linux_debug) [!GDBSERVER]: Remove empty block.
2844 2014-09-12 Gary Benson <gbenson@redhat.com>
2846 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2847 Don't include defs.h or server.h.
2849 2014-09-12 Gary Benson <gbenson@redhat.com>
2851 * nat/linux-btrace.c: Include common-defs.h.
2852 Don't include defs.h, server.h or gdbthread.h.
2853 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2855 2014-09-12 Gary Benson <gbenson@redhat.com>
2857 * common/agent.c: Include common-defs.h.
2858 Don't include defs.h or server.h.
2859 * common/buffer.c: Likewise.
2860 * common/common-debug.c: Likewise.
2861 * common/common-utils.c: Likewise.
2862 * common/errors.c: Likewise.
2863 * common/filestuff.c: Likewise.
2864 * common/format.c: Likewise.
2865 * common/gdb_vecs.c: Likewise.
2866 * common/print-utils.c: Likewise.
2867 * common/ptid.c: Likewise.
2868 * common/rsp-low.c: Likewise.
2869 * common/signals.c: Likewise.
2870 * common/vec.c: Likewise.
2871 * common/xml-utils.c: Likewise.
2872 * nat/linux-osdata.c: Likewise.
2873 * nat/linux-procfs.c: Likewise.
2874 * nat/linux-ptrace.c: Likewise.
2875 * nat/mips-linux-watch.c: Likewise.
2876 * target/waitstatus.c: Likewise.
2878 2014-09-12 Tom Tromey <tromey@redhat.com>
2879 Gary Benson <gbenson@redhat.com>
2881 * common/common-regcache.h: New file.
2882 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2883 * regcache.h: Include common-regcache.h.
2884 (regcache_read_pc): Don't declare.
2885 * regcache.c (get_thread_regcache_for_ptid): New function.
2886 * nat/linux-btrace.c: Don't include regcache.h.
2887 Include common-regcache.h.
2888 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2890 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2892 * regcache.h (struct regset): Declare.
2894 2014-09-11 Pedro Alves <palves@redhat.com>
2897 * main.c: Include "infrun.h".
2898 (catch_command_errors, catch_command_errors_const): Wait for the
2899 foreground command to complete.
2900 * top.c (maybe_wait_sync_command_done): New function, factored out
2902 (maybe_wait_sync_command_done): ... here.
2903 * top.h (maybe_wait_sync_command_done): New declaration.
2905 2014-09-11 Tom Tromey <tromey@redhat.com>
2906 Gary Benson <gbenson@redhat.com>
2908 * common/symbol.h: New file.
2909 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2910 * minsyms.c (find_minimal_symbol_address): New function.
2911 * common/agent.c: Include common/symbol.h.
2912 [!GDBSERVER]: Don't include objfiles.h.
2913 (agent_look_up_symbols): Use find_minimal_symbol_address.
2915 2014-09-11 Gary Benson <gbenson@redhat.com>
2917 * target/target.h (target_stop_ptid, target_continue_ptid):
2919 * target.c (target_stop_ptid, target_continue_ptid): New
2921 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2922 (agent_run_command): Always use target_stop_ptid and
2923 target_continue_ptid.
2925 2014-09-11 Tom Tromey <tromey@redhat.com>
2926 Gary Benson <gbenson@redhat.com>
2928 * target/target.h: New file.
2929 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2930 * target.h: Include target/target.h.
2931 (target_read_memory, target_write_memory): Don't declare.
2932 * target.c (target_read_uint32): New function.
2933 * common/agent.c: Include target/target.h.
2934 [!GDBSERVER]: Don't include target.h.
2935 (helper_thread_id): Type changed to uint32_t.
2936 (agent_get_helper_thread_id): Use target_read_uint32.
2937 (agent_run_command): Always use target_read_memory and
2938 target_write_memory.
2939 (agent_capability): Type changed to uint32_t.
2940 (agent_capability_check): Use target_read_uint32.
2942 2014-09-11 Gary Benson <gbenson@redhat.com>
2944 * common/common-debug.h (show_debug_regs): Declare.
2945 * common/common-debug.c (show_debug_regs): Define.
2946 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2947 all uses with show_debug_regs. Replace all uses that considered
2948 debug_hw_points as a multi-value integer with straight boolean
2950 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2951 with show_debug_regs.
2952 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2953 all uses with show_debug_regs.
2954 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2955 uses with show_debug_regs.
2957 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2959 * findvar.c (address_from_register): Handle targets requiring
2960 a special conversion routine even for plain pointer types.
2962 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2964 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2965 (store_register): Do not call exec_one_dummy_insn.
2967 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2969 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2970 dereference it first. Use value_enclosing_type instead of
2972 (ada_array_length): Likewise.
2974 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2976 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2977 Adjust function implementation and documentation accordingly.
2978 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2979 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2980 Update call to ada_value_ptr_subscript.
2982 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2984 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2985 instead of VAL's type.
2987 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2989 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2991 2014-09-09 Doug Evans <xdje42@gmail.com>
2994 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2995 last parameter to pkg-config, not first.
2996 * configure.ac: Pass --with-guile provided pkg-config path to
2997 GDB_GUILE_PROGRAM_NAMES.
2998 * configure: Regenerate.
3000 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3002 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3005 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3007 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3008 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3009 the list of sections determining GDB_OSABI_IRIX.
3011 2014-09-09 James Hogan <james.hogan@imgtec.com>
3013 * MAINTAINERS (Write After Approval): Add "James Hogan".
3015 2014-09-09 James Hogan <james.hogan@imgtec.com>
3017 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3019 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3021 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3023 2014-09-08 Doug Evans <xdje42@gmail.com>
3026 * guile.c: #include <signal.h>.
3027 (_initialize_guile): Block SIGCHLD while initializing Guile.
3029 Replaces the following, which is reverted.
3031 2014-07-26 Doug Evans <xdje42@gmail.com>
3034 * configure.ac: Add check for header gc/gc.h.
3035 Add check for function setenv.
3036 * configure: Regenerate.
3037 * config.in: Regenerate.
3038 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3040 2014-09-08 Doug Evans <xdje42@gmail.com>
3042 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3043 with named constant. Fix style of pointer comparison.
3044 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3046 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3049 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3050 decide whether we display the command on "show user".
3051 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3052 printing command name.
3053 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3054 * cli/cli-decode.c (cli_user_command_p): Create helper function
3055 to verify whether cmd_list_element is a user-defined command.
3057 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3060 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3061 Fix goto out of TRY_CATCH.
3063 2014-09-06 Doug Evans <xdje42@gmail.com>
3064 Tom Tromey <tromey@redhat.com>
3067 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3068 $_any_caller_matches.
3069 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3070 * python/lib/gdb/function/caller_is.py: New file.
3072 2014-09-06 Doug Evans <xdje42@gmail.com>
3074 * infcmd.c (program_info): Fix typo.
3076 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3079 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3080 'number'. New variable 'has_digit'. Rewrite code to deal with
3081 subexpressions on SDT probes.
3083 2014-09-04 Pedro Alves <palves@redhat.com>
3085 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3086 the input is only one character long.
3088 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3091 * f-valprint.c (f_val_print): Specify the correct print option to
3092 use when printing integer values.
3094 2014-09-04 Gary Benson <gbenson@redhat.com>
3096 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3097 Remove code to cope with LWPs wrapped as PIDs.
3098 Add assertions to ensure no wrapped LWPs are passed.
3100 2014-09-04 Pedro Alves <palves@redhat.com>
3102 * value.c (value_ranges_copy_adjusted): New function, factored out
3104 (value_contents_copy_raw): ... here.
3105 (unpack_value_bits_as_long_1): Rename back to ...
3106 (unpack_bits_as_long): ... this. Remove 'original_value' and
3107 'result' parameters. Change return type to LONGEST.
3108 (unpack_value_bits_as_long): Delete.
3109 (unpack_value_field_as_long_1): Delete.
3110 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3111 (unpack_value_bitfield): New function.
3112 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3113 (value_fetch_lazy): Use unpack_value_bitfield.
3114 * value.h (unpack_value_bits_as_long): Delete declaration.
3116 2014-09-03 Sasha Smundak <asmundak@google.com>
3118 * python/py-frame.c (frapy_read_register): New function.
3120 2014-09-03 James Hogan <james.hogan@imgtec.com>
3122 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3123 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3125 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3128 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3130 (add_cmd): Set "completer_handle_brkchars" to NULL.
3131 * cli/cli-decode.h (struct cmd_list_element)
3132 <completer_handle_brkchars>: New field.
3133 * command.h (completer_ftype_void): New typedef.
3134 (set_cmd_completer_handle_brkchars): New prototype.
3135 * completer.c (set_gdb_completion_word_break_characters): New
3137 (complete_line_internal): Call "completer_handle_brkchars"
3138 callback from command.
3139 * completer.h: Include "command.h".
3140 (set_gdb_completion_word_break_characters): New prototype.
3141 * python/py-cmd.c (cmdpy_completer_helper): New function.
3142 (cmdpy_completer_handle_brkchars): New function.
3143 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3144 (cmdpy_init): Set completer_handle_brkchars to
3145 cmdpy_completer_handle_brkchars.
3147 2014-09-03 Gary Benson <gbenson@redhat.com>
3149 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3150 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3151 Loop conditions changed to equivalent form.
3152 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3153 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3154 ALL_DEBUG_ADDRESS_REGISTERS.
3156 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3158 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3161 2014-09-02 Doug Evans <dje@google.com>
3163 * typeprint.c (find_global_typedef): Fix comment.
3165 2014-09-02 Gary Benson <gbenson@redhat.com>
3167 * i386-nat.h: Renamed as...
3168 * x86-nat.h: New file. All type, function and variable name
3169 prefixes changed from "i386_" to "x86_". All references updated.
3170 * i386-nat.c: Renamed as...
3171 * x86-nat.c: New file. All type, function and variable name
3172 prefixes changed from "i386_" to "x86_". All references updated.
3173 * common/i386-xstate.h: Renamed as...
3174 * common/x86-xstate.h: New file. All type, function and variable
3175 name prefixes changed from "i386_" to "x86_". All references
3177 * nat/i386-cpuid.h: Renamed as...
3178 * nat/x86-cpuid.h: New file. All type, function and variable name
3179 prefixes changed from "i386_" to "x86_". All references updated.
3180 * nat/i386-gcc-cpuid.h: Renamed as...
3181 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3182 name prefixes changed from "i386_" to "x86_". All references
3184 * nat/i386-dregs.h: Renamed as...
3185 * nat/x86-dregs.h: New file. All type, function and variable name
3186 prefixes changed from "i386_" to "x86_". All references updated.
3187 * nat/i386-dregs.c: Renamed as...
3188 * nat/x86-dregs.c: New file. All type, function and variable name
3189 prefixes changed from "i386_" to "x86_". All references updated.
3191 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3193 * varobj.c (_initialize_varobj): Move to the end of file.
3195 2014-08-29 Gary Benson <gbenson@redhat.com>
3197 * common/common-exceptions.h: New file.
3198 * common/common-exceptions.c: Likewise.
3199 * Makefile.in (SFILES): Add common/common-exceptions.c.
3200 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3201 (COMMON_OBS): Add common-exceptions.o.
3202 (common-exceptions.o): New rule.
3203 * exceptions.h (common-exceptions.h): Include.
3204 (gdb_setjmp.h): Do not include.
3205 (return_reason): Moved to common-exceptions.h.
3206 (enum return_reason): Likewise.
3207 (RETURN_MASK): Likewise.
3208 (typedef return_mask): Likewise.
3209 (enum errors): Likewise.
3210 (struct gdb_exception): Likewise.
3211 (exceptions_state_mc_init): Likewise.
3212 (exceptions_state_mc_action_iter): Likewise.
3213 (exceptions_state_mc_action_iter_1): Likewise.
3214 (TRY_CATCH): Likewise.
3215 (throw_exception): Likewise.
3216 (throw_verror): Likewise.
3217 (throw_vquit): Likewise.
3218 (throw_error): Likewise.
3219 (throw_quit): Likewise.
3220 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3221 (enum catcher_action): Likewise.
3222 (struct catcher): Likewise.
3223 (current_catcher): Likewise.
3224 (catcher_list_size): Likewise.
3225 (exceptions_state_mc_init): Likewise.
3226 (catcher_pop): Likewise.
3227 (exceptions_state_mc): Likewise.
3228 (exceptions_state_mc_action_iter): Likewise.
3229 (exceptions_state_mc_action_iter_1): Likewise.
3230 (throw_exception): Likewise.
3231 (exception_messages): Likewise.
3232 (exception_messages_size): Likewise.
3233 (throw_it): Likewise.
3234 (throw_verror): Likewise.
3235 (throw_vquit): Likewise.
3236 (throw_error): Likewise.
3237 (throw_quit): Likewise.
3238 (prepare_to_throw_exception): New function.
3240 2014-08-29 Gary Benson <gbenson@redhat.com>
3242 * common/gdb_setjmp.h: New file.
3243 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3244 * configure.ac: Move sigsetjmp check...
3245 * common/common.m4: ...here.
3246 * configure: Regenerate.
3247 * cp-support.c (SIGJMP_BUF): Delete.
3248 (SIGSETJMP): Likewise.
3249 (SIGLONGJMP): Likewise.
3250 * exceptions.h (gdb_setjmp.h): Include.
3251 (setjmp.h): Do not include.
3252 (EXCEPTIONS_SIGJMP_BUF): Delete.
3253 (EXCEPTIONS_SIGSETJMP): Likewise.
3254 (EXCEPTIONS_SIGLONGJMP): Likewise.
3255 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3257 * exceptions.c: Likewise.
3259 2014-08-29 Gary Benson <gbenson@redhat.com>
3261 * cleanups.h: Moved to...
3262 * common/cleanups.h: New file.
3263 * cleanups.c: Moved to...
3264 * common/cleanups.c: New file. Include common-defs.h and
3265 cleanups.h. Do not include defs.h.
3266 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3267 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3268 (cleanups.o): New rule.
3270 2014-08-29 Gary Benson <gbenson@redhat.com>
3272 * common/errors.h (internal_warning): New declaration.
3273 (internal_vwarning): Likewise.
3274 * common/errors.c (internal_warning): New function.
3275 * utils.h (internal_warning): Don't declare.
3276 (internal_vwarning): Likewise.
3277 * utils.c (internal_warning): Removed.
3279 2014-08-29 Gary Benson <gbenson@redhat.com>
3281 * main.c (captured_main): Use warning during startup.
3282 Prefix startup warning messages with command name.
3284 2014-08-29 Gary Benson <gbenson@redhat.com>
3286 * main.c (captured_main): Handle usage errors with error.
3288 2014-08-29 Gary Benson <gbenson@redhat.com>
3290 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3291 exit pair with a call to error. Wrap the message with _().
3293 2014-08-29 Gary Benson <gbenson@redhat.com>
3295 * main.c (captured_main): Replace a fprintf/exit
3296 pair with a call to error. Wrap the message with _().
3298 2014-08-29 Gary Benson <gbenson@redhat.com>
3300 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3301 pairs with calls to error. Wrap the message with _().
3303 2014-08-29 Gary Benson <gbenson@redhat.com>
3305 * utils.c (vwarning): Protect calls to target_terminal_ours
3308 2014-08-29 Gary Benson <gbenson@redhat.com>
3310 * exceptions.c (print_flush): Protect calls to
3311 target_terminal_ours and wrap_here.
3313 2014-08-29 Gary Benson <gbenson@redhat.com>
3315 * utils.h (filtered_printing_initialized): New declaration.
3316 * utils.c (abort_with_message): New function.
3317 (internal_vproblem): Use abort_with_message for first level
3318 recursive internal problems, and if gdb_stderr is not set up.
3319 Protect calls to target_terminal_ours, begin_line and query.
3321 2014-08-28 Doug Evans <dje@google.com>
3323 * symtab.c (in_prologue): Move definition to better spot.
3324 (skip_prologue_using_sal): Ditto.
3326 2014-08-28 Doug Evans <dje@google.com>
3328 * symtab.c (find_function_start_sal): Move definition to better spot.
3330 2014-08-28 Yao Qi <yao@codesourcery.com>
3332 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3333 found_stack_adjust in forward scan. Remove condition check
3334 on found_stack_adjust which is always true. Indent the code.
3336 2014-08-28 Yao Qi <yao@codesourcery.com>
3338 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3339 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3340 (dwarf_decode_lines): Remove argument
3341 want_line_info. Remove condition check on want_line_info.
3344 2014-08-27 Doug Evans <dje@google.com>
3346 * dwarf2read.c (dwarf_record_line): Fix typo.
3348 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3350 * target.h (struct target_ops::to_terminal_save_ours): Remove
3352 (target_terminal_save_ours): Remove macro.
3353 * target-delegates.c: Regenerate.
3354 * inf-child.c (inf_child_target): Don't set the nonexistent
3355 field to_terminal_save_ours.
3356 * inferior.h (child_terminal_save_ours): Remove declaration.
3357 * terminal.h (gdb_save_tty_state): New declaration.
3358 * inflow.c (child_terminal_save_ours): Rename to ...
3359 (gdb_save_tty_state): ... this.
3360 * tui/tui.c: Include terminal.h.
3361 (tui_enable): Use gdb_save_tty_state instead of
3362 target_terminal_save_ours.
3363 (tui_disable): Likewise.
3365 2014-08-25 Doug Evans <dje@google.com>
3367 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3368 Pass NULL instead of 0 for context pointer.
3370 2014-08-25 Yao Qi <yao@codesourcery.com>
3372 * dwarf2read.c: Fix grammatical error.
3374 2014-08-24 Yao Qi <yao@codesourcery.com>
3376 * dwarf2read.c (scan_partial_symbols): Update comments.
3377 Rename argument 'need_pc' with 'set_addrmap'.
3378 (add_partial_namespace): Rename argument 'need_pc' with
3380 (add_partial_module): Likewise.
3381 (add_partial_subprogram): Likewise. Update comments.
3382 (dwarf2_name): Fix typo.
3384 2014-08-22 Doug Evans <dje@google.com>
3387 * dwarf2read.c (dwarf_record_line_p): New function.
3388 (dwarf_decode_lines_1): Ignore subsequent line number entries
3389 for the same line if any entry had a non-zero discriminator.
3391 2014-08-22 Doug Evans <dje@google.com>
3393 * buildsym.h (record_line_ftype): New typedef.
3394 (record_line): Use it.
3395 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3396 (dwarf_decode_lines_1): Call them.
3398 2014-08-22 Yao Qi <yao@codesourcery.com>
3400 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3401 (ctf_end): Remove code.
3403 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3405 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3406 (linux_make_corefile_notes): call update_thread_list, protected against
3409 2014-08-21 Pedro Alves <palves@redhat.com>
3411 * infcmd.c (attach_command): Remove comment.
3413 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3415 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3416 unsigned LONGEST to ULONGEST.
3418 2014-08-20 Pedro Alves <palves@redhat.com>
3420 * Makefile.in (check-read1): New rule.
3422 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3424 * value.c (value_from_contents_and_address): Strip resolved_type's
3425 typedef layers before checking its TYPE_DATA_LOCATION.
3427 2014-08-20 Pedro Alves <palves@redhat.com>
3429 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3431 2014-08-20 Yao Qi <yao@codesourcery.com>
3433 * amd64-tdep.c (amd64_classify): Add a blank line after the
3434 example. Move "*/" to a new line.
3435 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3436 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3437 * dwarf2read.c (psymtab_include_file_name): Likewise.
3439 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3440 Pedro Alves <palves@redhat.com>
3444 * ada-lang.c (coerce_unspec_val_to_type): Use
3445 value_contents_copy_raw.
3446 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3447 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3448 * cp-valprint.c (cp_print_value_fields): Let the common printing
3449 code handle optimized out values.
3450 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3451 * d-valprint.c (dynamic_array_type): Use
3452 value_bits_any_optimized_out.
3453 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3454 check_any_valid fields.
3455 (check_pieced_value_bits): Delete and inline ...
3456 (check_pieced_synthetic_pointer): ... here.
3457 (check_pieced_value_validity): Delete.
3458 (check_pieced_value_invalid): Delete.
3459 (pieced_value_funcs): Remove check_validity and check_any_valid
3461 (read_pieced_value): Use mark_value_bits_optimized_out.
3462 (write_pieced_value): Switch to use
3463 mark_value_bytes_optimized_out.
3464 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3465 of assuming the whole value is optimized out.
3466 * findvar.c (read_frame_register_value): Remove special handling
3467 of optimized out registers.
3468 (value_from_register): Use mark_value_bytes_optimized_out.
3469 * frame-unwind.c (frame_unwind_got_optimized): Use
3470 mark_value_bytes_optimized_out.
3471 * jv-valprint.c (java_value_print): Adjust.
3472 (java_print_value_fields): Let the common printing code handle
3473 optimized out values.
3474 * mips-tdep.c (mips_print_register): Remove special handling of
3475 optimized out registers.
3476 * opencl-lang.c (lval_func_check_validity): Delete.
3477 (lval_func_check_any_valid): Delete.
3478 (opencl_value_funcs): Remove check_validity and check_any_valid
3480 * p-valprint.c (pascal_object_print_value_fields): Let the common
3481 printing code handle optimized out values.
3482 * stack.c (read_frame_arg): Remove special handling of optimized
3483 out values. Fetch both VAL and ENTRYVAL before comparing
3484 contents. Adjust to value_available_contents_eq rename.
3485 * valprint.c (valprint_check_validity)
3486 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3487 (val_print_array_elements): Adjust.
3488 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3489 (value_bits_any_optimized_out): New function.
3490 (value_entirely_covered_by_range_vector): New function, factored
3491 out from value_entirely_unavailable.
3492 (value_entirely_unavailable): Reimplement.
3493 (value_entirely_optimized_out): New function.
3494 (insert_into_bit_range_vector): New function, factored out from
3495 mark_value_bits_unavailable.
3496 (mark_value_bits_unavailable): Reimplement.
3497 (struct ranges_and_idx): New struct.
3498 (find_first_range_overlap_and_match): New function, factored out
3499 from value_available_contents_bits_eq.
3500 (value_available_contents_bits_eq): Rename to ...
3501 (value_contents_bits_eq): ... this. Check both unavailable
3502 contents and optimized out contents.
3503 (value_available_contents_eq): Rename to ...
3504 (value_contents_eq): ... this.
3505 (allocate_value_lazy): Remove reference to the old optimized_out
3507 (allocate_optimized_out_value): Use
3508 mark_value_bytes_optimized_out.
3509 (require_not_optimized_out): Adjust to check whether the
3510 optimized_out vec is empty.
3511 (ranges_copy_adjusted): New function, factored out from
3512 value_contents_copy_raw.
3513 (value_contents_copy_raw): Also copy the optimized out ranges.
3514 Assert the destination ranges aren't optimized out.
3515 (value_contents_copy): Update comment, remove call to
3516 require_not_optimized_out.
3517 (value_contents_equal): Adjust to check whether the optimized_out
3519 (set_value_optimized_out, value_optimized_out_const): Delete.
3520 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3522 (value_entirely_optimized_out, value_bits_valid): Delete.
3523 (value_copy): Take a VEC copy of the 'optimized_out' field.
3524 (value_primitive_field): Remove special handling of optimized out.
3525 (value_fetch_lazy): Assert that lazy values have no unavailable
3526 regions. Use value_bits_any_optimized_out. Remove some special
3527 handling for optimized out values.
3528 * value.h: Add intro comment about <optimized out> and
3530 (struct lval_funcs): Remove check_validity and check_any_valid
3532 (set_value_optimized_out, value_optimized_out_const): Remove.
3533 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3535 (value_bits_any_optimized_out): New declaration.
3536 (value_bits_valid): Delete declaration.
3537 (value_available_contents_eq): Rename to ...
3538 (value_contents_eq): ... this, and extend comments.
3540 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3542 Fix -fsanitize=address on unreadable inferior strings.
3543 * valprint.c (val_print_string): Fix access before BUFFER.
3545 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3547 * target.c (target_struct_size): Remove.
3548 (target_struct_allocsize): Remove.
3549 (DEFAULT_ALLOCSIZE): Remove.
3550 (target_ops_p): New typedef.
3551 (DEF_VEC_P (target_ops_p)): New vector type.
3552 (target_structs): Change type to VEC (target_ops_p).
3553 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3554 (find_default_run_target): Rewrite for loop following changes to
3557 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3559 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3560 Adjust code accordingly. Adjust function description comment.
3562 2014-08-19 Yao Qi <yao@codesourcery.com>
3564 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3567 2014-08-19 Alan Modra <amodra@gmail.com>
3569 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3570 * config.in: Regenerate.
3571 * configure: Regenerate.
3573 2014-08-19 Tom Tromey <tromey@redhat.com>
3574 Gary Benson <gbenson@redhat.com>
3576 * common/common-debug.h: New file.
3577 * common/common-debug.c: Likewise.
3578 * debug.c: Likewise.
3579 * Makefile.in (SFILES): Add common/common-debug.c.
3580 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3581 (COMMON_OBS): Add common-debug.o and debug.o.
3582 (common-debug.o): New rule.
3583 * common/common-defs.h: Include common-debug.h.
3584 * common/agent.c (debug_agent_printf): New function.
3585 (DEBUG_AGENT): Redefine.
3586 * nat/i386-dregs.c (debug_printf): Undefine.
3588 2014-08-19 Gary Benson <gbenson@redhat.com>
3590 * common/common-defs.h: Include print-utils.h.
3591 * utils.h: Do not include print-utils.h.
3593 2014-08-19 Tom Tromey <tromey@redhat.com>
3594 Gary Benson <gbenson@redhat.com>
3596 * common/common-types.h: New file.
3597 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3598 * common/common-defs.h: Include common-types.h.
3599 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3602 2014-08-19 Tom Tromey <tromey@redhat.com>
3603 Gary Benson <gbenson@redhat.com>
3605 * common/errors.h: New file.
3606 * common/errors.c: Likewise.
3607 * Makefile.in (SFILES): Add common/errors.c.
3608 (HFILES_NO_SRCDIR): Add common/errors.h.
3609 (COMMON_OBS): Add errors.o.
3610 (errors.o): New rule.
3611 * common/common-defs.h: Include errors.h.
3612 * utils.h (perror_with_name, error, verror, warning, vwarning):
3614 * common/common-utils.h: (malloc_failure, internal_error):
3617 2014-08-19 Gary Benson <gbenson@redhat.com>
3619 * utils.c (internal_vproblem): Always print the message.
3621 2014-08-18 Doug Evans <dje@google.com>
3623 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3625 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3627 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3628 Return 0 if TYPE is dynamic.
3629 (print_range): Add handling of dynamic ranges.
3631 2014-08-18 Keven Boell <keven.boell@intel.com>
3632 Joel Brobecker <brobecker@adacore.com>
3634 * gdbtypes.h (struct main_type): Add field "data_location".
3635 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3636 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3637 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3638 a dynamic data location.
3639 (resolve_dynamic_type): Add DW_AT_data_location handling.
3640 (copy_recursive, copy_type): Copy the data_location information
3642 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3643 * value.c (value_from_contents_and_address): Add
3644 DW_AT_data_location handling.
3646 2014-08-18 Keven Boell <keven.boell@intel.com>
3647 Joel Brobecker <brobecker@adacore.com>
3649 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3650 field "get_object_address".
3651 * dwarf2expr.c (execute_stack_op): Add handling for
3652 DW_OP_push_object_address.
3653 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3654 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3655 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3656 (dwarf_expr_get_obj_addr): New function.
3657 (dwarf_expr_ctx_funcs): Add get_object_address field.
3658 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3659 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3660 (dwarf2_evaluate_property): Add parameter "address". Use it.
3661 (needs_get_obj_addr): New function.
3662 (needs_frame_ctx_funcs): Add get_object_address field.
3663 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3664 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3665 (resolve_dynamic_array): Likewise.
3667 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3669 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3670 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3671 fixed value for records and unions for which some GNAT encodings
3674 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3676 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3677 rewrite to avoid "else if" and "else" constructs. Should be
3678 a no-op in practice.
3680 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3682 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3685 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3688 * eval.c: Update all calls to find_overload_match.
3689 * valarith.c: Likewise.
3690 (value_user_defined_cpp_op, value_user_defined_op): New
3691 argument NOSIDE. Update all callers.
3692 * valops.c (find_overload_match): New argument NOSIDE.
3693 * value.h (find_overload_match): Update signature.
3695 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3697 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3698 'items' methods instead of 'iteritems' method on dictionaries.
3700 2014-08-15 Doug Evans <dje@google.com>
3702 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3705 2014-08-15 Doug Evans <dje@google.com>
3707 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3709 2014-08-15 Doug Evans <dje@google.com>
3711 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3713 2014-08-15 Doug Evans <dje@google.com>
3715 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3718 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3720 * dcache.h: Include target.h, to avoid compile time warnings.
3722 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3724 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3725 frame_info" partial declaration.
3726 * gdbarch.h: Regenerate.
3728 2014-08-15 Yao Qi <yao@codesourcery.com>
3730 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3731 Add parameter 'decode_for_pst_p'. Callers update.
3733 2014-08-13 Yao Qi <yao@codesourcery.com>
3736 * configure.ac: Use local variable 'pos'.
3737 * configure: Regenerated.
3739 2014-08-11 Doug Evans <dje@google.com>
3741 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3742 message, it is redundant with "Reading symbols from ..." message.
3744 2014-08-10 Doug Evans <xdje42@gmail.com>
3746 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3748 2014-08-09 Yao Qi <yao@codesourcery.com>
3751 * remote.c (remote_xfer_partial): Remove dead code.
3753 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3755 * ia64-linux-tdep.c: Include "regset.h".
3756 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3757 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3758 (ia64_linux_supply_fpregset): New function.
3759 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3760 (ia64_linux_regset_from_core_section): New function.
3761 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3764 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3766 * m68klinux-tdep.c: Include "regset.h".
3767 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3768 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3769 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3770 (m68k_linux_regset_from_core_section): New function.
3771 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3774 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3776 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3777 function. Move logic to...
3778 (tilegx_linux_regmap): ... this new register map.
3779 (tilegx_linux_regset): Refer to register map, replace supply
3780 method by regcache_supply_regset, and add collect method.
3781 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3782 TILEGX_FIRST_EASY_REGNUM.
3784 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3786 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3787 that calls regcache_supply_regset and handles the EPC register
3788 separately. Move main logic to...
3789 (score7_linux_gregmap): ... this new register map.
3790 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3791 (score7_linux_gregset): Refer to register map. Add collect method.
3792 (score7_linux_regset_from_core_section): Replace
3793 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3794 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3795 (struct regset): Delete unused forward declaraction.
3796 (struct pt_regs): Delete structure definition.
3797 (elf_gregset_t): Delete typedef.
3799 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3801 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3802 (nios2_core_regset): Add collect method.
3804 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3806 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3807 platform-independent and don't write to read-only input buffer.
3808 (m32r_linux_collect_gregset): New function.
3809 (m32r_linux_gregset): Add collect method.
3811 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3813 * hppa-linux-tdep.c (greg_map): Rename to...
3814 (hppa_linux_gregmap): ... this. Also convert to
3815 regcache_map_entry format.
3816 (hppa_linux_supply_regset): Delete function.
3817 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3818 (hppa_linux_fpregmap): ... this new register map.
3819 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3820 register map, replace supply method by regcache_supply_regset, and
3821 add collect method regcache_collect_regset.
3823 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3825 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3826 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3827 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3828 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3829 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3830 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3831 (frv_linux_supply_gregset): Replace main logic by call to
3832 regcache_supply_regset, but keep clearing gr32-gr63.
3833 (frv_linux_supply_fpregset): Delete function.
3834 (frv_linux_gregset): Refer to appropriate register map and add
3835 regcache_collect_regset as the collect method.
3836 (frv_linux_fpregset): Likewise. Also exchange the supply method
3837 by regcache_supply_regset.
3839 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3841 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3842 by call to alpha_supply_int_regs.
3843 (alpha_linux_collect_gregset): New function.
3844 (alpha_linux_supply_fpregset): Replace logic by call to
3845 alpha_supply_fp_regs.
3846 (alpha_linux_collect_fpregset): New function.
3847 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3849 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3851 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3852 by call to regcache_collect_regset.
3853 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3854 instead of aarch64_linux_supply_gregset/_fpregset.
3855 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3856 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3857 header file instead.
3858 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3859 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3860 functions. Move logic to ...
3861 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3863 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3864 refer to new register maps, replace *_regset_from_core by
3865 regcache_supply_regset, and also use regcache_collect_regset.
3866 * aarch64-linux-tdep.h: Include "regset.h".
3867 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3869 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3870 macros, moved from C source file.
3871 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3872 variable declarations.
3874 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3876 * s390-linux-nat.c: Include "regset.h".
3877 (regmap_gregset): Delete macro.
3878 (s390_64_regmap_gregset): New register map for
3879 regcache_supply/_collect_regset.
3880 (s390_64_gregset): New regset.
3881 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3882 (regmap_fpregset): Delete macro.
3883 (s390_native_supply, s390_native_collect): Delete functions.
3884 (supply_gregset, fill_gregset): Replace s390-specific regmap
3885 handling by a call to regcache_supply/_collect_regset.
3886 (supply_fpregset, fill_fpregset): Call regcache_supply/
3887 _collect_regset instead of s390_native_supply/_collect.
3888 (fetch_regset, store_regset): Likewise. Also change the last
3889 parameter to a regset instead of a regmap.
3890 (s390_linux_fetch_inferior_registers)
3891 (390_linux_store_inferior_registers): Adjust last parameter in
3892 calls to fetch_regset and store_regset.
3893 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3894 (s390_gregmap): ... this. Also make static const and convert to
3895 regcache_map_entry format.
3896 (s390x_regmap_gregset): Delete.
3897 (s390_regmap_fpregset): Rename to...
3898 (s390_fpregmap): ... this. Make static const and convert to
3899 regcache_map_entry format.
3900 (s390_regmap_upper, s390_regmap_last_break)
3901 (s390x_regmap_last_break, s390_regmap_system_call)
3902 (s390_regmap_tdb): Likewise.
3903 (s390_supply_regset, s390_collect_regset): Remove functions.
3904 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3906 (s390_gregset, s390_fpregset, s390_upper_regset)
3907 (s390_last_break_regset, s390x_last_break_regset)
3908 (s390_system_call_regset, s390_tdb_regset): Make global and
3909 replace s390_supply/_collect_regset by regcache_supply/
3911 (s390x_gregset): Delete.
3912 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3913 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3914 (s390_regmap_fpregset, s390_regmap_last_break)
3915 (s390x_regmap_last_break, s390_regmap_system_call)
3916 (s390_regmap_tdb): Delete global variable declarations.
3917 (s390_gregset, s390_fpregset, s390_last_break_regset)
3918 (s390x_last_break_regset, s390_system_call_regset)
3919 (s390_tdb_regset): New global variable declarations.
3921 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3923 * regcache.c: Include "regset.h".
3924 (regcache_transfer_regset): New local function.
3925 (regcache_supply_regset, regcache_collect_regset): New functions.
3926 * regcache.h (struct regcache_map_entry): New structure.
3927 (REGCACHE_MAP_SKIP): New enum value.
3928 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3930 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3932 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3933 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3934 (ppc_linux_collect_gregset ): Likewise.
3935 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3936 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3937 (ppc_collect_vrregset): Likewise.
3938 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3941 2014-08-07 Yao Qi <yao@codesourcery.com>
3943 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3944 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3945 * remote.c (remote_read_bytes): Likewise.
3947 2014-08-07 Yao Qi <yao@codesourcery.com>
3949 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3951 2014-08-07 Yao Qi <yao@codesourcery.com>
3954 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3955 TARGET_XFER_OK instead of 0.
3957 2014-08-07 Gary Benson <gbenson@redhat.com>
3959 * common/common-defs.h: Include errno.h.
3960 * defs.h: Do not include errno.h.
3961 * ada-typeprint.c: Likewise.
3962 * c-typeprint.c: Likewise.
3963 * core-regset.c: Likewise.
3964 * corefile.c: Likewise.
3965 * corelow.c: Likewise.
3966 * event-loop.c: Likewise.
3967 * f-typeprint.c: Likewise.
3968 * gnu-nat.c: Likewise.
3969 * go32-nat.c: Likewise.
3970 * i386gnu-nat.c: Likewise.
3971 * m2-typeprint.c: Likewise.
3972 * nat/linux-btrace.c: Likewise.
3973 * p-typeprint.c: Likewise.
3974 * procfs.c: Likewise.
3975 * remote-sim.c: Likewise.
3976 * rs6000-nat.c: Likewise.
3977 * target.c: Likewise.
3978 * typeprint.c: Likewise.
3979 * ui-file.c: Likewise.
3980 * valops.c: Likewise.
3981 * valprint.c: Likewise.
3983 2014-08-07 Gary Benson <gbenson@redhat.com>
3985 * common/common-defs.h: Include string.h.
3986 * aarch64-tdep.c: Do not include string.h.
3987 * ada-exp.y: Likewise.
3988 * ada-lang.c: Likewise.
3989 * ada-lex.l: Likewise.
3990 * ada-typeprint.c: Likewise.
3991 * ada-valprint.c: Likewise.
3992 * aix-thread.c: Likewise.
3993 * alpha-linux-tdep.c: Likewise.
3994 * alpha-mdebug-tdep.c: Likewise.
3995 * alpha-nat.c: Likewise.
3996 * alpha-osf1-tdep.c: Likewise.
3997 * alpha-tdep.c: Likewise.
3998 * alphanbsd-tdep.c: Likewise.
3999 * amd64-dicos-tdep.c: Likewise.
4000 * amd64-linux-tdep.c: Likewise.
4001 * amd64-nat.c: Likewise.
4002 * amd64-sol2-tdep.c: Likewise.
4003 * amd64fbsd-tdep.c: Likewise.
4004 * amd64obsd-tdep.c: Likewise.
4005 * arch-utils.c: Likewise.
4006 * arm-linux-nat.c: Likewise.
4007 * arm-linux-tdep.c: Likewise.
4008 * arm-tdep.c: Likewise.
4009 * arm-wince-tdep.c: Likewise.
4010 * armbsd-tdep.c: Likewise.
4011 * armnbsd-nat.c: Likewise.
4012 * armnbsd-tdep.c: Likewise.
4013 * armobsd-tdep.c: Likewise.
4014 * avr-tdep.c: Likewise.
4015 * ax-gdb.c: Likewise.
4016 * ax-general.c: Likewise.
4017 * bcache.c: Likewise.
4018 * bfin-tdep.c: Likewise.
4019 * breakpoint.c: Likewise.
4020 * build-id.c: Likewise.
4021 * buildsym.c: Likewise.
4022 * c-exp.y: Likewise.
4023 * c-lang.c: Likewise.
4024 * c-typeprint.c: Likewise.
4025 * c-valprint.c: Likewise.
4026 * charset.c: Likewise.
4027 * cli-out.c: Likewise.
4028 * cli/cli-cmds.c: Likewise.
4029 * cli/cli-decode.c: Likewise.
4030 * cli/cli-dump.c: Likewise.
4031 * cli/cli-interp.c: Likewise.
4032 * cli/cli-logging.c: Likewise.
4033 * cli/cli-script.c: Likewise.
4034 * cli/cli-setshow.c: Likewise.
4035 * cli/cli-utils.c: Likewise.
4036 * coffread.c: Likewise.
4037 * common/agent.c: Likewise.
4038 * common/buffer.c: Likewise.
4039 * common/buffer.h: Likewise.
4040 * common/common-utils.c: Likewise.
4041 * common/filestuff.c: Likewise.
4042 * common/filestuff.c: Likewise.
4043 * common/format.c: Likewise.
4044 * common/print-utils.c: Likewise.
4045 * common/rsp-low.c: Likewise.
4046 * common/signals.c: Likewise.
4047 * common/vec.h: Likewise.
4048 * common/xml-utils.c: Likewise.
4049 * core-regset.c: Likewise.
4050 * corefile.c: Likewise.
4051 * corelow.c: Likewise.
4052 * cp-abi.c: Likewise.
4053 * cp-name-parser.y: Likewise.
4054 * cp-support.c: Likewise.
4055 * cp-valprint.c: Likewise.
4056 * cris-tdep.c: Likewise.
4057 * d-exp.y: Likewise.
4058 * darwin-nat.c: Likewise.
4059 * dbxread.c: Likewise.
4060 * dcache.c: Likewise.
4061 * demangle.c: Likewise.
4062 * dicos-tdep.c: Likewise.
4063 * disasm.c: Likewise.
4064 * doublest.c: Likewise.
4065 * dsrec.c: Likewise.
4066 * dummy-frame.c: Likewise.
4067 * dwarf2-frame.c: Likewise.
4068 * dwarf2loc.c: Likewise.
4069 * dwarf2read.c: Likewise.
4070 * elfread.c: Likewise.
4071 * environ.c: Likewise.
4073 * event-loop.c: Likewise.
4074 * exceptions.c: Likewise.
4076 * expprint.c: Likewise.
4077 * f-exp.y: Likewise.
4078 * f-lang.c: Likewise.
4079 * f-typeprint.c: Likewise.
4080 * f-valprint.c: Likewise.
4081 * fbsd-nat.c: Likewise.
4082 * findcmd.c: Likewise.
4083 * findvar.c: Likewise.
4084 * fork-child.c: Likewise.
4085 * frame.c: Likewise.
4086 * frv-linux-tdep.c: Likewise.
4087 * frv-tdep.c: Likewise.
4089 * gdb_bfd.c: Likewise.
4090 * gdbarch.c: Likewise.
4091 * gdbarch.sh: Likewise.
4092 * gdbtypes.c: Likewise.
4093 * gnu-nat.c: Likewise.
4094 * gnu-v2-abi.c: Likewise.
4095 * gnu-v3-abi.c: Likewise.
4096 * go-exp.y: Likewise.
4097 * go-lang.c: Likewise.
4098 * go32-nat.c: Likewise.
4099 * guile/guile.c: Likewise.
4100 * guile/scm-auto-load.c: Likewise.
4101 * hppa-hpux-tdep.c: Likewise.
4102 * hppa-linux-nat.c: Likewise.
4103 * hppanbsd-tdep.c: Likewise.
4104 * hppaobsd-tdep.c: Likewise.
4105 * i386-cygwin-tdep.c: Likewise.
4106 * i386-dicos-tdep.c: Likewise.
4107 * i386-linux-tdep.c: Likewise.
4108 * i386-nto-tdep.c: Likewise.
4109 * i386-sol2-tdep.c: Likewise.
4110 * i386-tdep.c: Likewise.
4111 * i386bsd-tdep.c: Likewise.
4112 * i386gnu-nat.c: Likewise.
4113 * i386nbsd-tdep.c: Likewise.
4114 * i386obsd-tdep.c: Likewise.
4115 * i387-tdep.c: Likewise.
4116 * ia64-libunwind-tdep.c: Likewise.
4117 * ia64-linux-nat.c: Likewise.
4118 * inf-child.c: Likewise.
4119 * inf-ptrace.c: Likewise.
4120 * inf-ttrace.c: Likewise.
4121 * infcall.c: Likewise.
4122 * infcmd.c: Likewise.
4123 * inflow.c: Likewise.
4124 * infrun.c: Likewise.
4125 * interps.c: Likewise.
4126 * iq2000-tdep.c: Likewise.
4127 * irix5-nat.c: Likewise.
4128 * jv-exp.y: Likewise.
4129 * jv-lang.c: Likewise.
4130 * jv-typeprint.c: Likewise.
4131 * jv-valprint.c: Likewise.
4132 * language.c: Likewise.
4133 * linux-fork.c: Likewise.
4134 * linux-nat.c: Likewise.
4135 * lm32-tdep.c: Likewise.
4136 * m2-exp.y: Likewise.
4137 * m2-typeprint.c: Likewise.
4138 * m32c-tdep.c: Likewise.
4139 * m32r-linux-nat.c: Likewise.
4140 * m32r-linux-tdep.c: Likewise.
4141 * m32r-rom.c: Likewise.
4142 * m32r-tdep.c: Likewise.
4143 * m68hc11-tdep.c: Likewise.
4144 * m68k-tdep.c: Likewise.
4145 * m68kbsd-tdep.c: Likewise.
4146 * m68klinux-nat.c: Likewise.
4147 * m68klinux-tdep.c: Likewise.
4148 * m88k-tdep.c: Likewise.
4149 * machoread.c: Likewise.
4150 * macrocmd.c: Likewise.
4152 * mdebugread.c: Likewise.
4153 * mem-break.c: Likewise.
4154 * memattr.c: Likewise.
4155 * memory-map.c: Likewise.
4156 * mep-tdep.c: Likewise.
4157 * mi/mi-cmd-break.c: Likewise.
4158 * mi/mi-cmd-disas.c: Likewise.
4159 * mi/mi-cmd-env.c: Likewise.
4160 * mi/mi-cmd-stack.c: Likewise.
4161 * mi/mi-cmd-var.c: Likewise.
4162 * mi/mi-cmds.c: Likewise.
4163 * mi/mi-console.c: Likewise.
4164 * mi/mi-getopt.c: Likewise.
4165 * mi/mi-interp.c: Likewise.
4166 * mi/mi-main.c: Likewise.
4167 * mi/mi-parse.c: Likewise.
4168 * microblaze-rom.c: Likewise.
4169 * microblaze-tdep.c: Likewise.
4170 * mingw-hdep.c: Likewise.
4171 * minidebug.c: Likewise.
4172 * minsyms.c: Likewise.
4173 * mips-irix-tdep.c: Likewise.
4174 * mips-linux-tdep.c: Likewise.
4175 * mips-tdep.c: Likewise.
4176 * mips64obsd-tdep.c: Likewise.
4177 * mipsnbsd-tdep.c: Likewise.
4178 * mipsread.c: Likewise.
4179 * mn10300-linux-tdep.c: Likewise.
4180 * mn10300-tdep.c: Likewise.
4181 * monitor.c: Likewise.
4182 * moxie-tdep.c: Likewise.
4183 * mt-tdep.c: Likewise.
4184 * nat/linux-btrace.c: Likewise.
4185 * nat/linux-osdata.c: Likewise.
4186 * nat/linux-procfs.c: Likewise.
4187 * nat/linux-ptrace.c: Likewise.
4188 * nat/linux-waitpid.c: Likewise.
4189 * nbsd-tdep.c: Likewise.
4190 * nios2-linux-tdep.c: Likewise.
4191 * nto-procfs.c: Likewise.
4192 * nto-tdep.c: Likewise.
4193 * objc-lang.c: Likewise.
4194 * objfiles.c: Likewise.
4195 * opencl-lang.c: Likewise.
4196 * osabi.c: Likewise.
4197 * osdata.c: Likewise.
4198 * p-exp.y: Likewise.
4199 * p-lang.c: Likewise.
4200 * p-typeprint.c: Likewise.
4201 * parse.c: Likewise.
4202 * posix-hdep.c: Likewise.
4203 * ppc-linux-nat.c: Likewise.
4204 * ppc-sysv-tdep.c: Likewise.
4205 * ppcfbsd-tdep.c: Likewise.
4206 * ppcnbsd-tdep.c: Likewise.
4207 * ppcobsd-tdep.c: Likewise.
4208 * printcmd.c: Likewise.
4209 * procfs.c: Likewise.
4210 * prologue-value.c: Likewise.
4211 * python/py-auto-load.c: Likewise.
4212 * python/py-gdb-readline.c: Likewise.
4213 * ravenscar-thread.c: Likewise.
4214 * regcache.c: Likewise.
4215 * registry.c: Likewise.
4216 * remote-fileio.c: Likewise.
4217 * remote-m32r-sdi.c: Likewise.
4218 * remote-mips.c: Likewise.
4219 * remote-notif.c: Likewise.
4220 * remote-sim.c: Likewise.
4221 * remote.c: Likewise.
4222 * reverse.c: Likewise.
4223 * rs6000-aix-tdep.c: Likewise.
4224 * ser-base.c: Likewise.
4225 * ser-go32.c: Likewise.
4226 * ser-mingw.c: Likewise.
4227 * ser-pipe.c: Likewise.
4228 * ser-tcp.c: Likewise.
4229 * ser-unix.c: Likewise.
4230 * serial.c: Likewise.
4231 * sh-tdep.c: Likewise.
4232 * sh64-tdep.c: Likewise.
4233 * shnbsd-tdep.c: Likewise.
4235 * sol-thread.c: Likewise.
4236 * solib-dsbt.c: Likewise.
4237 * solib-frv.c: Likewise.
4238 * solib-osf.c: Likewise.
4239 * solib-som.c: Likewise.
4240 * solib-spu.c: Likewise.
4241 * solib-target.c: Likewise.
4242 * solib.c: Likewise.
4243 * somread.c: Likewise.
4244 * source.c: Likewise.
4245 * sparc-nat.c: Likewise.
4246 * sparc-sol2-tdep.c: Likewise.
4247 * sparc-tdep.c: Likewise.
4248 * sparc64-tdep.c: Likewise.
4249 * sparc64fbsd-tdep.c: Likewise.
4250 * sparc64nbsd-tdep.c: Likewise.
4251 * sparcnbsd-tdep.c: Likewise.
4252 * spu-linux-nat.c: Likewise.
4253 * spu-multiarch.c: Likewise.
4254 * spu-tdep.c: Likewise.
4255 * stabsread.c: Likewise.
4256 * stack.c: Likewise.
4257 * std-regs.c: Likewise.
4258 * symfile.c: Likewise.
4259 * symmisc.c: Likewise.
4260 * symtab.c: Likewise.
4261 * target.c: Likewise.
4262 * thread.c: Likewise.
4263 * tilegx-linux-nat.c: Likewise.
4264 * tilegx-tdep.c: Likewise.
4266 * tracepoint.c: Likewise.
4267 * tui/tui-command.c: Likewise.
4268 * tui/tui-data.c: Likewise.
4269 * tui/tui-disasm.c: Likewise.
4270 * tui/tui-file.c: Likewise.
4271 * tui/tui-layout.c: Likewise.
4272 * tui/tui-out.c: Likewise.
4273 * tui/tui-regs.c: Likewise.
4274 * tui/tui-source.c: Likewise.
4275 * tui/tui-stack.c: Likewise.
4276 * tui/tui-win.c: Likewise.
4277 * tui/tui-windata.c: Likewise.
4278 * tui/tui-winsource.c: Likewise.
4279 * typeprint.c: Likewise.
4280 * ui-file.c: Likewise.
4281 * ui-out.c: Likewise.
4282 * user-regs.c: Likewise.
4283 * utils.c: Likewise.
4284 * v850-tdep.c: Likewise.
4285 * valarith.c: Likewise.
4286 * valops.c: Likewise.
4287 * valprint.c: Likewise.
4288 * value.c: Likewise.
4289 * varobj.c: Likewise.
4290 * vax-tdep.c: Likewise.
4291 * vaxnbsd-tdep.c: Likewise.
4292 * vaxobsd-tdep.c: Likewise.
4293 * windows-nat.c: Likewise.
4294 * xcoffread.c: Likewise.
4295 * xml-support.c: Likewise.
4296 * xstormy16-tdep.c: Likewise.
4297 * xtensa-linux-nat.c: Likewise.
4299 2014-08-07 Gary Benson <gbenson@redhat.com>
4301 * common/common-defs.h: Include gdb_assert.h.
4302 * aarch64-tdep.c: Do not include gdb_assert.h.
4303 * addrmap.c: Likewise.
4304 * aix-thread.c: Likewise.
4305 * alpha-linux-tdep.c: Likewise.
4306 * alpha-mdebug-tdep.c: Likewise.
4307 * alphanbsd-tdep.c: Likewise.
4308 * amd64-nat.c: Likewise.
4309 * amd64-tdep.c: Likewise.
4310 * amd64bsd-nat.c: Likewise.
4311 * amd64fbsd-nat.c: Likewise.
4312 * amd64fbsd-tdep.c: Likewise.
4313 * amd64nbsd-nat.c: Likewise.
4314 * amd64nbsd-tdep.c: Likewise.
4315 * amd64obsd-nat.c: Likewise.
4316 * amd64obsd-tdep.c: Likewise.
4317 * arch-utils.c: Likewise.
4318 * arm-tdep.c: Likewise.
4319 * armbsd-tdep.c: Likewise.
4321 * bcache.c: Likewise.
4322 * bfin-tdep.c: Likewise.
4323 * blockframe.c: Likewise.
4324 * breakpoint.c: Likewise.
4325 * bsd-kvm.c: Likewise.
4326 * bsd-uthread.c: Likewise.
4327 * buildsym.c: Likewise.
4328 * c-exp.y: Likewise.
4329 * c-lang.c: Likewise.
4330 * charset.c: Likewise.
4331 * cleanups.c: Likewise.
4332 * cli-out.c: Likewise.
4333 * cli/cli-decode.c: Likewise.
4334 * cli/cli-dump.c: Likewise.
4335 * cli/cli-logging.c: Likewise.
4336 * cli/cli-script.c: Likewise.
4337 * cli/cli-utils.c: Likewise.
4338 * coffread.c: Likewise.
4339 * common/common-utils.c: Likewise.
4340 * common/queue.h: Likewise.
4341 * common/signals.c: Likewise.
4342 * common/vec.h: Likewise.
4343 * complaints.c: Likewise.
4344 * completer.c: Likewise.
4345 * corelow.c: Likewise.
4346 * cp-abi.c: Likewise.
4347 * cp-name-parser.y: Likewise.
4348 * cp-namespace.c: Likewise.
4349 * cp-support.c: Likewise.
4350 * cris-tdep.c: Likewise.
4351 * dbxread.c: Likewise.
4352 * dictionary.c: Likewise.
4353 * doublest.c: Likewise.
4354 * dsrec.c: Likewise.
4355 * dummy-frame.c: Likewise.
4356 * dwarf2-frame-tailcall.c: Likewise.
4357 * dwarf2-frame.c: Likewise.
4358 * dwarf2expr.c: Likewise.
4359 * dwarf2loc.c: Likewise.
4360 * dwarf2read.c: Likewise.
4362 * event-loop.c: Likewise.
4363 * exceptions.c: Likewise.
4364 * expprint.c: Likewise.
4365 * f-valprint.c: Likewise.
4366 * fbsd-nat.c: Likewise.
4367 * findvar.c: Likewise.
4368 * frame-unwind.c: Likewise.
4369 * frame.c: Likewise.
4370 * frv-tdep.c: Likewise.
4371 * gcore.c: Likewise.
4372 * gdb-dlfcn.c: Likewise.
4373 * gdb_bfd.c: Likewise.
4374 * gdbarch.c: Likewise.
4375 * gdbarch.sh: Likewise.
4376 * gdbtypes.c: Likewise.
4377 * gnu-nat.c: Likewise.
4378 * gnu-v3-abi.c: Likewise.
4379 * go-lang.c: Likewise.
4380 * guile/scm-exception.c: Likewise.
4381 * guile/scm-gsmob.c: Likewise.
4382 * guile/scm-lazy-string.c: Likewise.
4383 * guile/scm-math.c: Likewise.
4384 * guile/scm-pretty-print.c: Likewise.
4385 * guile/scm-safe-call.c: Likewise.
4386 * guile/scm-utils.c: Likewise.
4387 * guile/scm-value.c: Likewise.
4388 * h8300-tdep.c: Likewise.
4389 * hppa-hpux-nat.c: Likewise.
4390 * hppa-tdep.c: Likewise.
4391 * hppanbsd-tdep.c: Likewise.
4392 * hppaobsd-tdep.c: Likewise.
4393 * i386-darwin-nat.c: Likewise.
4394 * i386-darwin-tdep.c: Likewise.
4395 * i386-nto-tdep.c: Likewise.
4396 * i386-tdep.c: Likewise.
4397 * i386bsd-nat.c: Likewise.
4398 * i386fbsd-tdep.c: Likewise.
4399 * i386gnu-nat.c: Likewise.
4400 * i386nbsd-tdep.c: Likewise.
4401 * i386obsd-tdep.c: Likewise.
4402 * i387-tdep.c: Likewise.
4403 * ia64-libunwind-tdep.c: Likewise.
4404 * ia64-tdep.c: Likewise.
4405 * inf-ptrace.c: Likewise.
4406 * inf-ttrace.c: Likewise.
4407 * infcall.c: Likewise.
4408 * infcmd.c: Likewise.
4409 * infrun.c: Likewise.
4410 * inline-frame.c: Likewise.
4411 * interps.c: Likewise.
4412 * jv-lang.c: Likewise.
4413 * jv-typeprint.c: Likewise.
4414 * linux-fork.c: Likewise.
4415 * linux-nat.c: Likewise.
4416 * linux-thread-db.c: Likewise.
4417 * m32c-tdep.c: Likewise.
4418 * m32r-linux-nat.c: Likewise.
4419 * m32r-tdep.c: Likewise.
4420 * m68k-tdep.c: Likewise.
4421 * m68kbsd-nat.c: Likewise.
4422 * m68kbsd-tdep.c: Likewise.
4423 * m88k-tdep.c: Likewise.
4424 * machoread.c: Likewise.
4425 * macroexp.c: Likewise.
4426 * macrotab.c: Likewise.
4427 * maint.c: Likewise.
4428 * mdebugread.c: Likewise.
4429 * memory-map.c: Likewise.
4430 * mep-tdep.c: Likewise.
4431 * mi/mi-common.c: Likewise.
4432 * microblaze-tdep.c: Likewise.
4433 * mingw-hdep.c: Likewise.
4434 * mips-linux-nat.c: Likewise.
4435 * mips-linux-tdep.c: Likewise.
4436 * mips-tdep.c: Likewise.
4437 * mips64obsd-tdep.c: Likewise.
4438 * mipsnbsd-tdep.c: Likewise.
4439 * mn10300-linux-tdep.c: Likewise.
4440 * mn10300-tdep.c: Likewise.
4441 * moxie-tdep.c: Likewise.
4442 * mt-tdep.c: Likewise.
4443 * nat/linux-btrace.c: Likewise.
4444 * nat/linux-osdata.c: Likewise.
4445 * nat/linux-ptrace.c: Likewise.
4446 * nat/mips-linux-watch.c: Likewise.
4447 * nios2-linux-tdep.c: Likewise.
4448 * nios2-tdep.c: Likewise.
4449 * objc-lang.c: Likewise.
4450 * objfiles.c: Likewise.
4451 * obsd-nat.c: Likewise.
4452 * opencl-lang.c: Likewise.
4453 * osabi.c: Likewise.
4454 * parse.c: Likewise.
4455 * ppc-linux-nat.c: Likewise.
4456 * ppc-sysv-tdep.c: Likewise.
4457 * ppcfbsd-nat.c: Likewise.
4458 * ppcfbsd-tdep.c: Likewise.
4459 * ppcnbsd-nat.c: Likewise.
4460 * ppcnbsd-tdep.c: Likewise.
4461 * ppcobsd-nat.c: Likewise.
4462 * ppcobsd-tdep.c: Likewise.
4463 * printcmd.c: Likewise.
4464 * procfs.c: Likewise.
4465 * prologue-value.c: Likewise.
4466 * psymtab.c: Likewise.
4467 * python/py-lazy-string.c: Likewise.
4468 * python/py-value.c: Likewise.
4469 * regcache.c: Likewise.
4470 * reggroups.c: Likewise.
4471 * registry.c: Likewise.
4472 * remote-sim.c: Likewise.
4473 * remote.c: Likewise.
4474 * rs6000-aix-tdep.c: Likewise.
4475 * rs6000-tdep.c: Likewise.
4476 * s390-linux-tdep.c: Likewise.
4477 * score-tdep.c: Likewise.
4478 * ser-base.c: Likewise.
4479 * ser-mingw.c: Likewise.
4480 * sh-tdep.c: Likewise.
4481 * sh64-tdep.c: Likewise.
4482 * solib-darwin.c: Likewise.
4483 * solib-spu.c: Likewise.
4484 * solib-svr4.c: Likewise.
4485 * source.c: Likewise.
4486 * sparc-nat.c: Likewise.
4487 * sparc-sol2-tdep.c: Likewise.
4488 * sparc-tdep.c: Likewise.
4489 * sparc64-sol2-tdep.c: Likewise.
4490 * sparc64-tdep.c: Likewise.
4491 * sparc64fbsd-tdep.c: Likewise.
4492 * sparc64nbsd-tdep.c: Likewise.
4493 * sparc64obsd-tdep.c: Likewise.
4494 * sparcnbsd-tdep.c: Likewise.
4495 * sparcobsd-tdep.c: Likewise.
4496 * spu-multiarch.c: Likewise.
4497 * spu-tdep.c: Likewise.
4498 * stabsread.c: Likewise.
4499 * stack.c: Likewise.
4500 * symfile.c: Likewise.
4501 * symtab.c: Likewise.
4502 * target-descriptions.c: Likewise.
4503 * target-memory.c: Likewise.
4504 * target.c: Likewise.
4505 * tic6x-linux-tdep.c: Likewise.
4506 * tic6x-tdep.c: Likewise.
4507 * tilegx-linux-nat.c: Likewise.
4508 * tilegx-tdep.c: Likewise.
4510 * tramp-frame.c: Likewise.
4511 * tui/tui-out.c: Likewise.
4512 * tui/tui-winsource.c: Likewise.
4513 * ui-out.c: Likewise.
4514 * user-regs.c: Likewise.
4515 * utils.c: Likewise.
4516 * v850-tdep.c: Likewise.
4517 * valops.c: Likewise.
4518 * value.c: Likewise.
4519 * varobj.c: Likewise.
4520 * vax-nat.c: Likewise.
4521 * xml-syscall.c: Likewise.
4522 * xml-tdesc.c: Likewise.
4523 * xstormy16-tdep.c: Likewise.
4524 * xtensa-linux-nat.c: Likewise.
4525 * xtensa-tdep.c: Likewise.
4527 2014-08-07 Gary Benson <gbenson@redhat.com>
4529 * common/common-defs.h: Include common-utils.h.
4530 * defs.h: Do not include common-utils.h.
4531 * common/gdb_assert.h: Likewise.
4532 * darwin-nat.h: Likewise.
4533 * nat/linux-btrace.c: Likewise.
4534 * target/waitstatus.h: Likewise.
4536 2014-08-07 Gary Benson <gbenson@redhat.com>
4538 * common/common-defs.h: Include ptid.h.
4539 * defs.h: Do not include ptid.h.
4540 * inferior.h: Likewise.
4541 * infrun.h: Likewise.
4542 * nat/linux-btrace.h: Likewise.
4543 * nat/linux-osdata.h: Likewise.
4544 * target/waitstatus.h: Likewise.
4546 2014-08-07 Gary Benson <gbenson@redhat.com>
4548 * common/common-defs.h: Include gdb_locale.h.
4549 * defs.h: Do not include gdb_locale.h.
4551 2014-08-07 Gary Benson <gbenson@redhat.com>
4553 * common/common-defs.h: Include gdb/signals.h.
4554 * defs.h: Do not include gdb/signals.h.
4556 2014-08-07 Gary Benson <gbenson@redhat.com>
4558 * common/common-defs.h: Include pathmax.h.
4559 * defs.h: Do not include pathmax.h.
4561 2014-08-07 Gary Benson <gbenson@redhat.com>
4563 * common/common-defs.h: Include libiberty.h.
4564 * defs.h: Do not include libiberty.h.
4565 * common/queue.h: Likewise.
4566 * cp-name-parser.y: Likewise.
4567 * mi/mi-cmd-catch.c: Likewise.
4568 * python/python.c: Likewise.
4570 2014-08-07 Gary Benson <gbenson@redhat.com>
4572 * common/common-defs.h: Include ansidecl.h.
4573 * defs.h: Do not include ansidecl.h.
4574 * common/buffer.h: Likewise.
4575 * common/common-utils.h: Likewise.
4577 2014-08-07 Gary Benson <gbenson@redhat.com>
4579 * common/common-defs.h: Include stddef.h.
4580 * defs.h: Do not include stddef.h.
4581 * common/common-utils.h: Likewise.
4582 * amd64fbsd-nat.c: Likewise.
4583 * bcache.c: Likewise.
4584 * charset.c: Likewise.
4585 * common/buffer.h: Likewise.
4586 * common/vec.h: Likewise.
4587 * i386bsd-nat.c: Likewise.
4588 * nat/linux-btrace.h: Likewise.
4589 * ppcfbsd-nat.c: Likewise.
4590 * ppcnbsd-tdep.h: Likewise.
4591 * ppcobsd-nat.c: Likewise.
4592 * ppcobsd-tdep.h: Likewise.
4593 * python/py-gdb-readline.c: Likewise.
4595 2014-08-07 Gary Benson <gbenson@redhat.com>
4597 * common/common-defs.h: Include stdarg.h.
4598 * defs.h: Do not include stdarg.h.
4599 * ada-lang.c: Likewise.
4600 * common/common-utils.h: Likewise.
4601 * guile/scm-string.c: Likewise.
4602 * guile/scm-utils.c: Likewise.
4603 * m32c-tdep.c: Likewise.
4605 2014-08-07 Gary Benson <gbenson@redhat.com>
4607 * common/common-defs.h: Include stdlib.h.
4608 * defs.h: Do not include stdlib.h.
4609 * addrmap.c: Likewise.
4610 * bcache.c: Likewise.
4611 * common/buffer.c: Likewise.
4612 * common/common-utils.c: Likewise.
4613 * cp-name-parser.y: Likewise.
4614 * go32-nat.c: Likewise.
4615 * mn10300-linux-tdep.c: Likewise.
4616 * nat/linux-osdata.c: Likewise.
4617 * tui/tui.c: Likewise.
4618 * windows-nat.c: Likewise.
4620 2014-08-07 Gary Benson <gbenson@redhat.com>
4622 * common/common-defs.h: Include stdio.h.
4623 * defs.h: Do not include stdio.h.
4624 * ada-lang.c: Likewise.
4625 * common/buffer.c: Likewise.
4626 * common/common-utils.c: Likewise.
4627 * cp-name-parser.y: Likewise.
4628 * gnu-nat.c: Likewise.
4629 * go32-nat.c: Likewise.
4630 * i386gnu-nat.c: Likewise.
4631 * proc-api.c: Likewise.
4632 * proc-events.c: Likewise.
4633 * proc-flags.c: Likewise.
4634 * proc-why.c: Likewise.
4635 * python/python-internal.h: Likewise.
4636 * target-memory.c: Likewise.
4637 * tui/tui-io.c: Likewise.
4638 * tui/tui.c: Likewise.
4640 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4642 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4643 (scan_dyntag_auxv): Same.
4645 2014-08-06 Yao Qi <yao@codesourcery.com>
4647 * amd64-linux-nat.c: Remove duplicated include
4649 * i386-linux-nat.c: Likewise.
4651 2014-08-06 Yao Qi <yao@codesourcery.com>
4653 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4654 operand" with "Special opcode" in comments.
4656 2014-08-05 Gary Benson <gbenson@redhat.com>
4658 * interps.c (initialize_interps): Remove prototype.
4659 (interpreter_initialized): Remove static global.
4660 (interp_add): Do not call initialize_interps.
4661 (initialize_interps): Remove function.
4663 2014-08-05 Gary Benson <gbenson@redhat.com>
4665 * utils.c (vwarning): Remove spurious va_end.
4667 2014-08-05 Alan Modra <amodra@gmail.com>
4669 * charset.c (convert_between_encodings): Cast result of obstack_base.
4670 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4671 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4672 (read_unwind_info): Use size_t for some locals.
4673 * jit.c (finalize_symtab): Likewise.
4674 * utils.c (hashtab_obstack_allocate): Likewise.
4675 * symmisc.c (print_objfile_statistics): Update format strings.
4677 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4679 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4680 (Changes in GDB 7.8): ... here.
4682 2014-08-04 Tom Tromey <tromey@redhat.com>
4684 * target.c (set_targetdebug): New function.
4685 (initialize_targets): Pass set_targetdebug when creating "set
4688 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4690 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4691 if detecting a variable-sized field that is not the last field.
4692 Fix struct type length computation.
4694 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4696 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4699 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4701 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4702 Remove "+ 8" offset in computation of CHAIN_VMA.
4704 2014-07-31 Doug Evans <dje@google.com>
4706 * inflow.c (child_terminal_inferior): Add comment.
4707 (child_terminal_ours_for_output): Add comment.
4708 (child_terminal_ours): Add comment.
4709 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4710 (linux_nat_terminal_ours): Add comment.
4712 2014-07-31 Gary Benson <gbenson@redhat.com>
4714 * common/btrace-common.h: Do not include defs.h or server.h.
4715 * nat/mips-linux-watch.h: Likewise.
4716 * gdb-dlfcn.h: Do not include defs.h.
4717 * tracefile.h: Likewise.
4719 2014-07-30 Roland McGrath <mcgrathr@google.com>
4721 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4723 2014-07-30 Tom Tromey <tromey@redhat.com>
4725 * bsd-kvm.c (bsd_kvm_open): Constify.
4726 * corelow.c (core_open): Constify.
4727 * ctf.c (ctf_open): Constify.
4728 * dbug-rom.c (dbug_open): Constify.
4729 * exec.c (exec_open): Constify.
4730 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4731 * microblaze-rom.c (picobug_open): Constify.
4732 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4734 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4735 * record-btrace.c (record_btrace_open): Constify.
4736 * record-full.c (record_full_core_open_1, record_full_open_1)
4737 (record_full_open): Constify.
4738 * remote-m32r-sdi.c (m32r_open): Constify.
4739 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4740 (rockhopper_open, lsi_open): Constify.
4741 * remote-sim.c (gdbsim_open): Constify.
4742 * remote.c (remote_open, extended_remote_open, remote_open_1):
4744 * target.h (struct target_ops) <to_open>: Make "arg" const.
4745 * tracefile-tfile.c (tfile_open): Constify.
4747 2014-07-30 Tom Tromey <tromey@redhat.com>
4749 * breakpoint.c (map_breakpoint_numbers): Update.
4750 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4751 (get_number_const): New function.
4752 (get_number): Rewrite using get_number_const.
4753 (init_number_or_range): Make "string" const.
4754 (number_is_in_list): Make "list" const.
4755 * cli/cli-utils.h (get_number_const): Declare.
4756 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4757 (init_number_or_range, number_is_in_list): Update.
4758 * printcmd.c (map_display_numbers): Update.
4759 * value.c (value_from_history_ref): Constify.
4760 * value.h (value_from_history_ref): Update.
4762 2014-07-30 Tom Tromey <tromey@redhat.com>
4764 * corefile.c (hook_type, call_extra_exec_file_hooks)
4765 (specify_exec_file_hook): Constify.
4766 * exec.c (exec_file_attach): Make "filename" const.
4767 * gdbcore.h (deprecated_exec_file_display_hook)
4768 (specify_exec_file_hook, exec_file_attach): Constify.
4769 * main.c (captured_main): Use catch_command_errors_const.
4771 2014-07-30 Tom Tromey <tromey@redhat.com>
4773 * target.c (open_target): New function.
4774 (add_target_with_completer, add_deprecated_target_alias): Use
4775 set_cmd_sfunc, set_cmd_context.
4776 (debug_to_open): Remove.
4777 (setup_target_debug): Update.
4779 2014-07-30 Yao Qi <yao@codesourcery.com>
4781 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4783 * parse.c (exp_iterate): Update comments.
4785 2014-07-30 Gary Benson <gbenson@redhat.com>
4787 * common/common-defs.h: New file.
4788 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4789 * defs.h: Include common-defs.h.
4790 Do not include config.h or build-gnulib/config.h.
4792 2014-07-30 Gary Benson <gbenson@redhat.com>
4794 * common/common-utils.h: Do not include config.h.
4795 * nat/linux-btrace.h: Likewise.
4797 2014-07-30 Gary Benson <gbenson@redhat.com>
4799 * btrace.c: Include defs.h.
4800 * common/ptid.c: Include defs.h or server.h as appropriate.
4801 * nat/mips-linux-watch.c: Likewise.
4803 2014-07-29 Tom Tromey <tromey@redhat.com>
4805 * target.c (target_is_pushed): Simplify.
4807 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4811 2014-07-29 Yao Qi <yao@codesourcery.com>
4814 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4816 2014-07-28 Doug Evans <xdje42@gmail.com>
4819 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4820 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4823 2014-07-28 Will Newton <will.newton@linaro.org>
4825 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4826 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4827 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4828 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4829 (THUMB2_EABI_SYSCALL): Likewise.
4830 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4832 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4833 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4835 2014-07-27 Doug Evans <xdje42@gmail.com>
4837 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4839 2014-07-27 Doug Evans <xdje42@gmail.com>
4841 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4843 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4844 Doug Evans <xdje42@gmail.com>
4847 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4848 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4849 * configure.ac: Try to use guild to compile an scm file, if it fails
4850 then disable guile support.
4851 * configure: Regenerate.
4852 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4854 (GUILE_COMPILED_FILES): New variable.
4855 (GUILE_FILES) Update.
4856 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4857 (stamp-guile): Compile scm files.
4858 * guile/guile.c (boot_guile_support): New function.
4859 (standard_throw_args_p): New function.
4860 (print_standard_throw_error, print_throw_error): New functions.
4861 (handle_boot_error): New function.
4862 (initialize_scheme_side): Rewrite to call boot_guile_support.
4863 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4864 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4866 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4867 Doug Evans <xdje42@gmail.com>
4870 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4871 * guile/lib/gdb/support.scm: New file.
4872 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4873 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4875 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4877 (%assert-type): Ditto, and renamed to assert-type.
4878 (%exception-print-style): Delete.
4880 2014-07-26 Doug Evans <xdje42@gmail.com>
4883 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4884 * configure: Regenerate.
4885 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4887 (PYTHON_FILES): New variable.
4888 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4889 (GUILE_FILES): New variable.
4890 (stamp-python, install-python, uninstall-python): Handle empty
4892 (stamp-guile, install-guile, uninstall-guile): Ditto.
4894 2014-07-26 Doug Evans <xdje42@gmail.com>
4897 * guile/lib/gdb.scm (pretty-printers): Export.
4898 (set-pretty-printers!): Export.
4899 * guile/lib/gdb/printing.scm (gdb module): Update.
4900 (prepend-pretty-printer!, append-pretty-printer!): Update.
4901 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4902 (pretty_printer_list_var): Delete.
4903 (pretty_printer_list): New static global.
4904 (gdbscm_pretty_printers): New function.
4905 (gdbscm_set_pretty_printers_x): New function.
4906 (ppscm_find_pretty_printer_from_gdb): Update.
4907 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4908 (gdbscm_initialize_pretty_printers): Update.
4910 2014-07-26 Doug Evans <xdje42@gmail.com>
4913 * configure.ac: Add check for header gc/gc.h.
4914 Add check for function setenv.
4915 * configure: Regenerate.
4916 * config.in: Regenerate.
4917 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4919 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4921 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4922 variation in gdbarch matching.
4924 2014-07-25 Tom Tromey <tromey@redhat.com>
4926 * exec.c (using_exec_ops): Remove.
4927 (exec_close_1): Update. Remove extraneous block, reindent.
4928 (add_target_sections): Use target_is_pushed.
4930 2014-07-25 Pedro Alves <palves@redhat.com>
4932 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4933 * monitor.c (monitor_create_inferior): Likewise.
4934 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4935 * remote-sim.c (gdbsim_create_inferior): Likewise.
4936 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4937 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4938 * windows-nat.c (do_initial_windows_stuff): Likewise.
4940 2014-07-25 Pedro Alves <palves@redhat.com>
4942 * NEWS: Mention signal passing and "signal" command changes.
4943 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4945 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4947 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4948 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4949 (jump_command): Adjust clear_proceed_status call.
4950 (signal_command): Warn if other thread that are resumed have
4951 signals that will be delivered. Adjust clear_proceed_status call.
4952 (until_next_command, finish_command)
4953 (proceed_after_attach_callback, attach_command_post_wait)
4954 (attach_command): Adjust clear_proceed_status call.
4955 * infrun.c (proceed_after_vfork_done): Likewise.
4956 (proceed_after_attach_callback): Adjust comment.
4957 (clear_proceed_status_thread): Clear stop_signal if not in pass
4959 (clear_proceed_status_callback): Delete.
4960 (clear_proceed_status): New 'step' parameter. Only clear the
4961 proceed status of threads the command being prepared is about to
4963 (proceed): If passed in an explicit signal, override stop_signal
4964 with it. Don't pass the last stop signal to the thread we're
4966 (init_wait_for_inferior): Adjust clear_proceed_status call.
4967 (switch_back_to_stepped_thread): Clear the signal if it should not
4969 * infrun.h (clear_proceed_status): New 'step' parameter.
4970 (user_visible_resume_ptid): Add comment.
4971 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4972 signal is in pass state.
4973 * remote.c (append_pending_thread_resumptions): Likewise.
4974 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4976 2014-07-25 Tom Tromey <tromey@redhat.com>
4978 * target.h (target_stopped_data_address)
4979 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4982 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4984 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4986 (avr_pointer_to_address): Likewise.
4988 2014-07-24 Tom Tromey <tromey@redhat.com>
4990 * monitor.c (compile_pattern): Update.
4991 * target.h (struct target_ops) <to_shortname, to_longname,
4994 2014-07-24 Tom Tromey <tromey@redhat.com>
4996 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4997 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4998 (add_info_alias, add_com): Make "doc" const.
4999 (print_doc_line): Make "str" const.
5000 (delete_cmd): Update.
5001 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5002 (print_doc_line): Update.
5003 * cli/cli-script.c (document_command): Update.
5004 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5005 (add_com, add_info, add_info_alias): Update.
5006 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5007 * python/py-cmd.c (cmdpy_destroyer): Update.
5009 2014-07-24 Tom Tromey <tromey@redhat.com>
5011 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5012 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5013 (help_cmd_list): Constify.
5014 (lookup_cmd): Update.
5015 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5017 (help_cmd_list, apropos_cmd): Update.
5018 * cli/cli-script.c (show_user): Update.
5019 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5020 * cli/cli-setshow.h (cmd_show_list): Update.
5021 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5022 (cmd_show_list): Update.
5023 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5024 * python/py-cmd.c (cmdpy_destroyer): Update.
5026 2014-07-24 Tom Tromey <tromey@redhat.com>
5028 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5029 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5031 * command.h (deprecate_cmd): Update.
5032 * maint.c (maintenance_do_deprecate): Add casts.
5034 2014-07-24 Tom Tromey <tromey@redhat.com>
5036 * cli/cli-decode.c (help_cmd): Make parameter "const".
5037 * cli/cli-decode.h (help_cmd): Update.
5039 2014-07-24 Tom Tromey <tromey@redhat.com>
5041 * stack.c (up_silently_base, down_silently_base): Make argument
5044 2014-07-24 Tom Tromey <tromey@redhat.com>
5046 * solib.c (solib_add): Make "pattern" const.
5047 * solib.h (solib_add): Update.
5049 2014-07-24 Tom Tromey <tromey@redhat.com>
5051 * remote.c (remote_serial_open, print_packet, putpkt)
5052 (putpkt_binary): Constify.
5053 * remote.h (putpkt): Update.
5055 2014-07-24 Tom Tromey <tromey@redhat.com>
5057 * monitor.c (monitor_open): Make "args" const.
5058 * monitor.h (monitor_open): Update.
5060 2014-07-24 Tom Tromey <tromey@redhat.com>
5062 * maint.c (match_bfd_flags): Make "string" const.
5063 (print_bfd_section_info): Remove casts.
5064 (print_objfile_section_info): Make "string" const.
5066 2014-07-24 Tom Tromey <tromey@redhat.com>
5068 * inf-child.c (inf_child_open_target): Make "arg" const.
5069 * inf-child.h (inf_child_open_target): Update.
5071 2014-07-24 Tom Tromey <tromey@redhat.com>
5073 * environ.c (unset_in_environ): Make "var" const.
5074 * environ.h (unset_in_environ): Update.
5076 2014-07-24 Tom Tromey <tromey@redhat.com>
5078 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5080 (scan_filename_with_cleanup): Likewise.
5081 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5082 Make arguments const.
5083 (restore_command): Update.
5085 2014-07-24 Pedro Alves <palves@redhat.com>
5087 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5089 2014-07-24 Tom Tromey <tromey@redhat.com>
5090 Gary Benson <gbenson@redhat.com>
5092 * nat/linux-ptrace.c (additional_flags): New global.
5093 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5094 additional_flags; don't check GDBSERVER.
5095 (linux_ptrace_set_additional_flags): New function.
5096 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5098 * linux-nat.c (_initialize_linux_nat): Call
5099 linux_ptrace_set_additional_flags.
5101 2014-07-24 Tom Tromey <tromey@redhat.com>
5103 * make-target-delegates (munge_type, write_debugmethod): New
5105 (debug_names): New global.
5106 ($TARGET_DEBUG_PRINTER): New global.
5107 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5109 Write debug methods. Generate init_debug_target.
5110 * target-debug.h: New file.
5111 * target-delegates.c: Rebuild.
5112 * target.c: Include target-debug.h.
5113 (debug_target): Hoist definition.
5114 (target_kill, target_get_section_table, target_memory_map)
5115 (target_flash_erase, target_flash_done, target_detach)
5116 (target_disconnect, target_wait, target_resume)
5117 (target_pass_signals, target_program_signals, target_follow_fork)
5118 (target_mourn_inferior, target_search_memory)
5119 (target_thread_address_space, target_close)
5120 (target_find_new_threads, target_core_of_thread)
5121 (target_verify_memory, target_insert_mask_watchpoint)
5122 (target_remove_mask_watchpoint): Remove targetdebug code.
5123 (debug_to_post_attach, debug_to_prepare_to_store)
5124 (debug_to_files_info, debug_to_insert_breakpoint)
5125 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5126 (debug_to_region_ok_for_hw_watchpoint)
5127 (debug_to_can_accel_watchpoint_condition)
5128 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5129 (debug_to_watchpoint_addr_within_range)
5130 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5131 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5132 (debug_to_terminal_init, debug_to_terminal_inferior)
5133 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5134 (debug_to_terminal_save_ours, debug_to_terminal_info)
5135 (debug_to_load, debug_to_post_startup_inferior)
5136 (debug_to_insert_fork_catchpoint)
5137 (debug_to_remove_fork_catchpoint)
5138 (debug_to_insert_vfork_catchpoint)
5139 (debug_to_remove_vfork_catchpoint)
5140 (debug_to_insert_exec_catchpoint)
5141 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5142 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5143 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5144 (setup_target_debug): Call init_debug_target.
5145 * target.h (TARGET_DEBUG_PRINTER): New macro.
5146 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5147 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5149 2014-07-24 Gary Benson <gbenson@redhat.com>
5151 * exceptions.h (throw_vfatal): Renamed to...
5152 (throw_vquit): New declaration.
5153 (throw_quit): Likewise.
5154 * exceptions.c (throw_vfatal): Renamed to...
5155 (throw_vquit): New function.
5156 (throw_quit): Likewise.
5157 (throw_error): Call throw_verror rather than throw_it.
5158 * utils.h (vfatal): Removed.
5160 * utils.c (vfatal): Removed.
5162 (internal_verror): Replaced call to fatal with call to throw_quit.
5163 (quit): Replaced calls to fatal with calls to throw_quit.
5165 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5167 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5170 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5172 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5173 less than zero in conditional expression.
5175 2014-07-23 Tom Tromey <tromey@redhat.com>
5177 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5178 ($INTRO_PART): Don't match whitespace.
5179 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5181 ($METHOD): Add $METHOD_TRAILER.
5183 (scan_target_h): New sub.
5184 Change main loop not to collect state.
5185 * target-delegates.c: Rebuild.
5187 2014-07-23 Gary Benson <gbenson@redhat.com>
5189 * cp-support.c (gdb_demangle): Fix build on systems without
5192 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5194 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5195 for reference entry value target data value.
5197 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5199 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5200 value_available_contents_eq.
5202 2014-07-22 Pedro Alves <palves@redhat.com>
5204 * value.c (allocate_optimized_out_value): Don't mark value as
5207 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5209 * MAINTAINERS (Write After Approval): Update my email address.
5211 2014-07-20 Doug Evans <dje@google.com>
5214 * remote.c (putpkt_binary): Add text to error message.
5216 2014-07-20 Yao Qi <yao@codesourcery.com>
5218 * eval.c: Remove "Chill" from comments.
5219 * gdbtypes.h: Likewise.
5220 * symtab.h: Likewise.
5222 2014-07-20 Yao Qi <yao@codesourcery.com>
5224 * std-operator.def: Update comments to TERNOP_SLICE.
5226 2014-07-20 Yao Qi <yao@codesourcery.com>
5228 * std-operator.def: Remove BINOP_RANGE.
5229 * breakpoint.c (watchpoint_exp_is_const): Update.
5230 * expprint.c (dump_subexp_body_standard): Likewise.
5231 * eval.c (init_array_element): Remove dead code.
5232 (evaluate_subexp_standard): Likewise.
5234 2014-07-20 Yao Qi <yao@codesourcery.com>
5236 * std-operator.def: Remove BINOP_IN.
5237 * breakpoint.c (watchpoint_exp_is_const): Update.
5238 * eval.c (evaluate_subexp_standard): Likewise.
5239 * expprint.c (dump_subexp_body_standard): Likewise.
5241 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5243 * microblaze-tdep.c (microblaze_register_names): Add
5244 the rshr and rslr register names.
5245 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5246 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5247 Use of tdesc_numbered_register. Use of
5248 microblaze_register_g_packet_guesses. Use of
5249 tdesc_use_registers. Use of set_gdbarch_register_type.
5250 (microblaze_register_g_packet_guesses): New.
5251 * microblaze-tdep.h (microblaze_reg_num): Add
5252 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5253 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5254 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5255 * features/microblaze-core.xml: New file.
5256 * features/microblaze-stack-protect.xml: New file.
5257 * features/microblaze-with-stack-protect.c: New file.
5258 * features/microblaze-with-stack-protect.xml: New file.
5259 * features/microblaze.xml: New file.
5260 * features/microblaze.c: New file.
5261 * features/Makefile (microblaze-with-stack-protect): Add
5262 microblaze-with-stack-protect microblaze and microblaze-expedite.
5263 * regformats/microblaze-with-stack-protect.dat: New file.
5264 * regformats/microblaze.dat: New file.
5265 * doc/gdb.texinfo (MicroBlaze Features): Added.
5267 2014-07-18 Tom Tromey <tromey@redhat.com>
5269 * exec.c (exec_ops): Now static.
5270 * exec.h (exec_ops): Don't declare.
5272 2014-07-18 Tom Tromey <tromey@redhat.com>
5274 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5275 to find_target_beneath.
5276 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5277 find_target_beneath.
5278 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5280 2014-07-18 Tom Tromey <tromey@redhat.com>
5283 * utils.c (quit): Use target_supports_terminal_ours.
5284 * target.h (target_supports_terminal_ours): Declare.
5285 * target.c (target_supports_delete_record): Don't check
5286 to_delete_record against NULL.
5287 (target_supports_terminal_ours): New function.
5289 2014-07-18 Tom Tromey <tromey@redhat.com>
5292 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5293 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5294 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5295 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5296 * windows-nat.c (windows_xfer_partial): Always delegate.
5297 * record-btrace.c (record_btrace_xfer_partial): Simplify
5299 (record_btrace_fetch_registers, record_btrace_store_registers)
5300 (record_btrace_prepare_to_store, record_btrace_resume)
5301 (record_btrace_wait, record_btrace_find_new_threads)
5302 (record_btrace_thread_alive): Likewise.
5303 * procfs.c (procfs_xfer_partial): Always delegate.
5304 * corelow.c (core_xfer_partial): Always delegate.
5305 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5307 2014-07-18 Tom Tromey <tromey@redhat.com>
5309 * exec.c (exec_make_note_section): Move earlier.
5311 2014-07-17 Doug Evans <dje@google.com>
5314 * maint.c (count_symtabs_and_blocks): Handle NULL
5315 current_program_space.
5316 (report_command_stats): Check global enabled flag in addition to
5317 recorded enabled flag.
5318 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5320 2014-07-16 Pedro Alves <palves@redhat.com>
5322 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5324 2014-07-16 Tom Tromey <tromey@redhat.com>
5326 * target.h (struct target_ops) <to_delete_record>: Reformat
5329 2014-07-16 Tom Tromey <tromey@redhat.com>
5331 * target-delegates.c: Rebuild.
5333 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5335 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5336 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5337 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5338 (avr_pointer_to_address): Likewise.
5339 (avr_address_class_type_flags): New function.
5340 (avr_address_class_type_flags_to_name): Likewise.
5341 (avr_address_class_name_to_type_flags): Likewise.
5342 (avr_gdbarch_init): Set address_class_type_flags,
5343 address_class_type_flags_to_name and
5344 address_class_name_to_type_flags.
5346 2014-07-15 Pedro Alves <palves@redhat.com>
5348 * linux-nat.c (kill_callback): Save errno and work with saved
5351 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5353 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5355 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5357 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5358 breakpoint support correctly.
5360 2014-07-14 Pedro Alves <palves@redhat.com>
5362 * utils.c (prompt_for_continue): Call target_terminal_ours.
5364 2014-07-14 Pedro Alves <palves@redhat.com>
5366 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5367 catch_errors. Don't re-enable stdin or notify observers where,
5369 (fetch_inferior_event_wrapper): Delete.
5371 2014-07-14 Pedro Alves <palves@redhat.com>
5374 * top.c: Include "inf-loop.h".
5375 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5377 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5379 (gdb_readline_wrapper): Store whether the target is async, and
5382 2014-07-14 Pedro Alves <palves@redhat.com>
5385 * top.c (gdb_readline_wrapper_line): Tweak comment.
5386 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5387 the input handler callback.
5389 2014-07-14 Pedro Alves <palves@redhat.com>
5392 * main.c: Include event-top.h.
5393 (handle_command_errors): New function.
5394 (catch_command_errors, catch_command_errors_const): Use it.
5396 2014-07-14 Pedro Alves <palves@redhat.com>
5398 * exceptions.c (catch_command_errors, catch_command_errors_const):
5400 * exceptions.h (catch_command_errors_ftype)
5401 (catch_command_errors_const_ftype): Moved to main.c.
5402 (catch_command_errors, catch_command_errors_const): Delete
5404 * main.c (catch_command_errors_ftype)
5405 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5406 (catch_command_errors, catch_command_errors_const)): Moved here
5407 from exceptions.c and make static.
5409 2014-07-14 Pedro Alves <palves@redhat.com>
5411 * exceptions.c (print_any_exception): Delete.
5412 (catch_exceptions_with_msg): Use exception_print instead of
5413 print_any_exception.
5414 (catch_errors): Use exception_fprintf instead of
5415 print_any_exception.
5416 (catch_command_errors, catch_command_errors_const): Use
5417 exception_print instead of print_any_exception.
5419 2014-07-14 Pedro Alves <palves@redhat.com>
5421 * infcall.c (run_inferior_call): Set 'sync_execution' while
5422 running the inferior call.
5424 2014-07-14 Pedro Alves <palves@redhat.com>
5426 * value.c (value_contents_equal): Delete function.
5427 * value.h (value_contents_equal): Delete declaration.
5429 2014-07-14 Tom Tromey <tromey@redhat.com>
5432 * gdbtypes.c (is_dynamic_type_internal): New function, from
5434 (is_dynamic_type): Rewrite.
5435 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5436 (resolve_dynamic_struct): Likewise.
5437 (resolve_dynamic_type_internal): New function, from
5438 resolve_dynamic_type.
5439 (resolve_dynamic_type): Rewrite.
5441 2014-07-14 Tom Tromey <tromey@redhat.com>
5443 * target.c (target_require_runnable): Also check record_stratum.
5446 2014-07-11 Yao Qi <yao@codesourcery.com>
5448 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5449 thumb_instruction_restores_sp return true.
5451 2014-07-11 Yao Qi <yao@codesourcery.com>
5453 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5454 (thumb_in_function_epilogue_p): Call
5455 thumb_instruction_restores_sp.
5457 2014-07-11 Yao Qi <yao@codesourcery.com>
5459 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5461 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5463 2014-07-11 Gary Benson <gbenson@redhat.com>
5465 * amd64-linux-nat.c (gdbcore.h): Remove include.
5466 (regset.h): Likewise.
5467 (nat/linux-btrace.h): Likewise.
5468 (btrace.h): Likewise.
5469 (gdb_assert.h): Likewise.
5470 (string.h): Likewise.
5471 (sys/uio.h): Likewise.
5472 (sys/debugreg.h): Likewise.
5473 (sys/syscall.h): Likewise.
5474 (sys/procfs.h): Likewise.
5475 (sys/user.h): Likewise.
5476 (asm/ptrace.h): Likewise.
5477 (i386-nat.h): Likewise.
5478 * i386-linux-nat.c (i386-nat.h): Likewise.
5479 (regset.h): Likewise.
5480 (target.h): Likewise.
5481 (linux-nat.h): Likewise.
5482 (nat/linux-btrace.h): Likewise.
5483 (btrace.h): Likewise.
5484 (gdb_assert.h): Likewise.
5485 (string.h): Likewise.
5486 (sys/uio.h): Likewise.
5487 (sys/user.h): Likewise.
5488 (sys/procfs.h): Likewise.
5489 (sys/reg.h): Likewise.
5490 (sys/debugreg.h): Likewise.
5491 (ORIG_EAX): Remove definition.
5493 2014-07-11 Gary Benson <gbenson@redhat.com>
5495 * i386-linux-nat.h: New file.
5496 * x86-linux-nat.h: Likewise.
5497 * x86-linux-nat.c: Likewise.
5498 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5499 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5500 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5501 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5502 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5503 (PTRACE_SETREGSET): Likewise.
5504 (arch_lwp_info): Now in x86-linux-nat.c.
5505 (have_ptrace_getregset): Now in x86-linux-nat.h.
5506 (x86_linux_dr_get): Now in x86-linux-nat.c.
5507 (x86_linux_dr_set): Likewise.
5508 (x86_linux_dr_get_addr): Likewise.
5509 (x86_linux_dr_get_control): Likewise.
5510 (x86_linux_dr_get_status): Likewise.
5511 (update_debug_registers_callback): Likewise.
5512 (x86_linux_dr_set_control): Likewise.
5513 (x86_linux_dr_set_addr): Likewise.
5514 (x86_linux_prepare_to_resume): Likewise.
5515 (x86_linux_new_thread): Likewise.
5516 (x86_linux_new_fork): Likewise.
5517 (x86_linux_get_thread_area): Likewise.
5518 (super_post_startup_inferior): Likewise.
5519 (x86_linux_child_post_startup_inferior): Likewise.
5520 (AMD64_LINUX_USER64_CS): Likewise.
5521 (AMD64_LINUX_X32_DS): Likewise.
5522 (x86_linux_read_description): Likewise.
5523 (x86_linux_enable_btrace): Likewise.
5524 (x86_linux_disable_btrace): Likewise.
5525 (x86_linux_teardown_btrace): Likewise.
5526 (x86_linux_read_btrace): Likewise.
5527 (x86_linux_create_target): Likewise.
5528 (x86_linux_add_target): Likewise.
5529 * i386-linux-nat.c (x86-linux-nat.h): New include.
5530 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5531 (PTRACE_SETREGSET): Likewise.
5532 (arch_lwp_info): Now in x86-linux-nat.c.
5533 (have_ptrace_getregset): Now in x86-linux-nat.h.
5534 (x86_linux_dr_get): Now in x86-linux-nat.c.
5535 (x86_linux_dr_set): Likewise.
5536 (x86_linux_dr_get_addr): Likewise.
5537 (x86_linux_dr_get_control): Likewise.
5538 (x86_linux_dr_get_status): Likewise.
5539 (update_debug_registers_callback): Likewise.
5540 (x86_linux_dr_set_control): Likewise.
5541 (x86_linux_dr_set_addr): Likewise.
5542 (x86_linux_prepare_to_resume): Likewise.
5543 (x86_linux_new_thread): Likewise.
5544 (x86_linux_new_fork): Likewise.
5545 (x86_linux_get_thread_area): Likewise.
5546 (super_post_startup_inferior): Likewise.
5547 (x86_linux_child_post_startup_inferior): Likewise.
5548 (AMD64_LINUX_USER64_CS): Likewise.
5549 (AMD64_LINUX_X32_DS): Likewise.
5550 (x86_linux_read_description): Likewise.
5551 (x86_linux_enable_btrace): Likewise.
5552 (x86_linux_disable_btrace): Likewise.
5553 (x86_linux_teardown_btrace): Likewise.
5554 (x86_linux_read_btrace): Likewise.
5555 (x86_linux_create_target): Likewise.
5556 (x86_linux_add_target): Likewise.
5558 2014-07-11 Gary Benson <gbenson@redhat.com>
5560 * amd64-linux-nat.c: Comment and whitespace changes.
5561 * i386-linux-nat.c: Comment and whitespace changes.
5563 2014-07-11 Gary Benson <gbenson@redhat.com>
5565 * amd64-linux-nat.c (x86_linux_create_target): New function.
5566 (x86_linux_add_target): Likewise.
5567 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5568 * i386-linux-nat.c (x86_linux_create_target): New function.
5569 (x86_linux_add_target): Likewise.
5570 (_initialize_i386_linux_nat): Delegate to the above new functions.
5572 2014-07-11 Gary Benson <gbenson@redhat.com>
5574 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5575 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5576 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5577 (ps_get_thread_area): Delegate to the above.
5579 2014-07-11 Gary Benson <gbenson@redhat.com>
5581 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5582 x86_linux_read_description. All uses updated. amd64-specific
5583 code conditionalized. Conditionalized i386-specific code added.
5584 Redundant cast removed.
5585 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5586 x86_linux_read_description. All uses updated. i386-specific
5587 code conditionalized. Conditionalized amd64-specific code added.
5588 One sizeof replaced with the actual type it is describing.
5590 2014-07-11 Gary Benson <gbenson@redhat.com>
5592 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5593 x86_linux_dr_get. All uses updated.
5594 (amd64_linux_dr_set): Renamed to
5595 x86_linux_dr_set. All uses updated.
5596 (amd64_linux_dr_get_addr): Renamed to
5597 x86_linux_dr_get_addr. All uses updated.
5598 (amd64_linux_dr_get_control): Renamed to
5599 x86_linux_dr_get_control. All uses updated.
5600 (amd64_linux_dr_get_status): Renamed to
5601 x86_linux_dr_get_status. All uses updated.
5602 (amd64_linux_dr_set_control): Renamed to
5603 x86_linux_dr_set_control. All uses updated.
5604 (amd64_linux_dr_set_addr): Renamed to
5605 x86_linux_dr_set_addr. All uses updated.
5606 (amd64_linux_prepare_to_resume): Renamed to
5607 x86_linux_prepare_to_resume. All uses updated.
5608 (amd64_linux_new_thread): Renamed to
5609 x86_linux_new_thread. All uses updated.
5610 (amd64_linux_new_fork): Renamed to
5611 x86_linux_new_fork. All uses updated.
5612 (amd64_linux_child_post_startup_inferior): Renamed to
5613 x86_linux_child_post_startup_inferior. All uses updated.
5614 (amd64_linux_enable_btrace): Renamed to
5615 x86_linux_enable_btrace. All uses updated.
5616 (amd64_linux_disable_btrace): Renamed to
5617 x86_linux_disable_btrace. All uses updated.
5618 (amd64_linux_teardown_btrace): Renamed to
5619 x86_linux_teardown_btrace. All uses updated.
5620 (amd64_linux_read_btrace): Renamed to
5621 x86_linux_read_btrace. All uses updated.
5622 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5623 x86_linux_dr_get. All uses updated.
5624 (i386_linux_dr_set): Renamed to
5625 x86_linux_dr_set. All uses updated.
5626 (i386_linux_dr_get_addr): Renamed to
5627 x86_linux_dr_get_addr. All uses updated.
5628 (i386_linux_dr_get_control): Renamed to
5629 x86_linux_dr_get_control. All uses updated.
5630 (i386_linux_dr_get_status): Renamed to
5631 x86_linux_dr_get_status. All uses updated.
5632 (i386_linux_dr_set_control): Renamed to
5633 x86_linux_dr_set_control. All uses updated.
5634 (i386_linux_dr_set_addr): Renamed to
5635 x86_linux_dr_set_addr. All uses updated.
5636 (i386_linux_prepare_to_resume): Renamed to
5637 x86_linux_prepare_to_resume. All uses updated.
5638 (i386_linux_new_thread): Renamed to
5639 x86_linux_new_thread. All uses updated.
5640 (i386_linux_new_fork): Renamed to
5641 x86_linux_new_fork. All uses updated.
5642 (i386_linux_child_post_startup_inferior): Renamed to
5643 x86_linux_child_post_startup_inferior. All uses updated.
5644 (i386_linux_enable_btrace): Renamed to
5645 x86_linux_enable_btrace. All uses updated.
5646 (i386_linux_disable_btrace): Renamed to
5647 x86_linux_disable_btrace. All uses updated.
5648 (i386_linux_teardown_btrace): Renamed to
5649 x86_linux_teardown_btrace. All uses updated.
5650 (i386_linux_read_btrace): Renamed to
5651 x86_linux_read_btrace. All uses updated.
5653 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5655 * remote.c (extended_remote_post_attach): New function.
5656 (init_extended_remote_ops): Install it as to_post_attach method.
5658 2014-07-09 Pedro Alves <palves@redhat.com>
5660 * infcmd.c (attach_command_post_wait): Don't call
5661 target_terminal_inferior here.
5662 (attach_command): Call it here instead.
5664 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5666 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5668 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5669 from varobj.c, with additional checks.
5670 (c_varobj_ops): Fill in is_path_expr_parent field.
5671 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5672 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5674 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5676 (varobj_default_is_path_expr_parent): New function.
5677 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5678 (varobj_default_is_path_expr_parent): Declare new function.
5680 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5682 * infcmd.c (finish_backward): Turn internal error into normal error.
5684 2014-07-07 Pedro Alves <palves@redhat.com>
5687 * remote.c (async_handle_remote_sigint)
5688 (async_handle_remote_sigint_twice): Call
5689 gdb_call_async_signal_handler instead of
5690 mark_async_signal_handler.
5692 2014-07-07 Tom Tromey <tromey@redhat.com>
5694 * target-delegates.c: Rebuild.
5695 * target.c (target_info_record): Remove.
5696 * record.c (info_record_command): Unconditionally call
5698 * target.h (struct target_ops) <to_info_record>: Use
5699 TARGET_DEFAULT_IGNORE.
5700 (target_info_record): Remove.
5702 2014-07-07 Tom Tromey <tromey@redhat.com>
5704 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5705 TARGET_DEFAULT_NORETURN.
5706 * target.c (generic_tls_error): New function.
5707 (target_translate_tls_address): Don't search target stack.
5708 * target-delegates.c: Rebuild.
5709 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5711 * linux-thread-db.c (thread_db_get_thread_local_address):
5712 Unconditionally call beneath target.
5714 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5716 * cli/cli-logging.c (pop_output_files): Assign targerr to
5719 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5721 * MAINTAINERS (Write After Approval): Update my email address.
5723 2014-07-02 Gary Benson <gbenson@redhat.com>
5725 * proc-service.c (ps_xfer_memory): Update comment.
5726 (ps_pstop): Remove unused function.
5727 (ps_pcontinue): Likewise.
5728 (ps_lstop): Likewise.
5729 (ps_lcontinue): Likewise.
5730 (ps_lgetxregsize): Likewise.
5731 (ps_lgetxregs): Likewise.
5732 (ps_lsetxregs): Likewise.
5733 (ps_plog): Likewise.
5734 (ps_ptread): Likewise.
5735 (ps_ptwrite): Likewise.
5737 2014-07-01 Mark Wielaard <mjw@redhat.com>
5739 * dwarf2read.c (add_array_cv_type): New function.
5740 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5741 (read_tag_volatile_type): Likewise.
5743 2014-07-01 Tom Tromey <tromey@redhat.com>
5745 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5746 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5747 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5748 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5749 * command.h (cmd_cfunc_ftype): Move earlier.
5750 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5751 (add_com, add_info): Use cmd_cfunc_ftype.
5753 2014-06-30 Tom Tromey <tromey@redhat.com>
5755 * symtab.c (operator_chars): Make parameters and return type
5757 (file_matches): Make "files" const.
5758 (struct search_symbols_data) <files>: Now const.
5759 (search_symbols): Make "regexp" and "files" parameters const.
5761 (symtab_symbol_info): Remove cast.
5762 (rbreak_command): Update.
5763 * symtab.h (search_symbols): Update.
5765 2014-06-27 Yao Qi <yao@codesourcery.com>
5767 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5768 Change parameter type to 'struct thread_info *'. Caller
5770 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5772 * dummy-frame.c (struct dummy_frame_id): New.
5773 (dummy_frame_id_eq): New function.
5774 (struct dummy_frame) <id>: Change its type to 'struct
5776 (dummy_frame_push): Add parameter ptid and save it in
5778 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5780 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5782 (lookup_dummy_frame): Change parameter type to 'struct
5783 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5784 instead of frame_id_eq.
5785 (dummy_frame_pop): Add parameter ptid. Callers updated.
5786 Update comments. Compose dummy_frame_id and pass it to
5788 (dummy_frame_discard): Add parameter ptid.
5789 (dummy_frame_sniffer): Compose dummy_frame_id and call
5790 dummy_frame_id_eq instead of frame_id_eq.
5791 (fprint_dummy_frames): Print ptid.
5792 * dummy-frame.h: Remove comments.
5793 (dummy_frame_push): Add ptid in declaration.
5794 (dummy_frame_pop, dummy_frame_discard): Likewise.
5796 2014-06-26 Tom Tromey <tromey@redhat.com>
5798 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5799 * command.h (error_no_arg): Update.
5801 2014-06-26 Tom Tromey <tromey@redhat.com>
5803 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5804 (do_show_command): Make "arg" const.
5805 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5807 2014-06-26 Tom Tromey <tromey@redhat.com>
5809 * record-full.c (record_full_get_bookmark): Make "args" const.
5810 (record_full_goto_bookmark): Make "raw_bookmark" const.
5811 * record.c (record_goto): New function.
5812 (cmd_record_goto): Use it. Now static.
5813 * record.h (record_goto): Declare.
5814 (cmd_record_goto): Remove declaration.
5815 * target-delegates.c: Rebuild.
5816 * target.h (struct target_ops) <to_get_bookmark,
5817 to_goto_bookmark>: Make parameter const.
5819 2014-06-26 Tom Tromey <tromey@redhat.com>
5821 * defs.h (generic_load): Update.
5822 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5823 * monitor.c (monitor_load): Make "args" const.
5824 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5825 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5827 (mips_load): Make "file" const.
5828 * remote-sim.c (gdbsim_load): Make "args" const.
5829 * remote.c (remote_load): Make "name" const.
5830 * symfile.c (generic_load): Make "args" const.
5831 * target-delegates.c: Rebuild.
5832 * target.c (target_load): Make "arg" const.
5833 (debug_to_load): Make "args" const.
5834 * target.h (struct target_ops) <to_load>: Make parameter const.
5835 (target_load): Update.
5837 2014-06-26 Tom Tromey <tromey@redhat.com>
5840 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5841 (dwarf2_physname, read_partial_die)
5842 (guess_partial_die_structure_name, fixup_partial_die)
5843 (guess_full_die_structure_name, anonymous_struct_prefix)
5844 (dwarf2_name): Use per-BFD obstack.
5846 2014-06-26 Yao Qi <yao@codesourcery.com>
5848 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5849 dummyframe and this_id into inner block below.
5851 2014-06-26 Yao Qi <yao@codesourcery.com>
5853 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5854 with "signal_pass[0]" in the initialization of signal_pass.
5856 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5858 * record-btrace.c (record_btrace_generating_corefile)
5859 (record_btrace_prepare_to_generate_core)
5860 (record_btrace_done_generating_core): New.
5861 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5862 (record_btrace_store_registers, record_btrace_prepare_to_store):
5863 Forward request when generating a core file.
5864 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5865 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5866 to_done_generating_core.
5868 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5870 * target.h (target_ops) <to_prepare_to_generate_core>
5871 <to_done_generating_core>: New.
5872 (target_prepare_to_generate_core, target_done_generating_core): New.
5873 * target.c (target_prepare_to_generate_core)
5874 (target_done_generating_core): New.
5875 * target-delegates.c: Regenerate.
5876 * gcore.c: (write_gcore_file): Rename to ...
5877 (write_gcore_file_1): ...this.
5878 (write_gcore_file): Call target_prepare_to_generate_core
5879 and target_done_generating_core.
5881 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5883 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5884 * gcore.c (write_gcore_file): Free memory returned from
5885 make_corefile_notes.
5886 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5887 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5889 2014-06-24 Yao Qi <yao@codesourcery.com>
5891 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5892 (arm_linux_init_abi): Set skip_trampoline_code with
5893 gdbarch_skip_trampoline_code instead of
5894 find_solib_trampoline_target.
5896 2014-06-24 Yao Qi <yao@codesourcery.com>
5898 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5899 arm_skip_bx_reg returns non-zero.
5901 2014-06-24 Yao Qi <yao@codesourcery.com>
5903 * arm-tdep.c (arm_skip_bx_reg): New function.
5904 (arm_skip_stub): Call arm_skip_bx_reg.
5906 2014-06-23 Don Breazeal <donb@codesourcery.com>
5908 * MAINTAINERS: Add myself as write-after-approval maintainer.
5910 2014-06-23 Pedro Alves <palves@redhat.com>
5912 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5913 DR_CONTROL before setting DR0..DR3.
5914 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5915 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5916 bits of DR_CONTROL related to the debug register slot being
5917 disabled. If all slots are vacant, clear local slowdown as well,
5918 and assert DR_CONTROL is 0.
5920 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5922 * python/lib/gdb/command/xmethods.py
5923 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5924 current progspace only if the string "progspace" matches LOCUS_RE.
5926 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5928 Fix --with-system-readline with readline-6.3 patch 5.
5929 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5930 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5933 2014-06-20 Tom Tromey <tromey@redhat.com>
5935 * dwarf2read.c (dw2_get_real_path): Use correct type in
5937 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5939 2014-06-20 Gary Benson <gbenson@redhat.com>
5941 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5942 * common/glibc_thread_db.h: Likewise.
5943 * common/i386-cpuid.h: Likewise.
5944 * common/i386-gcc-cpuid.h: Likewise.
5945 * common/linux-btrace.h: Likewise.
5946 * common/linux-osdata.h: Likewise.
5947 * common/linux-procfs.h: Likewise.
5948 * common/linux-ptrace.h: Likewise.
5949 * common/mips-linux-watch.h: Likewise.
5950 * common/linux-btrace.c: Moved to nat.
5951 * common/linux-osdata.c: Likewise.
5952 * common/linux-procfs.c: Likewise.
5953 * common/linux-ptrace.c: Likewise.
5954 * common/mips-linux-watch.c: Likewise.
5955 * nat/gdb_thread_db.h: Moved from common.
5956 * nat/glibc_thread_db.h: Likewise.
5957 * nat/i386-cpuid.h: Likewise.
5958 * nat/i386-gcc-cpuid.h: Likewise.
5959 * nat/linux-btrace.c: Likewise.
5960 * nat/linux-btrace.h: Likewise.
5961 * nat/linux-osdata.c: Likewise.
5962 * nat/linux-osdata.h: Likewise.
5963 * nat/linux-procfs.c: Likewise.
5964 * nat/linux-procfs.h: Likewise.
5965 * nat/linux-ptrace.c: Likewise.
5966 * nat/linux-ptrace.h: Likewise.
5967 * nat/mips-linux-watch.c: Likewise.
5968 * nat/mips-linux-watch.h: Likewise.
5969 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5970 (object file files): Reordered.
5971 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5972 of glibc_thread_db.h.
5974 2014-06-20 Gary Benson <gbenson@redhat.com>
5976 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5977 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5978 (i386_dr_low): Likewise.
5979 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5980 (i386_dr_low_set_addr): Likewise.
5981 (i386_dr_low_get_addr): Likewise.
5982 (i386_dr_low_can_set_control): Likewise.
5983 (i386_dr_low_set_control): Likewise.
5984 (i386_dr_low_get_control): Likewise.
5985 (i386_dr_low_get_status): Likewise.
5986 (i386_get_debug_register_length): Likewise.
5987 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5988 (i386_dr_low): Likewise.
5989 * nat/i386-dregs.c (i386-low.h): Remove include.
5990 (i386-nat.h): Likewise.
5991 (nat/i386-dregs.h): New include.
5992 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5993 (i386_dr_low_set_addr): Likewise.
5994 (i386_dr_low_get_addr): Likewise.
5995 (i386_dr_low_can_set_control): Likewise.
5996 (i386_dr_low_set_control): Likewise.
5997 (i386_dr_low_get_control): Likewise.
5998 (i386_dr_low_get_status): Likewise.
5999 (i386_get_debug_register_length): Likewise.
6000 (debug_hw_points): Likewise.
6002 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6004 * Makefile.in (SFILES): Add d-exp.y.
6005 (YYFILES): Add d-exp.c.
6006 (YYOBJ): Add d-exp.o.
6007 (local-maintainer-clean): Delete d-exp.c.
6008 * d-exp.y: New file.
6009 * d-lang.h (d_parse): New declaration.
6010 (d_error): New declaration.
6011 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6012 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6013 PREC_ORDER operators.
6014 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6016 2014-06-19 Yao Qi <yao@codesourcery.com>
6018 * gdbthread.h (any_running): Remove the declaration.
6019 * thread.c (any_running): Remove.
6021 2014-06-19 Yao Qi <yao@codesourcery.com>
6023 * gdbthread.h (struct thread_info) <state>: Change its type to
6024 'enum thread_state'. Update comments.
6026 2014-06-19 Pedro Alves <palves@redhat.com>
6028 * gdbthread.h (ALL_THREADS): Delete.
6029 (ALL_NON_EXITED_THREADS): New macro.
6030 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6031 instead of ALL_THREADS.
6032 * infrun.c (find_thread_needs_step_over)
6033 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6034 instead of ALL_THREADS.
6035 * record-btrace.c (record_btrace_open)
6036 (record_btrace_stop_recording, record_btrace_close)
6037 (record_btrace_is_replaying, record_btrace_resume)
6038 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6039 * remote.c (append_pending_thread_resumptions): Likewise.
6040 * thread.c (thread_apply_all_command): Likewise.
6042 2014-06-19 Gary Benson <gbenson@redhat.com>
6044 * i386-nat.c (i386_stopped_by_watchpoint):
6045 Use i386_dr_stopped_by_watchpoint.
6046 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6047 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6049 2014-06-19 Gary Benson <gbenson@redhat.com>
6051 * nat/i386-dregs.c: New file.
6052 * Makefile.in (i386-dregs.o): New rule.
6053 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6054 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6055 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6056 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6057 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6058 * config/i386/go32.mh (NATDEPFILES): Likewise.
6059 * config/i386/linux.mh (NATDEPFILES): Likewise.
6060 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6061 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6062 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6063 * i386-nat.h (debug_hw_points): New declaration.
6064 * i386-nat.c (breakpoint.h): Remove include.
6065 (command.h): Likewise.
6066 (target.h): Likewise.
6067 (gdb_assert.h): Likewise.
6068 (debug_hw_points): Made nonstatic.
6069 (debug_printf): Now in i386-dregs.c.
6070 (TARGET_HAS_DR_LEN_8): Likewise.
6071 (DR_CONTROL_SHIFT): Likewise.
6072 (DR_CONTROL_SIZE): Likewise.
6073 (DR_RW_EXECUTE): Likewise.
6074 (DR_RW_WRITE): Likewise.
6075 (DR_RW_READ): Likewise.
6076 (DR_RW_IORW): Likewise.
6077 (DR_LEN_1): Likewise.
6078 (DR_LEN_2): Likewise.
6079 (DR_LEN_4): Likewise.
6080 (DR_LEN_8): Likewise.
6081 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6082 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6083 (DR_ENABLE_SIZE): Likewise.
6084 (DR_LOCAL_SLOWDOWN): Likewise.
6085 (DR_GLOBAL_SLOWDOWN): Likewise.
6086 (DR_CONTROL_RESERVED): Likewise.
6087 (I386_DR_CONTROL_MASK): Likewise.
6088 (I386_DR_VACANT): Likewise.
6089 (I386_DR_LOCAL_ENABLE): Likewise.
6090 (I386_DR_GLOBAL_ENABLE): Likewise.
6091 (I386_DR_DISABLE): Likewise.
6092 (I386_DR_SET_RW_LEN): Likewise.
6093 (I386_DR_GET_RW_LEN): Likewise.
6094 (I386_DR_WATCH_HIT): Likewise.
6095 (i386_wp_op_t): Likewise.
6096 (i386_show_dr): Likewise.
6097 (i386_length_and_rw_bits): Likewise.
6098 (i386_insert_aligned_watchpoint): Likewise.
6099 (i386_remove_aligned_watchpoint): Likewise.
6100 (i386_handle_nonaligned_watchpoint): Likewise.
6101 (i386_update_inferior_debug_regs): Likewise.
6102 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6103 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6104 (i386_region_ok_for_watchpoint):
6105 Use i386_dr_region_ok_for_watchpoint.
6106 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6108 2014-06-19 Gary Benson <gbenson@redhat.com>
6110 * i386-nat.c (i386_insert_hw_breakpoint): Use
6111 i386_insert_watchpoint.
6112 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6114 2014-06-19 Gary Benson <gbenson@redhat.com>
6116 * i386-nat.c (i386_dr_show): Renamed to
6117 i386_show_dr and made static. All uses updated.
6118 (i386_dr_length_and_rw_bits): Renamed to
6119 i386_length_and_rw_bits and made static.
6121 (i386_dr_insert_aligned_watchpoint): Renamed to
6122 i386_insert_aligned_watchpoint and made static.
6124 (i386_dr_remove_aligned_watchpoint): Renamed to
6125 i386_remove_aligned_watchpoint and made static.
6127 (i386_dr_update_inferior_debug_regs): Renamed to
6128 i386_update_inferior_debug_regs and made static.
6130 * nat/i386-dregs.h (i386_dr_show): Removed.
6131 (i386_dr_length_and_rw_bits): Likewise.
6132 (i386_dr_insert_aligned_watchpoint): Likewise.
6133 (i386_dr_remove_aligned_watchpoint): Likewise.
6134 (i386_dr_update_inferior_debug_regs): Likewise.
6136 2014-06-19 Gary Benson <gbenson@redhat.com>
6138 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6139 * configure: Regenerate.
6140 * config.in: Likewise.
6141 * main.c (signal.h): New include.
6142 (setup_alternate_signal_stack): New function.
6143 (captured_main): Call the above.
6144 * cp-support.c (signal.h): New include.
6145 (catch_demangler_crashes): New flag.
6146 (SIGJMP_BUF): New define.
6147 (SIGSETJMP): Likewise.
6148 (SIGLONGJMP): Likewise.
6149 (gdb_demangle_jmp_buf): New static global.
6150 (gdb_demangle_attempt_core_dump): Likewise.
6151 (gdb_demangle_signal_handler): New function.
6152 (gdb_demangle): If catch_demangler_crashes is set, install the
6153 above signal handler before calling bfd_demangle, and restore
6154 the original signal handler afterwards. Display the offending
6155 symbol and call demangler_warning the first time a segmentation
6157 (_initialize_cp_support): New maint set/show command.
6159 2014-06-19 Gary Benson <gbenson@redhat.com>
6161 * utils.h (resource_limit_kind): New enum.
6162 (can_dump_core): New declaration.
6163 (warn_cant_dump_core): Likewise.
6164 (dump_core): Likewise.
6165 * utils.c (dump_core): Made nonstatic. Added new
6166 parameter "limit_kind".
6167 (can_dump_core): Made nonstatic. Moved printing code to...
6168 (warn_cant_dump_core): New function.
6169 (can_dump_core_warn): Likewise.
6170 (internal_vproblem): Replace calls to can_dump_core with
6171 calls to can_dump_core_warn. Supply new argument to each.
6173 2014-06-19 Gary Benson <gbenson@redhat.com>
6175 * utils.h (demangler_vwarning): New declaration.
6176 (demangler_warning): Likewise.
6177 * utils.c (struct internal_problem)
6178 <user_settable_should_quit>: New field.
6179 <user_settable_should_dump_core>: Likewise
6180 (internal_error_problem): Add values for above new fields.
6181 (internal_warning_problem): Likewise.
6182 (demangler_warning_problem): New static global.
6183 (demangler_vwarning): New function.
6184 (demangler_warning): Likewise.
6185 (add_internal_problem_command): Selectively add commands.
6186 (_initialize_utils): New internal problem command.
6187 * maint.c (maintenance_demangler_warning): New function.
6188 (_initialize_maint_cmds): New command.
6190 2014-06-18 Tom Tromey <tromey@redhat.com>
6192 * f-valprint.c (info_common_command_for_block): Update.
6193 * symtab.h (struct general_symbol_info) <common_block>: Now
6196 2014-06-18 Tom Tromey <tromey@redhat.com>
6198 * symtab.h (struct symtab) <blockvector>: Now const.
6199 * ada-lang.c (ada_add_global_exceptions): Update.
6200 * buildsym.c (augment_type_symtab): Update.
6201 * dwarf2read.c (dw2_lookup_symbol): Update.
6202 * jit.c (finalize_symtab): Update.
6203 * jv-lang.c (add_class_symtab_symbol): Update.
6204 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6206 * objfiles.c (objfile_relocate1): Update.
6207 * psymtab.c (lookup_symbol_aux_psymtabs)
6208 (maintenance_check_psymtabs): Update.
6209 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6211 * spu-tdep.c (spu_catch_start): Update.
6212 * symmisc.c (dump_symtab_1): Update.
6213 * symtab.c (lookup_global_symbol_from_objfile)
6214 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6215 (basic_lookup_transparent_type_quick)
6216 (basic_lookup_transparent_type, find_pc_sect_symtab)
6217 (find_pc_sect_line, search_symbols): Update.
6218 * block.c (find_block_in_blockvector): Make "bl" const.
6219 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6221 (blockvector_contains_pc): Make "bv" const.
6222 (block_for_pc_sect): Update.
6223 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6224 (blockvector_contains_pc): Update.
6225 * breakpoint.c (resolve_sal_pc): Update.
6226 * inline-frame.c (block_starting_point_at): Update.
6228 2014-06-18 Tom Tromey <tromey@redhat.com>
6230 * completer.c (complete_line): Make "line_buffer" const.
6231 * completer.h (complete_line): Update.
6233 2014-06-18 Tom Tromey <tromey@redhat.com>
6235 * symtab.c (add_macro_name): Remove unneeded cast.
6237 2014-06-18 Tom Tromey <tromey@redhat.com>
6239 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6240 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6242 2014-06-18 Tom Tromey <tromey@redhat.com>
6244 * probe.c (info_probes_for_ops): Make "arg" const.
6245 * probe.h (info_probes_for_ops): Update.
6247 2014-06-18 Tom Tromey <tromey@redhat.com>
6249 * varobj.c (varobj_create): Update.
6250 * valops.c (value_of_this): Update.
6251 * tracepoint.c (add_local_symbols, scope_info): Update.
6252 * symtab.h (struct general_symbol_info) <block>: Now const.
6253 * symtab.c (skip_prologue_sal)
6254 (default_make_symbol_completion_list_break_on)
6255 (skip_prologue_using_sal): Update.
6256 * stack.h (iterate_over_block_locals)
6257 (iterate_over_block_local_vars): Update.
6258 * stack.c (print_frame_args): Update.
6259 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6261 (get_selected_block): Make return type const.
6262 * python/py-frame.c (frapy_block): Update.
6263 * python/py-block.c (gdbpy_block_for_pc): Update.
6264 * p-exp.y (%union) <bval>: Now const.
6265 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6266 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6267 * m2-exp.y (%union) <bval>: Now const.
6268 * linespec.c (get_current_search_block): Make return type const.
6269 (create_sals_line_offset, find_label_symbols): Update.
6270 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6272 (block_starting_point_at): Make "block" const.
6273 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6274 (check_exception_resume): Update.
6275 * guile/scm-frame.c (gdbscm_frame_block): Update.
6276 * guile/scm-block.c (gdbscm_lookup_block): Update.
6277 * frame.h (get_frame_block): Update.
6278 (get_selected_block): Make return type const.
6279 * frame.c (frame_id_inner): Update.
6280 * f-valprint.c (info_common_command_for_block)
6281 (info_common_command): Update.
6282 * dwarf2loc.c (dwarf2_find_location_expression)
6283 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6284 (locexpr_describe_location_piece): Update.
6285 * c-exp.y (%union) <bval>: Now const.
6286 * breakpoint.c (resolve_sal_pc): Update.
6287 * blockframe.c (get_frame_block):Make return type const.
6288 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6289 (block_innermost_frame): Update.
6290 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6291 (block_for_pc, block_for_pc_sect): Update.
6292 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6294 (block_for_pc_sect, block_for_pc): Make return type const.
6295 * ax-gdb.c (gen_expr): Update.
6296 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6297 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6298 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6299 (ada_read_var_value): Update.
6300 * ada-exp.y (struct name_info) <block>: Now const.
6302 (block_lookup): Constify.
6304 2014-06-18 Gary Benson <gbenson@redhat.com>
6306 * nat/i386-dregs.h: New file.
6307 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6308 * i386-nat.h (i386-dregs.h): New include.
6309 (DR_FIRSTADDR): Now in i386-dregs.h.
6310 (DR_LASTADDR): Likewise.
6311 (DR_NADDR): Likewise.
6312 (DR_STATUS): Likewise.
6313 (DR_CONTROL): Likewise.
6314 (i386_debug_reg_state): Likewise.
6315 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6317 2014-06-18 Don Breazeal <donb@codesourcery.com>
6319 * breakpoint.c (set_longjmp_breakpoint): Call
6320 momentary_breakpoint_from_master with additional argument.
6321 (set_longjmp_breakpoint_for_call_dummy): Call
6322 momentary_breakpoint_from_master with additional argument.
6323 (set_std_terminate_breakpoint): Call
6324 momentary_breakpoint_from_master with additional argument.
6325 (momentary_breakpoint_from_master): Add argument to function
6326 definition and use it to initialize structure member flag.
6327 (clone_momentary_breakpoint): Call
6328 momentary_breakpoint_from_master with additional argument.
6329 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6330 member flags set in momentary_breakpoint_from_master.
6332 2014-06-18 Gary Benson <gbenson@redhat.com>
6334 * i386-nat.c (i386_show_dr): Renamed to
6335 i386_dr_show and made nonstatic. All uses updated.
6336 (i386_length_and_rw_bits): Renamed to
6337 i386_dr_length_and_rw_bits and made nonstatic.
6339 (i386_insert_aligned_watchpoint): Renamed to
6340 i386_dr_insert_aligned_watchpoint and made nonstatic.
6342 (i386_remove_aligned_watchpoint): Renamed to
6343 i386_dr_remove_aligned_watchpoint and made nonstatic.
6345 (i386_update_inferior_debug_regs): Renamed to
6346 i386_dr_update_inferior_debug_regs and made nonstatic.
6349 2014-06-18 Gary Benson <gbenson@redhat.com>
6351 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6352 (i386_dr_low_can_set_control): Likewise.
6353 (i386_dr_low_set_addr): Likewise.
6354 (i386_dr_low_set_control): Likewise.
6355 (i386_dr_low_get_addr): Likewise.
6356 (i386_dr_low_get_status): Likewise.
6357 (i386_dr_low_get_control): Likewise.
6358 (i386_insert_aligned_watchpoint): Use new macros.
6359 (i386_update_inferior_debug_regs): Likewise.
6360 (i386_stopped_data_address): Likewise.
6362 2014-06-18 Gary Benson <gbenson@redhat.com>
6364 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6365 New parameter. All uses updated.
6367 2014-06-18 Gary Benson <gbenson@redhat.com>
6369 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6372 2014-06-18 Gary Benson <gbenson@redhat.com>
6374 * i386-nat.c (debug_printf): New macro.
6375 (i386_get_debug_register_length): Likewise.
6376 (TARGET_HAS_DR_LEN_8): Use above macro.
6377 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6378 and printf_unfiltered. Use phex to format values.
6380 2014-06-18 Gary Benson <gbenson@redhat.com>
6382 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6385 2014-06-18 Gary Benson <gbenson@redhat.com>
6387 * i386-nat.c: Comment changes.
6389 2014-06-18 Gary Benson <gbenson@redhat.com>
6391 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6393 2014-06-18 Gary Benson <gbenson@redhat.com>
6395 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6396 (i386_insert_aligned_watchpoint): Likewise.
6397 (i386_remove_aligned_watchpoint): Likewise.
6398 (i386_handle_nonaligned_watchpoint): Likewise.
6400 2014-06-18 Gary Benson <gbenson@redhat.com>
6402 * i386-nat.c: Whitespace changes.
6404 2014-06-17 Samuel Bronson <naesten@gmail.com>
6406 * MAINTAINERS: Update Roland McGrath's email address.
6407 Thanks to Sergio Durigan Junior for pointing out that he left
6408 Red Hat a while ago, and giving me a current address.
6410 2014-06-17 Tom Tromey <tromey@redhat.com>
6412 * utils.h (savestring): Remove declaration.
6414 2014-06-17 Tom Tromey <tromey@redhat.com>
6416 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6418 2014-06-16 Keith Seitz <keiths@redhat.com>
6421 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6422 to update the varobj if inferior_ptid is null_ptid.
6424 2014-06-16 Tom Tromey <tromey@redhat.com>
6426 * target.h (struct target_ops) <to_info_proc>: Make parameter
6428 (target_info_proc): Update.
6429 * target.c (target_info_proc): Make "args" const.
6430 * procfs.c (procfs_info_proc): Update.
6431 * linux-tdep.c (linux_info_proc): Update.
6432 (linux_core_info_proc_mappings): Make "args" const.
6433 (linux_core_info_proc): Update.
6434 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6435 * gdbarch.c: Rebuild.
6436 * gdbarch.h: Rebuild.
6437 * corelow.c (core_info_proc): Update.
6439 2014-06-16 Tom Tromey <tromey@redhat.com>
6441 * target.h (struct target_ops) <to_disconnect>: Make parameter
6443 (target_disconnect): Update.
6444 * target.c (target_disconnect): Make "args" const.
6445 * target-delegates.c: Rebuild.
6446 * remote.c (remote_disconnect): Update.
6447 * record.h (record_disconnect): Update.
6448 * record.c (record_disconnect): Update.
6449 * inf-child.c (inf_child_disconnect): Update.
6451 2014-06-16 Tom Tromey <tromey@redhat.com>
6453 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6454 * target.c (debug_to_rcmd, default_rcmd): Update.
6455 * target-delegates.c: Rebuild.
6456 * remote.c (remote_rcmd): Update.
6457 * monitor.c (monitor_rcmd): Update.
6459 2014-06-16 Pedro Alves <palves@redhat.com>
6461 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6462 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6463 have OBJF_SHARED set.
6464 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6465 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6466 instead of OBJF_USERLOADED.
6467 * objfiles.h (OBJF_SHARED): Update comment.
6468 (userloaded_objfile_contains_address_p): Rename to ...
6469 (shared_objfile_contains_address_p): ... this, and update
6471 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6473 (remove_symbol_file_command): Skip objfiles that don't have
6476 2014-06-16 Tom Tromey <tromey@redhat.com>
6478 * minsyms.h (prim_record_minimal_symbol)
6479 (prim_record_minimal_symbol_and_info): Update comments.
6481 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6483 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6484 or --without-guile, according to how GDB was built.
6486 2014-06-13 Tom Tromey <tromey@redhat.com>
6488 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6490 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6492 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6494 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6495 help_list.Pass all_commands, not -1, to help_list.
6496 * cli/cli-dump.c (dump_command, append_command)
6497 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6498 (binary_dump_command, binary_append_command): Pass all_commands,
6499 not -1, to help_list.
6500 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6502 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6504 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6506 * top.c (set_history): Pass all_commands, not -1, to help_list.
6507 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6508 all_commands, not -1, to help_list.
6509 * symfile.c (overlay_command): Pass all_commands, not -1, to
6511 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6513 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6515 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6517 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6518 not -1, to help_list.
6519 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6520 not -1, to help_list.
6521 * maint.c (maintenance_command, maintenance_info_command)
6522 (maintenance_print_command, maintenance_set_cmd): Pass
6523 all_commands, not -1, to help_list.
6524 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6526 * language.c (set_check): Pass all_commands, not -1, to help_list.
6527 * infcmd.c (unset_command): Pass all_commands, not -1, to
6529 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6531 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6533 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6535 * breakpoint.c (save_command): Pass all_commands, not -1, to
6537 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6538 all_commands, not -1, to help_list.
6540 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6542 * regcache.c (struct register_to_invalidate): New structure.
6543 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6545 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6547 2014-06-12 Yao Qi <yao@codesourcery.com>
6549 * varobj.c (varobj_get_num_children): Call
6550 varobj_is_dynamic_p.
6551 (varobj_list_children): Likewise.
6552 (varobj_update): Likewise. Update comments.
6554 2014-06-12 Yao Qi <yao@codesourcery.com>
6556 * varobj.c (varobj_pretty_printed_p): Rename to ...
6557 (varobj_is_dynamic_p): ... this. New function.
6558 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6559 (varobj_is_dynamic_p): Declare.
6560 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6561 (mi_print_value_p, varobj_update_one): Likewise.
6563 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6564 Yao Qi <yao@codesourcery.com>
6566 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6567 (varobj_get_iterator): Wrap up code for pretty-printer by
6568 "#if HAVE_PYTHON" and "#endif".
6569 (update_dynamic_varobj_children): Likewise.
6571 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6572 Yao Qi <yao@codesourcery.com>
6574 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6575 gdb_python_initialized is false. Move some code from varobj.c.
6576 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6577 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6578 (struct varobj_item): Moved to varobj-iter.h".
6579 (varobj_clear_saved_item): New function.
6580 (update_dynamic_varobj_children): Move python-related code to
6582 (free_variable): Call varobj_clear_saved_item and
6585 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6586 Yao Qi <yao@codesourcery.com>
6588 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6589 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6590 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6591 (py-varobj.o): New rule.
6592 * python/py-varobj.c: New file.
6593 * python/python-internal.h (py_varobj_get_iterator): Declare.
6594 * varobj-iter.h: New file.
6595 * varobj.c: Include "varobj-iter.h"
6596 (struct varobj) <child_iter>: Change its type from "PyObject *"
6597 to "struct varobj_iter *".
6598 <saved_item>: Likewise.
6599 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6600 [HAVE_PYTHON] (varobj_get_iterator): New function.
6601 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6602 python-specific code to python/py-varobj.c.
6603 (install_visualizer): Call varobj_iter_delete instead of
6605 * varobj.h (varobj_ensure_python_env): Declare.
6607 2014-06-12 Yao Qi <yao@codesourcery.com>
6609 * varobj.c (struct varobj_item): New structure.
6610 (create_child_with_value): Update declaration.
6611 (varobj_add_child): Replace arguments 'name' and 'value' with
6612 'item'. All callers updated.
6613 (install_dynamic_child): Likewise.
6614 (update_dynamic_varobj_children): Likewise.
6615 (varobj_add_child): Likewise.
6616 (create_child_with_value): Likewise.
6618 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6620 * NEWS: Create a new section for the next release branch.
6621 Rename the section of the current branch, now that it has
6624 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6626 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6627 * version.in: Bump version to 7.8.50.DATE-cvs.
6629 2014-06-11 Pedro Alves <palves@redhat.com>
6632 * ser-mingw.c (net_windows_socket_check_pending): New function.
6633 (net_windows_select_thread): Ignore spurious wakeups. Use
6634 net_windows_socket_check_pending.
6635 (net_windows_wait_handle): Check for pending events with
6636 ioctlsocket, through net_windows_socket_check_pending, instead of
6637 checking the socket's event.
6639 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6641 * python/python-internal.h (gdb_PyObject_GetAttrString)
6642 (gdb_PyObject_HasAttrString): New inline function definitions.
6643 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6644 char * of the second argument to PyObject_GetAttrString.
6646 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6648 * serial.c (serial_write): Fix index of character to be printed
6649 in call to serial_logchar when serial debug traces are enabled.
6651 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6653 * gdbtypes (resolve_dynamic_range): Add function description.
6655 2014-06-09 Pedro Alves <palves@redhat.com>
6657 * linux-nat.c (linux_child_follow_fork): Initialize status with
6658 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6659 inner block. Only pass the signal to PTRACE_DETACH if in pass
6662 2014-06-09 Gary Benson <gbenson@redhat.com>
6664 * common/signals.c (gdb_signal_from_host): Reorder to separate
6665 the always-available ANSI-standard signals from the signals that
6667 (do_gdb_signal_to_host): Likewise.
6668 * proc-events.c (signal_table): Likewise.
6670 2014-06-08 Hui Zhu <hui@codesourcery.com>
6672 * common/linux-ptrace.c (linux_disable_event_reporting): New
6674 * common/linux-ptrace.h (linux_disable_event_reporting): New
6676 * linux-nat.c (linux_child_follow_fork): Do a single step before
6679 2014-06-07 Keith Seitz <keiths@redhat.com>
6683 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6684 from symbol_matches_domain in symtab.c. All local callers
6685 of symbol_matches_domain updated.
6686 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6687 search STRUCT_DOMAIN.
6688 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6689 independently. standard_lookup will do that automatically.
6690 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6691 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6692 (cp_lookup_symbol_in_namespace): Likewise.
6693 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6694 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6695 may return a STRUCT_DOMAIN match.
6696 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6697 * cp-support.c: Include language.h.
6698 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6700 * psymtab.c (match_partial_symbol): Compare the requested
6701 domain with the symbol's domain directly.
6702 (lookup_partial_symbol): Likewise.
6703 * symtab.c (lookup_symbol_in_language): Explain when/why
6704 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6705 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6706 appropriate languages.
6707 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6708 and moved to ada-lang.c
6709 (lookup_block_symbol): Explain that this function only returns
6710 symbol matching the requested DOMAIN.
6711 Compare the requested domain with the symbol's domain directly.
6712 (iterate_over_symbols): Compare the requested domain with the
6713 symbol's domain directly.
6714 * symtab.h (symbol_matches_domain): Remove.
6716 2014-06-06 Doug Evans <xdje42@gmail.com>
6718 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6719 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6720 (gdbscm_guile_version_is_at_least): Declare.
6721 (gdbscm_scm_string_to_int): Declare.
6722 * guile/guile.c (gdbscm_guile_major_version): New global.
6723 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6724 (guile_datadir): New static global.
6725 (gdbscm_guile_data_directory): New function.
6726 (initialize_scheme_side): Update.
6727 (misc_guile_functions): Add guile-data-directory.
6728 (initialize_gdb_module): Fetch guile version number.
6729 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6730 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6731 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6732 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6734 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6735 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6736 * guile/scm-value.c (gdbscm_value_to_string): Only call
6737 scm_port_conversion_strategy if Guile version >= 2.0.6.
6739 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6741 * main.c (print_gdb_help): Add -q and --silent.
6743 2014-06-06 Gary Benson <gbenson@redhat.com>
6745 * common/signals.c: Remove preprocessor conditionals for
6746 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6747 SIGSEGV and SIGTERM.
6748 * proc-events.c: Likewise.
6750 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6752 * symfile.c (symfile_free_objfile): Remove restriction to
6754 * symfile-mem.c (symbol_file_add_from_memory): Call
6755 add_target_sections_of_objfile.
6757 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6759 * guile/scm-value.c (gdbscm_history_append_x): Use
6760 'vlscm_get_value_smob_arg_unsafe' instead of
6761 'vlscm_scm_to_value'.
6763 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6766 * utils.c (printchar): Don't escape at all if quoter is NUL.
6767 Update function documentation to clarify effect of parameter
6769 * remote.c (escape_buffer): Pass '\\' as the quoter to
6770 fputstrn_unfiltered.
6771 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6772 generate the output.
6773 (mi_solib_unloaded): Same.
6775 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6777 * development.sh: Delete.
6778 * Makefile.in (config.status): Adjust dependency on development.sh.
6779 * configure.ac: Adjust development.sh source call.
6780 * configure: Regenerate.
6782 2014-06-04 Doug Evans <xdje42@gmail.com>
6784 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6785 is_scheme_bkpt, spec.
6786 (bpscm_make_breakpoint_smob): Initialize new members.
6787 (gdbscm_create_breakpoint_x): Split into two ...
6788 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6789 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6790 (scheme_function breakpoint_functions): Update.
6791 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6792 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6793 register-breakpoint!.
6795 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6798 * mem-break.c (z_type_supported): Return zero if
6799 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6801 2014-06-04 Tom Tromey <tromey@redhat.com>
6803 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6804 value_from_contents_and_address_unresolved.
6805 (ada_template_to_fixed_record_type_1): Likewise.
6806 (ada_which_variant_applies): Likewise.
6807 * value.h (value_from_contents_and_address_unresolved): Declare.
6808 * value.c (value_from_contents_and_address_unresolved): New
6810 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6811 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6812 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6814 2014-06-04 Tom Tromey <tromey@redhat.com>
6816 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6818 2014-06-04 Tom Tromey <tromey@redhat.com>
6820 * procfs.c (procfs_attach): Make "args" const.
6821 * windows-nat.c (windows_attach): Make "args" const.
6822 * nto-procfs.c (procfs_attach): Make "args" const.
6823 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6824 * go32-nat.c (go32_attach): Make "args" const.
6825 * gnu-nat.c (gnu_attach): Make "args" const.
6826 * darwin-nat.c (darwin_attach): Make "args" const.
6827 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6828 * linux-nat.c (linux_nat_attach): Make "args" const.
6829 * remote.c (extended_remote_attach_1, extended_remote_attach):
6831 * target.h (struct target_ops) <to_attach>: Make "args" const.
6832 (find_default_attach): Likewise.
6833 * utils.c (parse_pid_to_attach): Make "args" const.
6834 * utils.h (parse_pid_to_attach): Update.
6836 2014-06-04 Tom Tromey <tromey@redhat.com>
6838 * target-delegates.c: Rebuild.
6839 * target.c (default_thread_address_space): New function.
6840 (target_thread_address_space): Simplify.
6841 * target.h (struct target_ops) <to_thread_address_space>: Add
6842 TARGET_DEFAULT_FUNC.
6844 2014-06-04 Doug Evans <xdje42@gmail.com>
6846 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6848 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6850 * record-btrace.c: Include event-loop.h and inf-loop.h.
6851 (record_btrace_resume_exec_dir)
6852 (record_btrace_async_inferior_event_handler)
6853 (record_btrace_handle_async_inferior_event): New.
6854 (record_btrace_open): Create async event handler.
6855 (record_btrace_close): Delete async event handler.
6856 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6857 Mark async event handler.
6858 (record_btrace_execution_direction): New.
6859 (init_record_btrace_ops): Initialize to_execution_direction.
6861 2014-06-03 Doug Evans <xdje42@gmail.com>
6863 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6864 (gdbscm_make_parameter): Ditto.
6866 2014-06-03 Doug Evans <dje@google.com>
6868 * exec.c (exec_close_1): Call clear_section_table instead of
6869 resize_section_table.
6870 (clear_section_table): New function.
6871 (resize_section_table): Make static. Rename arg num_added to
6873 * exec.h (clear_section_table): Declare.
6874 (resize_section_table): Delete.
6875 * progspace.c (release_program_space): Call clear_section_table
6876 instead of resize_section_table.
6878 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6880 * NEWS (Python Scripting): Add entry about the new xmethods
6883 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6885 * python/py-xmethods.c: New file.
6886 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6887 (objfpy_dealloc): XDECREF on the new xmethods field.
6888 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6890 (objfpy_get_xmethods): New function.
6891 (objfile_getset): New entry 'xmethods'.
6892 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6893 (pspy_dealloc): XDECREF on the new xmethods field.
6894 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6896 (pspy_get_xmethods): New function.
6897 (pspace_getset): New entry 'xmethods'.
6898 * python/python-internal.h: Add declarations for new functions.
6899 * python/python.c (_initialize_python): Invoke
6900 gdbpy_initialize_xmethods.
6901 * python/lib/gdb/__init__.py (xmethods): New
6903 * python/lib/gdb/xmethod.py: New file.
6904 * python/lib/gdb/command/xmethods.py: New file.
6906 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6908 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6909 best match method returned by find_overload_match is an xmethod.
6910 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6911 the best matching operator returned by find_overload_match is an
6913 * valops.c: #include "extension.h".
6914 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6915 Return void. The list of matching source methods is returned in
6916 "fn_list" and a vector of matching debug method workers is
6917 returned in "xm_worker_vec". Update all callers.
6918 (value_find_oload_method_list): Likewise.
6919 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6920 non-NULL, then the index of the best matching method in this
6921 vector is returned. Update all callers.
6922 (find_overload_match): Include xmethods while performing overload
6925 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6927 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6928 * extension-priv.h (struct extension_language_ops): Add the
6930 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6931 get_matching_xmethod_workers, get_xmethod_argtypes,
6932 invoke_xmethod, free_xmethod_worker,
6933 free_xmethod_worker_vec): New functions.
6934 * extension.h: #include "common/vec.h".
6935 New function declarations.
6936 (struct xmethod_worker): New struct.
6937 (VEC (xmethod_worker_ptr)): New vector type.
6938 (xmethod_worker_ptr): New typedef.
6939 (xmethod_worker_vec): Likewise.
6940 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6942 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6943 (struct builtin_type): New field "xmethod".
6944 * valarith.c (value_ptradd): Assert that the value argument is not
6946 * valops.c (value_must_coerce_to_target): Return 0 for
6947 lval_xcallable values.
6948 * value.c (struct value): New field XM_WORKER in the field
6950 (value_address, value_raw_address): Return 0 for lval_xcallable
6952 (set_value_address): Assert that the value is not an
6954 (value_free): Free the associated xmethod worker when freeing
6955 lval_xcallable values.
6956 (set_value_component_location): Assert that the WHOLE value is not
6958 (value_of_xmethod, call_xmethod): New functions.
6959 * value.h: Declare "struct xmethod_worker".
6960 Declare new functions value_of_xmethod, call_xmethod.
6962 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6963 Pedro Alves <palves@redhat.com>
6965 PR breakpoints/17000
6966 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6967 New function, extracted from software_breakpoint_inserted_here_p.
6968 (software_breakpoint_inserted_here_p): Replace factored out code
6969 by call to find_non_raw_software_breakpoint_inserted_here.
6970 (bp_target_info_copy_insertion_state): New function.
6971 (bkpt_insert_location): Handle the case of a single-step
6972 breakpoint already inserted at the same address.
6973 (bkpt_remove_location): Handle the case of a single-step
6974 breakpoint still inserted at the same address.
6975 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6976 breakpoint already inserted at the same address.
6977 (deprecated_remove_raw_breakpoint): Handle the case of a
6978 non-raw breakpoint still inserted at the same address.
6979 (find_single_step_breakpoint): New function, extracted from
6980 single_step_breakpoint_inserted_here_p.
6981 (find_single_step_breakpoint): New function,
6982 factored out from single_step_breakpoint_inserted_here_p.
6983 (single_step_breakpoint_inserted_here_p): Reimplement.
6985 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6987 Pushed by Joel Brobecker <brobecker@adacore.com>
6988 * source.c (show_substitute_path_command): Fix display of matching
6991 2014-06-03 Gary Benson <gbenson@redhat.com>
6993 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6995 2014-06-02 Doug Evans <xdje42@gmail.com>
6997 Add parameter support for Guile.
6998 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6999 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7000 (scm-param.o): New rule.
7001 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7002 (gdbscm_misc_error): Declare.
7003 (gdbscm_canonicalize_command_name): Declare.
7004 (gdbscm_scm_to_host_string): Declare.
7005 (gdbscm_scm_from_host_string): Declare.
7006 (gdbscm_initialize_parameters): Declare.
7007 * guile/guile.c (initialize_gdb_module): Call
7008 gdbscm_initialize_parameters.
7009 * guile/lib/gdb.scm: Export parameter symbols.
7010 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7011 cmdscm_canonicalize_name and made public. All callers updated.
7012 * guile/scm-exception.c (gdbscm_misc_error): New function.
7013 * guile/scm-param.c: New file.
7014 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7015 (gdbscm_scm_to_host_string): New function.
7016 (gdbscm_scm_from_host_string): New function.
7017 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7019 2014-06-02 Doug Evans <xdje42@gmail.com>
7021 Add command support for Guile.
7022 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7023 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7024 (scm-cmd.o): New rule.
7025 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7026 (gdbscm_user_error_p): Declare.
7027 (gdbscm_parse_command_name): Declare.
7028 (gdbscm_valid_command_class_p): Declare.
7029 (gdbscm_initialize_commands): Declare.
7030 * guile/guile.c (initialize_gdb_module): Call
7031 gdbscm_initialize_commands.
7032 * guile/lib/gdb.scm: Export command symbols.
7033 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7034 (throw-user-error): New function.
7035 * guile/scm-cmd.c: New file.
7036 * guile/scm-exception.c (user_error_symbol): New static global.
7037 (gdbscm_user_error_p): New function.
7038 (gdbscm_initialize_exceptions): Set user_error_symbol.
7039 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7041 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7043 * top.c (command_loop): Handle comments here...
7044 (command_line_input): ... not here.
7046 2014-06-02 Doug Evans <xdje42@gmail.com>
7048 Add progspace support for Guile.
7049 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7050 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7051 (scm-progspace.o): New rule.
7052 * guile/guile-internal.h (pspace_smob): New typedef.
7053 (psscm_pspace_smob_pretty_printers): Declare.
7054 (psscm_pspace_smob_from_pspace): Declare.
7055 (psscm_scm_from_pspace): Declare.
7056 * guile/guile.c (initialize_gdb_module): Call
7057 gdbscm_initialize_pspaces.
7058 * guile/lib/gdb.scm: Export progspace symbols.
7059 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7061 (append-pretty-printer!): Ditto.
7062 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7064 * guile/scm-progspace.c: New file.
7066 2014-06-03 Alan Modra <amodra@gmail.com>
7068 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7069 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7071 2014-06-02 Doug Evans <dje@google.com>
7073 Add support for skeletonless type units.
7074 * dwarf2read.c (struct dwarf2_per_objfile): New member
7075 n_allocated_type_units.
7076 (struct dwarf2_per_objfile) <tu_stats>: New member
7077 nr_all_type_units_reallocs.
7078 (create_signatured_type_table_from_index): Initialize
7079 n_allocated_type_units
7080 (create_all_type_units): Ditto.
7081 (add_type_unit): Move up in file. New arg slot.
7082 All callers updated. Increase space for all_type_units more
7084 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7085 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7086 (lookup_dwp_signatured_type): Ditto.
7087 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7088 All callers updated.
7089 (build_type_psymtabs_1): Leave type_unit_groups as
7090 NULL if no TUs present.
7091 (print_tu_stats): New function.
7092 (process_skeletonless_type_unit): New function.
7093 (process_dwo_file_for_skeletonless_type_units): New
7095 (process_skeletonless_type_units): New function.
7096 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7097 Call print tu_stats if debugging enabled.
7099 2014-06-02 Pedro Alves <palves@redhat.com>
7101 * breakpoint.c (build_target_command_list): Don't build a command
7102 list if we have any duplicate location that isn't a dprintf.
7104 2014-06-02 Pedro Alves <palves@redhat.com>
7106 * breakpoint.c (dprintf_breakpoint_hit): New function.
7107 (initialize_breakpoint_ops): Install it as dprintf's
7108 breakpoint_hit method.
7110 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7112 * source.c (substitute_path_rule_matches): Simplify using
7113 filename_ncmp instead of FILENAME_CMP.
7115 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7117 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7119 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7121 * configure.ac: When Guile is available, check for the
7122 availability of 'scm_new_smob'.
7123 * configure, config.h.in: Regenerate.
7124 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7127 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7129 * frame.c (struct frame_info): Add stop_string field.
7130 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7131 (get_prev_frame_always): Old content moved into
7132 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7133 TRY_CATCH, handle MEMORY_ERROR exceptions.
7134 (frame_stop_reason_string): New function definition.
7135 * frame.h (unwind_stop_reason_to_string): Extend comment to
7136 mention frame_stop_reason_string.
7137 (frame_stop_reason_string): New function declaration.
7138 * stack.c (frame_info): Switch to frame_stop_reason_string.
7139 (backtrace_command_1): Switch to frame_stop_reason_string.
7140 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7141 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7142 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7144 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7146 * frame.c (frame_stop_reason_string): Rename to ...
7147 (unwind_stop_reason_to_string): this.
7148 * frame.h (frame_stop_reason_string): Rename to ...
7149 (unwind_stop_reason_to_string): this.
7150 * stack.c (frame_info): Update call to frame_stop_reason_string.
7151 (backtrace_command_1): Likewise.
7152 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7153 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7155 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7157 * frame.c (remove_prev_frame): New function.
7158 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7161 2014-05-29 Pedro Alves <palves@redhat.com>
7163 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7164 and make it const. When a single-step decays to a continue,
7165 clear 'step', not 'hw_step'. Pass whether the caller wanted
7166 to step to user_visible_resume_ptid, not what we ask the
7169 2014-05-29 Pedro Alves <palves@redhat.com>
7171 * infrun.c (process_event_stop_test, handle_step_into_function)
7172 (handle_step_into_function_backward): Adjust.
7173 Don't set the even thread's stop_step and call stop_waiting before
7174 calling end_stepping_range. Instead do that ...
7175 (end_stepping_range): ... here. Take an ecs pointer parameter.
7177 2014-05-29 Pedro Alves <palves@redhat.com>
7179 * infrun.c (stop_stepping): Rename to ...
7180 (stop_waiting): ... this.
7181 (proceed): Update comment.
7182 (process_event_stop_test, handle_inferior_event)
7183 (handle_signal_stop, handle_step_into_function)
7184 (handle_step_into_function_backward): Update.
7186 2014-05-29 Pedro Alves <palves@redhat.com>
7188 * infcall.c (run_inferior_call): Don't check whether the current
7189 thread is running after the proceed call.
7191 2014-05-29 Pedro Alves <palves@redhat.com>
7192 Tom Tromey <tromey@redhat.com>
7194 * NEWS: Mention "maint set target-async", "set mi-async", and that
7195 background execution commands are now always available.
7196 * target.h (target_async_permitted): Update comment.
7197 * target.c (target_async_permitted, target_async_permitted_1):
7199 (set_target_async_command): Rename to ...
7200 (maint_set_target_async_command): ... this.
7201 (show_target_async_command): Rename to ...
7202 (maint_show_target_async_command): ... this.
7203 (_initialize_target): Adjust.
7204 * infcmd.c (prepare_execution_command): Make extern.
7205 * inferior.h (prepare_execution_command): Declare.
7206 * infrun.c (set_observer_mode): Leave target async alone.
7207 * mi/mi-interp.c (mi_interpreter_init): Install
7208 mi_on_sync_execution_done as sync_execution_done observer.
7209 (mi_on_sync_execution_done): New function.
7210 (mi_execute_command_input_handler): Don't print the prompt if we
7211 just started a synchronous command with an async target.
7212 (mi_on_resume): Check sync_execution before printing prompt.
7213 * mi/mi-main.h (mi_async_p): Declare.
7214 * mi/mi-main.c: Include gdbcmd.h.
7215 (mi_async_p): New function.
7216 (mi_async, mi_async_1): New globals.
7217 (set_mi_async_command, show_mi_async_command, mi_async): New
7219 (exec_continue): Call prepare_execution_command.
7220 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7221 (mi_execute_async_cli_command): Use mi_async_p.
7222 (_initialize_mi_main): Install "set mi-async". Make
7223 "target-async" a deprecated alias.
7225 2014-05-29 Pedro Alves <palves@redhat.com>
7227 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7228 (_initialize_cli_interp): Adjust.
7229 * event-loop.c: Include "observer.h".
7230 (start_event_loop): Notify 'command_error' observers instead of
7231 calling display_gdb_prompt. Remove FIXME comment.
7232 * event-top.c (display_gdb_prompt): Remove call into the
7234 * inf-loop.c: Include "observer.h".
7235 (inferior_event_handler): Notify 'command_error' observers instead
7236 of calling display_gdb_prompt.
7237 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7238 observers instead of calling display_gdb_prompt.
7239 * interps.c (interp_set): Don't call display_gdb_prompt.
7240 (current_interp_display_prompt_p): Delete.
7241 * interps.h (interp_prompt_p): Delete declaration.
7242 (interp_prompt_p_ftype): Delete.
7243 (struct interp_procs) <prompt_proc_p>: Delete field.
7244 (current_interp_display_prompt_p): Delete declaration.
7245 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7246 (_initialize_mi_interp): Adjust.
7247 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7248 'command_error' observers.
7249 (tui_on_sync_execution_done, tui_on_command_error): New
7251 (tui_display_prompt_p): Delete.
7252 (_initialize_tui_interp): Adjust.
7254 2014-05-29 Pedro Alves <palves@redhat.com>
7257 * cli/cli-interp.c: Include infrun.h and observer.h.
7258 (cli_uiout, cli_interp): New globals.
7259 (cli_on_signal_received, cli_on_end_stepping_range)
7260 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7262 (cli_interpreter_init): Install them as 'end_stepping_range',
7263 'signal_received' 'signal_exited', 'exited' and 'no_history'
7265 (_initialize_cli_interp): Remove cli_interp local.
7266 * infrun.c (handle_inferior_event): Call the several stop reason
7267 observers instead of printing the stop reason directly.
7268 (end_stepping_range): New function.
7269 (print_end_stepping_range_reason, print_signal_exited_reason)
7270 (print_exited_reason, print_signal_received_reason)
7271 (print_no_history_reason): Make static, and add an uiout
7272 parameter. Print to that instead of to CURRENT_UIOUT.
7273 * infrun.h (print_end_stepping_range_reason)
7274 (print_signal_exited_reason, print_exited_reason)
7275 (print_signal_received_reason print_no_history_reason): New
7277 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7279 <cli_uiout>: New field.
7280 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7281 uiout for CLI output. Install 'signal_received',
7282 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7284 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7285 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7286 (mi_on_no_history): New functions.
7287 (ui_out_free_cleanup): Delete function.
7288 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7289 instead use the one already stored in the MI interpreter data.
7290 (mi_ui_out): Adjust.
7291 * tui/tui-interp.c: Include infrun.h and observer.h.
7292 (tui_interp): New global.
7293 (tui_on_signal_received, tui_on_end_stepping_range)
7294 (tui_on_signal_exited, tui_on_exited)
7295 (tui_on_no_history): New functions.
7296 (tui_init): Install them as 'end_stepping_range',
7297 'signal_received' 'signal_exited', 'exited' and 'no_history'
7299 (_initialize_tui_interp): Delete tui_interp local.
7301 2014-05-29 Pedro Alves <palves@redhat.com>
7304 * linux-nat.c (linux_nat_resume_callback): Rename the second
7305 parameter to 'except'. Skip LP if it points to EXCEPT.
7306 (linux_nat_resume): Don't mark the event lwp as not stopped
7307 before resuming sibling lwps. Instead ask
7308 linux_nat_resume_callback to skip the event lwp. Mark it as not
7309 stopped after actually resuming it.
7310 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7312 (wait_lwp): Mark the lwp as stopped here.
7313 (stop_wait_callback): Mark the lwp as not stopped right after
7314 resuming it. Don't mark lwps as stopped here.
7315 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7316 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7318 2014-05-29 Pedro Alves <palves@redhat.com>
7321 * infrun.c (resume): Determine how much to resume depending on
7322 whether the caller wanted a step, not whether we can hardware step
7323 the target. Mark all threads that we intend to run as running,
7324 unless we're calling an inferior function.
7325 (normal_stop): If the thread is running an infcall, don't finish
7327 * target.c (target_resume): Don't mark threads as running here.
7329 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7331 * serial.c (_initialize_serial): Remove support for
7332 the "set remotebaud" and "show remotebaud" commands.
7333 * NEWS: Add entry documenting the removal of that command.
7335 2014-05-28 Yao Qi <yao@codesourcery.com>
7337 * charset.c: Fix typo in comments.
7339 2014-05-27 Gary Benson <gbenson@redhat.com>
7341 * utils.c (internal_vproblem): Prompt for a bug report.
7343 2014-05-26 Andy Wingo <wingo@igalia.com>
7345 * guile/scm-arch.c (arscm_mark_arch_smob):
7346 * guile/scm-block.c (bkscm_mark_block_smob)
7347 (bkscm_mark_block_syms_progress_smob):
7348 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7349 * guile/scm-exception.c (exscm_mark_exception_smob):
7350 * guile/scm-frame.c (frscm_mark_frame_smob):
7351 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7352 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7353 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7354 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7355 (ppscm_mark_pretty_printer_worker_smob):
7356 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7357 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7358 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7359 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7361 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7364 2014-05-26 Andy Wingo <wingo@igalia.com>
7365 Doug Evans <xdje42@gmail.com>
7367 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7368 empty_base_class. All uses updated.
7369 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7370 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7372 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7373 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7374 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7375 (gdbscm_gsmob_has_property_p, add_property_name)
7376 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7377 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7378 (gdb-object-has-property?, gdb-object-properties): Remove.
7379 (gdb-object-kind): Renamed from gsmob-kind.
7381 2014-05-26 Andy Wingo <wingo@igalia.com>
7383 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7384 * configure: Regenerate.
7386 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7388 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7390 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7392 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7393 (replay_memory_access_read_only, replay_memory_access_read_write)
7394 (replay_memory_access_types, replay_memory_access)
7395 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7396 (cmd_set_record_btrace, cmd_show_record_btrace)
7397 (cmd_show_replay_memory_access): New.
7398 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7399 (record_btrace_remove_breakpoint): Replace
7400 record_btrace_allow_memory_access with replay_memory_access.
7401 (_initialize_record_btrace): Add commands.
7402 * NEWS: Announce it.
7404 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7406 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7408 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7410 * MAINTAINERS (Write After Approval): Move self back from
7413 2014-05-22 Pedro Alves <palves@redhat.com>
7415 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7416 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7417 (disable_randomization, enum exec_direction_kind)
7418 (execution_direction, stop_registers, start_remote)
7419 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7420 (wait_for_inferior, normal_stop, get_last_target_status)
7421 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7422 (insert_step_resume_breakpoint_at_sal)
7423 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7424 (set_step_info, print_stop_event, signal_stop_state)
7425 (signal_print_state, signal_pass_state, signal_stop_update)
7426 (signal_print_update, signal_pass_update)
7427 (update_signals_program_target, clear_exit_convenience_vars)
7428 (displaced_step_dump_bytes, update_observer_mode)
7429 (signal_catch_update, gdb_signal_from_command): Move
7431 * infrun.h: ... to this new file.
7432 * amd64-tdep.c: Include infrun.h.
7433 * annotate.c: Include infrun.h.
7434 * arch-utils.c: Include infrun.h.
7435 * arm-linux-tdep.c: Include infrun.h.
7436 * arm-tdep.c: Include infrun.h.
7437 * break-catch-sig.c: Include infrun.h.
7438 * breakpoint.c: Include infrun.h.
7439 * common/agent.c: Include infrun.h instead of inferior.h.
7440 * corelow.c: Include infrun.h.
7441 * event-top.c: Include infrun.h.
7442 * go32-nat.c: Include infrun.h.
7443 * i386-tdep.c: Include infrun.h.
7444 * inf-loop.c: Include infrun.h.
7445 * infcall.c: Include infrun.h.
7446 * infcmd.c: Include infrun.h.
7447 * infrun.c: Include infrun.h.
7448 * linux-fork.c: Include infrun.h.
7449 * linux-nat.c: Include infrun.h.
7450 * linux-thread-db.c: Include infrun.h.
7451 * monitor.c: Include infrun.h.
7452 * nto-tdep.c: Include infrun.h.
7453 * procfs.c: Include infrun.h.
7454 * record-btrace.c: Include infrun.h.
7455 * record-full.c: Include infrun.h.
7456 * remote-m32r-sdi.c: Include infrun.h.
7457 * remote-mips.c: Include infrun.h.
7458 * remote-notif.c: Include infrun.h.
7459 * remote-sim.c: Include infrun.h.
7460 * remote.c: Include infrun.h.
7461 * reverse.c: Include infrun.h.
7462 * rs6000-tdep.c: Include infrun.h.
7463 * s390-linux-tdep.c: Include infrun.h.
7464 * solib-irix.c: Include infrun.h.
7465 * solib-osf.c: Include infrun.h.
7466 * solib-svr4.c: Include infrun.h.
7467 * target.c: Include infrun.h.
7468 * top.c: Include infrun.h.
7469 * windows-nat.c: Include infrun.h.
7470 * mi/mi-interp.c: Include infrun.h.
7471 * mi/mi-main.c: Include infrun.h.
7472 * python/py-threadevent.c: Include infrun.h.
7474 2014-05-22 Pedro Alves <palves@redhat.com>
7476 * infrun.c (handle_inferior_event): Store the exit code for
7477 --return-child-result here, instead of ...
7478 (print_exited_reason): ... here.
7480 2014-05-21 Pedro Alves <palves@redhat.com>
7483 * gdbthread.h (struct thread_control_state): New field
7485 * infrun.c (follow_fork): Copy the new thread control field to the
7487 (clear_proceed_status_thread): Clear the new thread control field.
7488 (proceed): Set the new thread control field.
7489 * interps.h (command_interp): Declare.
7490 * interps.c (command_interpreter): New global.
7491 (command_interp): New function.
7492 (interp_exec): Set `command_interpreter' while here.
7493 * cli-out.c (cli_uiout_dtor): New function.
7494 (cli_ui_out_impl): Install it.
7495 * mi/mi-interp.c: Include cli-out.h.
7496 (mi_cmd_interpreter_exec): Add comment.
7497 (restore_current_uiout_cleanup): New function.
7498 (ui_out_free_cleanup): New function.
7499 (mi_on_normal_stop): If finishing an execution command started by
7500 a CLI command, or any kind of breakpoint-like event triggered,
7501 print the stop event to the output (CLI) stream.
7502 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7504 2014-05-21 Pedro Alves <palves@redhat.com>
7506 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7507 current source line having changed.
7508 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7509 * infrun.c (normal_stop): Adjust call to
7510 set_current_sal_from_frame.
7511 * source.c (clear_lines_listed_range): New function.
7512 (set_current_source_symtab_and_line, identify_source_line): Clear
7513 the lines listed range.
7514 (line_info): Handle the first "info line" after the current source
7515 line having changed.
7516 * stack.c (print_stack_frame): Remove center handling.
7517 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7520 2014-05-21 Pedro Alves <palves@redhat.com>
7522 * inf-child.c (inf_child_mourn_inferior): New function.
7523 * inf-child.h (inf_child_mourn_inferior): New declaration.
7524 * darwin-nat.c (darwin_mourn_inferior): Use
7525 inf_child_mourn_inferior.
7526 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7527 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7528 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7529 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7530 * windows-nat.c (windows_mourn_inferior): Likewise.
7532 2014-05-21 Doug Evans <xdje42@gmail.com>
7534 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7536 2014-05-21 Doug Evans <xdje42@gmail.com>
7538 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7539 (gdbscm_out_of_range_error): Ditto.
7540 (gdbscm_memory_error): Ditto.
7541 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7542 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7543 (gdbscm_out_of_range_error): Update.
7544 (gdbscm_memory_error): Update.
7545 (gdbscm_scm_to_target_string_unsafe): Delete.
7547 2014-05-21 Pedro Alves <palves@redhat.com>
7549 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7551 (inf_child_open_target): New function.
7552 (inf_child_open): Use inf_child_open_target to push the target
7553 instead of erroring out.
7554 (inf_child_disconnect, inf_child_close)
7555 (inf_child_maybe_unpush_target): New functions.
7556 (inf_child_target): Install inf_child_disconnect and
7557 inf_child_close. Store a pointer to the returned object.
7558 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7560 * target.c (auto_connect_native_target): New global.
7561 (show_default_run_target): New function.
7562 (find_default_run_target): Return NULL if automatically connecting
7563 to the native target is disabled.
7564 (_initialize_target): Install set/show auto-connect-native-target.
7565 * NEWS: Mention "set auto-connect-native-target", and "target
7567 * linux-nat.c (super_close): New global.
7568 (linux_nat_close): Call super_close.
7569 (linux_nat_add_target): Store a pointer to the base class's
7571 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7572 inf_child_maybe_unpush.
7573 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7575 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7576 the inferior. Use inf_child_maybe_unpush_target.
7577 (inf_ttrace_attach): Don't push the target if it is already
7579 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7580 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7581 after mourning the inferior. Use inf_child_maybe_unpush_target.
7582 (darwin_attach_pid): Don't push the target if it is already
7584 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7585 mourning the inferior. Use inf_child_maybe_unpush_target.
7586 (gnu_detach): Use inf_child_maybe_unpush_target.
7587 * go32-nat.c (go32_create_inferior): Don't push the target if it
7589 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7590 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7591 (procfs_open): Rename to ...
7592 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7593 comments. Can target_preopen before changing node. Call
7594 inf_child_open_target to push the target explicitly.
7595 (procfs_attach): Don't push the target if it is already pushed.
7596 (procfs_detach): Use inf_child_maybe_unpush_target.
7597 (procfs_create_inferior): Don't push the target if it is already
7599 (nto_native_ops): New global.
7600 (procfs_open): Reimplement.
7601 (procfs_native_open): New function.
7602 (init_procfs_targets): Install procfs_native_open as to_open of
7603 "target native". Store a pointer to the "native" target in
7605 * procfs.c (procfs_attach): Don't push the target if it is already
7607 (procfs_detach): Use inf_child_maybe_unpush_target.
7608 (procfs_mourn_inferior): Only unpush the target after mourning the
7609 inferior. Use inf_child_maybe_unpush_target.
7610 (procfs_init_inferior): Don't push the target if it is already
7612 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7613 if it is already pushed.
7615 2014-05-21 Pedro Alves <palves@redhat.com>
7617 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7618 and "procfs" targets are now called "native" instead.
7620 2014-05-21 Pedro Alves <palves@redhat.com>
7622 * go32-nat.c (go32_open): Delete.
7623 (go32_target): Don't override the to_open method.
7625 2014-05-21 Pedro Alves <palves@redhat.com>
7627 * nto-procfs.c (procfs_can_run): New function.
7628 (nto_procfs_ops): New global.
7629 (init_procfs_targets): New, based on procfs_target. Install
7630 "target native" in addition to "target procfs".
7631 (_initialize_procfs): Call init_procfs_targets instead of adding
7634 2014-05-21 Pedro Alves <palves@redhat.com>
7636 * windows-nat.c (windows_target): Don't override to_shortname,
7637 to_longname or to_doc.
7639 2014-05-21 Pedro Alves <palves@redhat.com>
7641 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7644 2014-05-21 Pedro Alves <palves@redhat.com>
7646 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7647 to_shortname, to_longname or to_doc.
7649 2014-05-21 Pedro Alves <palves@redhat.com>
7651 * go32-nat.c (go32_target): Don't override to_shortname,
7652 to_longname or to_doc.
7654 2014-05-21 Pedro Alves <palves@redhat.com>
7656 * inf-child.c (inf_child_open): Remove mention of "child".
7657 (inf_child_target): Rename target to "native" instead of "child".
7659 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7661 * Makefile.in (SFILES): Delete "regset.c".
7662 (COMMON_OBS): Delete "regset.o".
7664 * regset.h (regset_alloc): Delete prototype.
7666 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7668 * sparc-linux-tdep.c (sparc32_linux_gregset)
7669 (sparc32_linux_fpregset): New static regset structures.
7670 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7671 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7673 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7674 (sparc64_linux_fpregset): New static regset structures.
7675 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7676 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7677 New static regset structures.
7678 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7679 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7680 New static regset structures.
7681 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7682 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7683 New static regset structures.
7684 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7685 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7686 New static regset structures.
7687 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7689 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7691 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7692 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7693 register maps ("regmaps") from "*regset" to "*regmap". Do this
7694 for all regmap types and variables.
7695 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7696 (sparc32_linux_supply_core_gregset)
7697 (sparc32_linux_collect_core_gregset)
7698 (sparc32_linux_supply_core_fpregset)
7699 (sparc32_linux_collect_core_fpregset): Likewise.
7700 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7701 (sparc_gregmap, sparc_fpregmap): ... these.
7702 (sparc_supply_gregset, sparc_collect_gregset)
7703 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7704 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7705 (_initialize_sparc_nat): Rename regmaps.
7706 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7707 (sparc_gregmap, sparc_fpregmap): ... these.
7708 (sparc_supply_gregset, sparc_collect_gregset)
7709 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7710 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7712 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7713 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7715 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7717 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7718 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7719 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7721 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7722 (sparc32_bsd_fpregset): Rename to...
7723 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7724 (sparc32_bsd_fpregmap): ... these.
7725 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7726 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7727 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7728 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7729 (struct sparc_gregmap, struct sparc_fpregmap)
7730 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7731 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7732 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7733 (sparc32_supply_regset, sparc32_collect_gregset)
7734 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7736 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7737 (sparc64_linux_ptrace_gregmap): ... this.
7738 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7739 (_initialize_sparc64_linux_nat): Rename regmaps.
7740 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7741 (sparc64_linux_core_gregmap): ... this.
7742 (sparc64_linux_supply_core_gregset)
7743 (sparc64_linux_collect_core_gregset)
7744 (sparc64_linux_supply_core_fpregset)
7745 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7746 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7747 (sparc64_sol2_fpregset): Rename to...
7748 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7749 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7750 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7752 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7753 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7754 (sparc64_bsd_fpregset): Rename to...
7755 (struct sparc_gregmap, sparc64_sol2_gregmap)
7756 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7757 (sparc64_bsd_fpregmap): ... these.
7758 (sparc64_supply_gregset, sparc64_collect_gregset)
7759 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7761 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7762 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7763 (sparc64fbsd_gregmap): ... this.
7764 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7765 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7767 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7768 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7769 (sparc64nbsd_collect_fpregset): Likewise.
7770 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7771 (sparc64nbsd_gregmap): ... this.
7772 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7774 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7775 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7776 (sparc64obsd_gregmap): ... this.
7777 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7779 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7780 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7781 (sparc32nbsd_gregmap): ... this.
7782 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7785 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7787 * score-tdep.c (score7_linux_gregset): New static regset
7789 (score7_linux_regset_from_core_section): Remove dynamic regset
7791 (score_gdbarch_init): Drop allocation of tdep structure.
7792 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7794 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7796 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7798 (am33_regset_from_core_section): Remove dynamic regset
7801 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7803 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7804 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7806 (mips_linux_regset_from_core_section): Remove dynamic regset
7808 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7809 'gregset64', 'fpregset', and 'fpregset64'.
7810 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7811 deleted tdep fields.
7813 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7815 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7817 (amd64_regset_from_core_section): Remove dynamic regset
7819 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7821 (amd64obsd_regset_from_core_section): Remove dynamic regset
7823 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7825 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7826 x86-common regset supply function.
7827 * i386-tdep.c (i386_collect_gregset): Make static.
7828 (i386_gregset): New global regset structure.
7829 (i386_fpregset, i386_xstateregset): New static regset structures.
7830 (i386_regset_from_core_section): Remove dynamic regset
7832 (i386_gdbarch_init): Remove initialization of tdep fields
7833 'gregset', 'fpregset', and 'xstateregset'.
7834 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7835 'fpregset', and 'xstateregset'.
7836 (i386_collect_gregset): Remove prototype.
7837 (i386_gregset): New declaration.
7838 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7840 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7843 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7845 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7846 (arm_linux_vfpregset): New static regset structures.
7847 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7849 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7850 and 'vfpregset' fields.
7852 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7854 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7855 (aarch64_linux_fpregset): New static regset structures.
7856 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7857 of regset structures.
7858 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7861 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7863 * regset.h (struct regset): Remove gdbarch field.
7864 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7865 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7866 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7868 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7869 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7870 (ppc32_linux_vsxregset): Likewise.
7871 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7872 via the regcache instead of the regset.
7873 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7874 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7875 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7876 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7879 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7881 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7882 Constify structures.
7883 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7884 (alphanbsd_aout_gregset): Likewise.
7885 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7886 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7888 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7889 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7891 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7892 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7893 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7894 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7895 * m88k-tdep.c (m88k_gregset): Likewise.
7896 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7897 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7898 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7899 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7900 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7901 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7902 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7903 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7904 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7906 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7907 * sh-tdep.h (sh_corefile_gregset): Likewise.
7908 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7909 * vax-tdep.c (vax_gregset): Likewise.
7911 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7913 Fix TLS access for -static -pthread.
7914 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7915 (try_thread_db_load_1): Initialize it.
7916 (thread_db_get_thread_local_address): Call it if LM is zero.
7917 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7918 * target.h (struct target_ops) (to_get_thread_local_address): Add
7919 load_module_addr comment.
7921 2014-05-21 Pedro Alves <palves@redhat.com>
7923 * dcache.c (dcache_read_memory_partial): If reading the cache line
7924 fails, fallback to reading just the memory the caller wanted.
7926 2014-05-20 Doug Evans <dje@google.com>
7928 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7929 instead of get_current_arch.
7931 2014-05-20 Pedro Alves <palves@redhat.com>
7933 * NEWS: Mention that compare-sections now works with all targets.
7935 * remote.c (PACKET_qCRC): New enum value.
7936 (remote_verify_memory): Don't send qCRC if the target has no
7937 execution. Use packet_support/packet_ok. If the target doesn't
7938 support the qCRC packet, fallback to a deep memory copy.
7939 (compare_sections_command): Say "target image" instead of "remote
7941 (_initialize_remote): Add PACKET_qCRC to the list of config
7942 packets that have no associated command. Extend comment.
7943 * target.c (simple_verify_memory, default_verify_memory): New
7945 * target.h (struct target_ops) <to_verify_memory>: Default to
7946 default_verify_memory.
7947 (simple_verify_memory): New declaration.
7948 * target-delegates.c: Regenerate.
7950 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7952 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7954 2014-05-20 Hui Zhu <hui@codesourcery.com>
7955 Yao Qi <yao@codesourcery.com>
7958 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7959 and change address of sp and pc.
7961 2014-05-19 Tom Tromey <tromey@redhat.com>
7963 * gdbtypes.c (rank_function): Use XNEWVEC.
7964 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7966 2014-05-19 Doug Evans <dje@google.com>
7968 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7969 build_type_unit_groups and moved closer to only caller. Remove
7970 arguments. All references updated. Remove outdated .gdb_index
7972 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7973 build_type_psymtabs_1.
7975 2014-05-19 Doug Evans <dje@google.com>
7977 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7978 n_type_unit_groups, all_type_unit_groups. All uses removed.
7979 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7980 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7981 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7982 (add_type_unit_group_to_table): Delete.
7984 2014-05-19 Doug Evans <dje@google.com>
7986 * eval.c (evaluate_subexp_standard): Add some comments.
7988 2014-05-17 Doug Evans <xdje42@gmail.com>
7990 * progspace.c (remove_program_space): Delete, unused.
7991 * progspace.h (remove_program_space): Ditto.
7993 2014-05-17 Doug Evans <xdje42@gmail.com>
7995 * inferior.c (prune_inferiors): Fix comment.
7996 (remove_inferior_command): Call prune_program_spaces.
7998 2014-05-16 Doug Evans <dje@google.com>
8000 New command line option -D.
8002 * main.c (set_gdb_data_directory): New function.
8003 (captured_main): Recognize -D. Flag error for --data-directory "".
8004 Call set_gdb_data_directory.
8005 (print_gdb_help): Print --data-directory, -D.
8006 * main.h (set_gdb_data_directory): Declare.
8007 * top.c (staged_gdb_datadir): New static global.
8008 (set_gdb_datadir): Call set_gdb_data_directory
8009 (show_gdb_datadir): New function.
8010 (init_main): Update init of data-directory parameter.
8012 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8014 Import the "dirfd" gnulib module.
8015 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8016 * gnulib/aclocal.m4: Update.
8017 * gnulib/config.in: Update.
8018 * gnulib/configure: Update.
8019 * gnulib/import/Makefile.am: Update.
8020 * gnulib/import/Makefile.in: Update.
8021 * gnulib/import/dirfd.c: New.
8022 * gnulib/import/m4/dirfd.m4: New.
8023 * gnulib/import/m4/gnulib-cache.m4: Update.
8024 * gnulib/import/m4/gnulib-comp.m4: Update.
8026 2014-05-16 Pierre Muller <muller@sourceware.org>
8027 Yao Qi <yao@codesourcery.com>
8029 * valprint.c (print_wchar): Move the code on checking whether
8030 W is a printable wide char to the default branch of switch
8031 statement below. Call wchar_printable instead of gdb_iswprint.
8033 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8035 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8036 ldr.w and ldrd instructions.
8038 2014-05-15 Doug Evans <dje@google.com>
8040 * dwarf2read.c (read_structure_type): Delete outdated comments.
8042 2014-05-14 Tom Tromey <tromey@redhat.com>
8044 * macrocmd.c (print_macro_definition): Reindent.
8046 2014-05-13 Doug Evans <xdje42@gmail.com>
8048 * python/py-cmd.c (cmdpy_completer): Add comment.
8049 (completers): Make const.
8051 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8053 * infrun.c (resume): Remove should_resume (unused). Move up
8054 declaration of resume_ptid.
8056 2014-05-13 Tom Tromey <tromey@redhat.com>
8058 * language.h (unop_type_check): Remove.
8059 (binop_type_check): Don't declare.
8061 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8063 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8064 call to regcache_raw_collect.
8066 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8068 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8069 mi_console->quote as the quoting character.
8071 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8073 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8075 2014-04-29 Tom Tromey <tromey@redhat.com>
8077 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8078 "show debug varobj".
8080 2014-05-07 Kyle McMartin <kyle@redhat.com>
8082 Pushed by Joel Brobecker <brobecker@adacore.com>.
8083 * aarch64-tdep.c (aarch64_software_single_step): New function.
8084 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8085 with aarch64_software_single_step.
8087 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8091 2014-05-05 Keith Seitz <keiths@redhat.com>
8093 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8094 variable or history value is successfully parsed.
8096 2014-05-05 Yao Qi <yao@codesourcery.com>
8097 Pedro Alves <palves@redhat.com>
8099 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8100 address of blocks that intersects the requested range. Trim
8101 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8103 * ctf.c (ctf_xfer_partial): Likewise.
8105 2014-05-05 Yao Qi <yao@codesourcery.com>
8107 * printcmd.c (display_command): Remove the check to
8108 target_has_execution.
8110 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8112 * ppcobsd-nat.c: Include "obsd-nat.h".
8113 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8115 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8117 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8119 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8120 and 16-bit signed and unsigned arguments. Update comment.
8121 (stap_parse_probe_arguments): Extend code to handle such
8122 arguments. Use warning instead of complaint to notify about
8123 unrecognized bitness.
8125 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8127 PR breakpoints/16889
8128 * stap-probe.c (stap_parse_probe_arguments): Simplify
8129 check for non-prefixed probes (i.e., probes whose
8130 arguments do not start with "N@"). Always set the
8131 argument type to a sane value.
8133 2014-05-01 David Taylor <dtaylor@emc.com>
8135 * remote.c (compare_sections_command): Add -r option to compare
8136 all loadable read-only sections.
8138 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8140 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8141 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8143 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8144 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8145 Remove unused CORE_ADDR argument. Update all callers.
8147 2014-04-29 Pedro Alves <palves@redhat.com>
8149 * remote.c (struct packet_config) <detect>: Extend comment.
8150 (add_packet_config_cmd): Don't set the config's detect or support
8152 (init_all_packet_configs): Also initialize the config's 'detect'
8154 (reset_all_packet_configs_support): New function.
8155 (remote_open_1): Call reset_all_packet_configs_support instead of
8156 init_all_packet_configs.
8157 (_initialize_remote): Initialize all packet configs. Assert that
8158 all packets have an associated command, except a few known
8161 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8163 * dwarf2read.c (read_subrange_type): Handle dynamic
8164 DW_AT_lower_bound attributes.
8166 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8168 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8169 dynamic bounds before computing its upper bound.
8170 (ada_discrete_type_low_bound): Same as above with the lower bound.
8172 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8174 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8175 range types. Adjust the array handling implementation to
8176 take advantage of this change.
8177 (resolve_dynamic_range): New function, mostly extracted from
8178 resolve_dynamic_bounds.
8179 (resolve_dynamic_array): New function, mostly extracted from
8180 resolve_dynamic_bounds.
8181 (resolve_dynamic_bounds): Delete.
8182 (resolve_dynamic_type): Reimplement. Add handling of
8183 TYPE_CODE_RANGE types.
8185 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8187 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8188 handling of parallel ___XA types.
8190 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8192 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8193 unnecessary second call to static_unwrap_type.
8195 2014-04-27 Hui Zhu <hui@codesourcery.com>
8197 * stack.c (print_frame_info): Call do_gdb_disassembly with
8198 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8200 2014-04-26 Doug Evans <xdje42@gmail.com>
8202 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8204 2014-04-25 Pedro Alves <palves@redhat.com>
8207 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8208 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8209 and newline from built string.
8210 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8211 (linux_ptrace_attach_fail_reason): ... this.
8212 * linux-nat.c (linux_nat_attach): Adjust to use
8213 linux_ptrace_attach_fail_reason.
8215 2014-04-25 Pedro Alves <palves@redhat.com>
8217 * remote.c (struct remote_state): Remove multi_process_aware,
8218 non_stop_aware, cond_tracepoints, cond_breakpoints,
8219 breakpoint_commands, fast_tracepoints, static_tracepoints,
8220 install_in_trace, disconnected_tracing,
8221 enable_disable_tracepoints, string_tracing, and
8222 augmented_libraries_svr4_read fields.
8223 (remote_multi_process_p): Move further below in the file.
8224 (struct packet_config): Add comments.
8225 (update_packet_config): Delete function.
8226 (show_packet_config_cmd): Use packet_config_support.
8227 (add_packet_config_cmd): Use NULL as set callback.
8228 (packet_ok): "set remote foo-packet"-style commands no longer
8229 change config->supported -- adjust.
8230 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8231 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8232 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8233 (PACKET_QNonStop, PACKET_multiprocess_feature)
8234 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8235 (PACKET_DisconnectedTracing_feature)
8236 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8237 (set_remote_protocol_packet_cmd): Delete function.
8238 (packet_config_support, packet_support): New functions.
8239 (set_remote_protocol_Z_packet_cmd): Don't call
8240 update_packet_config.
8241 (remote_query_attached, remote_pass_signals)
8242 (remote_program_signals, remote_threads_info)
8243 (remote_threads_extra_info, remote_start_remote): Use
8245 (remote_start_remote): Use packet_config_support and
8247 (init_all_packet_configs): Set all packets to unknown support,
8248 instead of calling update_packet_config.
8249 (remote_check_symbols): Use packet_support.
8250 (remote_supported_packet): Unconditionally set the packet config's
8252 (remote_multi_process_feature, remote_non_stop_feature)
8253 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8254 (remote_breakpoint_commands_feature)
8255 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8256 (remote_install_in_trace_feature)
8257 (remote_disconnected_tracing_feature)
8258 (remote_enable_disable_tracepoint_feature)
8259 (remote_string_tracing_feature)
8260 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8261 (remote_protocol_features): Adjust to use remote_supported_packet
8262 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8263 "ConditionalTracepoints", "ConditionalBreakpoints",
8264 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8265 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8266 "EnableDisableTracepoints", and "tracenz".
8267 (remote_query_supported): Use packet_support.
8268 (remote_open_1): Adjust.
8269 (extended_remote_attach_1): Use packet_support. Switch on the
8270 result of packet_ok instead of checking whether the packet ended
8272 (remote_vcont_resume): Use packet_support.
8273 (remote_resume, remote_stop_ns, fetch_register_using_p)
8274 (remote_prepare_to_store, store_register_using_P)
8275 (check_binary_download, remote_write_bytes): Use packet_support.
8276 (remote_vkill): Use packet_support. Switch on the result of
8277 packet_ok instead of checking whether the packet ended up
8279 (extended_remote_supports_disable_randomization): Use
8281 (extended_remote_run): Switch on the result of packet_ok instead
8282 of checking whether the packet ended up disabled.
8283 (remote_insert_breakpoint, remote_remove_breakpoint)
8284 (remote_insert_watchpoint, remote_remove_watchpoint)
8285 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8287 (remote_search_memory): Use packet_config_support.
8288 (remote_get_thread_local_address, remote_get_tib_address)
8289 (remote_hostio_send_command, remote_can_execute_reverse): Use
8291 (remote_supports_cond_tracepoints)
8292 (remote_supports_cond_breakpoints)
8293 (remote_supports_fast_tracepoints)
8294 (remote_supports_static_tracepoints)
8295 (remote_supports_install_in_trace)
8296 (remote_supports_enable_disable_tracepoint)
8297 (remote_supports_string_tracing)
8298 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8299 the packet config says the feature is enabled or disabled.
8300 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8301 (remote_get_trace_status): Use packet_support.
8302 (remote_set_disconnected_tracing): Adjust to check whether the
8303 feature is enabled with packet_support.
8304 (remote_set_trace_buffer_size, remote_use_agent)
8305 (remote_can_use_agent, remote_supports_btrace): Use
8307 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8308 Use packet_config_support.
8309 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8310 the packet config says the feature is enabled or disabled.
8311 (set_range_stepping): Use packet_support.
8313 2014-04-25 Tom Tromey <tromey@redhat.com>
8315 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8318 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8320 * NEWS: Mention support for C99 variable length arrays.
8322 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8324 * ada-lang.c (standard_exc): Expand introductory comment.
8326 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8327 Walfred Tedeschi <walfred.tedeschi@intel.com>
8329 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8331 (amd64_linux_read_description): Add code to handle AVX512 xstate
8332 mask and return respective tdesc.
8333 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8334 and features/i386/x32-avx512-linux.c.
8335 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8336 (amd64_linux_core_read_description): Add code to handle AVX512
8337 xstate mask and return respective tdesc.
8338 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8339 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8341 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8342 (tdesc_amd64_avx512_linux): New prototype.
8343 (tdesc_x32_avx512_linux): Likewise.
8344 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8345 features/i386/x32-avx512.c.
8346 (amd64_ymm_avx512_names): New register names for pseudo
8348 (amd64_ymmh_avx512_names): New register names for raw registers
8350 (amd64_k_names): New register names for K registers.
8351 (amd64_zmmh_names): New register names for ZMM raw registers.
8352 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8353 (amd64_xmm_avx512_names): New register names for XMM16-31
8355 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8357 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8358 if feature is present.
8359 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8360 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8361 (AMD64_NUM_REGS): Adjust to new number of registers.
8362 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8363 registers supplied via XSTATE by AVX512 registers.
8364 (i386_linux_read_description): Add case for AVX512.
8365 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8366 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8367 (i386_linux_core_read_description): Add case for AVX512.
8368 (i386_linux_init_abi): Install supported register note section
8370 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8372 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8373 registers to be number of zmm7h + 1.
8374 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8375 * i386-tdep.c: Include features/i386/i386-avx512.c.
8376 (i386_zmm_names): Add ZMM pseudo register names array.
8377 (i386_zmmh_names): Add ZMM raw register names array.
8378 (i386_k_names): Add K raw register names array.
8379 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8380 registers. AVX512 has 16 more ZMM registers than there are YMM
8382 (i386_zmmh_regnum_p): Add function to look up register number of
8384 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8385 (i386_k_regnum_p): Likewise for K raw registers.
8386 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8387 registers added by AVX512.
8388 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8389 registers added by AVX512.
8390 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8392 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8393 (i386_pseudo_register_name): Add ZMM pseudo registers.
8394 (i386_zmm_type): Construct and return vector registers type for ZMM
8396 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8397 ZMM0-31 pseudo registers and K registers.
8398 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8399 and YMM16-31 registers from register cache.
8400 (i386_pseudo_register_write): Add code to write K, ZMM and
8402 (i386_register_reggroup_p): Add code to include/exclude AVX512
8403 registers in/from respective register groups.
8404 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8405 registers if feature is present in xcr0.
8406 (i386_gdbarch_init): Add code to initialize AVX512 feature
8407 variables in tdep structure, wire in pseudo registers and call
8408 initialize_tdesc_i386_avx512.
8409 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8411 (i386_regnum): Add AVX512 registers.
8412 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8413 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8414 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8415 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8417 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8418 (i386_ymm_avx512_regnum_p): Likewise.
8419 (i386_k_regnum_p): Likewise.
8420 (i386_zmm_regnum_p): Likewise.
8421 (i386_zmmh_regnum_p): Likewise.
8422 * i387-tdep.c : Update year in copyright notice.
8423 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8425 (XSAVE_YMM_AVX512_ADDR): New macro.
8426 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8428 (XSAVE_XMM_AVX512_ADDR): New macro.
8429 (xsave_avx512_k_offset): New table for K register offsets in
8431 (XSAVE_AVX512_K_ADDR): New macro.
8432 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8434 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8435 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8437 (i387_collect_xsave): Add code to collect AVX512 registers from
8439 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8440 of XMM16-31 registers.
8441 (I387_NUM_K_REGS): New define for number of K registers.
8442 (I387_K0_REGNUM): New define for K0 register number.
8443 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8444 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8445 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8447 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8448 (I387_XMM16_REGNUM): New define for XMM16 register number.
8449 (I387_YMM0_REGNUM): New define for YMM0 register number.
8450 (I387_KEND_REGNUM): New define for last K register number.
8451 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8452 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8454 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8456 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8458 * features/Makefile: Add AVX512 related files.
8459 * features/i386/32bit-avx512.xml: New file.
8460 * features/i386/64bit-avx512.xml: Likewise.
8461 * features/i386/amd64-avx512-linux.c: Likewise.
8462 * features/i386/amd64-avx512-linux.xml: Likewise.
8463 * features/i386/amd64-avx512.c: Likewise.
8464 * features/i386/amd64-avx512.xml: Likewise.
8465 * features/i386/i386-avx512-linux.c: Likewise.
8466 * features/i386/i386-avx512-linux.xml: Likewise.
8467 * features/i386/i386-avx512.c: Likewise.
8468 * features/i386/i386-avx512.xml: Likewise.
8469 * features/i386/x32-avx512-linux.c: Likewise.
8470 * features/i386/x32-avx512-linux.xml: Likewise.
8471 * features/i386/x32-avx512.c: Likewise.
8472 * features/i386/x32-avx512.xml: Likewise.
8473 * regformats/i386/amd64-avx512-linux.dat: New file.
8474 * regformats/i386/amd64-avx512.dat: Likewise.
8475 * regformats/i386/i386-avx512-linux.dat: Likewise.
8476 * regformats/i386/i386-avx512.dat: Likewise.
8477 * regformats/i386/x32-avx512-linux.dat: Likewise.
8478 * regformats/i386/x32-avx512.dat: Likewise.
8479 * NEWS: Add note about new support for AVX512.
8482 2014-04-23 Pedro Alves <palves@redhat.com>
8484 * breakpoint.c (insert_bp_location): Tolerate errors if the
8485 breakpoint is set in a user-loaded objfile.
8486 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8487 location is marked shlib_disabled. If the breakpoint is set in a
8488 user-loaded objfile is a GDB-side memory breakpoint, validate it
8489 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8490 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8492 * mem-break.c (memory_validate_breakpoint): New function.
8493 * objfiles.c (userloaded_objfile_contains_address_p): New
8495 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8496 * target.h (memory_validate_breakpoint): New declaration.
8498 2014-04-23 Pedro Alves <palves@redhat.com>
8500 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8501 the breakpoint is set in a shared library, only suppress
8502 errors for software breakpoints, not hardware breakpoints.
8504 2014-04-22 Pedro Alves <palves@redhat.com>
8506 * infrun.c (schedlock_applies): New function, factored out from
8507 find_thread_needs_step_over.
8508 (find_thread_needs_step_over): Use it.
8509 (switch_back_to_stepped_thread): Always clear trap_expected if the
8510 step over is finished. Return early if scheduler locking applies.
8511 Look for the stepping thread and a potential step-over thread with
8513 (currently_stepping_or_nexting_callback): Delete.
8515 2014-04-22 Nick Clifton <nickc@redhat.com>
8517 * NEWS: Mention that ARM sim now supports tracing.
8519 2014-04-22 Yao Qi <yao@codesourcery.com>
8521 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8523 * tracefile.c (tracefile_fetch_registers): ... it. New
8525 * tracefile.h (tracefile_fetch_registers): Declare.
8526 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8527 tracefile_fetch_registers.
8529 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8532 * windows-nat.c (thread_rec): Don't display a warning when
8533 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8534 fails for any reason, set th->suspended to -1, so that we don't
8535 try to resume such a thread. Also, don't return NULL in these
8536 cases, to avoid completely ruin the session due to "PC register is
8537 not available" error.
8538 (do_windows_fetch_inferior_registers): Check errors in
8539 GetThreadContext call.
8540 (windows_continue): Accept an additional argument KILLED; if not
8541 zero, ignore errors in the SetThreadContext call, since the
8542 inferior was killed and is shutting down.
8543 (windows_resume, get_windows_debug_event)
8544 (windows_create_inferior, windows_mourn_inferior)
8545 (windows_kill_inferior): All callers of windows_continue changed
8546 to adjust to its new calling sequence.
8548 2014-04-19 Yao Qi <yao@codesourcery.com>
8550 * ctf.c (ctf_open): Call post_create_inferior.
8552 2014-04-19 Yao Qi <yao@codesourcery.com>
8554 * ctf.c (handle_id): New static variable.
8555 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8556 value. Get the declaration of event "register" and get length
8557 of field "contents".
8559 2014-04-19 Yao Qi <yao@codesourcery.com>
8561 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8563 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8565 * valops.c (oload_method_static): Remove unnecessary argument
8566 METHOD. Update all callers.
8568 2014-04-18 Pedro alves <palves@redhat.com>
8569 Tom Tromey <tromey@redhat.com>
8572 * frame.c (get_prev_frame_1): Rename to ...
8573 (get_prev_frame_always): ... this, and make extern. Adjust.
8574 (skip_artificial_frames): Use get_prev_frame_always.
8575 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8576 (get_frame_unwind_stop_reason): Adjust to rename.
8577 * frame.h (get_prev_frame_always): Declare.
8578 * inline-frame.c: Include frame.h.
8579 (inline_frame_this_id): Use get_prev_frame_always.
8581 2014-04-18 Tristan Gingold <gingold@adacore.com>
8583 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8584 code by using bfd_mach_o_get_base_address.
8586 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8588 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8589 (spu_ax_pseudo_register_collect): New function.
8590 (spu_ax_pseudo_register_push_stack): Likewise.
8591 (spu_dwarf_reg_to_regnum): Likewise.
8592 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8594 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8596 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8597 Replace FRAME argument with FRAME_ID.
8598 * gdbarch.c, gdbarch.h: Regenerate.
8599 * findvar.c (default_value_from_register): Add GDBARCH argument;
8600 replace FRAME by FRAME_ID. No longer call get_frame_id.
8601 (value_from_register): Update call to gdbarch_value_from_register.
8602 * value.h (default_value_from_register): Update prototype.
8603 * s390-linux-tdep.c (s390_value_from_register): Update interface
8604 and call to default_value_from_register.
8605 * spu-tdep.c (spu_value_from_register): Likewise.
8607 * findvar.c (address_from_register): Remove TYPE argument.
8608 Do not call value_from_register; use gdbarch_value_from_register
8609 with null_frame_id instead.
8610 * value.h (address_from_register): Update prototype.
8611 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8612 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8613 address_from_register interface change.
8615 2014-04-17 Yao Qi <yao@codesourcery.com>
8617 * gdbtypes.h: Update comments to link to types and macros'
8620 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8622 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8624 2014-04-16 Keith Seitz <keiths@redhat.com>
8627 * dwarf2read.c (skip_one_die): Check that all relative-offset
8628 sibling DIEs fall within range of the current reader's buffer.
8629 (read_partial_die): Likewise.
8631 2014-04-16 Keith Seitz <keiths@redhat.com>
8634 * cp-namespace.c (lookup_symbol_file): If the type name of
8635 `this' is NULL, return immediately.
8637 2014-04-14 Keith Seitz <keiths@redhat.com>
8640 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8641 from symbol_matches_domain in symtab.c. All local callers
8642 of symbol_matches_domain updated.
8643 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8644 search STRUCT_DOMAIN.
8645 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8646 independently. standard_lookup will do that automatically.
8647 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8648 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8649 (cp_lookup_symbol_in_namespace): Likewise.
8650 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8651 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8652 may return a STRUCT_DOMAIN match.
8653 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8654 * cp-support.c: Include language.h.
8655 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8657 * psymtab.c (match_partial_symbol): Compare the requested
8658 domain with the symbol's domain directly.
8659 (lookup_partial_symbol): Likewise.
8660 * symtab.c (lookup_symbol_in_language): Explain when/why
8661 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8662 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8663 appropriate languages.
8664 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8665 and moved to ada-lang.c
8666 (lookup_block_symbol): Explain that this function only returns
8667 symbol matching the requested DOMAIN.
8668 Compare the requested domain with the symbol's domain directly.
8669 (iterate_over_symbols): Compare the requested domain with the
8670 symbol's domain directly.
8671 * symtab.h (symbol_matches_domain): Remove.
8673 2014-04-14 Tom Tromey <tromey@redhat.com>
8676 * c-exp.y (type_aggregate_p): New function.
8677 (qualified_name, classify_inner_name): Use it.
8678 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8679 and TYPE_TARGET_TYPE of an enum type.
8680 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8682 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8683 handle TYPE_DECLARED_CLASS.
8684 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8686 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8687 * valops.c (enum_constant_from_type): New function.
8688 (value_aggregate_elt): Use it.
8689 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8692 2014-04-14 Tom Tromey <tromey@redhat.com>
8694 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8695 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8697 * value.h (value_aggregate_elt): Update.
8699 2014-04-14 Tom Tromey <tromey@redhat.com>
8701 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8703 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8705 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8706 (evaluate_subexp_standard): Pass noside argument.
8707 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8708 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8709 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8710 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8711 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8713 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8715 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8716 points to a constant blob.
8718 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8720 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8721 property and store it as the high bound and flag the range accordingly.
8722 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8723 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8724 * gdbtypes.h (enum range_flags): New enum.
8725 (struct range_bounds): Add flags member.
8727 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8729 * c-typeprint.c (c_type_print_varspec_suffix): Added
8730 check for not yet resolved high bound. If unresolved, print
8731 "variable length" string to the console instead of random
8734 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8736 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8738 (ada_template_to_fixed_record_type_1): Likewise.
8739 (ada_to_fixed_type_1): Likewise.
8740 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8741 (cp_print_value): Likewise.
8742 * d-valprint.c (dynamic_array_type): Likewise.
8743 * findvar.c (address_of_variable): Likewise.
8744 * jv-valprint.c (java_value_print): Likewise.
8745 * valops.c (value_ind): Likewise.
8746 * value.c (coerce_ref): Likewise.
8748 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8750 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8751 value and retrieve the dynamic type size.
8753 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8755 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8756 passed to sizeof is dynamic evaluate the argument to compute the length.
8758 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8759 Joel Brobecker <brobecker@adacore.com>
8761 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8762 (dwarf2_evaluate_property): New function.
8763 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8764 * dwarf2read.c (attr_to_dynamic_prop): New function.
8765 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8767 * gdbtypes.c: Include dwarf2loc.h.
8768 (is_dynamic_type): New function.
8769 (resolve_dynamic_type): New function.
8770 (resolve_dynamic_bounds): New function.
8771 (get_type_length): New function.
8772 (check_typedef): Use get_type_length to compute type length.
8773 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8774 (TYPE_LOW_BOUND_KIND): New macro.
8775 (is_dynamic_type): New function prototype.
8776 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8777 to resolve dynamic properties of the type. Update comment.
8778 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8780 2014-04-14 Richard Henderson <rth@redhat.com>
8782 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8784 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8785 Doug Evans <xdje42@gmail.com>
8787 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8788 dereference TYPE_CODE_REF values.
8790 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8792 Revert the following changes due to regressions:
8794 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8795 (dwarf2_evaluate_property): New function.
8796 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8797 * dwarf2read.c (attr_to_dynamic_prop): New function.
8798 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8800 * gdbtypes.c: Include dwarf2loc.h.
8801 (is_dynamic_type): New function.
8802 (resolve_dynamic_type): New function.
8803 (resolve_dynamic_bounds): New function.
8804 (get_type_length): New function.
8805 (check_typedef): Use get_type_length to compute type length.
8806 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8807 (TYPE_LOW_BOUND_KIND): New macro.
8808 (is_dynamic_type): New function prototype.
8809 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8810 to resolve dynamic properties of the type. Update comment.
8811 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8813 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8814 passed to sizeof is dynamic evaluate the argument to compute the length.
8816 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8817 value and retrieve the dynamic type size.
8819 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8820 (ada_template_to_fixed_record_type_1): Likewise.
8821 (ada_to_fixed_type_1): Likewise.
8822 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8823 (cp_print_value): Likewise.
8824 * d-valprint.c (dynamic_array_type): Likewise.
8825 * eval.c (evaluate_subexp_with_coercion): Likewise.
8826 * findvar.c (address_of_variable): Likewise.
8827 * jv-valprint.c (java_value_print): Likewise.
8828 * valops.c (value_ind): Likewise.
8829 * value.c (coerce_ref): Likewise.
8831 * c-typeprint.c (c_type_print_varspec_suffix): Added
8832 check for not yet resolved high bound. If unresolved, print
8833 "variable length" string to the console instead of random
8836 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8837 property and store it as the high bound and flag the range accordingly.
8838 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8839 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8840 * gdbtypes.h (enum range_flags): New enum.
8841 (struct range_bounds): Add flags member.
8843 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8844 points to a constant blob.
8846 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8847 (evaluate_subexp_standard): Pass noside argument.
8848 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8849 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8850 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8851 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8852 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8854 2014-04-11 Keith Seitz <keiths@redhat.com>
8857 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8858 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8861 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8863 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8864 (evaluate_subexp_standard): Pass noside argument.
8865 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8866 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8867 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8868 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8869 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8871 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8873 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8874 points to a constant blob.
8876 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8878 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8879 property and store it as the high bound and flag the range accordingly.
8880 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8881 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8882 * gdbtypes.h (enum range_flags): New enum.
8883 (struct range_bounds): Add flags member.
8885 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8887 * c-typeprint.c (c_type_print_varspec_suffix): Added
8888 check for not yet resolved high bound. If unresolved, print
8889 "variable length" string to the console instead of random
8892 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8894 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8895 (ada_template_to_fixed_record_type_1): Likewise.
8896 (ada_to_fixed_type_1): Likewise.
8897 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8898 (cp_print_value): Likewise.
8899 * d-valprint.c (dynamic_array_type): Likewise.
8900 * eval.c (evaluate_subexp_with_coercion): Likewise.
8901 * findvar.c (address_of_variable): Likewise.
8902 * jv-valprint.c (java_value_print): Likewise.
8903 * valops.c (value_ind): Likewise.
8904 * value.c (coerce_ref): Likewise.
8906 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8908 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8909 value and retrieve the dynamic type size.
8911 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8913 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8914 passed to sizeof is dynamic evaluate the argument to compute the length.
8916 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8918 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8919 (dwarf2_evaluate_property): New function.
8920 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8921 * dwarf2read.c (attr_to_dynamic_prop): New function.
8922 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8924 * gdbtypes.c: Include dwarf2loc.h.
8925 (is_dynamic_type): New function.
8926 (resolve_dynamic_type): New function.
8927 (resolve_dynamic_bounds): New function.
8928 (get_type_length): New function.
8929 (check_typedef): Use get_type_length to compute type length.
8930 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8931 (TYPE_LOW_BOUND_KIND): New macro.
8932 (is_dynamic_type): New function prototype.
8933 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8934 to resolve dynamic properties of the type. Update comment.
8935 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8937 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8939 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8940 declaring high/low bounds and change uses accordingly. Call
8941 create_range_type instead of create_static_range_type.
8942 * gdbtypes.c (create_range_type): New function.
8943 (create_range_type): Convert bounds into struct bound_prop and pass
8944 them to create_range_type.
8945 * gdbtypes.h (struct bound_prop): New struct.
8946 (create_range_type): New function prototype.
8947 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8948 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8949 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8951 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8953 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8955 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8956 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8957 * ada-lang.c: All uses of create_range_type updated.
8958 * coffread.c: All uses of create_range_type updated.
8959 * dwarf2read.c: All uses of create_range_type updated.
8960 * f-exp.y: All uses of create_range_type updated.
8961 * m2-valprint.c: All uses of create_range_type updated.
8962 * mdebugread.c: All uses of create_range_type updated.
8963 * stabsread.c: All uses of create_range_type updated.
8964 * valops.c: All uses of create_range_type updated.
8965 * valprint.c: All uses of create_range_type updated.
8967 2014-04-10 Pedro Alves <palves@redhat.com>
8969 * breakpoint.c (single_step_breakpoints)
8970 (single_step_gdbarch): Move up in the file.
8971 (one_breakpoint_xfer_memory): New function, factored out from ...
8972 (breakpoint_xfer_memory): ... here. Also process single-step
8975 2014-04-09 Tristan Gingold <gingold@adacore.com>
8977 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8979 (darwin_decode_exception_message): Free port only after use.
8981 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8983 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8984 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8985 when setting the size of call_length.
8987 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8989 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8990 dereference TYPE_CODE_REF values.
8992 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8994 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8995 end of warning message.
8997 2014-04-03 Doug Evans <dje@google.com>
8999 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9000 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9002 2014-04-02 Alan Modra <amodra@gmail.com>
9004 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9005 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9006 (struct symbol_file_add_from_memory_args): Add size field.
9007 (find_vdso_size): New function.
9008 (add_vsyscall_page): Attempt to find vdso size.
9010 2014-04-01 Doug Evans <dje@google.com>
9012 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9014 2014-04-01 Tristan Gingold <gingold@adacore.com>
9016 * darwin-nat.c (darwin_encode_reply): Add prototype.
9017 (darwin_decode_exception_message): Reply to unknown inferiors.
9018 (darwin_decode_message): Handle message by id. Ignore message
9019 to unknown inferior.
9020 (darwin_wait): Discard unknown messages, add debug trace.
9022 2014-03-31 Doug Evans <dje@google.com>
9024 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9027 2014-03-31 Doug Evans <dje@google.com>
9029 New option "set print symbol-loading".
9031 * solib.c (solib_read_symbols): Only print symbol loading messages
9033 (solib_add): If symbol loading is in "brief" mode, notify user
9034 symbols are being loaded.
9035 (reload_shared_libraries_1): Ditto.
9036 * symfile.c (print_symbol_loading_off): New static global.
9037 (print_symbol_loading_brief): New static global.
9038 (print_symbol_loading_full): New static global.
9039 (print_symbol_loading_enums): New static global.
9040 (print_symbol_loading): New static global.
9041 (print_symbol_loading_p): New function.
9042 (symbol_file_add_with_addrs): Only print symbol loading messages
9044 (_initialize_symfile): Register "print symbol-loading" set/show
9046 * symfile.h (print_symbol_loading_p): Declare.
9048 2014-03-30 Doug Evans <xdje42@gmail.com>
9050 * infrun.c (set_last_target_status): New function.
9051 (handle_inferior_event): Call it.
9053 2014-03-30 Doug Evans <xdje42@gmail.com>
9055 * inferior.h (enum stop_kind): Improve comment.
9057 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9059 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9060 a reference, strip the reference layer before calling
9061 the lang_ops value_has_mutated callback.
9063 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9065 Remove some globals from our parser.
9066 * language.c (unk_lang_parser): Add "struct parser_state"
9068 * language.h (struct language_defn) <la_parser>: Likewise.
9069 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9070 (initialize_expout): Add "struct parser_state" argument.
9071 Rewrite function to use the parser state.
9072 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9073 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9074 write_exp_elt_longcst, write_exp_elt_dblcst,
9075 write_exp_elt_decfloatcst, write_exp_elt_type,
9076 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9077 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9078 write_dollar_variable): Likewise.
9079 (parse_exp_in_context_1): Use parser state.
9080 (insert_type_address_space): Add "struct parser_state" argument.
9082 (increase_expout_size): New function.
9083 * parser-defs.h: Forward declare "struct language_defn" and
9084 "struct parser_state".
9085 (expout, expout_size, expout_ptr): Remove extern declarations.
9086 (parse_gdbarch, parse_language): Rewrite macro declarations to
9087 accept the parser state.
9088 (struct parser_state): New struct.
9089 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9090 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9091 write_exp_elt_decfloatcst, write_exp_elt_type,
9092 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9093 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9094 write_exp_msymbol, write_dollar_variable,
9095 mark_struct_expression, insert_type_address_space): Add "struct
9096 parser_state" argument.
9097 (increase_expout_size): New function.
9098 * utils.c (do_clear_parser_state): New function.
9099 (make_cleanup_clear_parser_state): Likewise.
9100 * utils.h (make_cleanup_clear_parser_state): New function
9102 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9103 Update calls to write_exp* in order to pass the parser state.
9104 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9105 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9106 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9107 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9108 * stap-probe.c (stap_parse_register_operand): Likewise.
9109 (stap_parse_single_operand): Likewise.
9110 (stap_parse_argument_1): Likewise.
9111 (stap_parse_argument): Use parser state.
9112 * stap-probe.h: Include "parser-defs.h".
9113 (struct stap_parse_info) <pstate>: New field.
9114 * c-exp.y (parse_type): Rewrite to use parser state.
9115 (yyparse): Redefine to c_parse_internal.
9116 (pstate): New global variable.
9117 (parse_number): Add "struct parser_state" argument.
9118 (write_destructor_name): Likewise.
9119 (type_exp): Update calls to write_exp* and similars in order to
9121 (exp1, exp, variable, qualified_name, space_identifier,
9122 typename, typebase): Likewise.
9123 (write_destructor_name, parse_number, lex_one_token,
9124 classify_name, classify_inner_name, c_parse): Add "struct
9125 parser_state" argument. Update function to use parser state.
9126 * c-lang.h: Forward declare "struct parser_state".
9127 (c_parse): Add "struct parser_state" argument.
9128 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9129 (yyparse): Redefine macro to ada_parse_internal.
9130 (pstate): New variable.
9131 (write_int, write_object_renaming, write_var_or_type,
9132 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9133 type_int, type_long, type_long_long, type_float, type_double,
9134 type_long_double, type_char, type_boolean, type_system_address):
9135 Add "struct parser_state" argument.
9136 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9137 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9138 var_or_type, aggregate, aggregate_component_list,
9139 positional_list, others, component_group,
9140 component_associations): Update calls to write_exp* and similar
9141 functions in order to use parser state.
9142 (ada_parse, write_var_from_sym, write_int,
9143 write_exp_op_with_string, write_object_renaming,
9144 find_primitive_type, write_selectors, write_ambiguous_var,
9145 write_var_or_type, write_name_assoc, type_int, type_long,
9146 type_long_long, type_float, type_double, type_long_double,
9147 type_char, type_boolean, type_system_address): Add "struct
9148 parser_state" argument. Adjust function to use parser state.
9149 * ada-lang.c (parse): Likewise.
9150 * ada-lang.h: Forward declare "struct parser_state".
9151 (ada_parse): Add "struct parser_state" argument.
9152 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9153 calls to both functions.
9154 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9156 (yyparse): Redefine macro to f_parse_internal.
9157 (pstate): New variable.
9158 (parse_number): Add "struct parser_state" argument.
9159 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9160 and similars in order to use parser state.
9161 (parse_number): Adjust code to use parser state.
9163 (f_parse): New function.
9164 * f-lang.h: Forward declare "struct parser_state".
9165 (f_parse): Add "struct parser_state" argument.
9166 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9168 (yyparse): Redefine macro for java_parse_internal.
9169 (pstate): New variable.
9170 (push_expression_name, push_expression_name, insert_exp): Add
9171 "struct parser_state" argument.
9172 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9173 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9174 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9175 PostIncrementExpression, PostDecrementExpression,
9176 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9177 UnaryExpressionNotPlusMinus, CastExpression,
9178 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9179 RelationalExpression, EqualityExpression, AndExpression,
9180 ExclusiveOrExpression, InclusiveOrExpression,
9181 ConditionalAndExpression, ConditionalOrExpression,
9182 ConditionalExpression, Assignment, LeftHandSide): Update
9183 calls to write_exp* and similars in order to use parser state.
9184 (parse_number): Ajust code to use parser state.
9186 (java_parse): New function.
9187 (push_variable): Add "struct parser_state" argument. Adjust
9188 code to user parser state.
9189 (push_fieldnames, push_qualified_expression_name,
9190 push_expression_name, insert_exp): Likewise.
9191 * jv-lang.h: Forward declare "struct parser_state".
9192 (java_parse): Add "struct parser_state" argument.
9193 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9195 (yyparse): Redefine macro to m2_parse_internal.
9196 (pstate): New variable.
9197 (type_exp, exp, fblock, variable, type): Update calls to
9198 write_exp* and similars to use parser state.
9200 (m2_parse): New function.
9201 * m2-lang.h: Forward declare "struct parser_state".
9202 (m2_parse): Add "struct parser_state" argument.
9203 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9204 * objc-lang.h: Forward declare "struct parser_state".
9205 (end_msglist): Add "struct parser_state" argument.
9206 * p-exp.y (parse_type): Rewrite macro to use parser state.
9207 (yyparse): Redefine macro to pascal_parse_internal.
9208 (pstate): New variable.
9209 (parse_number): Add "struct parser_state" argument.
9210 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9211 write_exp* and similars in order to use parser state.
9212 (parse_number, yylex): Adjust code to use parser state.
9213 (pascal_parse): New function.
9214 * p-lang.h: Forward declare "struct parser_state".
9215 (pascal_parse): Add "struct parser_state" argument.
9216 * go-exp.y (parse_type): Rewrite macro to use parser state.
9217 (yyparse): Redefine macro to go_parse_internal.
9218 (pstate): New variable.
9219 (parse_number): Add "struct parser_state" argument.
9220 (type_exp, exp1, exp, variable, type): Update calls to
9221 write_exp* and similars in order to use parser state.
9222 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9223 to use parser state.
9224 (go_parse): Likewise.
9225 * go-lang.h: Forward declare "struct parser_state".
9226 (go_parse): Add "struct parser_state" argument.
9228 2014-03-27 Doug Evans <dje@google.com>
9230 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9232 2014-03-27 Doug Evans <dje@google.com>
9234 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9235 Remove argument abbrev_section. All callers updated.
9237 2014-03-27 Doug Evans <dje@google.com>
9239 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9240 addr_base, ranges_base.
9242 2014-03-26 Keith Seitz <keiths@redhat.com>
9244 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9245 types, not VAR_DOMAIN.
9247 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9249 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9251 * features/nios2-linux.c: Regenerated.
9252 * features/nios2.c: Regenerated.
9254 2014-03-25 Pedro Alves <palves@redhat.com>
9256 * cli/cli-script.c (script_from_file): Force the interpreter to
9259 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9261 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9262 small stack allocation.
9264 2014-03-24 Tristan Gingold <gingold@adacore.com>
9266 * darwin-nat.c (exc_server): Remove unused prototype.
9267 (darwin_dump_message): Correctly display data on x86_64.
9268 (darwin_encode_reply): Fix style.
9269 Add comments and fix indentation.
9271 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9273 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9275 2014-03-22 Doug Evans <xdje42@gmail.com>
9277 * infcmd.c: Whitespace fixes.
9278 (interrupt_command): Merge two function comments into one.
9280 2014-03-22 Doug Evans <xdje42@gmail.com>
9282 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9285 2014-03-22 Yao Qi <yao@codesourcery.com>
9287 * remote.c (target_read_live_memory): Remove.
9288 (memory_xfer_live_readonly_partial): Rename it to
9289 remote_xfer_live_readonly_partial. Remove argument 'object'.
9290 All callers updated. Call remote_read_bytes_1
9291 instead of target_read_live_memory.
9292 * tracepoint.c (set_traceframe_number): Remove.
9293 (make_cleanup_restore_traceframe_number): Likewise .
9294 * tracepoint.h (set_traceframe_number): Remove declaration.
9295 (make_cleanup_restore_traceframe_number): Likewise.
9297 2014-03-22 Yao Qi <yao@codesourcery.com>
9299 * remote.c (remote_read_bytes): Move code on reading from the
9301 (remote_read_bytes_1): ... here. New function.
9303 2014-03-22 Yao Qi <yao@codesourcery.com>
9305 * ctf.c (ctf_xfer_partial): Check the return value of
9306 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9307 return TARGET_XFER_UNAVAILABLE.
9308 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9309 * target.c (target_read_live_memory): Move it to remote.c.
9310 (memory_xfer_live_readonly_partial): Likewise.
9311 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9312 * remote.c (target_read_live_memory): Moved from target.c.
9313 (memory_xfer_live_readonly_partial): Likewise.
9314 (remote_read_bytes): Factored out from
9315 memory_xfer_partial_1.
9317 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9319 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9322 2014-03-21 Pedro Alves <palves@redhat.com>
9324 * infrun.c (normal_stop): Extend comment.
9326 2014-03-21 Hui Zhu <hui@codesourcery.com>
9327 Pedro Alves <palves@redhat.com>
9329 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9331 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9332 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9333 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9335 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9337 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9338 `z' formatted output modifier.
9340 2014-03-20 Tom Tromey <tromey@redhat.com>
9341 Sergio Durigan Junior <sergiodj@redhat.com>
9343 * probe.c (parse_probes): Turn assert into an ordinary error.
9344 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9345 exceptions when parsing probes. Rearrange the code for clarity.
9347 2014-03-20 Tom Tromey <tromey@redhat.com>
9350 * top.c (execute_command): Only dispatch events if the command
9353 2014-03-20 Tom Tromey <tromey@redhat.com>
9356 * infcall.c: Include event-top.h.
9357 (run_inferior_call): Call async_disable_stdin if needed.
9359 2014-03-20 Pedro Alves <palves@redhat.com>
9361 * infrun.c (prepare_to_proceed): Delete.
9362 (thread_still_needs_step_over): New function.
9363 (find_thread_needs_step_over): New function.
9364 (proceed): If the current thread needs a step-over, set its
9365 steping_over_breakpoint flag. Adjust to use
9366 find_thread_needs_step_over instead of prepare_to_proceed.
9367 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9368 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9370 (switch_back_to_stepped_thread): Step over breakpoints of all
9371 threads not the stepping thread, before switching back to the
9374 2014-03-20 Pedro Alves <palves@redhat.com>
9376 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9378 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9379 * infrun.c (saved_singlestep_ptid)
9380 (stepping_past_singlestep_breakpoint): Delete.
9381 (resume): Remove stepping_past_singlestep_breakpoint handling.
9382 (proceed): Store the prev_pc of the stepping thread too.
9383 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9385 (enum infwait_states): Delete infwait_thread_hop_state.
9386 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9388 (handle_inferior_event): Adjust.
9389 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9390 handling and the thread-hop code. Before removing single-step
9391 breakpoints, check whether the thread hit a single-step breakpoint
9392 of another thread. If it did, the trap is not a random signal.
9393 (switch_back_to_stepped_thread): If the event thread hit a
9394 single-step breakpoint, unblock it before switching to the
9395 stepping thread. Handle the case of the stepped thread having
9397 (keep_going): Handle the case of the current thread moving past a
9398 single-step breakpoint.
9400 2014-03-20 Pedro Alves <palves@redhat.com>
9403 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9404 are being stepped over.
9405 (breakpoint_address_match): Make extern.
9406 * breakpoint.h (breakpoint_address_match): New declaration.
9407 * inferior.h (stepping_past_instruction_at): New declaration.
9408 * infrun.c (struct step_over_info): New type.
9409 (step_over_info): New global.
9410 (set_step_over_info, clear_step_over_info)
9411 (stepping_past_instruction_at): New functions.
9412 (handle_inferior_event): Clear the step-over info when
9413 trap_expected is cleared.
9414 (resume): Remove now stale comment.
9415 (clear_proceed_status): Clear step-over info.
9416 (proceed): Adjust step-over handling to set or clear the step-over
9417 info instead of removing all breakpoints.
9418 (handle_signal_stop): When setting up a thread-hop, don't remove
9420 (stop_stepping): Clear step-over info.
9421 (keep_going): Adjust step-over handling to set or clear step-over
9422 info and then always inserting breakpoints, instead of removing
9423 all breakpoints when stepping over one.
9425 2014-03-20 Pedro Alves <palves@redhat.com>
9427 * infrun.c (previous_inferior_ptid): Adjust comment.
9428 (deferred_step_ptid): Delete.
9429 (infrun_thread_ptid_changed, prepare_to_proceed)
9430 (init_wait_for_inferior): Adjust.
9431 (handle_signal_stop): Delete deferred_step_ptid handling.
9433 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9436 * defs.h (sync_quit_force_run): New declaration.
9437 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9438 * event-top.c (async_sigterm_handler): New declaration.
9439 (async_sigterm_token): New variable.
9440 (async_init_signals): Create also async_sigterm_token.
9441 (async_sigterm_handler): New function.
9442 (sync_quit_force_run): New variable.
9443 (handle_sigterm): Replace quit_force call by other calls.
9444 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9446 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9448 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9449 offset into SPE pseudo registers.
9451 2014-03-18 Pedro Alves <palves@redhat.com>
9454 * inferior.h (print_stop_event): Declare.
9455 * infrun.c (print_stop_event): New, factored out from ...
9456 (normal_stop): ... this.
9457 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9458 of bpstat_print/print_stack_frame.
9460 2014-03-17 Tom Tromey <tromey@redhat.com>
9462 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9464 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9466 * ada-lang.c (decode_constrained_packed_array): Perform a
9467 minimal coercion for reference with coerce_ref instead of
9470 2014-03-17 Tristan Gingold <gingold@adacore.com>
9472 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9473 (darwin_solib_create_inferior_hook): Emit a warning if version
9476 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9478 * python/py-value.c (get_field_flag): Cast flag_name argument to
9479 PyObject_GetAttrString to support Python 2.4.
9481 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9483 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9484 (Global Maintainers): Remove Jan Kratochvil.
9486 2014-03-14 Pedro Alves <palves@redhat.com>
9488 * inferior.h (terminal_ours_for_output): Rename to ...
9489 (child_terminal_ours_for_output): ... this.
9490 (terminal_save_ours): Rename to ...
9491 (child_terminal_save_ours): ... this.
9492 (terminal_ours): Rename to ...
9493 (child_terminal_ours): ... this.
9494 (terminal_inferior): Rename to ...
9495 (child_terminal_inferior): ... this.
9496 (terminal_init_inferior): Rename to ...
9497 (child_terminal_init_inferior): ... this.
9498 (terminal_init_inferior_with_pgrp): Rename to ...
9499 (child_terminal_init_inferior_with_pgrp): ... this.
9500 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9501 (child_terminal_init_with_pgrp): ... this.
9502 (terminal_save_ours): Rename to ...
9503 (child_terminal_save_ours): ... this.
9504 (terminal_init_inferior): Rename to ...
9505 (child_terminal_init): ... this. Adjust.
9506 (terminal_inferior): Rename to ...
9507 (child_terminal_inferior): ... this.
9508 (terminal_ours_for_output): Rename to ...
9509 (child_terminal_ours_for_output): ... this. Adjust.
9510 (terminal_ours): Rename to ...
9511 (child_terminal_ours): ... this.
9512 (terminal_ours_1): Rename to ...
9513 (child_terminal_ours_1): ... this. Adjust.
9514 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9515 * windows-nat.c (do_initial_windows_stuff): Adjust.
9516 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9517 (gnu_terminal_init): ... this. Adjust.
9518 (gnu_target): Adjust.
9519 * inf-child.c (inf_child_target): Adjust.
9521 2014-03-13 Doug Evans <xdje42@gmail.com>
9524 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9527 2014-03-13 Doug Evans <xdje42@gmail.com>
9529 * value.c (record_latest_value): Call release_value_or_incref
9530 instead of release_value.
9532 2014-03-13 Pedro Alves <palves@redhat.com>
9534 * procfs.c (procfs_target): Don't override to_shortname,
9535 to_longname or to_doc.
9537 2014-03-13 Pedro Alves <palves@redhat.com>
9539 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9540 Unix in user visible strings.
9542 2014-03-12 Stan Shebs <stan@codesourcery.com>
9544 * gdbtypes.h: Annotate comments for Doxygen, add a page
9545 block comment with some general info.
9547 2014-03-12 Pedro Alves <palves@redhat.com>
9549 * infcmd.c (prepare_execution_command): New function, factored out
9550 from several execution commands.
9551 (run_command_1, continue_command, step_1, jump_command)
9552 (signal_command, until_command, advance_command, finish_command)
9553 (attach_command): Use prepare_execution_command.
9555 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9557 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9560 (struct arm_linux_thread_points): Removed.
9561 (struct arm_linux_process_info): New.
9562 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9563 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9564 (arm_linux_find_breakpoints_by_tid): Removed.
9565 (struct arch_lwp_info): New.
9566 (arm_linux_find_process_pid): New functions.
9567 (arm_linux_add_process): New functions.
9568 (arm_linux_process_info_get): New functions.
9569 (arm_linux_forget_process): New function.
9570 (arm_linux_get_debug_reg_state): New function.
9571 (struct update_registers_data): New.
9572 (update_registers_callback): New function.
9573 (arm_linux_insert_hw_breakpoint1): Updated.
9574 (arm_linux_remove_hw_breakpoint1): Updated.
9575 (arm_linux_insert_hw_breakpoint): Updated.
9576 (arm_linux_remove_hw_breakpoint): Updated.
9577 (arm_linux_insert_watchpoint): Updated.
9578 (arm_linux_remove_watchpoint): Updated.
9579 (arm_linux_new_thread): Updated.
9580 (arm_linux_prepare_to_resume): New function.
9581 (arm_linux_new_fork): New function.
9582 (_initialize_arm_linux_nat): Updated.
9584 2014-03-12 Pedro Alves <palves@redhat.com>
9586 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9588 2014-03-12 Tom Tromey <tromey@redhat.com>
9590 * inf-child.c (return_zero): New function.
9591 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9592 * aix-thread.c (aix_thread_inferior_created): New function.
9593 (aix_thread_attach): Remove.
9594 (init_aix_thread_ops): Don't set to_attach.
9595 (_initialize_aix_thread): Register inferior_created observer.
9596 * corelow.c (init_core_ops): Don't set to_attach or
9598 * exec.c (init_exec_ops): Don't set to_attach or
9600 * infcmd.c (run_command_1): Use find_run_target. Make direct
9602 (attach_command): Use find_attach_target. Make direct target
9604 * record-btrace.c (init_record_btrace_ops): Don't set
9606 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9608 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9609 set to_create_inferior.
9610 * target.c (complete_target_initialization): Add assertion.
9611 (target_create_inferior): Remove.
9612 (find_default_attach, find_default_create_inferior): Remove.
9613 (find_attach_target, find_run_target): New functions.
9614 (find_default_is_async_p, find_default_can_async_p)
9615 (target_supports_non_stop, target_attach): Remove.
9616 (init_dummy_target): Don't set to_create_inferior or
9617 to_supports_non_stop.
9618 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9619 TARGET_DEFAULT_FUNC.
9620 <to_create_inferior>: Add comment.
9621 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9622 TARGET_DEFAULT_RETURN.
9623 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9624 (find_attach_target, find_run_target): Declare.
9625 (target_create_inferior): Remove.
9626 (target_has_execution_1): Update comment.
9627 (target_supports_non_stop): Remove.
9628 * target-delegates.c: Rebuild.
9630 2014-03-12 Pedro Alves <palves@redhat.com>
9632 * inf-child.h: Update comment to not mention Unix.
9634 2014-03-12 Pedro Alves <palves@redhat.com>
9636 * inf-child.c: Update top comment to not mention Unix. Add
9637 generic comment describing how this target is meant to be used.
9638 (inf_child_post_attach, inf_child_post_startup_inferior)
9639 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9642 2014-03-12 Pedro Alves <palves@redhat.com>
9644 * nto-procfs.c: Include inf-child.h.
9645 (procfs_ops): Delete global.
9646 (procfs_can_run): Delete method.
9647 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9648 target pointer instead of referencing procfs_ops.
9649 (procfs_prepare_to_store): Delete.
9650 (init_procfs_ops): Delete function.
9651 (procfs_target): New function, based on init_procfs_ops, but
9652 inherit inf_child_target.
9653 (_initialize_procfs): Use procfs_target.
9655 2014-03-12 Pedro Alves <palves@redhat.com>
9657 * windows-nat.c: Include inf-child.h.
9658 (windows_ops): Delete global.
9659 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9661 (init_windows_ops): Delete function.
9662 (windows_target): New function, based on init_windows_ops, but
9663 inherit inf_child_target.
9664 (_initialize_windows_nat): Use windows_target. Install x86
9665 specific target methods here.
9667 2014-03-10 Doug Evans <xdje42@gmail.com>
9669 * guile/guile.c (call_initialize_gdb_module): New function.
9670 (initialize_guile): Replace call to scm_init_guile with call to
9673 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9675 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9676 in call to TYPE_CODE macro.
9678 2014-03-10 Jerome Guitton <guitton@adacore.com>
9680 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9681 Resolve tagged types to full view.
9683 2014-03-10 Hui Zhu <hui@codesourcery.com>
9685 * target.h (target_insert_breakpoint): Remove "hardware" from its
9688 2014-03-07 Doug Evans <dje@google.com>
9690 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9692 2014-03-07 Doug Evans <dje@google.com>
9694 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9695 Remove unused local comp_dir_attr. Assert exactly one of
9696 stub_comp_unit_die, stub_comp_dir is non-NULL.
9698 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9700 * target.h (complete_target_initialization, add_target):
9703 2014-03-07 Pedro Alves <palves@redhat.com>
9705 * go32-nat.c: Include inf-child.h.
9706 (go32_ops): Delete global.
9707 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9709 (go32_create_inferior): Push the passed in target pointer instead
9710 of referencing go32_ops.
9711 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9712 (go32_target): New function, based on init_go32_ops, but inherit
9714 (_initialize_go32_nat): Use go32_target. Move parts of
9717 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9719 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9720 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9721 SYMBOL_VALUE_ADDRESS.
9722 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9724 2014-03-06 Yao Qi <yao@codesourcery.com>
9726 * breakpoint.c (get_tracepoint_by_number): Remove argument
9727 optional_p. All callers updated. Adjust comments. Update
9729 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9731 2014-03-06 Yao Qi <yao@codesourcery.com>
9733 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9734 early if get_number returns zero. Use 'p' instead of 'args'.
9736 2014-03-06 Yao Qi <yao@codesourcery.com>
9738 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9741 2014-03-06 Yao Qi <yao@codesourcery.com>
9743 PR breakpoints/16508
9744 * tracepoint.c (check_trace_running): New function.
9745 (trace_find_command): Move code to check_trace_running and
9746 call check_trace_running.
9747 (trace_find_pc_command): Likewise.
9748 (trace_find_tracepoint_command): Likewise.
9749 (trace_find_line_command): Likewise.
9750 (trace_find_range_command): Likewise.
9751 * tracepoint.h (check_trace_running): Likewise.
9752 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9754 2014-03-06 Yao Qi <yao@codesourcery.com>
9756 * target.h (struct target_ops) <to_traceframe_info>: Use
9757 TARGET_DEFAULT_NORETURN (tcomplain ()).
9758 * target-delegates.c: Regenerated.
9760 2014-03-05 Pedro Alves <palves@redhat.com>
9763 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9764 void. Update comment.
9765 (dcache_xfer_memory): Delete.
9766 (dcache_read_memory_partial): New, based on the read bits of
9768 (dcache_update): Add status parameter. Use ULONGEST for len, and
9769 adjust. Discard cache lines if the reason for the update was
9771 * dcache.h (dcache_xfer_memory): Delete declaration.
9772 (dcache_read_memory_partial): New declaration.
9773 (dcache_update): Update prototype.
9774 * target.c (raw_memory_xfer_partial): Update the dcache here.
9775 (memory_xfer_partial_1): Don't handle dcache writes here.
9777 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9779 * remote-sim.c (gdbsim_load): Add const to prog.
9781 2014-03-03 Tom Tromey <tromey@redhat.com>
9783 * elfread.c (probe_key): Change to bfd_data.
9784 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9785 now per-BFD, not per-objfile.
9786 * stap-probe.c (stap_probe_destroy): Update comment.
9787 (handle_stap_probe): Allocate on the per-BFD obstack.
9789 2014-03-03 Tom Tromey <tromey@redhat.com>
9791 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9792 * breakpoint.c (create_longjmp_master_breakpoint): Use
9794 (add_location_to_breakpoint, bkpt_probe_insert_location)
9795 (bkpt_probe_remove_location): Update.
9796 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9797 * elfread.c (elf_symfile_relocate_probe): Remove.
9798 (elf_probe_fns): Update.
9799 (insert_exception_resume_breakpoint): Change type of "probe"
9800 parameter to bound_probe.
9801 (check_exception_resume): Update.
9802 * objfiles.c (objfile_relocate1): Don't relocate probes.
9803 * probe.c (bound_probe_s): New typedef.
9804 (parse_probes): Use get_probe_address. Set sal's objfile.
9805 (find_probe_by_pc): Return a bound_probe.
9806 (collect_probes): Return a VEC(bound_probe_s).
9807 (compare_probes): Update.
9808 (gen_ui_out_table_header_info): Change type of "probes"
9810 (info_probes_for_ops): Update.
9811 (get_probe_address): New function.
9812 (probe_safe_evaluate_at_pc): Update.
9813 * probe.h (struct probe_ops) <get_probe_address>: New field.
9814 <set_semaphore, clear_semaphore>: Add objfile parameter.
9815 (struct probe) <objfile>: Remove field.
9817 <address>: Update comment.
9818 (struct bound_probe): New.
9819 (find_probe_by_pc): Return a bound_probe.
9820 (get_probe_address): Declare.
9821 * solib-svr4.c (struct probe_and_action) <address>: New field.
9822 (hash_probe_and_action, equal_probe_and_action): Update.
9823 (register_solib_event_probe): Add address parameter.
9824 (solib_event_probe_at): Update.
9825 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9827 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9828 (stap_get_probe_address): New function.
9829 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9830 (compile_probe_arg): Update.
9831 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9833 (handle_stap_probe): Don't relocate the probe.
9834 (stap_relocate): Remove.
9835 (stap_gen_info_probes_table_values): Update.
9836 (stap_probe_ops): Remove stap_relocate.
9837 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9838 (debug_sym_probe_fns): Update.
9839 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9840 * symtab.c (init_sal): Use memset.
9841 * symtab.h (struct symtab_and_line) <objfile>: New field.
9842 * tracepoint.c (start_tracing, stop_tracing): Update.
9844 2014-03-03 Tom Tromey <tromey@redhat.com>
9846 * probe.h (parse_probes, find_probe_by_pc)
9847 (find_probes_in_objfile): Fix comments.
9849 2014-03-02 Doug Evans <xdje42@gmail.com>
9851 * infrun.c (handle_signal_stop): Replace test for
9852 TARGET_WAITKIND_STOPPED with an assert.
9854 2014-03-02 Doug Evans <xdje42@gmail.com>
9856 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9858 2014-03-02 Doug Evans <xdje42@gmail.com>
9860 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9862 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9864 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9866 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9868 * i386obsd-nat.c: Include "obsd-nat.h".
9869 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9871 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9873 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9875 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9877 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9879 * mips64obsd-nat.c: Include "obsd-nath".
9880 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9882 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9884 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9886 * amd64obsd-nat.c: Include "obsd-nat,h.
9887 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9889 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9891 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9893 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9894 (find_overload_match): Update call to find_oload_champ.
9895 (find_oload_champ_namespace_loop): Likewise
9897 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9899 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9901 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9902 * config/sparc/obsd64.mh: New file.
9903 * sparc64obsd-nat.c: New file.
9905 * obsd-nat.h: New file.
9906 * obsd-nat.c: New file.
9907 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9908 (ALLDEPFILES): Add obsd-nat.c.
9910 2014-02-28 Tom Tromey <tromey@redhat.com>
9912 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9913 * cli-out.h (cli_ui_out_impl): Now const.
9914 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9915 * ui-out.c (struct ui_out) <impl>: Now const.
9916 (default_ui_out_impl): Now const.
9917 (ui_out_new): Make 'impl' parameter const.
9918 * ui-out.h (ui_out_new): Update.
9920 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9922 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9924 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9926 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9928 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9930 Additional PR 8882 fix.
9931 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9933 2014-02-27 Pedro Alves <palves@redhat.com>
9935 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9938 2014-02-27 Pedro Alves <palves@redhat.com>
9941 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9942 * nat/linux-waitpid.c: Include string.h.
9943 (status_to_str): Moved here and made extern.
9944 * nat/linux-waitpid.h (status_to_str): New declaration.
9946 2014-02-27 Hui Zhu <hui@codesourcery.com>
9949 * infrun.c (ptid_match): Move ...
9950 * common/ptid.c (ptid_match): ... here.
9951 * inferior.h (ptid_match): Move ...
9952 * common/ptid.h (ptid_match): ... here.
9954 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9956 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9957 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9960 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9962 * obsd-tdep.c (obsd_auxv_parse): New function.
9963 (obsd_init_abi): Set auxv_parse.
9965 * gdbarch.sh (auxv_parse): New.
9966 * gdbarch.h: Regenerated.
9967 * gdbarch.c: Regenerated.
9968 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9970 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9972 * guile/scm-value.c (gdbscm_history_append_x): New function.
9973 (value_functions): Add it.
9975 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9977 * dwarf2read.c (attr_value_as_address): New function.
9978 (dwarf2_find_base_address, read_call_site_scope): Use
9979 attr_value_as_address in place of DW_ADDR.
9980 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9981 the low and high addresses. Slight rework of the handling
9982 of the high pc being a constant form, and limit it to
9983 DWARF verson 4 or higher.
9984 (dwarf2_record_block_ranges): Likewise.
9985 (read_partial_die): Likewise.
9986 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9988 2014-02-26 Tom Tromey <tromey@redhat.com>
9990 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9992 2014-02-26 Tom Tromey <tromey@redhat.com>
9994 * elfread.c (elf_read_minimal_symbols): Return early if
9995 minimal symbols have already been read. Add "ei" parameter.
9996 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9997 * minsyms.c (prim_record_minimal_symbol_full): Update.
9998 * objfiles.h (struct objstats) <n_minsyms>: Move...
9999 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10000 * symmisc.c (print_objfile_statistics): Update.
10002 2014-02-26 Tom Tromey <tromey@redhat.com>
10004 * elfread.c (elf_read_minimal_symbols): New function, from
10006 (elf_symfile_read): Call it.
10008 2014-02-26 Tom Tromey <tromey@redhat.com>
10010 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10011 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10012 (lookup_minimal_symbol_solib_trampoline)
10013 (lookup_minimal_symbol_by_pc_section_1)
10014 (lookup_minimal_symbol_and_objfile): Update.
10015 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10016 Don't allocate a minimal symbol if minsyms have already been read.
10017 (build_minimal_symbol_hash_tables): Update.
10018 (install_minimal_symbols): Do nothing if minsyms already read.
10019 Use the per-BFD obstack.
10020 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10021 * objfiles.c (allocate_objfile): Call
10022 terminate_minimal_symbol_table later.
10023 (have_minimal_symbols): Update.
10024 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10025 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10026 Move from struct objfile.
10027 <minsyms_read>: New field.
10028 (struct objfile) <msymbols, minimal_symbol_count,
10029 msymbol_hash, msymbol_demangled_hash>: Move.
10030 (ALL_OBJFILE_MSYMBOLS): Update.
10031 * symfile.c (read_symbols): Set minsyms_read.
10032 (reread_symbols): Update.
10033 * symmisc.c (dump_objfile, dump_msymbols): Update.
10035 2014-02-26 Tom Tromey <tromey@redhat.com>
10037 * minsyms.c (msymbols_sort): Remove.
10038 * minsyms.h (msymbols_sort): Remove.
10039 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10040 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10041 * elfread.c (elf_symtab_read): Don't add section offsets.
10042 * xcoffread.c (record_minimal_symbol): Don't add section offset
10043 to minimal symbol address.
10044 * somread.c (text_offset, data_offset): Remove.
10045 (som_symtab_read): Don't add section offsets to minimal symbol
10047 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10048 Don't add section offsets to minimal symbols.
10049 * coffread.c (coff_symtab_read): Don't add section offsets
10050 to minimal symbol addresses.
10051 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10052 to minimal symbol addresses.
10053 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10054 section offset to minimal symbol addresses.
10055 * mdebugread.c (parse_partial_symbols): Don't add section
10056 offset to minimal symbol addresses.
10057 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10058 offset to minimal symbol addresses.
10060 2014-02-26 Tom Tromey <tromey@redhat.com>
10062 * ada-lang.c (ada_main_name): Update.
10063 (ada_add_standard_exceptions): Update.
10064 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10065 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10066 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10067 * auxv.c (ld_so_xfer_auxv): Update.
10068 * avr-tdep.c (avr_scan_prologue): Update.
10069 * ax-gdb.c (gen_var_ref): Update.
10070 * blockframe.c (get_pc_function_start)
10071 (find_pc_partial_function_gnu_ifunc): Update.
10072 * breakpoint.c (create_overlay_event_breakpoint)
10073 (create_longjmp_master_breakpoint)
10074 (create_std_terminate_master_breakpoint)
10075 (create_exception_master_breakpoint): Update.
10076 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10077 * c-valprint.c (c_val_print): Update.
10078 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10079 * common/agent.c (agent_look_up_symbols): Update.
10080 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10081 * dwarf2loc.c (call_site_to_target_addr): Update.
10082 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10083 * elfread.c (elf_gnu_ifunc_record_cache)
10084 (elf_gnu_ifunc_resolve_by_got): Update.
10085 * findvar.c (default_read_var_value): Update.
10086 * frame.c (inside_main_func): Update.
10087 * frv-tdep.c (frv_frame_this_id): Update.
10088 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10089 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10091 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10092 (hppa_hpux_find_dummy_bpaddr): Update.
10093 * hppa-tdep.c (hppa_symbol_address): Update.
10094 * infcmd.c (until_next_command): Update.
10095 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10097 * linespec.c (minsym_found, add_minsym): Update.
10098 * linux-nat.c (get_signo): Update.
10099 * linux-thread-db.c (inferior_has_bug): Update.
10100 * m32c-tdep.c (m32c_return_value)
10101 (m32c_m16c_address_to_pointer): Update.
10102 * m32r-tdep.c (m32r_frame_this_id): Update.
10103 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10104 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10105 * maint.c (maintenance_translate_address): Update.
10106 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10107 (frob_address): New function.
10108 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10109 frob_address. Rename parameter to "pc_in".
10110 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10112 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10114 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10115 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10116 * objc-lang.c (find_objc_msgsend): Update.
10117 * objfiles.c (objfile_relocate1): Update.
10118 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10119 * p-valprint.c (pascal_val_print): Update.
10120 * parse.c (write_exp_msymbol): Update.
10121 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10122 (ppc_elfv2_skip_entrypoint): Update.
10123 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10124 * printcmd.c (build_address_symbolic, msym_info)
10125 (address_info): Update.
10126 * proc-service.c (ps_pglobal_lookup): Update.
10127 * psymtab.c (find_pc_sect_psymtab_closer)
10128 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10129 Change msymbol parameter to bound_minimal_symbol.
10130 * ravenscar-thread.c (get_running_thread_id): Update.
10131 * remote.c (remote_check_symbols): Update.
10132 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10134 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10135 * solib-dsbt.c (lm_base): Update.
10136 * solib-frv.c (lm_base, main_got): Update.
10137 * solib-irix.c (locate_base): Update.
10138 * solib-som.c (som_solib_create_inferior_hook)
10139 (link_map_start): Update.
10140 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10141 * solib-svr4.c (elf_locate_base, enable_break): Update.
10142 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10143 (flush_ea_cache): Update.
10144 * stabsread.c (define_symbol, scan_file_globals): Update.
10145 * stack.c (find_frame_funname): Update.
10146 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10147 (debug_qf_find_pc_sect_symtab): Update.
10148 * symfile.c (simple_read_overlay_table)
10149 (simple_overlay_update): Update.
10150 * symfile.h (struct quick_symbol_functions)
10151 <find_pc_sect_symtab>: Change type of msymbol to
10152 bound_minimal_symbol.
10153 * symmisc.c (dump_msymbols): Update.
10154 * symtab.c (find_pc_sect_symtab_via_partial)
10155 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10156 (search_symbols, print_msymbol_info): Update.
10157 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10158 (MSYMBOL_VALUE_ADDRESS): Redefine.
10159 (BMSYMBOL_VALUE_ADDRESS): New macro.
10160 * tracepoint.c (scope_info): Update.
10161 * tui/tui-disasm.c (tui_find_disassembly_address)
10162 (tui_get_begin_asm_address): Update.
10163 * valops.c (find_function_in_inferior): Update.
10164 * value.c (value_static_field, value_fn_field): Update.
10166 2014-02-26 Tom Tromey <tromey@redhat.com>
10168 * ada-lang.c (ada_update_initial_language): Update.
10169 (ada_main_name, ada_has_this_exception_support): Update.
10170 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10171 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10172 * arm-tdep.c (arm_skip_stub): Update.
10173 * auxv.c (ld_so_xfer_auxv): Update.
10174 * avr-tdep.c (avr_scan_prologue): Update.
10175 * ax-gdb.c (gen_var_ref): Update.
10176 * breakpoint.c (struct breakpoint_objfile_data)
10177 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10178 type to bound_minimal_symbol.
10179 (create_overlay_event_breakpoint)
10180 (create_longjmp_master_breakpoint)
10181 (create_std_terminate_master_breakpoint)
10182 (create_exception_master_breakpoint): Update.
10183 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10184 * c-exp.y (classify_name): Update.
10185 * coffread.c (coff_symfile_read): Update.
10186 * common/agent.c (agent_look_up_symbols): Update.
10187 * d-lang.c (d_main_name): Update.
10188 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10189 * dec-thread.c (enable_dec_thread): Update.
10190 * dwarf2loc.c (call_site_to_target_addr): Update.
10191 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10192 * eval.c (evaluate_subexp_standard): Update.
10193 * findvar.c (struct minsym_lookup_data) <result>: Change type
10194 to bound_minimal_symbol.
10196 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10197 * frame.c (inside_main_func): Update.
10198 * frv-tdep.c (frv_frame_this_id): Update.
10199 * gcore.c (call_target_sbrk): Update.
10200 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10201 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10203 * go-lang.c (go_main_name): Update.
10204 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10205 (hppa_hpux_find_import_stub_for_addr): Update.
10206 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10207 Update. Change return type.
10208 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10210 * jit.c (jit_breakpoint_re_set_internal): Update.
10211 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10213 * linux-nat.c (get_signo): Update.
10214 * linux-thread-db.c (inferior_has_bug): Update
10215 * m32c-tdep.c (m32c_return_value)
10216 (m32c_m16c_address_to_pointer): Update.
10217 * m32r-tdep.c (m32r_frame_this_id): Update.
10218 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10219 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10220 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10221 lookup_minimal_symbol. Change return type.
10222 (lookup_minimal_symbol): Remove.
10223 (lookup_bound_minimal_symbol): Update.
10224 (lookup_minimal_symbol_text): Change return type.
10225 (lookup_minimal_symbol_solib_trampoline): Change return type.
10226 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10227 (lookup_minimal_symbol_solib_trampoline): Change return type.
10228 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10229 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10230 (value_nsstring, find_imps): Update.
10231 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10232 * p-lang.c (pascal_main_name): Update.
10233 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10234 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10235 * proc-service.c (ps_pglobal_lookup): Update.
10236 * ravenscar-thread.c (get_running_thread_msymbol): Change
10238 (has_ravenscar_runtime, get_running_thread_id): Update.
10239 * remote.c (remote_check_symbols): Update.
10240 * sol-thread.c (ps_pglobal_lookup): Update.
10241 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10242 * solib-dsbt.c (lm_base): Update.
10243 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10245 * solib-irix.c (locate_base): Update.
10246 * solib-som.c (som_solib_create_inferior_hook)
10247 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10249 * solib-spu.c (spu_enable_break): Update.
10250 * solib-svr4.c (elf_locate_base, enable_break): Update.
10251 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10252 (flush_ea_cache): Update.
10253 * stabsread.c (define_symbol): Update.
10254 * symfile.c (simple_read_overlay_table): Update.
10255 * symtab.c (find_pc_sect_line): Update.
10256 * tracepoint.c (scope_info): Update.
10257 * tui-disasm.c (tui_get_begin_asm_address): Update.
10258 * value.c (value_static_field): Update.
10260 2014-02-26 Tom Tromey <tromey@redhat.com>
10262 * minsyms.c (prim_record_minimal_symbol_full): Use
10263 SET_MSYMBOL_VALUE_ADDRESS.
10264 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10265 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10266 SET_MSYMBOL_VALUE_ADDRESS.
10267 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10268 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10270 2014-02-26 Tom Tromey <tromey@redhat.com>
10272 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10273 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10274 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10275 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10276 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10277 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10278 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10279 * ada-lang.c (ada_main_name): Update.
10280 (ada_lookup_simple_minsym): Update.
10281 (ada_make_symbol_completion_list): Update.
10282 (ada_add_standard_exceptions): Update.
10283 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10284 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10285 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10286 * arm-tdep.c (skip_prologue_function): Update.
10287 (arm_skip_stack_protector, arm_skip_stub): Update.
10288 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10289 (arm_wince_skip_main_prologue): Update.
10290 * auxv.c (ld_so_xfer_auxv): Update.
10291 * avr-tdep.c (avr_scan_prologue): Update.
10292 * ax-gdb.c (gen_var_ref): Update.
10293 * block.c (call_site_for_pc): Update.
10294 * blockframe.c (get_pc_function_start): Update.
10295 (find_pc_partial_function_gnu_ifunc): Update.
10296 * breakpoint.c (create_overlay_event_breakpoint): Update.
10297 (create_longjmp_master_breakpoint): Update.
10298 (create_std_terminate_master_breakpoint): Update.
10299 (create_exception_master_breakpoint): Update.
10300 (resolve_sal_pc): Update.
10301 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10302 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10304 * c-valprint.c (c_val_print): Update.
10305 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10306 * coffread.c (coff_symfile_read): Update.
10307 * common/agent.c (agent_look_up_symbols): Update.
10308 * dbxread.c (find_stab_function_addr): Update.
10309 (end_psymtab): Update.
10310 * dwarf2loc.c (call_site_to_target_addr): Update.
10311 (func_verify_no_selftailcall): Update.
10312 (tailcall_dump): Update.
10313 (call_site_find_chain_1): Update.
10314 (dwarf_expr_reg_to_entry_parameter): Update.
10315 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10316 (elf_gnu_ifunc_resolve_by_got): Update.
10317 * f-valprint.c (info_common_command): Update.
10318 * findvar.c (read_var_value): Update.
10319 * frame.c (get_prev_frame_1): Update.
10320 (inside_main_func): Update.
10321 * frv-tdep.c (frv_skip_main_prologue): Update.
10322 (frv_frame_this_id): Update.
10323 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10324 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10325 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10326 (gnuv3_skip_trampoline): Update.
10327 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10328 (hppa64_hpux_in_solib_call_trampoline): Update.
10329 (hppa_hpux_skip_trampoline_code): Update.
10330 (hppa64_hpux_search_dummy_call_sequence): Update.
10331 (hppa_hpux_find_import_stub_for_addr): Update.
10332 (hppa_hpux_find_dummy_bpaddr): Update.
10333 * hppa-tdep.c (hppa_symbol_address)
10334 (hppa_lookup_stub_minimal_symbol): Update.
10335 * i386-tdep.c (i386_skip_main_prologue): Update.
10336 (i386_pe_skip_trampoline_code): Update.
10337 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10338 * infcall.c (get_function_name): Update.
10339 * infcmd.c (until_next_command): Update.
10340 * jit.c (jit_breakpoint_re_set_internal): Update.
10341 (jit_inferior_init): Update.
10342 * linespec.c (minsym_found): Update.
10343 (add_minsym): Update.
10344 * linux-fork.c (info_checkpoints_command): Update.
10345 * linux-nat.c (get_signo): Update.
10346 * linux-thread-db.c (inferior_has_bug): Update.
10347 * m32c-tdep.c (m32c_return_value): Update.
10348 (m32c_m16c_address_to_pointer): Update.
10349 (m32c_m16c_pointer_to_address): Update.
10350 * m32r-tdep.c (m32r_frame_this_id): Update.
10351 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10352 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10353 * maint.c (maintenance_translate_address): Update.
10354 * minsyms.c (add_minsym_to_hash_table): Update.
10355 (add_minsym_to_demangled_hash_table): Update.
10356 (msymbol_objfile): Update.
10357 (lookup_minimal_symbol): Update.
10358 (iterate_over_minimal_symbols): Update.
10359 (lookup_minimal_symbol_text): Update.
10360 (lookup_minimal_symbol_by_pc_name): Update.
10361 (lookup_minimal_symbol_solib_trampoline): Update.
10362 (lookup_minimal_symbol_by_pc_section_1): Update.
10363 (lookup_minimal_symbol_and_objfile): Update.
10364 (prim_record_minimal_symbol_full): Update.
10365 (compare_minimal_symbols): Update.
10366 (compact_minimal_symbols): Update.
10367 (build_minimal_symbol_hash_tables): Update.
10368 (install_minimal_symbols): Update.
10369 (terminate_minimal_symbol_table): Update.
10370 (find_solib_trampoline_target): Update.
10371 (minimal_symbol_upper_bound): Update.
10372 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10373 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10374 (mips_skip_pic_trampoline_code): Update.
10375 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10376 * objc-lang.c (selectors_info): Update.
10377 (classes_info): Update.
10378 (find_methods): Update.
10379 (find_imps): Update.
10380 (find_objc_msgsend): Update.
10381 * objfiles.c (objfile_relocate1): Update.
10382 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10383 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10384 * p-valprint.c (pascal_val_print): Update.
10385 * parse.c (write_exp_msymbol): Update.
10386 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10387 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10388 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10389 * printcmd.c (build_address_symbolic): Update.
10390 (sym_info): Update.
10391 (address_info): Update.
10392 * proc-service.c (ps_pglobal_lookup): Update.
10393 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10394 (find_pc_sect_psymtab): Update.
10395 * python/py-framefilter.c (py_print_frame): Update.
10396 * ravenscar-thread.c (get_running_thread_id): Update.
10397 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10399 * remote.c (remote_check_symbols): Update.
10400 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10401 (rs6000_skip_trampoline_code): Update.
10402 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10403 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10404 * solib-dsbt.c (lm_base): Update.
10405 * solib-frv.c (lm_base): Update.
10406 (main_got): Update.
10407 * solib-irix.c (locate_base): Update.
10408 * solib-som.c (som_solib_create_inferior_hook): Update.
10409 (som_solib_desire_dynamic_linker_symbols): Update.
10410 (link_map_start): Update.
10411 * solib-spu.c (spu_enable_break): Update.
10412 (ocl_enable_break): Update.
10413 * solib-svr4.c (elf_locate_base): Update.
10414 (enable_break): Update.
10415 * spu-tdep.c (spu_get_overlay_table): Update.
10416 (spu_catch_start): Update.
10417 (flush_ea_cache): Update.
10418 * stabsread.c (define_symbol): Update.
10419 (scan_file_globals): Update.
10420 * stack.c (find_frame_funname): Update.
10421 (frame_info): Update.
10422 * symfile.c (simple_read_overlay_table): Update.
10423 (simple_overlay_update): Update.
10424 * symmisc.c (dump_msymbols): Update.
10425 * symtab.c (fixup_section): Update.
10426 (find_pc_sect_line): Update.
10427 (skip_prologue_sal): Update.
10428 (search_symbols): Update.
10429 (print_msymbol_info): Update.
10430 (rbreak_command): Update.
10431 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10432 (completion_list_objc_symbol): Update.
10433 (default_make_symbol_completion_list_break_on): Update.
10434 * tracepoint.c (scope_info): Update.
10435 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10436 (tui_get_begin_asm_address): Update.
10437 * valops.c (find_function_in_inferior): Update.
10438 * value.c (value_static_field): Update.
10439 (value_fn_field): Update.
10441 2014-02-26 Tom Tromey <tromey@redhat.com>
10443 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10444 bound minimal symbols. Move code that knows about minsym
10446 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10448 * minsyms.h (minimal_symbol_upper_bound): Declare.
10449 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10450 minimal_symbol_upper_bound.
10452 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10454 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10455 Use the type's name if its basic type does not have a tag.
10457 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10459 * dwarf2read.c (read_subrange_type): Add comment.
10461 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10463 * dwarf2read.c (update_enumeration_type_from_children): New
10464 function, mostly extracted from process_structure_scope.
10465 (read_enumeration_type): Call update_enumeration_type_from_children.
10466 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10467 and flag_flag_enum fields.
10469 2014-02-26 Pedro Alves <palves@redhat.com>
10471 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10472 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10473 to_xfer_partial method.
10475 2014-02-26 Pedro Alves <palves@redhat.com>
10477 * target.c (complete_target_initialization): Don't install
10478 default_xfer_partial as to_xfer_partial hook.
10479 (nomemory): Delete.
10480 (update_current_target): Don't INHERIT nor de_fault
10481 deprecated_xfer_memory. Delete de_fault macro.
10482 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10483 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10484 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10487 2014-02-26 Pedro Alves <palves@redhat.com>
10489 * go32-nat.c (my_write_child): New function.
10490 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10491 (go32_xfer_partial): New function.
10492 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10493 Instead install a to_xfer_partial hook.
10495 2014-02-26 Pedro Alves <palves@redhat.com>
10497 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10498 to_xfer_partial helper. Rewrite.
10499 (procfs_xfer_partial): New function.
10500 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10501 Install a to_xfer_partial hook.
10503 2014-02-26 Pedro Alves <palves@redhat.com>
10505 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10506 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10507 (m32r_xfer_partial): New function.
10508 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10509 Install a to_xfer_partial hook.
10511 2014-02-26 Pedro Alves <palves@redhat.com>
10513 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10515 (mips_xfer_partial): New function.
10516 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10517 hook. Install a to_xfer_partial hook.
10519 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10521 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10522 * gdbtypes.c (create_array_type_with_stride): New function,
10523 renaming create_array_type, but with an added parameter
10524 called "bit_stride".
10525 (create_array_type): Re-implement using
10526 create_array_type_with_stride.
10527 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10528 and DW_AT_bit_stride attributes.
10530 2014-02-26 Pedro Alves <palves@redhat.com>
10532 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10533 task-specific breakpoints.
10535 2014-02-25 Pedro Alves <palves@redhat.com>
10537 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10538 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10540 2014-02-25 Stan Shebs <stan@codesourcery.com>
10542 * defs.h: Annotate comments for Doxygen.
10544 2014-02-25 Tom Tromey <tromey@redhat.com>
10546 * target.h (target_ignore): Don't declare.
10547 * target.c (target_ignore): Remove.
10549 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10552 * auto-load.c (auto_load_objfile_script_1): Change filename to
10555 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10557 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10558 documentation. Adjust prototype to match the target_ops
10559 to_xfer_partial method. Adjust implementation accordingly.
10561 2014-02-25 Hui Zhu <hui@codesourcery.com>
10563 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10564 to_traceframe_info.
10566 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10568 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10569 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10570 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10571 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10572 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10573 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10574 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10575 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10577 (rl78_register_type): Use a data pointer type for SP and
10578 new pseudo registers mentioned above. Use a 16 bit integer
10579 type for all other register pairs.
10580 (rl78_register_name, rl78_g10_register_name): Update for
10581 new pseudo registers.
10582 (rl78_pseudo_register_read): Likewise.
10583 (rl78_pseudo_register_write): Likewise.
10584 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10585 to the newly added pseudo registers.
10587 2014-02-24 Doug Evans <dje@google.com>
10589 * value.c (record_latest_value): Fix comment.
10590 * printcmd.c (print_command_1): Remove code to handle -1 return from
10591 record_latest_value.
10593 2014-02-24 Pedro Alves <palves@redhat.com>
10595 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10596 deprecated_xfer_memory hook.
10597 (procfs_xfer_partial): Call procfs_xfer_memory instead
10598 of the deprecated_xfer_memory target hook.
10599 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10602 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10604 * windows-nat.c (windows_xfer_shared_libraries): Return
10605 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10606 requested object is TARGET_OBJECT_LIBRARIES.
10608 2014-02-24 Yao Qi <yao@codesourcery.com>
10610 * target.h (enum target_xfer_status)
10611 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10612 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10614 * corefile.c (memory_error_message): User updated.
10615 * exec.c (section_table_read_available_memory): Likewise.
10616 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10617 * target.c (target_xfer_status_to_string): Likewise.
10618 (raw_memory_xfer_partial): Likewise.
10619 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10620 * valops.c (read_value_memory): Likewise.
10621 * exec.h: Update comments.
10623 2014-02-24 Yao Qi <yao@codesourcery.com>
10625 * target.c (target_xfer_status_to_string): Rename argument err
10627 * target.h (target_xfer_status_to_string): Update declaration.
10628 Replace target_xfer_error_to_string with
10629 target_xfer_status_to_string in comment.
10631 2014-02-24 Yao Qi <yao@codesourcery.com>
10633 * mips-linux-nat.c (super_close): Update its type.
10634 (mips_linux_close): Pass 'self' to super_close.
10636 2014-02-24 Yao Qi <yao@codesourcery.com>
10638 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10639 * corefile.c (read_memory): Adjusted.
10640 * target.c (target_write_with_progress): Adjusted.
10642 2014-02-23 Yao Qi <yao@codesourcery.com>
10644 Revert two patches:
10646 2013-10-25 Yao Qi <yao@codesourcery.com>
10648 * remote.c (remote_traceframe_info): Return early if
10649 traceframe is not selected.
10651 2013-07-19 Yao Qi <yao@codesourcery.com>
10653 * target.c (update_current_target): Change the default action
10654 of 'to_traceframe_info' from tcomplain to return_zero.
10655 * target.h (struct target_ops) <to_traceframe_info>: Add more
10658 2014-02-23 Yao Qi <yao@codesourcery.com>
10660 * valops.c (read_value_memory): Rewrite it. Call
10661 target_xfer_partial in a loop.
10662 * exec.h (section_table_available_memory): Remove declaration.
10663 Move comments to ...
10664 * exec.c (section_table_available_memory): ... here. Make it
10667 2014-02-23 Yao Qi <yao@codesourcery.com>
10669 * exec.c (section_table_read_available_memory): New function.
10670 * exec.h (section_table_read_available_memory): Declare.
10671 * ctf.c (ctf_xfer_partial): Call
10672 section_table_read_available_memory.
10673 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10675 2014-02-23 Yao Qi <yao@codesourcery.com>
10677 * ctf.c (ctf_xfer_partial): Move code to ...
10678 * exec.c (exec_read_partial_read_only): ... it. New function.
10679 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10680 * tracefile.c: Include "exec.h".
10681 * exec.h (exec_read_partial_read_only): Declare.
10683 2014-02-23 Yao Qi <yao@codesourcery.com>
10685 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10686 (tfile_has_memory): Remove.
10687 (init_tfile_ops): Don't set fields to_has_all_memory and
10688 to_has_memory of tfile_ops.
10689 * tracefile.c (tracefile_has_all_memory): New function.
10690 (tracefile_has_memory): New function.
10691 (init_tracefile_ops): Initialize fields to_has_all_memory and
10692 to_has_memory of 'ops'.
10694 2014-02-23 Yao Qi <yao@codesourcery.com>
10696 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10697 (ctf_thread_alive, ctf_get_trace_status): Remove.
10698 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10699 init_tracefile_ops.
10700 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10701 (tfile_has_stack, tfile_has_registers): Remove.
10702 (tfile_thread_alive): Remove.
10703 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10704 init_tracefile_ops.
10705 * tracefile.c (tracefile_has_stack): New function.
10706 (tracefile_has_registers): New function.
10707 (tracefile_thread_alive): New function.
10708 (tracefile_get_trace_status): New function.
10709 (init_tracefile_ops): New function.
10710 * tracefile.h (init_tracefile_ops): Declare.
10712 2014-02-23 Yao Qi <yao@codesourcery.com>
10714 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10715 (O_LARGEFILE): Likewise.
10716 (tfile_ops): Likewise.
10717 (TRACE_HEADER_SIZE): Likewise.
10718 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10719 (cur_data_size): Likewise.
10720 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10721 (tfile_close, tfile_files_info): Likewise.
10722 (tfile_get_trace_status): Likewise.
10723 (tfile_get_tracepoint_status): Likewise.
10724 (tfile_get_traceframe_address): Likewise.
10725 (tfile_trace_find, match_blocktype): Likewise.
10726 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10727 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10728 (tfile_get_trace_state_variable_value): Likewise.
10729 (tfile_has_all_memory, tfile_has_memory): Likewise.
10730 (tfile_has_stack, tfile_has_registers): Likewise.
10731 (tfile_thread_alive, build_traceframe_info): Likewise.
10732 (tfile_traceframe_info, init_tfile_ops): Likewise.
10733 (_initialize_tracepoint): Don't call init_tfile_ops
10734 and add_target_with_completer.
10735 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10736 exec.h, completer.h and filenames.h.
10737 (_initialize_tracefile_tfile): New function.
10739 2014-02-23 Yao Qi <yao@codesourcery.com>
10741 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10743 (HFILES_NO_SRCDIR): Add tracefile.h.
10744 * ctf.c: Include "tracefile.h".
10745 * tracefile.h: New file.
10746 * tracefile.c: New file
10747 * tracefile-tfile.c: New file.
10748 * tracepoint.c: Include "tracefile.h".
10749 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10750 (stop_reason_names): Add const.
10751 (trace_file_writer_xfree): Move it to tracefile.c.
10752 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10753 (trace_save_ctf): Likewise.
10754 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10755 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10756 (tfile_write_header, tfile_write_regblock_type): Likewise.
10757 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10758 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10759 (tfile_write_raw_data, tfile_end): Likewise.
10760 (tfile_trace_file_writer_new): Likewise.
10761 (free_uploaded_tp): Make it extern.
10762 (free_uploaded_tsv): Make it extern.
10763 (_initialize_tracepoint): Move code to register command 'tsave'
10765 * tracepoint.h (stop_reason_names): Declare.
10766 (struct trace_frame_write_ops): Move it to tracefile.h.
10767 (struct trace_file_write_ops): Likewise.
10768 (struct trace_file_writer): Likewise.
10769 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10771 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10774 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10776 (get_cores_used_by_process): New parameter num_cores, use it.
10777 (linux_xfer_osdata_processes): Pass num_cores to it.
10778 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10781 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10783 * target.c (memory_xfer_partial): Fix length arg in call to
10784 breakpoint_xfer_memory.
10786 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10789 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10790 number comes after the + or - signs. Adjust length of register
10791 name to be extracted.
10793 2014-02-20 Tom Tromey <tromey@redhat.com>
10795 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10796 (ada_varobj_ops): Mark "extern".
10798 2014-02-20 Tom Tromey <tromey@redhat.com>
10800 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10802 2014-02-20 Doug Evans <xdje42@gmail.com>
10804 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10805 All callers updated.
10806 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10807 All callers updated.
10808 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10809 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10811 2014-02-20 lin zuojian <manjian2006@gmail.com>
10812 Joel Brobecker <brobecker@adacore.com>
10813 Doug Evans <xdje42@gmail.com>
10816 * dwarf2read.c (struct die_info): New member in_process.
10817 (reset_die_in_process): New function.
10818 (process_die): Set it at the start, reset when returning.
10819 (inherit_abstract_dies): Only call process_die if origin_child_die
10820 not already being processed.
10822 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10824 * windows-nat.c (handle_unload_dll): Add function documentation.
10825 (do_initial_windows_stuff): Add comment explaining why we wait
10826 until after inferior initialization has finished before
10827 processing all DLLs.
10829 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10831 * windows-nat.c (get_module_name): Delete.
10832 (windows_get_exec_module_filename): New function, mostly
10833 inspired from get_module_name.
10834 (windows_pid_to_exec_file): Replace call to get_module_name
10835 by call to windows_get_exec_module_filename.
10837 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10839 * windows-nat.c (handle_load_dll): Rewrite this function's
10840 introductory comment. Remove code using get_module_name
10841 to get the DLL's name.
10843 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10845 * windows-nat.c (get_windows_debug_event): Ignore
10846 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10847 if windows_initialization_done == 0.
10848 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10849 Adjust implementation to always load all DLLs.
10850 (do_initial_windows_stuff): Replace call to
10851 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10853 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10855 * windows-nat.c (_initialize_windows_nat): Deprecate the
10856 "dll-symbols" command. Turn the "add-shared-symbol-files"
10857 and "assf" aliases into commands, and deprecate them as well.
10858 * NEWS: Add entry explaining that "dll-symbols" and its two
10859 aliases are now deprecated.
10861 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10863 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10864 new-line in debug string. Remove trailing spaces.
10866 2014-02-19 Stan Shebs <stan@codesourcery.com>
10868 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10870 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10872 * NEWS: Add entry for the new feature
10873 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10876 2014-02-19 Stan Shebs <stan@codesourcery.com>
10878 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10880 2014-02-19 Pedro Alves <palves@redhat.com>
10882 * common/ptid.h (struct ptid): Mention that process_stratum
10883 targets should prefer ptid.lwp.
10885 2014-02-19 Pedro Alves <palves@redhat.com>
10887 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10888 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10889 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10890 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10891 store remote thread ids rather than ptid.tid.
10892 (_initialize_remote): Adjust.
10894 2014-02-19 Tom Tromey <tromey@redhat.com>
10896 * target.c (target_get_unwinder): Rewrite.
10897 (target_get_tailcall_unwinder): Rewrite.
10898 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10899 (record_btrace_to_get_tailcall_unwinder): New function.
10900 (init_record_btrace_ops): Update.
10901 * target.h (struct target_ops) <to_get_unwinder,
10902 to_get_tailcall_unwinder>: Now function pointers. Use
10903 TARGET_DEFAULT_RETURN.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10909 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10911 2014-02-19 Tom Tromey <tromey@redhat.com>
10913 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10915 * target-delegates.c: Rebuild.
10916 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10917 TARGET_DEFAULT_FUNC.
10918 * target.c (default_target_decr_pc_after_break): Rename from
10919 forward_target_decr_pc_after_break. Simplify.
10920 (target_decr_pc_after_break): Rely on delegation.
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10924 * target.c (update_current_target): Do not INHERIT to_doc or
10925 to_magic. Do not de_fault to_open or to_close.
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10929 * gcore.h (objfile_find_memory_regions): Declare.
10930 * gcore.c (objfile_find_memory_regions): No longer static. Add
10932 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10933 * exec.c: Include gcore.h.
10934 (exec_set_find_memory_regions): Remove.
10935 (exec_find_memory_regions): Remove.
10936 (exec_do_find_memory_regions): Remove.
10937 (init_exec_ops): Update.
10938 * defs.h (exec_set_find_memory_regions): Remove.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target-delegates.c: Rebuild.
10943 * target.h (struct target_ops) <to_extra_thread_info,
10944 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10945 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10946 not 0, in TARGET_DEFAULT_RETURN.
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10950 * target.c (complete_target_initialization): Remove casts. Use
10951 return_zero_has_execution.
10952 (return_zero): Add "ignore" argument.
10953 (return_zero_has_execution): New function.
10954 (init_dummy_target): Remove casts. Use
10955 return_zero_has_execution.
10957 2014-02-19 Tom Tromey <tromey@redhat.com>
10959 * target.c (update_current_target): Update comments. Do not
10960 INHERIT to_stratum.
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10964 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10966 * corelow.c (core_read_description): Delegate when needed.
10967 * remote.c (remote_read_description): Delegate when needed.
10968 * target-delegates.c: Rebuild.
10969 * target.c (target_read_description): Rewrite.
10970 * target.h (struct target_ops) <to_read_description>: Update
10971 comment. Use TARGET_DEFAULT_RETURN.
10973 2014-02-19 Tom Tromey <tromey@redhat.com>
10975 * target-delegates.c: Rebuild.
10976 * target.c (update_current_target): Don't inherit or default
10978 (find_default_run_target): Check against delegate_can_run.
10979 * target.h (struct target_ops) <to_can_run>: Use
10980 TARGET_DEFAULT_RETURN.
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10984 * target-delegates.c: Rebuild.
10985 * target.c (target_disconnect): Unconditionally delegate.
10986 * target.h (struct target_ops) <to_disconnect>: Use
10987 TARGET_DEFAULT_NORETURN.
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * record.c (record_stop): Unconditionally delegate.
10992 * target-delegates.c: Rebuild.
10993 * target.c (target_stop_recording): Unconditionally delegate.
10994 * target.h (struct target_ops) <to_stop_recording>: Use
10995 TARGET_DEFAULT_IGNORE.
10997 2014-02-19 Tom Tromey <tromey@redhat.com>
10999 * target-delegates.c: Rebuild.
11000 * target.c (target_enable_btrace): Unconditionally delegate.
11001 * target.h (struct target_ops) <to_enable_btrace>: Use
11002 TARGET_DEFAULT_NORETURN.
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11006 * target-delegates.c: Rebuild.
11007 * target.c (target_read_btrace): Unconditionally delegate.
11008 * target.h (struct target_ops) <to_read_btrace>: Use
11009 TARGET_DEFAULT_NORETURN.
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * target-delegates.c: Rebuild.
11014 * target.c (target_teardown_btrace): Unconditionally delegate.
11015 * target.h (struct target_ops) <to_teardown_btrace>: Use
11016 TARGET_DEFAULT_NORETURN.
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target-delegates.c: Rebuild.
11021 * target.c (target_disable_btrace): Unconditionally delegate.
11022 * target.h (struct target_ops) <to_disable_btrace>: Use
11023 TARGET_DEFAULT_NORETURN.
11025 2014-02-19 Tom Tromey <tromey@redhat.com>
11027 * target-delegates.c: Rebuild.
11028 * target.c (default_search_memory): New function.
11029 (simple_search_memory): Update comment.
11030 (target_search_memory): Unconditionally delegate.
11031 * target.h (struct target_ops) <to_search_memory>: Use
11032 TARGET_DEFAULT_FUNC.
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * auxv.c (default_auxv_parse): No longer static.
11037 (target_auxv_parse): Unconditionally delegate.
11038 * auxv.h (default_auxv_parse): Declare.
11039 * target-delegates.c: Rebuild.
11040 * target.c: Include auxv.h.
11041 * target.h (struct target_ops) <to_auxv_parse>: Use
11042 TARGET_DEFAULT_FUNC.
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11046 * target-delegates.c: Rebuild.
11047 * target.c (target_memory_map): Unconditionally delegate.
11048 * target.h (struct target_ops) <to_memory_map>: Use
11049 TARGET_DEFAULT_RETURN.
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target-delegates.c: Rebuild.
11054 * target.c (target_thread_alive): Unconditionally delegate.
11055 * target.h (struct target_ops) <to_thread_alive>: Use
11056 TARGET_DEFAULT_RETURN.
11058 2014-02-19 Tom Tromey <tromey@redhat.com>
11060 * target-delegates.c: Rebuild.
11061 * target.c (target_save_record): Unconditionally delegate.
11062 * target.h (struct target_ops) <to_save_record>: Use
11063 TARGET_DEFAULT_NORETURN.
11065 2014-02-19 Tom Tromey <tromey@redhat.com>
11067 * target-delegates.c: Rebuild.
11068 * target.c (target_delete_record): Unconditionally delegate.
11069 * target.h (struct target_ops) <to_delete_record>: Use
11070 TARGET_DEFAULT_NORETURN.
11072 2014-02-19 Tom Tromey <tromey@redhat.com>
11074 * target-delegates.c: Rebuild.
11075 * target.c (target_record_is_replaying): Unconditionally
11077 * target.h (struct target_ops) <to_record_is_replaying>: Use
11078 TARGET_DEFAULT_RETURN.
11080 2014-02-19 Tom Tromey <tromey@redhat.com>
11082 * target-delegates.c: Rebuild.
11083 * target.c (target_goto_record_begin): Unconditionally delegate.
11084 * target.h (struct target_ops) <to_goto_record_begin>: Use
11085 TARGET_DEFAULT_NORETURN.
11087 2014-02-19 Tom Tromey <tromey@redhat.com>
11089 * target-delegates.c: Rebuild.
11090 * target.c (target_goto_record_end): Unconditionally delegate.
11091 * target.h (struct target_ops) <to_goto_record_end>: Use
11092 TARGET_DEFAULT_NORETURN.
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11096 * target-delegates.c: Rebuild.
11097 * target.c (target_goto_record): Unconditionally delegate.
11098 * target.h (struct target_ops) <to_goto_record>: Use
11099 TARGET_DEFAULT_NORETURN.
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11103 * target-delegates.c: Rebuild.
11104 * target.c (target_insn_history): Unconditionally delegate.
11105 * target.h (struct target_ops) <to_insn_history>: Use
11106 TARGET_DEFAULT_NORETURN.
11108 2014-02-19 Tom Tromey <tromey@redhat.com>
11110 * target-delegates.c: Rebuild.
11111 * target.c (target_insn_history_from): Unconditionally delegate.
11112 * target.h (struct target_ops) <to_insn_history_from>: Use
11113 TARGET_DEFAULT_NORETURN.
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11117 * target-delegates.c: Rebuild.
11118 * target.c (target_insn_history_range): Unconditionally delegate.
11119 * target.h (struct target_ops) <to_insn_history_range>: Use
11120 TARGET_DEFAULT_NORETURN.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11124 * target-delegates.c: Rebuild.
11125 * target.c (target_call_history): Unconditionally delegate.
11126 * target.h (struct target_ops) <to_call_history>: Use
11127 TARGET_DEFAULT_NORETURN.
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11131 * target-delegates.c: Rebuild.
11132 * target.c (target_call_history_from): Unconditionally delegate.
11133 * target.h (struct target_ops) <to_call_history_from>: Use
11134 TARGET_DEFAULT_NORETURN.
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11138 * target-delegates.c: Rebuild.
11139 * target.c (target_call_history_range): Unconditionally delegate.
11140 * target.h (struct target_ops) <to_call_history_range>: Use
11141 TARGET_DEFAULT_NORETURN.
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11145 * target-delegates.c: Rebuild.
11146 * target.c (target_verify_memory): Unconditionally delegate.
11147 * target.h (struct target_ops) <to_verify_memory>: Use
11148 TARGET_DEFAULT_NORETURN.
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11152 * target-delegates.c: Rebuild.
11153 * target.c (target_core_of_thread): Unconditionally delegate.
11154 * target.h (struct target_ops) <to_core_of_thread>: Use
11155 TARGET_DEFAULT_RETURN.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target-delegates.c: Rebuild.
11160 * target.c (target_flash_done): Unconditionally delegate.
11161 * target.h (struct target_ops) <to_flash_done>: Use
11162 TARGET_DEFAULT_NORETURN.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_flash_erase): Unconditionally delegate.
11168 * target.h (struct target_ops) <to_flash_erase>: Use
11169 TARGET_DEFAULT_NORETURN.
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11173 * target-delegates.c: Rebuild.
11174 * target.c (target_get_section_table): Unconditionally delegate.
11175 * target.h (struct target_ops) <to_get_section_table>: Use
11176 TARGET_DEFAULT_RETURN.
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11180 * target-delegates.c: Rebuild.
11181 * target.c (target_pid_to_str): Unconditionally delegate.
11182 (init_dummy_target): Don't initialize to_pid_to_str.
11183 (default_pid_to_str): Rename from dummy_pid_to_str.
11184 * target.h (struct target_ops) <to_pid_to_str>: Use
11185 TARGET_DEFAULT_FUNC.
11187 2014-02-19 Tom Tromey <tromey@redhat.com>
11189 * target-delegates.c: Rebuild.
11190 * target.c (target_find_new_threads): Unconditionally delegate.
11191 * target.h (struct target_ops) <to_find_new_threads>: Use
11192 TARGET_DEFAULT_RETURN.
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11196 * target-delegates.c: Rebuild.
11197 * target.c (target_program_signals): Unconditionally delegate.
11198 * target.h (struct target_ops) <to_program_signals>: Use
11199 TARGET_DEFAULT_IGNORE.
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11203 * target-delegates.c: Rebuild.
11204 * target.c (target_pass_signals): Unconditionally delegate.
11205 * target.h (struct target_ops) <to_pass_signals>: Use
11206 TARGET_DEFAULT_IGNORE.
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target-delegates.c: Rebuild.
11211 * target.c (default_mourn_inferior): New function.
11212 (target_mourn_inferior): Unconditionally delegate.
11213 * target.h (struct target_ops) <to_mourn_inferior>: Use
11214 TARGET_DEFAULT_FUNC.
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11218 * target-delegates.c: Rebuild.
11219 * target.c (default_follow_fork): New function.
11220 (target_follow_fork): Unconditionally delegate.
11221 * target.h (struct target_ops) <to_follow_fork>: Use
11222 TARGET_DEFAULT_FUNC.
11224 2014-02-19 Tom Tromey <tromey@redhat.com>
11226 * target-delegates.c: Rebuild.
11227 * target.c (target_kill): Unconditionally delegate.
11228 * target.h (struct target_ops) <to_kill>: Use
11229 TARGET_DEFAULT_NORETURN.
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11233 * target-delegates.c: Rebuild.
11234 * target.c (target_masked_watch_num_registers): Unconditionally
11236 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11237 Use TARGET_DEFAULT_RETURN.
11239 2014-02-19 Tom Tromey <tromey@redhat.com>
11241 * target-delegates.c: Rebuild.
11242 * target.c (target_remove_mask_watchpoint): Unconditionally
11244 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11245 TARGET_DEFAULT_RETURN.
11247 2014-02-19 Tom Tromey <tromey@redhat.com>
11249 * target-delegates.c: Rebuild.
11250 * target.c (target_insert_mask_watchpoint): Unconditionally
11252 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11253 TARGET_DEFAULT_RETURN.
11255 2014-02-19 Tom Tromey <tromey@redhat.com>
11257 * target-delegates.c: Rebuild.
11258 * target.c (target_ranged_break_num_registers): Unconditionally
11260 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11261 Use TARGET_DEFAULT_RETURN.
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11265 * target-delegates.c: Rebuild.
11266 * target.c (target_fetch_registers): Unconditionally delegate.
11267 * target.h (struct target_ops) <to_fetch_registers>: Use
11268 TARGET_DEFAULT_NORETURN.
11270 2014-02-19 Tom Tromey <tromey@redhat.com>
11272 * target-delegates.c: Rebuild.
11273 * target.c (update_current_target): Don't inherit or default
11275 * target.h (struct target_ops) <to_stop>: Use
11276 TARGET_DEFAULT_IGNORE.
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11280 * target-delegates.c: Rebuild.
11281 * target.c (update_current_target): Don't inherit or default
11282 to_can_run_breakpoint_commands.
11283 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11284 Use TARGET_DEFAULT_RETURN.
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * target-delegates.c: Rebuild.
11289 * target.c (update_current_target): Don't inherit or default
11290 to_supports_evaluation_of_breakpoint_conditions.
11291 * target.h (struct target_ops)
11292 <to_supports_evaluation_of_breakpoint_conditions>: Use
11293 TARGET_DEFAULT_RETURN.
11295 2014-02-19 Tom Tromey <tromey@redhat.com>
11297 * target-delegates.c: Rebuild.
11298 * target.c (update_current_target): Don't inherit or default
11299 to_augmented_libraries_svr4_read.
11300 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11301 Use TARGET_DEFAULT_RETURN.
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11305 * target-delegates.c: Rebuild.
11306 * target.c (update_current_target): Don't inherit or default
11308 * target.h (struct target_ops) <to_can_use_agent>: Use
11309 TARGET_DEFAULT_RETURN.
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11313 * target-delegates.c: Rebuild.
11314 * target.c (update_current_target): Don't inherit or default
11316 * target.h (struct target_ops) <to_use_agent>: Use
11317 TARGET_DEFAULT_NORETURN.
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11321 * target-delegates.c: Rebuild.
11322 * target.c (update_current_target): Don't inherit or default
11323 to_traceframe_info.
11324 (return_null): Remove.
11325 * target.h (struct target_ops) <to_traceframe_info>: Use
11326 TARGET_DEFAULT_RETURN.
11328 2014-02-19 Tom Tromey <tromey@redhat.com>
11330 * target-delegates.c: Rebuild.
11331 * target.c (update_current_target): Don't inherit or default
11332 to_static_tracepoint_markers_by_strid.
11333 * target.h (struct target_ops)
11334 <to_static_tracepoint_markers_by_strid>: Use
11335 TARGET_DEFAULT_NORETURN.
11337 2014-02-19 Tom Tromey <tromey@redhat.com>
11339 * target-delegates.c: Rebuild.
11340 * target.c (update_current_target): Don't inherit or default
11341 to_static_tracepoint_marker_at.
11342 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11343 Use TARGET_DEFAULT_RETURN.
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11347 * target-delegates.c: Rebuild.
11348 * target.c (update_current_target): Don't inherit or default
11349 to_set_permissions.
11350 * target.h (struct target_ops) <to_set_permissions>: Use
11351 TARGET_DEFAULT_IGNORE.
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11355 * target-delegates.c: Rebuild.
11356 * target.c (update_current_target): Don't inherit or default
11357 to_get_tib_address.
11358 * target.h (struct target_ops) <to_get_tib_address>: Use
11359 TARGET_DEFAULT_NORETURN.
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11363 * target-delegates.c: Rebuild.
11364 * target.c (update_current_target): Don't inherit or default
11365 to_set_trace_notes.
11366 * target.h (struct target_ops) <to_set_trace_notes>: Use
11367 TARGET_DEFAULT_RETURN.
11369 2014-02-19 Tom Tromey <tromey@redhat.com>
11371 * target-delegates.c: Rebuild.
11372 * target.c (update_current_target): Don't initialize
11373 to_set_trace_buffer_size.
11374 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11375 TARGET_DEFAULT_IGNORE.
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11379 * target-delegates.c: Rebuild.
11380 * target.c (update_current_target): Don't inherit or default
11381 to_set_circular_trace_buffer.
11382 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11383 TARGET_DEFAULT_IGNORE.
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target-delegates.c: Rebuild.
11388 * target.c (update_current_target): Don't inherit or default
11389 to_set_disconnected_tracing.
11390 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11391 TARGET_DEFAULT_IGNORE.
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11395 * target-delegates.c: Rebuild.
11396 * target.c (update_current_target): Don't inherit or default
11397 to_get_min_fast_tracepoint_insn_len.
11398 (return_minus_one): Remove.
11399 * target.h (struct target_ops)
11400 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11404 * target-delegates.c: Rebuild.
11405 * target.c (update_current_target): Don't inherit or default
11406 to_get_raw_trace_data.
11407 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11408 TARGET_DEFAULT_NORETURN.
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11412 * target-delegates.c: Rebuild.
11413 * target.c (update_current_target): Don't inherit or default
11414 to_upload_trace_state_variables.
11415 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11416 Use TARGET_DEFAULT_RETURN.
11418 2014-02-19 Tom Tromey <tromey@redhat.com>
11420 * target-delegates.c: Rebuild.
11421 * target.c (update_current_target): Don't inherit or default
11422 to_upload_tracepoints.
11423 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11424 TARGET_DEFAULT_RETURN.
11426 2014-02-19 Tom Tromey <tromey@redhat.com>
11428 * target-delegates.c: Rebuild.
11429 * target.c (update_current_target): Don't inherit or default
11430 to_save_trace_data.
11431 * target.h (struct target_ops) <to_save_trace_data>: Use
11432 TARGET_DEFAULT_NORETURN.
11434 2014-02-19 Tom Tromey <tromey@redhat.com>
11436 * target-delegates.c: Rebuild.
11437 * target.c (update_current_target): Don't inherit or default
11438 to_get_trace_state_variable_value.
11439 * target.h (struct target_ops)
11440 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11442 2014-02-19 Tom Tromey <tromey@redhat.com>
11444 * target-delegates.c: Rebuild.
11445 * target.c (update_current_target): Don't inherit or default
11447 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11449 2014-02-19 Tom Tromey <tromey@redhat.com>
11451 * target-delegates.c: Rebuild.
11452 * target.c (update_current_target): Don't inherit or default
11454 * target.h (struct target_ops) <to_trace_stop>: Use
11455 TARGET_DEFAULT_NORETURN.
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11459 * target-delegates.c: Rebuild.
11460 * target.c (update_current_target): Don't inherit or default
11461 to_get_tracepoint_status.
11462 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11463 TARGET_DEFAULT_NORETURN.
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11467 * target-delegates.c: Rebuild.
11468 * target.c (update_current_target): Don't inherit or default
11469 to_get_trace_status.
11470 * target.h (struct target_ops) <to_get_trace_status>: Use
11471 TARGET_DEFAULT_RETURN.
11473 2014-02-19 Tom Tromey <tromey@redhat.com>
11475 * target-delegates.c: Rebuild.
11476 * target.c (update_current_target): Don't inherit or default
11478 * target.h (struct target_ops) <to_trace_start>: Use
11479 TARGET_DEFAULT_NORETURN.
11481 2014-02-19 Tom Tromey <tromey@redhat.com>
11483 * target-delegates.c: Rebuild.
11484 * target.c (update_current_target): Don't inherit or default
11485 to_trace_set_readonly_regions.
11486 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11487 Use TARGET_DEFAULT_NORETURN.
11489 2014-02-19 Tom Tromey <tromey@redhat.com>
11491 * target-delegates.c: Rebuild.
11492 * target.c (update_current_target): Don't inherit or default
11493 to_disable_tracepoint.
11494 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11495 TARGET_DEFAULT_NORETURN.
11497 2014-02-19 Tom Tromey <tromey@redhat.com>
11499 * target-delegates.c: Rebuild.
11500 * target.c (update_current_target): Don't inherit or default
11501 to_enable_tracepoint.
11502 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11503 TARGET_DEFAULT_NORETURN.
11505 2014-02-19 Tom Tromey <tromey@redhat.com>
11507 * target-delegates.c: Rebuild.
11508 * target.c (update_current_target): Don't inherit or default
11509 to_download_trace_state_variable.
11510 * target.h (struct target_ops) <to_download_trace_state_variable>:
11511 Use TARGET_DEFAULT_NORETURN.
11513 2014-02-19 Tom Tromey <tromey@redhat.com>
11515 * target-delegates.c: Rebuild.
11516 * target.c (update_current_target): Don't inherit or default
11517 to_can_download_tracepoint.
11518 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11519 TARGET_DEFAULT_RETURN.
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11523 * target-delegates.c: Rebuild.
11524 * target.c (update_current_target): Don't inherit or default
11525 to_download_tracepoint.
11526 * target.h (struct target_ops) <to_download_tracepoint>: Use
11527 TARGET_DEFAULT_NORETURN.
11529 2014-02-19 Tom Tromey <tromey@redhat.com>
11531 * target-delegates.c: Rebuild.
11532 * target.c (update_current_target): Don't inherit or default
11534 * target.h (struct target_ops) <to_trace_init>: Use
11535 TARGET_DEFAULT_RETURN.
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11539 * target-delegates.c: Rebuild.
11540 * target.c (update_current_target): Don't inherit or default
11541 to_supports_string_tracing.
11542 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11543 TARGET_DEFAULT_RETURN.
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
11549 to_supports_enable_disable_tracepoint.
11550 * target.h (struct target_ops)
11551 <to_supports_enable_disable_tracepoint>: Use
11552 TARGET_DEFAULT_RETURN.
11554 2014-02-19 Tom Tromey <tromey@redhat.com>
11556 * target-delegates.c: Rebuild.
11557 * target.c (update_current_target): Don't inherit or default
11558 to_supports_multi_process.
11559 * target.h (struct target_ops) <to_supports_multi_process>: Use
11560 TARGET_DEFAULT_RETURN.
11562 2014-02-19 Tom Tromey <tromey@redhat.com>
11564 * target-delegates.c: Rebuild.
11565 * target.c (update_current_target): Don't inherit or default
11566 to_get_ada_task_ptid.
11567 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11568 TARGET_DEFAULT_FUNC.
11570 2014-02-19 Tom Tromey <tromey@redhat.com>
11572 * target-delegates.c: Rebuild.
11573 * target.c (update_current_target): Don't inherit or default
11574 to_thread_architecture.
11575 * target.h (struct target_ops) <to_thread_architecture>: Use
11576 TARGET_DEFAULT_FUNC.
11578 2014-02-19 Tom Tromey <tromey@redhat.com>
11580 * target-delegates.c: Rebuild.
11581 * target.c (update_current_target): Don't inherit or default
11582 to_execution_direction.
11583 * target.h (struct target_ops) <to_execution_direction>: Use
11584 TARGET_DEFAULT_FUNC.
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target-delegates.c: Rebuild.
11589 * target.c (update_current_target): Don't inherit or default
11590 to_can_execute_reverse.
11591 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11592 TARGET_DEFAULT_RETURN.
11593 (target_can_execute_reverse): Unconditionally delegate.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11600 (dummy_goto_bookmark): Remove.
11601 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11602 * target.h (struct target_ops) <to_goto_bookmark>: Use
11603 TARGET_DEFAULT_NORETURN.
11605 2014-02-19 Tom Tromey <tromey@redhat.com>
11607 * target-delegates.c: Rebuild.
11608 * target.c (update_current_target): Don't inherit or default
11610 (dummy_get_bookmark): Remove.
11611 (init_dummy_target): Don't inherit or default to_get_bookmark.
11612 * target.h (struct target_ops) <to_get_bookmark>: Use
11613 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
11620 (init_dummy_target): Don't initialize to_make_corefile_notes.
11621 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11622 TARGET_DEFAULT_FUNC.
11624 2014-02-19 Tom Tromey <tromey@redhat.com>
11626 * target-delegates.c: Rebuild.
11627 * target.c (update_current_target): Don't inherit or default
11628 to_find_memory_regions.
11629 (init_dummy_target): Don't initialize to_find_memory_regions.
11630 * target.h (struct target_ops) <to_find_memory_regions>: Use
11631 TARGET_DEFAULT_FUNC.
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11635 * target-delegates.c: Rebuild.
11636 * target.c (update_current_target): Don't inherit or default
11638 * target.h (struct target_ops) <to_log_command>: Use
11639 TARGET_DEFAULT_IGNORE.
11640 (target_log_command): Unconditionally delegate.
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11644 * target-delegates.c: Rebuild.
11645 * target.c (update_current_target): Don't inherit or default
11646 to_pid_to_exec_file.
11647 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11648 TARGET_DEFAULT_RETURN.
11650 2014-02-19 Tom Tromey <tromey@redhat.com>
11652 * target-delegates.c: Rebuild.
11653 * target.c (update_current_target): Don't inherit or default
11655 (target_thread_name): Unconditionally delegate.
11656 * target.h (struct target_ops) <to_thread_name>: Use
11657 TARGET_DEFAULT_RETURN.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target-delegates.c: Rebuild.
11662 * target.c (update_current_target): Don't inherit or default
11663 to_extra_thread_info.
11664 * target.h (struct target_ops) <to_extra_thread_info>: Use
11665 TARGET_DEFAULT_RETURN.
11667 2014-02-19 Tom Tromey <tromey@redhat.com>
11669 * target-delegates.c: Rebuild.
11670 * target.c (update_current_target): Don't inherit or default
11672 * target.h (struct target_ops) <to_has_exited>: Use
11673 TARGET_DEFAULT_RETURN..
11675 2014-02-19 Tom Tromey <tromey@redhat.com>
11677 * target-delegates.c: Rebuild.
11678 * target.c (update_current_target): Don't inherit or default
11679 to_set_syscall_catchpoint.
11680 (return_one): Remove.
11681 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11682 TARGET_DEFAULT_RETURN.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * target-delegates.c: Rebuild.
11687 * target.c (update_current_target): Don't inherit or default
11688 to_insert_exec_catchpoint.
11689 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11690 TARGET_DEFAULT_RETURN.
11692 2014-01-08 Tom Tromey <tromey@redhat.com>
11694 * target-delegates.c: Rebuild.
11695 * target.c (update_current_target): Don't inherit or default
11696 to_insert_exec_catchpoint.
11697 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11698 TARGET_DEFAULT_RETURN.
11700 2014-02-19 Tom Tromey <tromey@redhat.com>
11702 * target-delegates.c: Rebuild.
11703 * target.c (update_current_target): Don't inherit or default
11704 to_remove_vfork_catchpoint.
11705 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11706 TARGET_DEFAULT_RETURN.
11708 2014-02-19 Tom Tromey <tromey@redhat.com>
11710 * target-delegates.c: Rebuild.
11711 * target.c (update_current_target): Don't inherit or default
11712 to_insert_vfork_catchpoint.
11713 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11714 TARGET_DEFAULT_RETURN.
11716 2014-02-19 Tom Tromey <tromey@redhat.com>
11718 * target-delegates.c: Rebuild.
11719 * target.c (update_current_target): Don't inherit or default
11720 to_remove_fork_catchpoint.
11721 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11722 TARGET_DEFAULT_RETURN.
11724 2014-02-19 Tom Tromey <tromey@redhat.com>
11726 * target-delegates.c: Rebuild.
11727 * target.c (update_current_target): Don't inherit or default
11728 to_insert_fork_catchpoint.
11729 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11730 TARGET_DEFAULT_RETURN.
11732 2014-02-19 Tom Tromey <tromey@redhat.com>
11734 * target-delegates.c: Rebuild.
11735 * target.c (update_current_target): Don't inherit or default
11736 to_post_startup_inferior.
11737 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11738 TARGET_DEFAULT_IGNORE.
11740 2014-02-19 Tom Tromey <tromey@redhat.com>
11742 * target-delegates.c: Rebuild.
11743 * target.c (update_current_target): Don't inherit or default
11745 * target.h (struct target_ops) <to_load>: Use
11746 TARGET_DEFAULT_NORETURN.
11748 2014-02-19 Tom Tromey <tromey@redhat.com>
11750 * target-delegates.c: Rebuild.
11751 * target.c (update_current_target): Don't inherit or default
11753 * target.h (struct target_ops) <to_terminal_info>: Use
11754 TARGET_DEFAULT_FUNC.
11756 2014-02-19 Tom Tromey <tromey@redhat.com>
11758 * target-delegates.c: Rebuild.
11759 * target.c (update_current_target): Don't inherit or default
11760 to_terminal_save_ours.
11761 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11762 TARGET_DEFAULT_IGNORE.
11764 2014-02-19 Tom Tromey <tromey@redhat.com>
11766 * target-delegates.c: Rebuild.
11767 * target.c (update_current_target): Don't inherit or default
11769 * target.h (struct target_ops) <to_terminal_ours>: Use
11770 TARGET_DEFAULT_IGNORE.
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11774 * target-delegates.c: Rebuild.
11775 * target.c (update_current_target): Don't inherit or default
11776 to_terminal_ours_for_output.
11777 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11778 TARGET_DEFAULT_IGNORE.
11780 2014-02-19 Tom Tromey <tromey@redhat.com>
11782 * target-delegates.c: Rebuild.
11783 * target.c (update_current_target): Don't inherit or default
11784 to_terminal_inferior.
11785 * target.h (struct target_ops) <to_terminal_inferior>: Use
11786 TARGET_DEFAULT_IGNORE.
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11790 * target-delegates.c: Rebuild.
11791 * target.c (update_current_target): Don't inherit or default
11793 * target.h (struct target_ops) <to_terminal_init>: Use
11794 TARGET_DEFAULT_IGNORE.
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11798 * target-delegates.c: Rebuild.
11799 * target.c (update_current_target): Don't inherit or default
11800 to_can_accel_watchpoint_condition.
11801 * target.h (struct target_ops)
11802 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11804 2014-02-19 Tom Tromey <tromey@redhat.com>
11806 * target-delegates.c: Rebuild.
11807 * target.c (update_current_target): Don't inherit or default
11808 to_region_ok_for_hw_watchpoint.
11809 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11810 Use TARGET_DEFAULT_FUNC.
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11814 * target-delegates.c: Rebuild.
11815 * target.c (update_current_target): Don't inherit or default
11816 to_watchpoint_addr_within_range.
11817 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11818 Use TARGET_DEFAULT_FUNC.
11820 2014-02-19 Tom Tromey <tromey@redhat.com>
11822 * target-delegates.c: Rebuild.
11823 * target.c (update_current_target): Don't inherit or default
11824 to_remove_watchpoint.
11825 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11826 TARGET_DEFAULT_NORETURN.
11828 2014-02-19 Tom Tromey <tromey@redhat.com>
11830 * target-delegates.c: Rebuild.
11831 * target.c (update_current_target): Don't inherit or default
11832 to_insert_watchpoint.
11833 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11834 TARGET_DEFAULT_RETURN.
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11838 * target-delegates.c: Rebuild.
11839 * target.c (update_current_target): Don't inherit or default
11840 to_remove_hw_breakpoint.
11841 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11842 TARGET_DEFAULT_RETURN.
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11846 * target-delegates.c: Rebuild.
11847 * target.c (update_current_target): Don't inherit or default
11848 to_insert_hw_breakpoint.
11849 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11850 TARGET_DEFAULT_RETURN.
11852 2014-02-19 Tom Tromey <tromey@redhat.com>
11854 * target-delegates.c: Rebuild.
11855 * target.c (update_current_target): Don't inherit or default
11856 to_can_use_hw_breakpoint.
11857 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11858 TARGET_DEFAULT_RETURN.
11860 2014-02-19 Tom Tromey <tromey@redhat.com>
11862 * target-delegates.c: Rebuild.
11863 * target.c (update_current_target): Don't inherit or default
11865 * target.h (struct target_ops) <to_files_info>: Use
11866 TARGET_DEFAULT_IGNORE.
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11870 * target-delegates.c: Rebuild.
11871 * target.c (update_current_target): Don't inherit or default
11873 * target.h (struct target_ops) <to_store>: Use
11874 TARGET_DEFAULT_NORETURN.
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11878 * target-delegates.c: Rebuild.
11879 * target.c (update_current_target): Don't inherit or default
11881 * target.h (struct target_ops) <to_post_attach>: Use
11882 TARGET_DEFAULT_IGNORE.
11884 2014-02-19 Tom Tromey <tromey@redhat.com>
11886 * target-delegates.c: Rebuild.
11887 * target.c (update_current_target): Don't inherit or default
11889 (default_rcmd): New function.
11890 (do_monitor_command): Unconditionally delegate.
11891 * target.h (struct target_ops) <to_rmcd>: Use
11892 TARGET_DEFAULT_FUNC.
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11896 * target-delegates.c: Rebuild.
11897 * target.c (init_dummy_target): Don't initialize to_attach.
11898 (target_attach): Unconditionally delegate.
11899 * target.h (struct target_ops) <to_attach>: Use
11900 TARGET_DEFAULT_FUNC.
11902 2014-02-19 Tom Tromey <tromey@redhat.com>
11904 * target-delegates.c: Rebuild.
11905 * target.c (target_detach): Unconditionally delegate.
11906 (init_dummy_target): Don't initialize to_detach.
11907 * target.h (struct target_ops) <to_detach>: Use
11908 TARGET_DEFAULT_IGNORE.
11910 2014-02-19 Tom Tromey <tromey@redhat.com>
11912 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11914 (target_augmented_libraries_svr4_read): Add argument.
11915 * target.c (update_current_target): Update.
11916 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11919 2014-02-19 Tom Tromey <tromey@redhat.com>
11921 * target.h (struct target_ops) <to_call_history_range>: Add
11923 * target.c (target_call_history_range): Add argument.
11924 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11926 (record_btrace_call_history_from): Update.
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11930 * target.h (struct target_ops) <to_call_history_from>: Add
11932 * target.c (target_call_history_from): Add argument.
11933 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * target.h (struct target_ops) <to_call_history>: Add argument.
11939 * target.c (target_call_history): Add argument.
11940 * record-btrace.c (record_btrace_call_history): Add 'self'
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * target.h (struct target_ops) <to_insn_history_range>: Add
11947 * target.c (target_insn_history_range): Add argument.
11948 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11950 (record_btrace_insn_history_from): Update.
11952 2014-02-19 Tom Tromey <tromey@redhat.com>
11954 * target.h (struct target_ops) <to_insn_history_from>: Add
11956 * target.c (target_insn_history_from): Add argument.
11957 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11962 * target.h (struct target_ops) <to_insn_history>: Add argument.
11963 * target.c (target_insn_history): Add argument.
11964 * record-btrace.c (record_btrace_insn_history): Add 'self'
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target.h (struct target_ops) <to_goto_record>: Add argument.
11970 * target.c (target_goto_record): Add argument.
11971 * record-full.c (record_full_goto): Add 'self' argument.
11972 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11976 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11977 * target.c (target_goto_record_end): Add argument.
11978 * record-full.c (record_full_goto_end): Add 'self' argument.
11979 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11983 * target.h (struct target_ops) <to_goto_record_begin>: Add
11985 * target.c (target_goto_record_begin): Add argument.
11986 * record-full.c (record_full_goto_begin): Add 'self' argument.
11987 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11990 2014-02-19 Tom Tromey <tromey@redhat.com>
11992 * target.h (struct target_ops) <to_record_is_replaying>: Add
11994 * target.c (target_record_is_replaying): Add argument.
11995 * record-full.c (record_full_is_replaying): Add 'self' argument.
11996 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11998 (record_btrace_xfer_partial, record_btrace_store_registers)
11999 (record_btrace_prepare_to_store, record_btrace_resume)
12000 (record_btrace_wait, record_btrace_decr_pc_after_break)
12001 (record_btrace_find_new_threads, record_btrace_thread_alive):
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target.h (struct target_ops) <to_delete_record>: Add argument.
12007 * target.c (target_delete_record): Add argument.
12008 * record-full.c (record_full_delete): Add 'self' argument.
12010 2014-02-19 Tom Tromey <tromey@redhat.com>
12012 * target.h (struct target_ops) <to_save_record>: Add argument.
12013 * target.c (target_save_record): Add argument.
12014 * record-full.c (record_full_save): Add 'self' argument.
12015 (record_full_save): Add 'self' argument.
12017 2014-02-19 Tom Tromey <tromey@redhat.com>
12019 * target.h (struct target_ops) <to_info_record>: Add argument.
12020 * target.c (target_info_record): Add argument.
12021 * record.c (info_record_command): Add argument.
12022 * record-full.c (record_full_info): Add 'self' argument.
12023 * record-btrace.c (record_btrace_info): Add 'self' argument.
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12027 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12028 * target.c (target_stop_recording): Add argument.
12029 * record.c (record_stop): Add argument.
12030 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12033 2014-02-19 Tom Tromey <tromey@redhat.com>
12035 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12036 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12037 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12039 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12040 (_initialize_amd64_linux_nat): Use it.
12041 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12042 (_initialize_i386_linux_nat): Use it.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12047 * target.c (target_teardown_btrace): Add argument.
12048 * remote.c (remote_teardown_btrace): Add 'self' argument.
12049 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12051 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12056 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12057 * target.c (target_disable_btrace): Add argument.
12058 * remote.c (remote_disable_btrace): Add 'self' argument.
12059 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12061 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12066 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12067 * target.c (target_enable_btrace): Add argument.
12068 * remote.c (remote_enable_btrace): Add 'self' argument.
12069 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12071 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12076 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12077 (target_can_use_agent): Add argument.
12078 * target.c (update_current_target): Update.
12079 * remote.c (remote_can_use_agent): Add 'self' argument.
12080 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12084 * target.h (struct target_ops) <to_use_agent>: Add argument.
12085 (target_use_agent): Add argument.
12086 * target.c (update_current_target): Update.
12087 * remote.c (remote_use_agent): Add 'self' argument.
12088 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12092 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12093 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12094 (target_traceframe_info): Add argument.
12095 * target.c (update_current_target): Update.
12096 * remote.c (remote_traceframe_info): Add 'self' argument.
12097 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12101 * target.h (target_static_tracepoint_markers_by_strid): Add
12103 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12105 * target.c (update_current_target): Update.
12106 * remote.c (struct target_ops)
12107 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12108 * linux-nat.c (struct target_ops)
12109 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12111 2014-02-19 Tom Tromey <tromey@redhat.com>
12113 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12115 (target_static_tracepoint_marker_at): Add argument.
12116 * target.c (update_current_target): Update.
12117 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12123 (target_set_permissions): Add argument.
12124 * target.c (update_current_target): Update.
12125 * remote.c (remote_set_permissions): Add 'self' argument.
12126 (remote_start_remote): Update.
12128 2014-02-19 Tom Tromey <tromey@redhat.com>
12130 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12131 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12132 (target_get_tib_address): Add argument.
12133 * target.c (update_current_target): Update.
12134 * remote.c (remote_get_tib_address): Add 'self' argument.
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12138 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12139 (target_set_trace_notes): Add argument.
12140 * target.c (update_current_target): Update.
12141 * remote.c (remote_set_trace_notes): Add 'self' argument.
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12147 (target_set_trace_buffer_size): Add argument.
12148 * target.c (update_current_target): Update.
12149 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12151 2014-02-19 Tom Tromey <tromey@redhat.com>
12153 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12155 (target_set_circular_trace_buffer): Add argument.
12156 * target.c (update_current_target): Update.
12157 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12160 2014-02-19 Tom Tromey <tromey@redhat.com>
12162 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12164 (target_set_disconnected_tracing): Add argument.
12165 * target.c (update_current_target): Update.
12166 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * target.h (struct target_ops)
12171 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12172 (target_get_min_fast_tracepoint_insn_len): Add argument.
12173 * target.c (update_current_target): Update.
12174 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12177 2014-02-19 Tom Tromey <tromey@redhat.com>
12179 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12181 (target_get_raw_trace_data): Add argument.
12182 * target.c (update_current_target): Update.
12183 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12187 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12189 (target_upload_trace_state_variables): Add argument.
12190 * target.c (update_current_target): Update.
12191 * remote.c (remote_upload_trace_state_variables): Add 'self'
12193 (remote_start_remote): Update.
12195 2014-02-19 Tom Tromey <tromey@redhat.com>
12197 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12199 (target_upload_tracepoints): Add argument.
12200 * target.c (update_current_target): Update.
12201 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12202 (remote_start_remote): Update.
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12206 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12207 (target_save_trace_data): Add argument.
12208 * target.c (update_current_target): Update.
12209 * remote.c (remote_save_trace_data): Add 'self' argument.
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12213 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12215 * target.h (struct target_ops)
12216 <to_get_trace_state_variable_value>: Add argument.
12217 (target_get_trace_state_variable_value): Add argument.
12218 * target.c (update_current_target): Update.
12219 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12221 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12223 2014-02-19 Tom Tromey <tromey@redhat.com>
12225 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12226 * target.h (struct target_ops) <to_trace_find>: Add argument.
12227 (target_trace_find): Add argument.
12228 * target.c (update_current_target): Update.
12229 * remote.c (remote_trace_find): Add 'self' argument.
12230 * ctf.c (ctf_trace_find): Add 'self' argument.
12232 2014-02-19 Tom Tromey <tromey@redhat.com>
12234 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12235 (target_trace_stop): Add argument.
12236 * target.c (update_current_target): Update.
12237 * remote.c (remote_trace_stop): Add 'self' argument.
12239 2014-02-19 Tom Tromey <tromey@redhat.com>
12241 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12242 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12244 (target_get_tracepoint_status): Add argument.
12245 * target.c (update_current_target): Update.
12246 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12250 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12251 * target.h (struct target_ops) <to_get_trace_status>: Add
12253 (target_get_trace_status): Add argument.
12254 * target.c (update_current_target): Update.
12255 * remote.c (remote_get_trace_status): Add 'self' argument.
12256 (remote_start_remote, remote_can_download_tracepoint): Update.
12257 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12261 * target.h (struct target_ops) <to_trace_start>: Add argument.
12262 (target_trace_start): Add argument.
12263 * target.c (update_current_target): Update.
12264 * remote.c (remote_trace_start): Add 'self' argument.
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12268 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12270 (target_trace_set_readonly_regions): Add argument.
12271 * target.c (update_current_target): Update.
12272 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12275 2014-02-19 Tom Tromey <tromey@redhat.com>
12277 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12279 (target_disable_tracepoint): Add argument.
12280 * target.c (update_current_target): Update.
12281 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12285 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12287 (target_enable_tracepoint): Add argument.
12288 * target.c (update_current_target): Update.
12289 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12291 2014-02-19 Tom Tromey <tromey@redhat.com>
12293 * target.h (struct target_ops) <to_download_trace_state_variable>:
12295 (target_download_trace_state_variable): Add argument.
12296 * target.c (update_current_target): Update.
12297 * remote.c (remote_download_trace_state_variable): Add 'self'
12300 2014-02-19 Tom Tromey <tromey@redhat.com>
12302 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12304 (target_can_download_tracepoint): Add argument.
12305 * target.c (update_current_target): Update.
12306 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12308 2014-02-19 Tom Tromey <tromey@redhat.com>
12310 * target.h (struct target_ops) <to_download_tracepoint>: Add
12312 (target_download_tracepoint): Add argument.
12313 * target.c (update_current_target): Update.
12314 * remote.c (remote_download_tracepoint): Add 'self' argument.
12316 2014-02-19 Tom Tromey <tromey@redhat.com>
12318 * target.h (struct target_ops) <to_trace_init>: Add argument.
12319 (target_trace_init): Add argument.
12320 * target.c (update_current_target): Update.
12321 * remote.c (remote_trace_init): Add 'self' argument.
12323 2014-02-19 Tom Tromey <tromey@redhat.com>
12325 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12326 * target.c (target_fileio_readlink): Add argument.
12327 * remote.c (remote_hostio_readlink): Add 'self' argument.
12328 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12330 2014-02-19 Tom Tromey <tromey@redhat.com>
12332 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12333 * target.c (target_fileio_unlink): Add argument.
12334 * remote.c (remote_hostio_unlink): Add 'self' argument.
12335 (remote_file_delete): Update.
12336 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12338 2014-02-19 Tom Tromey <tromey@redhat.com>
12340 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12341 * target.c (target_fileio_close): Add argument.
12342 * remote.c (remote_hostio_close): Add 'self' argument.
12343 (remote_hostio_close_cleanup): Update.
12344 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12346 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12348 2014-02-19 Tom Tromey <tromey@redhat.com>
12350 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12351 * target.c (target_fileio_pread): Add argument.
12352 * remote.c (remote_hostio_pread): Add 'self' argument.
12353 (remote_bfd_iovec_pread, remote_file_get): Update.
12354 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12356 2014-02-19 Tom Tromey <tromey@redhat.com>
12358 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12359 * target.c (target_fileio_pwrite): Add argument.
12360 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12361 (remote_file_put): Update.
12362 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12366 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12367 * target.c (target_fileio_open): Add argument.
12368 * remote.c (remote_hostio_open): Add 'self' argument.
12369 (remote_bfd_iovec_open): Add 'self' argument.
12370 (remote_file_put): Add 'self' argument.
12371 (remote_file_get): Add 'self' argument.
12372 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12376 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12378 (target_can_run_breakpoint_commands): Add argument.
12379 * target.c (update_current_target): Update.
12380 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12382 (remote_insert_breakpoint): Add 'self' argument.
12383 (remote_insert_hw_breakpoint): Add 'self' argument.
12384 (remote_can_run_breakpoint_commands): Add 'self' argument.
12386 2014-02-19 Tom Tromey <tromey@redhat.com>
12388 * target.h (struct target_ops)
12389 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12390 (target_supports_evaluation_of_breakpoint_conditions): Add
12392 * target.c (update_current_target): Update.
12393 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12395 (remote_insert_breakpoint): Add 'self' argument.
12396 (remote_insert_hw_breakpoint): Add 'self' argument.
12397 (remote_supports_cond_breakpoints): Add 'self' argument.
12399 2014-02-19 Tom Tromey <tromey@redhat.com>
12401 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12403 (target_supports_string_tracing): Add argument.
12404 * target.c (update_current_target): Update.
12405 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12407 2014-02-19 Tom Tromey <tromey@redhat.com>
12409 * target.h (struct target_ops)
12410 <to_supports_disable_randomization>: Add argument.
12411 * target.c (find_default_supports_disable_randomization): Add
12413 (target_supports_disable_randomization): Add argument.
12414 (find_default_supports_disable_randomization): Add 'self'
12416 * remote.c (extended_remote_supports_disable_randomization): Add
12418 (remote_supports_disable_randomization): Add 'self' argument.
12419 (extended_remote_create_inferior): Update.
12420 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12423 2014-02-19 Tom Tromey <tromey@redhat.com>
12425 * target.h (struct target_ops)
12426 <to_supports_enable_disable_tracepoint>: Add argument.
12427 (target_supports_enable_disable_tracepoint): Add argument.
12428 * target.c (update_current_target): Update.
12429 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12432 2014-02-19 Tom Tromey <tromey@redhat.com>
12434 * target.h (struct target_ops) <to_supports_multi_process>: Add
12436 (target_supports_multi_process): Add argument.
12437 * target.c (update_current_target): Update.
12438 * remote.c (remote_supports_multi_process): Add 'self' argument.
12439 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12441 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12444 2014-02-19 Tom Tromey <tromey@redhat.com>
12446 * target.h (struct target_ops) <to_execution_direction>: Add
12448 (target_execution_direction): Add argument.
12449 * target.c (default_execution_direction): Add 'self' argument.
12450 * record-full.c (record_full_execution_direction): Add 'self'
12453 2014-02-19 Tom Tromey <tromey@redhat.com>
12455 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12457 (target_can_execute_reverse): Add argument.
12458 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12459 * record-full.c (record_full_can_execute_reverse): Add 'self'
12461 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12464 2014-02-19 Tom Tromey <tromey@redhat.com>
12466 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12467 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12469 (target_get_ada_task_ptid): Add argument.
12470 * target.c (update_current_target): Update.
12471 (default_get_ada_task_ptid): Add 'self' argument.
12472 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12473 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12474 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12476 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12478 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12480 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12482 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12483 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12486 2014-02-19 Tom Tromey <tromey@redhat.com>
12488 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12489 (target_goto_bookmark): Add argument.
12490 * target.c (dummy_goto_bookmark): Add 'self' argument.
12491 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12493 2014-02-19 Tom Tromey <tromey@redhat.com>
12495 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12496 (target_get_bookmark): Add argument.
12497 * target.c (dummy_get_bookmark): Add 'self' argument.
12498 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12500 2014-02-19 Tom Tromey <tromey@redhat.com>
12502 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12504 (target_make_corefile_notes): Add argument.
12505 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12506 * procfs.c (procfs_make_note_section): Add 'self' argument.
12507 (procfs_make_note_section): Add 'self' argument.
12508 (procfs_make_note_section): Add 'self' argument.
12509 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12511 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12512 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12513 * exec.c (exec_make_note_section): Add 'self' argument.
12514 (exec_make_note_section): Add 'self' argument.
12516 2014-02-19 Tom Tromey <tromey@redhat.com>
12518 * target.h (struct target_ops) <to_find_memory_regions>: Add
12520 (target_find_memory_regions): Add argument.
12521 * target.c (dummy_find_memory_regions): Add 'self' argument.
12522 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12523 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12524 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12525 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12526 * exec. (exec_do_find_memory_regions): New global.
12527 (exec_set_find_memory_regions): Rewrite.
12528 (exec_find_memory_regions): New function.
12529 (init_exec_ops): Use exec_find_memory_regions.
12531 2014-02-19 Tom Tromey <tromey@redhat.com>
12533 * target.h (struct target_ops) <to_supports_non_stop>: Add
12535 * target.c (find_default_supports_non_stop): Add argument.
12536 (target_supports_non_stop): Add argument.
12537 (find_default_supports_non_stop): Add 'self' argument.
12538 * remote.c (remote_supports_non_stop): Add 'self' argument.
12539 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12541 2014-02-19 Tom Tromey <tromey@redhat.com>
12543 * target.h (struct target_ops) <to_log_command>: Add argument.
12544 (target_log_command): Add argument.
12545 * serial.h (serial_log_command): Add 'self' argument.
12546 * serial.c (serial_log_command): Add 'self' argument.
12548 2014-02-19 Tom Tromey <tromey@redhat.com>
12550 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12551 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12553 (target_pid_to_exec_file): Add argument.
12554 * target.c (debug_to_pid_to_exec_file): Add argument.
12555 (update_current_target): Update.
12556 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12557 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12558 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12559 (linux_handle_extended_wait): Update.
12560 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12561 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12562 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12563 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12565 2014-02-19 Tom Tromey <tromey@redhat.com>
12567 * target.h (struct target_ops) <to_rcmd>: Add argument.
12568 (target_rcmd): Add argument.
12569 * target.c (debug_to_rcmd): Add argument.
12570 (update_current_target, do_monitor_command): Update.
12571 * remote.c (remote_rcmd): Add 'self' argument.
12572 * monitor.c (monitor_rcmd): Add 'self' argument.
12574 2014-02-19 Tom Tromey <tromey@redhat.com>
12576 * windows-nat.c (windows_stop): Add 'self' argument.
12577 * target.h (struct target_ops) <to_stop>: Add argument.
12578 * target.c (target_stop): Add argument.
12579 (debug_to_stop): Add argument.
12580 (update_current_target): Update.
12581 * remote.c (remote_stop): Add 'self' argument.
12582 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12583 (gdbsim_cntrl_c): Update.
12584 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12585 * procfs.c (procfs_stop): Add 'self' argument.
12586 * nto-procfs.c (procfs_stop): Add 'self' argument.
12587 * monitor.c (monitor_stop): Add 'self' argument.
12588 (monitor_open): Update.
12589 * linux-nat.c (linux_nat_stop): Add argument.
12590 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12591 * gnu-nat.c (gnu_stop): Add 'self' argument.
12592 * darwin-nat.c (darwin_stop): Add 'self' argument.
12594 2014-02-19 Tom Tromey <tromey@redhat.com>
12596 * target.h (struct target_ops) <to_thread_name>: Add argument.
12597 * target.c (target_thread_name): Add argument.
12598 (update_current_target): Update.
12599 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12601 2014-02-19 Tom Tromey <tromey@redhat.com>
12603 * target.h (struct target_ops) <to_extra_thread_info>: Add
12605 (target_extra_thread_info): Add argument.
12606 * target.c (update_current_target): Update.
12607 * remote.c (remote_threads_extra_info): Add 'self' argument.
12608 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12610 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12611 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12612 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12614 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12616 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12618 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12621 2014-02-19 Tom Tromey <tromey@redhat.com>
12623 * target.h (struct target_ops) <to_program_signals>: Add argument.
12624 * target.c (target_program_signals): Add argument.
12625 * remote.c (remote_program_signals): Add 'self' argument.
12627 2014-02-19 Tom Tromey <tromey@redhat.com>
12629 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12630 * target.c (target_pass_signals): Add argument.
12631 * remote.c (remote_pass_signals): Add 'self' argument.
12632 (remote_start_remote): Update.
12633 * procfs.c (procfs_pass_signals): Add 'self' argument.
12634 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12635 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12636 (linux_nat_create_inferior, linux_nat_attach): Update.
12638 2014-02-19 Tom Tromey <tromey@redhat.com>
12640 * windows-nat.c (windows_can_run): Add 'self' argument.
12641 * target.h (struct target_ops) <to_can_run>: Add argument.
12642 (target_can_run): Add argument.
12643 * target.c (debug_to_can_run): Add argument.
12644 (update_current_target): Update.
12645 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12646 * inf-child.c (inf_child_can_run): Add 'self' argument.
12647 * go32-nat.c (go32_can_run): Add 'self' argument.
12649 2014-02-19 Tom Tromey <tromey@redhat.com>
12651 * target.h (struct target_ops) <to_has_exited>: Add argument.
12652 (target_has_exited): Add argument.
12653 * target.c (debug_to_has_exited): Add argument.
12654 (update_current_target): Update.
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12658 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12660 (target_set_syscall_catchpoint): Add argument.
12661 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12663 * target.c (update_current_target): Update.
12665 2014-02-19 Tom Tromey <tromey@redhat.com>
12667 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12669 (target_remove_exec_catchpoint): Add argument.
12670 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12671 (update_current_target): Update.
12672 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12675 2014-02-19 Tom Tromey <tromey@redhat.com>
12677 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12679 (target_insert_exec_catchpoint): Add argument.
12680 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12681 (update_current_target): Update.
12682 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12685 2014-02-19 Tom Tromey <tromey@redhat.com>
12687 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12689 (target_remove_vfork_catchpoint): Add argument.
12690 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12691 (update_current_target): Update.
12692 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12695 2014-02-19 Tom Tromey <tromey@redhat.com>
12697 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12699 (target_insert_vfork_catchpoint): Add argument.
12700 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12701 (update_current_target): Update.
12702 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12705 2014-02-19 Tom Tromey <tromey@redhat.com>
12707 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12709 (target_remove_fork_catchpoint): Add argument.
12710 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12711 (update_current_target): Update.
12712 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12715 2014-02-19 Tom Tromey <tromey@redhat.com>
12717 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12719 (target_insert_fork_catchpoint): Add argument.
12720 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12721 (update_current_target): Update.
12722 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12725 2014-02-19 Tom Tromey <tromey@redhat.com>
12727 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12729 (target_post_startup_inferior): Add argument.
12730 * target.c (debug_to_post_startup_inferior): Add argument.
12731 (update_current_target): Update.
12732 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12734 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12736 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12738 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12740 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12742 (super_post_startup_inferior): Likewise.
12743 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12745 (super_post_startup_inferior): Likewise.
12746 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12747 Add 'self' argument.
12748 (super_post_startup_inferior): Likewise.
12750 2014-02-19 Tom Tromey <tromey@redhat.com>
12752 * target.h (struct target_ops) <to_load>: Add argument.
12753 * target.c (target_load): Add argument.
12754 (debug_to_load): Add argument.
12755 (update_current_target): Update.
12756 * remote.c (remote_load): Add 'self' argument.
12757 * remote-sim.c (gdbsim_load): Add 'self' argument.
12758 * remote-mips.c (mips_load): Add 'self' argument.
12759 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12760 * monitor.c (monitor_load): Add 'self' argument.
12761 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12763 2014-02-19 Tom Tromey <tromey@redhat.com>
12765 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12766 (target_terminal_info): Add argument.
12767 * target.c (debug_to_terminal_info): Add argument.
12768 (default_terminal_info): Likewise.
12769 * inflow.c (child_terminal_info): Add 'self' argument.
12770 * inferior.h (child_terminal_info): Add 'self' argument.
12771 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12773 2014-02-19 Tom Tromey <tromey@redhat.com>
12775 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12777 (target_terminal_save_ours): Add argument.
12778 * target.c (debug_to_terminal_save_ours): Add argument.
12779 (update_current_target): Update.
12780 * inflow.c (terminal_save_ours): Add 'self' argument.
12781 * inferior.h (terminal_save_ours): Add 'self' argument.
12783 2014-02-19 Tom Tromey <tromey@redhat.com>
12785 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12786 (target_terminal_ours): Add argument.
12787 * target.c (debug_to_terminal_ours): Add argument.
12788 (update_current_target): Update.
12789 * remote.c (remote_terminal_ours): Add 'self' argument.
12790 (remote_close): Update.
12791 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12792 * inflow.c (terminal_ours): Add 'self' argument.
12793 * inferior.h (terminal_ours): Add 'self' argument.
12794 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12796 2014-02-19 Pedro Alves <palves@redhat.com>
12797 Tom Tromey <tromey@redhat.com>
12799 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12801 (target_terminal_ours_for_output): Add argument.
12802 * target.c (debug_to_terminal_ours_for_output): Add argument.
12803 (update_current_target): Update.
12804 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12805 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12806 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12808 2014-02-19 Tom Tromey <tromey@redhat.com>
12810 * target.h (struct target_ops) <to_terminal_inferior>: Add
12812 * target.c (target_terminal_inferior): Add argument.
12813 (update_current_target): Update.
12814 * remote.c (remote_terminal_inferior): Add 'self' argument.
12815 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12816 * inflow.c (terminal_inferior): Add 'self' argument.
12817 * inferior.h (terminal_inferior): Add 'self' argument.
12818 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12819 (go32_terminal_inferior): Add 'self' argument.
12821 2014-02-19 Tom Tromey <tromey@redhat.com>
12823 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12824 (target_terminal_init): Add argument.
12825 * target.c (debug_to_terminal_init): Add argument.
12826 (update_current_target): Update.
12827 * inflow.c (terminal_init_inferior): Add 'self' argument.
12828 * inferior.h (terminal_init_inferior): Add 'self' argument.
12829 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12830 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12834 * target.h (struct target_ops)
12835 <to_can_accel_watchpoint_condition>: Add argument.
12836 (target_can_accel_watchpoint_condition): Add argument.
12837 * target.c (debug_to_can_accel_watchpoint_condition): Add
12839 (update_current_target): Update.
12840 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12843 2014-02-19 Tom Tromey <tromey@redhat.com>
12845 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12847 (target_region_ok_for_hw_watchpoint): Add argument.
12848 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12849 (default_region_ok_for_hw_watchpoint): Add argument.
12850 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12851 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12853 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12855 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12857 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12859 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12861 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12863 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12864 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12866 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12867 Add 'self' argument.
12869 2014-02-19 Tom Tromey <tromey@redhat.com>
12871 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12873 (target_insert_watchpoint): Add argument.
12874 * target.c (debug_to_insert_watchpoint): Add argument.
12875 (update_current_target): Update.
12876 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12877 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12878 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12879 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12880 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12881 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12883 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12884 (procfs_insert_hw_watchpoint): Add 'self' argument.
12885 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12887 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12889 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12891 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12892 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12894 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12897 2014-02-19 Tom Tromey <tromey@redhat.com>
12899 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12901 (target_remove_watchpoint): Add argument.
12902 * target.c (debug_to_remove_watchpoint): Add argument.
12903 (update_current_target): Update.
12904 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12905 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12906 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12907 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12908 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12909 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12911 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12912 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12914 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12916 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12918 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12919 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12921 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12924 2014-02-19 Tom Tromey <tromey@redhat.com>
12926 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12928 (target_remove_hw_breakpoint): Add argument.
12929 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12930 (update_current_target): Update.
12931 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12932 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12934 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12935 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12937 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12940 2014-02-19 Tom Tromey <tromey@redhat.com>
12942 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12944 (target_insert_hw_breakpoint): Add argument.
12945 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12946 (update_current_target): Update.
12947 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12948 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12950 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12951 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12952 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12954 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12957 2014-02-19 Tom Tromey <tromey@redhat.com>
12959 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12961 (target_can_use_hardware_watchpoint): Add argument.
12962 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12963 (update_current_target): Update.
12964 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12966 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12968 * remote.c (remote_check_watch_resources): Add 'self' argument.
12969 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12970 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12972 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12973 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12975 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12977 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12979 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12981 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12983 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12985 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12986 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12988 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12991 2014-02-19 Tom Tromey <tromey@redhat.com>
12993 * target.h (struct target_ops) <to_post_attach>: Add argument.
12994 (target_post_attach): Add argument.
12995 * target.c (debug_to_post_attach): Add argument.
12996 (update_current_target): Update.
12997 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12998 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12999 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13000 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13001 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13003 2014-02-19 Tom Tromey <tromey@redhat.com>
13005 * windows-nat.c (windows_close): Add 'self' argument.
13006 * tracepoint.c (tfile_close): Add 'self' argument.
13007 * target.h (struct target_ops) <to_close>: Add argument.
13008 * target.c (target_close): Add argument.
13009 (update_current_target): Update.
13010 * remote.c (remote_close): Add 'self' argument.
13011 * remote-sim.c (gdbsim_close): Add 'self' argument.
13012 * remote-mips.c (mips_close): Add 'self' argument.
13013 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13014 * record-full.c (record_full_close): Add 'self' argument.
13015 * record-btrace.c (record_btrace_close): Add 'self' argument.
13016 * monitor.h (monitor_close): Add 'self' argument.
13017 * monitor.c (monitor_close): Add 'self' argument.
13018 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13019 * linux-nat.c (linux_nat_close): Add argument.
13020 * go32-nat.c (go32_close): Add 'self' argument.
13021 * exec.c (exec_close_1): Add 'self' argument.
13022 * ctf.c (ctf_close): Add 'self' argument.
13023 * corelow.c (core_close): Add 'self' argument.
13024 (core_close_cleanup): Update.
13025 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13026 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13028 2014-02-19 Tom Tromey <tromey@redhat.com>
13030 * remote.c (remote_load): New function.
13031 (init_remote_ops): Use it.
13033 2014-02-19 Tom Tromey <tromey@redhat.com>
13035 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13037 * common/linux-btrace.h (linux_supports_btrace): Update.
13038 * remote.c (remote_supports_btrace): Add "self" argument.
13039 * target-delegates.c: Rebuild.
13040 * target.c (target_supports_btrace): Remove.
13041 * target.h (struct target_ops) <to_supports_btrace>: Add
13042 target_ops argument.
13043 (target_supports_btrace): New define.
13045 2014-02-19 Tom Tromey <tromey@redhat.com>
13047 * record-full.c (record_full_beneath_to_resume_ops)
13048 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13049 (record_full_beneath_to_wait)
13050 (record_full_beneath_to_store_registers_ops)
13051 (record_full_beneath_to_store_registers)
13052 (record_full_beneath_to_xfer_partial_ops)
13053 (record_full_beneath_to_xfer_partial)
13054 (record_full_beneath_to_insert_breakpoint_ops)
13055 (record_full_beneath_to_insert_breakpoint)
13056 (record_full_beneath_to_remove_breakpoint_ops)
13057 (record_full_beneath_to_remove_breakpoint)
13058 (record_full_beneath_to_stopped_by_watchpoint)
13059 (record_full_beneath_to_stopped_data_address)
13060 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13061 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13062 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13063 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13064 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13065 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13066 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13067 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13068 (record_full_resume, record_full_wait_1)
13069 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13070 (record_full_store_registers, record_full_xfer_partial)
13071 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13072 (record_full_async, record_full_core_xfer_partial): Use target
13074 * target-delegates.c: Rebuild.
13075 * target.c (current_xfer_partial): Remove.
13076 (update_current_target): Do not INHERIT or de_fault
13077 to_insert_breakpoint, to_remove_breakpoint,
13078 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13079 to_is_async_p, to_async. Do not set to_xfer_partial field.
13080 (default_xfer_partial): Simplify.
13081 (current_xfer_partial): Remove.
13082 (target_wait, target_resume): Simplify.
13083 (find_default_can_async_p, find_default_is_async_p): Update.
13084 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13085 to_xfer_partial, to_stopped_by_watchpoint,
13086 to_stopped_data_address.
13087 (target_store_registers): Simplify.
13088 (forward_target_remove_breakpoint)
13089 (forward_target_insert_breakpoint): Remove.
13090 (target_remove_breakpoint, target_insert_breakpoint)
13091 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13092 * target.h (struct target_ops) <to_resume, to_wait,
13093 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13094 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13095 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13097 (forward_target_remove_breakpoint)
13098 (forward_target_insert_breakpoint): Remove.
13099 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13101 (record_btrace_insert_breakpoint): Delegate directly.
13103 2014-02-19 Tom Tromey <tromey@redhat.com>
13106 * target-delegates.c: New file.
13107 * target.c: Include target-delegates.c.
13108 (init_dummy_target): Call install_dummy_methods.
13109 (complete_target_initialization): Call install_delegators.
13110 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13111 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13112 * make-target-delegates: New file.
13114 2014-02-19 Tom Tromey <tromey@redhat.com>
13116 * record.c (find_record_target): Use find_target_at.
13117 * target.c (find_target_at): New function.
13118 * target.h (find_target_at): Declare.
13120 2014-02-19 Tom Tromey <tromey@redhat.com>
13122 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13123 Add 'ops' argument.
13124 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13126 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13127 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13129 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13131 * linux-nat.c (save_sigtrap): Update.
13132 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13133 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13134 (linux_nat_close): Update.
13135 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13137 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13139 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13140 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13141 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13142 (tmp_to_async): Add 'ops' argument.
13143 (record_full_stopped_by_watchpoint, record_full_async)
13144 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13146 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13147 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13148 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13149 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13150 (remote_is_async_p, remote_async): Add 'ops' argument.
13151 (remote_stopped_data_address): Update.
13152 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13153 * target.c (update_current_target)
13154 (find_default_can_async_p, find_default_is_async_p): Update.
13155 (init_dummy_target): Update.
13156 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13157 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13158 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13159 (target_can_async_p, target_is_async_p, target_async)
13160 (target_stopped_by_watchpoint): Update.
13162 2014-02-19 Yao Qi <yao@codesourcery.com>
13165 * gdbarch.sh: Remove startup_gdbarch.
13166 * gdbarch.c: Regenerated.
13167 * gdbarch.h: Likewise.
13169 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13171 * rl78-tdep.c (rl78_g10_register_name): New function.
13172 (rl78_return_value): Add g10 support.
13173 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13176 2014-02-17 Doug Evans <xdje42@gmail.com>
13178 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13179 (SUBDIR_GUILE_SRCS): Ditto.
13180 (scm-gsmob.o): Ditto.
13182 2014-02-17 Yao Qi <yao@codesourcery.com>
13184 * gnu-nat.c (ILL_RPC): Declare defined function.
13186 2014-02-17 Yao Qi <yao@codesourcery.com>
13188 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13189 mach_msg_type_number_t.
13190 (gnu_write_inferior): Likewise.
13192 2014-02-17 Yao Qi <yao@codesourcery.com>
13194 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13196 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13197 (inf_validate_procs, inf_signal): Likewise.
13198 (S_exception_raise_request): Likewise.
13199 (do_mach_notify_dead_name): Likewise.
13200 (steal_exc_port): Likewise.
13201 (gnu_read_inferior): Change 'copy_count''s type to
13202 mach_msg_type_number_t.
13203 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13206 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13208 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13209 flag. Adjust all users; in particular...
13210 (gnu_wait): ..., don't decrement its value in here...
13211 (gnu_create_inferior): ..., and instead set the flag in here,
13212 around the startup_inferior call, and call that one with
13213 START_INFERIOR_TRAPS_EXPECTED.
13215 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13216 (ILL_RPC): ... new macro.
13217 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13218 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13219 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13220 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13221 functions with ILL_RPC macro.
13222 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13223 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13224 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13225 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13226 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13227 (S_proc_getlogin_reply, S_proc_getsid_reply)
13228 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13229 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13230 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13231 (S_proc_getnports_reply, S_proc_is_important_reply)
13232 (S_proc_get_code_reply): New stub functions, generated with
13235 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13236 collected the type check structures.
13238 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13240 2014-02-14 Doug Evans <dje@google.com>
13242 * target.c (target_write_partial): Fix result type.
13244 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13246 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13247 the proper offsets to access fpregset_t.
13249 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13251 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13252 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13253 * h8300-tdep.c (setmachinelist): Remove global.
13254 * hppa-tdep.c (hppa_sigtramp): Remove global.
13255 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13256 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13257 * ravenscar-thread.c (update_target_observer): Remove global.
13258 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13260 2014-02-12 Tom Tromey <tromey@redhat.com>
13262 * common/rsp-low.c: Update comments.
13263 * common/rsp-low.h: Update comments.
13265 2014-02-12 Tom Tromey <tromey@redhat.com>
13267 * common/rsp-low.c (convert_ascii_to_int): Remove.
13268 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13270 2014-02-12 Tom Tromey <tromey@redhat.com>
13272 * common/rsp-low.h (unhexify): Don't declare.
13273 * common/rsp-low.c (unhexify): Remove.
13275 2014-02-12 Tom Tromey <tromey@redhat.com>
13277 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13278 * common/rsp-low.c (convert_int_to_ascii): Remove.
13280 2014-02-12 Tom Tromey <tromey@redhat.com>
13282 * common/rsp-low.h (hexify): Don't declare.
13283 * common/rsp-low.c (hexify): Remove.
13285 2014-02-12 Tom Tromey <tromey@redhat.com>
13287 * common/rsp-low.c (hexify): Never take strlen of argument.
13289 2014-02-12 Tom Tromey <tromey@redhat.com>
13291 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13292 * remote.c (extended_remote_run, remote_rcmd)
13293 (remote_download_trace_state_variable, remote_save_trace_data)
13294 (remote_set_trace_notes): Update.
13295 * tracepoint.c (encode_source_string, tfile_write_status)
13296 (tfile_write_uploaded_tsv): Update.
13298 2014-02-12 Tom Tromey <tromey@redhat.com>
13300 * tracepoint.c: Include rsp-low.h.
13301 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13302 * remote.c: Include rsp-low.h.
13303 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13304 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13305 (remote_unescape_input): Move to common/rsp-low.c.
13306 * common/rsp-low.h: New file.
13307 * common/rsp-low.c: New file.
13308 * Makefile.in (SFILES): Add common/rsp-low.c.
13309 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13310 (COMMON_OBS): Add rsp-low.o.
13311 (rsp-low.o): New target.
13313 2014-02-12 Tom Tromey <tromey@redhat.com>
13315 * utils.h: Include print-utils.h.
13316 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13317 (int_string, core_addr_to_string, core_addr_to_string_nz)
13318 (hex_string, hex_string_custom): Don't declare.
13319 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13320 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13321 (hex_string_custom, int_string, core_addr_to_string)
13322 (core_addr_to_string_nz, host_address_to_string): Move to
13323 common/print-utils.c.
13324 * common/print-utils.h: New file.
13325 * common/print-utils.c: New file
13326 * Makefile.in (SFILES): Add common/print-utils.c.
13327 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13328 (COMMON_OBS): Add print-utils.o.
13329 (print-utils.o): New target.
13331 2014-02-12 Tom Tromey <tromey@redhat.com>
13333 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13335 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13337 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13339 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13341 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13342 if a PT_IO ptrace request returns sucessfully but indicates that 0
13343 bytes were transferred.
13345 2014-02-12 Pedro Alves <palves@redhat.com>
13346 Kevin Buettner <kevinb@redhat.com>
13348 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13349 TYPE_INSTANCE_FLAG_CODE_SPACE.
13351 2014-02-12 Pedro Alves <palves@redhat.com>
13353 * h8300-tdep.c (pseudo_from_raw_register)
13354 (raw_from_pseudo_register): New functions.
13355 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13358 2014-02-12 Pedro Alves <palves@redhat.com>
13360 * h8300-tdep.c (h8300_register_sim_regno): New function.
13361 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13362 gdbarch_register_sim_regno hook.
13364 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13366 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13368 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13370 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13372 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13374 * obsd-tdep.h (obsd_init_abi): New prototype.
13375 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13376 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13377 (obsd_init_abi): New functions.
13378 * i386obsd-tdep.c: Include "obsd-tdep.h".
13379 (i386obsd_init_abi): Call obsd_init_abi.
13380 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13381 (amd64obsd_init_abi): Call obsd_init_abi.
13382 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13383 obsd-tdep.c to gdb_target_obs.
13385 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13387 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13388 double float arguments to 16-byte in the argument slots.
13390 2014-02-11 Doug Evans <xdje42@gmail.com>
13392 * configure.ac: Don't crash if pkg-config is not found and guile
13393 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13395 * configure: Regenerate.
13397 2014-02-11 Yao Qi <yao@codesourcery.com>
13399 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13400 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13401 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13402 * gnu-nat.c (gnu_xfer_memory): Likewise.
13403 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13404 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13405 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13406 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13408 2014-02-11 Yao Qi <yao@codesourcery.com>
13410 * target.h (enum target_xfer_error): Rename to ...
13411 (enum target_xfer_status): ... it. New. All users updated.
13412 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13414 (TARGET_XFER_STATUS_ERROR_P): New macro.
13415 (target_xfer_error_to_string): Remove declaration.
13416 (target_xfer_status_to_string): Declare.
13417 (target_xfer_partial_ftype): Adjust it.
13418 (struct target_ops) <to_xfer_partial>: Return
13419 target_xfer_status. Add argument xfered_len. Update
13421 * target.c (target_xfer_error_to_string): Rename to ...
13422 (target_xfer_status_to_string): ... it. New. All callers
13424 (target_read_live_memory): Likewise. Call target_xfer_partial
13425 instead of target_read.
13426 (memory_xfer_live_readonly_partial): Return
13427 target_xfer_status. Add argument xfered_len.
13428 (raw_memory_xfer_partial): Likewise.
13429 (memory_xfer_partial_1): Likewise.
13430 (memory_xfer_partial): Likewise.
13431 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13432 properly. Update debug message.
13433 (default_xfer_partial, current_xfer_partial): Likewise.
13434 (target_write_partial): Likewise.
13435 (target_read_partial): Likewise. All callers updated.
13436 (read_whatever_is_readable): Likewise.
13437 (target_write_with_progress): Likewise.
13438 (target_read_alloc_1): Likewise.
13440 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13441 * auxv.c (procfs_xfer_auxv): Likewise.
13442 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13443 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13444 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13445 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13446 * corefile.c (read_memory): Adjust.
13447 * corelow.c (core_xfer_partial): Likewise.
13448 * ctf.c (ctf_xfer_partial): Likewise.
13449 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13451 (darwin_xfer_partial): Likewise.
13452 * exec.c (section_table_xfer_memory_partial): Likewise. All
13454 (exec_xfer_partial): Likewise.
13455 * exec.h (section_table_xfer_memory_partial): Update
13457 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13459 (gnu_xfer_partial): Likewise.
13460 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13461 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13462 (ia64_hpux_xfer_solib_got): Likewise.
13463 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13464 type of 'partial_len' to ULONGEST.
13465 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13466 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13467 (linux_nat_xfer_partial): Likewise.
13468 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13469 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13470 * monitor.c (monitor_xfer_memory): Likewise.
13471 (monitor_xfer_partial): Likewise.
13472 * procfs.c (procfs_xfer_partial): Likewise.
13473 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13474 * record-full.c (record_full_xfer_partial): Likewise.
13475 (record_full_core_xfer_partial): Likewise.
13476 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13477 (gdbsim_xfer_partial): Likewise.
13478 * remote.c (remote_write_bytes_aux): Likewise. All callers
13480 (remote_write_bytes, remote_read_bytes): Likewise. All
13482 (remote_flash_erase): Likewise. All callers updated.
13483 (remote_write_qxfer): Likewise. All callers updated.
13484 (remote_read_qxfer): Likewise. All callers updated.
13485 (remote_xfer_partial): Likewise.
13486 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13487 (rs6000_xfer_shared_libraries): Likewise.
13488 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13489 (sol_thread_xfer_partial): Likewise.
13490 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13491 (sparc_xfer_partial): Likewise.
13492 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13494 (spu_xfer_partial): Likewise.
13495 * spu-multiarch.c (spu_xfer_partial): Likewise.
13496 * tracepoint.c (tfile_xfer_partial): Likewise.
13497 * windows-nat.c (windows_xfer_memory): Likewise.
13498 (windows_xfer_shared_libraries): Likewise.
13499 (windows_xfer_partial): Likewise.
13500 * valprint.c: Replace 'target_xfer_error' with
13501 'target_xfer_status' in comments.
13503 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13505 Checked in by Joel Brobecker <brobecker@adacore.com>.
13506 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13508 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13510 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13511 function parameters.
13513 2014-02-10 Will Newton <will.newton@linaro.org>
13515 * elfread.c (elf_rel_plt_read): Look for a .got section if
13516 looking up .got.plt fails.
13517 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13518 on address passed to elf_gnu_ifunc_record_cache.
13519 (elf_gnu_ifunc_resolve_addr): Likewise.
13520 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13522 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13524 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13525 (X_RETTURN): New macro.
13526 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13528 * sparc64-tdep.c (sparc64_init_abi): Hook
13529 sparc_in_function_epilogue_p.
13531 2014-02-10 Gary Benson <gbenson@redhat.com>
13533 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13534 Rename name_matcher to symbol_matcher.
13536 2014-02-10 Gary Benson <gbenson@redhat.com>
13538 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13539 Use expand_symtabs_file_matcher_ftype and
13540 expand_symtabs_symbol_matcher_ftype.
13542 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13544 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13545 (struct ada_symbol_cache): New.
13546 (ada_free_symbol_cache): Forward declare.
13547 (struct ada_pspace_data): New.
13548 (ada_pspace_data_handle): New static global.
13549 (get_ada_pspace_data, ada_pspace_data_cleanup)
13550 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13551 (cache_space, cache): Delete, now folded inside struct
13553 (ada_get_symbol_cache): New function.
13554 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13556 (_initialize_ada_language): Remove initialization of cache_space.
13557 Move call to observer_attach_inferior_exit up, grouping it
13558 with the other observer registrations inside this function.
13559 Rename command to be more general. Add call to
13560 register_program_space_data_with_cleanup.
13562 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13564 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13565 ada_new_objfile_observer.
13566 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13567 (_initialize_tasks): Update uses of ada_new_objfile_observer
13568 and ada_tasks_normal_stop_observer.
13570 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13572 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13573 returned by the 'Length attribute to integer.
13575 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13577 * ada-lang.c (_initialize_ada_language): Initialize
13578 cache_space obstack.
13580 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13582 * ada-lang.c (HASH_SIZE): New macro.
13583 (struct cache_entry): New type.
13584 (cache_space, cache): New static globals.
13585 (ada_clear_symbol_cache, find_entry): New functions.
13586 (lookup_cached_symbol, cache_symbol): Implement.
13587 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13588 (_initialize_ada_language): Attach ada_new_objfile_observer
13589 and ada_free_objfile_observer.
13591 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13593 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13594 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13595 struct block * parameter.
13596 (ada_lookup_symbol_list_worker): Constify local variable "block".
13597 Remove cast which is no longer necessary.
13599 2014-02-10 Doug Evans <xdje42@gmail.com>
13601 Add Guile as an extension language.
13602 * NEWS: Mention Guile scripting.
13603 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13604 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13605 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13606 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13607 (CLIBS): Add GUILE_LIBS.
13608 (install-guile): New rule.
13609 (guile.o): New rule.
13610 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13611 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13612 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13613 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13614 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13615 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13616 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13617 * configure.ac: New option --with-guile.
13618 * configure: Regenerate.
13619 * config.in: Regenerate.
13620 * auto-load.c: Remove #include "python/python.h". Add #include
13621 "gdb/section-scripts.h".
13622 (source_section_scripts): Handle Guile scripts.
13623 (_initialize_auto_load): Add name of Guile objfile script to
13624 scripts-directory help text.
13625 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13626 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13627 (struct breakpoint): New member scm_bp_object.
13628 * defs.h (enum command_control_type): New value guile_control.
13629 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13631 (show_user): Update comment.
13632 (_initialize_cli_cmds): Update help text for "show user". Update help
13633 text for max-user-call-depth.
13634 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13636 (multi_line_command_p): Add guile_control.
13637 (print_command_lines): Handle guile_control.
13638 (execute_control_command, recurse_read_control_structure): Ditto.
13639 (process_next_line): Recognize "guile" commands.
13640 * disasm.c (gdb_disassemble_info): Make non-static.
13641 * disasm.h: #include "dis-asm.h".
13642 (struct gdbarch): Add forward decl.
13643 (gdb_disassemble_info): Declare.
13644 * extension.c: #include "guile/guile.h".
13645 (extension_languages): Add guile.
13646 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13647 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13648 * gdbtypes.c (get_unsigned_type_max): New function.
13649 (get_signed_type_minmax): New function.
13650 * gdbtypes.h (get_unsigned_type_max): Declare.
13651 (get_signed_type_minmax): Declare.
13652 * guile/README: New file.
13653 * guile/guile-internal.h: New file.
13654 * guile/guile.c: New file.
13655 * guile/guile.h: New file.
13656 * guile/scm-arch.c: New file.
13657 * guile/scm-auto-load.c: New file.
13658 * guile/scm-block.c: New file.
13659 * guile/scm-breakpoint.c: New file.
13660 * guile/scm-disasm.c: New file.
13661 * guile/scm-exception.c: New file.
13662 * guile/scm-frame.c: New file.
13663 * guile/scm-gsmob.c: New file.
13664 * guile/scm-iterator.c: New file.
13665 * guile/scm-lazy-string.c: New file.
13666 * guile/scm-math.c: New file.
13667 * guile/scm-objfile.c: New file.
13668 * guile/scm-ports.c: New file.
13669 * guile/scm-pretty-print.c: New file.
13670 * guile/scm-safe-call.c: New file.
13671 * guile/scm-string.c: New file.
13672 * guile/scm-symbol.c: New file.
13673 * guile/scm-symtab.c: New file.
13674 * guile/scm-type.c: New file.
13675 * guile/scm-utils.c: New file.
13676 * guile/scm-value.c: New file.
13677 * guile/lib/gdb.scm: New file.
13678 * guile/lib/gdb/boot.scm: New file.
13679 * guile/lib/gdb/experimental.scm: New file.
13680 * guile/lib/gdb/init.scm: New file.
13681 * guile/lib/gdb/iterator.scm: New file.
13682 * guile/lib/gdb/printing.scm: New file.
13683 * guile/lib/gdb/types.scm: New file.
13684 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13685 (VPATH): Add $(GUILE_SRCDIR).
13686 (GUILE_DIR): New variable.
13687 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13688 (all): Add stamp-guile dependency.
13689 (stamp-guile): New rule.
13690 (clean-guile, install-guile, uninstall-guile): New rules.
13691 (install-only): Add install-guile dependency.
13692 (uninstall): Add uninstall-guile dependency.
13693 (clean): Add clean-guile dependency.
13695 2014-02-09 Doug Evans <xdje42@gmail.com>
13697 Revert this patch (which I approved, mea culpa).
13699 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13701 * Makefile.in (all-lib): Remove.
13702 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13704 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13706 Fix Python stack corruption.
13707 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13710 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13712 * Makefile.in (all-lib): Remove.
13713 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13715 2014-02-07 Doug Evans <dje@google.com>
13717 * extension-priv.h (extension_language_script_ops): Add comment.
13718 (extension_language_ops): Add comment.
13719 (active_ext_lang_state): Fix typo in comment.
13721 2014-02-07 Pedro Alves <palves@redhat.com>
13723 PR breakpoints/16292
13724 * infrun.c (handle_signal_stop) <signal arrives while stepping
13725 over a breakpoint>: Switch back to the stepping thread.
13727 2014-02-07 Yao Qi <yao@codesourcery.com>
13729 * target.c (target_xfer_partial): Return zero if LEN is zero.
13731 2014-02-07 Yao Qi <yao@codesourcery.com>
13733 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13734 (ld_so_xfer_auxv): Likewise.
13735 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13736 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13737 * corelow.c (core_xfer_partial): Likewise.
13738 * ctf.c (ctf_xfer_partial): Likewise.
13739 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13740 (darwin_xfer_partial): Likewise.
13741 * exec.c (exec_xfer_partial): Likewise.
13742 * gnu-nat.c (gnu_xfer_partial): Likewise.
13743 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13744 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13745 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13746 * linux-nat.c (linux_xfer_siginfo): Likewise.
13747 (linux_proc_xfer_spu): Likewise.
13748 * procfs.c (procfs_xfer_partial): Likewise.
13749 * record-full.c (record_full_xfer_partial): Likewise.
13750 (record_full_core_xfer_partial): Likewise.
13751 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13752 * remote.c (remote_write_qxfer): Likewise.
13753 (remote_write_qxfer, remote_read_qxfer): Likewise.
13754 (remote_xfer_partial): Likewise.
13755 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13756 (rs6000_xfer_shared_libraries): Likewise.
13757 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13758 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13759 (spu_xfer_partial): Likewise.
13760 * target.c (memory_xfer_partial_1): Likewise.
13761 * tracepoint.c (tfile_xfer_partial): Likewise.
13762 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13763 (windows_xfer_partial): Likewise.
13765 2014-02-07 Yao Qi <yao@codesourcery.com>
13767 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13769 (core_xfer_shared_libraries_aix): Likewise.
13770 * gdbarch.c, gdbarch.h: Regenerated.
13771 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13772 ULONGEST. Change 'len_avail' type to ULONGEST.
13773 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13774 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13776 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13778 2014-02-07 Yao Qi <yao@codesourcery.com>
13780 * corefile.c (memory_error): Get 'exception' from ERR and pass
13781 'exception' to throw_error.
13783 2014-02-06 Doug Evans <xdje42@gmail.com>
13785 * configure.ac (libpython checking): Remove all but python.o from
13786 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13787 * configure: Regenerate.
13789 * Makefile.in (SFILES): Add extension.c.
13790 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13791 (COMMON_OBS): Add extension.o.
13792 * extension.h: New file.
13793 * extension-priv.h: New file.
13794 * extension.c: New file.
13796 * python/python-internal.h: #include "extension.h".
13797 (gdbpy_auto_load_enabled): Declare.
13798 (gdbpy_apply_val_pretty_printer): Declare.
13799 (gdbpy_apply_frame_filter): Declare.
13800 (gdbpy_preserve_values): Declare.
13801 (gdbpy_breakpoint_cond_says_stop): Declare.
13802 (gdbpy_breakpoint_has_cond): Declare.
13803 (void source_python_script_for_objfile): Delete.
13804 * python/python.c: #include "extension-priv.h".
13805 Delete inclusion of "observer.h".
13806 (extension_language_python): Moved here and renamed from
13807 script_language_python in py-auto-load.c.
13808 Redefined to be of type extension_language_defn.
13809 (python_extension_script_ops): New global.
13810 (python_extension_ops): New global.
13811 (struct python_env): New member previous_active.
13812 (restore_python_env): Call restore_active_ext_lang.
13813 (ensure_python_env): Call set_active_ext_lang.
13814 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13816 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13818 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13820 (gdbpy_eval_from_control_command): Renamed from
13821 eval_python_from_control_command, made static. New arg extlang.
13822 (gdbpy_source_script) Renamed from source_python_script, made static.
13824 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13825 result to int. New arg extlang.
13826 (gdbpy_source_objfile_script): Renamed from
13827 source_python_script_for_objfile, made static. New arg extlang.
13828 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13829 static. New args extlang, extlang_printers. Change result type to
13831 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13832 static. New arg extlang. Rename arg printers to extlang_printers
13833 and change type to ext_lang_type_printers *.
13834 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13835 static. Replace argument arg with extlang, extlang_printers.
13836 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13837 (!HAVE_PYTHON, source_python_script): Delete.
13838 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13839 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13840 (!HAVE_PYTHON, start_type_printers): Delete.
13841 (!HAVE_PYTHON, apply_type_printers): Delete.
13842 (!HAVE_PYTHON, free_type_printers): Delete.
13843 (_initialize_python): Delete call to observer_attach_before_prompt.
13844 (finalize_python): Set/restore active extension language.
13845 (gdbpy_finish_initialization) Renamed from
13846 finish_python_initialization, made static. New arg extlang.
13847 (gdbpy_initialized): New function.
13848 * python/python.h: #include "extension.h". Delete #include
13849 "value.h", "mi/mi-cmds.h".
13850 (extension_language_python): Declare.
13851 (GDBPY_AUTO_FILE_NAME): Delete.
13852 (enum py_bt_status): Moved to extension.h and renamed to
13853 ext_lang_bt_status.
13854 (enum frame_filter_flags): Moved to extension.h.
13855 (enum py_frame_args): Moved to extension.h and renamed to
13856 ext_lang_frame_args.
13857 (finish_python_initialization): Delete.
13858 (eval_python_from_control_command): Delete.
13859 (source_python_script): Delete.
13860 (apply_val_pretty_printer): Delete.
13861 (apply_frame_filter): Delete.
13862 (preserve_python_values): Delete.
13863 (gdbpy_script_language_defn): Delete.
13864 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13865 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13867 * auto-load.c: #include "extension.h".
13868 (GDB_AUTO_FILE_NAME): Delete.
13869 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13870 (script_language_gdb): Delete, moved to extension.c and renamed to
13871 extension_language_gdb.
13872 (source_gdb_script_for_objfile): Delete.
13873 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13874 (loaded_script): Change type of language member to
13875 struct extension_language_defn *.
13876 (init_loaded_scripts_info): Initialize
13877 unsupported_script_warning_printed.
13878 (maybe_add_script): Make static. Change type of language arg to
13879 struct extension_language_defn *.
13880 (clear_section_scripts): Reset unsupported_script_warning_printed.
13881 (auto_load_objfile_script_1): Rewrite to use extension language API.
13882 (auto_load_objfile_script): Make public. Remove support-compiled-in
13883 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13884 (source_section_scripts): Rewrite to use extension language API.
13885 (load_auto_scripts_for_objfile): Rewrite to use
13886 auto_load_scripts_for_objfile.
13887 (collect_matching_scripts_data): Change type of language member to
13888 struct extension_language_defn *.
13889 (auto_load_info_scripts): Change type of language arg to
13890 struct extension_language_defn *.
13891 (unsupported_script_warning_print): New function.
13892 (script_not_found_warning_print): Make static.
13893 (_initialize_auto_load): Rewrite construction of scripts-directory
13895 * auto-load.h (struct objfile): Add forward decl.
13896 (struct script_language): Delete.
13897 (struct auto_load_pspace_info): Add forward decl.
13898 (struct extension_language_defn): Add forward decl.
13899 (maybe_add_script): Delete.
13900 (auto_load_objfile_script): Declare.
13901 (script_not_found_warning_print): Delete.
13902 (auto_load_info_scripts): Update prototype.
13903 (auto_load_gdb_scripts_enabled): Declare.
13904 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13905 auto_load_python_scripts_enabled and made public.
13906 (script_language_python): Delete, moved to python.c.
13907 (gdbpy_script_language_defn): Delete.
13908 (info_auto_load_python_scripts): Update to use
13909 extension_language_python.
13911 * breakpoint.c (condition_command): Replace call to
13912 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13913 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13914 with call to breakpoint_ext_lang_cond_says_stop.
13915 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13916 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13917 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13918 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13920 (local_setattro): Print name of extension language with existing
13923 * valprint.c (val_print, value_print): Update to call
13924 apply_ext_lang_val_pretty_printer.
13925 * cp-valprint.c (cp_print_value): Update call to
13926 apply_ext_lang_val_pretty_printer.
13927 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13928 (gdbpy_apply_val_pretty_printer): Renamed from
13929 apply_val_pretty_printer. New arg extlang.
13930 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13932 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13933 extension language API.
13934 * cli/cli-script.c (execute_control_command): Update to call
13935 eval_ext_lang_from_control_command.
13937 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13938 enum ext_lang_bt_status values. Update call to
13939 apply_ext_lang_frame_filter.
13940 (mi_cmd_stack_list_locals): Ditto.
13941 (mi_cmd_stack_list_args): Ditto.
13942 (mi_cmd_stack_list_variables): Ditto.
13943 * mi/mi-main.c: Delete #include "python/python-internal.h".
13944 Add #include "extension.h".
13945 (mi_cmd_list_features): Replace reference to python internal variable
13946 gdb_python_initialized with call to ext_lang_initialized_p.
13948 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13949 Update to use enum ext_lang_frame_args. Update to call
13950 apply_ext_lang_frame_filter.
13951 * python/py-framefilter.c (extract_sym): Update to use enum
13952 ext_lang_bt_status.
13953 (extract_value, py_print_type, py_print_value): Ditto.
13954 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13955 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13956 (py_print_frame): Ditto.
13957 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13958 New arg extlang. Update to use enum ext_lang_bt_status.
13960 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13961 finish_python_initialization. Replace with call to
13962 finish_ext_lang_initialization.
13964 * typeprint.c (do_free_global_table): Update to call
13965 free_ext_lang_type_printers.
13966 (create_global_typedef_table): Update to call
13967 start_ext_lang_type_printers.
13968 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13969 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13970 (type_print_options): Change type of global_printers from "void *"
13971 to "struct ext_lang_type_printers *".
13973 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13974 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13975 (gdbpy_preserve_values): Renamed from preserve_python_values.
13977 (!HAVE_PYTHON, preserve_python_values): Delete.
13979 * utils.c (quit_flag): Delete, moved to extension.c.
13980 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13983 * eval.c: Delete #include "python/python.h".
13984 * main.c: Delete #include "python/python.h".
13986 * defs.h: Update comment.
13988 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13992 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13994 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13997 2014-02-05 Yao Qi <yao@codesourcery.com>
13999 * remote.c (remote_pass_signals): Remove local 'buf' and use
14001 (remote_program_signals): Likewise.
14003 2014-02-05 Yao Qi <yao@codesourcery.com>
14005 * ctf.c: Include "inferior.h" and "gdbthread.h".
14006 (CTF_PID): A new macro.
14007 (ctf_open): Call inferior_appeared and add_thread_silent.
14008 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14009 (ctf_thread_alive): New function.
14010 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14012 2014-02-05 Yao Qi <yao@codesourcery.com>
14016 2013-05-24 Yao Qi <yao@codesourcery.com>
14018 * tracepoint.c (TFILE_PID): Remove.
14019 (tfile_open): Don't add thread and inferior.
14020 (tfile_close): Don't set 'inferior_ptid'. Don't call
14021 exit_inferior_silent.
14022 (tfile_thread_alive): Remove.
14023 (init_tfile_ops): Don't set field 'to_thread_alive' of
14026 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14028 * remote.c (remote_start_remote): Call remote_check_symbols even
14029 if only symbol-file (not file) has been given.
14031 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14033 * gdbarch.sh (skip_entrypoint): New callback.
14034 * gdbarch.c, gdbarch.h: Regenerate.
14035 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14036 * infrun.c (fill_in_stop_func): Likewise.
14037 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14038 (ppc_elfv2_elf_make_msymbol_special): New function.
14039 (ppc_elfv2_skip_entrypoint): Likewise.
14040 (ppc_linux_init_abi): Install them for ELFv2.
14042 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14044 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14045 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14046 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14047 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14048 structures returned in GPRs.
14050 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14052 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14053 offset to the stack parameter list for the ELFv2 ABI.
14055 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14057 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14058 set_gdbarch_convert_from_func_ptr_addr and
14059 set_gdbarch_elf_make_msymbol_special for ELFv1.
14060 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14061 function descriptors on ELFv1.
14062 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14063 set up r12 at function entry.
14065 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14067 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14068 (struct gdbarch_tdep): New member elf_abi.
14070 * rs6000-tdep.c: Include "elf/ppc64.h".
14071 (rs6000_gdbarch_init): Detect ELF ABI version.
14073 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14075 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14076 within a register pair holding a DFP 128-bit value on little-endian.
14077 (ppc64_sysv_abi_return_value_base): Likewise.
14078 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14079 (dfp_pseudo_register_write): Likewise.
14081 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14083 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14084 offset on little-endian when passing _Decimal32.
14085 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14087 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14089 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14090 of the overlapped FP register within the VSX register on little-
14092 (efpr_pseudo_register_write): Likewise.
14094 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14096 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14097 offset on little-endian when passing small structures.
14099 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14101 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14102 (struct ppc64_sysv_argpos): New data structure.
14103 (ppc64_sysv_abi_push_float): Remove.
14104 (ppc64_sysv_abi_push_val): New function.
14105 (ppc64_sysv_abi_push_integer): Likewise.
14106 (ppc64_sysv_abi_push_freg): Likewise.
14107 (ppc64_sysv_abi_push_vreg): Likewise.
14108 (ppc64_sysv_abi_push_param): Likewise.
14109 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14110 (ppc64_sysv_abi_return_value_base): New function.
14111 (ppc64_sysv_abi_return_value): Refactor to use it.
14113 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14115 * NEWS: Document new target powerpc64le-*-linux*.
14117 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14119 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14120 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14122 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14123 register set used in ELF core dumps. Add floating-point register set.
14125 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14127 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14128 dwarf2_to_gdb[] table using symbolic constants. Adjust
14129 penultimate entry from number representing the PC register
14130 to symbolic constant representing the MDR register. Add
14131 constant for the PC register to the end of the table.
14133 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14135 * bsd-kvm.c: Include <sys/param.h>
14137 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14139 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14141 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14143 * ada-lang.h (clear_ada_sym_cache): Delete.
14145 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14147 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14149 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14151 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14152 the sigreturn register save area only if the syscall is
14155 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14157 * valops.c (value_slice): Minor reformatting.
14159 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14161 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14163 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14165 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14166 New static globals.
14167 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14168 (ada_ignore_descriptive_types_p): New static global.
14169 (find_parallel_type_by_descriptive_type): Return immediately
14170 if ada_ignore_descriptive_types_p is set.
14171 (_initialize_ada_language): Register new commands "maintenance
14172 set ada", "maintenance show ada", "maintenance set ada
14173 ignore-descriptive-types" and "maintenance show ada
14174 ignore-descriptive-types".
14175 * NEWS: Add entry for new "maint ada set/show
14176 ignore-descriptive-types" commands.
14178 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14180 * record-btrace.c (record_btrace_close): Call btrace_teardown
14183 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14185 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14188 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14190 * ada-typeprint (type_is_full_subrange_of_target_type):
14192 (print_range): Add parameter bounds_prefered_p. If not set,
14193 try printing range types using the name of their base type.
14194 (print_range_type): Add parameter bounds_prefered_p.
14195 Use it in call to print_range.
14196 (print_array_type, ada_print_type): Update calls to print_range
14197 and print_range_type.
14199 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14201 * ada-typeprint.c (print_array_type, print_choices, print_range)
14202 (print_range_bound, print_dynamic_range_bound, print_range_type):
14203 Remove declaration.
14205 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14207 * ada-typeprint.c (print_range): Add missing empty line
14208 after local declaration.
14210 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14212 * ada-valprint.c (print_optional_low_bound): Get index_type's
14213 target type for as long as it is a TYPE_CODE_RANGE.
14215 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14217 * procfs.c (procfs_make_note_section): Remove assertion and
14218 associated comment.
14220 2014-01-24 Yao Qi <yao@codesourcery.com>
14222 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14223 * corelow.c (get_core_siginfo): Likewise.
14225 2014-01-24 Yao Qi <yao@codesourcery.com>
14227 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14228 ULONGEST. Don't check 'len' is negative.
14229 (remote_write_bytes): Change type of 'len' to ULONGEST.
14231 2014-01-23 Tom Tromey <tromey@redhat.com>
14234 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14235 Handle exception from frame.block.
14236 (FrameVars.fetch_frame_locals): Likewise.
14238 2014-01-23 Tom Tromey <tromey@redhat.com>
14241 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14242 on a NULL pointer. Move "goto error" to correct place.
14244 2014-01-23 Tom Tromey <tromey@redhat.com>
14247 * python/py-framefilter.c (apply_frame_filter): Call
14248 ensure_python_env after computing gdbarch.
14250 2014-01-23 Yao Qi <yao@codesourcery.com>
14252 * target.c (raw_memory_xfer_partial): Change argument type
14253 from void * to gdb_byte *.
14254 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14256 2014-01-22 Doug Evans <dje@google.com>
14258 New gdbserver option --debug-format=timestamp.
14259 * NEWS: Mention it.
14261 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14263 * syscalls/s390x-linux.xml: New file.
14264 * syscalls/s390-linux.xml: New file.
14265 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14266 (XML_SYSCALL_FILENAME_S390X): Likewise.
14267 (op_svc): New enum value for SVC opcode.
14268 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14269 (s390_linux_get_syscall_number): New function.
14270 (s390_gdbarch_init): Register '*get_syscall_number' and the
14271 syscall xml file name.
14272 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14273 "s390-linux.xml" and "s390x-linux.xml".
14274 * NEWS: Announce new feature.
14276 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14278 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14280 2014-01-22 Pedro Alves <palves@redhat.com>
14282 * xtensa-config.c: Include defs.h.
14284 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14286 * common/common-utils.h: Add "ARI:" comment beside __func__
14289 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14291 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14292 documentation a bit.
14294 2014-01-21 Roland McGrath <mcgrathr@google.com>
14296 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14297 * configure: Regenerate.
14298 * aclocal.m4: Regenerate.
14299 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14300 New substituted variables.
14301 (install-strip): New target.
14302 (INSTALL_SCRIPT): New substituted variable.
14303 (FLAGS_TO_PASS): Add it.
14304 (install-only): Use $(INSTALL_SCRIPT) rather than
14305 $(INSTALL_PROGRAM) for gcore.
14307 2014-01-20 Tom Tromey <tromey@redhat.com>
14309 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14312 2014-01-20 Tom Tromey <tromey@redhat.com>
14314 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14315 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14316 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14317 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14318 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14319 (struct cmd_list_element) <flags>: Remove.
14320 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14321 doc_allocated>: New fields.
14322 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14324 * maint.c (maintenance_do_deprecate): Update.
14325 * top.c (execute_command): Update.
14327 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14329 * xtensa-linux-nat.c: Include asm/ptrace.h.
14331 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14333 * Makefile.in (SFILES): Add d-support.c.
14334 (COMMON_OBS): Add d-support.o.
14335 * d-lang.h (d_parse_symbol): Add comment, now defined in
14337 * d-lang.c (parse_call_convention)
14338 (parse_attributes, parse_function_types)
14339 (parse_function_args, parse_type, parse_identifier)
14340 (call_convention_p, d_parse_symbol): Move functions to ...
14341 * d-support.c: ... New file.
14343 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14345 * d-lang.h (d_parse_symbol): Add declaration.
14346 * d-lang.c (extract_identifiers)
14347 (extract_type_info): Remove functions.
14348 (parse_call_convention, parse_attributes)
14349 (parse_function_types, parse_function_args)
14350 (parse_type, parse_identifier, call_convention_p)
14351 (d_parse_symbol): New functions.
14352 (d_demangle): Use d_parse_symbol to demangle D symbols.
14354 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14356 * d-lang.h (struct builtin_d_type): New data type.
14357 (builtin_d_type): Add declaration.
14358 * d-lang.c (d_language_arch_info, build_d_types)
14359 (builtin_d_type): New functions.
14360 (enum d_primitive_types): New data type.
14361 (d_language_defn): Change c_language_arch_info to
14362 d_language_arch_info.
14363 (d_type_data): New static variable.
14364 (_initialize_d_language): Initialize d_type_data.
14366 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14368 * d-lang.h (d_main_name): Add declaration.
14369 * d-lang.c (d_main_name): New function.
14370 * symtab.c (find_main_name): Add call to d_main_name.
14372 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14374 * d-lang.c (d_language_defn): Change macro_expansion_c to
14375 macro_expansion_no.
14377 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14379 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14381 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14383 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14384 gdb_exception" declaration.
14385 * remote.c (getpkt_or_notif_sane): Likewise.
14387 2014-01-17 Doug Evans <dje@google.com>
14389 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14390 function, contents of dirnames_to_char_ptr_vec_append moved here.
14391 (delim_string_to_char_ptr_vec): New function.
14392 (dirnames_to_char_ptr_vec_append): Rewrite.
14393 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14395 2014-01-17 Doug Evans <dje@google.com>
14397 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14399 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14400 #include "common-utils.h".
14401 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14402 * common/vec.h (VEC_ASSERT_PASS): Update.
14403 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14404 (MACH_CHECK_ERROR): Update.
14406 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14408 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14410 * gdbarch.h: Regenerate.
14412 2014-01-16 Tom Tromey <tromey@redhat.com>
14414 * value.c (struct value) <regnum>: Move earlier.
14416 2014-01-16 Tom Tromey <tromey@redhat.com>
14418 * remote.c (extended_remote_create_inferior): Rename from
14419 extended_remote_create_inferior_1. Add "ops" argument. Remove
14420 old implementation.
14422 2014-01-16 Pedro Alves <palves@redhat.com>
14424 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14425 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14428 2014-01-16 Doug Evans <dje@google.com>
14430 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14434 * btrace.h (btrace_thread_flag): New.
14435 (struct btrace_thread_info) <flags>: New.
14436 * record-btrace.c (record_btrace_resume_thread)
14437 (record_btrace_find_thread_to_move, btrace_step_no_history)
14438 (btrace_step_stopped, record_btrace_start_replaying)
14439 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14440 (record_btrace_find_resume_thread): New.
14441 (record_btrace_resume, record_btrace_wait): Extend.
14442 (record_btrace_can_execute_reverse): New.
14443 (record_btrace_open): Fail in non-stop mode.
14444 (record_btrace_set_replay): Split into this, ...
14445 (record_btrace_stop_replaying): ... this, ...
14446 (record_btrace_clear_histories): ... and this.
14447 (init_record_btrace_ops): Init to_can_execute_reverse.
14448 * NEWS: Announce it.
14450 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14452 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14453 (forward_target_decr_pc_after_break)
14454 (target_decr_pc_after_break): New.
14455 * target.c (forward_target_decr_pc_after_break)
14456 (target_decr_pc_after_break): New.
14457 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14458 instead of gdbarch_decr_pc_after_break.
14459 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14460 instead of gdbarch_decr_pc_after_break.
14461 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14462 instead of gdbarch_decr_pc_after_break.
14463 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14464 instead of gdbarch_decr_pc_after_break.
14465 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14466 instead of gdbarch_decr_pc_after_break.
14467 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14468 instead of gdbarch_decr_pc_after_break.
14470 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14472 * btrace.c: Include regcache.h.
14473 (btrace_add_pc): New.
14474 (btrace_enable): Call btrace_add_pc.
14475 (btrace_is_empty): New.
14476 * btrace.h (btrace_is_empty): New.
14477 * record-btrace.c (require_btrace, record_btrace_info): Call
14480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14482 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14483 Support delta reads.
14484 (linux_disable_btrace): Change return type.
14485 * common/linux-btrace.h (linux_read_btrace): Change parameters
14486 and return type to allow error reporting. Update users.
14487 (linux_disable_btrace): Change return type. Update users.
14488 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14490 (btrace_error): New.
14491 (btrace_block) <begin>: Comment on BEGIN == 0.
14492 * btrace.c (btrace_compute_ftrace): Start from the end of
14494 (btrace_stitch_trace, btrace_clear_history): New.
14495 (btrace_fetch): Read delta trace, return if replaying.
14496 (btrace_clear): Move clear history code to btrace_clear_history.
14497 (parse_xml_btrace): Throw an error if parsing failed.
14498 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14499 and return type to allow error reporting.
14500 (target_read_btrace): Change parameters and return type to allow
14502 * target.c (target_read_btrace): Update.
14503 * remote.c (remote_read_btrace): Support delta reads. Pass
14505 * NEWS: Announce it.
14507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14509 * record.h (record_btrace_frame_unwind)
14510 (record_btrace_tailcall_frame_unwind): New declarations.
14511 * dwarf2-frame: Include record.h
14512 (dwarf2_frame_cfa): Throw an error for btrace frames.
14513 * record-btrace.c: Include hashtab.h.
14514 (btrace_get_bfun_name): New.
14515 (btrace_call_history): Call btrace_get_bfun_name.
14516 (struct btrace_frame_cache): New.
14518 (bfcache_hash, bfcache_eq, bfcache_new): New.
14519 (btrace_get_frame_function): New.
14520 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14521 (record_btrace_frame_this_id): Compute own id.
14522 (record_btrace_frame_prev_register): Provide PC, throw_error
14523 for all other registers.
14524 (record_btrace_frame_sniffer): Detect btrace frames.
14525 (record_btrace_tailcall_frame_sniffer): New.
14526 (record_btrace_frame_dealloc_cache): New.
14527 (record_btrace_frame_unwind): Add new functions.
14528 (record_btrace_tailcall_frame_unwind): New.
14529 (_initialize_record_btrace): Allocate cache.
14530 * btrace.c (btrace_clear): Call reinit_frame_cache.
14531 * NEWS: Announce it.
14533 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14535 * record-btrace.c (record_btrace_set_replay)
14536 (record_btrace_goto_begin, record_btrace_goto_end)
14537 (record_btrace_goto): New.
14538 (init_record_btrace_ops): Initialize them.
14539 * NEWS: Announce it.
14541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14543 * record-btrace.c (record_btrace_find_new_threads)
14544 (record_btrace_thread_alive): New.
14545 (init_record_btrace_ops): Initialize to_find_new_threads and
14548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14550 * record-btrace.c (record_btrace_resume): New.
14551 (record_btrace_wait): New.
14552 (init_record_btrace_ops): Initialize to_wait and to_resume.
14554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14556 * record-btrace.c (record_btrace_xfer_partial)
14557 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14558 (record_btrace_allow_memory_access): New.
14559 (init_record_btrace_ops): Initialize new methods.
14560 * target.c (raw_memory_xfer_partial): Bail out if target reports
14561 that this memory is not available.
14563 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14565 * target.h (target_ops) <to_insert_breakpoint>
14566 <to_remove_breakpoint>: Add target_ops parameter.
14567 (forward_target_insert_breakpoint): New.
14568 (forward_target_remove_breakpoint): New.
14569 (memory_remove_breakpoint, memory_insert_breakpoint):
14570 Add target_ops parameter.
14571 * target.c (target_insert_breakpoint): Split into this and ...
14572 (forward_target_insert_breakpoint): ... this.
14573 (target_remove_breakpoint): Split into this and ...
14574 (forward_target_remove_breakpoint): ... this.
14575 (debug_to_insert_breakpoint): Add target_ops parameter.
14576 Call forward_target_insert_breakpoint.
14577 (debug_to_remove_breakpoint): Add target_ops parameter.
14578 Call forward_target_remove_breakpoint.
14579 (update_current_target): Do not inherit or default to_insert_breakpoint
14580 and to_remove_breakpoint.
14581 * corelow.c (ignore): Add target_ops parameter.
14582 * exec.c (ignore): Add target_ops parameter.
14583 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14584 Add target_ops parameter.
14585 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14586 Add target_ops parameter.
14587 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14588 Add target_ops parameter.
14589 * record-full.c (record_full_beneath_to_insert_breakpoint)
14590 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14591 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14592 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14593 (record_full_core_remove_breakpoint): Add target_ops parameter.
14595 (record_full_beneath_to_insert_breakpoint_ops)
14596 (record_full_beneath_to_remove_breakpoint_ops)
14597 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14598 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14599 tmp_to_remove_breakpoint_ops,
14600 record_full_beneath_to_insert_breakpoint_ops, and
14601 record_full_beneath_to_remove_breakpoint_ops.
14602 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14603 (m32r_remove_breakpoint): Add target_ops parameter.
14604 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14605 Add target_ops parameter.
14606 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14607 Add target_ops parameter.
14609 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14610 Markus Metzger <markus.t.metzger@intel.com>
14612 * record-btrace.c: Include frame-unwind.h.
14613 (record_btrace_frame_unwind_stop_reason)
14614 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14615 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14617 (init_record_btrace_ops): Install it.
14619 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14621 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14624 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14626 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14629 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14631 * frame-unwind.c: Include target.h.
14632 (frame_unwind_try_unwinder): New function with code from ...
14633 (frame_unwind_find_by_frame): ... here. New variable
14634 unwinder_from_target, call also target_get_unwinder)
14635 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14636 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14637 * target.h (struct target_ops): New fields to_get_unwinder and
14638 to_get_tailcall_unwinder.
14639 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14643 * record-btrace.c (record_btrace_fetch_registers)
14644 (record_btrace_store_registers)
14645 (record_btrace_to_prepare_to_store): New.
14646 (init_record_btrace_ops): Add the above.
14648 2014-01-16 Tom Tromey <tromey@redhat.com>
14650 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14651 * target.h (struct target_ops) <to_prepare_to_store>: Add
14653 (target_prepare_to_store): Add argument.
14654 * target.c (debug_to_prepare_to_store): Add argument.
14655 (update_current_target): Update.
14656 * remote.c (remote_prepare_to_store): Add 'self' argument.
14657 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14658 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14659 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14660 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14662 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14663 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14664 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14665 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14666 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14670 * btrace.h (replay) <replay>: New.
14671 (btrace_is_replaying): New.
14672 * btrace.c (btrace_clear): Free replay iterator.
14673 (btrace_is_replaying): New.
14674 * record-btrace.c (record_btrace_is_replaying): New.
14675 (record_btrace_info): Print insn number if replaying.
14676 (record_btrace_insn_history): Start at replay position.
14677 (record_btrace_call_history): Start at replay position.
14678 (init_record_btrace_ops): Init to_record_is_replaying.
14680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14682 * record-btrace.c (record_btrace_insn_history_range): Include
14684 (record_btrace_insn_history_from): Adjust range.
14685 (record_btrace_call_history_range): Include
14687 (record_btrace_call_history_from): Adjust range.
14688 * NEWS: Announce changes.
14690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14692 * record.h (enum record_print_flag)
14693 <record_print_indent_calls>: New.
14694 * record.c (get_call_history_modifiers): Recognize /c modifier.
14695 (_initialize_record): Document /c modifier.
14696 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14697 Reorder fields. Optionally indent the function name. Update
14699 * NEWS: Announce changes.
14701 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14703 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14705 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14707 * btrace.c (ftrace_new_function): Start counting at one.
14708 * record-btrace.c (record_btrace_info): Adjust number of calls
14710 * NEWS: Announce it.
14712 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14714 * record-btrace.c (btrace_call_history_insn_range): Print
14715 insn range as [begin, end].
14717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14719 * btrace.h (struct btrace_func_link): New.
14720 (enum btrace_function_flag): New.
14721 (struct btrace_inst): Rename to ...
14722 (struct btrace_insn): ...this. Update all users.
14723 (struct btrace_func) <ibegin, iend>: Remove.
14724 (struct btrace_func_link): New.
14725 (struct btrace_func): Rename to ...
14726 (struct btrace_function): ...this. Update all users.
14727 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14728 (number, level, flags>: New.
14729 (struct btrace_insn_iterator): Rename to ...
14730 (struct btrace_insn_history): ...this.
14732 (struct btrace_insn_iterator, btrace_call_iterator): New.
14733 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14734 (struct btrace_target_info) <begin, end, level>
14735 <insn_history, call_history>: New.
14736 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14737 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14738 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14739 (btrace_call_number, btrace_call_begin, btrace_call_end)
14740 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14741 (btrace_find_function_by_number, btrace_set_insn_history)
14742 (btrace_set_call_history): New.
14743 * btrace.c (btrace_init_insn_iterator)
14744 (btrace_init_func_iterator, compute_itrace): Remove.
14745 (ftrace_print_function_name, ftrace_print_filename)
14746 (ftrace_skip_file): Change
14747 parameter to const.
14748 (ftrace_init_func): Remove.
14749 (ftrace_debug): Use new btrace_function fields.
14750 (ftrace_function_switched): Also consider gaining and
14751 losing symbol information).
14752 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14753 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14754 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14756 (ftrace_new_function): Move. Remove debug print.
14757 (ftrace_update_lines, ftrace_update_insns): New.
14758 (ftrace_update_function): Check for call, ret, and jump.
14759 (compute_ftrace): Renamed to ...
14760 (btrace_compute_ftrace): ...this. Rewritten to compute call
14762 (btrace_fetch, btrace_clear): Updated.
14763 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14764 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14765 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14766 (btrace_call_number, btrace_call_begin, btrace_call_end)
14767 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14768 (btrace_find_function_by_number, btrace_set_insn_history)
14769 (btrace_set_call_history): New.
14770 * record-btrace.c (require_btrace): Use new btrace thread
14772 (record_btrace_info, btrace_insn_history)
14773 (record_btrace_insn_history, record_btrace_insn_history_range):
14774 Use new btrace thread info fields and new iterator.
14775 (btrace_func_history_src_line): Rename to ...
14776 (btrace_call_history_src_line): ...this. Use new btrace
14777 thread info fields.
14778 (btrace_func_history): Rename to ...
14779 (btrace_call_history): ...this. Use new btrace thread info
14780 fields and new iterator.
14781 (record_btrace_call_history, record_btrace_call_history_range):
14782 Use new btrace thread info fields and new iterator.
14784 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14786 * frame.h (frame_id_build_unavailable_stack_special): New.
14787 * frame.c (frame_id_build_unavailable_stack_special): New.
14789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14791 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14792 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14793 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14795 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14796 (i386_insn_is_jump, i386_jmp_p): New.
14797 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14798 insn_is_jump to gdbarch.
14799 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14800 * gdbarch.h: Regenerated.
14801 * gdbarch.c: Regenerated.
14802 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14803 (default_insn_is_jump): New.
14804 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14805 (default_insn_is_jump): New.
14807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14809 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14811 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14812 (btrace_read_type) <btrace_read_new>: Change to ...
14813 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14815 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14817 * common/linux-btrace.c (linux_read_btrace): Free trace from
14818 previous iteration.
14820 2014-01-15 Doug Evans <dje@google.com>
14822 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14825 2014-01-15 Tom Tromey <tromey@redhat.com>
14827 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14828 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14829 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14830 (set_objfile_main_name): New function.
14831 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14832 language_of_main>: New fields.
14833 (set_objfile_main_name): Declare.
14834 * symtab.c (find_main_name): Loop over objfiles to find the main
14836 (set_main_name): Now static.
14837 (get_main_info): Add comment.
14838 * symtab.h (set_main_name): Don't declare.
14840 2014-01-15 Tom Tromey <tromey@redhat.com>
14842 * symtab.c (main_progspace_key): New global.
14843 (struct main_info): New.
14844 (name_of_main, language_of_main): Remove.
14845 (get_main_info, main_info_cleanup): New function.
14846 (set_main_name, main_name, main_language): Use get_main_info.
14847 (_initialize_symtab): Initialize main_progspace_key.
14849 2014-01-15 Tom Tromey <tromey@redhat.com>
14851 * dbxread.c (process_one_symbol): Update.
14852 * dwarf2read.c (read_partial_die): Update.
14853 * symfile.c (set_initial_language): Call main_language.
14854 * symtab.c (language_of_main): Now static.
14855 (set_main_name): Add 'lang' parameter.
14856 (find_main_name): Update.
14857 (main_language): New function.
14858 (symtab_observer_executable_changed): Update.
14859 * symtab.h (set_main_name): Update.
14860 (language_of_main): Remove.
14861 (main_language): Declare.
14863 2014-01-15 Tom Tromey <tromey@redhat.com>
14865 * symfile.c (init_entry_point_info): Use new "initialized" field.
14867 * objfiles.h (struct entry_point) <initialized>: New field.
14868 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14869 (struct objfile) <ei>: ...here. Remove.
14870 * objfiles.c (entry_point_address_query): Update.
14872 2014-01-15 Tom Tromey <tromey@redhat.com>
14874 * objfiles.c (entry_point_address_query): Relocate entry point
14876 (objfile_relocate1): Do not relocate entry point address.
14877 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14878 <the_bfd_section_index>: New field.
14879 * symfile.c (init_entry_point_info): Find the entry point's
14882 2014-01-15 Tom Tromey <tromey@redhat.com>
14884 * solib-frv.c (enable_break): Use entry_point_address_query.
14886 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14888 * NEWS: Add note on improved process record-replay on
14889 arm*-linux* targets.
14891 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14893 * arm-tdep.c (enum arm_record_result): New enum.
14894 (arm_record_unsupported_insn): New function.
14895 (arm_record_coproc_data_proc): Removed.
14896 (thumb2_record_ld_st_multiple): New function.
14897 (thumb2_record_ld_st_dual_ex_tbb): New function.
14898 (thumb2_record_data_proc_sreg_mimm): New function.
14899 (thumb2_record_ps_dest_generic): New function.
14900 (thumb2_record_branch_misc_cntrl): New function.
14901 (thumb2_record_str_single_data): New function.
14902 (thumb2_record_ld_mem_hints): New function.
14903 (thumb2_record_ld_word): New function.
14904 (thumb2_record_lmul_lmla_div): New function.
14905 (thumb2_record_decode_insn_handler): New function.
14906 (decode_insn): Add thumb32 instruction handlers.
14908 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14910 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14911 (struct arm_linux_record_tdep): Declare.
14912 (arm_canonicalize_syscall): New function.
14913 (arm_all_but_pc_registers_record): New function.
14914 (arm_linux_syscall_record): New function.
14915 (arm_linux_init_abi): Add syscall recording constructs.
14916 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14917 decoding. (arm_record_coproc_data_proc): Update arm syscall
14919 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14920 <arm_syscall_record>: New field.
14921 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14924 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14926 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14927 register for push instruction recording.
14929 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14931 * arm-tdep.c (thumb_record_misc): Update to correct logical
14932 error while recording ldm, ldmia and pop instructions.
14934 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14936 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14938 2014-01-15 Pedro Alves <palves@redhat.com>
14940 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14941 (go32_resume, go32_fetch_registers, store_register)
14942 (go32_store_registers, go32_prepare_to_store)
14943 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14944 (go32_create_inferior, go32_can_run, go32_terminal_init)
14945 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14948 2014-01-15 Tom Tromey <tromey@redhat.com>
14950 * target.h (async_callback_ftype): New typedef.
14951 (struct target_ops) <to_async>: Use it.
14953 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14955 * python/py-value.c (get_field_type): Remove unnecessary curly
14956 braces for single-statement if block.
14958 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14960 * python/py-type.c (convert_field): Add missing empty line
14961 after declarations.
14963 2014-01-14 Doug Evans <dje@google.com>
14965 * symfile.h (expand_symtabs_matching): Renamed from
14966 expand_partial_symbol_names. Update prototype.
14967 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14968 * symfile.c (expand_symtabs_matching): Renamed from
14969 expand_partial_symbol_names. New args file_matcher, kind.
14970 Rename arg fun to symbol_matcher.
14971 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14972 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14973 ada_expand_partial_symbol_name.
14974 (ada_make_symbol_completion_list): Update to call
14975 expand_symtabs_matching.
14976 (ada_add_global_exceptions): Call expand_symtabs_matching.
14977 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14978 call map_symbol_filenames.
14979 * symtab.c (sources_info): Update to call map_symbol_filenames.
14980 (search_symbols): Call expand_symtabs_matching.
14981 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14982 (default_make_symbol_completion_list_break_on): Update to call
14983 expand_symtabs_matching.
14984 (make_source_files_completion_list): Update to call
14985 map_symbol_filenames.
14987 2014-01-14 Doug Evans <dje@google.com>
14989 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14990 (expand_symtabs_symbol_matcher_ftype): New typedef.
14991 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14992 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14993 * symfile.c (expand_partial_symbol_names): Update to use
14994 expand_symtabs_symbol_matcher_ftype.
14995 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14996 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14997 Arg name_matcher renamed to symbol_matcher.
14998 * psymtab.c (recursively_search_psymtabs): Update to use
14999 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15001 (expand_symtabs_matching_via_partial): Update to use
15002 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15003 Arg name_matcher renamed to symbol_matcher.
15005 2014-01-14 Doug Evans <dje@google.com>
15007 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15008 (map_partial_symbol_filenames): Ditto.
15009 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15010 (map_partial_symbol_filenames): Ditto.
15011 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15012 (map_partial_symbol_filenames): Ditto.
15013 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15014 (map_partial_symbol_filenames): Ditto.
15015 * symtab.c: Delete #include "psymtab.h".
15017 2014-01-14 Pedro Alves <palves@redhat.com>
15018 Tom Tromey <tromey@redhat.com>
15020 * infrun.c (use_displaced_stepping): Use find_record_target
15021 instead of RECORD_IS_USED.
15022 (adjust_pc_after_break): Use record_full_is_used instead of
15024 * record-btrace.c (record_btrace_open): Call record_preopen
15025 instead of checking RECORD_IS_USED.
15026 * record-full.c (record_full_shortname)
15027 (record_full_core_shortname): New globals.
15028 (record_full_is_used): New function.
15029 (find_full_open): Call record_preopen instead of checking
15031 (init_record_full_ops): Set the target's shortname to
15032 record_full_shortname.
15033 (init_record_full_core_ops): Set the target's shortname to
15034 record_full_core_shortname.
15035 * record-full.h (record_full_is_used): Declare.
15036 * record.c (find_record_target): Make extern.
15037 (record_preopen): New function.
15038 * record.h (RECORD_IS_USED): Delete macro.
15039 (find_record_target, record_preopen): Declare functions.
15041 2014-01-14 Yao Qi <yao@codesourcery.com>
15043 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15044 'len''s type to ULONGEST.
15045 (core_xfer_shared_libraries_aix): Likewise.
15046 * gdbarch.c, gdbarch.h: Regenerated.
15047 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15048 Change type of 'len' to ULONGEST.
15049 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15050 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15052 2014-01-14 Yao Qi <yao@codesourcery.com>
15054 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15055 type of 'len' to ULONGEST.
15056 (linux_xfer_osdata_processgroups): Likewise.
15057 (linux_xfer_osdata_threads): Likewise.
15058 (linux_xfer_osdata_fds): Likewise.
15059 (linux_xfer_osdata_isockets): Likewise.
15060 (linux_xfer_osdata_shm): Likewise.
15061 (linux_xfer_osdata_sem): Likewise.
15062 (linux_xfer_osdata_msg): Likewise.
15063 (linux_common_xfer_osdata): Likewise.
15064 (struct osdata_type) <getter>: Likewise.
15065 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15068 2014-01-14 Yao Qi <yao@codesourcery.com>
15070 * target.h (target_xfer_partial_ftype): Update.
15071 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15073 * aix-thread.c (aix_thread_xfer_partial): Change type of
15074 argument 'len' to ULONGEST.
15075 * auxv.c (procfs_xfer_auxv): Likewise.
15076 (ld_so_xfer_auxv): Likewise.
15077 (memory_xfer_auxv): Likewise.
15078 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15079 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15080 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15081 * corelow.c (core_xfer_partial): Likewise.
15082 * ctf.c (ctf_xfer_partial): Likewise.
15083 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15085 (darwin_read_dyld_info): Likewise.
15086 (darwin_xfer_partial): Likewise.
15087 * exec.c (section_table_xfer_memory_partial): Likewise.
15088 (exec_xfer_partial): Likewise.
15089 * exec.h (section_table_xfer_memory_partial): Update
15091 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15092 instead of plongest.
15093 (gnu_xfer_partial): Likewise.
15094 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15095 (ia64_hpux_xfer_solib_got): Likewise.
15096 (ia64_hpux_xfer_partial): Likewise.
15097 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15098 * inf-ptrace.c (inf_ptrace_xfer_partial):
15099 * inf-ttrace.c (inf_ttrace_xfer_partial):
15100 * linux-nat.c (linux_xfer_siginfo): Likewise.
15101 (linux_nat_xfer_partial): Likewise.
15102 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15103 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15104 * monitor.c (monitor_xfer_memory): Likewise.
15105 (monitor_xfer_partial): Likewise.
15106 * procfs.c (procfs_xfer_partial): Likewise.
15107 * record-full.c (record_full_xfer_partial): Likewise.
15108 (record_full_core_xfer_partial): Likewise.
15109 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15110 instead of plongest.
15111 (gdbsim_xfer_partial): Likewise.
15112 * remote.c (remote_xfer_partial): Likewise.
15113 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15114 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15116 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15117 (rs6000_xfer_shared_libraries): Likewise.
15118 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15119 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15120 (sparc_xfer_partial): Likewise.
15121 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15122 (spu_xfer_partial): Likewise.
15123 * spu-multiarch.c (spu_xfer_partial): Likewise.
15124 * target.c (target_read_live_memory): Likewise.
15125 (memory_xfer_live_readonly_partial): Likewise.
15126 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15127 (target_xfer_partial, default_xfer_partial): Likewise.
15128 (current_xfer_partial): Likewise.
15129 * tracepoint.c (tfile_xfer_partial): Likewise.
15130 * windows-nat.c (windows_xfer_memory): Likewise. Call
15131 pulongest instead of plongest.
15132 (windows_xfer_partial): Likewise.
15133 (windows_xfer_shared_libraries): Likewise.
15135 2014-01-14 Yao Qi <yao@codesourcery.com>
15137 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15138 target_xfer_partial_ftype.
15140 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15144 * valops.c (value_struct_elt_bitpos): New function
15145 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15146 object to 'None' if the field name is an empty string ("").
15147 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15148 attribute to look for a field when 'name' is 'None'.
15149 (get_field_type): New function
15151 2014-01-13 Doug Evans <dje@google.com>
15154 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15155 (try_open_dwop_file): Ditto.
15156 * gdb_bfd.c: #include "vec.h".
15157 (bfdp): New typedef.
15158 (struct gdb_bfd_data): New member included_bfds.
15159 (gdb_bfd_unref): Unref all included bfds.
15160 (gdb_bfd_record_inclusion): New function.
15161 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15163 2014-01-13 Tom Tromey <tromey@redhat.com>
15165 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15167 2014-01-13 Tom Tromey <tromey@redhat.com>
15169 * defs.h (use_windows): Remove.
15170 * gdb.c (main): Update.
15171 * main.c (captured_main, gdb_main): Update.
15172 * main.h (struct captured_main_args) <use_windows>: Remove.
15173 * top.c (use_windows): Remove.
15175 2014-01-13 Tom Tromey <tromey@redhat.com>
15177 * defs.h (deprecated_flush_hook): Remove.
15179 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15182 * linux-thread-db.c (try_thread_db_load): Add parameter
15183 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15184 (try_thread_db_load_from_pdir_1): Move it there from here.
15185 (try_thread_db_load_from_sdir): Update caller.
15186 (try_thread_db_load_from_dir): Move it there from here.
15188 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15190 * regformats/regdat.sh: Always rewrite the register file.
15192 2014-01-13 Pedro Alves <palves@redhat.com>
15194 * Makefile.in (CHECK_HEADERS): New variable.
15195 (check-headers:): New rule.
15197 2014-01-13 Tom Tromey <tromey@redhat.com>
15199 * cli/cli-setshow.c (do_set_command): Update.
15200 * defs.h (deprecated_set_hook): Remove.
15201 * top.c (deprecated_set_hook): Remove.
15203 2014-01-13 Pedro Alves <palves@redhat.com>
15205 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15206 the tracepoint if the PC is a pseudo-register.
15208 2014-01-13 Tom Tromey <tromey@redhat.com>
15210 * defs.h (XCALLOC): Remove.
15211 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15212 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15213 * dwarf2loc.c (allocate_piece_closure): Likewise.
15214 * elfread.c (elf_symfile_segments): Likewise.
15215 (elf_symfile_segments): Likewise.
15216 * gdbtypes.c (copy_type_recursive): Likewise.
15217 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15218 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15219 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15221 * mt-tdep.c (mt_gdbarch_init): Likewise.
15222 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15224 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15225 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15226 * registry.c (registry_alloc_data): Likewise.
15227 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15228 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15229 * serial.c (serial_fdopen_ops): Likewise.
15230 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15232 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15233 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15236 2014-01-13 Tom Tromey <tromey@redhat.com>
15238 * defs.h (XMALLOC): Remove.
15239 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15240 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15241 * cli-out.c (struct ui_out *): Likewise.
15242 * cli/cli-dump.c (add_dump_command): Likewise.
15243 (add_dump_command): Likewise.
15244 * complaints.c (get_complaints): Likewise.
15245 (find_complaint): Likewise.
15246 * dwarf2-frame.c (execute_cfa_program): Likewise.
15247 * dwarf2read.c (abbrev_table_read_table): Likewise.
15248 * gdbarch.sh: Likewise.
15249 * gdbarch.c: Rebuild.
15250 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15251 * interps.c (interp_new): Likewise.
15252 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15253 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15254 * mi/mi-console.c (mi_console_file_new): Likewise.
15255 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15256 * mi/mi-out.c (mi_out_new): Likewise.
15257 * mi/mi-parse.c (mi_parse): Likewise.
15258 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15259 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15260 * observer.c (xalloc_observer_list_node): Likewise.
15261 * regcache.c (regcache_xmalloc_1): Likewise.
15262 * reggroups.c (reggroup_new): Likewise.
15263 (_initialize_reggroup): Likewise.
15264 * registry.c (register_data_with_cleanup): Likewise.
15265 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15266 * ser-base.c (serial_ttystate): Likewise.
15267 * ser-mingw.c (make_pipe_state): Likewise.
15268 * ser-pipe.c (pipe_open): Likewise.
15269 * serial.c (serial_open): Likewise.
15270 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15271 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15272 (tui_alloc_win_info): Likewise.
15273 (tui_add_content_elements): Likewise.
15274 * tui/tui-file.c (tui_file_new): Likewise.
15275 * tui/tui-out.c (tui_out_new): Likewise.
15276 * ui-file.c (mem_file_new): Likewise.
15277 * ui-out.c (push_level): Likewise.
15278 (make_cleanup_ui_out_end): Likewise.
15279 (append_header_to_list): Likewise.
15280 (ui_out_new): Likewise.
15281 * user-regs.c (user_reg_add_builtin): Likewise.
15283 2014-01-13 Tom Tromey <tromey@redhat.com>
15285 * defs.h (XZALLOC): Remove.
15286 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15287 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15288 (get_ada_tasks_inferior_data): Likewise.
15289 * auto-load.c (get_auto_load_pspace_data): Likewise.
15290 * auxv.c (get_auxv_inferior_data): Likewise.
15291 * bfd-target.c (target_bfd_reopen): Likewise.
15292 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15293 (deprecated_insert_raw_breakpoint): Likewise.
15294 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15295 * corelow.c (core_open): Likewise.
15296 * darwin-nat.c (darwin_check_new_threads): Likewise.
15297 (darwin_attach_pid): Likewise.
15298 * dummy-frame.c (dummy_frame_push): Likewise.
15299 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15300 * dwarf2loc.c (allocate_piece_closure): Likewise.
15301 * elfread.c (elf_symfile_segments): Likewise.
15302 * eval.c (ptrmath_type_p): Likewise.
15303 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15304 * gdbtypes.c (alloc_type_arch): Likewise.
15305 (alloc_type_instance): Likewise.
15306 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15307 * inf-child.c (inf_child_can_use_agent): Likewise.
15308 * inflow.c (get_inflow_inferior_data): Likewise.
15309 * infrun.c (save_infcall_suspend_state): Likewise.
15310 * jit.c (jit_reader_load): Likewise.
15311 (get_jit_objfile_data): Likewise.
15312 (get_jit_program_space_data): Likewise.
15313 (jit_object_open_impl): Likewise.
15314 (jit_symtab_open_impl): Likewise.
15315 (jit_block_open_impl): Likewise.
15316 (jit_frame_sniffer): Likewise.
15317 * linux-fork.c (add_fork): Likewise.
15318 * maint.c (make_command_stats_cleanup): Likewise.
15319 * objfiles.c (get_objfile_pspace_data): Likewise.
15320 * opencl-lang.c (struct lval_closure): Likewise.
15321 * osdata.c (osdata_start_osdata): Likewise.
15322 * progspace.c (new_address_space): Likewise.
15323 (add_program_space): Likewise.
15324 * remote-sim.c (get_sim_inferior_data): Likewise.
15325 * sh-tdep.c (sh_gdbarch_init): Likewise.
15326 * skip.c (Ignore): Likewise.
15327 (skip_delete_command): Likewise.
15328 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15329 (library_list_start_library): Likewise.
15330 (solib_aix_current_sos): Likewise.
15331 * solib-darwin.c (get_darwin_info): Likewise.
15332 (darwin_current_sos): Likewise.
15333 * solib-dsbt.c (get_dsbt_info): Likewise.
15334 * solib-ia64-hpux.c (new_so_list): Likewise.
15335 (ia64_hpux_get_solib_linkage_addr): Likewise.
15336 * solib-spu.c (append_ocl_sos): Likewise.
15337 (spu_current_sos): Likewise.
15338 * solib-svr4.c (get_svr4_info): Likewise.
15339 (svr4_keep_data_in_core): Likewise.
15340 (library_list_start_library): Likewise.
15341 (svr4_default_sos): Likewise.
15342 (svr4_read_so_list): Likewise.
15343 * solib-target.c (library_list_start_library): Likewise.
15344 (solib_target_current_sos): Likewise.
15345 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15346 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15347 * symfile.c (default_symfile_segments): Likewise.
15348 * target-descriptions.c (tdesc_data_init): Likewise.
15349 (tdesc_create_reg): Likewise.
15350 (struct tdesc_type *): Likewise.
15351 (tdesc_create_vector): Likewise.
15352 (tdesc_set_struct_size): Likewise.
15353 (struct tdesc_type *): Likewise.
15354 (tdesc_free_feature): Likewise.
15355 (tdesc_create_feature): Likewise.
15356 * windows-nat.c (windows_add_thread): Likewise.
15357 (windows_make_so): Likewise.
15358 * xml-support.c (gdb_xml_body_text): Likewise.
15359 (gdb_xml_create_parser_and_cleanup): Likewise.
15360 (xml_process_xincludes): Likewise.
15361 * xml-syscall.c (allocate_syscalls_info): Likewise.
15362 (syscall_create_syscall_desc): Likewise.
15364 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15366 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15367 function, with code from i386_stap_parse_special_token.
15368 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15369 (i386_stap_parse_special_token): Move code to the two functions
15370 above; simplify it.
15372 2014-01-09 Pedro Alves <palves@redhat.com>
15373 Hui Zhu <hui@codesourcery.com>
15376 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15377 bp_err_string. Don't mark the location shlib_disabled if the
15378 error thrown wasn't a generic or memory error. Catch errors
15379 thrown while inserting breakpoints in overlayed code. Output
15380 error message of software breakpoints.
15381 * remote.c (remote_insert_breakpoint): If this breakpoint has
15382 target-side commands but this stub doesn't support Z0 packets,
15383 throw NOT_SUPPORTED_ERROR error.
15384 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15385 * target.h (target_insert_breakpoint): Extend comment.
15386 (target_insert_hw_breakpoint): Add comment.
15388 2014-01-08 Pedro Alves <palves@redhat.com>
15390 * remote.c (remote_add_thread): Add threads silently if starting
15392 (remote_notice_new_inferior): If in all-stop, and starting up,
15393 don't call notice_new_inferior.
15394 (get_current_thread): New function, factored out from ...
15395 (add_current_inferior_and_thread): ... this. Adjust.
15396 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15397 found any thread, then select the remote's current thread as GDB's
15398 current thread too.
15400 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15402 * NEWS: Create a new section for the next release branch.
15403 Rename the section of the current branch, now that it has
15406 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15408 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15409 * version.in: Bump version to 7.7.50.DATE-cvs.
15411 2014-01-08 Yao Qi <yao@codesourcery.com>
15413 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15414 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15415 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15417 2014-01-08 Yao Qi <yao@codesourcery.com>
15419 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15420 return value of bfd_get_filename to symbol_file_add_from_bfd.
15422 2014-01-08 Pierre Muller <muller@sourceware.org>
15425 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15426 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15427 to prim_record_mininal_symbol_and_info.
15428 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15429 in call to prim_record_minimal_symbol_and_info.
15430 (read_pe_exported_syms): Set index field of section_data.
15432 2014-01-07 Andrew Pinski <apinski@cavium.com>
15434 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15435 * features/aarch64.c: Regenerate.
15437 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15439 * target.c (return_null): Define.
15440 (update_current_target): Use it instead of return_zero for
15441 functions that return a pointer.
15443 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15445 * source.c (add_path): Fix check for duplicated paths in the previously
15448 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15450 * ada-lang.c: Remove duplicated include statements.
15451 * alphabsd-nat.c: Ditto.
15452 * amd64-darwin-tdep.c: Ditto.
15453 * amd64fbsd-nat.c: Ditto.
15454 * auto-load.c: Ditto.
15456 * breakpoint.c: Ditto.
15457 * dbxread.c: Ditto.
15458 * fork-child.c: Ditto.
15459 * gdb_usleep.c: Ditto.
15460 * i386-darwin-tdep.c: Ditto.
15461 * i386fbsd-nat.c: Ditto.
15463 * inferior.c: Ditto.
15464 * jv-lang.c: Ditto.
15465 * linux-nat.c: Ditto.
15466 * linux-tdep.c: Ditto.
15467 * m68kbsd-nat.c: Ditto.
15468 * m68klinux-nat.c: Ditto.
15469 * microblaze-tdep.c: Ditto.
15470 * mips-linux-tdep.c: Ditto.
15471 * mn10300-tdep.c: Ditto.
15472 * nto-tdep.c: Ditto.
15473 * opencl-lang.c: Ditto.
15475 * printcmd.c: Ditto.
15476 * regcache.c: Ditto.
15477 * remote-m32r-sdi.c: Ditto.
15479 * symfile.c: Ditto.
15481 * tilegx-linux-nat.c: Ditto.
15482 * tilegx-tdep.c: Ditto.
15483 * tracepoint.c: Ditto.
15485 * vaxbsd-nat.c: Ditto.
15486 * windows-nat.c: Ditto.
15487 * xtensa-tdep.c: Ditto.
15489 2014-01-07 Yao Qi <yao@codesourcery.com>
15491 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15493 2014-01-07 Yao Qi <yao@codesourcery.com>
15494 Joel Brobecker <brobecker@adacore.com>
15496 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15497 (pdc_write_regs): Likewise.
15498 (fetch_regs_kernel_thread): Likewise.
15499 (store_regs_kernel_thread): Likewise.
15501 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15503 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15504 tagged type objects to their actual type.
15506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15508 * ada-valprint.c (print_field_values): Add "language" parameter.
15509 Update calls to print_field_values and print_variant_part.
15510 Pass new parameter "language" in call to val_print instead
15511 of "current_language". Replace call to ada_val_print by call
15513 (print_variant_part): Add "language" parameter.
15514 (ada_val_print_struct_union): Update call to print_field_values.
15516 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15518 * ada-valprint.c (ui_memcpy): Delete.
15519 (ada_print_floating): Update documentation. Add empty line
15520 between between function documentation and implementation.
15521 Delete variable "buffer". Use ui_file_xstrdup in place of
15522 ui_file_put. Minor adjustments following this change.
15524 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15526 * ada-valprint.c (ada_val_print_string): New function,
15527 extracted from ada_val_print_array.
15528 (ada_val_print_array): Replace extracted code by call
15529 to ada_val_print_string followed by a return. Move
15530 "else" branch to the function's top block.
15532 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15534 * ada-valprint.c (ada_val_print_array): Move implementation
15535 down. Rename parameter "offset" and "val" into "offset_aligned"
15536 and "original_value" respectively. Add parameter "offset".
15538 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15540 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15541 re-organizing the code. Change the "???" message printed
15542 when target type is a TYPE_CODE_UNDEF into
15543 "<ref to undefined type>".
15545 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15547 * ada-valprint.c (print_record): Delete, implementation inlined...
15548 (ada_val_print_struct_union): ... here. Remove call to
15549 ada_check_typedef in inlined implementation.
15551 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15553 * ada-valprint.c (ada_val_print_gnat_array): New function,
15554 extracted from ada_val_print_1;
15555 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15556 (ada_val_print_flt, ada_val_print_struct_union)
15557 (ada_val_print_ref): Likewise.
15558 (ada_val_print_1): Delete variables i and elttype.
15559 Replace extracted-out code by call to corresponding
15562 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15564 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15566 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15568 * ada-valprint.c (ada_val_print_1): Replace calls to
15569 ada_val_print_1 by calls to val_print.
15571 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15573 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15574 Update calls to self accordingly. Replace calls to c_val_print
15575 by calls to val_print.
15577 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15579 * ada-valprint.c (print_record): Delete declaration.
15580 (adjust_type_signedness, ada_val_print_1): Likewise.
15581 (ada_val_print): Move function implementation down.
15582 (print_variant_part, print_field_values, print_record):
15583 Move function implementation up.
15585 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15587 * python/py-type.c (typy_get_name): New function.
15588 (type_object_getset): Add entry for attribute "name".
15589 * NEWS: Add entry mentioning this new attribute.
15591 2014-01-07 Yao Qi <yao@codesourcery.com>
15593 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15596 2014-01-07 Yao Qi <yao@codesourcery.com>
15598 * gnu-nat.c (info_port_rights): Add qualifier const to
15601 2014-01-07 Yao Qi <yao@codesourcery.com>
15603 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15605 2014-01-07 Yao Qi <yao@codesourcery.com>
15607 * gnu-nat.c (make_inf) Update declaration.
15608 (make_inf): Make it static.
15609 (inf_set_traced): Likewise.
15610 (inf_port_to_thread, inf_task_died_status): Likewise.
15612 2014-01-07 Yao Qi <yao@codesourcery.com>
15614 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15616 2014-01-07 Yao Qi <yao@codesourcery.com>
15618 * gnu-nat.c (_initialize_gnu_nat): Declare.
15620 2014-01-07 Yao Qi <yao@codesourcery.com>
15622 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15624 (struct gdbarch_info) <byte_order>: Change type to
15626 <byte_order_for_code>: Likewise.
15627 * gdbarch.c, gdbarch.h: Regenerated.
15629 2014-01-06 Sasha Smundak <asmundak@google.com>
15631 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15633 2014-01-06 Tom Tromey <tromey@redhat.com>
15635 * doublest.c (convert_doublest_to_floatformat): Use const, not
15637 * somread.c (som_symtab_read): Likewise.
15639 2014-01-07 Hui Zhu <hui@codesourcery.com>
15641 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15642 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15643 (gdb_bfd_fopen): Ditto.
15644 (gdb_bfd_openr): Ditto.
15645 (gdb_bfd_openw): Ditto.
15646 (gdb_bfd_openr_iovec): Ditto.
15647 (gdb_bfd_fdopenr): Ditto.
15648 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15649 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15651 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15653 * symfile-mem.c (symbol_file_add_from_memory): Removed
15654 gdb_bfd_stash_filename.
15656 2014-01-03 Doug Evans <dje@google.com>
15658 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15661 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15663 Update year range in copyright notice of all files.
15665 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15667 * top.c (print_gdb_version): Set copyright year to 2014.
15669 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15671 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15673 For older changes see ChangeLog-2013.
15679 version-control: never