1 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
3 * NEWS: Mention new Python events.
4 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
5 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
6 (py-infevents.o): New rule.
7 * doc/observer.texi (inferior_call_pre, inferior_call_post)
8 (memory_changed, register_changed): New observers.
9 * infcall.c (call_function_by_hand): Notify observer before and
11 * python/py-event.h (inferior_call_kind): New enum.
12 (emit_inferior_call_event): New prototype.
13 (emit_register_changed_event): New prototype.
14 (emit_memory_changed_event): New prototype.
15 * python/py-events.h (events_object): New registries
16 inferior_call, memory_changed and register_changed.
17 * python/py-evts.c (gdbpy_initialize_py_events): Add the
18 inferior_call, memory_changed and register_changed registries.
19 * python/py-infevents.c: New.
20 * python/py-inferior.c (python_on_inferior_call_pre)
21 (python_on_inferior_call_post, python_on_register_change)
22 (python_on_memory_change): New functions.
23 (gdbpy_initialize_inferior): Attach python handler to new
25 * python/py-infthread.c(gdbpy_create_ptid_object): New.
26 (thpy_get_ptid) Use gdbpy_create_ptid_object.
27 * python/python-internal.h:
28 (gdbpy_create_ptid_object)
29 (gdbpy_initialize_inferior_call_pre_event)
30 (gdbpy_initialize_inferior_call_post_event)
31 (gdbpy_initialize_register_changed_event)
32 (gdbpy_initialize_memory_changed_event): New prototypes.
33 * python/python.c (_initialize_python): Initialize new events.
34 * valops.c (value_assign): Notify register_changed observer.
36 2014-12-02 Doug Evans <dje@google.com>
38 * python/py-infthread.c: Whitespace fixes.
40 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
42 * features/Makefile (s390-te-linux64-expedite): Replace
43 non-existant r14 and r15 by r14l and r15l, respectively.
44 * regformats/s390-te-linux64.dat: Regenerate.
46 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
48 * objfiles.c (allocate_objfile): Remove duplicate comment.
50 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
52 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
53 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
54 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
55 (supply_gregset, supply_fpregset): Remove.
56 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
57 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
60 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
62 Add add-auto-load-scripts-directory.
63 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
64 * auto-load.c (add_auto_load_dir): New function.
65 (_initialize_auto_load): Install it.
67 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
69 Pushed by Joel Brobecker <brobecker@adacore.com>.
70 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
72 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
74 * eval.c (evaluate_subexp): Check that the thread stack temporaries
75 are not already enabled before enabling them.
77 2014-11-29 Yao Qi <yao@codesourcery.com>
79 * arm-tdep.c (arm_analyze_prologue): Move local variables
80 'framereg' and 'framesize' to inner block. Move code to
83 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
85 * eval.c: Include gdbthread.h.
86 (evaluate_subexp): Enable thread stack temporaries before
87 evaluating a complete expression and clean them up after the
88 evaluation is complete.
89 * gdbthread.h: Include common/vec.h.
90 (value_ptr): New typedef.
91 (VEC (value_ptr)): New vector type.
92 (value_vec): New typedef.
93 (struct thread_info): Add new fields stack_temporaries_enabled
94 and stack_temporaries.
95 (enable_thread_stack_temporaries)
96 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
97 (get_last_thread_stack_temporary)
98 (value_in_thread_stack_temporaries): Declare.
99 * gdbtypes.c (class_or_union_p): New function.
100 * gdbtypes.h (class_or_union_p): Declare.
101 * infcall.c (call_function_by_hand): Store return values of class
102 type as temporaries on stack.
103 * thread.c (enable_thread_stack_temporaries): New function.
104 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
105 (get_last_thread_stack_temporary): Likewise.
106 (value_in_thread_stack_temporaries): Likewise.
107 * value.c (value_force_lval): New function.
108 * value.h (value_force_lval): Declare.
110 2014-11-28 Pierre Muller <muller@sourceware.org>
112 Pushed by Joel Brobecker <brobecker@adacore.com>.
113 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
116 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
118 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
119 * config/sparc/linux.mh (NATDEPFILES): Likewise.
120 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
121 * m68klinux-nat.c (fetch_core_registers): Remove.
122 (linux_elf_core_fns): Remove.
123 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
125 2014-11-28 Joel Brobecker <brobecker@adacore.com>
127 * utils.c (gdb_realpath): Rework comment about handling on
130 2014-11-28 Yao Qi <yao@codesourcery.com>
132 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
134 * gnulib/aclocal.m4: Re-generated.
135 * gnulib/config.in: Re-generated.
136 * gnulib/configure: Re-generated.
137 * gnulib/import/Makefile.am: Re-generated.
138 * gnulib/import/Makefile.in: Re-generated.
139 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
140 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
141 * import/basename-lgpl.c: New file.
142 * import/dirname-lgpl.c: New file.
143 * import/dirname.h: New file.
144 * import/m4/dirname.m4: New file.
145 * import/m4/malloc.m4: New file.
146 * import/m4/rename.m4: New file.
147 * import/m4/rmdir.m4: New file.
148 * import/m4/stdio_h.m4: New file.
149 * import/malloc.c: New file.
150 * import/rename.c: New file.
151 * import/rmdir.c: New file.
152 * import/same-inode.h: New file.
153 * import/stdio.c: New file.
154 * import/stdio.in.h: New file.
155 * import/stripslash.c: New file.
157 2014-11-28 Yao Qi <yao@codesourcery.com>
159 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
161 * config.in: Re-generated.
162 * configure: Re-generated.
163 * utils.c (gdb_realpath): Remove code calling realpath,
164 canonicalize_file_name and pathconf.
165 [!_WIN32]: Call canonicalize_file_name.
167 2014-11-28 Yao Qi <yao@codesourcery.com>
169 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
171 * aclocal.m4: Re-generated.
172 * config.in: Re-generated.
173 * configure: Re-generated.
174 * import/Makefile.am: Re-generated.
175 * import/Makefile.in: Re-generated.
176 * import/m4/gnulib-cache.m4: Re-generated.
177 * import/m4/gnulib-comp.m4: Re-generated.
178 * import/canonicalize-lgpl.c: New file.
179 * import/extra/snippet/_Noreturn.h: New file.
180 * import/m4/canonicalize.m4: New file.
181 * import/m4/double-slash-root.m4: New file.
182 * import/m4/eealloc.m4: New file.
183 * import/m4/malloca.m4: New file.
184 * import/m4/nocrash.m4: New file.
185 * import/m4/stdlib_h.m4: New file.
186 * import/malloca.c: New file.
187 * import/malloca.h: New file.
188 * import/malloca.valgrind: New file.
190 2014-11-28 Yao Qi <yao@codesourcery.com>
192 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
193 * config.in, configure: Regenerate.
194 * symfile.c (find_separate_debug_file_by_debuglink): Remove
195 code checking HAVE_LSTAT is defined.
197 2014-11-28 Yao Qi <yao@codesourcery.com>
199 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
201 * gnulib/aclocal.m4: Re-generated.
202 * gnulib/config.in: Re-generated.
203 * gnulib/configure: Re-generated.
204 * gnulib/import/Makefile.am: Re-generated.
205 * gnulib/import/Makefile.in: Re-generated.
206 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
207 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
208 * gnulib/import/lstat.c: New file.
209 * gnulib/import/m4/lstat.m4: New file.
211 2014-11-28 Yao Qi <yao@codesourcery.com>
213 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
214 * config.in, configure: Re-generate.
215 * inf-child.c (inf_child_fileio_readlink): Don't check
216 HAVE_READLINK is defined.
218 2014-11-28 Yao Qi <yao@codesourcery.com>
220 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
221 * gnulib/aclocal.m4: Re-generated.
222 * gnulib/config.in: Likewise.
223 * gnulib/configure: Likewise.
224 * gnulib/import/Makefile.am: Likewise.
225 * gnulib/import/Makefile.in: Likewise.
226 * gnulib/import/m4/gnulib-cache.m4: Likewise.
227 * gnulib/import/m4/gnulib-comp.m4: Likewise.
228 * gnulib/import/dosname.h: New file
229 * gnulib/import/m4/largefile.m4: New file.
230 * gnulib/import/m4/readlink.m4: New file.
231 * gnulib/import/m4/stat.m4: New file.
232 * gnulib/import/readlink.c: New file.
233 * gnulib/import/stat.c: New file.
235 2014-11-26 Mark Wielaard <mjw@redhat.com>
237 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
238 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
240 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
242 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
243 that there can be only one stack adjustment in the prologue
244 with tests to detect specific disallowed stack adjustments.
246 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
248 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
251 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
253 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
254 the instruction as well as reading it from memory.
255 (nios2_match_add): New.
256 (nios2_match_sub): New.
257 (nios2_match_addi): New.
258 (nios2_match_orhi): New.
259 (nios2_match_stw): New.
260 (nios2_match_ldw): New.
261 (nios2_match_rdctl): New.
262 (enum branch_condition): New.
263 (nios2_match_branch): New.
264 (nios2_match_jmpi): New.
265 (nios2_match_calli): New.
266 (nios2_match_jmpr): New.
267 (nios2_match_callr): New.
268 (nios2_match_break): New.
269 (nios2_match_trap): New.
270 (nios2_in_epilogue_p): Rewrite to use new functions.
271 (nios2_analyze_prologue): Likewise.
272 (nios2_skip_prologue): Delete unused local limit_pc.
273 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
274 (nios2_get_next_pc): Rewrite to use new functions.
276 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
278 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
280 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
282 Pushed by Joel Brobecker <brobecker@adacore.com>
283 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
284 elements pi_len by the size of the elements before calling
286 (inf_validate_task_sc): Likewise, and properly deallocate the
289 2014-11-23 Doug Evans <xdje42@gmail.com>
291 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
292 number and name if present. All callers updated.
293 (dump_fn_fieldlists): Fix indentation of args.
295 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
297 * MAINTAINERS (Write After Approval): Add myself.
299 2014-11-23 Joel Brobecker <brobecker@adacore.com>
301 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
302 to a bp_call_dummy breakpoint type.
304 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
306 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
307 registering the signal handler.
309 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
311 * event-top.h (call_stdin_event_handler_again_p): Declare.
312 * event-top.c (call_stdin_event_handler_again_p): Define.
313 (stdin_event_handler): Use it.
314 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
315 handler again if there is pending input following a
318 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
320 Pushed by Joel Brobecker <brobecker@adacore.com>
321 * linux-fork.c (checkpoint_command): Print index of new
322 checkpoint in response message.
324 2014-11-23 Yao Qi <yao@codesourcery.com>
326 * valprint.c (read_string): Move local variables 'found_nul',
327 'chunksize' and 'limit' to inner scope. Update comments.
329 2014-11-22 Doug Evans <xdje42@gmail.com>
331 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
333 (search_symbols): Fix comments and whitespace.
335 2014-11-22 Doug Evans <xdje42@gmail.com>
337 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
339 2014-11-21 Doug Evans <dje@google.com>
341 * psymtab.c (psymtab_search_name): Fix whitespace.
343 2014-11-21 Yao Qi <yao@codesourcery.com>
345 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
347 * gnulib/import/Makefile.am: Re-generated.
348 * gnulib/import/Makefile.in: Likewise.
349 * gnulib/import/m4/gnulib-cache.m4: Likewise.
351 2014-11-21 Yao Qi <yao@codesourcery.com>
353 * gdb_wchar.h: Include wchar.h and wctype.h.
354 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
355 include wchar.h and wctype.h.
356 Don't check HAVE_WCHAR_H.
358 2014-11-21 Yao Qi <yao@codesourcery.com>
360 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
362 * gnulib/import/Makefile.am: Re-generated.
363 * gnulib/import/Makefile.in: Likewise.
364 * gnulib/import/m4/gnulib-cache.m4: Likewise.
366 2014-11-21 Yao Qi <yao@codesourcery.com>
368 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
370 * gnulib/import/Makefile.am: Re-generated.
371 * gnulib/import/Makefile.in: Likewise.
372 * gnulib/import/m4/gnulib-cache.m4: Likewise.
374 2014-11-21 Yao Qi <yao@codesourcery.com>
376 * common/common-defs.h: Include alloca.h
377 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
378 * configure: Re-generated.
379 * defs.h: Remove code handling alloca.
380 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
383 2014-11-21 Yao Qi <yao@codesourcery.com>
385 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
387 * gnulib/import/Makefile.am: Re-generated.
388 * gnulib/import/Makefile.in: Likewise..
389 * gnulib/import/m4/gnulib-cache.m4: Likewise.
391 2014-11-21 Yao Qi <yao@codesourcery.com>
393 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
396 2014-11-21 Joel Brobecker <brobecker@adacore.com>
398 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
399 flag_unsigned if HIGH_BOUND is constant and negative.
401 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
404 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
405 modifier from "struct gdbarch" when compiling without Expat (XML)
407 (get_syscall_by_number): Likewise.
408 (get_syscall_by_name): Likewise.
409 (get_syscall_names): Likewise.
411 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
414 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
415 set_xml_syscall_file_name to provide gdbarch.
416 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
417 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
418 * breakpoint.c (print_it_catch_syscall): Adjust call to
419 get_syscall_by_number to provide gdbarch.
420 (print_one_catch_syscall): Likewise.
421 (print_mention_catch_syscall): Likewise.
422 (print_recreate_catch_syscall): Likewise.
423 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
424 and get_syscall_by_name to provide gdbarch.
425 (catch_syscall_completer): Adjust call to get_syscall_names to
427 * gdbarch.c: Regenerate.
428 * gdbarch.h: Likewise.
429 * gdbarch.sh: Forward declare "struct syscalls_info".
430 (xml_syscall_file): New variable.
431 (syscalls_info): Likewise.
432 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
433 set_xml_syscall_file_name to provide gdbarch.
434 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
435 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
436 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
437 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
438 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
439 * xml-syscall.c: Include gdbarch.h.
440 (set_xml_syscall_file_name): Accept gdbarch parameter.
441 (get_syscall_by_number): Likewise.
442 (get_syscall_by_name): Likewise.
443 (get_syscall_names): Likewise.
444 (my_gdb_datadir): Delete global variable.
445 (struct syscalls_info) <my_gdb_datadir>: New variable.
446 (struct syscalls_info) <sysinfo>: Rename variable to
448 (sysinfo): Delete global variable.
449 (have_initialized_sysinfo): Likewise.
450 (xml_syscall_file): Likewise.
451 (sysinfo_free_syscalls_desc): Rename to...
452 (syscalls_info_free_syscalls_desc): ... this.
453 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
454 code to the new layout of "struct syscalls_info".
455 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
457 (syscall_create_syscall_desc): Likewise.
458 (syscall_start_syscall): Likewise.
459 (syscall_parse_xml): Likewise.
460 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
461 (init_sysinfo): Rename to...
462 (init_syscalls_info): ...this. Add gdbarch as a parameter.
463 Adjust function to deal with gdbarch.
464 (xml_get_syscall_number): Delete parameter sysinfo. Accept
465 gdbarch as a parameter. Adjust code.
466 (xml_get_syscall_name): Likewise.
467 (xml_list_of_syscalls): Likewise.
468 (set_xml_syscall_file_name): Accept gdbarch as parameter.
469 (get_syscall_by_number): Likewise.
470 (get_syscall_by_name): Likewise.
471 (get_syscall_names): Likewise.
472 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
473 (get_syscall_by_number): Likewise.
474 (get_syscall_by_name): Likewise.
475 (get_syscall_names): Likewise.
477 2014-11-20 Doug Evans <xdje42@gmail.com>
479 Split struct symtab into two: struct symtab and compunit_symtab.
480 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
481 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
482 to "struct compunit_symtab *". All callers updated.
483 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
484 "struct symtab *" argument to "struct compunit_symtab *".
486 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
487 result to "struct compunit_symtab *". All callers updated.
488 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
489 Change result to "struct compunit_symtab *". All callers updated.
490 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
491 hange type to "struct compunit_symtab *". All uses updated.
492 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
493 Change type to "struct compunit_symtab *". All uses updated.
494 * buildsym.c (struct buildsym_compunit): New struct.
495 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
496 (buildsym_compunit): New static global.
497 (finish_block_internal): Update to fetch objfile from
499 (make_blockvector): Delete objfile argument.
500 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
501 debugformat, producer.
502 (start_buildsym_compunit): New function.
503 (free_buildsym_compunit): Renamed from free_subfiles_list.
505 (patch_subfile_names): Rewrite to use buildsym_compunit.
506 (get_compunit_symtab): New function.
507 (get_macro_table): Delete argument comp_dir. All callers updated.
508 (start_symtab): Change result to "struct compunit_symtab *".
509 All callers updated. Create the subfile of the main source file.
510 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
511 (reset_symtab_globals): Update.
512 (end_symtab_get_static_block): Update to use buildsym_compunit.
513 (end_symtab_without_blockvector): Rewrite.
514 (end_symtab_with_blockvector): Change result to
515 "struct compunit_symtab *". All callers updated.
516 Update to use buildsym_compunit. Don't set symtab->dirname,
517 instead set it in the compunit.
518 Explicitly make sure main symtab is first in its list.
519 Set debugformat, producer, blockvector, block_line_section, and
520 macrotable in the compunit.
521 (end_symtab_from_static_block): Change result to
522 "struct compunit_symtab *". All callers updated.
523 (end_symtab, end_expandable_symtab): Ditto.
524 (set_missing_symtab): Change symtab argument to
525 "struct compunit_symtab *". All callers updated.
526 (augment_type_symtab): Ditto.
527 (record_debugformat): Update to use buildsym_compunit.
528 (record_producer): Update to use buildsym_compunit.
529 * buildsym.h (struct subfile) <dirname>: Delete.
530 <producer, debugformat>: Delete.
531 <buildsym_compunit>: New member.
532 (get_compunit_symtab): Declare.
533 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
534 from primary_symtab. Change type to "struct compunit_symtab *".
536 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
538 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
539 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
540 symtab. Change type to "struct compunit_symtab *". All uses updated.
541 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
543 (dw2_find_last_source_symtab): Ditto.
544 (dw2_lookup_symbol): Ditto.
545 (recursively_find_pc_sect_compunit_symtab): Renamed from
546 recursively_find_pc_sect_symtab. Change result to
547 "struct compunit_symtab *". All callers updated.
548 (dw2_find_pc_sect_compunit_symtab): Renamed from
549 dw2_find_pc_sect_symtab. Change result to
550 "struct compunit_symtab *". All callers updated.
551 (get_compunit_symtab): Renamed from get_symtab. Change result to
552 "struct compunit_symtab *". All callers updated.
553 (recursively_compute_inclusions): Change type of immediate_parent
554 argument to "struct compunit_symtab *". All callers updated.
555 (compute_compunit_symtab_includes): Renamed from
556 compute_symtab_includes. All callers updated. Rewrite to compute
557 includes of compunit_symtabs and not symtabs.
558 (process_full_comp_unit): Update to work with struct compunit_symtab.
559 (process_full_type_unit): Ditto.
560 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
561 (dwarf_decode_lines): Remove special case handling of main subfile.
562 (macro_start_file): Delete argument comp_dir. All callers updated.
563 (dwarf_decode_macro_bytes): Ditto.
564 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
565 use struct compunit_symtab.
566 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
567 * jit.c (finalize_symtab): Build compunit_symtab.
568 * jv-lang.c (get_java_class_symtab): Change result to
569 "struct compunit_symtab *". All callers updated.
570 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
571 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
572 comp_dir. Change type to "struct compunit_symtab *".
574 (new_macro_table): Change comp_dir argument to cust,
575 "struct compunit_symtab *". All callers updated.
576 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
577 nr_primary_symtabs. All uses updated.
578 (count_symtabs_and_blocks): Update to handle compunits.
579 (report_command_stats): Update output, "primary symtabs" renamed to
581 * mdebugread.c (new_symtab): Change result to
582 "struct compunit_symtab *". All callers updated.
583 (parse_procedure): Change type of search_symtab argument to
584 "struct compunit_symtab *". All callers updated.
585 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
587 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
588 symtabs. Change type to "struct compunit_symtab *". All uses updated.
589 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
591 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
593 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
594 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
595 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
596 symtab. Change type to "struct compunit_symtab *". All uses updated.
597 * psymtab.c (psymtab_to_symtab): Change result type to
598 "struct compunit_symtab *". All callers updated.
599 (find_pc_sect_compunit_symtab_from_partial): Renamed from
600 find_pc_sect_symtab_from_partial. Change result type to
601 "struct compunit_symtab *". All callers updated.
602 (lookup_symbol_aux_psymtabs): Change result type to
603 "struct compunit_symtab *". All callers updated.
604 (find_last_source_symtab_from_partial): Ditto.
605 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
606 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
607 and macro_table from compunit.
608 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
609 type to "struct compunit_symtab *". All callers updated.
610 (debug_qf_lookup_symbol): Ditto.
611 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
612 debug_qf_find_pc_sect_symtab, change result type to
613 "struct compunit_symtab *". All callers updated.
614 * symfile.c (allocate_symtab): Delete objfile argument.
616 (allocate_compunit_symtab): New function.
617 (add_compunit_symtab_to_objfile): New function.
618 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
619 Change result type to "struct compunit_symtab *". All uses updated.
620 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
621 Change result type to "struct compunit_symtab *". All uses updated.
622 * symmisc.c (print_objfile_statistics): Compute blockvector count in
624 (dump_symtab_1): Update test for primary source symtab.
625 (maintenance_info_symtabs): Update to handle compunit symtabs.
626 (maintenance_check_symtabs): Ditto.
627 * symtab.c (set_primary_symtab): Delete.
628 (compunit_primary_filetab): New function.
629 (compunit_language): New function.
630 (iterate_over_some_symtabs): Change type of arguments "first",
631 "after_last" to "struct compunit_symtab *". All callers updated.
632 Update to loop over symtabs in each compunit.
633 (error_in_psymtab_expansion): Rename symtab argument to cust,
634 and change type to "struct compunit_symtab *". All callers updated.
635 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
636 Change result type to "struct compunit_symtab *". All callers updated.
637 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
638 Change result type to "struct compunit_symtab *". All callers updated.
639 (find_pc_sect_line): Only loop over symtabs within selected compunit
640 instead of all symtabs in the objfile.
641 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
642 <compunit_symtab> New member.
643 <block_line_section>: Moved to compunit_symtab.
644 <locations_valid>: Ditto.
645 <epilogue_unwind_valid>: Ditto.
646 <macro_table>: Ditto.
648 <debugformat>: Ditto.
651 <call_site_htab>: Ditto.
655 (SYMTAB_COMPUNIT): New macro.
656 (SYMTAB_BLOCKVECTOR): Update definition.
657 (SYMTAB_OBJFILE): Update definition.
658 (SYMTAB_DIRNAME): Update definition.
659 (struct compunit_symtab): New type. Common members among all source
660 symtabs within a compilation unit moved here. All uses updated.
661 (COMPUNIT_OBJFILE): New macro.
662 (COMPUNIT_FILETABS): New macro.
663 (COMPUNIT_DEBUGFORMAT): New macro.
664 (COMPUNIT_PRODUCER): New macro.
665 (COMPUNIT_DIRNAME): New macro.
666 (COMPUNIT_BLOCKVECTOR): New macro.
667 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
668 (COMPUNIT_LOCATIONS_VALID): New macro.
669 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
670 (COMPUNIT_CALL_SITE_HTAB): New macro.
671 (COMPUNIT_MACRO_TABLE): New macro.
672 (ALL_COMPUNIT_FILETABS): New macro.
673 (compunit_symtab_ptr): New typedef.
674 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
676 2014-11-20 Joel Brobecker <brobecker@adacore.com>
678 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
679 if the TYPE_CODE of range_type's base type does not match
680 the TYPE_CODE of encoding_type's base type.
682 2014-11-19 Joel Brobecker <brobecker@adacore.com>
684 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
687 2014-11-19 Joel Brobecker <brobecker@adacore.com>
689 * ada-lang.c (ada_is_redundant_range_encoding): New function.
690 (ada_is_redundant_index_type_desc): New function.
691 (to_fixed_array_type): Ignore parallel XA type if redundant.
693 2014-11-19 Joel Brobecker <brobecker@adacore.com>
695 * ada-lang.c (constrained_packed_array_type): Set the length
696 of the return array as if both bounds where zero if that
697 returned array's index type is dynamic.
699 2014-11-19 Yao Qi <yao@codesourcery.com>
701 * config/i386/go32.mh (CC): Remove.
703 2014-11-18 Doug Evans <xdje42@gmail.com>
705 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
708 2014-11-18 Doug Evans <xdje42@gmail.com>
710 * buildsym.c (buildsym_objfile): New static global.
711 (buildsym_comp_dir): New static global.
712 (finish_block_internal): Delete arg objfile. All callers updated.
713 (finish_block): Delete arg objfile. All callers updated.
714 (start_subfile): Delete arg dirname. All callers updated.
715 (patch_subfile_names): Update buildsym_comp_dir.
716 (get_macro_table): Delete arg objfile. All callers updated.
717 (start_symtab): New arg objfile. All callers updated.
718 Rename arg dirname to comp_dir.
719 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
720 (end_symtab_get_static_block): Delete arg objfile. All callers
722 (end_symtab_without_blockvector): Ditto.
723 (end_symtab_with_blockvector): Ditto.
724 (end_symtab_from_static_block): Ditto.
726 (end_expandable_symtab): Ditto.
727 (augment_type_symtab): Ditto.
728 * coffread.c (coff_start_symtab): New arg objfile. All callers
731 2014-11-18 Doug Evans <xdje42@gmail.com>
733 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
736 2014-11-18 Doug Evans <xdje42@gmail.com>
738 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
739 symtab.dirname updated to use it.
741 2014-11-18 Doug Evans <xdje42@gmail.com>
743 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
744 symtab.objfile updated to use it.
746 2014-11-18 Doug Evans <xdje42@gmail.com>
748 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
750 2014-11-18 Doug Evans <xdje42@gmail.com>
752 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
754 * findvar.c (default_read_var_value): Ditto.
755 * jv-lang.c (add_class_symtab_symbol): Ditto.
756 * parse.c (operator_check_standard): Ditto.
757 * printcmd.c (address_info): Ditto.
758 * symtab.c (fixup_symbol_section): Ditto.
759 (skip_prologue_sal): Ditto.
760 * tracepoint.c (scope_info): Ditto.
761 * valops.c (find_function_in_inferior): Ditto.
762 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
763 * python/py-symbol.c (set_symbol): Ditto.
765 2014-11-18 Doug Evans <xdje42@gmail.com>
767 * buildsym.c (main_subfile): New static global.
768 (free_subfiles_list): New function.
769 (start_symtab): Set main_subfile.
770 (restart_symtab): Replace init of subfiles, current_subfile with
771 call to free_subfiles_list.
772 (watch_main_source_file_lossage): Use main_subfile.
773 (reset_symtab_globals): Replace init of current_subfile with call
774 to free_subfiles_list.
775 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
776 functions, split out from ...
777 (end_symtab_from_static_block): ... here. Rewrite to call them.
779 2014-11-18 Doug Evans <xdje42@gmail.com>
781 The result of symtab expansion is always a primary symtab.
782 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
783 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
784 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
785 (psymtab_to_symtab): Add comment and assert.
786 (map_matching_symbols_psymtab): Remove unnecessary test for
789 2014-11-15 Doug Evans <xdje42@gmail.com>
792 * symtab.c (find_pc_line_symtab): New function.
793 * symtab.h (find_pc_line_symtab): Declare.
794 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
796 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
797 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
798 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
799 * tui/tui-win.c (make_visible_with_new_height): Ditto.
800 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
801 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
803 2014-11-15 Doug Evans <xdje42@gmail.com>
805 * symtab.c (expand_symtab_containing_pc): Renamed from
806 find_pc_sect_symtab_via_partial. All callers updated.
808 2014-11-15 Yao Qi <yao@codesourcery.com>
810 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
812 2014-11-14 Joel Brobecker <brobecker@adacore.com>
814 * common/common-defs.h: Move <stdarg.h> #include ahead of
817 2014-11-14 Pedro Alves <palves@redhat.com>
819 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
820 [!PHONY_ICONV] (gdb_iconv): New function.
821 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
823 2014-11-13 Doug Evans <dje@google.com>
826 * dwarf2read.c (find_slot_in_mapped_hash): Handle
827 "(anonymous namespace)".
829 2014-11-13 Doug Evans <dje@google.com>
831 * dwarf2read.c (update_enumeration_type_from_children): Avoid
834 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
836 * NEWS (maint set target-async): Fix typo.
838 2014-11-12 Pedro Alves <palves@redhat.com>
840 * infrun.c (enum infwait_states, infwait_state): Delete.
842 2014-11-12 Pedro Alves <palves@redhat.com>
844 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
845 Rewrite stepping over a permanent breakpoint.
846 (thread_still_needs_step_over, proceed): Don't set
847 stepping_over_breakpoint for permanent breakpoints.
848 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
849 single-step breakpoints out of the target on hardware step
851 (process_event_stop_test): If stepping a permanent breakpoint
852 doesn't hit the step-resume breakpoint, delete the step-resume
854 (switch_back_to_stepped_thread): Also check if the stepped thread
855 has advanced already on hardware step targets.
856 (currently_stepping): Return true if the thread stepped a
859 2014-11-12 Pedro Alves <palves@redhat.com>
861 Mark locations as permanent, not the whole breakpoint.
862 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
863 (mark_breakpoints_out): Don't mark permanent breakpoints as
865 (breakpoint_init_inferior): Use mark_breakpoints_out.
866 (breakpoint_here_p): Adjust.
867 (bpstat_stop_status, describe_other_breakpoints): Remove handling
868 of permanent breakpoints.
869 (make_breakpoint_permanent): Mark each location as permanent,
870 instead of marking the breakpoint.
871 (add_location_to_breakpoint): If the location is permanent, mark
872 it as such, and as inserted.
873 (init_breakpoint_sal): Don't make the breakpoint permanent here.
874 (bp_location_compare, update_global_location_list): Adjust.
875 (update_breakpoint_locations): Don't make the breakpoint permanent
877 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
879 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
880 (struct bp_location) <permanent>: New field.
881 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
882 reference to bp_permanent.
884 2014-11-12 Pedro Alves <palves@redhat.com>
886 * arch-utils.c (default_skip_permanent_breakpoint): New function.
887 * arch-utils.h (default_skip_permanent_breakpoint): New
889 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
890 Install default_skip_permanent_breakpoint as default method.
891 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
892 (i386_gdbarch_init): Don't install it.
893 * infrun.c (resume): Assume there's always a
894 gdbarch_skip_permanent_breakpoint implementation.
895 * gdbarch.h, gdbarch.c: Regenerate.
897 2014-11-11 Daniel Colascione <dancol@dancol.org>
899 Warn about cross-PID-namespace debugging.
900 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
901 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
902 * linux-thread-db.c (check_pid_namespace_match): New function.
903 (thread_db_inferior_created): Call it.
905 2014-11-10 Doug Evans <xdje42@gmail.com>
907 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
908 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
910 2014-11-10 Doug Evans <xdje42@gmail.com>
912 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
914 2014-11-10 Doug Evans <xdje42@gmail.com>
917 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
918 (lookup_static_symbol): Move definition to new location and rewrite.
919 (lookup_symbol_in_objfile): New function.
920 (lookup_symbol_global_iterator_cb): Call it.
922 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
924 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
926 2014-11-07 Pedro Alves <palves@redhat.com>
928 * infrun.c (process_event_stop_test) <subroutine check>: Don't
929 check if we did a "nexti" inside a prologue.
930 * symtab.c (in_prologue): Delete function.
931 * symtab.h (in_prologue): Delete declaration.
933 2014-11-06 Doug Evans <xdje42@gmail.com>
935 * symtab.h (lookup_global_symbol): Improve function comment.
937 2014-11-06 Doug Evans <xdje42@gmail.com>
939 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
941 * symtab.h (lookup_global_symbol): Update decl.
942 (lookup_static_symbol): Move decl to better location.
944 2014-11-06 Doug Evans <xdje42@gmail.com>
946 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
948 2014-11-06 Doug Evans <xdje42@gmail.com>
950 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
952 (lookup_symbol_in_all_objfiles): Renamed from
953 lookup_symbol_aux_symtabs. All callers updated.
954 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
956 (lookup_symbol_in_objfile_symtabs): Renamed from
957 lookup_symbol_aux_objfile. All callers updated.
959 2014-11-06 Doug Evans <xdje42@gmail.com>
961 * symtab.c (lookup_symbol_in_block): Renamed from
962 lookup_symbol_aux_block. All callers updated.
964 2014-11-06 Doug Evans <xdje42@gmail.com>
966 * symtab.c (lookup_static_symbol): Renamed from
967 lookup_static_symbol_aux. All callers updated.
968 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
971 2014-11-06 Doug Evans <xdje42@gmail.com>
973 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
974 * block.c (block_lookup_symbol): Use it.
975 * cp-support.c (make_symbol_overload_list_block): Use it.
976 * symtab.c (iterate_over_symbols): Use it.
978 2014-11-06 Doug Evans <xdje42@gmail.com>
980 * symtab.c (lookup_block_symbol): Moved to ...
981 * block.c (block_lookup_symbol): ... here and renamed.
983 * block.h (block_lookup_symbol): Declare.
984 * symtab.h (lookup_block_symbol): Delete.
986 2014-11-06 Doug Evans <xdje42@gmail.com>
988 * ada-lang.c (ada_make_symbol_completion_list): Use
989 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
990 * symtab.c (lookup_objfile_from_block): Ditto.
992 2014-11-06 Doug Evans <xdje42@gmail.com>
994 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
997 2014-11-06 Doug Evans <xdje42@gmail.com>
999 * objfiles.c (get_objfile_arch): Constify.
1000 * objfiles.h (get_objfile_arch): Update prototype.
1001 * solib.c (solib_global_lookup): Fetch arch from objfile,
1004 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1006 * nios2-tdep.c (wild_insn): Delete.
1007 (profiler_insn, irqentry_insn): Delete.
1008 (nios2_match_sequence): Delete.
1009 (nios2_analyze_prologue): Update comments. Remove matching
1010 of obsolete profiler_insn and irqentry_insn sequences.
1012 2014-11-05 Alan Modra <amodra@gmail.com>
1014 * charset.c (convert_between_encodings): Shrink obstack using
1016 * minsyms.c (install_minimal_symbols): Likewise.
1017 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1018 to char* before doing pointer arithmetic.
1020 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1022 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1024 2014-11-04 Pedro Alves <palves@redhat.com>
1026 * breakpoint.c (breakpoint_thread_match): Delete function.
1027 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1029 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1032 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1033 the method args also under EVAL_SKIP when evaluating method
1034 calls under EVAL_SKIP.
1036 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1038 * dwarf2loc.c (read_pieced_value): Do big endian
1039 processing only if gdb_regnum is not -1.
1040 (write_pieced_value): Ditto.
1042 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1044 * arm-linux-tdep.c (arm_linux_init_abi): Use
1045 info.byte_order_for_code to choose endianity of breakpoint
1046 instructions snippets.
1048 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1050 * arm-tdep.c (extract_arm_insn): Use
1051 gdbarch_byte_order_for_code to read arm instruction.
1053 2014-11-02 Doug Evans <xdje42@gmail.com>
1055 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1057 2014-11-02 Doug Evans <xdje42@gmail.com>
1059 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1060 main_subfile before returning.
1062 2014-10-31 Doug Evans <xdje42@gmail.com>
1064 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1065 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1067 2014-10-31 Doug Evans <xdje42@gmail.com>
1069 * valops.c (value_cast_pointers): Fix whitespace.
1070 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1073 2014-10-30 Doug Evans <dje@google.com>
1075 * NEWS: Mention ability add attributes to gdb.Objfile and
1076 gdb.Progspace objects.
1077 * python/py-objfile.c (objfile_object): New member dict.
1078 (objfpy_dealloc): Py_XDECREF dict.
1079 (objfpy_initialize): Initialize dict.
1080 (objfile_getset): Add __dict__.
1081 (objfile_object_type): Set tp_dictoffset member.
1082 * python/py-progspace.c (progspace_object): New member dict.
1083 (pspy_dealloc): Py_XDECREF dict.
1084 (pspy_initialize): Initialize dict.
1085 (pspace_getset): Add __dict__.
1086 (pspace_object_type): Set tp_dictoffset member.
1088 2014-10-30 Yao Qi <yao@codesourcery.com>
1090 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1091 replace '\\' with '\\\\'.
1093 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1097 2014-10-29 Pedro Alves <palves@redhat.com>
1100 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1101 instead of assuming a thread with a stepping range is always
1104 2014-10-29 Pedro Alves <palves@redhat.com>
1107 * event-top.c (change_line_handler): Call
1108 gdb_rl_callback_handler_remove instead of
1109 rl_callback_handler_remove.
1110 (callback_handler_installed): New global.
1111 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1112 (gdb_rl_callback_handler_reinstall): New functions.
1113 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1114 gdb_rl_callback_handler_install instead of
1115 rl_callback_handler_remove and rl_callback_handler_install.
1116 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1117 instead of rl_callback_handler_remove.
1118 * event-top.h (gdb_rl_callback_handler_remove)
1119 (gdb_rl_callback_handler_install)
1120 (gdb_rl_callback_handler_reinstall): New declarations.
1121 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1123 (fetch_inferior_event): Install it.
1124 * top.c (gdb_readline_wrapper_line) Call
1125 gdb_rl_callback_handler_remove instead of
1126 rl_callback_handler_remove.
1127 (gdb_readline_wrapper_cleanup): Don't call
1128 rl_callback_handler_install.
1130 2014-10-29 Pedro Alves <palves@redhat.com>
1132 * event-top.c (command_line_handler): Clear the first byte of
1133 linebuffer, when it is first allocated.
1135 2014-10-29 Pedro Alves <palves@redhat.com>
1137 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1140 2014-10-29 Pedro Alves <palves@redhat.com>
1144 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1145 (tui_allowed_p): Delete function.
1146 * tui/tui.c: Include "interps.h".
1147 (tui_enable): Don't use tui_allowed_p. Error out here with
1148 detailed error messages if the TUI is the top level interpreter,
1149 or if output is not a terminal. Use newterm instead of initscr,
1150 and error out if initializing the terminal fails. Also error out if
1151 the terminal doesn't support cursor addressing.
1152 * tui/tui.h (tui_allowed_p): Delete declaration.
1154 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1156 * arm-tdep.c (arm_skip_stack_protector): Return early if
1157 address loaded by first "ldr" instruction does not have
1158 a corresponding minimal symbol. Update comment.
1160 2014-10-29 Yao Qi <yao@codesourcery.com>
1162 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1163 loaded address correctly of ldr instruction.
1165 2014-10-28 Pedro Alves <palves@redhat.com>
1168 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1170 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1171 thread's stepped_breakpoint field. Skip if reverse debugging.
1173 (init_thread_stepping_state, handle_signal_stop): Clear the
1174 thread's stepped_breakpoint field.
1176 2014-10-27 Pedro Alves <palves@redhat.com>
1178 * remote.c (remote_thread_alive): New, factored out from ...
1179 (remote_thread_alive): ... this.
1180 (remote_update_thread_list): Bail out before deleting threads if
1181 the target returned an empty list, and, the current thread has a
1184 2014-10-27 Pedro Alves <palves@redhat.com>
1186 * infrun.c (handle_signal_stop): Also skip handlers when a random
1187 signal arrives while handling a "stepi" or a "nexti". Set the
1188 thread's 'step_after_step_resume_breakpoint' flag.
1190 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1192 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1193 (arm_record_ld_st_imm_offset): Reimplement to cover all
1194 load/store cases for ARM opcode 010.
1195 (arm_record_ld_st_multiple): Reimplement to cover all
1196 load/store cases for ARM opcode 100.
1198 2014-10-26 Doug Evans <xdje42@gmail.com>
1200 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1202 2014-10-26 Doug Evans <xdje42@gmail.com>
1204 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1205 parameter "kind" to "block_index".
1206 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1208 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1210 2014-10-26 Doug Evans <xdje42@gmail.com>
1212 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1214 2014-10-26 Doug Evans <xdje42@gmail.com>
1216 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1219 2014-10-26 Doug Evans <xdje42@gmail.com>
1221 * parser-defs.h (block_found): Move decl from here ...
1222 * symtab.h (block_found): ... to here.
1224 2014-10-26 Doug Evans <xdje42@gmail.com>
1226 * symtab.h (struct field_of_this_result): Fix typo in comment.
1227 (lookup_symbol_in_language): Move function comment here.
1228 (lookup_symbol): Improve function comment.
1229 (basic_lookup_symbol_nonlocal): Ditto.
1230 (lookup_symbol_static, lookup_symbol_global): Ditto.
1231 (lookup_symbol_aux_block): Ditto.
1232 (lookup_language_this): Add function comment.
1233 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1235 (lookup_block_symbol): Improve function comment.
1236 (lookup_struct): Fix capitalization in function comment.
1237 (lookup_transparent_type): Add function comment.
1238 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1239 Improve function comment.
1240 (lookup_objfile_from_block): Add function comment.
1241 * symtab.c (lookup_symbol_in_language): Update function comment.
1242 (lookup_symbol, lookup_language_this): Ditto.
1243 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1244 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1245 (basic_lookup_symbol_nonlocal): Ditto.
1246 (lookup_symbol_static, lookup_symbol_global): Ditto.
1247 (lookup_transparent_type, lookup_block_symbol): Ditto.
1249 2014-10-25 Doug Evans <xdje42@gmail.com>
1251 * symtab.c (types_info): Delete forward decl.
1252 (functions_info, variables_info, sources_info): Ditto.
1253 (_initialize_symtab): Rewrite forward decl to use
1254 initialize_file_ftype.
1256 2014-10-25 Doug Evans <xdje42@gmail.com>
1258 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1260 2014-10-25 Doug Evans <xdje42@gmail.com>
1262 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1263 of local var child_die.
1265 2014-10-24 Don Breazeal <donb@codesourcery.com>
1267 * infrun.c (follow_fork_inferior): Update fork message printing
1268 to use target_terminal_ours_for_output instead of
1269 target_terminal_ours, to use _() for all format strings, to print
1270 "vfork" instead of "fork" for vforks, and to add a detach message.
1271 (handle_vfork_child_exec_or_exit): Update message printing to use
1272 target_terminal_ours_for_output instead of target_terminal_ours, to
1273 use _() for all format strings, and to fix some formatting.
1275 2014-10-24 Pedro Alves <palves@redhat.com>
1277 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1278 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1279 * config/vax/vax.mh: Delete.
1280 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1281 obsolete configurations section.
1282 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1283 * vax-nat.c: Delete file.
1285 2014-10-24 Pedro Alves <palves@redhat.com>
1287 * NEWS (Removed targets): Add OS/arch column.
1289 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1291 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1292 on the arg type of a constructor only if it is of reference type.
1294 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1296 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1297 accessors and constants from nios2 opcodes update.
1298 (nios2_get_next_pc): Likewise.
1300 2014-10-19 Doug Evans <xdje42@gmail.com>
1302 * gdbthread.h (set_running): Fix comment.
1303 (set_executing, finish_thread_state): Fix comment.
1305 2014-10-18 Doug Evans <xdje42@gmail.com>
1307 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1309 2014-10-17 Doug Evans <dje@google.com>
1311 * NEWS: Mention new event gdb.clear_objfiles.
1312 * python/py-event.h (emit_clear_objfiles_event): Clear
1313 * python/py-events.h (events_object): New member clear_objfiles.
1314 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1316 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1317 emit clear_objfiles event.
1318 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1320 (emit_clear_objfiles_event): New function.
1321 (clear_objfiles): New event.
1322 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1324 * python/python.c (_initialize_python): Call
1325 gdbpy_initialize_clear_objfiles_event.
1327 2014-10-17 Doug Evans <dje@google.com>
1329 * NEWS: Mention new gdb.Objfile.progspace attribute.
1330 * python/py-objfile.c (objfpy_get_progspace): New function.
1331 (objfile_getset): New entry for "progspace".
1333 2014-10-17 Pedro Alves <palves@redhat.com>
1336 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1337 returns a copy of the input.
1338 (run_command_1, continue_command, step_1, jump_command)
1339 (signal_command, until_command, advance_command, finish_command)
1340 (attach_command): Adjust and install a cleanup to free the
1343 2014-10-17 Pedro Alves <palves@redhat.com>
1346 * infcmd.c (continue_1): If continuing all threads in the
1347 foreground, make sure the inferior's terminal settings are put in
1350 2014-10-17 Pedro Alves <palves@redhat.com>
1353 * annotate.c (annotate_breakpoints_invalid): Use
1354 target_terminal_our_for_output instead of target_terminal_ours.
1355 Give back the terminal to the target.
1356 (annotate_frames_invalid): Likewise.
1358 2014-10-17 Pedro Alves <palves@redhat.com>
1360 * target.c (enum terminal_state): New enum.
1361 (terminal_state): New global.
1362 (target_terminal_init): New function.
1363 (target_terminal_inferior): Skip if inferior already owns the
1365 (target_terminal_ours, target_terminal_ours_for_output): New
1367 * target.h (target_terminal_init): Convert to function prototype.
1368 (target_terminal_ours_for_output): Convert to function prototype
1370 (target_terminal_ours): Convert to function prototype and tweak
1372 * windows-nat.c (do_initial_windows_stuff): Call
1373 target_terminal_init instead of child_terminal_init_with_pgrp.
1375 2014-10-17 Pedro Alves <palves@redhat.com>
1377 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1378 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1379 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1381 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1382 * ada-lang.h [__alpha__ && __osf__]
1383 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1384 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1385 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1387 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1389 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1390 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1391 * configure: Regenerate.
1392 * configure.ac: Remove references to osf.
1393 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1394 section. Remove all other references to osf.
1395 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1396 Remove all other references to osf.
1397 * dec-thread.c: Delete file.
1398 * defs.h (GDB_OSABI_OSF1): Delete.
1399 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1401 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1402 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1404 (unconditionally_kill_inferior)
1405 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1406 * solib-osf.c: Delete file.
1408 2014-10-17 Pedro Alves <palves@redhat.com>
1410 * remote.c (clear_threads_listing_context): Move higher up, out of
1411 the HAVE_LIBEXPAT guard.
1413 2014-10-16 Tristan Gingold <gingold@adacore.com>
1415 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1416 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1419 2014-10-15 Pedro Alves <palves@redhat.com>
1421 * dec-thread.c (dec_thread_count_gdb_threads)
1422 (dec_thread_add_gdb_thread): Delete.
1423 (dec_thread_update_thread_list): Delete.
1424 (dec_thread_find_new_threads): Rename to ...
1425 (dec_thread_update_thread_list): ... this. Delete GDB-size
1426 threads that are no longer found in dec_thread_list.
1427 (resync_thread_list): Delete.
1428 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1431 2014-10-15 Pedro Alves <palves@redhat.com>
1433 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1434 * remote.c (remote_update_thread_list): Skip calling prune_threads
1435 if any thread listing method is supported, and instead walk over
1436 the set of remote threads listed, deleting those that are not
1437 found in GDB's thread list.
1439 2014-10-15 Pedro Alves <palves@redhat.com>
1441 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1442 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1443 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1444 (bsd_uthread_target): Adjust.
1445 * corelow.c (core_open): Adjust.
1446 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1447 (dec_thread_update_thread_list): New function.
1448 (init_dec_thread_ops): Adjust.
1449 * gdbthread.h (prune_threads): New declaration.
1450 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1451 (thread_db_update_thread_list): ... this. Call prune_threads.
1452 (init_thread_db_ops): Adjust.
1453 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1454 (procfs_update_thread_list): ... this. Call prune_threads.
1455 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1457 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1458 (obsd_update_thread_list): ... this. Call prune_threads.
1459 (obsd_add_target): Adjust.
1460 * procfs.c (procfs_target): Adjust.
1461 (procfs_notice_thread): Update comment.
1462 (procfs_find_new_threads): Rename to ...
1463 (procfs_update_thread_list): ... this. Call prune_threads.
1464 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1466 (ravenscar_wait): Adjust.
1467 (ravenscar_find_new_threads): Rename to ...
1468 (ravenscar_update_thread_list): ... this. Call prune_threads.
1469 (init_ravenscar_thread_ops): Adjust.
1470 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1471 (record_btrace_update_thread_list): ... this. Adjust comment.
1472 (init_record_btrace_ops): Adjust.
1473 * remote.c (remote_threads_info): Rename to ...
1474 (remote_update_thread_list): ... this. Call prune_threads.
1475 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1477 * sol-thread.c (check_for_thread_db): Adjust.
1478 (sol_find_new_threads_callback): Rename to ...
1479 (sol_update_thread_list_callback): ... this.
1480 (sol_find_new_threads): Rename to ...
1481 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1482 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1483 * target-delegates.c: Regenerate.
1484 * target.c (target_find_new_threads): Rename to ...
1485 (target_update_thread_list): ... this.
1486 * target.h (struct target_ops): Rename to_find_new_threads field
1487 to to_update_thread_list.
1488 (target_find_new_threads): Rename to ...
1489 (target_update_thread_list): ... this.
1490 * thread.c (prune_threads): Make extern.
1491 (update_thread_list): Adjust.
1493 2014-10-15 Pedro Alves <palves@redhat.com>
1495 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1496 Add describing comment. Return -1 if the qL packet is not
1498 (struct thread_item, thread_item_t): Move higher up in
1499 the file. Add comments.
1500 (struct threads_parsing_context): Move higher up in
1501 the file, add comments, and remote to ...
1502 (struct threads_listing_context): ... this.
1503 (remote_newthread_step): Don't add the thread to GDB's thread
1504 database here. Instead push it to the thread_listing_context
1506 (remote_find_new_threads): Rename to ...
1507 (remote_get_threads_with_ql): ... this. Add target_ops and
1508 targets_listing_context parameters. Pass down context.
1509 (start_thread): Adjust.
1510 (clear_threads_parsing_context): Rename to ...
1511 (clear_threads_listing_context): ... this.
1512 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1513 remote_threads_info.
1514 (remote_get_threads_with_qthreadinfo): Ditto.
1515 (remote_threads_info): Reimplement.
1517 2014-10-15 Pedro Alves <palves@redhat.com>
1519 * infrun.c (resume): Don't force displaced-stepping for all
1520 single-steps on software single-stepping archs.
1522 2014-10-15 Pedro Alves <palves@redhat.com>
1524 * breakpoint.c (single_step_breakpoints): Delete global.
1525 (insert_single_step_breakpoint): Adjust to store the breakpoint
1526 pointer in the current thread.
1527 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1528 (cancel_single_step_breakpoints): Delete functions.
1529 (breakpoint_has_location_inserted_here): Make extern.
1530 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1532 * breakpoint.h (breakpoint_has_location_inserted_here): New
1534 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1535 (cancel_single_step_breakpoints): Remove declarations.
1536 * gdbthread.h (struct thread_control_state)
1537 <single_step_breakpoints>: New field.
1538 (delete_single_step_breakpoints)
1539 (thread_has_single_step_breakpoints_set)
1540 (thread_has_single_step_breakpoint_here): New declarations.
1541 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1542 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1543 (singlestep_pc): Delete globals.
1544 (infrun_thread_ptid_changed): Remove references to removed
1546 (resume_cleanups): Delete the current thread's single-step
1548 (maybe_software_singlestep): Remove references to removed globals.
1549 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1550 delete_single_step_breakpoints.
1551 (init_wait_for_inferior): Remove references to removed globals.
1552 (delete_thread_infrun_breakpoints): Delete the thread's
1553 single-step breakpoints too.
1554 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1555 single-step breakpoints here.
1556 (delete_stopped_threads_single_step_breakpoints): New function.
1557 (adjust_pc_after_break): Adjust to use
1558 thread_has_single_step_breakpoints_set.
1559 (handle_inferior_event): Remove references to removed globals.
1560 Use delete_stopped_threads_single_step_breakpoints.
1561 (handle_signal_stop): Adjust to per-thread single-step
1562 breakpoints. Swap test order to do cheaper tests first.
1563 (switch_back_to_stepped_thread): Extend debug output. Remove
1564 references to removed globals.
1565 * record-full.c (record_full_wait_1): Adjust to per-thread
1566 single-step breakpoints.
1567 * thread.c (delete_single_step_breakpoints)
1568 (thread_has_single_step_breakpoints_set)
1569 (thread_has_single_step_breakpoint_here): New functions.
1570 (clear_thread_inferior_resources): Also delete the thread's
1571 single-step breakpoints.
1573 2014-10-15 Pedro Alves <palves@redhat.com>
1575 * thread.c (delete_thread_breakpoint): New function.
1576 (delete_step_resume_breakpoint)
1577 (delete_exception_resume_breakpoint): Use it.
1578 (delete_at_next_stop): New function.
1579 (clear_thread_inferior_resources): Use delete_at_next_stop.
1581 2014-10-15 Pedro Alves <palves@redhat.com>
1583 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1584 (breakpoint_inserted_here_p): ... here. Remove special case for
1585 software single-step breakpoints.
1586 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1587 (software_breakpoint_inserted_here_p): ... here. Remove special
1588 case for software single-step breakpoints.
1589 (bp_target_info_copy_insertion_state)
1590 (deprecated_insert_raw_breakpoint)
1591 (deprecated_remove_raw_breakpoint): Delete functions.
1592 * breakpoint.h (deprecated_insert_raw_breakpoint)
1593 (deprecated_remove_raw_breakpoint): Remove declarations.
1595 2014-10-15 Pedro Alves <palves@redhat.com>
1598 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1599 Delete array globals.
1600 (single_step_breakpoints): New global.
1601 (breakpoint_xfer_memory): Remove special handling for single-step
1603 (update_breakpoints_after_exec): Delete bp_single_step
1605 (detach_breakpoints): Remove special handling for single-step
1607 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1608 (bpstat_stop_status): Add comment.
1609 (bpstat_what, bptype_string, print_one_breakpoint_location)
1610 (adjust_breakpoint_address, init_bp_location): Handle
1612 (new_single_step_breakpoint): New function.
1613 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1614 handling for single-step breakpoints.
1615 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1616 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1618 (detach_single_step_breakpoints, find_single_step_breakpoint):
1620 (breakpoint_has_location_inserted_here): New function.
1621 (single_step_breakpoint_inserted_here_p): Rewrite.
1622 * breakpoint.h: Remove FIXME.
1623 (enum bptype) <bp_single_step>: New enum value.
1624 (insert_single_step_breakpoint): Update comment.
1625 * infrun.c (resume_cleanups)
1626 (delete_step_thread_step_resume_breakpoint): Remove single-step
1628 (fetch_inferior_event): Install a cleanup that removes infrun
1630 (switch_back_to_stepped_thread) <expect thread advanced also>:
1631 Clear step-over info.
1633 2014-10-15 Pedro Alves <palves@redhat.com>
1635 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1636 (delete_thread_infrun_breakpoints): New function, with parts
1637 salvaged from delete_step_resume_breakpoint_callback.
1638 (delete_step_thread_step_resume_breakpoint): Delete.
1639 (for_each_just_stopped_thread_callback_func): New typedef.
1640 (for_each_just_stopped_thread): New function.
1641 (delete_just_stopped_threads_infrun_breakpoints): New function.
1642 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1643 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1645 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1647 2014-10-15 Pedro Alves <palves@redhat.com>
1649 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1650 trying to step past a non-steppable watchpoint.
1651 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1653 * infrun.c (struct step_over_info): Add new field
1654 'nonsteppable_watchpoint_p' and adjust comments.
1655 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1657 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1658 (stepping_past_nonsteppable_watchpoint): New function.
1659 (step_over_info_valid_p): Also return true if stepping past a
1660 nonsteppable watchpoint.
1661 (proceed): Adjust call to set_step_over_info. Remove reference to
1663 (init_wait_for_inferior): Remove reference to init_infwait_state.
1664 (waiton_ptid): Delete global.
1665 (struct execution_control_state)
1666 <stepped_after_stopped_by_watchpoint>: Delete field.
1667 (wait_for_inferior, fetch_inferior_event): Always pass
1668 minus_one_ptid to target_wait.
1669 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1671 (init_infwait_state): Delete function.
1672 (handle_inferior_event): Remove infwait_state handling.
1673 (handle_signal_stop) <watchpoints handling>: Adjust after
1674 stepped_after_stopped_by_watchpoint removal. Don't remove
1675 breakpoints here nor set infwait_state. Set the thread's
1676 stepping_over_watchpoint flag, and call keep_going instead.
1677 (keep_going): Handle stepping_over_watchpoint. Adjust
1678 set_step_over_info calls.
1679 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1682 2014-10-15 Pedro Alves <palves@redhat.com>
1684 * infrun.c (step_over_info_valid_p): New function.
1685 (resume): Use step_over_info_valid_p instead of checking the
1686 threads's trap_expected flag.
1688 2014-10-15 Doug Evans <dje@google.com>
1689 Walfred Tedeschi <walfred.tedeschi@intel.com>
1692 * python/lib/gdb/__init__.py (packages): Add "printer".
1693 * python/lib/gdb/command/bound_registers.py: Moved to ...
1694 * python/lib/gdb/printer/bound_registers.py: ... here.
1695 Add printer to global set of builtin printers. Rename printer from
1696 "bound" to "mpx_bound128".
1697 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1698 registered as global "builtin" printer.
1699 (add_builtin_pretty_printer): New function.
1700 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1701 gdb/printer/__init__.py.
1703 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1705 * Makefile.in (SFILES): Remove d-support.c.
1706 (COMMON_OBS): Remove d-support.o.
1707 * d-lang.h (d_parse_symbol): Remove declaration.
1708 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1709 * d-support.c: Remove file.
1711 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1713 * gdb/infrun.c (process_event_stop_test): Apply
1714 gdbarch_addr_bits_remove to longjmp resume address.
1716 2014-10-15 Pedro Alves <palves@redhat.com>
1718 * regformats/microblaze.dat: Delete file.
1720 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1722 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1723 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1725 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1727 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1730 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1734 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1735 with qualified args.
1737 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1739 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1740 of the case where the second operand is a pointer.
1741 <BINOP_SUB>: Likewise.
1743 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1745 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1746 only if it is not NULL.
1747 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1748 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1749 (struct probe_ops) <clear_semaphore>: Likewise.
1750 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1752 (stop_tracing): Likewise, for clear_semaphore.
1754 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1756 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1757 using language_c, instead of current_language.
1759 2014-10-13 Doug Evans <dje@google.com>
1761 * python/py-objfile.c (objfpy_initialize): New function.
1762 (objfpy_new, objfile_to_objfile_object): Call it.
1763 * python/py-progspace.c (pspy_initialize): New function.
1764 (pspy_new, pspace_to_pspace_object): Call it.
1766 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1767 Jan Kratochvil <jan.kratochvil@redhat.com>
1769 Fix "save breakpoints" for "catch" command.
1770 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1773 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1775 Fix "save breakpoints" for "disable $bpnum" command.
1776 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1778 2014-10-10 Pedro Alves <palves@redhat.com>
1780 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1781 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1782 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1783 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1785 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1786 * configure.ac: Remove references to IRIX.
1787 * configure.host: Add *-*-irix* to the obsolete hosts section.
1788 Remove all other references to irix.
1789 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1792 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1794 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1795 isn't valid, release the tdesc arch data and return NULL.
1797 2014-10-10 Pedro Alves <palves@redhat.com>
1799 * linux-tdep.c: Include observer.h.
1800 (linux_inferior_data): New global.
1801 (struct linux_info): New structure.
1802 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1803 (get_linux_inferior_data): New functions.
1804 (linux_vsyscall_range): Rename to ...
1805 (linux_vsyscall_range_raw): ... this.
1806 (linux_vsyscall_range): New function; handles caching.
1807 (_initialize_linux_tdep): Register linux_inferior_data. Install
1808 inferior_exit and inferior_appeared observers.
1810 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1811 Pedro Alves <palves@redhat.com>
1814 * solib-svr4.c (svr4_read_so_list): Rename to ...
1815 (svr4_current_sos_1): ... this and change the function comment.
1816 (svr4_current_sos): New function.
1818 2014-10-10 Pedro Alves <palves@redhat.com>
1820 * arch-utils.c (default_vsyscall_range): New function.
1821 * arch-utils.h (default_vsyscall_range): New declaration.
1822 * gdbarch.sh (vsyscall_range): New hook.
1823 * gdbarch.h, gdbarch.c: Regenerate.
1824 * linux-tdep.c (linux_vsyscall_range): New function.
1825 (linux_init_abi): Install linux_vsyscall_range as
1826 vsyscall_range gdbarch hook.
1827 * memrange.c (address_in_mem_range): New function.
1828 * memrange.h (address_in_mem_range): New declaration.
1829 * symfile-mem.c (find_vdso_size): Delete function.
1830 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1832 2014-10-10 Pedro Alves <palves@redhat.com>
1834 * infrun.c (normal_stop): Fix typo in comment.
1836 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1839 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1840 typo when using logical AND to determine instruction type.
1842 2014-10-09 Yao Qi <yao@codesourcery.com>
1844 * infrun.c (handle_signal_stop): Remove local variable
1847 2014-10-08 Stan Shebs <stan@codesourcery.com>
1849 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1851 2014-10-08 Gary Benson <gbenson@redhat.com>
1853 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1855 2014-10-08 Gary Benson <gbenson@redhat.com>
1857 * common/common-defs.h: Include common-exceptions.h.
1858 * exceptions.h: Do not include common-exceptions.h.
1860 2014-10-08 Gary Benson <gbenson@redhat.com>
1862 * common/common-defs.h: Include cleanups.h.
1863 * common/common-exceptions.c: Do not include cleanups.h.
1864 * utils.h: Likewise.
1866 2014-10-08 Gary Benson <gbenson@redhat.com>
1868 * ada-lang.c: Do not include exceptions.h.
1869 * ada-valprint.c: Likewise.
1870 * amd64-tdep.c: Likewise.
1871 * auto-load.c: Likewise.
1872 * block.c: Likewise.
1873 * break-catch-throw.c: Likewise.
1874 * breakpoint.c: Likewise.
1875 * btrace.c: Likewise.
1876 * c-lang.c: Likewise.
1877 * cli/cli-cmds.c: Likewise.
1878 * cli/cli-interp.c: Likewise.
1879 * cli/cli-script.c: Likewise.
1880 * completer.c: Likewise.
1881 * corefile.c: Likewise.
1882 * corelow.c: Likewise.
1883 * cp-abi.c: Likewise.
1884 * cp-support.c: Likewise.
1885 * cp-valprint.c: Likewise.
1886 * darwin-nat.c: Likewise.
1887 * dwarf2-frame-tailcall.c: Likewise.
1888 * dwarf2-frame.c: Likewise.
1889 * dwarf2loc.c: Likewise.
1890 * dwarf2read.c: Likewise.
1892 * event-loop.c: Likewise.
1893 * event-top.c: Likewise.
1894 * f-valprint.c: Likewise.
1895 * frame-unwind.c: Likewise.
1896 * frame.c: Likewise.
1897 * gdbtypes.c: Likewise.
1898 * gnu-v2-abi.c: Likewise.
1899 * gnu-v3-abi.c: Likewise.
1900 * guile/scm-auto-load.c: Likewise.
1901 * guile/scm-breakpoint.c: Likewise.
1902 * guile/scm-cmd.c: Likewise.
1903 * guile/scm-frame.c: Likewise.
1904 * guile/scm-lazy-string.c: Likewise.
1905 * guile/scm-param.c: Likewise.
1906 * guile/scm-symbol.c: Likewise.
1907 * guile/scm-type.c: Likewise.
1908 * hppa-hpux-tdep.c: Likewise.
1909 * i386-tdep.c: Likewise.
1910 * inf-loop.c: Likewise.
1911 * infcall.c: Likewise.
1912 * infcmd.c: Likewise.
1913 * infrun.c: Likewise.
1914 * interps.c: Likewise.
1915 * interps.h: Likewise.
1917 * linespec.c: Likewise.
1918 * linux-nat.c: Likewise.
1919 * linux-thread-db.c: Likewise.
1920 * m32r-rom.c: Likewise.
1922 * memory-map.c: Likewise.
1923 * mi/mi-cmd-break.c: Likewise.
1924 * mi/mi-cmd-stack.c: Likewise.
1925 * mi/mi-interp.c: Likewise.
1926 * mi/mi-main.c: Likewise.
1927 * monitor.c: Likewise.
1928 * nto-procfs.c: Likewise.
1929 * objc-lang.c: Likewise.
1930 * p-valprint.c: Likewise.
1931 * parse.c: Likewise.
1932 * ppc-linux-tdep.c: Likewise.
1933 * printcmd.c: Likewise.
1934 * probe.c: Likewise.
1935 * python/py-auto-load.c: Likewise.
1936 * python/py-breakpoint.c: Likewise.
1937 * python/py-cmd.c: Likewise.
1938 * python/py-finishbreakpoint.c: Likewise.
1939 * python/py-frame.c: Likewise.
1940 * python/py-framefilter.c: Likewise.
1941 * python/py-function.c: Likewise.
1942 * python/py-gdb-readline.c: Likewise.
1943 * python/py-inferior.c: Likewise.
1944 * python/py-infthread.c: Likewise.
1945 * python/py-lazy-string.c: Likewise.
1946 * python/py-linetable.c: Likewise.
1947 * python/py-param.c: Likewise.
1948 * python/py-prettyprint.c: Likewise.
1949 * python/py-symbol.c: Likewise.
1950 * python/py-type.c: Likewise.
1951 * python/py-value.c: Likewise.
1952 * python/python-internal.h: Likewise.
1953 * python/python.c: Likewise.
1954 * record-btrace.c: Likewise.
1955 * record-full.c: Likewise.
1956 * regcache.c: Likewise.
1957 * remote-fileio.c: Likewise.
1958 * remote-mips.c: Likewise.
1959 * remote.c: Likewise.
1960 * rs6000-aix-tdep.c: Likewise.
1961 * rs6000-nat.c: Likewise.
1963 * solib-darwin.c: Likewise.
1964 * solib-dsbt.c: Likewise.
1965 * solib-frv.c: Likewise.
1966 * solib-ia64-hpux.c: Likewise.
1967 * solib-spu.c: Likewise.
1968 * solib-svr4.c: Likewise.
1969 * solib.c: Likewise.
1970 * spu-tdep.c: Likewise.
1971 * stack.c: Likewise.
1972 * stap-probe.c: Likewise.
1973 * symfile-mem.c: Likewise.
1974 * symmisc.c: Likewise.
1975 * target.c: Likewise.
1976 * thread.c: Likewise.
1978 * tracepoint.c: Likewise.
1979 * tui/tui-interp.c: Likewise.
1980 * typeprint.c: Likewise.
1981 * utils.c: Likewise.
1982 * valarith.c: Likewise.
1983 * valops.c: Likewise.
1984 * valprint.c: Likewise.
1985 * value.c: Likewise.
1986 * varobj.c: Likewise.
1987 * windows-nat.c: Likewise.
1988 * xml-support.c: Likewise.
1990 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1992 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1994 (extended_mips16_next_pc): Update accordingly.
1996 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1998 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2000 (micromips_instruction_is_compact_branch): Likewise.
2001 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2002 or a compact jump, reaching a jump delay slot, or seeing a
2003 second non-prologue instruction.
2004 (micromips_scan_prologue): Also terminate scanning upon seeing a
2005 compact branch or jump, or reaching a branch or jump delay slot.
2006 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2007 or jump delay slot, or seeing a second non-prologue instruction.
2008 (mips32_instruction_has_delay_slot): Retain instruction
2009 examination code only, update arguments accordingly and move
2010 instruction fetch pieces to...
2011 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2012 (micromips_instruction_has_delay_slot): Likewise and to...
2013 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2014 (mips16_instruction_has_delay_slot): Likewise and to...
2015 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2016 (mips_single_step_through_delay): Update accordingly.
2017 (mips_adjust_breakpoint_address): Likewise.
2019 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2021 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2022 !mustbe32 also return 1 for 32-bit instructions.
2023 (mips16_instruction_has_delay_slot): Likewise. Add an
2024 explanatory comment.
2026 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2028 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2031 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2033 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2035 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2036 for the breakpoint's address. Don't preinitialize `placed_size'.
2037 (insert_bp_location): Set `reqstd_address' rather than
2039 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2040 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2042 (bkpt_remove_location): Likewise.
2043 (deprecated_insert_raw_breakpoint): Likewise.
2044 (deprecated_remove_raw_breakpoint): Likewise.
2045 (find_single_step_breakpoint): Likewise.
2046 * mem-break.c (default_memory_insert_breakpoint): Use
2047 `reqstd_address' for the breakpoint's address. Don't set
2048 `placed_address' or `placed_size' if breakpoint contents couldn't
2049 have been determined.
2050 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2051 the breakpoint's address.
2052 (remote_insert_hw_breakpoint): Likewise. Don't set
2053 `placed_address' or `placed_size' if breakpoint couldn't have been
2055 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2056 `reqstd_address' for the breakpoint's address.
2057 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2058 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2059 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2060 * microblaze-linux-tdep.c
2061 (microblaze_linux_memory_remove_breakpoint): Likewise.
2062 * monitor.c (monitor_insert_breakpoint): Likewise.
2063 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2064 (procfs_insert_hw_breakpoint): Likewise.
2065 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2066 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2067 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2068 * remote-mips.c (mips_insert_breakpoint): Likewise.
2069 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2071 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2073 * valops.c (value_assign): Check for bit field assignments
2074 before calling architecture-specific register value
2075 conversion functions.
2077 2014-10-03 Pierre Muller <muller@sourceware.org>
2079 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2081 2014-10-02 Pedro Alves <palves@redhat.com>
2083 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2084 threads_are_executing.
2085 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2087 * gdbthread.h (threads_are_executing): Declare.
2088 (handle_signal_stop) <random signals>: Don't print about the
2089 signal here if stopping.
2090 (end_stepping_range): Don't notify observers here.
2091 (normal_stop): Update the thread list. If stopped by a random
2092 signal or a stepping range ended, notify observers.
2093 * thread.c (threads_executing): New global.
2094 (init_thread_list): Clear 'threads_executing'.
2095 (set_executing): Set or clear 'threads_executing'.
2096 (threads_are_executing): New function.
2097 (update_threads_executing): New function.
2098 (update_thread_list): Use it.
2100 2014-10-02 Pedro Alves <palves@redhat.com>
2102 PR breakpoints/17431
2103 * breakpoint.c (update_breakpoints_after_exec): Don't create
2104 overlay, longjmp, std terminate nor exception breakpoints here.
2106 2014-10-02 Pedro Alves <palves@redhat.com>
2108 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2110 * inferior.c (find_inferior_for_program_space): Give preference to
2111 the current inferior.
2112 * inferior.h (find_inferior_for_program_space): Update comment.
2113 * progspace.c (switch_to_program_space_and_thread): Prefer the
2114 current inferior if it's bound to the program space requested. If
2115 the inferior found doesn't have a PID yet, don't bother looking up
2117 * progspace.h (switch_to_program_space_and_thread): Adjust
2119 * thread.c (any_thread_of_process, any_live_thread_of_process):
2120 Give preference to the current thread.
2122 2014-10-01 Pedro Alves <palves@redhat.com>
2124 * breakpoint.c (insert_bp_location): Error out if inserting a
2125 software breakpoint at a read-only address.
2126 * target.c (memory_xfer_check_region): New function, factored out
2128 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2130 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2131 against the memory region attributes.
2133 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2135 * NEWS: Announce new exit-code field in -list-thread-groups
2137 * inferior.c (exit_inferior_1): Don't clear exit code.
2138 (inferior_appeared): Clear exit code.
2139 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2142 2014-10-01 Pedro Alves <palves@redhat.com>
2144 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2145 GENERATED" along with emacs/vi read-only markers.
2146 * regformats/aarch64.dat: Regenerate.
2147 * regformats/arm-with-iwmmxt.dat: Regenerate.
2148 * regformats/arm-with-neon.dat: Regenerate.
2149 * regformats/arm-with-vfpv2.dat: Regenerate.
2150 * regformats/arm-with-vfpv3.dat: Regenerate.
2151 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2152 * regformats/i386/amd64-avx.dat: Regenerate.
2153 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2154 * regformats/i386/amd64-avx512.dat: Regenerate.
2155 * regformats/i386/amd64-linux.dat: Regenerate.
2156 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2157 * regformats/i386/amd64-mpx.dat: Regenerate.
2158 * regformats/i386/amd64.dat: Regenerate.
2159 * regformats/i386/i386-avx-linux.dat: Regenerate.
2160 * regformats/i386/i386-avx.dat: Regenerate.
2161 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2162 * regformats/i386/i386-avx512.dat: Regenerate.
2163 * regformats/i386/i386-linux.dat: Regenerate.
2164 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2165 * regformats/i386/i386-mmx.dat: Regenerate.
2166 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2167 * regformats/i386/i386-mpx.dat: Regenerate.
2168 * regformats/i386/i386.dat: Regenerate.
2169 * regformats/i386/x32-avx-linux.dat: Regenerate.
2170 * regformats/i386/x32-avx.dat: Regenerate.
2171 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2172 * regformats/i386/x32-avx512.dat: Regenerate.
2173 * regformats/i386/x32-linux.dat: Regenerate.
2174 * regformats/i386/x32.dat: Regenerate.
2175 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2176 * regformats/mips-dsp-linux.dat: Regenerate.
2177 * regformats/mips-linux.dat: Regenerate.
2178 * regformats/mips64-dsp-linux.dat: Regenerate.
2179 * regformats/mips64-linux.dat: Regenerate.
2180 * regformats/nios2-linux.dat: Regenerate.
2181 * regformats/rs6000/powerpc-32.dat: Regenerate.
2182 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2183 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2184 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2185 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2186 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2187 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2188 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2189 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2190 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2191 * regformats/s390-linux32.dat: Regenerate.
2192 * regformats/s390-linux32v1.dat: Regenerate.
2193 * regformats/s390-linux32v2.dat: Regenerate.
2194 * regformats/s390-linux64.dat: Regenerate.
2195 * regformats/s390-linux64v1.dat: Regenerate.
2196 * regformats/s390-linux64v2.dat: Regenerate.
2197 * regformats/s390-te-linux64.dat: Regenerate.
2198 * regformats/s390x-linux64.dat: Regenerate.
2199 * regformats/s390x-linux64v1.dat: Regenerate.
2200 * regformats/s390x-linux64v2.dat: Regenerate.
2201 * regformats/s390x-te-linux64.dat: Regenerate.
2202 * regformats/tic6x-c62x-linux.dat: Regenerate.
2203 * regformats/tic6x-c62x.dat: Regenerate.
2204 * regformats/tic6x-c64x-linux.dat: Regenerate.
2205 * regformats/tic6x-c64x.dat: Regenerate.
2206 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2207 * regformats/tic6x-c64xp.dat: Regenerate.
2209 2014-10-01 Pedro Alves <palves@redhat.com>
2211 * features/Makefile: Update comments.
2212 (XMLTOC): List all xml files we build C files from.
2213 (clean-cfiles): New rule.
2215 2014-10-01 Pedro Alves <palves@redhat.com>
2217 * features/i386/amd64-avx512-linux.c: Regenerate.
2218 * features/i386/amd64-avx512.c: Regenerate.
2219 * features/i386/x32-avx512-linux.c: Regenerate.
2220 * features/i386/x32-avx512.c: Regenerate.
2222 2014-10-01 Pedro Alves <palves@redhat.com>
2224 * features/Makefile (WHICH): Remove arm-with-m,
2225 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2227 2014-10-01 Pedro Alves <palves@redhat.com>
2229 * features/Makefile (clean): New rule.
2231 2014-10-01 Pedro Alves <palves@redhat.com>
2233 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2234 (zmm14h): Add missing end quotes.
2236 2014-10-01 Pedro Alves <palves@redhat.com>
2238 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2239 * features/aarch64.c: Regenerate.
2241 2014-09-30 Don Breazeal <donb@codesourcery.com>
2243 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2244 code so as to work with follow_fork_inferior.
2245 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2246 (inf_ttrace_create_inferior): Remove reference to
2247 inf_ttrace_vfork_ppid.
2248 (inf_ttrace_attach): Ditto.
2249 (inf_ttrace_detach): Ditto.
2250 (inf_ttrace_kill): Use current_inferior instead of
2251 inf_ttrace_vfork_ppid.
2252 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2253 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2254 inferior away from the parent.
2255 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2257 (follow_fork_inferior): New function.
2258 (follow_inferior_reset_breakpoints): Make function static.
2259 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2260 * linux-nat.c (linux_child_follow_fork): Move target-independent
2261 code to infrun.c:follow_fork_inferior.
2263 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2265 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2266 * gdbarch.c: Regenerate.
2267 * gdbarch.h: Likewise.
2268 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2269 gdbarch method 'regset_from_core_section'.
2270 (get_core_register_section): Remove handling for the case that
2271 regset == NULL and regset_from_core_section is defined.
2272 (get_core_registers): Drop check for deleted method.
2273 * procfs.c (procfs_do_thread_registers): Adjust comment.
2275 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2277 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2278 (linux_nat_make_corefile_notes): Remove.
2279 (linux_target_install_ops): Do not set target method
2280 'make_corefile_notes'.
2281 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2283 (linux_corefile_thread_callback): Instead of args->collect, call
2284 linux_collect_thread_registers.
2285 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2286 NULL unless there is a regset iterator.
2287 (linux_make_corefile_notes_1): Remove.
2288 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2289 by linux_make_corefile_notes.
2290 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2292 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2294 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2295 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2297 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2299 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2301 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2302 (xtensa_iterate_over_regset_sections): New.
2303 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2305 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2307 * vax-tdep.c (vax_regset_from_core_section): Remove.
2308 (vax_iterate_over_regset_sections): New.
2309 (vax_gdbarch_init): Adjust gdbarch initialization.
2311 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2313 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2314 (tilegx_regset_from_core_section): Remove.
2315 (tilegx_iterate_over_regset_sections): New.
2316 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2318 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2320 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2321 (sparc_iterate_over_regset_sections): New.
2322 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2323 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2325 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2326 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2327 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2328 target method 'make_corefile_notes'.
2330 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2332 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2333 'sizeof_gregset' and 'sizeof_fpregset'.
2334 * sh-tdep.c (sh_regset_from_core_section): Remove.
2335 (sh_iterate_over_regset_sections): New.
2336 (sh_gdbarch_init): Adjust gdbarch initialization.
2337 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2339 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2342 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2344 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2345 (score7_linux_iterate_over_regset_sections): New.
2346 (score_gdbarch_init): Adjust gdbarch initialization.
2348 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2350 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2352 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2353 method 'make_corefile_notes'.
2354 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2355 (ppcfbsd_regset_from_core_section): Remove.
2356 (ppcfbsd_iterate_over_regset_sections): New.
2357 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2359 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2360 (ppcnbsd_iterate_over_regset_sections): New.
2361 (ppcnbsd_init_abi): Adjust.
2362 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2363 (ppcobsd_iterate_over_regset_sections): New.
2364 (ppcobsd_init_abi): Adjust.
2365 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2366 (rs6000_aix_iterate_over_regset_sections): New.
2367 (rs6000_aix_init_osabi): Adjust.
2369 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2371 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2372 (nios2_regset_from_core_section): Remove.
2373 (nios2_iterate_over_regset_sections): New.
2374 (nios2_linux_init_abi): Adjust gdbarch initialization.
2376 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2378 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2379 (am33_iterate_over_regset_sections): New.
2380 (am33_linux_init_osabi): Adjust gdbarch initialization.
2382 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2384 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2385 (mips_linux_iterate_over_regset_sections): New.
2386 (mips_linux_init_abi): Adjust gdbarch initialization.
2387 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2388 (mips64obsd_iterate_over_regset_sections): New.
2389 (mips64obsd_init_abi): Adjust.
2390 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2391 (mipsnbsd_iterate_over_regset_sections): New.
2392 (mipsnbsd_init_abi): Adjust.
2394 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2396 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2397 (m88k_iterate_over_regset_sections): New.
2398 (m88k_gdbarch_init): Adjust gdbarch initialization.
2400 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2402 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2403 (ia64_linux_iterate_over_regset_sections): New.
2404 (ia64_linux_init_abi): Adjust gdbarch initialization.
2406 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2408 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2409 (m68kbsd_iterate_over_regset_sections): New.
2410 (m68kbsd_init_abi): Adjust gdbarch initialization.
2411 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2412 (m68k_linux_iterate_over_regset_sections): New.
2413 (m68k_linux_init_abi): Adjust gdbarch initialization.
2415 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2417 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2418 (m32r_linux_regset_from_core_section): Remove.
2419 (m32r_linux_iterate_over_regset_sections): New.
2420 (m32r_linux_init_abi): Adjust gdbarch initialization.
2422 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2424 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2425 (amd64obsd_iterate_over_regset_sections): New.
2426 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2427 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2429 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2430 regset_from_core_section initialization.
2431 * i386-tdep.c (i386_regset_from_core_section): Remove.
2432 (i386_iterate_over_regset_sections): New.
2433 (i386_gdbarch_init): Adjust gdbarch initialization.
2434 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2435 (i386_iterate_over_regset_sections): New prototype.
2436 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2438 (i386obsd_aout_iterate_over_regset_sections): New.
2439 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2440 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2442 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2443 (amd64fbsd_init_abi): Call fbsd_init_abi.
2444 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2445 (i386fbsd4_init_abi): Call fbsd_init_abi.
2446 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2447 target method 'make_corefile_notes'.
2448 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2450 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2452 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2453 (hppa_hpux_iterate_over_regset_sections): New.
2454 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2455 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2456 (hppa_linux_iterate_over_regset_sections): New.
2457 (hppa_linux_init_abi): Adjust.
2458 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2459 (hppanbsd_iterate_over_regset_sections): New.
2460 (hppanbsd_init_abi): Adjust.
2461 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2462 (hppaobsd_iterate_over_regset_sections): New.
2463 (hppaobsd_init_abi): Adjust.
2465 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2467 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2468 (frv_linux_iterate_over_regset_sections): New.
2469 (frv_linux_init_abi): Adjust gdbarch initialization.
2471 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2473 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2474 (armbsd_iterate_over_regset_sections): New prototype.
2475 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2476 (armbsd_iterate_over_regset_sections): New.
2477 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2480 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2482 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2483 (alpha_linux_iterate_over_regset_sections): New.
2484 (alpha_linux_init_abi): Adjust gdbarch initialization.
2485 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2487 (alphanbsd_iterate_over_regset_sections): New prototype.
2489 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2491 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2493 (aarch64_linux_iterate_over_regset_sections): New.
2494 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2496 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2498 * fbsd-tdep.c: New file.
2499 * fbsd-tdep.h: New file.
2500 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2501 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2502 (ALLDEPFILES): Add fbsd-tdep.c.
2504 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2506 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2508 * gdbarch.h: Regenerate.
2509 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2511 (get_core_register_section): Add parameter 'regset' and use it, if
2512 set. Add parameter 'min_size' and verify the bfd section size
2514 (get_core_registers_cb): Add parameter 'regset' and pass it to
2515 get_core_register section. For the "standard" register sections
2516 ".reg" and ".reg2", set an appropriate default for human_name.
2517 (get_core_registers): Don't abort when the gdbarch has an iterator
2518 but no regset_from_core_section. Add NULL/0 for parameters
2519 'regset'/'min_size' in calls to get_core_register_section.
2520 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2521 'regset' and use it instead of calling the
2522 regset_from_core_section gdbarch method.
2523 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2524 * i386-tdep.c (i386_supply_xstateregset)
2525 (i386_collect_xstateregset, i386_xstateregset): Moved to
2527 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2529 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2530 core file support only if the regset iterator hasn't been set.
2531 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2532 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2533 Moved from i386-tdep.c and renamed to *_linux*.
2534 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2535 each callback invocation. Allow any .reg-xstate size when reading
2537 * amd64-tdep.c (amd64_supply_xstateregset)
2538 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2540 (amd64_regset_from_core_section): Remove.
2541 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2542 install an amd64-specific regset_from_core_section gdbarch method.
2543 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2544 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2545 Moved from amd64-tdep.c and renamed to *_linux*.
2546 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2547 to each callback invocation. Allow any .reg-xstate size when
2548 reading from a core file.
2549 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2550 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2551 each callback invocation.
2552 (arm_linux_init_abi): No longer set the regset_from_core_section
2554 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2555 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2556 each callback invocation.
2557 (ppc_linux_init_abi): No longer set the regset_from_core_section
2559 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2560 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2561 (s390_regset_from_core_section): Remove.
2562 (s390_iterate_over_regset_sections): Add regset parameter to each
2563 callback invocation.
2564 (s390_gdbarch_init): No longer set the regset_from_core_section
2565 gdbarch method. Drop initialization of deleted tdep fields.
2567 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2569 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2570 (amd64_linux_iterate_over_regset_sections): New.
2571 (amd64_linux_init_abi_common): Don't install the regset section
2572 list, but the new iterator in gdbarch.
2573 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2574 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2575 (arm_linux_iterate_over_regset_sections): ...here. New function.
2576 (arm_linux_init_abi): Set iterator instead of section list.
2577 * corelow.c (get_core_registers_cb): New function, logic moved
2579 (get_core_registers): ...loop body here. Use new iterator method
2580 instead of walking through the regset section list.
2581 * gdbarch.sh: Remove 'core_regset_sections'. New method
2582 'iterate_over_regset_sections'. New typedef
2583 'iterate_over_regset_sections_cb'.
2584 * gdbarch.c: Regenerate.
2585 * gdbarch.h: Likewise.
2586 * i386-linux-tdep.c (i386_linux_regset_sections)
2587 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2589 (i386_linux_iterate_over_regset_sections): New.
2590 (i386_linux_init_abi): Don't choose a regset section list, but
2591 install new iterator in gdbarch.
2592 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2593 (linux_collect_regset_section_cb): New function, logic moved
2595 (linux_collect_thread_registers): ...loop body here. Use iterator
2596 method instead of walking through list.
2597 (linux_make_corefile_notes_1): Check for presence of iterator
2598 method instead of regset section list.
2599 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2600 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2601 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2602 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2603 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2604 (ppc_linux_init_abi): Don't choose from above regset section
2605 lists, but install new iterator in gdbarch.
2606 * regset.h (struct core_regset_section): Remove.
2607 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2608 have_linux_v1, have_linux_v2, and have_tdb.
2609 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2610 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2611 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2612 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2613 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2614 (s390_iterate_over_regset_sections): ...here. New function. Use
2616 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2617 regset section lists, but install new iterator.
2619 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2621 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2623 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2625 * progspace.c (print_program_space): Don't prune program spaces
2626 before printing them.
2628 2014-09-25 Pedro Alves <palves@redhat.com>
2630 * infrun.c (user_visible_resume_ptid): Don't check
2631 singlestep_breakpoints_inserted_p.
2633 2014-09-25 Pedro Alves <palves@redhat.com>
2635 * breakpoint.c (should_be_inserted): Add debug output.
2637 2014-09-25 Pedro Alves <palves@redhat.com>
2639 * infrun.c (stepping_past_instruction_at)
2640 (clear_exit_convenience_vars): Point at infrun.h instead of
2642 (handle_signal_stop): Fix typo.
2644 2014-09-24 Yao Qi <yao@codesourcery.com>
2646 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2649 2014-09-22 Gary Benson <gbenson@redhat.com>
2651 * target.c (target_stop): Updated comment.
2653 2014-09-22 Gary Benson <gbenson@redhat.com>
2655 * target/target.h (target_stop_ptid): Renamed as...
2656 (target_stop_and_wait): New function. Updated comment.
2658 (target_continue_ptid): Renamed as...
2659 (target_continue_no_signal): New function. Updated comment.
2662 2014-09-22 Pedro Alves <palves@redhat.com>
2664 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2666 * breakpoint.c (enum ugll_insert_mode): New enum.
2667 (always_inserted_mode): Now a plain boolean.
2668 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2669 (breakpoints_always_inserted_mode): Delete.
2670 (breakpoints_should_be_inserted_now): New function.
2671 (insert_breakpoints): Pass UGLL_INSERT to
2672 update_global_location_list instead of calling
2673 insert_breakpoint_locations manually.
2674 (create_solib_event_breakpoint_1): New, factored out from ...
2675 (create_solib_event_breakpoint): ... this.
2676 (create_and_insert_solib_event_breakpoint): Use
2677 create_solib_event_breakpoint_1 instead of calling
2678 insert_breakpoint_locations manually.
2679 (update_global_location_list): Change parameter type from boolean
2680 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2681 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2682 (update_global_location_list_nothrow): Change parameter type from
2683 boolean to enum ugll_insert_mode.
2684 (_initialize_breakpoint): "breakpoint always-inserted" option is
2685 now a boolean command. Update help text.
2686 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2687 (breakpoints_should_be_inserted_now): New declaration.
2688 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2689 Remove breakpoints_always_inserted_mode check.
2690 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2691 * remote.c (remote_start_remote): Likewise.
2693 2014-09-22 Pedro Alves <palves@redhat.com>
2695 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2696 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2697 Instead, pass UGLL_INSERT to update_global_location_list.
2698 (update_global_location_list): Change parameter type from boolean
2699 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2700 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2701 (create_solib_event_breakpoint_1): New, factored out from ...
2702 (create_solib_event_breakpoint): ... this.
2703 (create_and_insert_solib_event_breakpoint): Use
2704 create_solib_event_breakpoint_1 instead of calling
2705 insert_breakpoint_locations manually.
2706 (update_global_location_list): Handle UGLL_INSERT.
2708 2014-09-22 Pedro Alves <palves@redhat.com>
2710 * breakpoint.c (enum ugll_insert_mode): New enum.
2711 (update_global_location_list)
2712 (update_global_location_list_nothrow): Change parameter type from
2713 boolean to enum ugll_insert_mode. All callers adjusted.
2715 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2717 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2718 SystemTap support in GDB.
2720 2014-09-19 Don Breazeal <donb@codesourcery.com>
2722 * linux-nat.c (linux_handle_extended_wait): Call
2723 linux_ptrace_get_extended_event.
2724 (wait_lwp): Call linux_is_extended_waitstatus.
2725 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2726 and linux_is_extended_waitstatus.
2727 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2728 linux_ptrace_get_extended_event.
2729 (linux_ptrace_get_extended_event): New function.
2730 (linux_is_extended_waitstatus): New function.
2731 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2732 (linux_is_extended_waitstatus): New declarations.
2734 2014-09-19 Yao Qi <yao@codesourcery.com>
2736 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2737 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2738 comments. Callers update.
2739 (dwarf_decode_lines): Likewise.
2740 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2741 comments. Skip the line table if 'lowpc' is greater than
2742 'address'. Don't check
2743 dwarf2_per_objfile->has_section_at_zero.
2745 2014-09-18 Doug Evans <dje@google.com>
2747 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2748 * python/py-symtab.c (stpy_get_producer): New function.
2749 (symtab_object_getset): Add "producer" attribute.
2751 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2754 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2755 (do_captured_read_memory_integer): Remove.
2756 (safe_read_memory_integer): Use target_read_memory directly instead
2757 of catching errors in do_captured_read_memory_integer.
2759 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2761 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2764 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2766 * objc-lang.c (find_implementation_from_class): Remove dead code.
2768 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2771 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2772 "fprintf_unfiltered (gdb_stdlog...)".
2774 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2776 PR breakpoints/12526
2777 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2779 * breakpoint.c (watch_command_1): Use these fields to retain
2780 bitfield information.
2781 (extract_bitfield_from_watchpoint_value): New function.
2782 (watchpoint_check): Use it.
2783 (update_watchpoint): Use it. Optimize the address and length of a
2784 HW watchpoint pointing to a bitfield.
2785 * value.h (unpack_value_bitfield): New prototype.
2786 * value.c (unpack_value_bitfield): Make extern.
2788 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2790 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2792 * gnu-nat.c (inf_threads): New function.
2793 * gnu-nat.h (inf_threads_ftype): New typedef.
2794 (inf_threads): New declaration.
2795 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2796 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2797 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2798 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2799 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2800 (i386_gnu_dr_get_control): New functions.
2801 (reg_addr): New structure.
2802 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2803 i386 debugging register hooks.
2804 * NEWS: Mention this.
2806 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2808 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2809 vector data transfer instructions.
2810 (arm_record_coproc_data_proc): Updated.
2812 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2814 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2815 arm_record_exreg_ld_st_insn.
2816 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2819 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2821 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2822 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2823 processing instructions.
2825 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2827 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2828 for advance SIMD struct ld/st insn.
2829 (thumb2_record_decode_insn_handler): Replace stub handler with
2830 thumb2_record_asimd_struct_ld_st.
2832 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2834 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2835 for asimd, vfp and coprocessor insns.
2836 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2837 and coprocessor insns.
2838 (thumb2_record_coproc_insn): New function.
2839 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2841 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2844 2014-09-13 Doug Evans <xdje42@gmail.com>
2846 * NEWS: Mention new "queue-signal" command.
2847 * infcmd.c (queue_signal_command): New function.
2848 (_initialize_infcmd): Add new queue-signal command.
2850 2014-09-13 Doug Evans <xdje42@gmail.com>
2852 * linux-nat.c (wait_lwp): Add debugging printf.
2853 (linux_nat_wait_1): Ditto.
2855 2014-09-12 Pedro Alves <palves@redhat.com>
2857 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2858 (create_and_insert_solib_event_breakpoint): New functions.
2859 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2860 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2861 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2862 (remove_dbx_link_breakpoint): Delete function.
2863 (insert_dbx_link_bpt_in_file): Use
2864 create_and_insert_solib_event_breakpoint instead of
2865 deprecated_insert_raw_breakpoint.
2866 (procfs_wait): Don't check whether we hit __dbx_link here.
2867 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2869 * solib-irix.c (base_breakpoint): Delete global.
2870 (disable_break): Delete function.
2871 (enable_break): Use create_solib_event_breakpoint
2872 instead of deprecated_insert_raw_breakpoint.
2873 (irix_solib_handle_event): New function.
2874 (irix_solib_create_inferior_hook): Don't run the target or disable
2875 the mapping-complete breakpoint here.
2876 (_initialize_irix_solib): Install irix_solib_handle_event as
2877 so_ops->handle_event hook.
2879 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2880 Ulrich Weigand <uweigand@de.ibm.com>
2883 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2884 instead of read_memory_unsigned_integer.
2886 2014-09-12 Gary Benson <gbenson@redhat.com>
2888 * nat/linux-waitpid.c: Include common-defs.h.
2889 [GDBSERVER]: Add FIXME comment.
2890 [!GDBSERVER]: Don't include defs.h or signal.h.
2891 (linux_debug) [!GDBSERVER]: Remove empty block.
2893 2014-09-12 Gary Benson <gbenson@redhat.com>
2895 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2896 Don't include defs.h or server.h.
2898 2014-09-12 Gary Benson <gbenson@redhat.com>
2900 * nat/linux-btrace.c: Include common-defs.h.
2901 Don't include defs.h, server.h or gdbthread.h.
2902 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2904 2014-09-12 Gary Benson <gbenson@redhat.com>
2906 * common/agent.c: Include common-defs.h.
2907 Don't include defs.h or server.h.
2908 * common/buffer.c: Likewise.
2909 * common/common-debug.c: Likewise.
2910 * common/common-utils.c: Likewise.
2911 * common/errors.c: Likewise.
2912 * common/filestuff.c: Likewise.
2913 * common/format.c: Likewise.
2914 * common/gdb_vecs.c: Likewise.
2915 * common/print-utils.c: Likewise.
2916 * common/ptid.c: Likewise.
2917 * common/rsp-low.c: Likewise.
2918 * common/signals.c: Likewise.
2919 * common/vec.c: Likewise.
2920 * common/xml-utils.c: Likewise.
2921 * nat/linux-osdata.c: Likewise.
2922 * nat/linux-procfs.c: Likewise.
2923 * nat/linux-ptrace.c: Likewise.
2924 * nat/mips-linux-watch.c: Likewise.
2925 * target/waitstatus.c: Likewise.
2927 2014-09-12 Tom Tromey <tromey@redhat.com>
2928 Gary Benson <gbenson@redhat.com>
2930 * common/common-regcache.h: New file.
2931 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2932 * regcache.h: Include common-regcache.h.
2933 (regcache_read_pc): Don't declare.
2934 * regcache.c (get_thread_regcache_for_ptid): New function.
2935 * nat/linux-btrace.c: Don't include regcache.h.
2936 Include common-regcache.h.
2937 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2939 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2941 * regcache.h (struct regset): Declare.
2943 2014-09-11 Pedro Alves <palves@redhat.com>
2946 * main.c: Include "infrun.h".
2947 (catch_command_errors, catch_command_errors_const): Wait for the
2948 foreground command to complete.
2949 * top.c (maybe_wait_sync_command_done): New function, factored out
2951 (maybe_wait_sync_command_done): ... here.
2952 * top.h (maybe_wait_sync_command_done): New declaration.
2954 2014-09-11 Tom Tromey <tromey@redhat.com>
2955 Gary Benson <gbenson@redhat.com>
2957 * common/symbol.h: New file.
2958 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2959 * minsyms.c (find_minimal_symbol_address): New function.
2960 * common/agent.c: Include common/symbol.h.
2961 [!GDBSERVER]: Don't include objfiles.h.
2962 (agent_look_up_symbols): Use find_minimal_symbol_address.
2964 2014-09-11 Gary Benson <gbenson@redhat.com>
2966 * target/target.h (target_stop_ptid, target_continue_ptid):
2968 * target.c (target_stop_ptid, target_continue_ptid): New
2970 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2971 (agent_run_command): Always use target_stop_ptid and
2972 target_continue_ptid.
2974 2014-09-11 Tom Tromey <tromey@redhat.com>
2975 Gary Benson <gbenson@redhat.com>
2977 * target/target.h: New file.
2978 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2979 * target.h: Include target/target.h.
2980 (target_read_memory, target_write_memory): Don't declare.
2981 * target.c (target_read_uint32): New function.
2982 * common/agent.c: Include target/target.h.
2983 [!GDBSERVER]: Don't include target.h.
2984 (helper_thread_id): Type changed to uint32_t.
2985 (agent_get_helper_thread_id): Use target_read_uint32.
2986 (agent_run_command): Always use target_read_memory and
2987 target_write_memory.
2988 (agent_capability): Type changed to uint32_t.
2989 (agent_capability_check): Use target_read_uint32.
2991 2014-09-11 Gary Benson <gbenson@redhat.com>
2993 * common/common-debug.h (show_debug_regs): Declare.
2994 * common/common-debug.c (show_debug_regs): Define.
2995 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2996 all uses with show_debug_regs. Replace all uses that considered
2997 debug_hw_points as a multi-value integer with straight boolean
2999 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3000 with show_debug_regs.
3001 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3002 all uses with show_debug_regs.
3003 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3004 uses with show_debug_regs.
3006 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3008 * findvar.c (address_from_register): Handle targets requiring
3009 a special conversion routine even for plain pointer types.
3011 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3013 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3014 (store_register): Do not call exec_one_dummy_insn.
3016 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3018 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3019 dereference it first. Use value_enclosing_type instead of
3021 (ada_array_length): Likewise.
3023 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3025 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3026 Adjust function implementation and documentation accordingly.
3027 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3028 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3029 Update call to ada_value_ptr_subscript.
3031 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3033 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3034 instead of VAL's type.
3036 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3038 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3040 2014-09-09 Doug Evans <xdje42@gmail.com>
3043 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3044 last parameter to pkg-config, not first.
3045 * configure.ac: Pass --with-guile provided pkg-config path to
3046 GDB_GUILE_PROGRAM_NAMES.
3047 * configure: Regenerate.
3049 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3051 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3054 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3056 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3057 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3058 the list of sections determining GDB_OSABI_IRIX.
3060 2014-09-09 James Hogan <james.hogan@imgtec.com>
3062 * MAINTAINERS (Write After Approval): Add "James Hogan".
3064 2014-09-09 James Hogan <james.hogan@imgtec.com>
3066 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3068 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3070 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3072 2014-09-08 Doug Evans <xdje42@gmail.com>
3075 * guile.c: #include <signal.h>.
3076 (_initialize_guile): Block SIGCHLD while initializing Guile.
3078 Replaces the following, which is reverted.
3080 2014-07-26 Doug Evans <xdje42@gmail.com>
3083 * configure.ac: Add check for header gc/gc.h.
3084 Add check for function setenv.
3085 * configure: Regenerate.
3086 * config.in: Regenerate.
3087 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3089 2014-09-08 Doug Evans <xdje42@gmail.com>
3091 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3092 with named constant. Fix style of pointer comparison.
3093 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3095 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3098 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3099 decide whether we display the command on "show user".
3100 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3101 printing command name.
3102 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3103 * cli/cli-decode.c (cli_user_command_p): Create helper function
3104 to verify whether cmd_list_element is a user-defined command.
3106 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3109 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3110 Fix goto out of TRY_CATCH.
3112 2014-09-06 Doug Evans <xdje42@gmail.com>
3113 Tom Tromey <tromey@redhat.com>
3116 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3117 $_any_caller_matches.
3118 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3119 * python/lib/gdb/function/caller_is.py: New file.
3121 2014-09-06 Doug Evans <xdje42@gmail.com>
3123 * infcmd.c (program_info): Fix typo.
3125 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3128 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3129 'number'. New variable 'has_digit'. Rewrite code to deal with
3130 subexpressions on SDT probes.
3132 2014-09-04 Pedro Alves <palves@redhat.com>
3134 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3135 the input is only one character long.
3137 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3140 * f-valprint.c (f_val_print): Specify the correct print option to
3141 use when printing integer values.
3143 2014-09-04 Gary Benson <gbenson@redhat.com>
3145 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3146 Remove code to cope with LWPs wrapped as PIDs.
3147 Add assertions to ensure no wrapped LWPs are passed.
3149 2014-09-04 Pedro Alves <palves@redhat.com>
3151 * value.c (value_ranges_copy_adjusted): New function, factored out
3153 (value_contents_copy_raw): ... here.
3154 (unpack_value_bits_as_long_1): Rename back to ...
3155 (unpack_bits_as_long): ... this. Remove 'original_value' and
3156 'result' parameters. Change return type to LONGEST.
3157 (unpack_value_bits_as_long): Delete.
3158 (unpack_value_field_as_long_1): Delete.
3159 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3160 (unpack_value_bitfield): New function.
3161 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3162 (value_fetch_lazy): Use unpack_value_bitfield.
3163 * value.h (unpack_value_bits_as_long): Delete declaration.
3165 2014-09-03 Sasha Smundak <asmundak@google.com>
3167 * python/py-frame.c (frapy_read_register): New function.
3169 2014-09-03 James Hogan <james.hogan@imgtec.com>
3171 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3172 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3174 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3177 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3179 (add_cmd): Set "completer_handle_brkchars" to NULL.
3180 * cli/cli-decode.h (struct cmd_list_element)
3181 <completer_handle_brkchars>: New field.
3182 * command.h (completer_ftype_void): New typedef.
3183 (set_cmd_completer_handle_brkchars): New prototype.
3184 * completer.c (set_gdb_completion_word_break_characters): New
3186 (complete_line_internal): Call "completer_handle_brkchars"
3187 callback from command.
3188 * completer.h: Include "command.h".
3189 (set_gdb_completion_word_break_characters): New prototype.
3190 * python/py-cmd.c (cmdpy_completer_helper): New function.
3191 (cmdpy_completer_handle_brkchars): New function.
3192 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3193 (cmdpy_init): Set completer_handle_brkchars to
3194 cmdpy_completer_handle_brkchars.
3196 2014-09-03 Gary Benson <gbenson@redhat.com>
3198 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3199 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3200 Loop conditions changed to equivalent form.
3201 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3202 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3203 ALL_DEBUG_ADDRESS_REGISTERS.
3205 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3207 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3210 2014-09-02 Doug Evans <dje@google.com>
3212 * typeprint.c (find_global_typedef): Fix comment.
3214 2014-09-02 Gary Benson <gbenson@redhat.com>
3216 * i386-nat.h: Renamed as...
3217 * x86-nat.h: New file. All type, function and variable name
3218 prefixes changed from "i386_" to "x86_". All references updated.
3219 * i386-nat.c: Renamed as...
3220 * x86-nat.c: New file. All type, function and variable name
3221 prefixes changed from "i386_" to "x86_". All references updated.
3222 * common/i386-xstate.h: Renamed as...
3223 * common/x86-xstate.h: New file. All type, function and variable
3224 name prefixes changed from "i386_" to "x86_". All references
3226 * nat/i386-cpuid.h: Renamed as...
3227 * nat/x86-cpuid.h: New file. All type, function and variable name
3228 prefixes changed from "i386_" to "x86_". All references updated.
3229 * nat/i386-gcc-cpuid.h: Renamed as...
3230 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3231 name prefixes changed from "i386_" to "x86_". All references
3233 * nat/i386-dregs.h: Renamed as...
3234 * nat/x86-dregs.h: New file. All type, function and variable name
3235 prefixes changed from "i386_" to "x86_". All references updated.
3236 * nat/i386-dregs.c: Renamed as...
3237 * nat/x86-dregs.c: New file. All type, function and variable name
3238 prefixes changed from "i386_" to "x86_". All references updated.
3240 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3242 * varobj.c (_initialize_varobj): Move to the end of file.
3244 2014-08-29 Gary Benson <gbenson@redhat.com>
3246 * common/common-exceptions.h: New file.
3247 * common/common-exceptions.c: Likewise.
3248 * Makefile.in (SFILES): Add common/common-exceptions.c.
3249 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3250 (COMMON_OBS): Add common-exceptions.o.
3251 (common-exceptions.o): New rule.
3252 * exceptions.h (common-exceptions.h): Include.
3253 (gdb_setjmp.h): Do not include.
3254 (return_reason): Moved to common-exceptions.h.
3255 (enum return_reason): Likewise.
3256 (RETURN_MASK): Likewise.
3257 (typedef return_mask): Likewise.
3258 (enum errors): Likewise.
3259 (struct gdb_exception): Likewise.
3260 (exceptions_state_mc_init): Likewise.
3261 (exceptions_state_mc_action_iter): Likewise.
3262 (exceptions_state_mc_action_iter_1): Likewise.
3263 (TRY_CATCH): Likewise.
3264 (throw_exception): Likewise.
3265 (throw_verror): Likewise.
3266 (throw_vquit): Likewise.
3267 (throw_error): Likewise.
3268 (throw_quit): Likewise.
3269 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3270 (enum catcher_action): Likewise.
3271 (struct catcher): Likewise.
3272 (current_catcher): Likewise.
3273 (catcher_list_size): Likewise.
3274 (exceptions_state_mc_init): Likewise.
3275 (catcher_pop): Likewise.
3276 (exceptions_state_mc): Likewise.
3277 (exceptions_state_mc_action_iter): Likewise.
3278 (exceptions_state_mc_action_iter_1): Likewise.
3279 (throw_exception): Likewise.
3280 (exception_messages): Likewise.
3281 (exception_messages_size): Likewise.
3282 (throw_it): Likewise.
3283 (throw_verror): Likewise.
3284 (throw_vquit): Likewise.
3285 (throw_error): Likewise.
3286 (throw_quit): Likewise.
3287 (prepare_to_throw_exception): New function.
3289 2014-08-29 Gary Benson <gbenson@redhat.com>
3291 * common/gdb_setjmp.h: New file.
3292 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3293 * configure.ac: Move sigsetjmp check...
3294 * common/common.m4: ...here.
3295 * configure: Regenerate.
3296 * cp-support.c (SIGJMP_BUF): Delete.
3297 (SIGSETJMP): Likewise.
3298 (SIGLONGJMP): Likewise.
3299 * exceptions.h (gdb_setjmp.h): Include.
3300 (setjmp.h): Do not include.
3301 (EXCEPTIONS_SIGJMP_BUF): Delete.
3302 (EXCEPTIONS_SIGSETJMP): Likewise.
3303 (EXCEPTIONS_SIGLONGJMP): Likewise.
3304 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3306 * exceptions.c: Likewise.
3308 2014-08-29 Gary Benson <gbenson@redhat.com>
3310 * cleanups.h: Moved to...
3311 * common/cleanups.h: New file.
3312 * cleanups.c: Moved to...
3313 * common/cleanups.c: New file. Include common-defs.h and
3314 cleanups.h. Do not include defs.h.
3315 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3316 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3317 (cleanups.o): New rule.
3319 2014-08-29 Gary Benson <gbenson@redhat.com>
3321 * common/errors.h (internal_warning): New declaration.
3322 (internal_vwarning): Likewise.
3323 * common/errors.c (internal_warning): New function.
3324 * utils.h (internal_warning): Don't declare.
3325 (internal_vwarning): Likewise.
3326 * utils.c (internal_warning): Removed.
3328 2014-08-29 Gary Benson <gbenson@redhat.com>
3330 * main.c (captured_main): Use warning during startup.
3331 Prefix startup warning messages with command name.
3333 2014-08-29 Gary Benson <gbenson@redhat.com>
3335 * main.c (captured_main): Handle usage errors with error.
3337 2014-08-29 Gary Benson <gbenson@redhat.com>
3339 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3340 exit pair with a call to error. Wrap the message with _().
3342 2014-08-29 Gary Benson <gbenson@redhat.com>
3344 * main.c (captured_main): Replace a fprintf/exit
3345 pair with a call to error. Wrap the message with _().
3347 2014-08-29 Gary Benson <gbenson@redhat.com>
3349 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3350 pairs with calls to error. Wrap the message with _().
3352 2014-08-29 Gary Benson <gbenson@redhat.com>
3354 * utils.c (vwarning): Protect calls to target_terminal_ours
3357 2014-08-29 Gary Benson <gbenson@redhat.com>
3359 * exceptions.c (print_flush): Protect calls to
3360 target_terminal_ours and wrap_here.
3362 2014-08-29 Gary Benson <gbenson@redhat.com>
3364 * utils.h (filtered_printing_initialized): New declaration.
3365 * utils.c (abort_with_message): New function.
3366 (internal_vproblem): Use abort_with_message for first level
3367 recursive internal problems, and if gdb_stderr is not set up.
3368 Protect calls to target_terminal_ours, begin_line and query.
3370 2014-08-28 Doug Evans <dje@google.com>
3372 * symtab.c (in_prologue): Move definition to better spot.
3373 (skip_prologue_using_sal): Ditto.
3375 2014-08-28 Doug Evans <dje@google.com>
3377 * symtab.c (find_function_start_sal): Move definition to better spot.
3379 2014-08-28 Yao Qi <yao@codesourcery.com>
3381 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3382 found_stack_adjust in forward scan. Remove condition check
3383 on found_stack_adjust which is always true. Indent the code.
3385 2014-08-28 Yao Qi <yao@codesourcery.com>
3387 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3388 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3389 (dwarf_decode_lines): Remove argument
3390 want_line_info. Remove condition check on want_line_info.
3393 2014-08-27 Doug Evans <dje@google.com>
3395 * dwarf2read.c (dwarf_record_line): Fix typo.
3397 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3399 * target.h (struct target_ops::to_terminal_save_ours): Remove
3401 (target_terminal_save_ours): Remove macro.
3402 * target-delegates.c: Regenerate.
3403 * inf-child.c (inf_child_target): Don't set the nonexistent
3404 field to_terminal_save_ours.
3405 * inferior.h (child_terminal_save_ours): Remove declaration.
3406 * terminal.h (gdb_save_tty_state): New declaration.
3407 * inflow.c (child_terminal_save_ours): Rename to ...
3408 (gdb_save_tty_state): ... this.
3409 * tui/tui.c: Include terminal.h.
3410 (tui_enable): Use gdb_save_tty_state instead of
3411 target_terminal_save_ours.
3412 (tui_disable): Likewise.
3414 2014-08-25 Doug Evans <dje@google.com>
3416 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3417 Pass NULL instead of 0 for context pointer.
3419 2014-08-25 Yao Qi <yao@codesourcery.com>
3421 * dwarf2read.c: Fix grammatical error.
3423 2014-08-24 Yao Qi <yao@codesourcery.com>
3425 * dwarf2read.c (scan_partial_symbols): Update comments.
3426 Rename argument 'need_pc' with 'set_addrmap'.
3427 (add_partial_namespace): Rename argument 'need_pc' with
3429 (add_partial_module): Likewise.
3430 (add_partial_subprogram): Likewise. Update comments.
3431 (dwarf2_name): Fix typo.
3433 2014-08-22 Doug Evans <dje@google.com>
3436 * dwarf2read.c (dwarf_record_line_p): New function.
3437 (dwarf_decode_lines_1): Ignore subsequent line number entries
3438 for the same line if any entry had a non-zero discriminator.
3440 2014-08-22 Doug Evans <dje@google.com>
3442 * buildsym.h (record_line_ftype): New typedef.
3443 (record_line): Use it.
3444 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3445 (dwarf_decode_lines_1): Call them.
3447 2014-08-22 Yao Qi <yao@codesourcery.com>
3449 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3450 (ctf_end): Remove code.
3452 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3454 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3455 (linux_make_corefile_notes): call update_thread_list, protected against
3458 2014-08-21 Pedro Alves <palves@redhat.com>
3460 * infcmd.c (attach_command): Remove comment.
3462 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3464 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3465 unsigned LONGEST to ULONGEST.
3467 2014-08-20 Pedro Alves <palves@redhat.com>
3469 * Makefile.in (check-read1): New rule.
3471 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3473 * value.c (value_from_contents_and_address): Strip resolved_type's
3474 typedef layers before checking its TYPE_DATA_LOCATION.
3476 2014-08-20 Pedro Alves <palves@redhat.com>
3478 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3480 2014-08-20 Yao Qi <yao@codesourcery.com>
3482 * amd64-tdep.c (amd64_classify): Add a blank line after the
3483 example. Move "*/" to a new line.
3484 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3485 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3486 * dwarf2read.c (psymtab_include_file_name): Likewise.
3488 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3489 Pedro Alves <palves@redhat.com>
3493 * ada-lang.c (coerce_unspec_val_to_type): Use
3494 value_contents_copy_raw.
3495 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3496 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3497 * cp-valprint.c (cp_print_value_fields): Let the common printing
3498 code handle optimized out values.
3499 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3500 * d-valprint.c (dynamic_array_type): Use
3501 value_bits_any_optimized_out.
3502 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3503 check_any_valid fields.
3504 (check_pieced_value_bits): Delete and inline ...
3505 (check_pieced_synthetic_pointer): ... here.
3506 (check_pieced_value_validity): Delete.
3507 (check_pieced_value_invalid): Delete.
3508 (pieced_value_funcs): Remove check_validity and check_any_valid
3510 (read_pieced_value): Use mark_value_bits_optimized_out.
3511 (write_pieced_value): Switch to use
3512 mark_value_bytes_optimized_out.
3513 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3514 of assuming the whole value is optimized out.
3515 * findvar.c (read_frame_register_value): Remove special handling
3516 of optimized out registers.
3517 (value_from_register): Use mark_value_bytes_optimized_out.
3518 * frame-unwind.c (frame_unwind_got_optimized): Use
3519 mark_value_bytes_optimized_out.
3520 * jv-valprint.c (java_value_print): Adjust.
3521 (java_print_value_fields): Let the common printing code handle
3522 optimized out values.
3523 * mips-tdep.c (mips_print_register): Remove special handling of
3524 optimized out registers.
3525 * opencl-lang.c (lval_func_check_validity): Delete.
3526 (lval_func_check_any_valid): Delete.
3527 (opencl_value_funcs): Remove check_validity and check_any_valid
3529 * p-valprint.c (pascal_object_print_value_fields): Let the common
3530 printing code handle optimized out values.
3531 * stack.c (read_frame_arg): Remove special handling of optimized
3532 out values. Fetch both VAL and ENTRYVAL before comparing
3533 contents. Adjust to value_available_contents_eq rename.
3534 * valprint.c (valprint_check_validity)
3535 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3536 (val_print_array_elements): Adjust.
3537 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3538 (value_bits_any_optimized_out): New function.
3539 (value_entirely_covered_by_range_vector): New function, factored
3540 out from value_entirely_unavailable.
3541 (value_entirely_unavailable): Reimplement.
3542 (value_entirely_optimized_out): New function.
3543 (insert_into_bit_range_vector): New function, factored out from
3544 mark_value_bits_unavailable.
3545 (mark_value_bits_unavailable): Reimplement.
3546 (struct ranges_and_idx): New struct.
3547 (find_first_range_overlap_and_match): New function, factored out
3548 from value_available_contents_bits_eq.
3549 (value_available_contents_bits_eq): Rename to ...
3550 (value_contents_bits_eq): ... this. Check both unavailable
3551 contents and optimized out contents.
3552 (value_available_contents_eq): Rename to ...
3553 (value_contents_eq): ... this.
3554 (allocate_value_lazy): Remove reference to the old optimized_out
3556 (allocate_optimized_out_value): Use
3557 mark_value_bytes_optimized_out.
3558 (require_not_optimized_out): Adjust to check whether the
3559 optimized_out vec is empty.
3560 (ranges_copy_adjusted): New function, factored out from
3561 value_contents_copy_raw.
3562 (value_contents_copy_raw): Also copy the optimized out ranges.
3563 Assert the destination ranges aren't optimized out.
3564 (value_contents_copy): Update comment, remove call to
3565 require_not_optimized_out.
3566 (value_contents_equal): Adjust to check whether the optimized_out
3568 (set_value_optimized_out, value_optimized_out_const): Delete.
3569 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3571 (value_entirely_optimized_out, value_bits_valid): Delete.
3572 (value_copy): Take a VEC copy of the 'optimized_out' field.
3573 (value_primitive_field): Remove special handling of optimized out.
3574 (value_fetch_lazy): Assert that lazy values have no unavailable
3575 regions. Use value_bits_any_optimized_out. Remove some special
3576 handling for optimized out values.
3577 * value.h: Add intro comment about <optimized out> and
3579 (struct lval_funcs): Remove check_validity and check_any_valid
3581 (set_value_optimized_out, value_optimized_out_const): Remove.
3582 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3584 (value_bits_any_optimized_out): New declaration.
3585 (value_bits_valid): Delete declaration.
3586 (value_available_contents_eq): Rename to ...
3587 (value_contents_eq): ... this, and extend comments.
3589 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3591 Fix -fsanitize=address on unreadable inferior strings.
3592 * valprint.c (val_print_string): Fix access before BUFFER.
3594 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3596 * target.c (target_struct_size): Remove.
3597 (target_struct_allocsize): Remove.
3598 (DEFAULT_ALLOCSIZE): Remove.
3599 (target_ops_p): New typedef.
3600 (DEF_VEC_P (target_ops_p)): New vector type.
3601 (target_structs): Change type to VEC (target_ops_p).
3602 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3603 (find_default_run_target): Rewrite for loop following changes to
3606 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3608 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3609 Adjust code accordingly. Adjust function description comment.
3611 2014-08-19 Yao Qi <yao@codesourcery.com>
3613 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3616 2014-08-19 Alan Modra <amodra@gmail.com>
3618 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3619 * config.in: Regenerate.
3620 * configure: Regenerate.
3622 2014-08-19 Tom Tromey <tromey@redhat.com>
3623 Gary Benson <gbenson@redhat.com>
3625 * common/common-debug.h: New file.
3626 * common/common-debug.c: Likewise.
3627 * debug.c: Likewise.
3628 * Makefile.in (SFILES): Add common/common-debug.c.
3629 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3630 (COMMON_OBS): Add common-debug.o and debug.o.
3631 (common-debug.o): New rule.
3632 * common/common-defs.h: Include common-debug.h.
3633 * common/agent.c (debug_agent_printf): New function.
3634 (DEBUG_AGENT): Redefine.
3635 * nat/i386-dregs.c (debug_printf): Undefine.
3637 2014-08-19 Gary Benson <gbenson@redhat.com>
3639 * common/common-defs.h: Include print-utils.h.
3640 * utils.h: Do not include print-utils.h.
3642 2014-08-19 Tom Tromey <tromey@redhat.com>
3643 Gary Benson <gbenson@redhat.com>
3645 * common/common-types.h: New file.
3646 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3647 * common/common-defs.h: Include common-types.h.
3648 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3651 2014-08-19 Tom Tromey <tromey@redhat.com>
3652 Gary Benson <gbenson@redhat.com>
3654 * common/errors.h: New file.
3655 * common/errors.c: Likewise.
3656 * Makefile.in (SFILES): Add common/errors.c.
3657 (HFILES_NO_SRCDIR): Add common/errors.h.
3658 (COMMON_OBS): Add errors.o.
3659 (errors.o): New rule.
3660 * common/common-defs.h: Include errors.h.
3661 * utils.h (perror_with_name, error, verror, warning, vwarning):
3663 * common/common-utils.h: (malloc_failure, internal_error):
3666 2014-08-19 Gary Benson <gbenson@redhat.com>
3668 * utils.c (internal_vproblem): Always print the message.
3670 2014-08-18 Doug Evans <dje@google.com>
3672 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3674 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3676 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3677 Return 0 if TYPE is dynamic.
3678 (print_range): Add handling of dynamic ranges.
3680 2014-08-18 Keven Boell <keven.boell@intel.com>
3681 Joel Brobecker <brobecker@adacore.com>
3683 * gdbtypes.h (struct main_type): Add field "data_location".
3684 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3685 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3686 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3687 a dynamic data location.
3688 (resolve_dynamic_type): Add DW_AT_data_location handling.
3689 (copy_recursive, copy_type): Copy the data_location information
3691 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3692 * value.c (value_from_contents_and_address): Add
3693 DW_AT_data_location handling.
3695 2014-08-18 Keven Boell <keven.boell@intel.com>
3696 Joel Brobecker <brobecker@adacore.com>
3698 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3699 field "get_object_address".
3700 * dwarf2expr.c (execute_stack_op): Add handling for
3701 DW_OP_push_object_address.
3702 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3703 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3704 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3705 (dwarf_expr_get_obj_addr): New function.
3706 (dwarf_expr_ctx_funcs): Add get_object_address field.
3707 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3708 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3709 (dwarf2_evaluate_property): Add parameter "address". Use it.
3710 (needs_get_obj_addr): New function.
3711 (needs_frame_ctx_funcs): Add get_object_address field.
3712 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3713 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3714 (resolve_dynamic_array): Likewise.
3716 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3718 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3719 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3720 fixed value for records and unions for which some GNAT encodings
3723 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3725 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3726 rewrite to avoid "else if" and "else" constructs. Should be
3727 a no-op in practice.
3729 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3731 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3734 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3737 * eval.c: Update all calls to find_overload_match.
3738 * valarith.c: Likewise.
3739 (value_user_defined_cpp_op, value_user_defined_op): New
3740 argument NOSIDE. Update all callers.
3741 * valops.c (find_overload_match): New argument NOSIDE.
3742 * value.h (find_overload_match): Update signature.
3744 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3746 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3747 'items' methods instead of 'iteritems' method on dictionaries.
3749 2014-08-15 Doug Evans <dje@google.com>
3751 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3754 2014-08-15 Doug Evans <dje@google.com>
3756 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3758 2014-08-15 Doug Evans <dje@google.com>
3760 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3762 2014-08-15 Doug Evans <dje@google.com>
3764 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3767 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3769 * dcache.h: Include target.h, to avoid compile time warnings.
3771 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3773 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3774 frame_info" partial declaration.
3775 * gdbarch.h: Regenerate.
3777 2014-08-15 Yao Qi <yao@codesourcery.com>
3779 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3780 Add parameter 'decode_for_pst_p'. Callers update.
3782 2014-08-13 Yao Qi <yao@codesourcery.com>
3785 * configure.ac: Use local variable 'pos'.
3786 * configure: Regenerated.
3788 2014-08-11 Doug Evans <dje@google.com>
3790 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3791 message, it is redundant with "Reading symbols from ..." message.
3793 2014-08-10 Doug Evans <xdje42@gmail.com>
3795 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3797 2014-08-09 Yao Qi <yao@codesourcery.com>
3800 * remote.c (remote_xfer_partial): Remove dead code.
3802 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3804 * ia64-linux-tdep.c: Include "regset.h".
3805 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3806 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3807 (ia64_linux_supply_fpregset): New function.
3808 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3809 (ia64_linux_regset_from_core_section): New function.
3810 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3813 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3815 * m68klinux-tdep.c: Include "regset.h".
3816 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3817 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3818 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3819 (m68k_linux_regset_from_core_section): New function.
3820 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3823 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3825 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3826 function. Move logic to...
3827 (tilegx_linux_regmap): ... this new register map.
3828 (tilegx_linux_regset): Refer to register map, replace supply
3829 method by regcache_supply_regset, and add collect method.
3830 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3831 TILEGX_FIRST_EASY_REGNUM.
3833 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3835 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3836 that calls regcache_supply_regset and handles the EPC register
3837 separately. Move main logic to...
3838 (score7_linux_gregmap): ... this new register map.
3839 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3840 (score7_linux_gregset): Refer to register map. Add collect method.
3841 (score7_linux_regset_from_core_section): Replace
3842 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3843 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3844 (struct regset): Delete unused forward declaraction.
3845 (struct pt_regs): Delete structure definition.
3846 (elf_gregset_t): Delete typedef.
3848 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3850 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3851 (nios2_core_regset): Add collect method.
3853 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3855 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3856 platform-independent and don't write to read-only input buffer.
3857 (m32r_linux_collect_gregset): New function.
3858 (m32r_linux_gregset): Add collect method.
3860 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3862 * hppa-linux-tdep.c (greg_map): Rename to...
3863 (hppa_linux_gregmap): ... this. Also convert to
3864 regcache_map_entry format.
3865 (hppa_linux_supply_regset): Delete function.
3866 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3867 (hppa_linux_fpregmap): ... this new register map.
3868 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3869 register map, replace supply method by regcache_supply_regset, and
3870 add collect method regcache_collect_regset.
3872 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3874 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3875 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3876 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3877 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3878 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3879 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3880 (frv_linux_supply_gregset): Replace main logic by call to
3881 regcache_supply_regset, but keep clearing gr32-gr63.
3882 (frv_linux_supply_fpregset): Delete function.
3883 (frv_linux_gregset): Refer to appropriate register map and add
3884 regcache_collect_regset as the collect method.
3885 (frv_linux_fpregset): Likewise. Also exchange the supply method
3886 by regcache_supply_regset.
3888 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3890 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3891 by call to alpha_supply_int_regs.
3892 (alpha_linux_collect_gregset): New function.
3893 (alpha_linux_supply_fpregset): Replace logic by call to
3894 alpha_supply_fp_regs.
3895 (alpha_linux_collect_fpregset): New function.
3896 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3898 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3900 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3901 by call to regcache_collect_regset.
3902 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3903 instead of aarch64_linux_supply_gregset/_fpregset.
3904 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3905 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3906 header file instead.
3907 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3908 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3909 functions. Move logic to ...
3910 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3912 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3913 refer to new register maps, replace *_regset_from_core by
3914 regcache_supply_regset, and also use regcache_collect_regset.
3915 * aarch64-linux-tdep.h: Include "regset.h".
3916 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3918 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3919 macros, moved from C source file.
3920 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3921 variable declarations.
3923 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3925 * s390-linux-nat.c: Include "regset.h".
3926 (regmap_gregset): Delete macro.
3927 (s390_64_regmap_gregset): New register map for
3928 regcache_supply/_collect_regset.
3929 (s390_64_gregset): New regset.
3930 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3931 (regmap_fpregset): Delete macro.
3932 (s390_native_supply, s390_native_collect): Delete functions.
3933 (supply_gregset, fill_gregset): Replace s390-specific regmap
3934 handling by a call to regcache_supply/_collect_regset.
3935 (supply_fpregset, fill_fpregset): Call regcache_supply/
3936 _collect_regset instead of s390_native_supply/_collect.
3937 (fetch_regset, store_regset): Likewise. Also change the last
3938 parameter to a regset instead of a regmap.
3939 (s390_linux_fetch_inferior_registers)
3940 (390_linux_store_inferior_registers): Adjust last parameter in
3941 calls to fetch_regset and store_regset.
3942 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3943 (s390_gregmap): ... this. Also make static const and convert to
3944 regcache_map_entry format.
3945 (s390x_regmap_gregset): Delete.
3946 (s390_regmap_fpregset): Rename to...
3947 (s390_fpregmap): ... this. Make static const and convert to
3948 regcache_map_entry format.
3949 (s390_regmap_upper, s390_regmap_last_break)
3950 (s390x_regmap_last_break, s390_regmap_system_call)
3951 (s390_regmap_tdb): Likewise.
3952 (s390_supply_regset, s390_collect_regset): Remove functions.
3953 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3955 (s390_gregset, s390_fpregset, s390_upper_regset)
3956 (s390_last_break_regset, s390x_last_break_regset)
3957 (s390_system_call_regset, s390_tdb_regset): Make global and
3958 replace s390_supply/_collect_regset by regcache_supply/
3960 (s390x_gregset): Delete.
3961 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3962 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3963 (s390_regmap_fpregset, s390_regmap_last_break)
3964 (s390x_regmap_last_break, s390_regmap_system_call)
3965 (s390_regmap_tdb): Delete global variable declarations.
3966 (s390_gregset, s390_fpregset, s390_last_break_regset)
3967 (s390x_last_break_regset, s390_system_call_regset)
3968 (s390_tdb_regset): New global variable declarations.
3970 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3972 * regcache.c: Include "regset.h".
3973 (regcache_transfer_regset): New local function.
3974 (regcache_supply_regset, regcache_collect_regset): New functions.
3975 * regcache.h (struct regcache_map_entry): New structure.
3976 (REGCACHE_MAP_SKIP): New enum value.
3977 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3979 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3981 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3982 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3983 (ppc_linux_collect_gregset ): Likewise.
3984 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3985 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3986 (ppc_collect_vrregset): Likewise.
3987 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3990 2014-08-07 Yao Qi <yao@codesourcery.com>
3992 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3993 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3994 * remote.c (remote_read_bytes): Likewise.
3996 2014-08-07 Yao Qi <yao@codesourcery.com>
3998 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4000 2014-08-07 Yao Qi <yao@codesourcery.com>
4003 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4004 TARGET_XFER_OK instead of 0.
4006 2014-08-07 Gary Benson <gbenson@redhat.com>
4008 * common/common-defs.h: Include errno.h.
4009 * defs.h: Do not include errno.h.
4010 * ada-typeprint.c: Likewise.
4011 * c-typeprint.c: Likewise.
4012 * core-regset.c: Likewise.
4013 * corefile.c: Likewise.
4014 * corelow.c: Likewise.
4015 * event-loop.c: Likewise.
4016 * f-typeprint.c: Likewise.
4017 * gnu-nat.c: Likewise.
4018 * go32-nat.c: Likewise.
4019 * i386gnu-nat.c: Likewise.
4020 * m2-typeprint.c: Likewise.
4021 * nat/linux-btrace.c: Likewise.
4022 * p-typeprint.c: Likewise.
4023 * procfs.c: Likewise.
4024 * remote-sim.c: Likewise.
4025 * rs6000-nat.c: Likewise.
4026 * target.c: Likewise.
4027 * typeprint.c: Likewise.
4028 * ui-file.c: Likewise.
4029 * valops.c: Likewise.
4030 * valprint.c: Likewise.
4032 2014-08-07 Gary Benson <gbenson@redhat.com>
4034 * common/common-defs.h: Include string.h.
4035 * aarch64-tdep.c: Do not include string.h.
4036 * ada-exp.y: Likewise.
4037 * ada-lang.c: Likewise.
4038 * ada-lex.l: Likewise.
4039 * ada-typeprint.c: Likewise.
4040 * ada-valprint.c: Likewise.
4041 * aix-thread.c: Likewise.
4042 * alpha-linux-tdep.c: Likewise.
4043 * alpha-mdebug-tdep.c: Likewise.
4044 * alpha-nat.c: Likewise.
4045 * alpha-osf1-tdep.c: Likewise.
4046 * alpha-tdep.c: Likewise.
4047 * alphanbsd-tdep.c: Likewise.
4048 * amd64-dicos-tdep.c: Likewise.
4049 * amd64-linux-tdep.c: Likewise.
4050 * amd64-nat.c: Likewise.
4051 * amd64-sol2-tdep.c: Likewise.
4052 * amd64fbsd-tdep.c: Likewise.
4053 * amd64obsd-tdep.c: Likewise.
4054 * arch-utils.c: Likewise.
4055 * arm-linux-nat.c: Likewise.
4056 * arm-linux-tdep.c: Likewise.
4057 * arm-tdep.c: Likewise.
4058 * arm-wince-tdep.c: Likewise.
4059 * armbsd-tdep.c: Likewise.
4060 * armnbsd-nat.c: Likewise.
4061 * armnbsd-tdep.c: Likewise.
4062 * armobsd-tdep.c: Likewise.
4063 * avr-tdep.c: Likewise.
4064 * ax-gdb.c: Likewise.
4065 * ax-general.c: Likewise.
4066 * bcache.c: Likewise.
4067 * bfin-tdep.c: Likewise.
4068 * breakpoint.c: Likewise.
4069 * build-id.c: Likewise.
4070 * buildsym.c: Likewise.
4071 * c-exp.y: Likewise.
4072 * c-lang.c: Likewise.
4073 * c-typeprint.c: Likewise.
4074 * c-valprint.c: Likewise.
4075 * charset.c: Likewise.
4076 * cli-out.c: Likewise.
4077 * cli/cli-cmds.c: Likewise.
4078 * cli/cli-decode.c: Likewise.
4079 * cli/cli-dump.c: Likewise.
4080 * cli/cli-interp.c: Likewise.
4081 * cli/cli-logging.c: Likewise.
4082 * cli/cli-script.c: Likewise.
4083 * cli/cli-setshow.c: Likewise.
4084 * cli/cli-utils.c: Likewise.
4085 * coffread.c: Likewise.
4086 * common/agent.c: Likewise.
4087 * common/buffer.c: Likewise.
4088 * common/buffer.h: Likewise.
4089 * common/common-utils.c: Likewise.
4090 * common/filestuff.c: Likewise.
4091 * common/filestuff.c: Likewise.
4092 * common/format.c: Likewise.
4093 * common/print-utils.c: Likewise.
4094 * common/rsp-low.c: Likewise.
4095 * common/signals.c: Likewise.
4096 * common/vec.h: Likewise.
4097 * common/xml-utils.c: Likewise.
4098 * core-regset.c: Likewise.
4099 * corefile.c: Likewise.
4100 * corelow.c: Likewise.
4101 * cp-abi.c: Likewise.
4102 * cp-name-parser.y: Likewise.
4103 * cp-support.c: Likewise.
4104 * cp-valprint.c: Likewise.
4105 * cris-tdep.c: Likewise.
4106 * d-exp.y: Likewise.
4107 * darwin-nat.c: Likewise.
4108 * dbxread.c: Likewise.
4109 * dcache.c: Likewise.
4110 * demangle.c: Likewise.
4111 * dicos-tdep.c: Likewise.
4112 * disasm.c: Likewise.
4113 * doublest.c: Likewise.
4114 * dsrec.c: Likewise.
4115 * dummy-frame.c: Likewise.
4116 * dwarf2-frame.c: Likewise.
4117 * dwarf2loc.c: Likewise.
4118 * dwarf2read.c: Likewise.
4119 * elfread.c: Likewise.
4120 * environ.c: Likewise.
4122 * event-loop.c: Likewise.
4123 * exceptions.c: Likewise.
4125 * expprint.c: Likewise.
4126 * f-exp.y: Likewise.
4127 * f-lang.c: Likewise.
4128 * f-typeprint.c: Likewise.
4129 * f-valprint.c: Likewise.
4130 * fbsd-nat.c: Likewise.
4131 * findcmd.c: Likewise.
4132 * findvar.c: Likewise.
4133 * fork-child.c: Likewise.
4134 * frame.c: Likewise.
4135 * frv-linux-tdep.c: Likewise.
4136 * frv-tdep.c: Likewise.
4138 * gdb_bfd.c: Likewise.
4139 * gdbarch.c: Likewise.
4140 * gdbarch.sh: Likewise.
4141 * gdbtypes.c: Likewise.
4142 * gnu-nat.c: Likewise.
4143 * gnu-v2-abi.c: Likewise.
4144 * gnu-v3-abi.c: Likewise.
4145 * go-exp.y: Likewise.
4146 * go-lang.c: Likewise.
4147 * go32-nat.c: Likewise.
4148 * guile/guile.c: Likewise.
4149 * guile/scm-auto-load.c: Likewise.
4150 * hppa-hpux-tdep.c: Likewise.
4151 * hppa-linux-nat.c: Likewise.
4152 * hppanbsd-tdep.c: Likewise.
4153 * hppaobsd-tdep.c: Likewise.
4154 * i386-cygwin-tdep.c: Likewise.
4155 * i386-dicos-tdep.c: Likewise.
4156 * i386-linux-tdep.c: Likewise.
4157 * i386-nto-tdep.c: Likewise.
4158 * i386-sol2-tdep.c: Likewise.
4159 * i386-tdep.c: Likewise.
4160 * i386bsd-tdep.c: Likewise.
4161 * i386gnu-nat.c: Likewise.
4162 * i386nbsd-tdep.c: Likewise.
4163 * i386obsd-tdep.c: Likewise.
4164 * i387-tdep.c: Likewise.
4165 * ia64-libunwind-tdep.c: Likewise.
4166 * ia64-linux-nat.c: Likewise.
4167 * inf-child.c: Likewise.
4168 * inf-ptrace.c: Likewise.
4169 * inf-ttrace.c: Likewise.
4170 * infcall.c: Likewise.
4171 * infcmd.c: Likewise.
4172 * inflow.c: Likewise.
4173 * infrun.c: Likewise.
4174 * interps.c: Likewise.
4175 * iq2000-tdep.c: Likewise.
4176 * irix5-nat.c: Likewise.
4177 * jv-exp.y: Likewise.
4178 * jv-lang.c: Likewise.
4179 * jv-typeprint.c: Likewise.
4180 * jv-valprint.c: Likewise.
4181 * language.c: Likewise.
4182 * linux-fork.c: Likewise.
4183 * linux-nat.c: Likewise.
4184 * lm32-tdep.c: Likewise.
4185 * m2-exp.y: Likewise.
4186 * m2-typeprint.c: Likewise.
4187 * m32c-tdep.c: Likewise.
4188 * m32r-linux-nat.c: Likewise.
4189 * m32r-linux-tdep.c: Likewise.
4190 * m32r-rom.c: Likewise.
4191 * m32r-tdep.c: Likewise.
4192 * m68hc11-tdep.c: Likewise.
4193 * m68k-tdep.c: Likewise.
4194 * m68kbsd-tdep.c: Likewise.
4195 * m68klinux-nat.c: Likewise.
4196 * m68klinux-tdep.c: Likewise.
4197 * m88k-tdep.c: Likewise.
4198 * machoread.c: Likewise.
4199 * macrocmd.c: Likewise.
4201 * mdebugread.c: Likewise.
4202 * mem-break.c: Likewise.
4203 * memattr.c: Likewise.
4204 * memory-map.c: Likewise.
4205 * mep-tdep.c: Likewise.
4206 * mi/mi-cmd-break.c: Likewise.
4207 * mi/mi-cmd-disas.c: Likewise.
4208 * mi/mi-cmd-env.c: Likewise.
4209 * mi/mi-cmd-stack.c: Likewise.
4210 * mi/mi-cmd-var.c: Likewise.
4211 * mi/mi-cmds.c: Likewise.
4212 * mi/mi-console.c: Likewise.
4213 * mi/mi-getopt.c: Likewise.
4214 * mi/mi-interp.c: Likewise.
4215 * mi/mi-main.c: Likewise.
4216 * mi/mi-parse.c: Likewise.
4217 * microblaze-rom.c: Likewise.
4218 * microblaze-tdep.c: Likewise.
4219 * mingw-hdep.c: Likewise.
4220 * minidebug.c: Likewise.
4221 * minsyms.c: Likewise.
4222 * mips-irix-tdep.c: Likewise.
4223 * mips-linux-tdep.c: Likewise.
4224 * mips-tdep.c: Likewise.
4225 * mips64obsd-tdep.c: Likewise.
4226 * mipsnbsd-tdep.c: Likewise.
4227 * mipsread.c: Likewise.
4228 * mn10300-linux-tdep.c: Likewise.
4229 * mn10300-tdep.c: Likewise.
4230 * monitor.c: Likewise.
4231 * moxie-tdep.c: Likewise.
4232 * mt-tdep.c: Likewise.
4233 * nat/linux-btrace.c: Likewise.
4234 * nat/linux-osdata.c: Likewise.
4235 * nat/linux-procfs.c: Likewise.
4236 * nat/linux-ptrace.c: Likewise.
4237 * nat/linux-waitpid.c: Likewise.
4238 * nbsd-tdep.c: Likewise.
4239 * nios2-linux-tdep.c: Likewise.
4240 * nto-procfs.c: Likewise.
4241 * nto-tdep.c: Likewise.
4242 * objc-lang.c: Likewise.
4243 * objfiles.c: Likewise.
4244 * opencl-lang.c: Likewise.
4245 * osabi.c: Likewise.
4246 * osdata.c: Likewise.
4247 * p-exp.y: Likewise.
4248 * p-lang.c: Likewise.
4249 * p-typeprint.c: Likewise.
4250 * parse.c: Likewise.
4251 * posix-hdep.c: Likewise.
4252 * ppc-linux-nat.c: Likewise.
4253 * ppc-sysv-tdep.c: Likewise.
4254 * ppcfbsd-tdep.c: Likewise.
4255 * ppcnbsd-tdep.c: Likewise.
4256 * ppcobsd-tdep.c: Likewise.
4257 * printcmd.c: Likewise.
4258 * procfs.c: Likewise.
4259 * prologue-value.c: Likewise.
4260 * python/py-auto-load.c: Likewise.
4261 * python/py-gdb-readline.c: Likewise.
4262 * ravenscar-thread.c: Likewise.
4263 * regcache.c: Likewise.
4264 * registry.c: Likewise.
4265 * remote-fileio.c: Likewise.
4266 * remote-m32r-sdi.c: Likewise.
4267 * remote-mips.c: Likewise.
4268 * remote-notif.c: Likewise.
4269 * remote-sim.c: Likewise.
4270 * remote.c: Likewise.
4271 * reverse.c: Likewise.
4272 * rs6000-aix-tdep.c: Likewise.
4273 * ser-base.c: Likewise.
4274 * ser-go32.c: Likewise.
4275 * ser-mingw.c: Likewise.
4276 * ser-pipe.c: Likewise.
4277 * ser-tcp.c: Likewise.
4278 * ser-unix.c: Likewise.
4279 * serial.c: Likewise.
4280 * sh-tdep.c: Likewise.
4281 * sh64-tdep.c: Likewise.
4282 * shnbsd-tdep.c: Likewise.
4284 * sol-thread.c: Likewise.
4285 * solib-dsbt.c: Likewise.
4286 * solib-frv.c: Likewise.
4287 * solib-osf.c: Likewise.
4288 * solib-som.c: Likewise.
4289 * solib-spu.c: Likewise.
4290 * solib-target.c: Likewise.
4291 * solib.c: Likewise.
4292 * somread.c: Likewise.
4293 * source.c: Likewise.
4294 * sparc-nat.c: Likewise.
4295 * sparc-sol2-tdep.c: Likewise.
4296 * sparc-tdep.c: Likewise.
4297 * sparc64-tdep.c: Likewise.
4298 * sparc64fbsd-tdep.c: Likewise.
4299 * sparc64nbsd-tdep.c: Likewise.
4300 * sparcnbsd-tdep.c: Likewise.
4301 * spu-linux-nat.c: Likewise.
4302 * spu-multiarch.c: Likewise.
4303 * spu-tdep.c: Likewise.
4304 * stabsread.c: Likewise.
4305 * stack.c: Likewise.
4306 * std-regs.c: Likewise.
4307 * symfile.c: Likewise.
4308 * symmisc.c: Likewise.
4309 * symtab.c: Likewise.
4310 * target.c: Likewise.
4311 * thread.c: Likewise.
4312 * tilegx-linux-nat.c: Likewise.
4313 * tilegx-tdep.c: Likewise.
4315 * tracepoint.c: Likewise.
4316 * tui/tui-command.c: Likewise.
4317 * tui/tui-data.c: Likewise.
4318 * tui/tui-disasm.c: Likewise.
4319 * tui/tui-file.c: Likewise.
4320 * tui/tui-layout.c: Likewise.
4321 * tui/tui-out.c: Likewise.
4322 * tui/tui-regs.c: Likewise.
4323 * tui/tui-source.c: Likewise.
4324 * tui/tui-stack.c: Likewise.
4325 * tui/tui-win.c: Likewise.
4326 * tui/tui-windata.c: Likewise.
4327 * tui/tui-winsource.c: Likewise.
4328 * typeprint.c: Likewise.
4329 * ui-file.c: Likewise.
4330 * ui-out.c: Likewise.
4331 * user-regs.c: Likewise.
4332 * utils.c: Likewise.
4333 * v850-tdep.c: Likewise.
4334 * valarith.c: Likewise.
4335 * valops.c: Likewise.
4336 * valprint.c: Likewise.
4337 * value.c: Likewise.
4338 * varobj.c: Likewise.
4339 * vax-tdep.c: Likewise.
4340 * vaxnbsd-tdep.c: Likewise.
4341 * vaxobsd-tdep.c: Likewise.
4342 * windows-nat.c: Likewise.
4343 * xcoffread.c: Likewise.
4344 * xml-support.c: Likewise.
4345 * xstormy16-tdep.c: Likewise.
4346 * xtensa-linux-nat.c: Likewise.
4348 2014-08-07 Gary Benson <gbenson@redhat.com>
4350 * common/common-defs.h: Include gdb_assert.h.
4351 * aarch64-tdep.c: Do not include gdb_assert.h.
4352 * addrmap.c: Likewise.
4353 * aix-thread.c: Likewise.
4354 * alpha-linux-tdep.c: Likewise.
4355 * alpha-mdebug-tdep.c: Likewise.
4356 * alphanbsd-tdep.c: Likewise.
4357 * amd64-nat.c: Likewise.
4358 * amd64-tdep.c: Likewise.
4359 * amd64bsd-nat.c: Likewise.
4360 * amd64fbsd-nat.c: Likewise.
4361 * amd64fbsd-tdep.c: Likewise.
4362 * amd64nbsd-nat.c: Likewise.
4363 * amd64nbsd-tdep.c: Likewise.
4364 * amd64obsd-nat.c: Likewise.
4365 * amd64obsd-tdep.c: Likewise.
4366 * arch-utils.c: Likewise.
4367 * arm-tdep.c: Likewise.
4368 * armbsd-tdep.c: Likewise.
4370 * bcache.c: Likewise.
4371 * bfin-tdep.c: Likewise.
4372 * blockframe.c: Likewise.
4373 * breakpoint.c: Likewise.
4374 * bsd-kvm.c: Likewise.
4375 * bsd-uthread.c: Likewise.
4376 * buildsym.c: Likewise.
4377 * c-exp.y: Likewise.
4378 * c-lang.c: Likewise.
4379 * charset.c: Likewise.
4380 * cleanups.c: Likewise.
4381 * cli-out.c: Likewise.
4382 * cli/cli-decode.c: Likewise.
4383 * cli/cli-dump.c: Likewise.
4384 * cli/cli-logging.c: Likewise.
4385 * cli/cli-script.c: Likewise.
4386 * cli/cli-utils.c: Likewise.
4387 * coffread.c: Likewise.
4388 * common/common-utils.c: Likewise.
4389 * common/queue.h: Likewise.
4390 * common/signals.c: Likewise.
4391 * common/vec.h: Likewise.
4392 * complaints.c: Likewise.
4393 * completer.c: Likewise.
4394 * corelow.c: Likewise.
4395 * cp-abi.c: Likewise.
4396 * cp-name-parser.y: Likewise.
4397 * cp-namespace.c: Likewise.
4398 * cp-support.c: Likewise.
4399 * cris-tdep.c: Likewise.
4400 * dbxread.c: Likewise.
4401 * dictionary.c: Likewise.
4402 * doublest.c: Likewise.
4403 * dsrec.c: Likewise.
4404 * dummy-frame.c: Likewise.
4405 * dwarf2-frame-tailcall.c: Likewise.
4406 * dwarf2-frame.c: Likewise.
4407 * dwarf2expr.c: Likewise.
4408 * dwarf2loc.c: Likewise.
4409 * dwarf2read.c: Likewise.
4411 * event-loop.c: Likewise.
4412 * exceptions.c: Likewise.
4413 * expprint.c: Likewise.
4414 * f-valprint.c: Likewise.
4415 * fbsd-nat.c: Likewise.
4416 * findvar.c: Likewise.
4417 * frame-unwind.c: Likewise.
4418 * frame.c: Likewise.
4419 * frv-tdep.c: Likewise.
4420 * gcore.c: Likewise.
4421 * gdb-dlfcn.c: Likewise.
4422 * gdb_bfd.c: Likewise.
4423 * gdbarch.c: Likewise.
4424 * gdbarch.sh: Likewise.
4425 * gdbtypes.c: Likewise.
4426 * gnu-nat.c: Likewise.
4427 * gnu-v3-abi.c: Likewise.
4428 * go-lang.c: Likewise.
4429 * guile/scm-exception.c: Likewise.
4430 * guile/scm-gsmob.c: Likewise.
4431 * guile/scm-lazy-string.c: Likewise.
4432 * guile/scm-math.c: Likewise.
4433 * guile/scm-pretty-print.c: Likewise.
4434 * guile/scm-safe-call.c: Likewise.
4435 * guile/scm-utils.c: Likewise.
4436 * guile/scm-value.c: Likewise.
4437 * h8300-tdep.c: Likewise.
4438 * hppa-hpux-nat.c: Likewise.
4439 * hppa-tdep.c: Likewise.
4440 * hppanbsd-tdep.c: Likewise.
4441 * hppaobsd-tdep.c: Likewise.
4442 * i386-darwin-nat.c: Likewise.
4443 * i386-darwin-tdep.c: Likewise.
4444 * i386-nto-tdep.c: Likewise.
4445 * i386-tdep.c: Likewise.
4446 * i386bsd-nat.c: Likewise.
4447 * i386fbsd-tdep.c: Likewise.
4448 * i386gnu-nat.c: Likewise.
4449 * i386nbsd-tdep.c: Likewise.
4450 * i386obsd-tdep.c: Likewise.
4451 * i387-tdep.c: Likewise.
4452 * ia64-libunwind-tdep.c: Likewise.
4453 * ia64-tdep.c: Likewise.
4454 * inf-ptrace.c: Likewise.
4455 * inf-ttrace.c: Likewise.
4456 * infcall.c: Likewise.
4457 * infcmd.c: Likewise.
4458 * infrun.c: Likewise.
4459 * inline-frame.c: Likewise.
4460 * interps.c: Likewise.
4461 * jv-lang.c: Likewise.
4462 * jv-typeprint.c: Likewise.
4463 * linux-fork.c: Likewise.
4464 * linux-nat.c: Likewise.
4465 * linux-thread-db.c: Likewise.
4466 * m32c-tdep.c: Likewise.
4467 * m32r-linux-nat.c: Likewise.
4468 * m32r-tdep.c: Likewise.
4469 * m68k-tdep.c: Likewise.
4470 * m68kbsd-nat.c: Likewise.
4471 * m68kbsd-tdep.c: Likewise.
4472 * m88k-tdep.c: Likewise.
4473 * machoread.c: Likewise.
4474 * macroexp.c: Likewise.
4475 * macrotab.c: Likewise.
4476 * maint.c: Likewise.
4477 * mdebugread.c: Likewise.
4478 * memory-map.c: Likewise.
4479 * mep-tdep.c: Likewise.
4480 * mi/mi-common.c: Likewise.
4481 * microblaze-tdep.c: Likewise.
4482 * mingw-hdep.c: Likewise.
4483 * mips-linux-nat.c: Likewise.
4484 * mips-linux-tdep.c: Likewise.
4485 * mips-tdep.c: Likewise.
4486 * mips64obsd-tdep.c: Likewise.
4487 * mipsnbsd-tdep.c: Likewise.
4488 * mn10300-linux-tdep.c: Likewise.
4489 * mn10300-tdep.c: Likewise.
4490 * moxie-tdep.c: Likewise.
4491 * mt-tdep.c: Likewise.
4492 * nat/linux-btrace.c: Likewise.
4493 * nat/linux-osdata.c: Likewise.
4494 * nat/linux-ptrace.c: Likewise.
4495 * nat/mips-linux-watch.c: Likewise.
4496 * nios2-linux-tdep.c: Likewise.
4497 * nios2-tdep.c: Likewise.
4498 * objc-lang.c: Likewise.
4499 * objfiles.c: Likewise.
4500 * obsd-nat.c: Likewise.
4501 * opencl-lang.c: Likewise.
4502 * osabi.c: Likewise.
4503 * parse.c: Likewise.
4504 * ppc-linux-nat.c: Likewise.
4505 * ppc-sysv-tdep.c: Likewise.
4506 * ppcfbsd-nat.c: Likewise.
4507 * ppcfbsd-tdep.c: Likewise.
4508 * ppcnbsd-nat.c: Likewise.
4509 * ppcnbsd-tdep.c: Likewise.
4510 * ppcobsd-nat.c: Likewise.
4511 * ppcobsd-tdep.c: Likewise.
4512 * printcmd.c: Likewise.
4513 * procfs.c: Likewise.
4514 * prologue-value.c: Likewise.
4515 * psymtab.c: Likewise.
4516 * python/py-lazy-string.c: Likewise.
4517 * python/py-value.c: Likewise.
4518 * regcache.c: Likewise.
4519 * reggroups.c: Likewise.
4520 * registry.c: Likewise.
4521 * remote-sim.c: Likewise.
4522 * remote.c: Likewise.
4523 * rs6000-aix-tdep.c: Likewise.
4524 * rs6000-tdep.c: Likewise.
4525 * s390-linux-tdep.c: Likewise.
4526 * score-tdep.c: Likewise.
4527 * ser-base.c: Likewise.
4528 * ser-mingw.c: Likewise.
4529 * sh-tdep.c: Likewise.
4530 * sh64-tdep.c: Likewise.
4531 * solib-darwin.c: Likewise.
4532 * solib-spu.c: Likewise.
4533 * solib-svr4.c: Likewise.
4534 * source.c: Likewise.
4535 * sparc-nat.c: Likewise.
4536 * sparc-sol2-tdep.c: Likewise.
4537 * sparc-tdep.c: Likewise.
4538 * sparc64-sol2-tdep.c: Likewise.
4539 * sparc64-tdep.c: Likewise.
4540 * sparc64fbsd-tdep.c: Likewise.
4541 * sparc64nbsd-tdep.c: Likewise.
4542 * sparc64obsd-tdep.c: Likewise.
4543 * sparcnbsd-tdep.c: Likewise.
4544 * sparcobsd-tdep.c: Likewise.
4545 * spu-multiarch.c: Likewise.
4546 * spu-tdep.c: Likewise.
4547 * stabsread.c: Likewise.
4548 * stack.c: Likewise.
4549 * symfile.c: Likewise.
4550 * symtab.c: Likewise.
4551 * target-descriptions.c: Likewise.
4552 * target-memory.c: Likewise.
4553 * target.c: Likewise.
4554 * tic6x-linux-tdep.c: Likewise.
4555 * tic6x-tdep.c: Likewise.
4556 * tilegx-linux-nat.c: Likewise.
4557 * tilegx-tdep.c: Likewise.
4559 * tramp-frame.c: Likewise.
4560 * tui/tui-out.c: Likewise.
4561 * tui/tui-winsource.c: Likewise.
4562 * ui-out.c: Likewise.
4563 * user-regs.c: Likewise.
4564 * utils.c: Likewise.
4565 * v850-tdep.c: Likewise.
4566 * valops.c: Likewise.
4567 * value.c: Likewise.
4568 * varobj.c: Likewise.
4569 * vax-nat.c: Likewise.
4570 * xml-syscall.c: Likewise.
4571 * xml-tdesc.c: Likewise.
4572 * xstormy16-tdep.c: Likewise.
4573 * xtensa-linux-nat.c: Likewise.
4574 * xtensa-tdep.c: Likewise.
4576 2014-08-07 Gary Benson <gbenson@redhat.com>
4578 * common/common-defs.h: Include common-utils.h.
4579 * defs.h: Do not include common-utils.h.
4580 * common/gdb_assert.h: Likewise.
4581 * darwin-nat.h: Likewise.
4582 * nat/linux-btrace.c: Likewise.
4583 * target/waitstatus.h: Likewise.
4585 2014-08-07 Gary Benson <gbenson@redhat.com>
4587 * common/common-defs.h: Include ptid.h.
4588 * defs.h: Do not include ptid.h.
4589 * inferior.h: Likewise.
4590 * infrun.h: Likewise.
4591 * nat/linux-btrace.h: Likewise.
4592 * nat/linux-osdata.h: Likewise.
4593 * target/waitstatus.h: Likewise.
4595 2014-08-07 Gary Benson <gbenson@redhat.com>
4597 * common/common-defs.h: Include gdb_locale.h.
4598 * defs.h: Do not include gdb_locale.h.
4600 2014-08-07 Gary Benson <gbenson@redhat.com>
4602 * common/common-defs.h: Include gdb/signals.h.
4603 * defs.h: Do not include gdb/signals.h.
4605 2014-08-07 Gary Benson <gbenson@redhat.com>
4607 * common/common-defs.h: Include pathmax.h.
4608 * defs.h: Do not include pathmax.h.
4610 2014-08-07 Gary Benson <gbenson@redhat.com>
4612 * common/common-defs.h: Include libiberty.h.
4613 * defs.h: Do not include libiberty.h.
4614 * common/queue.h: Likewise.
4615 * cp-name-parser.y: Likewise.
4616 * mi/mi-cmd-catch.c: Likewise.
4617 * python/python.c: Likewise.
4619 2014-08-07 Gary Benson <gbenson@redhat.com>
4621 * common/common-defs.h: Include ansidecl.h.
4622 * defs.h: Do not include ansidecl.h.
4623 * common/buffer.h: Likewise.
4624 * common/common-utils.h: Likewise.
4626 2014-08-07 Gary Benson <gbenson@redhat.com>
4628 * common/common-defs.h: Include stddef.h.
4629 * defs.h: Do not include stddef.h.
4630 * common/common-utils.h: Likewise.
4631 * amd64fbsd-nat.c: Likewise.
4632 * bcache.c: Likewise.
4633 * charset.c: Likewise.
4634 * common/buffer.h: Likewise.
4635 * common/vec.h: Likewise.
4636 * i386bsd-nat.c: Likewise.
4637 * nat/linux-btrace.h: Likewise.
4638 * ppcfbsd-nat.c: Likewise.
4639 * ppcnbsd-tdep.h: Likewise.
4640 * ppcobsd-nat.c: Likewise.
4641 * ppcobsd-tdep.h: Likewise.
4642 * python/py-gdb-readline.c: Likewise.
4644 2014-08-07 Gary Benson <gbenson@redhat.com>
4646 * common/common-defs.h: Include stdarg.h.
4647 * defs.h: Do not include stdarg.h.
4648 * ada-lang.c: Likewise.
4649 * common/common-utils.h: Likewise.
4650 * guile/scm-string.c: Likewise.
4651 * guile/scm-utils.c: Likewise.
4652 * m32c-tdep.c: Likewise.
4654 2014-08-07 Gary Benson <gbenson@redhat.com>
4656 * common/common-defs.h: Include stdlib.h.
4657 * defs.h: Do not include stdlib.h.
4658 * addrmap.c: Likewise.
4659 * bcache.c: Likewise.
4660 * common/buffer.c: Likewise.
4661 * common/common-utils.c: Likewise.
4662 * cp-name-parser.y: Likewise.
4663 * go32-nat.c: Likewise.
4664 * mn10300-linux-tdep.c: Likewise.
4665 * nat/linux-osdata.c: Likewise.
4666 * tui/tui.c: Likewise.
4667 * windows-nat.c: Likewise.
4669 2014-08-07 Gary Benson <gbenson@redhat.com>
4671 * common/common-defs.h: Include stdio.h.
4672 * defs.h: Do not include stdio.h.
4673 * ada-lang.c: Likewise.
4674 * common/buffer.c: Likewise.
4675 * common/common-utils.c: Likewise.
4676 * cp-name-parser.y: Likewise.
4677 * gnu-nat.c: Likewise.
4678 * go32-nat.c: Likewise.
4679 * i386gnu-nat.c: Likewise.
4680 * proc-api.c: Likewise.
4681 * proc-events.c: Likewise.
4682 * proc-flags.c: Likewise.
4683 * proc-why.c: Likewise.
4684 * python/python-internal.h: Likewise.
4685 * target-memory.c: Likewise.
4686 * tui/tui-io.c: Likewise.
4687 * tui/tui.c: Likewise.
4689 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4691 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4692 (scan_dyntag_auxv): Same.
4694 2014-08-06 Yao Qi <yao@codesourcery.com>
4696 * amd64-linux-nat.c: Remove duplicated include
4698 * i386-linux-nat.c: Likewise.
4700 2014-08-06 Yao Qi <yao@codesourcery.com>
4702 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4703 operand" with "Special opcode" in comments.
4705 2014-08-05 Gary Benson <gbenson@redhat.com>
4707 * interps.c (initialize_interps): Remove prototype.
4708 (interpreter_initialized): Remove static global.
4709 (interp_add): Do not call initialize_interps.
4710 (initialize_interps): Remove function.
4712 2014-08-05 Gary Benson <gbenson@redhat.com>
4714 * utils.c (vwarning): Remove spurious va_end.
4716 2014-08-05 Alan Modra <amodra@gmail.com>
4718 * charset.c (convert_between_encodings): Cast result of obstack_base.
4719 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4720 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4721 (read_unwind_info): Use size_t for some locals.
4722 * jit.c (finalize_symtab): Likewise.
4723 * utils.c (hashtab_obstack_allocate): Likewise.
4724 * symmisc.c (print_objfile_statistics): Update format strings.
4726 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4728 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4729 (Changes in GDB 7.8): ... here.
4731 2014-08-04 Tom Tromey <tromey@redhat.com>
4733 * target.c (set_targetdebug): New function.
4734 (initialize_targets): Pass set_targetdebug when creating "set
4737 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4739 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4740 if detecting a variable-sized field that is not the last field.
4741 Fix struct type length computation.
4743 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4745 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4748 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4750 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4751 Remove "+ 8" offset in computation of CHAIN_VMA.
4753 2014-07-31 Doug Evans <dje@google.com>
4755 * inflow.c (child_terminal_inferior): Add comment.
4756 (child_terminal_ours_for_output): Add comment.
4757 (child_terminal_ours): Add comment.
4758 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4759 (linux_nat_terminal_ours): Add comment.
4761 2014-07-31 Gary Benson <gbenson@redhat.com>
4763 * common/btrace-common.h: Do not include defs.h or server.h.
4764 * nat/mips-linux-watch.h: Likewise.
4765 * gdb-dlfcn.h: Do not include defs.h.
4766 * tracefile.h: Likewise.
4768 2014-07-30 Roland McGrath <mcgrathr@google.com>
4770 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4772 2014-07-30 Tom Tromey <tromey@redhat.com>
4774 * bsd-kvm.c (bsd_kvm_open): Constify.
4775 * corelow.c (core_open): Constify.
4776 * ctf.c (ctf_open): Constify.
4777 * dbug-rom.c (dbug_open): Constify.
4778 * exec.c (exec_open): Constify.
4779 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4780 * microblaze-rom.c (picobug_open): Constify.
4781 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4783 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4784 * record-btrace.c (record_btrace_open): Constify.
4785 * record-full.c (record_full_core_open_1, record_full_open_1)
4786 (record_full_open): Constify.
4787 * remote-m32r-sdi.c (m32r_open): Constify.
4788 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4789 (rockhopper_open, lsi_open): Constify.
4790 * remote-sim.c (gdbsim_open): Constify.
4791 * remote.c (remote_open, extended_remote_open, remote_open_1):
4793 * target.h (struct target_ops) <to_open>: Make "arg" const.
4794 * tracefile-tfile.c (tfile_open): Constify.
4796 2014-07-30 Tom Tromey <tromey@redhat.com>
4798 * breakpoint.c (map_breakpoint_numbers): Update.
4799 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4800 (get_number_const): New function.
4801 (get_number): Rewrite using get_number_const.
4802 (init_number_or_range): Make "string" const.
4803 (number_is_in_list): Make "list" const.
4804 * cli/cli-utils.h (get_number_const): Declare.
4805 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4806 (init_number_or_range, number_is_in_list): Update.
4807 * printcmd.c (map_display_numbers): Update.
4808 * value.c (value_from_history_ref): Constify.
4809 * value.h (value_from_history_ref): Update.
4811 2014-07-30 Tom Tromey <tromey@redhat.com>
4813 * corefile.c (hook_type, call_extra_exec_file_hooks)
4814 (specify_exec_file_hook): Constify.
4815 * exec.c (exec_file_attach): Make "filename" const.
4816 * gdbcore.h (deprecated_exec_file_display_hook)
4817 (specify_exec_file_hook, exec_file_attach): Constify.
4818 * main.c (captured_main): Use catch_command_errors_const.
4820 2014-07-30 Tom Tromey <tromey@redhat.com>
4822 * target.c (open_target): New function.
4823 (add_target_with_completer, add_deprecated_target_alias): Use
4824 set_cmd_sfunc, set_cmd_context.
4825 (debug_to_open): Remove.
4826 (setup_target_debug): Update.
4828 2014-07-30 Yao Qi <yao@codesourcery.com>
4830 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4832 * parse.c (exp_iterate): Update comments.
4834 2014-07-30 Gary Benson <gbenson@redhat.com>
4836 * common/common-defs.h: New file.
4837 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4838 * defs.h: Include common-defs.h.
4839 Do not include config.h or build-gnulib/config.h.
4841 2014-07-30 Gary Benson <gbenson@redhat.com>
4843 * common/common-utils.h: Do not include config.h.
4844 * nat/linux-btrace.h: Likewise.
4846 2014-07-30 Gary Benson <gbenson@redhat.com>
4848 * btrace.c: Include defs.h.
4849 * common/ptid.c: Include defs.h or server.h as appropriate.
4850 * nat/mips-linux-watch.c: Likewise.
4852 2014-07-29 Tom Tromey <tromey@redhat.com>
4854 * target.c (target_is_pushed): Simplify.
4856 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4860 2014-07-29 Yao Qi <yao@codesourcery.com>
4863 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4865 2014-07-28 Doug Evans <xdje42@gmail.com>
4868 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4869 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4872 2014-07-28 Will Newton <will.newton@linaro.org>
4874 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4875 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4876 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4877 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4878 (THUMB2_EABI_SYSCALL): Likewise.
4879 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4881 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4882 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4884 2014-07-27 Doug Evans <xdje42@gmail.com>
4886 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4888 2014-07-27 Doug Evans <xdje42@gmail.com>
4890 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4892 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4893 Doug Evans <xdje42@gmail.com>
4896 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4897 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4898 * configure.ac: Try to use guild to compile an scm file, if it fails
4899 then disable guile support.
4900 * configure: Regenerate.
4901 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4903 (GUILE_COMPILED_FILES): New variable.
4904 (GUILE_FILES) Update.
4905 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4906 (stamp-guile): Compile scm files.
4907 * guile/guile.c (boot_guile_support): New function.
4908 (standard_throw_args_p): New function.
4909 (print_standard_throw_error, print_throw_error): New functions.
4910 (handle_boot_error): New function.
4911 (initialize_scheme_side): Rewrite to call boot_guile_support.
4912 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4913 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4915 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4916 Doug Evans <xdje42@gmail.com>
4919 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4920 * guile/lib/gdb/support.scm: New file.
4921 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4922 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4924 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4926 (%assert-type): Ditto, and renamed to assert-type.
4927 (%exception-print-style): Delete.
4929 2014-07-26 Doug Evans <xdje42@gmail.com>
4932 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4933 * configure: Regenerate.
4934 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4936 (PYTHON_FILES): New variable.
4937 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4938 (GUILE_FILES): New variable.
4939 (stamp-python, install-python, uninstall-python): Handle empty
4941 (stamp-guile, install-guile, uninstall-guile): Ditto.
4943 2014-07-26 Doug Evans <xdje42@gmail.com>
4946 * guile/lib/gdb.scm (pretty-printers): Export.
4947 (set-pretty-printers!): Export.
4948 * guile/lib/gdb/printing.scm (gdb module): Update.
4949 (prepend-pretty-printer!, append-pretty-printer!): Update.
4950 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4951 (pretty_printer_list_var): Delete.
4952 (pretty_printer_list): New static global.
4953 (gdbscm_pretty_printers): New function.
4954 (gdbscm_set_pretty_printers_x): New function.
4955 (ppscm_find_pretty_printer_from_gdb): Update.
4956 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4957 (gdbscm_initialize_pretty_printers): Update.
4959 2014-07-26 Doug Evans <xdje42@gmail.com>
4962 * configure.ac: Add check for header gc/gc.h.
4963 Add check for function setenv.
4964 * configure: Regenerate.
4965 * config.in: Regenerate.
4966 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4968 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4970 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4971 variation in gdbarch matching.
4973 2014-07-25 Tom Tromey <tromey@redhat.com>
4975 * exec.c (using_exec_ops): Remove.
4976 (exec_close_1): Update. Remove extraneous block, reindent.
4977 (add_target_sections): Use target_is_pushed.
4979 2014-07-25 Pedro Alves <palves@redhat.com>
4981 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4982 * monitor.c (monitor_create_inferior): Likewise.
4983 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4984 * remote-sim.c (gdbsim_create_inferior): Likewise.
4985 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4986 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4987 * windows-nat.c (do_initial_windows_stuff): Likewise.
4989 2014-07-25 Pedro Alves <palves@redhat.com>
4991 * NEWS: Mention signal passing and "signal" command changes.
4992 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4994 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4996 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4997 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4998 (jump_command): Adjust clear_proceed_status call.
4999 (signal_command): Warn if other thread that are resumed have
5000 signals that will be delivered. Adjust clear_proceed_status call.
5001 (until_next_command, finish_command)
5002 (proceed_after_attach_callback, attach_command_post_wait)
5003 (attach_command): Adjust clear_proceed_status call.
5004 * infrun.c (proceed_after_vfork_done): Likewise.
5005 (proceed_after_attach_callback): Adjust comment.
5006 (clear_proceed_status_thread): Clear stop_signal if not in pass
5008 (clear_proceed_status_callback): Delete.
5009 (clear_proceed_status): New 'step' parameter. Only clear the
5010 proceed status of threads the command being prepared is about to
5012 (proceed): If passed in an explicit signal, override stop_signal
5013 with it. Don't pass the last stop signal to the thread we're
5015 (init_wait_for_inferior): Adjust clear_proceed_status call.
5016 (switch_back_to_stepped_thread): Clear the signal if it should not
5018 * infrun.h (clear_proceed_status): New 'step' parameter.
5019 (user_visible_resume_ptid): Add comment.
5020 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5021 signal is in pass state.
5022 * remote.c (append_pending_thread_resumptions): Likewise.
5023 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5025 2014-07-25 Tom Tromey <tromey@redhat.com>
5027 * target.h (target_stopped_data_address)
5028 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5031 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5033 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5035 (avr_pointer_to_address): Likewise.
5037 2014-07-24 Tom Tromey <tromey@redhat.com>
5039 * monitor.c (compile_pattern): Update.
5040 * target.h (struct target_ops) <to_shortname, to_longname,
5043 2014-07-24 Tom Tromey <tromey@redhat.com>
5045 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5046 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5047 (add_info_alias, add_com): Make "doc" const.
5048 (print_doc_line): Make "str" const.
5049 (delete_cmd): Update.
5050 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5051 (print_doc_line): Update.
5052 * cli/cli-script.c (document_command): Update.
5053 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5054 (add_com, add_info, add_info_alias): Update.
5055 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5056 * python/py-cmd.c (cmdpy_destroyer): Update.
5058 2014-07-24 Tom Tromey <tromey@redhat.com>
5060 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5061 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5062 (help_cmd_list): Constify.
5063 (lookup_cmd): Update.
5064 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5066 (help_cmd_list, apropos_cmd): Update.
5067 * cli/cli-script.c (show_user): Update.
5068 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5069 * cli/cli-setshow.h (cmd_show_list): Update.
5070 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5071 (cmd_show_list): Update.
5072 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5073 * python/py-cmd.c (cmdpy_destroyer): Update.
5075 2014-07-24 Tom Tromey <tromey@redhat.com>
5077 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5078 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5080 * command.h (deprecate_cmd): Update.
5081 * maint.c (maintenance_do_deprecate): Add casts.
5083 2014-07-24 Tom Tromey <tromey@redhat.com>
5085 * cli/cli-decode.c (help_cmd): Make parameter "const".
5086 * cli/cli-decode.h (help_cmd): Update.
5088 2014-07-24 Tom Tromey <tromey@redhat.com>
5090 * stack.c (up_silently_base, down_silently_base): Make argument
5093 2014-07-24 Tom Tromey <tromey@redhat.com>
5095 * solib.c (solib_add): Make "pattern" const.
5096 * solib.h (solib_add): Update.
5098 2014-07-24 Tom Tromey <tromey@redhat.com>
5100 * remote.c (remote_serial_open, print_packet, putpkt)
5101 (putpkt_binary): Constify.
5102 * remote.h (putpkt): Update.
5104 2014-07-24 Tom Tromey <tromey@redhat.com>
5106 * monitor.c (monitor_open): Make "args" const.
5107 * monitor.h (monitor_open): Update.
5109 2014-07-24 Tom Tromey <tromey@redhat.com>
5111 * maint.c (match_bfd_flags): Make "string" const.
5112 (print_bfd_section_info): Remove casts.
5113 (print_objfile_section_info): Make "string" const.
5115 2014-07-24 Tom Tromey <tromey@redhat.com>
5117 * inf-child.c (inf_child_open_target): Make "arg" const.
5118 * inf-child.h (inf_child_open_target): Update.
5120 2014-07-24 Tom Tromey <tromey@redhat.com>
5122 * environ.c (unset_in_environ): Make "var" const.
5123 * environ.h (unset_in_environ): Update.
5125 2014-07-24 Tom Tromey <tromey@redhat.com>
5127 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5129 (scan_filename_with_cleanup): Likewise.
5130 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5131 Make arguments const.
5132 (restore_command): Update.
5134 2014-07-24 Pedro Alves <palves@redhat.com>
5136 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5138 2014-07-24 Tom Tromey <tromey@redhat.com>
5139 Gary Benson <gbenson@redhat.com>
5141 * nat/linux-ptrace.c (additional_flags): New global.
5142 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5143 additional_flags; don't check GDBSERVER.
5144 (linux_ptrace_set_additional_flags): New function.
5145 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5147 * linux-nat.c (_initialize_linux_nat): Call
5148 linux_ptrace_set_additional_flags.
5150 2014-07-24 Tom Tromey <tromey@redhat.com>
5152 * make-target-delegates (munge_type, write_debugmethod): New
5154 (debug_names): New global.
5155 ($TARGET_DEBUG_PRINTER): New global.
5156 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5158 Write debug methods. Generate init_debug_target.
5159 * target-debug.h: New file.
5160 * target-delegates.c: Rebuild.
5161 * target.c: Include target-debug.h.
5162 (debug_target): Hoist definition.
5163 (target_kill, target_get_section_table, target_memory_map)
5164 (target_flash_erase, target_flash_done, target_detach)
5165 (target_disconnect, target_wait, target_resume)
5166 (target_pass_signals, target_program_signals, target_follow_fork)
5167 (target_mourn_inferior, target_search_memory)
5168 (target_thread_address_space, target_close)
5169 (target_find_new_threads, target_core_of_thread)
5170 (target_verify_memory, target_insert_mask_watchpoint)
5171 (target_remove_mask_watchpoint): Remove targetdebug code.
5172 (debug_to_post_attach, debug_to_prepare_to_store)
5173 (debug_to_files_info, debug_to_insert_breakpoint)
5174 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5175 (debug_to_region_ok_for_hw_watchpoint)
5176 (debug_to_can_accel_watchpoint_condition)
5177 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5178 (debug_to_watchpoint_addr_within_range)
5179 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5180 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5181 (debug_to_terminal_init, debug_to_terminal_inferior)
5182 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5183 (debug_to_terminal_save_ours, debug_to_terminal_info)
5184 (debug_to_load, debug_to_post_startup_inferior)
5185 (debug_to_insert_fork_catchpoint)
5186 (debug_to_remove_fork_catchpoint)
5187 (debug_to_insert_vfork_catchpoint)
5188 (debug_to_remove_vfork_catchpoint)
5189 (debug_to_insert_exec_catchpoint)
5190 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5191 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5192 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5193 (setup_target_debug): Call init_debug_target.
5194 * target.h (TARGET_DEBUG_PRINTER): New macro.
5195 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5196 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5198 2014-07-24 Gary Benson <gbenson@redhat.com>
5200 * exceptions.h (throw_vfatal): Renamed to...
5201 (throw_vquit): New declaration.
5202 (throw_quit): Likewise.
5203 * exceptions.c (throw_vfatal): Renamed to...
5204 (throw_vquit): New function.
5205 (throw_quit): Likewise.
5206 (throw_error): Call throw_verror rather than throw_it.
5207 * utils.h (vfatal): Removed.
5209 * utils.c (vfatal): Removed.
5211 (internal_verror): Replaced call to fatal with call to throw_quit.
5212 (quit): Replaced calls to fatal with calls to throw_quit.
5214 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5216 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5219 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5221 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5222 less than zero in conditional expression.
5224 2014-07-23 Tom Tromey <tromey@redhat.com>
5226 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5227 ($INTRO_PART): Don't match whitespace.
5228 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5230 ($METHOD): Add $METHOD_TRAILER.
5232 (scan_target_h): New sub.
5233 Change main loop not to collect state.
5234 * target-delegates.c: Rebuild.
5236 2014-07-23 Gary Benson <gbenson@redhat.com>
5238 * cp-support.c (gdb_demangle): Fix build on systems without
5241 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5243 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5244 for reference entry value target data value.
5246 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5248 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5249 value_available_contents_eq.
5251 2014-07-22 Pedro Alves <palves@redhat.com>
5253 * value.c (allocate_optimized_out_value): Don't mark value as
5256 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5258 * MAINTAINERS (Write After Approval): Update my email address.
5260 2014-07-20 Doug Evans <dje@google.com>
5263 * remote.c (putpkt_binary): Add text to error message.
5265 2014-07-20 Yao Qi <yao@codesourcery.com>
5267 * eval.c: Remove "Chill" from comments.
5268 * gdbtypes.h: Likewise.
5269 * symtab.h: Likewise.
5271 2014-07-20 Yao Qi <yao@codesourcery.com>
5273 * std-operator.def: Update comments to TERNOP_SLICE.
5275 2014-07-20 Yao Qi <yao@codesourcery.com>
5277 * std-operator.def: Remove BINOP_RANGE.
5278 * breakpoint.c (watchpoint_exp_is_const): Update.
5279 * expprint.c (dump_subexp_body_standard): Likewise.
5280 * eval.c (init_array_element): Remove dead code.
5281 (evaluate_subexp_standard): Likewise.
5283 2014-07-20 Yao Qi <yao@codesourcery.com>
5285 * std-operator.def: Remove BINOP_IN.
5286 * breakpoint.c (watchpoint_exp_is_const): Update.
5287 * eval.c (evaluate_subexp_standard): Likewise.
5288 * expprint.c (dump_subexp_body_standard): Likewise.
5290 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5292 * microblaze-tdep.c (microblaze_register_names): Add
5293 the rshr and rslr register names.
5294 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5295 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5296 Use of tdesc_numbered_register. Use of
5297 microblaze_register_g_packet_guesses. Use of
5298 tdesc_use_registers. Use of set_gdbarch_register_type.
5299 (microblaze_register_g_packet_guesses): New.
5300 * microblaze-tdep.h (microblaze_reg_num): Add
5301 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5302 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5303 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5304 * features/microblaze-core.xml: New file.
5305 * features/microblaze-stack-protect.xml: New file.
5306 * features/microblaze-with-stack-protect.c: New file.
5307 * features/microblaze-with-stack-protect.xml: New file.
5308 * features/microblaze.xml: New file.
5309 * features/microblaze.c: New file.
5310 * features/Makefile (microblaze-with-stack-protect): Add
5311 microblaze-with-stack-protect microblaze and microblaze-expedite.
5312 * regformats/microblaze-with-stack-protect.dat: New file.
5313 * regformats/microblaze.dat: New file.
5314 * doc/gdb.texinfo (MicroBlaze Features): Added.
5316 2014-07-18 Tom Tromey <tromey@redhat.com>
5318 * exec.c (exec_ops): Now static.
5319 * exec.h (exec_ops): Don't declare.
5321 2014-07-18 Tom Tromey <tromey@redhat.com>
5323 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5324 to find_target_beneath.
5325 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5326 find_target_beneath.
5327 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5329 2014-07-18 Tom Tromey <tromey@redhat.com>
5332 * utils.c (quit): Use target_supports_terminal_ours.
5333 * target.h (target_supports_terminal_ours): Declare.
5334 * target.c (target_supports_delete_record): Don't check
5335 to_delete_record against NULL.
5336 (target_supports_terminal_ours): New function.
5338 2014-07-18 Tom Tromey <tromey@redhat.com>
5341 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5342 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5343 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5344 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5345 * windows-nat.c (windows_xfer_partial): Always delegate.
5346 * record-btrace.c (record_btrace_xfer_partial): Simplify
5348 (record_btrace_fetch_registers, record_btrace_store_registers)
5349 (record_btrace_prepare_to_store, record_btrace_resume)
5350 (record_btrace_wait, record_btrace_find_new_threads)
5351 (record_btrace_thread_alive): Likewise.
5352 * procfs.c (procfs_xfer_partial): Always delegate.
5353 * corelow.c (core_xfer_partial): Always delegate.
5354 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5356 2014-07-18 Tom Tromey <tromey@redhat.com>
5358 * exec.c (exec_make_note_section): Move earlier.
5360 2014-07-17 Doug Evans <dje@google.com>
5363 * maint.c (count_symtabs_and_blocks): Handle NULL
5364 current_program_space.
5365 (report_command_stats): Check global enabled flag in addition to
5366 recorded enabled flag.
5367 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5369 2014-07-16 Pedro Alves <palves@redhat.com>
5371 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5373 2014-07-16 Tom Tromey <tromey@redhat.com>
5375 * target.h (struct target_ops) <to_delete_record>: Reformat
5378 2014-07-16 Tom Tromey <tromey@redhat.com>
5380 * target-delegates.c: Rebuild.
5382 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5384 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5385 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5386 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5387 (avr_pointer_to_address): Likewise.
5388 (avr_address_class_type_flags): New function.
5389 (avr_address_class_type_flags_to_name): Likewise.
5390 (avr_address_class_name_to_type_flags): Likewise.
5391 (avr_gdbarch_init): Set address_class_type_flags,
5392 address_class_type_flags_to_name and
5393 address_class_name_to_type_flags.
5395 2014-07-15 Pedro Alves <palves@redhat.com>
5397 * linux-nat.c (kill_callback): Save errno and work with saved
5400 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5402 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5404 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5406 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5407 breakpoint support correctly.
5409 2014-07-14 Pedro Alves <palves@redhat.com>
5411 * utils.c (prompt_for_continue): Call target_terminal_ours.
5413 2014-07-14 Pedro Alves <palves@redhat.com>
5415 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5416 catch_errors. Don't re-enable stdin or notify observers where,
5418 (fetch_inferior_event_wrapper): Delete.
5420 2014-07-14 Pedro Alves <palves@redhat.com>
5423 * top.c: Include "inf-loop.h".
5424 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5426 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5428 (gdb_readline_wrapper): Store whether the target is async, and
5431 2014-07-14 Pedro Alves <palves@redhat.com>
5434 * top.c (gdb_readline_wrapper_line): Tweak comment.
5435 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5436 the input handler callback.
5438 2014-07-14 Pedro Alves <palves@redhat.com>
5441 * main.c: Include event-top.h.
5442 (handle_command_errors): New function.
5443 (catch_command_errors, catch_command_errors_const): Use it.
5445 2014-07-14 Pedro Alves <palves@redhat.com>
5447 * exceptions.c (catch_command_errors, catch_command_errors_const):
5449 * exceptions.h (catch_command_errors_ftype)
5450 (catch_command_errors_const_ftype): Moved to main.c.
5451 (catch_command_errors, catch_command_errors_const): Delete
5453 * main.c (catch_command_errors_ftype)
5454 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5455 (catch_command_errors, catch_command_errors_const)): Moved here
5456 from exceptions.c and make static.
5458 2014-07-14 Pedro Alves <palves@redhat.com>
5460 * exceptions.c (print_any_exception): Delete.
5461 (catch_exceptions_with_msg): Use exception_print instead of
5462 print_any_exception.
5463 (catch_errors): Use exception_fprintf instead of
5464 print_any_exception.
5465 (catch_command_errors, catch_command_errors_const): Use
5466 exception_print instead of print_any_exception.
5468 2014-07-14 Pedro Alves <palves@redhat.com>
5470 * infcall.c (run_inferior_call): Set 'sync_execution' while
5471 running the inferior call.
5473 2014-07-14 Pedro Alves <palves@redhat.com>
5475 * value.c (value_contents_equal): Delete function.
5476 * value.h (value_contents_equal): Delete declaration.
5478 2014-07-14 Tom Tromey <tromey@redhat.com>
5481 * gdbtypes.c (is_dynamic_type_internal): New function, from
5483 (is_dynamic_type): Rewrite.
5484 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5485 (resolve_dynamic_struct): Likewise.
5486 (resolve_dynamic_type_internal): New function, from
5487 resolve_dynamic_type.
5488 (resolve_dynamic_type): Rewrite.
5490 2014-07-14 Tom Tromey <tromey@redhat.com>
5492 * target.c (target_require_runnable): Also check record_stratum.
5495 2014-07-11 Yao Qi <yao@codesourcery.com>
5497 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5498 thumb_instruction_restores_sp return true.
5500 2014-07-11 Yao Qi <yao@codesourcery.com>
5502 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5503 (thumb_in_function_epilogue_p): Call
5504 thumb_instruction_restores_sp.
5506 2014-07-11 Yao Qi <yao@codesourcery.com>
5508 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5510 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5512 2014-07-11 Gary Benson <gbenson@redhat.com>
5514 * amd64-linux-nat.c (gdbcore.h): Remove include.
5515 (regset.h): Likewise.
5516 (nat/linux-btrace.h): Likewise.
5517 (btrace.h): Likewise.
5518 (gdb_assert.h): Likewise.
5519 (string.h): Likewise.
5520 (sys/uio.h): Likewise.
5521 (sys/debugreg.h): Likewise.
5522 (sys/syscall.h): Likewise.
5523 (sys/procfs.h): Likewise.
5524 (sys/user.h): Likewise.
5525 (asm/ptrace.h): Likewise.
5526 (i386-nat.h): Likewise.
5527 * i386-linux-nat.c (i386-nat.h): Likewise.
5528 (regset.h): Likewise.
5529 (target.h): Likewise.
5530 (linux-nat.h): Likewise.
5531 (nat/linux-btrace.h): Likewise.
5532 (btrace.h): Likewise.
5533 (gdb_assert.h): Likewise.
5534 (string.h): Likewise.
5535 (sys/uio.h): Likewise.
5536 (sys/user.h): Likewise.
5537 (sys/procfs.h): Likewise.
5538 (sys/reg.h): Likewise.
5539 (sys/debugreg.h): Likewise.
5540 (ORIG_EAX): Remove definition.
5542 2014-07-11 Gary Benson <gbenson@redhat.com>
5544 * i386-linux-nat.h: New file.
5545 * x86-linux-nat.h: Likewise.
5546 * x86-linux-nat.c: Likewise.
5547 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5548 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5549 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5550 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5551 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5552 (PTRACE_SETREGSET): Likewise.
5553 (arch_lwp_info): Now in x86-linux-nat.c.
5554 (have_ptrace_getregset): Now in x86-linux-nat.h.
5555 (x86_linux_dr_get): Now in x86-linux-nat.c.
5556 (x86_linux_dr_set): Likewise.
5557 (x86_linux_dr_get_addr): Likewise.
5558 (x86_linux_dr_get_control): Likewise.
5559 (x86_linux_dr_get_status): Likewise.
5560 (update_debug_registers_callback): Likewise.
5561 (x86_linux_dr_set_control): Likewise.
5562 (x86_linux_dr_set_addr): Likewise.
5563 (x86_linux_prepare_to_resume): Likewise.
5564 (x86_linux_new_thread): Likewise.
5565 (x86_linux_new_fork): Likewise.
5566 (x86_linux_get_thread_area): Likewise.
5567 (super_post_startup_inferior): Likewise.
5568 (x86_linux_child_post_startup_inferior): Likewise.
5569 (AMD64_LINUX_USER64_CS): Likewise.
5570 (AMD64_LINUX_X32_DS): Likewise.
5571 (x86_linux_read_description): Likewise.
5572 (x86_linux_enable_btrace): Likewise.
5573 (x86_linux_disable_btrace): Likewise.
5574 (x86_linux_teardown_btrace): Likewise.
5575 (x86_linux_read_btrace): Likewise.
5576 (x86_linux_create_target): Likewise.
5577 (x86_linux_add_target): Likewise.
5578 * i386-linux-nat.c (x86-linux-nat.h): New include.
5579 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5580 (PTRACE_SETREGSET): Likewise.
5581 (arch_lwp_info): Now in x86-linux-nat.c.
5582 (have_ptrace_getregset): Now in x86-linux-nat.h.
5583 (x86_linux_dr_get): Now in x86-linux-nat.c.
5584 (x86_linux_dr_set): Likewise.
5585 (x86_linux_dr_get_addr): Likewise.
5586 (x86_linux_dr_get_control): Likewise.
5587 (x86_linux_dr_get_status): Likewise.
5588 (update_debug_registers_callback): Likewise.
5589 (x86_linux_dr_set_control): Likewise.
5590 (x86_linux_dr_set_addr): Likewise.
5591 (x86_linux_prepare_to_resume): Likewise.
5592 (x86_linux_new_thread): Likewise.
5593 (x86_linux_new_fork): Likewise.
5594 (x86_linux_get_thread_area): Likewise.
5595 (super_post_startup_inferior): Likewise.
5596 (x86_linux_child_post_startup_inferior): Likewise.
5597 (AMD64_LINUX_USER64_CS): Likewise.
5598 (AMD64_LINUX_X32_DS): Likewise.
5599 (x86_linux_read_description): Likewise.
5600 (x86_linux_enable_btrace): Likewise.
5601 (x86_linux_disable_btrace): Likewise.
5602 (x86_linux_teardown_btrace): Likewise.
5603 (x86_linux_read_btrace): Likewise.
5604 (x86_linux_create_target): Likewise.
5605 (x86_linux_add_target): Likewise.
5607 2014-07-11 Gary Benson <gbenson@redhat.com>
5609 * amd64-linux-nat.c: Comment and whitespace changes.
5610 * i386-linux-nat.c: Comment and whitespace changes.
5612 2014-07-11 Gary Benson <gbenson@redhat.com>
5614 * amd64-linux-nat.c (x86_linux_create_target): New function.
5615 (x86_linux_add_target): Likewise.
5616 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5617 * i386-linux-nat.c (x86_linux_create_target): New function.
5618 (x86_linux_add_target): Likewise.
5619 (_initialize_i386_linux_nat): Delegate to the above new functions.
5621 2014-07-11 Gary Benson <gbenson@redhat.com>
5623 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5624 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5625 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5626 (ps_get_thread_area): Delegate to the above.
5628 2014-07-11 Gary Benson <gbenson@redhat.com>
5630 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5631 x86_linux_read_description. All uses updated. amd64-specific
5632 code conditionalized. Conditionalized i386-specific code added.
5633 Redundant cast removed.
5634 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5635 x86_linux_read_description. All uses updated. i386-specific
5636 code conditionalized. Conditionalized amd64-specific code added.
5637 One sizeof replaced with the actual type it is describing.
5639 2014-07-11 Gary Benson <gbenson@redhat.com>
5641 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5642 x86_linux_dr_get. All uses updated.
5643 (amd64_linux_dr_set): Renamed to
5644 x86_linux_dr_set. All uses updated.
5645 (amd64_linux_dr_get_addr): Renamed to
5646 x86_linux_dr_get_addr. All uses updated.
5647 (amd64_linux_dr_get_control): Renamed to
5648 x86_linux_dr_get_control. All uses updated.
5649 (amd64_linux_dr_get_status): Renamed to
5650 x86_linux_dr_get_status. All uses updated.
5651 (amd64_linux_dr_set_control): Renamed to
5652 x86_linux_dr_set_control. All uses updated.
5653 (amd64_linux_dr_set_addr): Renamed to
5654 x86_linux_dr_set_addr. All uses updated.
5655 (amd64_linux_prepare_to_resume): Renamed to
5656 x86_linux_prepare_to_resume. All uses updated.
5657 (amd64_linux_new_thread): Renamed to
5658 x86_linux_new_thread. All uses updated.
5659 (amd64_linux_new_fork): Renamed to
5660 x86_linux_new_fork. All uses updated.
5661 (amd64_linux_child_post_startup_inferior): Renamed to
5662 x86_linux_child_post_startup_inferior. All uses updated.
5663 (amd64_linux_enable_btrace): Renamed to
5664 x86_linux_enable_btrace. All uses updated.
5665 (amd64_linux_disable_btrace): Renamed to
5666 x86_linux_disable_btrace. All uses updated.
5667 (amd64_linux_teardown_btrace): Renamed to
5668 x86_linux_teardown_btrace. All uses updated.
5669 (amd64_linux_read_btrace): Renamed to
5670 x86_linux_read_btrace. All uses updated.
5671 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5672 x86_linux_dr_get. All uses updated.
5673 (i386_linux_dr_set): Renamed to
5674 x86_linux_dr_set. All uses updated.
5675 (i386_linux_dr_get_addr): Renamed to
5676 x86_linux_dr_get_addr. All uses updated.
5677 (i386_linux_dr_get_control): Renamed to
5678 x86_linux_dr_get_control. All uses updated.
5679 (i386_linux_dr_get_status): Renamed to
5680 x86_linux_dr_get_status. All uses updated.
5681 (i386_linux_dr_set_control): Renamed to
5682 x86_linux_dr_set_control. All uses updated.
5683 (i386_linux_dr_set_addr): Renamed to
5684 x86_linux_dr_set_addr. All uses updated.
5685 (i386_linux_prepare_to_resume): Renamed to
5686 x86_linux_prepare_to_resume. All uses updated.
5687 (i386_linux_new_thread): Renamed to
5688 x86_linux_new_thread. All uses updated.
5689 (i386_linux_new_fork): Renamed to
5690 x86_linux_new_fork. All uses updated.
5691 (i386_linux_child_post_startup_inferior): Renamed to
5692 x86_linux_child_post_startup_inferior. All uses updated.
5693 (i386_linux_enable_btrace): Renamed to
5694 x86_linux_enable_btrace. All uses updated.
5695 (i386_linux_disable_btrace): Renamed to
5696 x86_linux_disable_btrace. All uses updated.
5697 (i386_linux_teardown_btrace): Renamed to
5698 x86_linux_teardown_btrace. All uses updated.
5699 (i386_linux_read_btrace): Renamed to
5700 x86_linux_read_btrace. All uses updated.
5702 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5704 * remote.c (extended_remote_post_attach): New function.
5705 (init_extended_remote_ops): Install it as to_post_attach method.
5707 2014-07-09 Pedro Alves <palves@redhat.com>
5709 * infcmd.c (attach_command_post_wait): Don't call
5710 target_terminal_inferior here.
5711 (attach_command): Call it here instead.
5713 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5715 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5717 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5718 from varobj.c, with additional checks.
5719 (c_varobj_ops): Fill in is_path_expr_parent field.
5720 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5721 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5723 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5725 (varobj_default_is_path_expr_parent): New function.
5726 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5727 (varobj_default_is_path_expr_parent): Declare new function.
5729 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5731 * infcmd.c (finish_backward): Turn internal error into normal error.
5733 2014-07-07 Pedro Alves <palves@redhat.com>
5736 * remote.c (async_handle_remote_sigint)
5737 (async_handle_remote_sigint_twice): Call
5738 gdb_call_async_signal_handler instead of
5739 mark_async_signal_handler.
5741 2014-07-07 Tom Tromey <tromey@redhat.com>
5743 * target-delegates.c: Rebuild.
5744 * target.c (target_info_record): Remove.
5745 * record.c (info_record_command): Unconditionally call
5747 * target.h (struct target_ops) <to_info_record>: Use
5748 TARGET_DEFAULT_IGNORE.
5749 (target_info_record): Remove.
5751 2014-07-07 Tom Tromey <tromey@redhat.com>
5753 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5754 TARGET_DEFAULT_NORETURN.
5755 * target.c (generic_tls_error): New function.
5756 (target_translate_tls_address): Don't search target stack.
5757 * target-delegates.c: Rebuild.
5758 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5760 * linux-thread-db.c (thread_db_get_thread_local_address):
5761 Unconditionally call beneath target.
5763 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5765 * cli/cli-logging.c (pop_output_files): Assign targerr to
5768 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5770 * MAINTAINERS (Write After Approval): Update my email address.
5772 2014-07-02 Gary Benson <gbenson@redhat.com>
5774 * proc-service.c (ps_xfer_memory): Update comment.
5775 (ps_pstop): Remove unused function.
5776 (ps_pcontinue): Likewise.
5777 (ps_lstop): Likewise.
5778 (ps_lcontinue): Likewise.
5779 (ps_lgetxregsize): Likewise.
5780 (ps_lgetxregs): Likewise.
5781 (ps_lsetxregs): Likewise.
5782 (ps_plog): Likewise.
5783 (ps_ptread): Likewise.
5784 (ps_ptwrite): Likewise.
5786 2014-07-01 Mark Wielaard <mjw@redhat.com>
5788 * dwarf2read.c (add_array_cv_type): New function.
5789 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5790 (read_tag_volatile_type): Likewise.
5792 2014-07-01 Tom Tromey <tromey@redhat.com>
5794 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5795 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5796 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5797 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5798 * command.h (cmd_cfunc_ftype): Move earlier.
5799 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5800 (add_com, add_info): Use cmd_cfunc_ftype.
5802 2014-06-30 Tom Tromey <tromey@redhat.com>
5804 * symtab.c (operator_chars): Make parameters and return type
5806 (file_matches): Make "files" const.
5807 (struct search_symbols_data) <files>: Now const.
5808 (search_symbols): Make "regexp" and "files" parameters const.
5810 (symtab_symbol_info): Remove cast.
5811 (rbreak_command): Update.
5812 * symtab.h (search_symbols): Update.
5814 2014-06-27 Yao Qi <yao@codesourcery.com>
5816 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5817 Change parameter type to 'struct thread_info *'. Caller
5819 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5821 * dummy-frame.c (struct dummy_frame_id): New.
5822 (dummy_frame_id_eq): New function.
5823 (struct dummy_frame) <id>: Change its type to 'struct
5825 (dummy_frame_push): Add parameter ptid and save it in
5827 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5829 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5831 (lookup_dummy_frame): Change parameter type to 'struct
5832 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5833 instead of frame_id_eq.
5834 (dummy_frame_pop): Add parameter ptid. Callers updated.
5835 Update comments. Compose dummy_frame_id and pass it to
5837 (dummy_frame_discard): Add parameter ptid.
5838 (dummy_frame_sniffer): Compose dummy_frame_id and call
5839 dummy_frame_id_eq instead of frame_id_eq.
5840 (fprint_dummy_frames): Print ptid.
5841 * dummy-frame.h: Remove comments.
5842 (dummy_frame_push): Add ptid in declaration.
5843 (dummy_frame_pop, dummy_frame_discard): Likewise.
5845 2014-06-26 Tom Tromey <tromey@redhat.com>
5847 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5848 * command.h (error_no_arg): Update.
5850 2014-06-26 Tom Tromey <tromey@redhat.com>
5852 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5853 (do_show_command): Make "arg" const.
5854 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5856 2014-06-26 Tom Tromey <tromey@redhat.com>
5858 * record-full.c (record_full_get_bookmark): Make "args" const.
5859 (record_full_goto_bookmark): Make "raw_bookmark" const.
5860 * record.c (record_goto): New function.
5861 (cmd_record_goto): Use it. Now static.
5862 * record.h (record_goto): Declare.
5863 (cmd_record_goto): Remove declaration.
5864 * target-delegates.c: Rebuild.
5865 * target.h (struct target_ops) <to_get_bookmark,
5866 to_goto_bookmark>: Make parameter const.
5868 2014-06-26 Tom Tromey <tromey@redhat.com>
5870 * defs.h (generic_load): Update.
5871 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5872 * monitor.c (monitor_load): Make "args" const.
5873 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5874 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5876 (mips_load): Make "file" const.
5877 * remote-sim.c (gdbsim_load): Make "args" const.
5878 * remote.c (remote_load): Make "name" const.
5879 * symfile.c (generic_load): Make "args" const.
5880 * target-delegates.c: Rebuild.
5881 * target.c (target_load): Make "arg" const.
5882 (debug_to_load): Make "args" const.
5883 * target.h (struct target_ops) <to_load>: Make parameter const.
5884 (target_load): Update.
5886 2014-06-26 Tom Tromey <tromey@redhat.com>
5889 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5890 (dwarf2_physname, read_partial_die)
5891 (guess_partial_die_structure_name, fixup_partial_die)
5892 (guess_full_die_structure_name, anonymous_struct_prefix)
5893 (dwarf2_name): Use per-BFD obstack.
5895 2014-06-26 Yao Qi <yao@codesourcery.com>
5897 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5898 dummyframe and this_id into inner block below.
5900 2014-06-26 Yao Qi <yao@codesourcery.com>
5902 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5903 with "signal_pass[0]" in the initialization of signal_pass.
5905 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5907 * record-btrace.c (record_btrace_generating_corefile)
5908 (record_btrace_prepare_to_generate_core)
5909 (record_btrace_done_generating_core): New.
5910 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5911 (record_btrace_store_registers, record_btrace_prepare_to_store):
5912 Forward request when generating a core file.
5913 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5914 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5915 to_done_generating_core.
5917 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5919 * target.h (target_ops) <to_prepare_to_generate_core>
5920 <to_done_generating_core>: New.
5921 (target_prepare_to_generate_core, target_done_generating_core): New.
5922 * target.c (target_prepare_to_generate_core)
5923 (target_done_generating_core): New.
5924 * target-delegates.c: Regenerate.
5925 * gcore.c: (write_gcore_file): Rename to ...
5926 (write_gcore_file_1): ...this.
5927 (write_gcore_file): Call target_prepare_to_generate_core
5928 and target_done_generating_core.
5930 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5932 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5933 * gcore.c (write_gcore_file): Free memory returned from
5934 make_corefile_notes.
5935 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5936 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5938 2014-06-24 Yao Qi <yao@codesourcery.com>
5940 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5941 (arm_linux_init_abi): Set skip_trampoline_code with
5942 gdbarch_skip_trampoline_code instead of
5943 find_solib_trampoline_target.
5945 2014-06-24 Yao Qi <yao@codesourcery.com>
5947 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5948 arm_skip_bx_reg returns non-zero.
5950 2014-06-24 Yao Qi <yao@codesourcery.com>
5952 * arm-tdep.c (arm_skip_bx_reg): New function.
5953 (arm_skip_stub): Call arm_skip_bx_reg.
5955 2014-06-23 Don Breazeal <donb@codesourcery.com>
5957 * MAINTAINERS: Add myself as write-after-approval maintainer.
5959 2014-06-23 Pedro Alves <palves@redhat.com>
5961 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5962 DR_CONTROL before setting DR0..DR3.
5963 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5964 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5965 bits of DR_CONTROL related to the debug register slot being
5966 disabled. If all slots are vacant, clear local slowdown as well,
5967 and assert DR_CONTROL is 0.
5969 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5971 * python/lib/gdb/command/xmethods.py
5972 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5973 current progspace only if the string "progspace" matches LOCUS_RE.
5975 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5977 Fix --with-system-readline with readline-6.3 patch 5.
5978 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5979 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5982 2014-06-20 Tom Tromey <tromey@redhat.com>
5984 * dwarf2read.c (dw2_get_real_path): Use correct type in
5986 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5988 2014-06-20 Gary Benson <gbenson@redhat.com>
5990 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5991 * common/glibc_thread_db.h: Likewise.
5992 * common/i386-cpuid.h: Likewise.
5993 * common/i386-gcc-cpuid.h: Likewise.
5994 * common/linux-btrace.h: Likewise.
5995 * common/linux-osdata.h: Likewise.
5996 * common/linux-procfs.h: Likewise.
5997 * common/linux-ptrace.h: Likewise.
5998 * common/mips-linux-watch.h: Likewise.
5999 * common/linux-btrace.c: Moved to nat.
6000 * common/linux-osdata.c: Likewise.
6001 * common/linux-procfs.c: Likewise.
6002 * common/linux-ptrace.c: Likewise.
6003 * common/mips-linux-watch.c: Likewise.
6004 * nat/gdb_thread_db.h: Moved from common.
6005 * nat/glibc_thread_db.h: Likewise.
6006 * nat/i386-cpuid.h: Likewise.
6007 * nat/i386-gcc-cpuid.h: Likewise.
6008 * nat/linux-btrace.c: Likewise.
6009 * nat/linux-btrace.h: Likewise.
6010 * nat/linux-osdata.c: Likewise.
6011 * nat/linux-osdata.h: Likewise.
6012 * nat/linux-procfs.c: Likewise.
6013 * nat/linux-procfs.h: Likewise.
6014 * nat/linux-ptrace.c: Likewise.
6015 * nat/linux-ptrace.h: Likewise.
6016 * nat/mips-linux-watch.c: Likewise.
6017 * nat/mips-linux-watch.h: Likewise.
6018 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6019 (object file files): Reordered.
6020 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6021 of glibc_thread_db.h.
6023 2014-06-20 Gary Benson <gbenson@redhat.com>
6025 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6026 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6027 (i386_dr_low): Likewise.
6028 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6029 (i386_dr_low_set_addr): Likewise.
6030 (i386_dr_low_get_addr): Likewise.
6031 (i386_dr_low_can_set_control): Likewise.
6032 (i386_dr_low_set_control): Likewise.
6033 (i386_dr_low_get_control): Likewise.
6034 (i386_dr_low_get_status): Likewise.
6035 (i386_get_debug_register_length): Likewise.
6036 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6037 (i386_dr_low): Likewise.
6038 * nat/i386-dregs.c (i386-low.h): Remove include.
6039 (i386-nat.h): Likewise.
6040 (nat/i386-dregs.h): New include.
6041 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6042 (i386_dr_low_set_addr): Likewise.
6043 (i386_dr_low_get_addr): Likewise.
6044 (i386_dr_low_can_set_control): Likewise.
6045 (i386_dr_low_set_control): Likewise.
6046 (i386_dr_low_get_control): Likewise.
6047 (i386_dr_low_get_status): Likewise.
6048 (i386_get_debug_register_length): Likewise.
6049 (debug_hw_points): Likewise.
6051 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6053 * Makefile.in (SFILES): Add d-exp.y.
6054 (YYFILES): Add d-exp.c.
6055 (YYOBJ): Add d-exp.o.
6056 (local-maintainer-clean): Delete d-exp.c.
6057 * d-exp.y: New file.
6058 * d-lang.h (d_parse): New declaration.
6059 (d_error): New declaration.
6060 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6061 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6062 PREC_ORDER operators.
6063 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6065 2014-06-19 Yao Qi <yao@codesourcery.com>
6067 * gdbthread.h (any_running): Remove the declaration.
6068 * thread.c (any_running): Remove.
6070 2014-06-19 Yao Qi <yao@codesourcery.com>
6072 * gdbthread.h (struct thread_info) <state>: Change its type to
6073 'enum thread_state'. Update comments.
6075 2014-06-19 Pedro Alves <palves@redhat.com>
6077 * gdbthread.h (ALL_THREADS): Delete.
6078 (ALL_NON_EXITED_THREADS): New macro.
6079 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6080 instead of ALL_THREADS.
6081 * infrun.c (find_thread_needs_step_over)
6082 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6083 instead of ALL_THREADS.
6084 * record-btrace.c (record_btrace_open)
6085 (record_btrace_stop_recording, record_btrace_close)
6086 (record_btrace_is_replaying, record_btrace_resume)
6087 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6088 * remote.c (append_pending_thread_resumptions): Likewise.
6089 * thread.c (thread_apply_all_command): Likewise.
6091 2014-06-19 Gary Benson <gbenson@redhat.com>
6093 * i386-nat.c (i386_stopped_by_watchpoint):
6094 Use i386_dr_stopped_by_watchpoint.
6095 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6096 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6098 2014-06-19 Gary Benson <gbenson@redhat.com>
6100 * nat/i386-dregs.c: New file.
6101 * Makefile.in (i386-dregs.o): New rule.
6102 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6103 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6104 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6105 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6106 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6107 * config/i386/go32.mh (NATDEPFILES): Likewise.
6108 * config/i386/linux.mh (NATDEPFILES): Likewise.
6109 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6110 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6111 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6112 * i386-nat.h (debug_hw_points): New declaration.
6113 * i386-nat.c (breakpoint.h): Remove include.
6114 (command.h): Likewise.
6115 (target.h): Likewise.
6116 (gdb_assert.h): Likewise.
6117 (debug_hw_points): Made nonstatic.
6118 (debug_printf): Now in i386-dregs.c.
6119 (TARGET_HAS_DR_LEN_8): Likewise.
6120 (DR_CONTROL_SHIFT): Likewise.
6121 (DR_CONTROL_SIZE): Likewise.
6122 (DR_RW_EXECUTE): Likewise.
6123 (DR_RW_WRITE): Likewise.
6124 (DR_RW_READ): Likewise.
6125 (DR_RW_IORW): Likewise.
6126 (DR_LEN_1): Likewise.
6127 (DR_LEN_2): Likewise.
6128 (DR_LEN_4): Likewise.
6129 (DR_LEN_8): Likewise.
6130 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6131 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6132 (DR_ENABLE_SIZE): Likewise.
6133 (DR_LOCAL_SLOWDOWN): Likewise.
6134 (DR_GLOBAL_SLOWDOWN): Likewise.
6135 (DR_CONTROL_RESERVED): Likewise.
6136 (I386_DR_CONTROL_MASK): Likewise.
6137 (I386_DR_VACANT): Likewise.
6138 (I386_DR_LOCAL_ENABLE): Likewise.
6139 (I386_DR_GLOBAL_ENABLE): Likewise.
6140 (I386_DR_DISABLE): Likewise.
6141 (I386_DR_SET_RW_LEN): Likewise.
6142 (I386_DR_GET_RW_LEN): Likewise.
6143 (I386_DR_WATCH_HIT): Likewise.
6144 (i386_wp_op_t): Likewise.
6145 (i386_show_dr): Likewise.
6146 (i386_length_and_rw_bits): Likewise.
6147 (i386_insert_aligned_watchpoint): Likewise.
6148 (i386_remove_aligned_watchpoint): Likewise.
6149 (i386_handle_nonaligned_watchpoint): Likewise.
6150 (i386_update_inferior_debug_regs): Likewise.
6151 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6152 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6153 (i386_region_ok_for_watchpoint):
6154 Use i386_dr_region_ok_for_watchpoint.
6155 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6157 2014-06-19 Gary Benson <gbenson@redhat.com>
6159 * i386-nat.c (i386_insert_hw_breakpoint): Use
6160 i386_insert_watchpoint.
6161 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6163 2014-06-19 Gary Benson <gbenson@redhat.com>
6165 * i386-nat.c (i386_dr_show): Renamed to
6166 i386_show_dr and made static. All uses updated.
6167 (i386_dr_length_and_rw_bits): Renamed to
6168 i386_length_and_rw_bits and made static.
6170 (i386_dr_insert_aligned_watchpoint): Renamed to
6171 i386_insert_aligned_watchpoint and made static.
6173 (i386_dr_remove_aligned_watchpoint): Renamed to
6174 i386_remove_aligned_watchpoint and made static.
6176 (i386_dr_update_inferior_debug_regs): Renamed to
6177 i386_update_inferior_debug_regs and made static.
6179 * nat/i386-dregs.h (i386_dr_show): Removed.
6180 (i386_dr_length_and_rw_bits): Likewise.
6181 (i386_dr_insert_aligned_watchpoint): Likewise.
6182 (i386_dr_remove_aligned_watchpoint): Likewise.
6183 (i386_dr_update_inferior_debug_regs): Likewise.
6185 2014-06-19 Gary Benson <gbenson@redhat.com>
6187 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6188 * configure: Regenerate.
6189 * config.in: Likewise.
6190 * main.c (signal.h): New include.
6191 (setup_alternate_signal_stack): New function.
6192 (captured_main): Call the above.
6193 * cp-support.c (signal.h): New include.
6194 (catch_demangler_crashes): New flag.
6195 (SIGJMP_BUF): New define.
6196 (SIGSETJMP): Likewise.
6197 (SIGLONGJMP): Likewise.
6198 (gdb_demangle_jmp_buf): New static global.
6199 (gdb_demangle_attempt_core_dump): Likewise.
6200 (gdb_demangle_signal_handler): New function.
6201 (gdb_demangle): If catch_demangler_crashes is set, install the
6202 above signal handler before calling bfd_demangle, and restore
6203 the original signal handler afterwards. Display the offending
6204 symbol and call demangler_warning the first time a segmentation
6206 (_initialize_cp_support): New maint set/show command.
6208 2014-06-19 Gary Benson <gbenson@redhat.com>
6210 * utils.h (resource_limit_kind): New enum.
6211 (can_dump_core): New declaration.
6212 (warn_cant_dump_core): Likewise.
6213 (dump_core): Likewise.
6214 * utils.c (dump_core): Made nonstatic. Added new
6215 parameter "limit_kind".
6216 (can_dump_core): Made nonstatic. Moved printing code to...
6217 (warn_cant_dump_core): New function.
6218 (can_dump_core_warn): Likewise.
6219 (internal_vproblem): Replace calls to can_dump_core with
6220 calls to can_dump_core_warn. Supply new argument to each.
6222 2014-06-19 Gary Benson <gbenson@redhat.com>
6224 * utils.h (demangler_vwarning): New declaration.
6225 (demangler_warning): Likewise.
6226 * utils.c (struct internal_problem)
6227 <user_settable_should_quit>: New field.
6228 <user_settable_should_dump_core>: Likewise
6229 (internal_error_problem): Add values for above new fields.
6230 (internal_warning_problem): Likewise.
6231 (demangler_warning_problem): New static global.
6232 (demangler_vwarning): New function.
6233 (demangler_warning): Likewise.
6234 (add_internal_problem_command): Selectively add commands.
6235 (_initialize_utils): New internal problem command.
6236 * maint.c (maintenance_demangler_warning): New function.
6237 (_initialize_maint_cmds): New command.
6239 2014-06-18 Tom Tromey <tromey@redhat.com>
6241 * f-valprint.c (info_common_command_for_block): Update.
6242 * symtab.h (struct general_symbol_info) <common_block>: Now
6245 2014-06-18 Tom Tromey <tromey@redhat.com>
6247 * symtab.h (struct symtab) <blockvector>: Now const.
6248 * ada-lang.c (ada_add_global_exceptions): Update.
6249 * buildsym.c (augment_type_symtab): Update.
6250 * dwarf2read.c (dw2_lookup_symbol): Update.
6251 * jit.c (finalize_symtab): Update.
6252 * jv-lang.c (add_class_symtab_symbol): Update.
6253 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6255 * objfiles.c (objfile_relocate1): Update.
6256 * psymtab.c (lookup_symbol_aux_psymtabs)
6257 (maintenance_check_psymtabs): Update.
6258 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6260 * spu-tdep.c (spu_catch_start): Update.
6261 * symmisc.c (dump_symtab_1): Update.
6262 * symtab.c (lookup_global_symbol_from_objfile)
6263 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6264 (basic_lookup_transparent_type_quick)
6265 (basic_lookup_transparent_type, find_pc_sect_symtab)
6266 (find_pc_sect_line, search_symbols): Update.
6267 * block.c (find_block_in_blockvector): Make "bl" const.
6268 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6270 (blockvector_contains_pc): Make "bv" const.
6271 (block_for_pc_sect): Update.
6272 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6273 (blockvector_contains_pc): Update.
6274 * breakpoint.c (resolve_sal_pc): Update.
6275 * inline-frame.c (block_starting_point_at): Update.
6277 2014-06-18 Tom Tromey <tromey@redhat.com>
6279 * completer.c (complete_line): Make "line_buffer" const.
6280 * completer.h (complete_line): Update.
6282 2014-06-18 Tom Tromey <tromey@redhat.com>
6284 * symtab.c (add_macro_name): Remove unneeded cast.
6286 2014-06-18 Tom Tromey <tromey@redhat.com>
6288 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6289 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6291 2014-06-18 Tom Tromey <tromey@redhat.com>
6293 * probe.c (info_probes_for_ops): Make "arg" const.
6294 * probe.h (info_probes_for_ops): Update.
6296 2014-06-18 Tom Tromey <tromey@redhat.com>
6298 * varobj.c (varobj_create): Update.
6299 * valops.c (value_of_this): Update.
6300 * tracepoint.c (add_local_symbols, scope_info): Update.
6301 * symtab.h (struct general_symbol_info) <block>: Now const.
6302 * symtab.c (skip_prologue_sal)
6303 (default_make_symbol_completion_list_break_on)
6304 (skip_prologue_using_sal): Update.
6305 * stack.h (iterate_over_block_locals)
6306 (iterate_over_block_local_vars): Update.
6307 * stack.c (print_frame_args): Update.
6308 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6310 (get_selected_block): Make return type const.
6311 * python/py-frame.c (frapy_block): Update.
6312 * python/py-block.c (gdbpy_block_for_pc): Update.
6313 * p-exp.y (%union) <bval>: Now const.
6314 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6315 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6316 * m2-exp.y (%union) <bval>: Now const.
6317 * linespec.c (get_current_search_block): Make return type const.
6318 (create_sals_line_offset, find_label_symbols): Update.
6319 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6321 (block_starting_point_at): Make "block" const.
6322 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6323 (check_exception_resume): Update.
6324 * guile/scm-frame.c (gdbscm_frame_block): Update.
6325 * guile/scm-block.c (gdbscm_lookup_block): Update.
6326 * frame.h (get_frame_block): Update.
6327 (get_selected_block): Make return type const.
6328 * frame.c (frame_id_inner): Update.
6329 * f-valprint.c (info_common_command_for_block)
6330 (info_common_command): Update.
6331 * dwarf2loc.c (dwarf2_find_location_expression)
6332 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6333 (locexpr_describe_location_piece): Update.
6334 * c-exp.y (%union) <bval>: Now const.
6335 * breakpoint.c (resolve_sal_pc): Update.
6336 * blockframe.c (get_frame_block):Make return type const.
6337 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6338 (block_innermost_frame): Update.
6339 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6340 (block_for_pc, block_for_pc_sect): Update.
6341 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6343 (block_for_pc_sect, block_for_pc): Make return type const.
6344 * ax-gdb.c (gen_expr): Update.
6345 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6346 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6347 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6348 (ada_read_var_value): Update.
6349 * ada-exp.y (struct name_info) <block>: Now const.
6351 (block_lookup): Constify.
6353 2014-06-18 Gary Benson <gbenson@redhat.com>
6355 * nat/i386-dregs.h: New file.
6356 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6357 * i386-nat.h (i386-dregs.h): New include.
6358 (DR_FIRSTADDR): Now in i386-dregs.h.
6359 (DR_LASTADDR): Likewise.
6360 (DR_NADDR): Likewise.
6361 (DR_STATUS): Likewise.
6362 (DR_CONTROL): Likewise.
6363 (i386_debug_reg_state): Likewise.
6364 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6366 2014-06-18 Don Breazeal <donb@codesourcery.com>
6368 * breakpoint.c (set_longjmp_breakpoint): Call
6369 momentary_breakpoint_from_master with additional argument.
6370 (set_longjmp_breakpoint_for_call_dummy): Call
6371 momentary_breakpoint_from_master with additional argument.
6372 (set_std_terminate_breakpoint): Call
6373 momentary_breakpoint_from_master with additional argument.
6374 (momentary_breakpoint_from_master): Add argument to function
6375 definition and use it to initialize structure member flag.
6376 (clone_momentary_breakpoint): Call
6377 momentary_breakpoint_from_master with additional argument.
6378 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6379 member flags set in momentary_breakpoint_from_master.
6381 2014-06-18 Gary Benson <gbenson@redhat.com>
6383 * i386-nat.c (i386_show_dr): Renamed to
6384 i386_dr_show and made nonstatic. All uses updated.
6385 (i386_length_and_rw_bits): Renamed to
6386 i386_dr_length_and_rw_bits and made nonstatic.
6388 (i386_insert_aligned_watchpoint): Renamed to
6389 i386_dr_insert_aligned_watchpoint and made nonstatic.
6391 (i386_remove_aligned_watchpoint): Renamed to
6392 i386_dr_remove_aligned_watchpoint and made nonstatic.
6394 (i386_update_inferior_debug_regs): Renamed to
6395 i386_dr_update_inferior_debug_regs and made nonstatic.
6398 2014-06-18 Gary Benson <gbenson@redhat.com>
6400 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6401 (i386_dr_low_can_set_control): Likewise.
6402 (i386_dr_low_set_addr): Likewise.
6403 (i386_dr_low_set_control): Likewise.
6404 (i386_dr_low_get_addr): Likewise.
6405 (i386_dr_low_get_status): Likewise.
6406 (i386_dr_low_get_control): Likewise.
6407 (i386_insert_aligned_watchpoint): Use new macros.
6408 (i386_update_inferior_debug_regs): Likewise.
6409 (i386_stopped_data_address): Likewise.
6411 2014-06-18 Gary Benson <gbenson@redhat.com>
6413 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6414 New parameter. All uses updated.
6416 2014-06-18 Gary Benson <gbenson@redhat.com>
6418 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6421 2014-06-18 Gary Benson <gbenson@redhat.com>
6423 * i386-nat.c (debug_printf): New macro.
6424 (i386_get_debug_register_length): Likewise.
6425 (TARGET_HAS_DR_LEN_8): Use above macro.
6426 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6427 and printf_unfiltered. Use phex to format values.
6429 2014-06-18 Gary Benson <gbenson@redhat.com>
6431 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6434 2014-06-18 Gary Benson <gbenson@redhat.com>
6436 * i386-nat.c: Comment changes.
6438 2014-06-18 Gary Benson <gbenson@redhat.com>
6440 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6442 2014-06-18 Gary Benson <gbenson@redhat.com>
6444 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6445 (i386_insert_aligned_watchpoint): Likewise.
6446 (i386_remove_aligned_watchpoint): Likewise.
6447 (i386_handle_nonaligned_watchpoint): Likewise.
6449 2014-06-18 Gary Benson <gbenson@redhat.com>
6451 * i386-nat.c: Whitespace changes.
6453 2014-06-17 Samuel Bronson <naesten@gmail.com>
6455 * MAINTAINERS: Update Roland McGrath's email address.
6456 Thanks to Sergio Durigan Junior for pointing out that he left
6457 Red Hat a while ago, and giving me a current address.
6459 2014-06-17 Tom Tromey <tromey@redhat.com>
6461 * utils.h (savestring): Remove declaration.
6463 2014-06-17 Tom Tromey <tromey@redhat.com>
6465 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6467 2014-06-16 Keith Seitz <keiths@redhat.com>
6470 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6471 to update the varobj if inferior_ptid is null_ptid.
6473 2014-06-16 Tom Tromey <tromey@redhat.com>
6475 * target.h (struct target_ops) <to_info_proc>: Make parameter
6477 (target_info_proc): Update.
6478 * target.c (target_info_proc): Make "args" const.
6479 * procfs.c (procfs_info_proc): Update.
6480 * linux-tdep.c (linux_info_proc): Update.
6481 (linux_core_info_proc_mappings): Make "args" const.
6482 (linux_core_info_proc): Update.
6483 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6484 * gdbarch.c: Rebuild.
6485 * gdbarch.h: Rebuild.
6486 * corelow.c (core_info_proc): Update.
6488 2014-06-16 Tom Tromey <tromey@redhat.com>
6490 * target.h (struct target_ops) <to_disconnect>: Make parameter
6492 (target_disconnect): Update.
6493 * target.c (target_disconnect): Make "args" const.
6494 * target-delegates.c: Rebuild.
6495 * remote.c (remote_disconnect): Update.
6496 * record.h (record_disconnect): Update.
6497 * record.c (record_disconnect): Update.
6498 * inf-child.c (inf_child_disconnect): Update.
6500 2014-06-16 Tom Tromey <tromey@redhat.com>
6502 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6503 * target.c (debug_to_rcmd, default_rcmd): Update.
6504 * target-delegates.c: Rebuild.
6505 * remote.c (remote_rcmd): Update.
6506 * monitor.c (monitor_rcmd): Update.
6508 2014-06-16 Pedro Alves <palves@redhat.com>
6510 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6511 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6512 have OBJF_SHARED set.
6513 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6514 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6515 instead of OBJF_USERLOADED.
6516 * objfiles.h (OBJF_SHARED): Update comment.
6517 (userloaded_objfile_contains_address_p): Rename to ...
6518 (shared_objfile_contains_address_p): ... this, and update
6520 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6522 (remove_symbol_file_command): Skip objfiles that don't have
6525 2014-06-16 Tom Tromey <tromey@redhat.com>
6527 * minsyms.h (prim_record_minimal_symbol)
6528 (prim_record_minimal_symbol_and_info): Update comments.
6530 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6532 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6533 or --without-guile, according to how GDB was built.
6535 2014-06-13 Tom Tromey <tromey@redhat.com>
6537 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6539 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6541 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6543 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6544 help_list.Pass all_commands, not -1, to help_list.
6545 * cli/cli-dump.c (dump_command, append_command)
6546 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6547 (binary_dump_command, binary_append_command): Pass all_commands,
6548 not -1, to help_list.
6549 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6551 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6553 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6555 * top.c (set_history): Pass all_commands, not -1, to help_list.
6556 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6557 all_commands, not -1, to help_list.
6558 * symfile.c (overlay_command): Pass all_commands, not -1, to
6560 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6562 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6564 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6566 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6567 not -1, to help_list.
6568 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6569 not -1, to help_list.
6570 * maint.c (maintenance_command, maintenance_info_command)
6571 (maintenance_print_command, maintenance_set_cmd): Pass
6572 all_commands, not -1, to help_list.
6573 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6575 * language.c (set_check): Pass all_commands, not -1, to help_list.
6576 * infcmd.c (unset_command): Pass all_commands, not -1, to
6578 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6580 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6582 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6584 * breakpoint.c (save_command): Pass all_commands, not -1, to
6586 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6587 all_commands, not -1, to help_list.
6589 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6591 * regcache.c (struct register_to_invalidate): New structure.
6592 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6594 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6596 2014-06-12 Yao Qi <yao@codesourcery.com>
6598 * varobj.c (varobj_get_num_children): Call
6599 varobj_is_dynamic_p.
6600 (varobj_list_children): Likewise.
6601 (varobj_update): Likewise. Update comments.
6603 2014-06-12 Yao Qi <yao@codesourcery.com>
6605 * varobj.c (varobj_pretty_printed_p): Rename to ...
6606 (varobj_is_dynamic_p): ... this. New function.
6607 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6608 (varobj_is_dynamic_p): Declare.
6609 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6610 (mi_print_value_p, varobj_update_one): Likewise.
6612 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6613 Yao Qi <yao@codesourcery.com>
6615 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6616 (varobj_get_iterator): Wrap up code for pretty-printer by
6617 "#if HAVE_PYTHON" and "#endif".
6618 (update_dynamic_varobj_children): Likewise.
6620 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6621 Yao Qi <yao@codesourcery.com>
6623 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6624 gdb_python_initialized is false. Move some code from varobj.c.
6625 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6626 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6627 (struct varobj_item): Moved to varobj-iter.h".
6628 (varobj_clear_saved_item): New function.
6629 (update_dynamic_varobj_children): Move python-related code to
6631 (free_variable): Call varobj_clear_saved_item and
6634 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6635 Yao Qi <yao@codesourcery.com>
6637 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6638 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6639 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6640 (py-varobj.o): New rule.
6641 * python/py-varobj.c: New file.
6642 * python/python-internal.h (py_varobj_get_iterator): Declare.
6643 * varobj-iter.h: New file.
6644 * varobj.c: Include "varobj-iter.h"
6645 (struct varobj) <child_iter>: Change its type from "PyObject *"
6646 to "struct varobj_iter *".
6647 <saved_item>: Likewise.
6648 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6649 [HAVE_PYTHON] (varobj_get_iterator): New function.
6650 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6651 python-specific code to python/py-varobj.c.
6652 (install_visualizer): Call varobj_iter_delete instead of
6654 * varobj.h (varobj_ensure_python_env): Declare.
6656 2014-06-12 Yao Qi <yao@codesourcery.com>
6658 * varobj.c (struct varobj_item): New structure.
6659 (create_child_with_value): Update declaration.
6660 (varobj_add_child): Replace arguments 'name' and 'value' with
6661 'item'. All callers updated.
6662 (install_dynamic_child): Likewise.
6663 (update_dynamic_varobj_children): Likewise.
6664 (varobj_add_child): Likewise.
6665 (create_child_with_value): Likewise.
6667 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6669 * NEWS: Create a new section for the next release branch.
6670 Rename the section of the current branch, now that it has
6673 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6675 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6676 * version.in: Bump version to 7.8.50.DATE-cvs.
6678 2014-06-11 Pedro Alves <palves@redhat.com>
6681 * ser-mingw.c (net_windows_socket_check_pending): New function.
6682 (net_windows_select_thread): Ignore spurious wakeups. Use
6683 net_windows_socket_check_pending.
6684 (net_windows_wait_handle): Check for pending events with
6685 ioctlsocket, through net_windows_socket_check_pending, instead of
6686 checking the socket's event.
6688 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6690 * python/python-internal.h (gdb_PyObject_GetAttrString)
6691 (gdb_PyObject_HasAttrString): New inline function definitions.
6692 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6693 char * of the second argument to PyObject_GetAttrString.
6695 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6697 * serial.c (serial_write): Fix index of character to be printed
6698 in call to serial_logchar when serial debug traces are enabled.
6700 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6702 * gdbtypes (resolve_dynamic_range): Add function description.
6704 2014-06-09 Pedro Alves <palves@redhat.com>
6706 * linux-nat.c (linux_child_follow_fork): Initialize status with
6707 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6708 inner block. Only pass the signal to PTRACE_DETACH if in pass
6711 2014-06-09 Gary Benson <gbenson@redhat.com>
6713 * common/signals.c (gdb_signal_from_host): Reorder to separate
6714 the always-available ANSI-standard signals from the signals that
6716 (do_gdb_signal_to_host): Likewise.
6717 * proc-events.c (signal_table): Likewise.
6719 2014-06-08 Hui Zhu <hui@codesourcery.com>
6721 * common/linux-ptrace.c (linux_disable_event_reporting): New
6723 * common/linux-ptrace.h (linux_disable_event_reporting): New
6725 * linux-nat.c (linux_child_follow_fork): Do a single step before
6728 2014-06-07 Keith Seitz <keiths@redhat.com>
6732 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6733 from symbol_matches_domain in symtab.c. All local callers
6734 of symbol_matches_domain updated.
6735 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6736 search STRUCT_DOMAIN.
6737 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6738 independently. standard_lookup will do that automatically.
6739 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6740 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6741 (cp_lookup_symbol_in_namespace): Likewise.
6742 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6743 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6744 may return a STRUCT_DOMAIN match.
6745 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6746 * cp-support.c: Include language.h.
6747 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6749 * psymtab.c (match_partial_symbol): Compare the requested
6750 domain with the symbol's domain directly.
6751 (lookup_partial_symbol): Likewise.
6752 * symtab.c (lookup_symbol_in_language): Explain when/why
6753 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6754 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6755 appropriate languages.
6756 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6757 and moved to ada-lang.c
6758 (lookup_block_symbol): Explain that this function only returns
6759 symbol matching the requested DOMAIN.
6760 Compare the requested domain with the symbol's domain directly.
6761 (iterate_over_symbols): Compare the requested domain with the
6762 symbol's domain directly.
6763 * symtab.h (symbol_matches_domain): Remove.
6765 2014-06-06 Doug Evans <xdje42@gmail.com>
6767 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6768 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6769 (gdbscm_guile_version_is_at_least): Declare.
6770 (gdbscm_scm_string_to_int): Declare.
6771 * guile/guile.c (gdbscm_guile_major_version): New global.
6772 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6773 (guile_datadir): New static global.
6774 (gdbscm_guile_data_directory): New function.
6775 (initialize_scheme_side): Update.
6776 (misc_guile_functions): Add guile-data-directory.
6777 (initialize_gdb_module): Fetch guile version number.
6778 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6779 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6780 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6781 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6783 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6784 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6785 * guile/scm-value.c (gdbscm_value_to_string): Only call
6786 scm_port_conversion_strategy if Guile version >= 2.0.6.
6788 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6790 * main.c (print_gdb_help): Add -q and --silent.
6792 2014-06-06 Gary Benson <gbenson@redhat.com>
6794 * common/signals.c: Remove preprocessor conditionals for
6795 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6796 SIGSEGV and SIGTERM.
6797 * proc-events.c: Likewise.
6799 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6801 * symfile.c (symfile_free_objfile): Remove restriction to
6803 * symfile-mem.c (symbol_file_add_from_memory): Call
6804 add_target_sections_of_objfile.
6806 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6808 * guile/scm-value.c (gdbscm_history_append_x): Use
6809 'vlscm_get_value_smob_arg_unsafe' instead of
6810 'vlscm_scm_to_value'.
6812 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6815 * utils.c (printchar): Don't escape at all if quoter is NUL.
6816 Update function documentation to clarify effect of parameter
6818 * remote.c (escape_buffer): Pass '\\' as the quoter to
6819 fputstrn_unfiltered.
6820 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6821 generate the output.
6822 (mi_solib_unloaded): Same.
6824 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6826 * development.sh: Delete.
6827 * Makefile.in (config.status): Adjust dependency on development.sh.
6828 * configure.ac: Adjust development.sh source call.
6829 * configure: Regenerate.
6831 2014-06-04 Doug Evans <xdje42@gmail.com>
6833 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6834 is_scheme_bkpt, spec.
6835 (bpscm_make_breakpoint_smob): Initialize new members.
6836 (gdbscm_create_breakpoint_x): Split into two ...
6837 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6838 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6839 (scheme_function breakpoint_functions): Update.
6840 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6841 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6842 register-breakpoint!.
6844 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6847 * mem-break.c (z_type_supported): Return zero if
6848 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6850 2014-06-04 Tom Tromey <tromey@redhat.com>
6852 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6853 value_from_contents_and_address_unresolved.
6854 (ada_template_to_fixed_record_type_1): Likewise.
6855 (ada_which_variant_applies): Likewise.
6856 * value.h (value_from_contents_and_address_unresolved): Declare.
6857 * value.c (value_from_contents_and_address_unresolved): New
6859 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6860 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6861 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6863 2014-06-04 Tom Tromey <tromey@redhat.com>
6865 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6867 2014-06-04 Tom Tromey <tromey@redhat.com>
6869 * procfs.c (procfs_attach): Make "args" const.
6870 * windows-nat.c (windows_attach): Make "args" const.
6871 * nto-procfs.c (procfs_attach): Make "args" const.
6872 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6873 * go32-nat.c (go32_attach): Make "args" const.
6874 * gnu-nat.c (gnu_attach): Make "args" const.
6875 * darwin-nat.c (darwin_attach): Make "args" const.
6876 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6877 * linux-nat.c (linux_nat_attach): Make "args" const.
6878 * remote.c (extended_remote_attach_1, extended_remote_attach):
6880 * target.h (struct target_ops) <to_attach>: Make "args" const.
6881 (find_default_attach): Likewise.
6882 * utils.c (parse_pid_to_attach): Make "args" const.
6883 * utils.h (parse_pid_to_attach): Update.
6885 2014-06-04 Tom Tromey <tromey@redhat.com>
6887 * target-delegates.c: Rebuild.
6888 * target.c (default_thread_address_space): New function.
6889 (target_thread_address_space): Simplify.
6890 * target.h (struct target_ops) <to_thread_address_space>: Add
6891 TARGET_DEFAULT_FUNC.
6893 2014-06-04 Doug Evans <xdje42@gmail.com>
6895 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6897 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6899 * record-btrace.c: Include event-loop.h and inf-loop.h.
6900 (record_btrace_resume_exec_dir)
6901 (record_btrace_async_inferior_event_handler)
6902 (record_btrace_handle_async_inferior_event): New.
6903 (record_btrace_open): Create async event handler.
6904 (record_btrace_close): Delete async event handler.
6905 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6906 Mark async event handler.
6907 (record_btrace_execution_direction): New.
6908 (init_record_btrace_ops): Initialize to_execution_direction.
6910 2014-06-03 Doug Evans <xdje42@gmail.com>
6912 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6913 (gdbscm_make_parameter): Ditto.
6915 2014-06-03 Doug Evans <dje@google.com>
6917 * exec.c (exec_close_1): Call clear_section_table instead of
6918 resize_section_table.
6919 (clear_section_table): New function.
6920 (resize_section_table): Make static. Rename arg num_added to
6922 * exec.h (clear_section_table): Declare.
6923 (resize_section_table): Delete.
6924 * progspace.c (release_program_space): Call clear_section_table
6925 instead of resize_section_table.
6927 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6929 * NEWS (Python Scripting): Add entry about the new xmethods
6932 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6934 * python/py-xmethods.c: New file.
6935 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6936 (objfpy_dealloc): XDECREF on the new xmethods field.
6937 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6939 (objfpy_get_xmethods): New function.
6940 (objfile_getset): New entry 'xmethods'.
6941 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6942 (pspy_dealloc): XDECREF on the new xmethods field.
6943 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6945 (pspy_get_xmethods): New function.
6946 (pspace_getset): New entry 'xmethods'.
6947 * python/python-internal.h: Add declarations for new functions.
6948 * python/python.c (_initialize_python): Invoke
6949 gdbpy_initialize_xmethods.
6950 * python/lib/gdb/__init__.py (xmethods): New
6952 * python/lib/gdb/xmethod.py: New file.
6953 * python/lib/gdb/command/xmethods.py: New file.
6955 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6957 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6958 best match method returned by find_overload_match is an xmethod.
6959 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6960 the best matching operator returned by find_overload_match is an
6962 * valops.c: #include "extension.h".
6963 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6964 Return void. The list of matching source methods is returned in
6965 "fn_list" and a vector of matching debug method workers is
6966 returned in "xm_worker_vec". Update all callers.
6967 (value_find_oload_method_list): Likewise.
6968 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6969 non-NULL, then the index of the best matching method in this
6970 vector is returned. Update all callers.
6971 (find_overload_match): Include xmethods while performing overload
6974 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6976 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6977 * extension-priv.h (struct extension_language_ops): Add the
6979 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6980 get_matching_xmethod_workers, get_xmethod_argtypes,
6981 invoke_xmethod, free_xmethod_worker,
6982 free_xmethod_worker_vec): New functions.
6983 * extension.h: #include "common/vec.h".
6984 New function declarations.
6985 (struct xmethod_worker): New struct.
6986 (VEC (xmethod_worker_ptr)): New vector type.
6987 (xmethod_worker_ptr): New typedef.
6988 (xmethod_worker_vec): Likewise.
6989 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6991 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6992 (struct builtin_type): New field "xmethod".
6993 * valarith.c (value_ptradd): Assert that the value argument is not
6995 * valops.c (value_must_coerce_to_target): Return 0 for
6996 lval_xcallable values.
6997 * value.c (struct value): New field XM_WORKER in the field
6999 (value_address, value_raw_address): Return 0 for lval_xcallable
7001 (set_value_address): Assert that the value is not an
7003 (value_free): Free the associated xmethod worker when freeing
7004 lval_xcallable values.
7005 (set_value_component_location): Assert that the WHOLE value is not
7007 (value_of_xmethod, call_xmethod): New functions.
7008 * value.h: Declare "struct xmethod_worker".
7009 Declare new functions value_of_xmethod, call_xmethod.
7011 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7012 Pedro Alves <palves@redhat.com>
7014 PR breakpoints/17000
7015 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7016 New function, extracted from software_breakpoint_inserted_here_p.
7017 (software_breakpoint_inserted_here_p): Replace factored out code
7018 by call to find_non_raw_software_breakpoint_inserted_here.
7019 (bp_target_info_copy_insertion_state): New function.
7020 (bkpt_insert_location): Handle the case of a single-step
7021 breakpoint already inserted at the same address.
7022 (bkpt_remove_location): Handle the case of a single-step
7023 breakpoint still inserted at the same address.
7024 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7025 breakpoint already inserted at the same address.
7026 (deprecated_remove_raw_breakpoint): Handle the case of a
7027 non-raw breakpoint still inserted at the same address.
7028 (find_single_step_breakpoint): New function, extracted from
7029 single_step_breakpoint_inserted_here_p.
7030 (find_single_step_breakpoint): New function,
7031 factored out from single_step_breakpoint_inserted_here_p.
7032 (single_step_breakpoint_inserted_here_p): Reimplement.
7034 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7036 Pushed by Joel Brobecker <brobecker@adacore.com>
7037 * source.c (show_substitute_path_command): Fix display of matching
7040 2014-06-03 Gary Benson <gbenson@redhat.com>
7042 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7044 2014-06-02 Doug Evans <xdje42@gmail.com>
7046 Add parameter support for Guile.
7047 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7048 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7049 (scm-param.o): New rule.
7050 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7051 (gdbscm_misc_error): Declare.
7052 (gdbscm_canonicalize_command_name): Declare.
7053 (gdbscm_scm_to_host_string): Declare.
7054 (gdbscm_scm_from_host_string): Declare.
7055 (gdbscm_initialize_parameters): Declare.
7056 * guile/guile.c (initialize_gdb_module): Call
7057 gdbscm_initialize_parameters.
7058 * guile/lib/gdb.scm: Export parameter symbols.
7059 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7060 cmdscm_canonicalize_name and made public. All callers updated.
7061 * guile/scm-exception.c (gdbscm_misc_error): New function.
7062 * guile/scm-param.c: New file.
7063 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7064 (gdbscm_scm_to_host_string): New function.
7065 (gdbscm_scm_from_host_string): New function.
7066 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7068 2014-06-02 Doug Evans <xdje42@gmail.com>
7070 Add command support for Guile.
7071 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7072 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7073 (scm-cmd.o): New rule.
7074 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7075 (gdbscm_user_error_p): Declare.
7076 (gdbscm_parse_command_name): Declare.
7077 (gdbscm_valid_command_class_p): Declare.
7078 (gdbscm_initialize_commands): Declare.
7079 * guile/guile.c (initialize_gdb_module): Call
7080 gdbscm_initialize_commands.
7081 * guile/lib/gdb.scm: Export command symbols.
7082 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7083 (throw-user-error): New function.
7084 * guile/scm-cmd.c: New file.
7085 * guile/scm-exception.c (user_error_symbol): New static global.
7086 (gdbscm_user_error_p): New function.
7087 (gdbscm_initialize_exceptions): Set user_error_symbol.
7088 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7090 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7092 * top.c (command_loop): Handle comments here...
7093 (command_line_input): ... not here.
7095 2014-06-02 Doug Evans <xdje42@gmail.com>
7097 Add progspace support for Guile.
7098 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7099 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7100 (scm-progspace.o): New rule.
7101 * guile/guile-internal.h (pspace_smob): New typedef.
7102 (psscm_pspace_smob_pretty_printers): Declare.
7103 (psscm_pspace_smob_from_pspace): Declare.
7104 (psscm_scm_from_pspace): Declare.
7105 * guile/guile.c (initialize_gdb_module): Call
7106 gdbscm_initialize_pspaces.
7107 * guile/lib/gdb.scm: Export progspace symbols.
7108 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7110 (append-pretty-printer!): Ditto.
7111 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7113 * guile/scm-progspace.c: New file.
7115 2014-06-03 Alan Modra <amodra@gmail.com>
7117 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7118 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7120 2014-06-02 Doug Evans <dje@google.com>
7122 Add support for skeletonless type units.
7123 * dwarf2read.c (struct dwarf2_per_objfile): New member
7124 n_allocated_type_units.
7125 (struct dwarf2_per_objfile) <tu_stats>: New member
7126 nr_all_type_units_reallocs.
7127 (create_signatured_type_table_from_index): Initialize
7128 n_allocated_type_units
7129 (create_all_type_units): Ditto.
7130 (add_type_unit): Move up in file. New arg slot.
7131 All callers updated. Increase space for all_type_units more
7133 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7134 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7135 (lookup_dwp_signatured_type): Ditto.
7136 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7137 All callers updated.
7138 (build_type_psymtabs_1): Leave type_unit_groups as
7139 NULL if no TUs present.
7140 (print_tu_stats): New function.
7141 (process_skeletonless_type_unit): New function.
7142 (process_dwo_file_for_skeletonless_type_units): New
7144 (process_skeletonless_type_units): New function.
7145 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7146 Call print tu_stats if debugging enabled.
7148 2014-06-02 Pedro Alves <palves@redhat.com>
7150 * breakpoint.c (build_target_command_list): Don't build a command
7151 list if we have any duplicate location that isn't a dprintf.
7153 2014-06-02 Pedro Alves <palves@redhat.com>
7155 * breakpoint.c (dprintf_breakpoint_hit): New function.
7156 (initialize_breakpoint_ops): Install it as dprintf's
7157 breakpoint_hit method.
7159 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7161 * source.c (substitute_path_rule_matches): Simplify using
7162 filename_ncmp instead of FILENAME_CMP.
7164 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7166 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7168 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7170 * configure.ac: When Guile is available, check for the
7171 availability of 'scm_new_smob'.
7172 * configure, config.h.in: Regenerate.
7173 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7176 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7178 * frame.c (struct frame_info): Add stop_string field.
7179 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7180 (get_prev_frame_always): Old content moved into
7181 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7182 TRY_CATCH, handle MEMORY_ERROR exceptions.
7183 (frame_stop_reason_string): New function definition.
7184 * frame.h (unwind_stop_reason_to_string): Extend comment to
7185 mention frame_stop_reason_string.
7186 (frame_stop_reason_string): New function declaration.
7187 * stack.c (frame_info): Switch to frame_stop_reason_string.
7188 (backtrace_command_1): Switch to frame_stop_reason_string.
7189 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7190 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7191 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7193 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7195 * frame.c (frame_stop_reason_string): Rename to ...
7196 (unwind_stop_reason_to_string): this.
7197 * frame.h (frame_stop_reason_string): Rename to ...
7198 (unwind_stop_reason_to_string): this.
7199 * stack.c (frame_info): Update call to frame_stop_reason_string.
7200 (backtrace_command_1): Likewise.
7201 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7202 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7204 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7206 * frame.c (remove_prev_frame): New function.
7207 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7210 2014-05-29 Pedro Alves <palves@redhat.com>
7212 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7213 and make it const. When a single-step decays to a continue,
7214 clear 'step', not 'hw_step'. Pass whether the caller wanted
7215 to step to user_visible_resume_ptid, not what we ask the
7218 2014-05-29 Pedro Alves <palves@redhat.com>
7220 * infrun.c (process_event_stop_test, handle_step_into_function)
7221 (handle_step_into_function_backward): Adjust.
7222 Don't set the even thread's stop_step and call stop_waiting before
7223 calling end_stepping_range. Instead do that ...
7224 (end_stepping_range): ... here. Take an ecs pointer parameter.
7226 2014-05-29 Pedro Alves <palves@redhat.com>
7228 * infrun.c (stop_stepping): Rename to ...
7229 (stop_waiting): ... this.
7230 (proceed): Update comment.
7231 (process_event_stop_test, handle_inferior_event)
7232 (handle_signal_stop, handle_step_into_function)
7233 (handle_step_into_function_backward): Update.
7235 2014-05-29 Pedro Alves <palves@redhat.com>
7237 * infcall.c (run_inferior_call): Don't check whether the current
7238 thread is running after the proceed call.
7240 2014-05-29 Pedro Alves <palves@redhat.com>
7241 Tom Tromey <tromey@redhat.com>
7243 * NEWS: Mention "maint set target-async", "set mi-async", and that
7244 background execution commands are now always available.
7245 * target.h (target_async_permitted): Update comment.
7246 * target.c (target_async_permitted, target_async_permitted_1):
7248 (set_target_async_command): Rename to ...
7249 (maint_set_target_async_command): ... this.
7250 (show_target_async_command): Rename to ...
7251 (maint_show_target_async_command): ... this.
7252 (_initialize_target): Adjust.
7253 * infcmd.c (prepare_execution_command): Make extern.
7254 * inferior.h (prepare_execution_command): Declare.
7255 * infrun.c (set_observer_mode): Leave target async alone.
7256 * mi/mi-interp.c (mi_interpreter_init): Install
7257 mi_on_sync_execution_done as sync_execution_done observer.
7258 (mi_on_sync_execution_done): New function.
7259 (mi_execute_command_input_handler): Don't print the prompt if we
7260 just started a synchronous command with an async target.
7261 (mi_on_resume): Check sync_execution before printing prompt.
7262 * mi/mi-main.h (mi_async_p): Declare.
7263 * mi/mi-main.c: Include gdbcmd.h.
7264 (mi_async_p): New function.
7265 (mi_async, mi_async_1): New globals.
7266 (set_mi_async_command, show_mi_async_command, mi_async): New
7268 (exec_continue): Call prepare_execution_command.
7269 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7270 (mi_execute_async_cli_command): Use mi_async_p.
7271 (_initialize_mi_main): Install "set mi-async". Make
7272 "target-async" a deprecated alias.
7274 2014-05-29 Pedro Alves <palves@redhat.com>
7276 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7277 (_initialize_cli_interp): Adjust.
7278 * event-loop.c: Include "observer.h".
7279 (start_event_loop): Notify 'command_error' observers instead of
7280 calling display_gdb_prompt. Remove FIXME comment.
7281 * event-top.c (display_gdb_prompt): Remove call into the
7283 * inf-loop.c: Include "observer.h".
7284 (inferior_event_handler): Notify 'command_error' observers instead
7285 of calling display_gdb_prompt.
7286 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7287 observers instead of calling display_gdb_prompt.
7288 * interps.c (interp_set): Don't call display_gdb_prompt.
7289 (current_interp_display_prompt_p): Delete.
7290 * interps.h (interp_prompt_p): Delete declaration.
7291 (interp_prompt_p_ftype): Delete.
7292 (struct interp_procs) <prompt_proc_p>: Delete field.
7293 (current_interp_display_prompt_p): Delete declaration.
7294 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7295 (_initialize_mi_interp): Adjust.
7296 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7297 'command_error' observers.
7298 (tui_on_sync_execution_done, tui_on_command_error): New
7300 (tui_display_prompt_p): Delete.
7301 (_initialize_tui_interp): Adjust.
7303 2014-05-29 Pedro Alves <palves@redhat.com>
7306 * cli/cli-interp.c: Include infrun.h and observer.h.
7307 (cli_uiout, cli_interp): New globals.
7308 (cli_on_signal_received, cli_on_end_stepping_range)
7309 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7311 (cli_interpreter_init): Install them as 'end_stepping_range',
7312 'signal_received' 'signal_exited', 'exited' and 'no_history'
7314 (_initialize_cli_interp): Remove cli_interp local.
7315 * infrun.c (handle_inferior_event): Call the several stop reason
7316 observers instead of printing the stop reason directly.
7317 (end_stepping_range): New function.
7318 (print_end_stepping_range_reason, print_signal_exited_reason)
7319 (print_exited_reason, print_signal_received_reason)
7320 (print_no_history_reason): Make static, and add an uiout
7321 parameter. Print to that instead of to CURRENT_UIOUT.
7322 * infrun.h (print_end_stepping_range_reason)
7323 (print_signal_exited_reason, print_exited_reason)
7324 (print_signal_received_reason print_no_history_reason): New
7326 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7328 <cli_uiout>: New field.
7329 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7330 uiout for CLI output. Install 'signal_received',
7331 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7333 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7334 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7335 (mi_on_no_history): New functions.
7336 (ui_out_free_cleanup): Delete function.
7337 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7338 instead use the one already stored in the MI interpreter data.
7339 (mi_ui_out): Adjust.
7340 * tui/tui-interp.c: Include infrun.h and observer.h.
7341 (tui_interp): New global.
7342 (tui_on_signal_received, tui_on_end_stepping_range)
7343 (tui_on_signal_exited, tui_on_exited)
7344 (tui_on_no_history): New functions.
7345 (tui_init): Install them as 'end_stepping_range',
7346 'signal_received' 'signal_exited', 'exited' and 'no_history'
7348 (_initialize_tui_interp): Delete tui_interp local.
7350 2014-05-29 Pedro Alves <palves@redhat.com>
7353 * linux-nat.c (linux_nat_resume_callback): Rename the second
7354 parameter to 'except'. Skip LP if it points to EXCEPT.
7355 (linux_nat_resume): Don't mark the event lwp as not stopped
7356 before resuming sibling lwps. Instead ask
7357 linux_nat_resume_callback to skip the event lwp. Mark it as not
7358 stopped after actually resuming it.
7359 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7361 (wait_lwp): Mark the lwp as stopped here.
7362 (stop_wait_callback): Mark the lwp as not stopped right after
7363 resuming it. Don't mark lwps as stopped here.
7364 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7365 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7367 2014-05-29 Pedro Alves <palves@redhat.com>
7370 * infrun.c (resume): Determine how much to resume depending on
7371 whether the caller wanted a step, not whether we can hardware step
7372 the target. Mark all threads that we intend to run as running,
7373 unless we're calling an inferior function.
7374 (normal_stop): If the thread is running an infcall, don't finish
7376 * target.c (target_resume): Don't mark threads as running here.
7378 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7380 * serial.c (_initialize_serial): Remove support for
7381 the "set remotebaud" and "show remotebaud" commands.
7382 * NEWS: Add entry documenting the removal of that command.
7384 2014-05-28 Yao Qi <yao@codesourcery.com>
7386 * charset.c: Fix typo in comments.
7388 2014-05-27 Gary Benson <gbenson@redhat.com>
7390 * utils.c (internal_vproblem): Prompt for a bug report.
7392 2014-05-26 Andy Wingo <wingo@igalia.com>
7394 * guile/scm-arch.c (arscm_mark_arch_smob):
7395 * guile/scm-block.c (bkscm_mark_block_smob)
7396 (bkscm_mark_block_syms_progress_smob):
7397 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7398 * guile/scm-exception.c (exscm_mark_exception_smob):
7399 * guile/scm-frame.c (frscm_mark_frame_smob):
7400 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7401 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7402 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7403 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7404 (ppscm_mark_pretty_printer_worker_smob):
7405 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7406 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7407 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7408 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7410 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7413 2014-05-26 Andy Wingo <wingo@igalia.com>
7414 Doug Evans <xdje42@gmail.com>
7416 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7417 empty_base_class. All uses updated.
7418 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7419 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7421 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7422 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7423 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7424 (gdbscm_gsmob_has_property_p, add_property_name)
7425 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7426 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7427 (gdb-object-has-property?, gdb-object-properties): Remove.
7428 (gdb-object-kind): Renamed from gsmob-kind.
7430 2014-05-26 Andy Wingo <wingo@igalia.com>
7432 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7433 * configure: Regenerate.
7435 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7437 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7439 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7441 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7442 (replay_memory_access_read_only, replay_memory_access_read_write)
7443 (replay_memory_access_types, replay_memory_access)
7444 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7445 (cmd_set_record_btrace, cmd_show_record_btrace)
7446 (cmd_show_replay_memory_access): New.
7447 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7448 (record_btrace_remove_breakpoint): Replace
7449 record_btrace_allow_memory_access with replay_memory_access.
7450 (_initialize_record_btrace): Add commands.
7451 * NEWS: Announce it.
7453 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7455 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7457 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7459 * MAINTAINERS (Write After Approval): Move self back from
7462 2014-05-22 Pedro Alves <palves@redhat.com>
7464 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7465 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7466 (disable_randomization, enum exec_direction_kind)
7467 (execution_direction, stop_registers, start_remote)
7468 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7469 (wait_for_inferior, normal_stop, get_last_target_status)
7470 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7471 (insert_step_resume_breakpoint_at_sal)
7472 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7473 (set_step_info, print_stop_event, signal_stop_state)
7474 (signal_print_state, signal_pass_state, signal_stop_update)
7475 (signal_print_update, signal_pass_update)
7476 (update_signals_program_target, clear_exit_convenience_vars)
7477 (displaced_step_dump_bytes, update_observer_mode)
7478 (signal_catch_update, gdb_signal_from_command): Move
7480 * infrun.h: ... to this new file.
7481 * amd64-tdep.c: Include infrun.h.
7482 * annotate.c: Include infrun.h.
7483 * arch-utils.c: Include infrun.h.
7484 * arm-linux-tdep.c: Include infrun.h.
7485 * arm-tdep.c: Include infrun.h.
7486 * break-catch-sig.c: Include infrun.h.
7487 * breakpoint.c: Include infrun.h.
7488 * common/agent.c: Include infrun.h instead of inferior.h.
7489 * corelow.c: Include infrun.h.
7490 * event-top.c: Include infrun.h.
7491 * go32-nat.c: Include infrun.h.
7492 * i386-tdep.c: Include infrun.h.
7493 * inf-loop.c: Include infrun.h.
7494 * infcall.c: Include infrun.h.
7495 * infcmd.c: Include infrun.h.
7496 * infrun.c: Include infrun.h.
7497 * linux-fork.c: Include infrun.h.
7498 * linux-nat.c: Include infrun.h.
7499 * linux-thread-db.c: Include infrun.h.
7500 * monitor.c: Include infrun.h.
7501 * nto-tdep.c: Include infrun.h.
7502 * procfs.c: Include infrun.h.
7503 * record-btrace.c: Include infrun.h.
7504 * record-full.c: Include infrun.h.
7505 * remote-m32r-sdi.c: Include infrun.h.
7506 * remote-mips.c: Include infrun.h.
7507 * remote-notif.c: Include infrun.h.
7508 * remote-sim.c: Include infrun.h.
7509 * remote.c: Include infrun.h.
7510 * reverse.c: Include infrun.h.
7511 * rs6000-tdep.c: Include infrun.h.
7512 * s390-linux-tdep.c: Include infrun.h.
7513 * solib-irix.c: Include infrun.h.
7514 * solib-osf.c: Include infrun.h.
7515 * solib-svr4.c: Include infrun.h.
7516 * target.c: Include infrun.h.
7517 * top.c: Include infrun.h.
7518 * windows-nat.c: Include infrun.h.
7519 * mi/mi-interp.c: Include infrun.h.
7520 * mi/mi-main.c: Include infrun.h.
7521 * python/py-threadevent.c: Include infrun.h.
7523 2014-05-22 Pedro Alves <palves@redhat.com>
7525 * infrun.c (handle_inferior_event): Store the exit code for
7526 --return-child-result here, instead of ...
7527 (print_exited_reason): ... here.
7529 2014-05-21 Pedro Alves <palves@redhat.com>
7532 * gdbthread.h (struct thread_control_state): New field
7534 * infrun.c (follow_fork): Copy the new thread control field to the
7536 (clear_proceed_status_thread): Clear the new thread control field.
7537 (proceed): Set the new thread control field.
7538 * interps.h (command_interp): Declare.
7539 * interps.c (command_interpreter): New global.
7540 (command_interp): New function.
7541 (interp_exec): Set `command_interpreter' while here.
7542 * cli-out.c (cli_uiout_dtor): New function.
7543 (cli_ui_out_impl): Install it.
7544 * mi/mi-interp.c: Include cli-out.h.
7545 (mi_cmd_interpreter_exec): Add comment.
7546 (restore_current_uiout_cleanup): New function.
7547 (ui_out_free_cleanup): New function.
7548 (mi_on_normal_stop): If finishing an execution command started by
7549 a CLI command, or any kind of breakpoint-like event triggered,
7550 print the stop event to the output (CLI) stream.
7551 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7553 2014-05-21 Pedro Alves <palves@redhat.com>
7555 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7556 current source line having changed.
7557 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7558 * infrun.c (normal_stop): Adjust call to
7559 set_current_sal_from_frame.
7560 * source.c (clear_lines_listed_range): New function.
7561 (set_current_source_symtab_and_line, identify_source_line): Clear
7562 the lines listed range.
7563 (line_info): Handle the first "info line" after the current source
7564 line having changed.
7565 * stack.c (print_stack_frame): Remove center handling.
7566 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7569 2014-05-21 Pedro Alves <palves@redhat.com>
7571 * inf-child.c (inf_child_mourn_inferior): New function.
7572 * inf-child.h (inf_child_mourn_inferior): New declaration.
7573 * darwin-nat.c (darwin_mourn_inferior): Use
7574 inf_child_mourn_inferior.
7575 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7576 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7577 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7578 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7579 * windows-nat.c (windows_mourn_inferior): Likewise.
7581 2014-05-21 Doug Evans <xdje42@gmail.com>
7583 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7585 2014-05-21 Doug Evans <xdje42@gmail.com>
7587 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7588 (gdbscm_out_of_range_error): Ditto.
7589 (gdbscm_memory_error): Ditto.
7590 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7591 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7592 (gdbscm_out_of_range_error): Update.
7593 (gdbscm_memory_error): Update.
7594 (gdbscm_scm_to_target_string_unsafe): Delete.
7596 2014-05-21 Pedro Alves <palves@redhat.com>
7598 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7600 (inf_child_open_target): New function.
7601 (inf_child_open): Use inf_child_open_target to push the target
7602 instead of erroring out.
7603 (inf_child_disconnect, inf_child_close)
7604 (inf_child_maybe_unpush_target): New functions.
7605 (inf_child_target): Install inf_child_disconnect and
7606 inf_child_close. Store a pointer to the returned object.
7607 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7609 * target.c (auto_connect_native_target): New global.
7610 (show_default_run_target): New function.
7611 (find_default_run_target): Return NULL if automatically connecting
7612 to the native target is disabled.
7613 (_initialize_target): Install set/show auto-connect-native-target.
7614 * NEWS: Mention "set auto-connect-native-target", and "target
7616 * linux-nat.c (super_close): New global.
7617 (linux_nat_close): Call super_close.
7618 (linux_nat_add_target): Store a pointer to the base class's
7620 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7621 inf_child_maybe_unpush.
7622 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7624 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7625 the inferior. Use inf_child_maybe_unpush_target.
7626 (inf_ttrace_attach): Don't push the target if it is already
7628 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7629 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7630 after mourning the inferior. Use inf_child_maybe_unpush_target.
7631 (darwin_attach_pid): Don't push the target if it is already
7633 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7634 mourning the inferior. Use inf_child_maybe_unpush_target.
7635 (gnu_detach): Use inf_child_maybe_unpush_target.
7636 * go32-nat.c (go32_create_inferior): Don't push the target if it
7638 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7639 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7640 (procfs_open): Rename to ...
7641 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7642 comments. Can target_preopen before changing node. Call
7643 inf_child_open_target to push the target explicitly.
7644 (procfs_attach): Don't push the target if it is already pushed.
7645 (procfs_detach): Use inf_child_maybe_unpush_target.
7646 (procfs_create_inferior): Don't push the target if it is already
7648 (nto_native_ops): New global.
7649 (procfs_open): Reimplement.
7650 (procfs_native_open): New function.
7651 (init_procfs_targets): Install procfs_native_open as to_open of
7652 "target native". Store a pointer to the "native" target in
7654 * procfs.c (procfs_attach): Don't push the target if it is already
7656 (procfs_detach): Use inf_child_maybe_unpush_target.
7657 (procfs_mourn_inferior): Only unpush the target after mourning the
7658 inferior. Use inf_child_maybe_unpush_target.
7659 (procfs_init_inferior): Don't push the target if it is already
7661 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7662 if it is already pushed.
7664 2014-05-21 Pedro Alves <palves@redhat.com>
7666 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7667 and "procfs" targets are now called "native" instead.
7669 2014-05-21 Pedro Alves <palves@redhat.com>
7671 * go32-nat.c (go32_open): Delete.
7672 (go32_target): Don't override the to_open method.
7674 2014-05-21 Pedro Alves <palves@redhat.com>
7676 * nto-procfs.c (procfs_can_run): New function.
7677 (nto_procfs_ops): New global.
7678 (init_procfs_targets): New, based on procfs_target. Install
7679 "target native" in addition to "target procfs".
7680 (_initialize_procfs): Call init_procfs_targets instead of adding
7683 2014-05-21 Pedro Alves <palves@redhat.com>
7685 * windows-nat.c (windows_target): Don't override to_shortname,
7686 to_longname or to_doc.
7688 2014-05-21 Pedro Alves <palves@redhat.com>
7690 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7693 2014-05-21 Pedro Alves <palves@redhat.com>
7695 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7696 to_shortname, to_longname or to_doc.
7698 2014-05-21 Pedro Alves <palves@redhat.com>
7700 * go32-nat.c (go32_target): Don't override to_shortname,
7701 to_longname or to_doc.
7703 2014-05-21 Pedro Alves <palves@redhat.com>
7705 * inf-child.c (inf_child_open): Remove mention of "child".
7706 (inf_child_target): Rename target to "native" instead of "child".
7708 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7710 * Makefile.in (SFILES): Delete "regset.c".
7711 (COMMON_OBS): Delete "regset.o".
7713 * regset.h (regset_alloc): Delete prototype.
7715 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7717 * sparc-linux-tdep.c (sparc32_linux_gregset)
7718 (sparc32_linux_fpregset): New static regset structures.
7719 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7720 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7722 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7723 (sparc64_linux_fpregset): New static regset structures.
7724 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7725 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7726 New static regset structures.
7727 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7728 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7729 New static regset structures.
7730 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7731 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7732 New static regset structures.
7733 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7734 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7735 New static regset structures.
7736 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7738 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7740 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7741 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7742 register maps ("regmaps") from "*regset" to "*regmap". Do this
7743 for all regmap types and variables.
7744 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7745 (sparc32_linux_supply_core_gregset)
7746 (sparc32_linux_collect_core_gregset)
7747 (sparc32_linux_supply_core_fpregset)
7748 (sparc32_linux_collect_core_fpregset): Likewise.
7749 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7750 (sparc_gregmap, sparc_fpregmap): ... these.
7751 (sparc_supply_gregset, sparc_collect_gregset)
7752 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7753 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7754 (_initialize_sparc_nat): Rename regmaps.
7755 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7756 (sparc_gregmap, sparc_fpregmap): ... these.
7757 (sparc_supply_gregset, sparc_collect_gregset)
7758 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7759 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7761 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7762 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7764 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7766 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7767 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7768 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7770 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7771 (sparc32_bsd_fpregset): Rename to...
7772 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7773 (sparc32_bsd_fpregmap): ... these.
7774 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7775 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7776 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7777 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7778 (struct sparc_gregmap, struct sparc_fpregmap)
7779 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7780 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7781 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7782 (sparc32_supply_regset, sparc32_collect_gregset)
7783 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7785 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7786 (sparc64_linux_ptrace_gregmap): ... this.
7787 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7788 (_initialize_sparc64_linux_nat): Rename regmaps.
7789 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7790 (sparc64_linux_core_gregmap): ... this.
7791 (sparc64_linux_supply_core_gregset)
7792 (sparc64_linux_collect_core_gregset)
7793 (sparc64_linux_supply_core_fpregset)
7794 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7795 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7796 (sparc64_sol2_fpregset): Rename to...
7797 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7798 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7799 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7801 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7802 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7803 (sparc64_bsd_fpregset): Rename to...
7804 (struct sparc_gregmap, sparc64_sol2_gregmap)
7805 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7806 (sparc64_bsd_fpregmap): ... these.
7807 (sparc64_supply_gregset, sparc64_collect_gregset)
7808 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7810 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7811 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7812 (sparc64fbsd_gregmap): ... this.
7813 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7814 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7816 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7817 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7818 (sparc64nbsd_collect_fpregset): Likewise.
7819 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7820 (sparc64nbsd_gregmap): ... this.
7821 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7823 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7824 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7825 (sparc64obsd_gregmap): ... this.
7826 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7828 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7829 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7830 (sparc32nbsd_gregmap): ... this.
7831 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7834 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7836 * score-tdep.c (score7_linux_gregset): New static regset
7838 (score7_linux_regset_from_core_section): Remove dynamic regset
7840 (score_gdbarch_init): Drop allocation of tdep structure.
7841 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7843 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7845 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7847 (am33_regset_from_core_section): Remove dynamic regset
7850 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7852 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7853 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7855 (mips_linux_regset_from_core_section): Remove dynamic regset
7857 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7858 'gregset64', 'fpregset', and 'fpregset64'.
7859 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7860 deleted tdep fields.
7862 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7864 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7866 (amd64_regset_from_core_section): Remove dynamic regset
7868 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7870 (amd64obsd_regset_from_core_section): Remove dynamic regset
7872 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7874 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7875 x86-common regset supply function.
7876 * i386-tdep.c (i386_collect_gregset): Make static.
7877 (i386_gregset): New global regset structure.
7878 (i386_fpregset, i386_xstateregset): New static regset structures.
7879 (i386_regset_from_core_section): Remove dynamic regset
7881 (i386_gdbarch_init): Remove initialization of tdep fields
7882 'gregset', 'fpregset', and 'xstateregset'.
7883 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7884 'fpregset', and 'xstateregset'.
7885 (i386_collect_gregset): Remove prototype.
7886 (i386_gregset): New declaration.
7887 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7889 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7892 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7894 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7895 (arm_linux_vfpregset): New static regset structures.
7896 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7898 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7899 and 'vfpregset' fields.
7901 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7903 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7904 (aarch64_linux_fpregset): New static regset structures.
7905 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7906 of regset structures.
7907 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7910 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7912 * regset.h (struct regset): Remove gdbarch field.
7913 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7914 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7915 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7917 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7918 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7919 (ppc32_linux_vsxregset): Likewise.
7920 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7921 via the regcache instead of the regset.
7922 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7923 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7924 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7925 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7928 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7930 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7931 Constify structures.
7932 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7933 (alphanbsd_aout_gregset): Likewise.
7934 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7935 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7937 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7938 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7940 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7941 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7942 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7943 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7944 * m88k-tdep.c (m88k_gregset): Likewise.
7945 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7946 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7947 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7948 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7949 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7950 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7951 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7952 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7953 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7955 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7956 * sh-tdep.h (sh_corefile_gregset): Likewise.
7957 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7958 * vax-tdep.c (vax_gregset): Likewise.
7960 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7962 Fix TLS access for -static -pthread.
7963 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7964 (try_thread_db_load_1): Initialize it.
7965 (thread_db_get_thread_local_address): Call it if LM is zero.
7966 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7967 * target.h (struct target_ops) (to_get_thread_local_address): Add
7968 load_module_addr comment.
7970 2014-05-21 Pedro Alves <palves@redhat.com>
7972 * dcache.c (dcache_read_memory_partial): If reading the cache line
7973 fails, fallback to reading just the memory the caller wanted.
7975 2014-05-20 Doug Evans <dje@google.com>
7977 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7978 instead of get_current_arch.
7980 2014-05-20 Pedro Alves <palves@redhat.com>
7982 * NEWS: Mention that compare-sections now works with all targets.
7984 * remote.c (PACKET_qCRC): New enum value.
7985 (remote_verify_memory): Don't send qCRC if the target has no
7986 execution. Use packet_support/packet_ok. If the target doesn't
7987 support the qCRC packet, fallback to a deep memory copy.
7988 (compare_sections_command): Say "target image" instead of "remote
7990 (_initialize_remote): Add PACKET_qCRC to the list of config
7991 packets that have no associated command. Extend comment.
7992 * target.c (simple_verify_memory, default_verify_memory): New
7994 * target.h (struct target_ops) <to_verify_memory>: Default to
7995 default_verify_memory.
7996 (simple_verify_memory): New declaration.
7997 * target-delegates.c: Regenerate.
7999 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8001 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8003 2014-05-20 Hui Zhu <hui@codesourcery.com>
8004 Yao Qi <yao@codesourcery.com>
8007 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8008 and change address of sp and pc.
8010 2014-05-19 Tom Tromey <tromey@redhat.com>
8012 * gdbtypes.c (rank_function): Use XNEWVEC.
8013 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8015 2014-05-19 Doug Evans <dje@google.com>
8017 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8018 build_type_unit_groups and moved closer to only caller. Remove
8019 arguments. All references updated. Remove outdated .gdb_index
8021 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8022 build_type_psymtabs_1.
8024 2014-05-19 Doug Evans <dje@google.com>
8026 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8027 n_type_unit_groups, all_type_unit_groups. All uses removed.
8028 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8029 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8030 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8031 (add_type_unit_group_to_table): Delete.
8033 2014-05-19 Doug Evans <dje@google.com>
8035 * eval.c (evaluate_subexp_standard): Add some comments.
8037 2014-05-17 Doug Evans <xdje42@gmail.com>
8039 * progspace.c (remove_program_space): Delete, unused.
8040 * progspace.h (remove_program_space): Ditto.
8042 2014-05-17 Doug Evans <xdje42@gmail.com>
8044 * inferior.c (prune_inferiors): Fix comment.
8045 (remove_inferior_command): Call prune_program_spaces.
8047 2014-05-16 Doug Evans <dje@google.com>
8049 New command line option -D.
8051 * main.c (set_gdb_data_directory): New function.
8052 (captured_main): Recognize -D. Flag error for --data-directory "".
8053 Call set_gdb_data_directory.
8054 (print_gdb_help): Print --data-directory, -D.
8055 * main.h (set_gdb_data_directory): Declare.
8056 * top.c (staged_gdb_datadir): New static global.
8057 (set_gdb_datadir): Call set_gdb_data_directory
8058 (show_gdb_datadir): New function.
8059 (init_main): Update init of data-directory parameter.
8061 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8063 Import the "dirfd" gnulib module.
8064 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8065 * gnulib/aclocal.m4: Update.
8066 * gnulib/config.in: Update.
8067 * gnulib/configure: Update.
8068 * gnulib/import/Makefile.am: Update.
8069 * gnulib/import/Makefile.in: Update.
8070 * gnulib/import/dirfd.c: New.
8071 * gnulib/import/m4/dirfd.m4: New.
8072 * gnulib/import/m4/gnulib-cache.m4: Update.
8073 * gnulib/import/m4/gnulib-comp.m4: Update.
8075 2014-05-16 Pierre Muller <muller@sourceware.org>
8076 Yao Qi <yao@codesourcery.com>
8078 * valprint.c (print_wchar): Move the code on checking whether
8079 W is a printable wide char to the default branch of switch
8080 statement below. Call wchar_printable instead of gdb_iswprint.
8082 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8084 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8085 ldr.w and ldrd instructions.
8087 2014-05-15 Doug Evans <dje@google.com>
8089 * dwarf2read.c (read_structure_type): Delete outdated comments.
8091 2014-05-14 Tom Tromey <tromey@redhat.com>
8093 * macrocmd.c (print_macro_definition): Reindent.
8095 2014-05-13 Doug Evans <xdje42@gmail.com>
8097 * python/py-cmd.c (cmdpy_completer): Add comment.
8098 (completers): Make const.
8100 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8102 * infrun.c (resume): Remove should_resume (unused). Move up
8103 declaration of resume_ptid.
8105 2014-05-13 Tom Tromey <tromey@redhat.com>
8107 * language.h (unop_type_check): Remove.
8108 (binop_type_check): Don't declare.
8110 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8112 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8113 call to regcache_raw_collect.
8115 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8117 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8118 mi_console->quote as the quoting character.
8120 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8122 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8124 2014-04-29 Tom Tromey <tromey@redhat.com>
8126 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8127 "show debug varobj".
8129 2014-05-07 Kyle McMartin <kyle@redhat.com>
8131 Pushed by Joel Brobecker <brobecker@adacore.com>.
8132 * aarch64-tdep.c (aarch64_software_single_step): New function.
8133 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8134 with aarch64_software_single_step.
8136 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8140 2014-05-05 Keith Seitz <keiths@redhat.com>
8142 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8143 variable or history value is successfully parsed.
8145 2014-05-05 Yao Qi <yao@codesourcery.com>
8146 Pedro Alves <palves@redhat.com>
8148 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8149 address of blocks that intersects the requested range. Trim
8150 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8152 * ctf.c (ctf_xfer_partial): Likewise.
8154 2014-05-05 Yao Qi <yao@codesourcery.com>
8156 * printcmd.c (display_command): Remove the check to
8157 target_has_execution.
8159 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8161 * ppcobsd-nat.c: Include "obsd-nat.h".
8162 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8164 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8166 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8168 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8169 and 16-bit signed and unsigned arguments. Update comment.
8170 (stap_parse_probe_arguments): Extend code to handle such
8171 arguments. Use warning instead of complaint to notify about
8172 unrecognized bitness.
8174 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8176 PR breakpoints/16889
8177 * stap-probe.c (stap_parse_probe_arguments): Simplify
8178 check for non-prefixed probes (i.e., probes whose
8179 arguments do not start with "N@"). Always set the
8180 argument type to a sane value.
8182 2014-05-01 David Taylor <dtaylor@emc.com>
8184 * remote.c (compare_sections_command): Add -r option to compare
8185 all loadable read-only sections.
8187 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8189 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8190 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8192 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8193 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8194 Remove unused CORE_ADDR argument. Update all callers.
8196 2014-04-29 Pedro Alves <palves@redhat.com>
8198 * remote.c (struct packet_config) <detect>: Extend comment.
8199 (add_packet_config_cmd): Don't set the config's detect or support
8201 (init_all_packet_configs): Also initialize the config's 'detect'
8203 (reset_all_packet_configs_support): New function.
8204 (remote_open_1): Call reset_all_packet_configs_support instead of
8205 init_all_packet_configs.
8206 (_initialize_remote): Initialize all packet configs. Assert that
8207 all packets have an associated command, except a few known
8210 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8212 * dwarf2read.c (read_subrange_type): Handle dynamic
8213 DW_AT_lower_bound attributes.
8215 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8217 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8218 dynamic bounds before computing its upper bound.
8219 (ada_discrete_type_low_bound): Same as above with the lower bound.
8221 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8223 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8224 range types. Adjust the array handling implementation to
8225 take advantage of this change.
8226 (resolve_dynamic_range): New function, mostly extracted from
8227 resolve_dynamic_bounds.
8228 (resolve_dynamic_array): New function, mostly extracted from
8229 resolve_dynamic_bounds.
8230 (resolve_dynamic_bounds): Delete.
8231 (resolve_dynamic_type): Reimplement. Add handling of
8232 TYPE_CODE_RANGE types.
8234 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8236 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8237 handling of parallel ___XA types.
8239 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8241 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8242 unnecessary second call to static_unwrap_type.
8244 2014-04-27 Hui Zhu <hui@codesourcery.com>
8246 * stack.c (print_frame_info): Call do_gdb_disassembly with
8247 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8249 2014-04-26 Doug Evans <xdje42@gmail.com>
8251 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8253 2014-04-25 Pedro Alves <palves@redhat.com>
8256 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8257 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8258 and newline from built string.
8259 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8260 (linux_ptrace_attach_fail_reason): ... this.
8261 * linux-nat.c (linux_nat_attach): Adjust to use
8262 linux_ptrace_attach_fail_reason.
8264 2014-04-25 Pedro Alves <palves@redhat.com>
8266 * remote.c (struct remote_state): Remove multi_process_aware,
8267 non_stop_aware, cond_tracepoints, cond_breakpoints,
8268 breakpoint_commands, fast_tracepoints, static_tracepoints,
8269 install_in_trace, disconnected_tracing,
8270 enable_disable_tracepoints, string_tracing, and
8271 augmented_libraries_svr4_read fields.
8272 (remote_multi_process_p): Move further below in the file.
8273 (struct packet_config): Add comments.
8274 (update_packet_config): Delete function.
8275 (show_packet_config_cmd): Use packet_config_support.
8276 (add_packet_config_cmd): Use NULL as set callback.
8277 (packet_ok): "set remote foo-packet"-style commands no longer
8278 change config->supported -- adjust.
8279 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8280 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8281 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8282 (PACKET_QNonStop, PACKET_multiprocess_feature)
8283 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8284 (PACKET_DisconnectedTracing_feature)
8285 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8286 (set_remote_protocol_packet_cmd): Delete function.
8287 (packet_config_support, packet_support): New functions.
8288 (set_remote_protocol_Z_packet_cmd): Don't call
8289 update_packet_config.
8290 (remote_query_attached, remote_pass_signals)
8291 (remote_program_signals, remote_threads_info)
8292 (remote_threads_extra_info, remote_start_remote): Use
8294 (remote_start_remote): Use packet_config_support and
8296 (init_all_packet_configs): Set all packets to unknown support,
8297 instead of calling update_packet_config.
8298 (remote_check_symbols): Use packet_support.
8299 (remote_supported_packet): Unconditionally set the packet config's
8301 (remote_multi_process_feature, remote_non_stop_feature)
8302 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8303 (remote_breakpoint_commands_feature)
8304 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8305 (remote_install_in_trace_feature)
8306 (remote_disconnected_tracing_feature)
8307 (remote_enable_disable_tracepoint_feature)
8308 (remote_string_tracing_feature)
8309 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8310 (remote_protocol_features): Adjust to use remote_supported_packet
8311 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8312 "ConditionalTracepoints", "ConditionalBreakpoints",
8313 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8314 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8315 "EnableDisableTracepoints", and "tracenz".
8316 (remote_query_supported): Use packet_support.
8317 (remote_open_1): Adjust.
8318 (extended_remote_attach_1): Use packet_support. Switch on the
8319 result of packet_ok instead of checking whether the packet ended
8321 (remote_vcont_resume): Use packet_support.
8322 (remote_resume, remote_stop_ns, fetch_register_using_p)
8323 (remote_prepare_to_store, store_register_using_P)
8324 (check_binary_download, remote_write_bytes): Use packet_support.
8325 (remote_vkill): Use packet_support. Switch on the result of
8326 packet_ok instead of checking whether the packet ended up
8328 (extended_remote_supports_disable_randomization): Use
8330 (extended_remote_run): Switch on the result of packet_ok instead
8331 of checking whether the packet ended up disabled.
8332 (remote_insert_breakpoint, remote_remove_breakpoint)
8333 (remote_insert_watchpoint, remote_remove_watchpoint)
8334 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8336 (remote_search_memory): Use packet_config_support.
8337 (remote_get_thread_local_address, remote_get_tib_address)
8338 (remote_hostio_send_command, remote_can_execute_reverse): Use
8340 (remote_supports_cond_tracepoints)
8341 (remote_supports_cond_breakpoints)
8342 (remote_supports_fast_tracepoints)
8343 (remote_supports_static_tracepoints)
8344 (remote_supports_install_in_trace)
8345 (remote_supports_enable_disable_tracepoint)
8346 (remote_supports_string_tracing)
8347 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8348 the packet config says the feature is enabled or disabled.
8349 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8350 (remote_get_trace_status): Use packet_support.
8351 (remote_set_disconnected_tracing): Adjust to check whether the
8352 feature is enabled with packet_support.
8353 (remote_set_trace_buffer_size, remote_use_agent)
8354 (remote_can_use_agent, remote_supports_btrace): Use
8356 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8357 Use packet_config_support.
8358 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8359 the packet config says the feature is enabled or disabled.
8360 (set_range_stepping): Use packet_support.
8362 2014-04-25 Tom Tromey <tromey@redhat.com>
8364 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8367 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8369 * NEWS: Mention support for C99 variable length arrays.
8371 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8373 * ada-lang.c (standard_exc): Expand introductory comment.
8375 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8376 Walfred Tedeschi <walfred.tedeschi@intel.com>
8378 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8380 (amd64_linux_read_description): Add code to handle AVX512 xstate
8381 mask and return respective tdesc.
8382 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8383 and features/i386/x32-avx512-linux.c.
8384 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8385 (amd64_linux_core_read_description): Add code to handle AVX512
8386 xstate mask and return respective tdesc.
8387 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8388 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8390 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8391 (tdesc_amd64_avx512_linux): New prototype.
8392 (tdesc_x32_avx512_linux): Likewise.
8393 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8394 features/i386/x32-avx512.c.
8395 (amd64_ymm_avx512_names): New register names for pseudo
8397 (amd64_ymmh_avx512_names): New register names for raw registers
8399 (amd64_k_names): New register names for K registers.
8400 (amd64_zmmh_names): New register names for ZMM raw registers.
8401 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8402 (amd64_xmm_avx512_names): New register names for XMM16-31
8404 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8406 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8407 if feature is present.
8408 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8409 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8410 (AMD64_NUM_REGS): Adjust to new number of registers.
8411 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8412 registers supplied via XSTATE by AVX512 registers.
8413 (i386_linux_read_description): Add case for AVX512.
8414 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8415 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8416 (i386_linux_core_read_description): Add case for AVX512.
8417 (i386_linux_init_abi): Install supported register note section
8419 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8421 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8422 registers to be number of zmm7h + 1.
8423 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8424 * i386-tdep.c: Include features/i386/i386-avx512.c.
8425 (i386_zmm_names): Add ZMM pseudo register names array.
8426 (i386_zmmh_names): Add ZMM raw register names array.
8427 (i386_k_names): Add K raw register names array.
8428 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8429 registers. AVX512 has 16 more ZMM registers than there are YMM
8431 (i386_zmmh_regnum_p): Add function to look up register number of
8433 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8434 (i386_k_regnum_p): Likewise for K raw registers.
8435 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8436 registers added by AVX512.
8437 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8438 registers added by AVX512.
8439 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8441 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8442 (i386_pseudo_register_name): Add ZMM pseudo registers.
8443 (i386_zmm_type): Construct and return vector registers type for ZMM
8445 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8446 ZMM0-31 pseudo registers and K registers.
8447 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8448 and YMM16-31 registers from register cache.
8449 (i386_pseudo_register_write): Add code to write K, ZMM and
8451 (i386_register_reggroup_p): Add code to include/exclude AVX512
8452 registers in/from respective register groups.
8453 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8454 registers if feature is present in xcr0.
8455 (i386_gdbarch_init): Add code to initialize AVX512 feature
8456 variables in tdep structure, wire in pseudo registers and call
8457 initialize_tdesc_i386_avx512.
8458 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8460 (i386_regnum): Add AVX512 registers.
8461 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8462 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8463 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8464 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8466 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8467 (i386_ymm_avx512_regnum_p): Likewise.
8468 (i386_k_regnum_p): Likewise.
8469 (i386_zmm_regnum_p): Likewise.
8470 (i386_zmmh_regnum_p): Likewise.
8471 * i387-tdep.c : Update year in copyright notice.
8472 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8474 (XSAVE_YMM_AVX512_ADDR): New macro.
8475 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8477 (XSAVE_XMM_AVX512_ADDR): New macro.
8478 (xsave_avx512_k_offset): New table for K register offsets in
8480 (XSAVE_AVX512_K_ADDR): New macro.
8481 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8483 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8484 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8486 (i387_collect_xsave): Add code to collect AVX512 registers from
8488 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8489 of XMM16-31 registers.
8490 (I387_NUM_K_REGS): New define for number of K registers.
8491 (I387_K0_REGNUM): New define for K0 register number.
8492 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8493 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8494 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8496 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8497 (I387_XMM16_REGNUM): New define for XMM16 register number.
8498 (I387_YMM0_REGNUM): New define for YMM0 register number.
8499 (I387_KEND_REGNUM): New define for last K register number.
8500 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8501 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8503 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8505 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8507 * features/Makefile: Add AVX512 related files.
8508 * features/i386/32bit-avx512.xml: New file.
8509 * features/i386/64bit-avx512.xml: Likewise.
8510 * features/i386/amd64-avx512-linux.c: Likewise.
8511 * features/i386/amd64-avx512-linux.xml: Likewise.
8512 * features/i386/amd64-avx512.c: Likewise.
8513 * features/i386/amd64-avx512.xml: Likewise.
8514 * features/i386/i386-avx512-linux.c: Likewise.
8515 * features/i386/i386-avx512-linux.xml: Likewise.
8516 * features/i386/i386-avx512.c: Likewise.
8517 * features/i386/i386-avx512.xml: Likewise.
8518 * features/i386/x32-avx512-linux.c: Likewise.
8519 * features/i386/x32-avx512-linux.xml: Likewise.
8520 * features/i386/x32-avx512.c: Likewise.
8521 * features/i386/x32-avx512.xml: Likewise.
8522 * regformats/i386/amd64-avx512-linux.dat: New file.
8523 * regformats/i386/amd64-avx512.dat: Likewise.
8524 * regformats/i386/i386-avx512-linux.dat: Likewise.
8525 * regformats/i386/i386-avx512.dat: Likewise.
8526 * regformats/i386/x32-avx512-linux.dat: Likewise.
8527 * regformats/i386/x32-avx512.dat: Likewise.
8528 * NEWS: Add note about new support for AVX512.
8531 2014-04-23 Pedro Alves <palves@redhat.com>
8533 * breakpoint.c (insert_bp_location): Tolerate errors if the
8534 breakpoint is set in a user-loaded objfile.
8535 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8536 location is marked shlib_disabled. If the breakpoint is set in a
8537 user-loaded objfile is a GDB-side memory breakpoint, validate it
8538 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8539 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8541 * mem-break.c (memory_validate_breakpoint): New function.
8542 * objfiles.c (userloaded_objfile_contains_address_p): New
8544 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8545 * target.h (memory_validate_breakpoint): New declaration.
8547 2014-04-23 Pedro Alves <palves@redhat.com>
8549 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8550 the breakpoint is set in a shared library, only suppress
8551 errors for software breakpoints, not hardware breakpoints.
8553 2014-04-22 Pedro Alves <palves@redhat.com>
8555 * infrun.c (schedlock_applies): New function, factored out from
8556 find_thread_needs_step_over.
8557 (find_thread_needs_step_over): Use it.
8558 (switch_back_to_stepped_thread): Always clear trap_expected if the
8559 step over is finished. Return early if scheduler locking applies.
8560 Look for the stepping thread and a potential step-over thread with
8562 (currently_stepping_or_nexting_callback): Delete.
8564 2014-04-22 Nick Clifton <nickc@redhat.com>
8566 * NEWS: Mention that ARM sim now supports tracing.
8568 2014-04-22 Yao Qi <yao@codesourcery.com>
8570 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8572 * tracefile.c (tracefile_fetch_registers): ... it. New
8574 * tracefile.h (tracefile_fetch_registers): Declare.
8575 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8576 tracefile_fetch_registers.
8578 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8581 * windows-nat.c (thread_rec): Don't display a warning when
8582 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8583 fails for any reason, set th->suspended to -1, so that we don't
8584 try to resume such a thread. Also, don't return NULL in these
8585 cases, to avoid completely ruin the session due to "PC register is
8586 not available" error.
8587 (do_windows_fetch_inferior_registers): Check errors in
8588 GetThreadContext call.
8589 (windows_continue): Accept an additional argument KILLED; if not
8590 zero, ignore errors in the SetThreadContext call, since the
8591 inferior was killed and is shutting down.
8592 (windows_resume, get_windows_debug_event)
8593 (windows_create_inferior, windows_mourn_inferior)
8594 (windows_kill_inferior): All callers of windows_continue changed
8595 to adjust to its new calling sequence.
8597 2014-04-19 Yao Qi <yao@codesourcery.com>
8599 * ctf.c (ctf_open): Call post_create_inferior.
8601 2014-04-19 Yao Qi <yao@codesourcery.com>
8603 * ctf.c (handle_id): New static variable.
8604 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8605 value. Get the declaration of event "register" and get length
8606 of field "contents".
8608 2014-04-19 Yao Qi <yao@codesourcery.com>
8610 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8612 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8614 * valops.c (oload_method_static): Remove unnecessary argument
8615 METHOD. Update all callers.
8617 2014-04-18 Pedro alves <palves@redhat.com>
8618 Tom Tromey <tromey@redhat.com>
8621 * frame.c (get_prev_frame_1): Rename to ...
8622 (get_prev_frame_always): ... this, and make extern. Adjust.
8623 (skip_artificial_frames): Use get_prev_frame_always.
8624 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8625 (get_frame_unwind_stop_reason): Adjust to rename.
8626 * frame.h (get_prev_frame_always): Declare.
8627 * inline-frame.c: Include frame.h.
8628 (inline_frame_this_id): Use get_prev_frame_always.
8630 2014-04-18 Tristan Gingold <gingold@adacore.com>
8632 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8633 code by using bfd_mach_o_get_base_address.
8635 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8637 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8638 (spu_ax_pseudo_register_collect): New function.
8639 (spu_ax_pseudo_register_push_stack): Likewise.
8640 (spu_dwarf_reg_to_regnum): Likewise.
8641 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8643 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8645 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8646 Replace FRAME argument with FRAME_ID.
8647 * gdbarch.c, gdbarch.h: Regenerate.
8648 * findvar.c (default_value_from_register): Add GDBARCH argument;
8649 replace FRAME by FRAME_ID. No longer call get_frame_id.
8650 (value_from_register): Update call to gdbarch_value_from_register.
8651 * value.h (default_value_from_register): Update prototype.
8652 * s390-linux-tdep.c (s390_value_from_register): Update interface
8653 and call to default_value_from_register.
8654 * spu-tdep.c (spu_value_from_register): Likewise.
8656 * findvar.c (address_from_register): Remove TYPE argument.
8657 Do not call value_from_register; use gdbarch_value_from_register
8658 with null_frame_id instead.
8659 * value.h (address_from_register): Update prototype.
8660 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8661 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8662 address_from_register interface change.
8664 2014-04-17 Yao Qi <yao@codesourcery.com>
8666 * gdbtypes.h: Update comments to link to types and macros'
8669 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8671 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8673 2014-04-16 Keith Seitz <keiths@redhat.com>
8676 * dwarf2read.c (skip_one_die): Check that all relative-offset
8677 sibling DIEs fall within range of the current reader's buffer.
8678 (read_partial_die): Likewise.
8680 2014-04-16 Keith Seitz <keiths@redhat.com>
8683 * cp-namespace.c (lookup_symbol_file): If the type name of
8684 `this' is NULL, return immediately.
8686 2014-04-14 Keith Seitz <keiths@redhat.com>
8689 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8690 from symbol_matches_domain in symtab.c. All local callers
8691 of symbol_matches_domain updated.
8692 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8693 search STRUCT_DOMAIN.
8694 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8695 independently. standard_lookup will do that automatically.
8696 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8697 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8698 (cp_lookup_symbol_in_namespace): Likewise.
8699 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8700 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8701 may return a STRUCT_DOMAIN match.
8702 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8703 * cp-support.c: Include language.h.
8704 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8706 * psymtab.c (match_partial_symbol): Compare the requested
8707 domain with the symbol's domain directly.
8708 (lookup_partial_symbol): Likewise.
8709 * symtab.c (lookup_symbol_in_language): Explain when/why
8710 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8711 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8712 appropriate languages.
8713 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8714 and moved to ada-lang.c
8715 (lookup_block_symbol): Explain that this function only returns
8716 symbol matching the requested DOMAIN.
8717 Compare the requested domain with the symbol's domain directly.
8718 (iterate_over_symbols): Compare the requested domain with the
8719 symbol's domain directly.
8720 * symtab.h (symbol_matches_domain): Remove.
8722 2014-04-14 Tom Tromey <tromey@redhat.com>
8725 * c-exp.y (type_aggregate_p): New function.
8726 (qualified_name, classify_inner_name): Use it.
8727 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8728 and TYPE_TARGET_TYPE of an enum type.
8729 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8731 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8732 handle TYPE_DECLARED_CLASS.
8733 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8735 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8736 * valops.c (enum_constant_from_type): New function.
8737 (value_aggregate_elt): Use it.
8738 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8741 2014-04-14 Tom Tromey <tromey@redhat.com>
8743 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8744 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8746 * value.h (value_aggregate_elt): Update.
8748 2014-04-14 Tom Tromey <tromey@redhat.com>
8750 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8752 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8754 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8755 (evaluate_subexp_standard): Pass noside argument.
8756 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8757 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8758 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8759 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8760 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8762 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8764 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8765 points to a constant blob.
8767 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8769 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8770 property and store it as the high bound and flag the range accordingly.
8771 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8772 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8773 * gdbtypes.h (enum range_flags): New enum.
8774 (struct range_bounds): Add flags member.
8776 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8778 * c-typeprint.c (c_type_print_varspec_suffix): Added
8779 check for not yet resolved high bound. If unresolved, print
8780 "variable length" string to the console instead of random
8783 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8785 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8787 (ada_template_to_fixed_record_type_1): Likewise.
8788 (ada_to_fixed_type_1): Likewise.
8789 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8790 (cp_print_value): Likewise.
8791 * d-valprint.c (dynamic_array_type): Likewise.
8792 * findvar.c (address_of_variable): Likewise.
8793 * jv-valprint.c (java_value_print): Likewise.
8794 * valops.c (value_ind): Likewise.
8795 * value.c (coerce_ref): Likewise.
8797 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8799 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8800 value and retrieve the dynamic type size.
8802 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8804 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8805 passed to sizeof is dynamic evaluate the argument to compute the length.
8807 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8808 Joel Brobecker <brobecker@adacore.com>
8810 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8811 (dwarf2_evaluate_property): New function.
8812 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8813 * dwarf2read.c (attr_to_dynamic_prop): New function.
8814 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8816 * gdbtypes.c: Include dwarf2loc.h.
8817 (is_dynamic_type): New function.
8818 (resolve_dynamic_type): New function.
8819 (resolve_dynamic_bounds): New function.
8820 (get_type_length): New function.
8821 (check_typedef): Use get_type_length to compute type length.
8822 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8823 (TYPE_LOW_BOUND_KIND): New macro.
8824 (is_dynamic_type): New function prototype.
8825 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8826 to resolve dynamic properties of the type. Update comment.
8827 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8829 2014-04-14 Richard Henderson <rth@redhat.com>
8831 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8833 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8834 Doug Evans <xdje42@gmail.com>
8836 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8837 dereference TYPE_CODE_REF values.
8839 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8841 Revert the following changes due to regressions:
8843 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8844 (dwarf2_evaluate_property): New function.
8845 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8846 * dwarf2read.c (attr_to_dynamic_prop): New function.
8847 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8849 * gdbtypes.c: Include dwarf2loc.h.
8850 (is_dynamic_type): New function.
8851 (resolve_dynamic_type): New function.
8852 (resolve_dynamic_bounds): New function.
8853 (get_type_length): New function.
8854 (check_typedef): Use get_type_length to compute type length.
8855 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8856 (TYPE_LOW_BOUND_KIND): New macro.
8857 (is_dynamic_type): New function prototype.
8858 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8859 to resolve dynamic properties of the type. Update comment.
8860 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8862 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8863 passed to sizeof is dynamic evaluate the argument to compute the length.
8865 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8866 value and retrieve the dynamic type size.
8868 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8869 (ada_template_to_fixed_record_type_1): Likewise.
8870 (ada_to_fixed_type_1): Likewise.
8871 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8872 (cp_print_value): Likewise.
8873 * d-valprint.c (dynamic_array_type): Likewise.
8874 * eval.c (evaluate_subexp_with_coercion): Likewise.
8875 * findvar.c (address_of_variable): Likewise.
8876 * jv-valprint.c (java_value_print): Likewise.
8877 * valops.c (value_ind): Likewise.
8878 * value.c (coerce_ref): Likewise.
8880 * c-typeprint.c (c_type_print_varspec_suffix): Added
8881 check for not yet resolved high bound. If unresolved, print
8882 "variable length" string to the console instead of random
8885 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8886 property and store it as the high bound and flag the range accordingly.
8887 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8888 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8889 * gdbtypes.h (enum range_flags): New enum.
8890 (struct range_bounds): Add flags member.
8892 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8893 points to a constant blob.
8895 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8896 (evaluate_subexp_standard): Pass noside argument.
8897 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8898 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8899 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8900 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8901 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8903 2014-04-11 Keith Seitz <keiths@redhat.com>
8906 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8907 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8910 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8912 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8913 (evaluate_subexp_standard): Pass noside argument.
8914 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8915 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8916 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8917 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8918 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8920 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8922 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8923 points to a constant blob.
8925 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8927 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8928 property and store it as the high bound and flag the range accordingly.
8929 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8930 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8931 * gdbtypes.h (enum range_flags): New enum.
8932 (struct range_bounds): Add flags member.
8934 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8936 * c-typeprint.c (c_type_print_varspec_suffix): Added
8937 check for not yet resolved high bound. If unresolved, print
8938 "variable length" string to the console instead of random
8941 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8943 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8944 (ada_template_to_fixed_record_type_1): Likewise.
8945 (ada_to_fixed_type_1): Likewise.
8946 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8947 (cp_print_value): Likewise.
8948 * d-valprint.c (dynamic_array_type): Likewise.
8949 * eval.c (evaluate_subexp_with_coercion): Likewise.
8950 * findvar.c (address_of_variable): Likewise.
8951 * jv-valprint.c (java_value_print): Likewise.
8952 * valops.c (value_ind): Likewise.
8953 * value.c (coerce_ref): Likewise.
8955 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8957 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8958 value and retrieve the dynamic type size.
8960 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8962 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8963 passed to sizeof is dynamic evaluate the argument to compute the length.
8965 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8967 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8968 (dwarf2_evaluate_property): New function.
8969 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8970 * dwarf2read.c (attr_to_dynamic_prop): New function.
8971 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8973 * gdbtypes.c: Include dwarf2loc.h.
8974 (is_dynamic_type): New function.
8975 (resolve_dynamic_type): New function.
8976 (resolve_dynamic_bounds): New function.
8977 (get_type_length): New function.
8978 (check_typedef): Use get_type_length to compute type length.
8979 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8980 (TYPE_LOW_BOUND_KIND): New macro.
8981 (is_dynamic_type): New function prototype.
8982 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8983 to resolve dynamic properties of the type. Update comment.
8984 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8986 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8988 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8989 declaring high/low bounds and change uses accordingly. Call
8990 create_range_type instead of create_static_range_type.
8991 * gdbtypes.c (create_range_type): New function.
8992 (create_range_type): Convert bounds into struct bound_prop and pass
8993 them to create_range_type.
8994 * gdbtypes.h (struct bound_prop): New struct.
8995 (create_range_type): New function prototype.
8996 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8997 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8998 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9000 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9002 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9004 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9005 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9006 * ada-lang.c: All uses of create_range_type updated.
9007 * coffread.c: All uses of create_range_type updated.
9008 * dwarf2read.c: All uses of create_range_type updated.
9009 * f-exp.y: All uses of create_range_type updated.
9010 * m2-valprint.c: All uses of create_range_type updated.
9011 * mdebugread.c: All uses of create_range_type updated.
9012 * stabsread.c: All uses of create_range_type updated.
9013 * valops.c: All uses of create_range_type updated.
9014 * valprint.c: All uses of create_range_type updated.
9016 2014-04-10 Pedro Alves <palves@redhat.com>
9018 * breakpoint.c (single_step_breakpoints)
9019 (single_step_gdbarch): Move up in the file.
9020 (one_breakpoint_xfer_memory): New function, factored out from ...
9021 (breakpoint_xfer_memory): ... here. Also process single-step
9024 2014-04-09 Tristan Gingold <gingold@adacore.com>
9026 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9028 (darwin_decode_exception_message): Free port only after use.
9030 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9032 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9033 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9034 when setting the size of call_length.
9036 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9038 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9039 dereference TYPE_CODE_REF values.
9041 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9043 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9044 end of warning message.
9046 2014-04-03 Doug Evans <dje@google.com>
9048 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9049 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9051 2014-04-02 Alan Modra <amodra@gmail.com>
9053 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9054 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9055 (struct symbol_file_add_from_memory_args): Add size field.
9056 (find_vdso_size): New function.
9057 (add_vsyscall_page): Attempt to find vdso size.
9059 2014-04-01 Doug Evans <dje@google.com>
9061 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9063 2014-04-01 Tristan Gingold <gingold@adacore.com>
9065 * darwin-nat.c (darwin_encode_reply): Add prototype.
9066 (darwin_decode_exception_message): Reply to unknown inferiors.
9067 (darwin_decode_message): Handle message by id. Ignore message
9068 to unknown inferior.
9069 (darwin_wait): Discard unknown messages, add debug trace.
9071 2014-03-31 Doug Evans <dje@google.com>
9073 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9076 2014-03-31 Doug Evans <dje@google.com>
9078 New option "set print symbol-loading".
9080 * solib.c (solib_read_symbols): Only print symbol loading messages
9082 (solib_add): If symbol loading is in "brief" mode, notify user
9083 symbols are being loaded.
9084 (reload_shared_libraries_1): Ditto.
9085 * symfile.c (print_symbol_loading_off): New static global.
9086 (print_symbol_loading_brief): New static global.
9087 (print_symbol_loading_full): New static global.
9088 (print_symbol_loading_enums): New static global.
9089 (print_symbol_loading): New static global.
9090 (print_symbol_loading_p): New function.
9091 (symbol_file_add_with_addrs): Only print symbol loading messages
9093 (_initialize_symfile): Register "print symbol-loading" set/show
9095 * symfile.h (print_symbol_loading_p): Declare.
9097 2014-03-30 Doug Evans <xdje42@gmail.com>
9099 * infrun.c (set_last_target_status): New function.
9100 (handle_inferior_event): Call it.
9102 2014-03-30 Doug Evans <xdje42@gmail.com>
9104 * inferior.h (enum stop_kind): Improve comment.
9106 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9108 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9109 a reference, strip the reference layer before calling
9110 the lang_ops value_has_mutated callback.
9112 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9114 Remove some globals from our parser.
9115 * language.c (unk_lang_parser): Add "struct parser_state"
9117 * language.h (struct language_defn) <la_parser>: Likewise.
9118 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9119 (initialize_expout): Add "struct parser_state" argument.
9120 Rewrite function to use the parser state.
9121 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9122 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9123 write_exp_elt_longcst, write_exp_elt_dblcst,
9124 write_exp_elt_decfloatcst, write_exp_elt_type,
9125 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9126 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9127 write_dollar_variable): Likewise.
9128 (parse_exp_in_context_1): Use parser state.
9129 (insert_type_address_space): Add "struct parser_state" argument.
9131 (increase_expout_size): New function.
9132 * parser-defs.h: Forward declare "struct language_defn" and
9133 "struct parser_state".
9134 (expout, expout_size, expout_ptr): Remove extern declarations.
9135 (parse_gdbarch, parse_language): Rewrite macro declarations to
9136 accept the parser state.
9137 (struct parser_state): New struct.
9138 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9139 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9140 write_exp_elt_decfloatcst, write_exp_elt_type,
9141 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9142 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9143 write_exp_msymbol, write_dollar_variable,
9144 mark_struct_expression, insert_type_address_space): Add "struct
9145 parser_state" argument.
9146 (increase_expout_size): New function.
9147 * utils.c (do_clear_parser_state): New function.
9148 (make_cleanup_clear_parser_state): Likewise.
9149 * utils.h (make_cleanup_clear_parser_state): New function
9151 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9152 Update calls to write_exp* in order to pass the parser state.
9153 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9154 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9155 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9156 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9157 * stap-probe.c (stap_parse_register_operand): Likewise.
9158 (stap_parse_single_operand): Likewise.
9159 (stap_parse_argument_1): Likewise.
9160 (stap_parse_argument): Use parser state.
9161 * stap-probe.h: Include "parser-defs.h".
9162 (struct stap_parse_info) <pstate>: New field.
9163 * c-exp.y (parse_type): Rewrite to use parser state.
9164 (yyparse): Redefine to c_parse_internal.
9165 (pstate): New global variable.
9166 (parse_number): Add "struct parser_state" argument.
9167 (write_destructor_name): Likewise.
9168 (type_exp): Update calls to write_exp* and similars in order to
9170 (exp1, exp, variable, qualified_name, space_identifier,
9171 typename, typebase): Likewise.
9172 (write_destructor_name, parse_number, lex_one_token,
9173 classify_name, classify_inner_name, c_parse): Add "struct
9174 parser_state" argument. Update function to use parser state.
9175 * c-lang.h: Forward declare "struct parser_state".
9176 (c_parse): Add "struct parser_state" argument.
9177 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9178 (yyparse): Redefine macro to ada_parse_internal.
9179 (pstate): New variable.
9180 (write_int, write_object_renaming, write_var_or_type,
9181 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9182 type_int, type_long, type_long_long, type_float, type_double,
9183 type_long_double, type_char, type_boolean, type_system_address):
9184 Add "struct parser_state" argument.
9185 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9186 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9187 var_or_type, aggregate, aggregate_component_list,
9188 positional_list, others, component_group,
9189 component_associations): Update calls to write_exp* and similar
9190 functions in order to use parser state.
9191 (ada_parse, write_var_from_sym, write_int,
9192 write_exp_op_with_string, write_object_renaming,
9193 find_primitive_type, write_selectors, write_ambiguous_var,
9194 write_var_or_type, write_name_assoc, type_int, type_long,
9195 type_long_long, type_float, type_double, type_long_double,
9196 type_char, type_boolean, type_system_address): Add "struct
9197 parser_state" argument. Adjust function to use parser state.
9198 * ada-lang.c (parse): Likewise.
9199 * ada-lang.h: Forward declare "struct parser_state".
9200 (ada_parse): Add "struct parser_state" argument.
9201 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9202 calls to both functions.
9203 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9205 (yyparse): Redefine macro to f_parse_internal.
9206 (pstate): New variable.
9207 (parse_number): Add "struct parser_state" argument.
9208 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9209 and similars in order to use parser state.
9210 (parse_number): Adjust code to use parser state.
9212 (f_parse): New function.
9213 * f-lang.h: Forward declare "struct parser_state".
9214 (f_parse): Add "struct parser_state" argument.
9215 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9217 (yyparse): Redefine macro for java_parse_internal.
9218 (pstate): New variable.
9219 (push_expression_name, push_expression_name, insert_exp): Add
9220 "struct parser_state" argument.
9221 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9222 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9223 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9224 PostIncrementExpression, PostDecrementExpression,
9225 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9226 UnaryExpressionNotPlusMinus, CastExpression,
9227 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9228 RelationalExpression, EqualityExpression, AndExpression,
9229 ExclusiveOrExpression, InclusiveOrExpression,
9230 ConditionalAndExpression, ConditionalOrExpression,
9231 ConditionalExpression, Assignment, LeftHandSide): Update
9232 calls to write_exp* and similars in order to use parser state.
9233 (parse_number): Ajust code to use parser state.
9235 (java_parse): New function.
9236 (push_variable): Add "struct parser_state" argument. Adjust
9237 code to user parser state.
9238 (push_fieldnames, push_qualified_expression_name,
9239 push_expression_name, insert_exp): Likewise.
9240 * jv-lang.h: Forward declare "struct parser_state".
9241 (java_parse): Add "struct parser_state" argument.
9242 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9244 (yyparse): Redefine macro to m2_parse_internal.
9245 (pstate): New variable.
9246 (type_exp, exp, fblock, variable, type): Update calls to
9247 write_exp* and similars to use parser state.
9249 (m2_parse): New function.
9250 * m2-lang.h: Forward declare "struct parser_state".
9251 (m2_parse): Add "struct parser_state" argument.
9252 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9253 * objc-lang.h: Forward declare "struct parser_state".
9254 (end_msglist): Add "struct parser_state" argument.
9255 * p-exp.y (parse_type): Rewrite macro to use parser state.
9256 (yyparse): Redefine macro to pascal_parse_internal.
9257 (pstate): New variable.
9258 (parse_number): Add "struct parser_state" argument.
9259 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9260 write_exp* and similars in order to use parser state.
9261 (parse_number, yylex): Adjust code to use parser state.
9262 (pascal_parse): New function.
9263 * p-lang.h: Forward declare "struct parser_state".
9264 (pascal_parse): Add "struct parser_state" argument.
9265 * go-exp.y (parse_type): Rewrite macro to use parser state.
9266 (yyparse): Redefine macro to go_parse_internal.
9267 (pstate): New variable.
9268 (parse_number): Add "struct parser_state" argument.
9269 (type_exp, exp1, exp, variable, type): Update calls to
9270 write_exp* and similars in order to use parser state.
9271 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9272 to use parser state.
9273 (go_parse): Likewise.
9274 * go-lang.h: Forward declare "struct parser_state".
9275 (go_parse): Add "struct parser_state" argument.
9277 2014-03-27 Doug Evans <dje@google.com>
9279 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9281 2014-03-27 Doug Evans <dje@google.com>
9283 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9284 Remove argument abbrev_section. All callers updated.
9286 2014-03-27 Doug Evans <dje@google.com>
9288 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9289 addr_base, ranges_base.
9291 2014-03-26 Keith Seitz <keiths@redhat.com>
9293 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9294 types, not VAR_DOMAIN.
9296 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9298 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9300 * features/nios2-linux.c: Regenerated.
9301 * features/nios2.c: Regenerated.
9303 2014-03-25 Pedro Alves <palves@redhat.com>
9305 * cli/cli-script.c (script_from_file): Force the interpreter to
9308 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9310 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9311 small stack allocation.
9313 2014-03-24 Tristan Gingold <gingold@adacore.com>
9315 * darwin-nat.c (exc_server): Remove unused prototype.
9316 (darwin_dump_message): Correctly display data on x86_64.
9317 (darwin_encode_reply): Fix style.
9318 Add comments and fix indentation.
9320 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9322 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9324 2014-03-22 Doug Evans <xdje42@gmail.com>
9326 * infcmd.c: Whitespace fixes.
9327 (interrupt_command): Merge two function comments into one.
9329 2014-03-22 Doug Evans <xdje42@gmail.com>
9331 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9334 2014-03-22 Yao Qi <yao@codesourcery.com>
9336 * remote.c (target_read_live_memory): Remove.
9337 (memory_xfer_live_readonly_partial): Rename it to
9338 remote_xfer_live_readonly_partial. Remove argument 'object'.
9339 All callers updated. Call remote_read_bytes_1
9340 instead of target_read_live_memory.
9341 * tracepoint.c (set_traceframe_number): Remove.
9342 (make_cleanup_restore_traceframe_number): Likewise .
9343 * tracepoint.h (set_traceframe_number): Remove declaration.
9344 (make_cleanup_restore_traceframe_number): Likewise.
9346 2014-03-22 Yao Qi <yao@codesourcery.com>
9348 * remote.c (remote_read_bytes): Move code on reading from the
9350 (remote_read_bytes_1): ... here. New function.
9352 2014-03-22 Yao Qi <yao@codesourcery.com>
9354 * ctf.c (ctf_xfer_partial): Check the return value of
9355 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9356 return TARGET_XFER_UNAVAILABLE.
9357 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9358 * target.c (target_read_live_memory): Move it to remote.c.
9359 (memory_xfer_live_readonly_partial): Likewise.
9360 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9361 * remote.c (target_read_live_memory): Moved from target.c.
9362 (memory_xfer_live_readonly_partial): Likewise.
9363 (remote_read_bytes): Factored out from
9364 memory_xfer_partial_1.
9366 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9368 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9371 2014-03-21 Pedro Alves <palves@redhat.com>
9373 * infrun.c (normal_stop): Extend comment.
9375 2014-03-21 Hui Zhu <hui@codesourcery.com>
9376 Pedro Alves <palves@redhat.com>
9378 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9380 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9381 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9382 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9384 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9386 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9387 `z' formatted output modifier.
9389 2014-03-20 Tom Tromey <tromey@redhat.com>
9390 Sergio Durigan Junior <sergiodj@redhat.com>
9392 * probe.c (parse_probes): Turn assert into an ordinary error.
9393 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9394 exceptions when parsing probes. Rearrange the code for clarity.
9396 2014-03-20 Tom Tromey <tromey@redhat.com>
9399 * top.c (execute_command): Only dispatch events if the command
9402 2014-03-20 Tom Tromey <tromey@redhat.com>
9405 * infcall.c: Include event-top.h.
9406 (run_inferior_call): Call async_disable_stdin if needed.
9408 2014-03-20 Pedro Alves <palves@redhat.com>
9410 * infrun.c (prepare_to_proceed): Delete.
9411 (thread_still_needs_step_over): New function.
9412 (find_thread_needs_step_over): New function.
9413 (proceed): If the current thread needs a step-over, set its
9414 steping_over_breakpoint flag. Adjust to use
9415 find_thread_needs_step_over instead of prepare_to_proceed.
9416 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9417 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9419 (switch_back_to_stepped_thread): Step over breakpoints of all
9420 threads not the stepping thread, before switching back to the
9423 2014-03-20 Pedro Alves <palves@redhat.com>
9425 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9427 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9428 * infrun.c (saved_singlestep_ptid)
9429 (stepping_past_singlestep_breakpoint): Delete.
9430 (resume): Remove stepping_past_singlestep_breakpoint handling.
9431 (proceed): Store the prev_pc of the stepping thread too.
9432 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9434 (enum infwait_states): Delete infwait_thread_hop_state.
9435 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9437 (handle_inferior_event): Adjust.
9438 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9439 handling and the thread-hop code. Before removing single-step
9440 breakpoints, check whether the thread hit a single-step breakpoint
9441 of another thread. If it did, the trap is not a random signal.
9442 (switch_back_to_stepped_thread): If the event thread hit a
9443 single-step breakpoint, unblock it before switching to the
9444 stepping thread. Handle the case of the stepped thread having
9446 (keep_going): Handle the case of the current thread moving past a
9447 single-step breakpoint.
9449 2014-03-20 Pedro Alves <palves@redhat.com>
9452 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9453 are being stepped over.
9454 (breakpoint_address_match): Make extern.
9455 * breakpoint.h (breakpoint_address_match): New declaration.
9456 * inferior.h (stepping_past_instruction_at): New declaration.
9457 * infrun.c (struct step_over_info): New type.
9458 (step_over_info): New global.
9459 (set_step_over_info, clear_step_over_info)
9460 (stepping_past_instruction_at): New functions.
9461 (handle_inferior_event): Clear the step-over info when
9462 trap_expected is cleared.
9463 (resume): Remove now stale comment.
9464 (clear_proceed_status): Clear step-over info.
9465 (proceed): Adjust step-over handling to set or clear the step-over
9466 info instead of removing all breakpoints.
9467 (handle_signal_stop): When setting up a thread-hop, don't remove
9469 (stop_stepping): Clear step-over info.
9470 (keep_going): Adjust step-over handling to set or clear step-over
9471 info and then always inserting breakpoints, instead of removing
9472 all breakpoints when stepping over one.
9474 2014-03-20 Pedro Alves <palves@redhat.com>
9476 * infrun.c (previous_inferior_ptid): Adjust comment.
9477 (deferred_step_ptid): Delete.
9478 (infrun_thread_ptid_changed, prepare_to_proceed)
9479 (init_wait_for_inferior): Adjust.
9480 (handle_signal_stop): Delete deferred_step_ptid handling.
9482 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9485 * defs.h (sync_quit_force_run): New declaration.
9486 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9487 * event-top.c (async_sigterm_handler): New declaration.
9488 (async_sigterm_token): New variable.
9489 (async_init_signals): Create also async_sigterm_token.
9490 (async_sigterm_handler): New function.
9491 (sync_quit_force_run): New variable.
9492 (handle_sigterm): Replace quit_force call by other calls.
9493 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9495 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9497 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9498 offset into SPE pseudo registers.
9500 2014-03-18 Pedro Alves <palves@redhat.com>
9503 * inferior.h (print_stop_event): Declare.
9504 * infrun.c (print_stop_event): New, factored out from ...
9505 (normal_stop): ... this.
9506 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9507 of bpstat_print/print_stack_frame.
9509 2014-03-17 Tom Tromey <tromey@redhat.com>
9511 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9513 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9515 * ada-lang.c (decode_constrained_packed_array): Perform a
9516 minimal coercion for reference with coerce_ref instead of
9519 2014-03-17 Tristan Gingold <gingold@adacore.com>
9521 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9522 (darwin_solib_create_inferior_hook): Emit a warning if version
9525 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9527 * python/py-value.c (get_field_flag): Cast flag_name argument to
9528 PyObject_GetAttrString to support Python 2.4.
9530 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9532 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9533 (Global Maintainers): Remove Jan Kratochvil.
9535 2014-03-14 Pedro Alves <palves@redhat.com>
9537 * inferior.h (terminal_ours_for_output): Rename to ...
9538 (child_terminal_ours_for_output): ... this.
9539 (terminal_save_ours): Rename to ...
9540 (child_terminal_save_ours): ... this.
9541 (terminal_ours): Rename to ...
9542 (child_terminal_ours): ... this.
9543 (terminal_inferior): Rename to ...
9544 (child_terminal_inferior): ... this.
9545 (terminal_init_inferior): Rename to ...
9546 (child_terminal_init_inferior): ... this.
9547 (terminal_init_inferior_with_pgrp): Rename to ...
9548 (child_terminal_init_inferior_with_pgrp): ... this.
9549 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9550 (child_terminal_init_with_pgrp): ... this.
9551 (terminal_save_ours): Rename to ...
9552 (child_terminal_save_ours): ... this.
9553 (terminal_init_inferior): Rename to ...
9554 (child_terminal_init): ... this. Adjust.
9555 (terminal_inferior): Rename to ...
9556 (child_terminal_inferior): ... this.
9557 (terminal_ours_for_output): Rename to ...
9558 (child_terminal_ours_for_output): ... this. Adjust.
9559 (terminal_ours): Rename to ...
9560 (child_terminal_ours): ... this.
9561 (terminal_ours_1): Rename to ...
9562 (child_terminal_ours_1): ... this. Adjust.
9563 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9564 * windows-nat.c (do_initial_windows_stuff): Adjust.
9565 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9566 (gnu_terminal_init): ... this. Adjust.
9567 (gnu_target): Adjust.
9568 * inf-child.c (inf_child_target): Adjust.
9570 2014-03-13 Doug Evans <xdje42@gmail.com>
9573 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9576 2014-03-13 Doug Evans <xdje42@gmail.com>
9578 * value.c (record_latest_value): Call release_value_or_incref
9579 instead of release_value.
9581 2014-03-13 Pedro Alves <palves@redhat.com>
9583 * procfs.c (procfs_target): Don't override to_shortname,
9584 to_longname or to_doc.
9586 2014-03-13 Pedro Alves <palves@redhat.com>
9588 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9589 Unix in user visible strings.
9591 2014-03-12 Stan Shebs <stan@codesourcery.com>
9593 * gdbtypes.h: Annotate comments for Doxygen, add a page
9594 block comment with some general info.
9596 2014-03-12 Pedro Alves <palves@redhat.com>
9598 * infcmd.c (prepare_execution_command): New function, factored out
9599 from several execution commands.
9600 (run_command_1, continue_command, step_1, jump_command)
9601 (signal_command, until_command, advance_command, finish_command)
9602 (attach_command): Use prepare_execution_command.
9604 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9606 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9609 (struct arm_linux_thread_points): Removed.
9610 (struct arm_linux_process_info): New.
9611 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9612 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9613 (arm_linux_find_breakpoints_by_tid): Removed.
9614 (struct arch_lwp_info): New.
9615 (arm_linux_find_process_pid): New functions.
9616 (arm_linux_add_process): New functions.
9617 (arm_linux_process_info_get): New functions.
9618 (arm_linux_forget_process): New function.
9619 (arm_linux_get_debug_reg_state): New function.
9620 (struct update_registers_data): New.
9621 (update_registers_callback): New function.
9622 (arm_linux_insert_hw_breakpoint1): Updated.
9623 (arm_linux_remove_hw_breakpoint1): Updated.
9624 (arm_linux_insert_hw_breakpoint): Updated.
9625 (arm_linux_remove_hw_breakpoint): Updated.
9626 (arm_linux_insert_watchpoint): Updated.
9627 (arm_linux_remove_watchpoint): Updated.
9628 (arm_linux_new_thread): Updated.
9629 (arm_linux_prepare_to_resume): New function.
9630 (arm_linux_new_fork): New function.
9631 (_initialize_arm_linux_nat): Updated.
9633 2014-03-12 Pedro Alves <palves@redhat.com>
9635 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9637 2014-03-12 Tom Tromey <tromey@redhat.com>
9639 * inf-child.c (return_zero): New function.
9640 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9641 * aix-thread.c (aix_thread_inferior_created): New function.
9642 (aix_thread_attach): Remove.
9643 (init_aix_thread_ops): Don't set to_attach.
9644 (_initialize_aix_thread): Register inferior_created observer.
9645 * corelow.c (init_core_ops): Don't set to_attach or
9647 * exec.c (init_exec_ops): Don't set to_attach or
9649 * infcmd.c (run_command_1): Use find_run_target. Make direct
9651 (attach_command): Use find_attach_target. Make direct target
9653 * record-btrace.c (init_record_btrace_ops): Don't set
9655 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9657 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9658 set to_create_inferior.
9659 * target.c (complete_target_initialization): Add assertion.
9660 (target_create_inferior): Remove.
9661 (find_default_attach, find_default_create_inferior): Remove.
9662 (find_attach_target, find_run_target): New functions.
9663 (find_default_is_async_p, find_default_can_async_p)
9664 (target_supports_non_stop, target_attach): Remove.
9665 (init_dummy_target): Don't set to_create_inferior or
9666 to_supports_non_stop.
9667 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9668 TARGET_DEFAULT_FUNC.
9669 <to_create_inferior>: Add comment.
9670 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9671 TARGET_DEFAULT_RETURN.
9672 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9673 (find_attach_target, find_run_target): Declare.
9674 (target_create_inferior): Remove.
9675 (target_has_execution_1): Update comment.
9676 (target_supports_non_stop): Remove.
9677 * target-delegates.c: Rebuild.
9679 2014-03-12 Pedro Alves <palves@redhat.com>
9681 * inf-child.h: Update comment to not mention Unix.
9683 2014-03-12 Pedro Alves <palves@redhat.com>
9685 * inf-child.c: Update top comment to not mention Unix. Add
9686 generic comment describing how this target is meant to be used.
9687 (inf_child_post_attach, inf_child_post_startup_inferior)
9688 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9691 2014-03-12 Pedro Alves <palves@redhat.com>
9693 * nto-procfs.c: Include inf-child.h.
9694 (procfs_ops): Delete global.
9695 (procfs_can_run): Delete method.
9696 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9697 target pointer instead of referencing procfs_ops.
9698 (procfs_prepare_to_store): Delete.
9699 (init_procfs_ops): Delete function.
9700 (procfs_target): New function, based on init_procfs_ops, but
9701 inherit inf_child_target.
9702 (_initialize_procfs): Use procfs_target.
9704 2014-03-12 Pedro Alves <palves@redhat.com>
9706 * windows-nat.c: Include inf-child.h.
9707 (windows_ops): Delete global.
9708 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9710 (init_windows_ops): Delete function.
9711 (windows_target): New function, based on init_windows_ops, but
9712 inherit inf_child_target.
9713 (_initialize_windows_nat): Use windows_target. Install x86
9714 specific target methods here.
9716 2014-03-10 Doug Evans <xdje42@gmail.com>
9718 * guile/guile.c (call_initialize_gdb_module): New function.
9719 (initialize_guile): Replace call to scm_init_guile with call to
9722 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9724 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9725 in call to TYPE_CODE macro.
9727 2014-03-10 Jerome Guitton <guitton@adacore.com>
9729 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9730 Resolve tagged types to full view.
9732 2014-03-10 Hui Zhu <hui@codesourcery.com>
9734 * target.h (target_insert_breakpoint): Remove "hardware" from its
9737 2014-03-07 Doug Evans <dje@google.com>
9739 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9741 2014-03-07 Doug Evans <dje@google.com>
9743 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9744 Remove unused local comp_dir_attr. Assert exactly one of
9745 stub_comp_unit_die, stub_comp_dir is non-NULL.
9747 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9749 * target.h (complete_target_initialization, add_target):
9752 2014-03-07 Pedro Alves <palves@redhat.com>
9754 * go32-nat.c: Include inf-child.h.
9755 (go32_ops): Delete global.
9756 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9758 (go32_create_inferior): Push the passed in target pointer instead
9759 of referencing go32_ops.
9760 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9761 (go32_target): New function, based on init_go32_ops, but inherit
9763 (_initialize_go32_nat): Use go32_target. Move parts of
9766 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9768 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9769 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9770 SYMBOL_VALUE_ADDRESS.
9771 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9773 2014-03-06 Yao Qi <yao@codesourcery.com>
9775 * breakpoint.c (get_tracepoint_by_number): Remove argument
9776 optional_p. All callers updated. Adjust comments. Update
9778 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9780 2014-03-06 Yao Qi <yao@codesourcery.com>
9782 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9783 early if get_number returns zero. Use 'p' instead of 'args'.
9785 2014-03-06 Yao Qi <yao@codesourcery.com>
9787 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9790 2014-03-06 Yao Qi <yao@codesourcery.com>
9792 PR breakpoints/16508
9793 * tracepoint.c (check_trace_running): New function.
9794 (trace_find_command): Move code to check_trace_running and
9795 call check_trace_running.
9796 (trace_find_pc_command): Likewise.
9797 (trace_find_tracepoint_command): Likewise.
9798 (trace_find_line_command): Likewise.
9799 (trace_find_range_command): Likewise.
9800 * tracepoint.h (check_trace_running): Likewise.
9801 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9803 2014-03-06 Yao Qi <yao@codesourcery.com>
9805 * target.h (struct target_ops) <to_traceframe_info>: Use
9806 TARGET_DEFAULT_NORETURN (tcomplain ()).
9807 * target-delegates.c: Regenerated.
9809 2014-03-05 Pedro Alves <palves@redhat.com>
9812 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9813 void. Update comment.
9814 (dcache_xfer_memory): Delete.
9815 (dcache_read_memory_partial): New, based on the read bits of
9817 (dcache_update): Add status parameter. Use ULONGEST for len, and
9818 adjust. Discard cache lines if the reason for the update was
9820 * dcache.h (dcache_xfer_memory): Delete declaration.
9821 (dcache_read_memory_partial): New declaration.
9822 (dcache_update): Update prototype.
9823 * target.c (raw_memory_xfer_partial): Update the dcache here.
9824 (memory_xfer_partial_1): Don't handle dcache writes here.
9826 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9828 * remote-sim.c (gdbsim_load): Add const to prog.
9830 2014-03-03 Tom Tromey <tromey@redhat.com>
9832 * elfread.c (probe_key): Change to bfd_data.
9833 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9834 now per-BFD, not per-objfile.
9835 * stap-probe.c (stap_probe_destroy): Update comment.
9836 (handle_stap_probe): Allocate on the per-BFD obstack.
9838 2014-03-03 Tom Tromey <tromey@redhat.com>
9840 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9841 * breakpoint.c (create_longjmp_master_breakpoint): Use
9843 (add_location_to_breakpoint, bkpt_probe_insert_location)
9844 (bkpt_probe_remove_location): Update.
9845 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9846 * elfread.c (elf_symfile_relocate_probe): Remove.
9847 (elf_probe_fns): Update.
9848 (insert_exception_resume_breakpoint): Change type of "probe"
9849 parameter to bound_probe.
9850 (check_exception_resume): Update.
9851 * objfiles.c (objfile_relocate1): Don't relocate probes.
9852 * probe.c (bound_probe_s): New typedef.
9853 (parse_probes): Use get_probe_address. Set sal's objfile.
9854 (find_probe_by_pc): Return a bound_probe.
9855 (collect_probes): Return a VEC(bound_probe_s).
9856 (compare_probes): Update.
9857 (gen_ui_out_table_header_info): Change type of "probes"
9859 (info_probes_for_ops): Update.
9860 (get_probe_address): New function.
9861 (probe_safe_evaluate_at_pc): Update.
9862 * probe.h (struct probe_ops) <get_probe_address>: New field.
9863 <set_semaphore, clear_semaphore>: Add objfile parameter.
9864 (struct probe) <objfile>: Remove field.
9866 <address>: Update comment.
9867 (struct bound_probe): New.
9868 (find_probe_by_pc): Return a bound_probe.
9869 (get_probe_address): Declare.
9870 * solib-svr4.c (struct probe_and_action) <address>: New field.
9871 (hash_probe_and_action, equal_probe_and_action): Update.
9872 (register_solib_event_probe): Add address parameter.
9873 (solib_event_probe_at): Update.
9874 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9876 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9877 (stap_get_probe_address): New function.
9878 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9879 (compile_probe_arg): Update.
9880 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9882 (handle_stap_probe): Don't relocate the probe.
9883 (stap_relocate): Remove.
9884 (stap_gen_info_probes_table_values): Update.
9885 (stap_probe_ops): Remove stap_relocate.
9886 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9887 (debug_sym_probe_fns): Update.
9888 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9889 * symtab.c (init_sal): Use memset.
9890 * symtab.h (struct symtab_and_line) <objfile>: New field.
9891 * tracepoint.c (start_tracing, stop_tracing): Update.
9893 2014-03-03 Tom Tromey <tromey@redhat.com>
9895 * probe.h (parse_probes, find_probe_by_pc)
9896 (find_probes_in_objfile): Fix comments.
9898 2014-03-02 Doug Evans <xdje42@gmail.com>
9900 * infrun.c (handle_signal_stop): Replace test for
9901 TARGET_WAITKIND_STOPPED with an assert.
9903 2014-03-02 Doug Evans <xdje42@gmail.com>
9905 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9907 2014-03-02 Doug Evans <xdje42@gmail.com>
9909 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9911 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9913 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9915 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9917 * i386obsd-nat.c: Include "obsd-nat.h".
9918 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9920 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9922 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9924 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9926 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9928 * mips64obsd-nat.c: Include "obsd-nath".
9929 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9931 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9933 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9935 * amd64obsd-nat.c: Include "obsd-nat,h.
9936 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9938 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9940 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9942 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9943 (find_overload_match): Update call to find_oload_champ.
9944 (find_oload_champ_namespace_loop): Likewise
9946 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9948 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9950 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9951 * config/sparc/obsd64.mh: New file.
9952 * sparc64obsd-nat.c: New file.
9954 * obsd-nat.h: New file.
9955 * obsd-nat.c: New file.
9956 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9957 (ALLDEPFILES): Add obsd-nat.c.
9959 2014-02-28 Tom Tromey <tromey@redhat.com>
9961 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9962 * cli-out.h (cli_ui_out_impl): Now const.
9963 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9964 * ui-out.c (struct ui_out) <impl>: Now const.
9965 (default_ui_out_impl): Now const.
9966 (ui_out_new): Make 'impl' parameter const.
9967 * ui-out.h (ui_out_new): Update.
9969 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9971 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9973 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9975 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9977 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9979 Additional PR 8882 fix.
9980 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9982 2014-02-27 Pedro Alves <palves@redhat.com>
9984 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9987 2014-02-27 Pedro Alves <palves@redhat.com>
9990 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9991 * nat/linux-waitpid.c: Include string.h.
9992 (status_to_str): Moved here and made extern.
9993 * nat/linux-waitpid.h (status_to_str): New declaration.
9995 2014-02-27 Hui Zhu <hui@codesourcery.com>
9998 * infrun.c (ptid_match): Move ...
9999 * common/ptid.c (ptid_match): ... here.
10000 * inferior.h (ptid_match): Move ...
10001 * common/ptid.h (ptid_match): ... here.
10003 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10005 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10006 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10009 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10011 * obsd-tdep.c (obsd_auxv_parse): New function.
10012 (obsd_init_abi): Set auxv_parse.
10014 * gdbarch.sh (auxv_parse): New.
10015 * gdbarch.h: Regenerated.
10016 * gdbarch.c: Regenerated.
10017 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10019 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10021 * guile/scm-value.c (gdbscm_history_append_x): New function.
10022 (value_functions): Add it.
10024 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10026 * dwarf2read.c (attr_value_as_address): New function.
10027 (dwarf2_find_base_address, read_call_site_scope): Use
10028 attr_value_as_address in place of DW_ADDR.
10029 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10030 the low and high addresses. Slight rework of the handling
10031 of the high pc being a constant form, and limit it to
10032 DWARF verson 4 or higher.
10033 (dwarf2_record_block_ranges): Likewise.
10034 (read_partial_die): Likewise.
10035 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10037 2014-02-26 Tom Tromey <tromey@redhat.com>
10039 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10041 2014-02-26 Tom Tromey <tromey@redhat.com>
10043 * elfread.c (elf_read_minimal_symbols): Return early if
10044 minimal symbols have already been read. Add "ei" parameter.
10045 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10046 * minsyms.c (prim_record_minimal_symbol_full): Update.
10047 * objfiles.h (struct objstats) <n_minsyms>: Move...
10048 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10049 * symmisc.c (print_objfile_statistics): Update.
10051 2014-02-26 Tom Tromey <tromey@redhat.com>
10053 * elfread.c (elf_read_minimal_symbols): New function, from
10055 (elf_symfile_read): Call it.
10057 2014-02-26 Tom Tromey <tromey@redhat.com>
10059 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10060 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10061 (lookup_minimal_symbol_solib_trampoline)
10062 (lookup_minimal_symbol_by_pc_section_1)
10063 (lookup_minimal_symbol_and_objfile): Update.
10064 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10065 Don't allocate a minimal symbol if minsyms have already been read.
10066 (build_minimal_symbol_hash_tables): Update.
10067 (install_minimal_symbols): Do nothing if minsyms already read.
10068 Use the per-BFD obstack.
10069 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10070 * objfiles.c (allocate_objfile): Call
10071 terminate_minimal_symbol_table later.
10072 (have_minimal_symbols): Update.
10073 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10074 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10075 Move from struct objfile.
10076 <minsyms_read>: New field.
10077 (struct objfile) <msymbols, minimal_symbol_count,
10078 msymbol_hash, msymbol_demangled_hash>: Move.
10079 (ALL_OBJFILE_MSYMBOLS): Update.
10080 * symfile.c (read_symbols): Set minsyms_read.
10081 (reread_symbols): Update.
10082 * symmisc.c (dump_objfile, dump_msymbols): Update.
10084 2014-02-26 Tom Tromey <tromey@redhat.com>
10086 * minsyms.c (msymbols_sort): Remove.
10087 * minsyms.h (msymbols_sort): Remove.
10088 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10089 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10090 * elfread.c (elf_symtab_read): Don't add section offsets.
10091 * xcoffread.c (record_minimal_symbol): Don't add section offset
10092 to minimal symbol address.
10093 * somread.c (text_offset, data_offset): Remove.
10094 (som_symtab_read): Don't add section offsets to minimal symbol
10096 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10097 Don't add section offsets to minimal symbols.
10098 * coffread.c (coff_symtab_read): Don't add section offsets
10099 to minimal symbol addresses.
10100 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10101 to minimal symbol addresses.
10102 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10103 section offset to minimal symbol addresses.
10104 * mdebugread.c (parse_partial_symbols): Don't add section
10105 offset to minimal symbol addresses.
10106 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10107 offset to minimal symbol addresses.
10109 2014-02-26 Tom Tromey <tromey@redhat.com>
10111 * ada-lang.c (ada_main_name): Update.
10112 (ada_add_standard_exceptions): Update.
10113 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10114 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10115 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10116 * auxv.c (ld_so_xfer_auxv): Update.
10117 * avr-tdep.c (avr_scan_prologue): Update.
10118 * ax-gdb.c (gen_var_ref): Update.
10119 * blockframe.c (get_pc_function_start)
10120 (find_pc_partial_function_gnu_ifunc): Update.
10121 * breakpoint.c (create_overlay_event_breakpoint)
10122 (create_longjmp_master_breakpoint)
10123 (create_std_terminate_master_breakpoint)
10124 (create_exception_master_breakpoint): Update.
10125 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10126 * c-valprint.c (c_val_print): Update.
10127 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10128 * common/agent.c (agent_look_up_symbols): Update.
10129 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10130 * dwarf2loc.c (call_site_to_target_addr): Update.
10131 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10132 * elfread.c (elf_gnu_ifunc_record_cache)
10133 (elf_gnu_ifunc_resolve_by_got): Update.
10134 * findvar.c (default_read_var_value): Update.
10135 * frame.c (inside_main_func): Update.
10136 * frv-tdep.c (frv_frame_this_id): Update.
10137 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10138 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10140 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10141 (hppa_hpux_find_dummy_bpaddr): Update.
10142 * hppa-tdep.c (hppa_symbol_address): Update.
10143 * infcmd.c (until_next_command): Update.
10144 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10146 * linespec.c (minsym_found, add_minsym): Update.
10147 * linux-nat.c (get_signo): Update.
10148 * linux-thread-db.c (inferior_has_bug): Update.
10149 * m32c-tdep.c (m32c_return_value)
10150 (m32c_m16c_address_to_pointer): Update.
10151 * m32r-tdep.c (m32r_frame_this_id): Update.
10152 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10153 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10154 * maint.c (maintenance_translate_address): Update.
10155 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10156 (frob_address): New function.
10157 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10158 frob_address. Rename parameter to "pc_in".
10159 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10161 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10163 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10164 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10165 * objc-lang.c (find_objc_msgsend): Update.
10166 * objfiles.c (objfile_relocate1): Update.
10167 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10168 * p-valprint.c (pascal_val_print): Update.
10169 * parse.c (write_exp_msymbol): Update.
10170 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10171 (ppc_elfv2_skip_entrypoint): Update.
10172 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10173 * printcmd.c (build_address_symbolic, msym_info)
10174 (address_info): Update.
10175 * proc-service.c (ps_pglobal_lookup): Update.
10176 * psymtab.c (find_pc_sect_psymtab_closer)
10177 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10178 Change msymbol parameter to bound_minimal_symbol.
10179 * ravenscar-thread.c (get_running_thread_id): Update.
10180 * remote.c (remote_check_symbols): Update.
10181 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10183 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10184 * solib-dsbt.c (lm_base): Update.
10185 * solib-frv.c (lm_base, main_got): Update.
10186 * solib-irix.c (locate_base): Update.
10187 * solib-som.c (som_solib_create_inferior_hook)
10188 (link_map_start): Update.
10189 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10190 * solib-svr4.c (elf_locate_base, enable_break): Update.
10191 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10192 (flush_ea_cache): Update.
10193 * stabsread.c (define_symbol, scan_file_globals): Update.
10194 * stack.c (find_frame_funname): Update.
10195 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10196 (debug_qf_find_pc_sect_symtab): Update.
10197 * symfile.c (simple_read_overlay_table)
10198 (simple_overlay_update): Update.
10199 * symfile.h (struct quick_symbol_functions)
10200 <find_pc_sect_symtab>: Change type of msymbol to
10201 bound_minimal_symbol.
10202 * symmisc.c (dump_msymbols): Update.
10203 * symtab.c (find_pc_sect_symtab_via_partial)
10204 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10205 (search_symbols, print_msymbol_info): Update.
10206 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10207 (MSYMBOL_VALUE_ADDRESS): Redefine.
10208 (BMSYMBOL_VALUE_ADDRESS): New macro.
10209 * tracepoint.c (scope_info): Update.
10210 * tui/tui-disasm.c (tui_find_disassembly_address)
10211 (tui_get_begin_asm_address): Update.
10212 * valops.c (find_function_in_inferior): Update.
10213 * value.c (value_static_field, value_fn_field): Update.
10215 2014-02-26 Tom Tromey <tromey@redhat.com>
10217 * ada-lang.c (ada_update_initial_language): Update.
10218 (ada_main_name, ada_has_this_exception_support): Update.
10219 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10220 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10221 * arm-tdep.c (arm_skip_stub): Update.
10222 * auxv.c (ld_so_xfer_auxv): Update.
10223 * avr-tdep.c (avr_scan_prologue): Update.
10224 * ax-gdb.c (gen_var_ref): Update.
10225 * breakpoint.c (struct breakpoint_objfile_data)
10226 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10227 type to bound_minimal_symbol.
10228 (create_overlay_event_breakpoint)
10229 (create_longjmp_master_breakpoint)
10230 (create_std_terminate_master_breakpoint)
10231 (create_exception_master_breakpoint): Update.
10232 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10233 * c-exp.y (classify_name): Update.
10234 * coffread.c (coff_symfile_read): Update.
10235 * common/agent.c (agent_look_up_symbols): Update.
10236 * d-lang.c (d_main_name): Update.
10237 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10238 * dec-thread.c (enable_dec_thread): Update.
10239 * dwarf2loc.c (call_site_to_target_addr): Update.
10240 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10241 * eval.c (evaluate_subexp_standard): Update.
10242 * findvar.c (struct minsym_lookup_data) <result>: Change type
10243 to bound_minimal_symbol.
10245 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10246 * frame.c (inside_main_func): Update.
10247 * frv-tdep.c (frv_frame_this_id): Update.
10248 * gcore.c (call_target_sbrk): Update.
10249 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10250 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10252 * go-lang.c (go_main_name): Update.
10253 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10254 (hppa_hpux_find_import_stub_for_addr): Update.
10255 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10256 Update. Change return type.
10257 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10259 * jit.c (jit_breakpoint_re_set_internal): Update.
10260 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10262 * linux-nat.c (get_signo): Update.
10263 * linux-thread-db.c (inferior_has_bug): Update
10264 * m32c-tdep.c (m32c_return_value)
10265 (m32c_m16c_address_to_pointer): Update.
10266 * m32r-tdep.c (m32r_frame_this_id): Update.
10267 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10268 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10269 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10270 lookup_minimal_symbol. Change return type.
10271 (lookup_minimal_symbol): Remove.
10272 (lookup_bound_minimal_symbol): Update.
10273 (lookup_minimal_symbol_text): Change return type.
10274 (lookup_minimal_symbol_solib_trampoline): Change return type.
10275 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10276 (lookup_minimal_symbol_solib_trampoline): Change return type.
10277 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10278 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10279 (value_nsstring, find_imps): Update.
10280 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10281 * p-lang.c (pascal_main_name): Update.
10282 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10283 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10284 * proc-service.c (ps_pglobal_lookup): Update.
10285 * ravenscar-thread.c (get_running_thread_msymbol): Change
10287 (has_ravenscar_runtime, get_running_thread_id): Update.
10288 * remote.c (remote_check_symbols): Update.
10289 * sol-thread.c (ps_pglobal_lookup): Update.
10290 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10291 * solib-dsbt.c (lm_base): Update.
10292 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10294 * solib-irix.c (locate_base): Update.
10295 * solib-som.c (som_solib_create_inferior_hook)
10296 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10298 * solib-spu.c (spu_enable_break): Update.
10299 * solib-svr4.c (elf_locate_base, enable_break): Update.
10300 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10301 (flush_ea_cache): Update.
10302 * stabsread.c (define_symbol): Update.
10303 * symfile.c (simple_read_overlay_table): Update.
10304 * symtab.c (find_pc_sect_line): Update.
10305 * tracepoint.c (scope_info): Update.
10306 * tui-disasm.c (tui_get_begin_asm_address): Update.
10307 * value.c (value_static_field): Update.
10309 2014-02-26 Tom Tromey <tromey@redhat.com>
10311 * minsyms.c (prim_record_minimal_symbol_full): Use
10312 SET_MSYMBOL_VALUE_ADDRESS.
10313 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10314 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10315 SET_MSYMBOL_VALUE_ADDRESS.
10316 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10317 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10319 2014-02-26 Tom Tromey <tromey@redhat.com>
10321 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10322 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10323 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10324 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10325 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10326 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10327 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10328 * ada-lang.c (ada_main_name): Update.
10329 (ada_lookup_simple_minsym): Update.
10330 (ada_make_symbol_completion_list): Update.
10331 (ada_add_standard_exceptions): Update.
10332 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10333 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10334 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10335 * arm-tdep.c (skip_prologue_function): Update.
10336 (arm_skip_stack_protector, arm_skip_stub): Update.
10337 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10338 (arm_wince_skip_main_prologue): Update.
10339 * auxv.c (ld_so_xfer_auxv): Update.
10340 * avr-tdep.c (avr_scan_prologue): Update.
10341 * ax-gdb.c (gen_var_ref): Update.
10342 * block.c (call_site_for_pc): Update.
10343 * blockframe.c (get_pc_function_start): Update.
10344 (find_pc_partial_function_gnu_ifunc): Update.
10345 * breakpoint.c (create_overlay_event_breakpoint): Update.
10346 (create_longjmp_master_breakpoint): Update.
10347 (create_std_terminate_master_breakpoint): Update.
10348 (create_exception_master_breakpoint): Update.
10349 (resolve_sal_pc): Update.
10350 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10351 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10353 * c-valprint.c (c_val_print): Update.
10354 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10355 * coffread.c (coff_symfile_read): Update.
10356 * common/agent.c (agent_look_up_symbols): Update.
10357 * dbxread.c (find_stab_function_addr): Update.
10358 (end_psymtab): Update.
10359 * dwarf2loc.c (call_site_to_target_addr): Update.
10360 (func_verify_no_selftailcall): Update.
10361 (tailcall_dump): Update.
10362 (call_site_find_chain_1): Update.
10363 (dwarf_expr_reg_to_entry_parameter): Update.
10364 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10365 (elf_gnu_ifunc_resolve_by_got): Update.
10366 * f-valprint.c (info_common_command): Update.
10367 * findvar.c (read_var_value): Update.
10368 * frame.c (get_prev_frame_1): Update.
10369 (inside_main_func): Update.
10370 * frv-tdep.c (frv_skip_main_prologue): Update.
10371 (frv_frame_this_id): Update.
10372 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10373 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10374 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10375 (gnuv3_skip_trampoline): Update.
10376 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10377 (hppa64_hpux_in_solib_call_trampoline): Update.
10378 (hppa_hpux_skip_trampoline_code): Update.
10379 (hppa64_hpux_search_dummy_call_sequence): Update.
10380 (hppa_hpux_find_import_stub_for_addr): Update.
10381 (hppa_hpux_find_dummy_bpaddr): Update.
10382 * hppa-tdep.c (hppa_symbol_address)
10383 (hppa_lookup_stub_minimal_symbol): Update.
10384 * i386-tdep.c (i386_skip_main_prologue): Update.
10385 (i386_pe_skip_trampoline_code): Update.
10386 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10387 * infcall.c (get_function_name): Update.
10388 * infcmd.c (until_next_command): Update.
10389 * jit.c (jit_breakpoint_re_set_internal): Update.
10390 (jit_inferior_init): Update.
10391 * linespec.c (minsym_found): Update.
10392 (add_minsym): Update.
10393 * linux-fork.c (info_checkpoints_command): Update.
10394 * linux-nat.c (get_signo): Update.
10395 * linux-thread-db.c (inferior_has_bug): Update.
10396 * m32c-tdep.c (m32c_return_value): Update.
10397 (m32c_m16c_address_to_pointer): Update.
10398 (m32c_m16c_pointer_to_address): Update.
10399 * m32r-tdep.c (m32r_frame_this_id): Update.
10400 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10401 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10402 * maint.c (maintenance_translate_address): Update.
10403 * minsyms.c (add_minsym_to_hash_table): Update.
10404 (add_minsym_to_demangled_hash_table): Update.
10405 (msymbol_objfile): Update.
10406 (lookup_minimal_symbol): Update.
10407 (iterate_over_minimal_symbols): Update.
10408 (lookup_minimal_symbol_text): Update.
10409 (lookup_minimal_symbol_by_pc_name): Update.
10410 (lookup_minimal_symbol_solib_trampoline): Update.
10411 (lookup_minimal_symbol_by_pc_section_1): Update.
10412 (lookup_minimal_symbol_and_objfile): Update.
10413 (prim_record_minimal_symbol_full): Update.
10414 (compare_minimal_symbols): Update.
10415 (compact_minimal_symbols): Update.
10416 (build_minimal_symbol_hash_tables): Update.
10417 (install_minimal_symbols): Update.
10418 (terminate_minimal_symbol_table): Update.
10419 (find_solib_trampoline_target): Update.
10420 (minimal_symbol_upper_bound): Update.
10421 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10422 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10423 (mips_skip_pic_trampoline_code): Update.
10424 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10425 * objc-lang.c (selectors_info): Update.
10426 (classes_info): Update.
10427 (find_methods): Update.
10428 (find_imps): Update.
10429 (find_objc_msgsend): Update.
10430 * objfiles.c (objfile_relocate1): Update.
10431 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10432 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10433 * p-valprint.c (pascal_val_print): Update.
10434 * parse.c (write_exp_msymbol): Update.
10435 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10436 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10437 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10438 * printcmd.c (build_address_symbolic): Update.
10439 (sym_info): Update.
10440 (address_info): Update.
10441 * proc-service.c (ps_pglobal_lookup): Update.
10442 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10443 (find_pc_sect_psymtab): Update.
10444 * python/py-framefilter.c (py_print_frame): Update.
10445 * ravenscar-thread.c (get_running_thread_id): Update.
10446 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10448 * remote.c (remote_check_symbols): Update.
10449 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10450 (rs6000_skip_trampoline_code): Update.
10451 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10452 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10453 * solib-dsbt.c (lm_base): Update.
10454 * solib-frv.c (lm_base): Update.
10455 (main_got): Update.
10456 * solib-irix.c (locate_base): Update.
10457 * solib-som.c (som_solib_create_inferior_hook): Update.
10458 (som_solib_desire_dynamic_linker_symbols): Update.
10459 (link_map_start): Update.
10460 * solib-spu.c (spu_enable_break): Update.
10461 (ocl_enable_break): Update.
10462 * solib-svr4.c (elf_locate_base): Update.
10463 (enable_break): Update.
10464 * spu-tdep.c (spu_get_overlay_table): Update.
10465 (spu_catch_start): Update.
10466 (flush_ea_cache): Update.
10467 * stabsread.c (define_symbol): Update.
10468 (scan_file_globals): Update.
10469 * stack.c (find_frame_funname): Update.
10470 (frame_info): Update.
10471 * symfile.c (simple_read_overlay_table): Update.
10472 (simple_overlay_update): Update.
10473 * symmisc.c (dump_msymbols): Update.
10474 * symtab.c (fixup_section): Update.
10475 (find_pc_sect_line): Update.
10476 (skip_prologue_sal): Update.
10477 (search_symbols): Update.
10478 (print_msymbol_info): Update.
10479 (rbreak_command): Update.
10480 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10481 (completion_list_objc_symbol): Update.
10482 (default_make_symbol_completion_list_break_on): Update.
10483 * tracepoint.c (scope_info): Update.
10484 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10485 (tui_get_begin_asm_address): Update.
10486 * valops.c (find_function_in_inferior): Update.
10487 * value.c (value_static_field): Update.
10488 (value_fn_field): Update.
10490 2014-02-26 Tom Tromey <tromey@redhat.com>
10492 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10493 bound minimal symbols. Move code that knows about minsym
10495 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10497 * minsyms.h (minimal_symbol_upper_bound): Declare.
10498 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10499 minimal_symbol_upper_bound.
10501 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10503 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10504 Use the type's name if its basic type does not have a tag.
10506 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10508 * dwarf2read.c (read_subrange_type): Add comment.
10510 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10512 * dwarf2read.c (update_enumeration_type_from_children): New
10513 function, mostly extracted from process_structure_scope.
10514 (read_enumeration_type): Call update_enumeration_type_from_children.
10515 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10516 and flag_flag_enum fields.
10518 2014-02-26 Pedro Alves <palves@redhat.com>
10520 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10521 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10522 to_xfer_partial method.
10524 2014-02-26 Pedro Alves <palves@redhat.com>
10526 * target.c (complete_target_initialization): Don't install
10527 default_xfer_partial as to_xfer_partial hook.
10528 (nomemory): Delete.
10529 (update_current_target): Don't INHERIT nor de_fault
10530 deprecated_xfer_memory. Delete de_fault macro.
10531 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10532 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10533 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10536 2014-02-26 Pedro Alves <palves@redhat.com>
10538 * go32-nat.c (my_write_child): New function.
10539 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10540 (go32_xfer_partial): New function.
10541 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10542 Instead install a to_xfer_partial hook.
10544 2014-02-26 Pedro Alves <palves@redhat.com>
10546 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10547 to_xfer_partial helper. Rewrite.
10548 (procfs_xfer_partial): New function.
10549 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10550 Install a to_xfer_partial hook.
10552 2014-02-26 Pedro Alves <palves@redhat.com>
10554 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10555 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10556 (m32r_xfer_partial): New function.
10557 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10558 Install a to_xfer_partial hook.
10560 2014-02-26 Pedro Alves <palves@redhat.com>
10562 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10564 (mips_xfer_partial): New function.
10565 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10566 hook. Install a to_xfer_partial hook.
10568 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10570 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10571 * gdbtypes.c (create_array_type_with_stride): New function,
10572 renaming create_array_type, but with an added parameter
10573 called "bit_stride".
10574 (create_array_type): Re-implement using
10575 create_array_type_with_stride.
10576 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10577 and DW_AT_bit_stride attributes.
10579 2014-02-26 Pedro Alves <palves@redhat.com>
10581 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10582 task-specific breakpoints.
10584 2014-02-25 Pedro Alves <palves@redhat.com>
10586 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10587 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10589 2014-02-25 Stan Shebs <stan@codesourcery.com>
10591 * defs.h: Annotate comments for Doxygen.
10593 2014-02-25 Tom Tromey <tromey@redhat.com>
10595 * target.h (target_ignore): Don't declare.
10596 * target.c (target_ignore): Remove.
10598 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10601 * auto-load.c (auto_load_objfile_script_1): Change filename to
10604 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10606 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10607 documentation. Adjust prototype to match the target_ops
10608 to_xfer_partial method. Adjust implementation accordingly.
10610 2014-02-25 Hui Zhu <hui@codesourcery.com>
10612 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10613 to_traceframe_info.
10615 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10617 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10618 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10619 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10620 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10621 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10622 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10623 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10624 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10626 (rl78_register_type): Use a data pointer type for SP and
10627 new pseudo registers mentioned above. Use a 16 bit integer
10628 type for all other register pairs.
10629 (rl78_register_name, rl78_g10_register_name): Update for
10630 new pseudo registers.
10631 (rl78_pseudo_register_read): Likewise.
10632 (rl78_pseudo_register_write): Likewise.
10633 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10634 to the newly added pseudo registers.
10636 2014-02-24 Doug Evans <dje@google.com>
10638 * value.c (record_latest_value): Fix comment.
10639 * printcmd.c (print_command_1): Remove code to handle -1 return from
10640 record_latest_value.
10642 2014-02-24 Pedro Alves <palves@redhat.com>
10644 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10645 deprecated_xfer_memory hook.
10646 (procfs_xfer_partial): Call procfs_xfer_memory instead
10647 of the deprecated_xfer_memory target hook.
10648 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10651 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10653 * windows-nat.c (windows_xfer_shared_libraries): Return
10654 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10655 requested object is TARGET_OBJECT_LIBRARIES.
10657 2014-02-24 Yao Qi <yao@codesourcery.com>
10659 * target.h (enum target_xfer_status)
10660 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10661 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10663 * corefile.c (memory_error_message): User updated.
10664 * exec.c (section_table_read_available_memory): Likewise.
10665 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10666 * target.c (target_xfer_status_to_string): Likewise.
10667 (raw_memory_xfer_partial): Likewise.
10668 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10669 * valops.c (read_value_memory): Likewise.
10670 * exec.h: Update comments.
10672 2014-02-24 Yao Qi <yao@codesourcery.com>
10674 * target.c (target_xfer_status_to_string): Rename argument err
10676 * target.h (target_xfer_status_to_string): Update declaration.
10677 Replace target_xfer_error_to_string with
10678 target_xfer_status_to_string in comment.
10680 2014-02-24 Yao Qi <yao@codesourcery.com>
10682 * mips-linux-nat.c (super_close): Update its type.
10683 (mips_linux_close): Pass 'self' to super_close.
10685 2014-02-24 Yao Qi <yao@codesourcery.com>
10687 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10688 * corefile.c (read_memory): Adjusted.
10689 * target.c (target_write_with_progress): Adjusted.
10691 2014-02-23 Yao Qi <yao@codesourcery.com>
10693 Revert two patches:
10695 2013-10-25 Yao Qi <yao@codesourcery.com>
10697 * remote.c (remote_traceframe_info): Return early if
10698 traceframe is not selected.
10700 2013-07-19 Yao Qi <yao@codesourcery.com>
10702 * target.c (update_current_target): Change the default action
10703 of 'to_traceframe_info' from tcomplain to return_zero.
10704 * target.h (struct target_ops) <to_traceframe_info>: Add more
10707 2014-02-23 Yao Qi <yao@codesourcery.com>
10709 * valops.c (read_value_memory): Rewrite it. Call
10710 target_xfer_partial in a loop.
10711 * exec.h (section_table_available_memory): Remove declaration.
10712 Move comments to ...
10713 * exec.c (section_table_available_memory): ... here. Make it
10716 2014-02-23 Yao Qi <yao@codesourcery.com>
10718 * exec.c (section_table_read_available_memory): New function.
10719 * exec.h (section_table_read_available_memory): Declare.
10720 * ctf.c (ctf_xfer_partial): Call
10721 section_table_read_available_memory.
10722 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10724 2014-02-23 Yao Qi <yao@codesourcery.com>
10726 * ctf.c (ctf_xfer_partial): Move code to ...
10727 * exec.c (exec_read_partial_read_only): ... it. New function.
10728 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10729 * tracefile.c: Include "exec.h".
10730 * exec.h (exec_read_partial_read_only): Declare.
10732 2014-02-23 Yao Qi <yao@codesourcery.com>
10734 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10735 (tfile_has_memory): Remove.
10736 (init_tfile_ops): Don't set fields to_has_all_memory and
10737 to_has_memory of tfile_ops.
10738 * tracefile.c (tracefile_has_all_memory): New function.
10739 (tracefile_has_memory): New function.
10740 (init_tracefile_ops): Initialize fields to_has_all_memory and
10741 to_has_memory of 'ops'.
10743 2014-02-23 Yao Qi <yao@codesourcery.com>
10745 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10746 (ctf_thread_alive, ctf_get_trace_status): Remove.
10747 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10748 init_tracefile_ops.
10749 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10750 (tfile_has_stack, tfile_has_registers): Remove.
10751 (tfile_thread_alive): Remove.
10752 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10753 init_tracefile_ops.
10754 * tracefile.c (tracefile_has_stack): New function.
10755 (tracefile_has_registers): New function.
10756 (tracefile_thread_alive): New function.
10757 (tracefile_get_trace_status): New function.
10758 (init_tracefile_ops): New function.
10759 * tracefile.h (init_tracefile_ops): Declare.
10761 2014-02-23 Yao Qi <yao@codesourcery.com>
10763 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10764 (O_LARGEFILE): Likewise.
10765 (tfile_ops): Likewise.
10766 (TRACE_HEADER_SIZE): Likewise.
10767 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10768 (cur_data_size): Likewise.
10769 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10770 (tfile_close, tfile_files_info): Likewise.
10771 (tfile_get_trace_status): Likewise.
10772 (tfile_get_tracepoint_status): Likewise.
10773 (tfile_get_traceframe_address): Likewise.
10774 (tfile_trace_find, match_blocktype): Likewise.
10775 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10776 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10777 (tfile_get_trace_state_variable_value): Likewise.
10778 (tfile_has_all_memory, tfile_has_memory): Likewise.
10779 (tfile_has_stack, tfile_has_registers): Likewise.
10780 (tfile_thread_alive, build_traceframe_info): Likewise.
10781 (tfile_traceframe_info, init_tfile_ops): Likewise.
10782 (_initialize_tracepoint): Don't call init_tfile_ops
10783 and add_target_with_completer.
10784 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10785 exec.h, completer.h and filenames.h.
10786 (_initialize_tracefile_tfile): New function.
10788 2014-02-23 Yao Qi <yao@codesourcery.com>
10790 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10792 (HFILES_NO_SRCDIR): Add tracefile.h.
10793 * ctf.c: Include "tracefile.h".
10794 * tracefile.h: New file.
10795 * tracefile.c: New file
10796 * tracefile-tfile.c: New file.
10797 * tracepoint.c: Include "tracefile.h".
10798 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10799 (stop_reason_names): Add const.
10800 (trace_file_writer_xfree): Move it to tracefile.c.
10801 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10802 (trace_save_ctf): Likewise.
10803 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10804 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10805 (tfile_write_header, tfile_write_regblock_type): Likewise.
10806 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10807 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10808 (tfile_write_raw_data, tfile_end): Likewise.
10809 (tfile_trace_file_writer_new): Likewise.
10810 (free_uploaded_tp): Make it extern.
10811 (free_uploaded_tsv): Make it extern.
10812 (_initialize_tracepoint): Move code to register command 'tsave'
10814 * tracepoint.h (stop_reason_names): Declare.
10815 (struct trace_frame_write_ops): Move it to tracefile.h.
10816 (struct trace_file_write_ops): Likewise.
10817 (struct trace_file_writer): Likewise.
10818 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10820 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10823 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10825 (get_cores_used_by_process): New parameter num_cores, use it.
10826 (linux_xfer_osdata_processes): Pass num_cores to it.
10827 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10830 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10832 * target.c (memory_xfer_partial): Fix length arg in call to
10833 breakpoint_xfer_memory.
10835 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10838 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10839 number comes after the + or - signs. Adjust length of register
10840 name to be extracted.
10842 2014-02-20 Tom Tromey <tromey@redhat.com>
10844 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10845 (ada_varobj_ops): Mark "extern".
10847 2014-02-20 Tom Tromey <tromey@redhat.com>
10849 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10851 2014-02-20 Doug Evans <xdje42@gmail.com>
10853 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10854 All callers updated.
10855 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10856 All callers updated.
10857 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10858 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10860 2014-02-20 lin zuojian <manjian2006@gmail.com>
10861 Joel Brobecker <brobecker@adacore.com>
10862 Doug Evans <xdje42@gmail.com>
10865 * dwarf2read.c (struct die_info): New member in_process.
10866 (reset_die_in_process): New function.
10867 (process_die): Set it at the start, reset when returning.
10868 (inherit_abstract_dies): Only call process_die if origin_child_die
10869 not already being processed.
10871 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10873 * windows-nat.c (handle_unload_dll): Add function documentation.
10874 (do_initial_windows_stuff): Add comment explaining why we wait
10875 until after inferior initialization has finished before
10876 processing all DLLs.
10878 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10880 * windows-nat.c (get_module_name): Delete.
10881 (windows_get_exec_module_filename): New function, mostly
10882 inspired from get_module_name.
10883 (windows_pid_to_exec_file): Replace call to get_module_name
10884 by call to windows_get_exec_module_filename.
10886 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10888 * windows-nat.c (handle_load_dll): Rewrite this function's
10889 introductory comment. Remove code using get_module_name
10890 to get the DLL's name.
10892 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10894 * windows-nat.c (get_windows_debug_event): Ignore
10895 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10896 if windows_initialization_done == 0.
10897 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10898 Adjust implementation to always load all DLLs.
10899 (do_initial_windows_stuff): Replace call to
10900 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10902 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10904 * windows-nat.c (_initialize_windows_nat): Deprecate the
10905 "dll-symbols" command. Turn the "add-shared-symbol-files"
10906 and "assf" aliases into commands, and deprecate them as well.
10907 * NEWS: Add entry explaining that "dll-symbols" and its two
10908 aliases are now deprecated.
10910 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10912 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10913 new-line in debug string. Remove trailing spaces.
10915 2014-02-19 Stan Shebs <stan@codesourcery.com>
10917 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10919 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10921 * NEWS: Add entry for the new feature
10922 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10925 2014-02-19 Stan Shebs <stan@codesourcery.com>
10927 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10929 2014-02-19 Pedro Alves <palves@redhat.com>
10931 * common/ptid.h (struct ptid): Mention that process_stratum
10932 targets should prefer ptid.lwp.
10934 2014-02-19 Pedro Alves <palves@redhat.com>
10936 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10937 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10938 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10939 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10940 store remote thread ids rather than ptid.tid.
10941 (_initialize_remote): Adjust.
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10945 * target.c (target_get_unwinder): Rewrite.
10946 (target_get_tailcall_unwinder): Rewrite.
10947 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10948 (record_btrace_to_get_tailcall_unwinder): New function.
10949 (init_record_btrace_ops): Update.
10950 * target.h (struct target_ops) <to_get_unwinder,
10951 to_get_tailcall_unwinder>: Now function pointers. Use
10952 TARGET_DEFAULT_RETURN.
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10956 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10958 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10962 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10964 * target-delegates.c: Rebuild.
10965 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10966 TARGET_DEFAULT_FUNC.
10967 * target.c (default_target_decr_pc_after_break): Rename from
10968 forward_target_decr_pc_after_break. Simplify.
10969 (target_decr_pc_after_break): Rely on delegation.
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10973 * target.c (update_current_target): Do not INHERIT to_doc or
10974 to_magic. Do not de_fault to_open or to_close.
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10978 * gcore.h (objfile_find_memory_regions): Declare.
10979 * gcore.c (objfile_find_memory_regions): No longer static. Add
10981 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10982 * exec.c: Include gcore.h.
10983 (exec_set_find_memory_regions): Remove.
10984 (exec_find_memory_regions): Remove.
10985 (exec_do_find_memory_regions): Remove.
10986 (init_exec_ops): Update.
10987 * defs.h (exec_set_find_memory_regions): Remove.
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * target-delegates.c: Rebuild.
10992 * target.h (struct target_ops) <to_extra_thread_info,
10993 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10994 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10995 not 0, in TARGET_DEFAULT_RETURN.
10997 2014-02-19 Tom Tromey <tromey@redhat.com>
10999 * target.c (complete_target_initialization): Remove casts. Use
11000 return_zero_has_execution.
11001 (return_zero): Add "ignore" argument.
11002 (return_zero_has_execution): New function.
11003 (init_dummy_target): Remove casts. Use
11004 return_zero_has_execution.
11006 2014-02-19 Tom Tromey <tromey@redhat.com>
11008 * target.c (update_current_target): Update comments. Do not
11009 INHERIT to_stratum.
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11015 * corelow.c (core_read_description): Delegate when needed.
11016 * remote.c (remote_read_description): Delegate when needed.
11017 * target-delegates.c: Rebuild.
11018 * target.c (target_read_description): Rewrite.
11019 * target.h (struct target_ops) <to_read_description>: Update
11020 comment. Use TARGET_DEFAULT_RETURN.
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * target-delegates.c: Rebuild.
11025 * target.c (update_current_target): Don't inherit or default
11027 (find_default_run_target): Check against delegate_can_run.
11028 * target.h (struct target_ops) <to_can_run>: Use
11029 TARGET_DEFAULT_RETURN.
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11033 * target-delegates.c: Rebuild.
11034 * target.c (target_disconnect): Unconditionally delegate.
11035 * target.h (struct target_ops) <to_disconnect>: Use
11036 TARGET_DEFAULT_NORETURN.
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11040 * record.c (record_stop): Unconditionally delegate.
11041 * target-delegates.c: Rebuild.
11042 * target.c (target_stop_recording): Unconditionally delegate.
11043 * target.h (struct target_ops) <to_stop_recording>: Use
11044 TARGET_DEFAULT_IGNORE.
11046 2014-02-19 Tom Tromey <tromey@redhat.com>
11048 * target-delegates.c: Rebuild.
11049 * target.c (target_enable_btrace): Unconditionally delegate.
11050 * target.h (struct target_ops) <to_enable_btrace>: Use
11051 TARGET_DEFAULT_NORETURN.
11053 2014-02-19 Tom Tromey <tromey@redhat.com>
11055 * target-delegates.c: Rebuild.
11056 * target.c (target_read_btrace): Unconditionally delegate.
11057 * target.h (struct target_ops) <to_read_btrace>: Use
11058 TARGET_DEFAULT_NORETURN.
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target-delegates.c: Rebuild.
11063 * target.c (target_teardown_btrace): Unconditionally delegate.
11064 * target.h (struct target_ops) <to_teardown_btrace>: Use
11065 TARGET_DEFAULT_NORETURN.
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target-delegates.c: Rebuild.
11070 * target.c (target_disable_btrace): Unconditionally delegate.
11071 * target.h (struct target_ops) <to_disable_btrace>: Use
11072 TARGET_DEFAULT_NORETURN.
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11076 * target-delegates.c: Rebuild.
11077 * target.c (default_search_memory): New function.
11078 (simple_search_memory): Update comment.
11079 (target_search_memory): Unconditionally delegate.
11080 * target.h (struct target_ops) <to_search_memory>: Use
11081 TARGET_DEFAULT_FUNC.
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11085 * auxv.c (default_auxv_parse): No longer static.
11086 (target_auxv_parse): Unconditionally delegate.
11087 * auxv.h (default_auxv_parse): Declare.
11088 * target-delegates.c: Rebuild.
11089 * target.c: Include auxv.h.
11090 * target.h (struct target_ops) <to_auxv_parse>: Use
11091 TARGET_DEFAULT_FUNC.
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11095 * target-delegates.c: Rebuild.
11096 * target.c (target_memory_map): Unconditionally delegate.
11097 * target.h (struct target_ops) <to_memory_map>: Use
11098 TARGET_DEFAULT_RETURN.
11100 2014-02-19 Tom Tromey <tromey@redhat.com>
11102 * target-delegates.c: Rebuild.
11103 * target.c (target_thread_alive): Unconditionally delegate.
11104 * target.h (struct target_ops) <to_thread_alive>: Use
11105 TARGET_DEFAULT_RETURN.
11107 2014-02-19 Tom Tromey <tromey@redhat.com>
11109 * target-delegates.c: Rebuild.
11110 * target.c (target_save_record): Unconditionally delegate.
11111 * target.h (struct target_ops) <to_save_record>: Use
11112 TARGET_DEFAULT_NORETURN.
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11116 * target-delegates.c: Rebuild.
11117 * target.c (target_delete_record): Unconditionally delegate.
11118 * target.h (struct target_ops) <to_delete_record>: Use
11119 TARGET_DEFAULT_NORETURN.
11121 2014-02-19 Tom Tromey <tromey@redhat.com>
11123 * target-delegates.c: Rebuild.
11124 * target.c (target_record_is_replaying): Unconditionally
11126 * target.h (struct target_ops) <to_record_is_replaying>: Use
11127 TARGET_DEFAULT_RETURN.
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11131 * target-delegates.c: Rebuild.
11132 * target.c (target_goto_record_begin): Unconditionally delegate.
11133 * target.h (struct target_ops) <to_goto_record_begin>: Use
11134 TARGET_DEFAULT_NORETURN.
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11138 * target-delegates.c: Rebuild.
11139 * target.c (target_goto_record_end): Unconditionally delegate.
11140 * target.h (struct target_ops) <to_goto_record_end>: Use
11141 TARGET_DEFAULT_NORETURN.
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11145 * target-delegates.c: Rebuild.
11146 * target.c (target_goto_record): Unconditionally delegate.
11147 * target.h (struct target_ops) <to_goto_record>: Use
11148 TARGET_DEFAULT_NORETURN.
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11152 * target-delegates.c: Rebuild.
11153 * target.c (target_insn_history): Unconditionally delegate.
11154 * target.h (struct target_ops) <to_insn_history>: Use
11155 TARGET_DEFAULT_NORETURN.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target-delegates.c: Rebuild.
11160 * target.c (target_insn_history_from): Unconditionally delegate.
11161 * target.h (struct target_ops) <to_insn_history_from>: Use
11162 TARGET_DEFAULT_NORETURN.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_insn_history_range): Unconditionally delegate.
11168 * target.h (struct target_ops) <to_insn_history_range>: Use
11169 TARGET_DEFAULT_NORETURN.
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11173 * target-delegates.c: Rebuild.
11174 * target.c (target_call_history): Unconditionally delegate.
11175 * target.h (struct target_ops) <to_call_history>: Use
11176 TARGET_DEFAULT_NORETURN.
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11180 * target-delegates.c: Rebuild.
11181 * target.c (target_call_history_from): Unconditionally delegate.
11182 * target.h (struct target_ops) <to_call_history_from>: Use
11183 TARGET_DEFAULT_NORETURN.
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11187 * target-delegates.c: Rebuild.
11188 * target.c (target_call_history_range): Unconditionally delegate.
11189 * target.h (struct target_ops) <to_call_history_range>: Use
11190 TARGET_DEFAULT_NORETURN.
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11194 * target-delegates.c: Rebuild.
11195 * target.c (target_verify_memory): Unconditionally delegate.
11196 * target.h (struct target_ops) <to_verify_memory>: Use
11197 TARGET_DEFAULT_NORETURN.
11199 2014-02-19 Tom Tromey <tromey@redhat.com>
11201 * target-delegates.c: Rebuild.
11202 * target.c (target_core_of_thread): Unconditionally delegate.
11203 * target.h (struct target_ops) <to_core_of_thread>: Use
11204 TARGET_DEFAULT_RETURN.
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target-delegates.c: Rebuild.
11209 * target.c (target_flash_done): Unconditionally delegate.
11210 * target.h (struct target_ops) <to_flash_done>: Use
11211 TARGET_DEFAULT_NORETURN.
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * target-delegates.c: Rebuild.
11216 * target.c (target_flash_erase): Unconditionally delegate.
11217 * target.h (struct target_ops) <to_flash_erase>: Use
11218 TARGET_DEFAULT_NORETURN.
11220 2014-02-19 Tom Tromey <tromey@redhat.com>
11222 * target-delegates.c: Rebuild.
11223 * target.c (target_get_section_table): Unconditionally delegate.
11224 * target.h (struct target_ops) <to_get_section_table>: Use
11225 TARGET_DEFAULT_RETURN.
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11229 * target-delegates.c: Rebuild.
11230 * target.c (target_pid_to_str): Unconditionally delegate.
11231 (init_dummy_target): Don't initialize to_pid_to_str.
11232 (default_pid_to_str): Rename from dummy_pid_to_str.
11233 * target.h (struct target_ops) <to_pid_to_str>: Use
11234 TARGET_DEFAULT_FUNC.
11236 2014-02-19 Tom Tromey <tromey@redhat.com>
11238 * target-delegates.c: Rebuild.
11239 * target.c (target_find_new_threads): Unconditionally delegate.
11240 * target.h (struct target_ops) <to_find_new_threads>: Use
11241 TARGET_DEFAULT_RETURN.
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11245 * target-delegates.c: Rebuild.
11246 * target.c (target_program_signals): Unconditionally delegate.
11247 * target.h (struct target_ops) <to_program_signals>: Use
11248 TARGET_DEFAULT_IGNORE.
11250 2014-02-19 Tom Tromey <tromey@redhat.com>
11252 * target-delegates.c: Rebuild.
11253 * target.c (target_pass_signals): Unconditionally delegate.
11254 * target.h (struct target_ops) <to_pass_signals>: Use
11255 TARGET_DEFAULT_IGNORE.
11257 2014-02-19 Tom Tromey <tromey@redhat.com>
11259 * target-delegates.c: Rebuild.
11260 * target.c (default_mourn_inferior): New function.
11261 (target_mourn_inferior): Unconditionally delegate.
11262 * target.h (struct target_ops) <to_mourn_inferior>: Use
11263 TARGET_DEFAULT_FUNC.
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11267 * target-delegates.c: Rebuild.
11268 * target.c (default_follow_fork): New function.
11269 (target_follow_fork): Unconditionally delegate.
11270 * target.h (struct target_ops) <to_follow_fork>: Use
11271 TARGET_DEFAULT_FUNC.
11273 2014-02-19 Tom Tromey <tromey@redhat.com>
11275 * target-delegates.c: Rebuild.
11276 * target.c (target_kill): Unconditionally delegate.
11277 * target.h (struct target_ops) <to_kill>: Use
11278 TARGET_DEFAULT_NORETURN.
11280 2014-02-19 Tom Tromey <tromey@redhat.com>
11282 * target-delegates.c: Rebuild.
11283 * target.c (target_masked_watch_num_registers): Unconditionally
11285 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11286 Use TARGET_DEFAULT_RETURN.
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11290 * target-delegates.c: Rebuild.
11291 * target.c (target_remove_mask_watchpoint): Unconditionally
11293 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11294 TARGET_DEFAULT_RETURN.
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target-delegates.c: Rebuild.
11299 * target.c (target_insert_mask_watchpoint): Unconditionally
11301 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11302 TARGET_DEFAULT_RETURN.
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * target-delegates.c: Rebuild.
11307 * target.c (target_ranged_break_num_registers): Unconditionally
11309 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11310 Use TARGET_DEFAULT_RETURN.
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * target-delegates.c: Rebuild.
11315 * target.c (target_fetch_registers): Unconditionally delegate.
11316 * target.h (struct target_ops) <to_fetch_registers>: 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
11324 * target.h (struct target_ops) <to_stop>: Use
11325 TARGET_DEFAULT_IGNORE.
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11329 * target-delegates.c: Rebuild.
11330 * target.c (update_current_target): Don't inherit or default
11331 to_can_run_breakpoint_commands.
11332 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11333 Use TARGET_DEFAULT_RETURN.
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11337 * target-delegates.c: Rebuild.
11338 * target.c (update_current_target): Don't inherit or default
11339 to_supports_evaluation_of_breakpoint_conditions.
11340 * target.h (struct target_ops)
11341 <to_supports_evaluation_of_breakpoint_conditions>: Use
11342 TARGET_DEFAULT_RETURN.
11344 2014-02-19 Tom Tromey <tromey@redhat.com>
11346 * target-delegates.c: Rebuild.
11347 * target.c (update_current_target): Don't inherit or default
11348 to_augmented_libraries_svr4_read.
11349 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11350 Use TARGET_DEFAULT_RETURN.
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11354 * target-delegates.c: Rebuild.
11355 * target.c (update_current_target): Don't inherit or default
11357 * target.h (struct target_ops) <to_can_use_agent>: Use
11358 TARGET_DEFAULT_RETURN.
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11362 * target-delegates.c: Rebuild.
11363 * target.c (update_current_target): Don't inherit or default
11365 * target.h (struct target_ops) <to_use_agent>: Use
11366 TARGET_DEFAULT_NORETURN.
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11370 * target-delegates.c: Rebuild.
11371 * target.c (update_current_target): Don't inherit or default
11372 to_traceframe_info.
11373 (return_null): Remove.
11374 * target.h (struct target_ops) <to_traceframe_info>: Use
11375 TARGET_DEFAULT_RETURN.
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11379 * target-delegates.c: Rebuild.
11380 * target.c (update_current_target): Don't inherit or default
11381 to_static_tracepoint_markers_by_strid.
11382 * target.h (struct target_ops)
11383 <to_static_tracepoint_markers_by_strid>: Use
11384 TARGET_DEFAULT_NORETURN.
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11388 * target-delegates.c: Rebuild.
11389 * target.c (update_current_target): Don't inherit or default
11390 to_static_tracepoint_marker_at.
11391 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11392 Use TARGET_DEFAULT_RETURN.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target-delegates.c: Rebuild.
11397 * target.c (update_current_target): Don't inherit or default
11398 to_set_permissions.
11399 * target.h (struct target_ops) <to_set_permissions>: Use
11400 TARGET_DEFAULT_IGNORE.
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_tib_address.
11407 * target.h (struct target_ops) <to_get_tib_address>: 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_set_trace_notes.
11415 * target.h (struct target_ops) <to_set_trace_notes>: Use
11416 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 initialize
11422 to_set_trace_buffer_size.
11423 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11424 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
11431 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11432 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
11439 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11440 TARGET_DEFAULT_IGNORE.
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
11446 to_get_min_fast_tracepoint_insn_len.
11447 (return_minus_one): Remove.
11448 * target.h (struct target_ops)
11449 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11451 2014-02-19 Tom Tromey <tromey@redhat.com>
11453 * target-delegates.c: Rebuild.
11454 * target.c (update_current_target): Don't inherit or default
11455 to_get_raw_trace_data.
11456 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11457 TARGET_DEFAULT_NORETURN.
11459 2014-02-19 Tom Tromey <tromey@redhat.com>
11461 * target-delegates.c: Rebuild.
11462 * target.c (update_current_target): Don't inherit or default
11463 to_upload_trace_state_variables.
11464 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11465 Use TARGET_DEFAULT_RETURN.
11467 2014-02-19 Tom Tromey <tromey@redhat.com>
11469 * target-delegates.c: Rebuild.
11470 * target.c (update_current_target): Don't inherit or default
11471 to_upload_tracepoints.
11472 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11473 TARGET_DEFAULT_RETURN.
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11477 * target-delegates.c: Rebuild.
11478 * target.c (update_current_target): Don't inherit or default
11479 to_save_trace_data.
11480 * target.h (struct target_ops) <to_save_trace_data>: Use
11481 TARGET_DEFAULT_NORETURN.
11483 2014-02-19 Tom Tromey <tromey@redhat.com>
11485 * target-delegates.c: Rebuild.
11486 * target.c (update_current_target): Don't inherit or default
11487 to_get_trace_state_variable_value.
11488 * target.h (struct target_ops)
11489 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11493 * target-delegates.c: Rebuild.
11494 * target.c (update_current_target): Don't inherit or default
11496 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11498 2014-02-19 Tom Tromey <tromey@redhat.com>
11500 * target-delegates.c: Rebuild.
11501 * target.c (update_current_target): Don't inherit or default
11503 * target.h (struct target_ops) <to_trace_stop>: Use
11504 TARGET_DEFAULT_NORETURN.
11506 2014-02-19 Tom Tromey <tromey@redhat.com>
11508 * target-delegates.c: Rebuild.
11509 * target.c (update_current_target): Don't inherit or default
11510 to_get_tracepoint_status.
11511 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11512 TARGET_DEFAULT_NORETURN.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target-delegates.c: Rebuild.
11517 * target.c (update_current_target): Don't inherit or default
11518 to_get_trace_status.
11519 * target.h (struct target_ops) <to_get_trace_status>: Use
11520 TARGET_DEFAULT_RETURN.
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11524 * target-delegates.c: Rebuild.
11525 * target.c (update_current_target): Don't inherit or default
11527 * target.h (struct target_ops) <to_trace_start>: Use
11528 TARGET_DEFAULT_NORETURN.
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_trace_set_readonly_regions.
11535 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11536 Use TARGET_DEFAULT_NORETURN.
11538 2014-02-19 Tom Tromey <tromey@redhat.com>
11540 * target-delegates.c: Rebuild.
11541 * target.c (update_current_target): Don't inherit or default
11542 to_disable_tracepoint.
11543 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11544 TARGET_DEFAULT_NORETURN.
11546 2014-02-19 Tom Tromey <tromey@redhat.com>
11548 * target-delegates.c: Rebuild.
11549 * target.c (update_current_target): Don't inherit or default
11550 to_enable_tracepoint.
11551 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11552 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
11559 * target.h (struct target_ops) <to_download_trace_state_variable>:
11560 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
11567 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11568 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
11575 * target.h (struct target_ops) <to_download_tracepoint>: Use
11576 TARGET_DEFAULT_NORETURN.
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
11583 * target.h (struct target_ops) <to_trace_init>: Use
11584 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
11591 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11592 TARGET_DEFAULT_RETURN.
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11596 * target-delegates.c: Rebuild.
11597 * target.c (update_current_target): Don't inherit or default
11598 to_supports_enable_disable_tracepoint.
11599 * target.h (struct target_ops)
11600 <to_supports_enable_disable_tracepoint>: Use
11601 TARGET_DEFAULT_RETURN.
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11605 * target-delegates.c: Rebuild.
11606 * target.c (update_current_target): Don't inherit or default
11607 to_supports_multi_process.
11608 * target.h (struct target_ops) <to_supports_multi_process>: Use
11609 TARGET_DEFAULT_RETURN.
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11613 * target-delegates.c: Rebuild.
11614 * target.c (update_current_target): Don't inherit or default
11615 to_get_ada_task_ptid.
11616 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11617 TARGET_DEFAULT_FUNC.
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * target-delegates.c: Rebuild.
11622 * target.c (update_current_target): Don't inherit or default
11623 to_thread_architecture.
11624 * target.h (struct target_ops) <to_thread_architecture>: Use
11625 TARGET_DEFAULT_FUNC.
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11629 * target-delegates.c: Rebuild.
11630 * target.c (update_current_target): Don't inherit or default
11631 to_execution_direction.
11632 * target.h (struct target_ops) <to_execution_direction>: Use
11633 TARGET_DEFAULT_FUNC.
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11637 * target-delegates.c: Rebuild.
11638 * target.c (update_current_target): Don't inherit or default
11639 to_can_execute_reverse.
11640 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11641 TARGET_DEFAULT_RETURN.
11642 (target_can_execute_reverse): Unconditionally delegate.
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target-delegates.c: Rebuild.
11647 * target.c (update_current_target): Don't inherit or default
11649 (dummy_goto_bookmark): Remove.
11650 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11651 * target.h (struct target_ops) <to_goto_bookmark>: Use
11652 TARGET_DEFAULT_NORETURN.
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11656 * target-delegates.c: Rebuild.
11657 * target.c (update_current_target): Don't inherit or default
11659 (dummy_get_bookmark): Remove.
11660 (init_dummy_target): Don't inherit or default to_get_bookmark.
11661 * target.h (struct target_ops) <to_get_bookmark>: Use
11662 TARGET_DEFAULT_NORETURN
11664 2014-02-19 Tom Tromey <tromey@redhat.com>
11666 * target-delegates.c: Rebuild.
11667 * target.c (update_current_target): Don't inherit or default
11668 to_make_corefile_notes.
11669 (init_dummy_target): Don't initialize to_make_corefile_notes.
11670 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11671 TARGET_DEFAULT_FUNC.
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_find_memory_regions.
11678 (init_dummy_target): Don't initialize to_find_memory_regions.
11679 * target.h (struct target_ops) <to_find_memory_regions>: Use
11680 TARGET_DEFAULT_FUNC.
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11684 * target-delegates.c: Rebuild.
11685 * target.c (update_current_target): Don't inherit or default
11687 * target.h (struct target_ops) <to_log_command>: Use
11688 TARGET_DEFAULT_IGNORE.
11689 (target_log_command): Unconditionally delegate.
11691 2014-02-19 Tom Tromey <tromey@redhat.com>
11693 * target-delegates.c: Rebuild.
11694 * target.c (update_current_target): Don't inherit or default
11695 to_pid_to_exec_file.
11696 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11697 TARGET_DEFAULT_RETURN.
11699 2014-02-19 Tom Tromey <tromey@redhat.com>
11701 * target-delegates.c: Rebuild.
11702 * target.c (update_current_target): Don't inherit or default
11704 (target_thread_name): Unconditionally delegate.
11705 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
11713 * target.h (struct target_ops) <to_extra_thread_info>: 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
11721 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
11729 (return_one): Remove.
11730 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11731 TARGET_DEFAULT_RETURN.
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11735 * target-delegates.c: Rebuild.
11736 * target.c (update_current_target): Don't inherit or default
11737 to_insert_exec_catchpoint.
11738 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11739 TARGET_DEFAULT_RETURN.
11741 2014-01-08 Tom Tromey <tromey@redhat.com>
11743 * target-delegates.c: Rebuild.
11744 * target.c (update_current_target): Don't inherit or default
11745 to_insert_exec_catchpoint.
11746 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11747 TARGET_DEFAULT_RETURN.
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11751 * target-delegates.c: Rebuild.
11752 * target.c (update_current_target): Don't inherit or default
11753 to_remove_vfork_catchpoint.
11754 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11755 TARGET_DEFAULT_RETURN.
11757 2014-02-19 Tom Tromey <tromey@redhat.com>
11759 * target-delegates.c: Rebuild.
11760 * target.c (update_current_target): Don't inherit or default
11761 to_insert_vfork_catchpoint.
11762 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11763 TARGET_DEFAULT_RETURN.
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11767 * target-delegates.c: Rebuild.
11768 * target.c (update_current_target): Don't inherit or default
11769 to_remove_fork_catchpoint.
11770 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11771 TARGET_DEFAULT_RETURN.
11773 2014-02-19 Tom Tromey <tromey@redhat.com>
11775 * target-delegates.c: Rebuild.
11776 * target.c (update_current_target): Don't inherit or default
11777 to_insert_fork_catchpoint.
11778 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11779 TARGET_DEFAULT_RETURN.
11781 2014-02-19 Tom Tromey <tromey@redhat.com>
11783 * target-delegates.c: Rebuild.
11784 * target.c (update_current_target): Don't inherit or default
11785 to_post_startup_inferior.
11786 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11787 TARGET_DEFAULT_IGNORE.
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11791 * target-delegates.c: Rebuild.
11792 * target.c (update_current_target): Don't inherit or default
11794 * target.h (struct target_ops) <to_load>: Use
11795 TARGET_DEFAULT_NORETURN.
11797 2014-02-19 Tom Tromey <tromey@redhat.com>
11799 * target-delegates.c: Rebuild.
11800 * target.c (update_current_target): Don't inherit or default
11802 * target.h (struct target_ops) <to_terminal_info>: Use
11803 TARGET_DEFAULT_FUNC.
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11807 * target-delegates.c: Rebuild.
11808 * target.c (update_current_target): Don't inherit or default
11809 to_terminal_save_ours.
11810 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11811 TARGET_DEFAULT_IGNORE.
11813 2014-02-19 Tom Tromey <tromey@redhat.com>
11815 * target-delegates.c: Rebuild.
11816 * target.c (update_current_target): Don't inherit or default
11818 * target.h (struct target_ops) <to_terminal_ours>: Use
11819 TARGET_DEFAULT_IGNORE.
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11823 * target-delegates.c: Rebuild.
11824 * target.c (update_current_target): Don't inherit or default
11825 to_terminal_ours_for_output.
11826 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11827 TARGET_DEFAULT_IGNORE.
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * target-delegates.c: Rebuild.
11832 * target.c (update_current_target): Don't inherit or default
11833 to_terminal_inferior.
11834 * target.h (struct target_ops) <to_terminal_inferior>: Use
11835 TARGET_DEFAULT_IGNORE.
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11839 * target-delegates.c: Rebuild.
11840 * target.c (update_current_target): Don't inherit or default
11842 * target.h (struct target_ops) <to_terminal_init>: Use
11843 TARGET_DEFAULT_IGNORE.
11845 2014-02-19 Tom Tromey <tromey@redhat.com>
11847 * target-delegates.c: Rebuild.
11848 * target.c (update_current_target): Don't inherit or default
11849 to_can_accel_watchpoint_condition.
11850 * target.h (struct target_ops)
11851 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target-delegates.c: Rebuild.
11856 * target.c (update_current_target): Don't inherit or default
11857 to_region_ok_for_hw_watchpoint.
11858 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11859 Use TARGET_DEFAULT_FUNC.
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * target-delegates.c: Rebuild.
11864 * target.c (update_current_target): Don't inherit or default
11865 to_watchpoint_addr_within_range.
11866 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11867 Use TARGET_DEFAULT_FUNC.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * target-delegates.c: Rebuild.
11872 * target.c (update_current_target): Don't inherit or default
11873 to_remove_watchpoint.
11874 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11875 TARGET_DEFAULT_NORETURN.
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11879 * target-delegates.c: Rebuild.
11880 * target.c (update_current_target): Don't inherit or default
11881 to_insert_watchpoint.
11882 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11883 TARGET_DEFAULT_RETURN.
11885 2014-02-19 Tom Tromey <tromey@redhat.com>
11887 * target-delegates.c: Rebuild.
11888 * target.c (update_current_target): Don't inherit or default
11889 to_remove_hw_breakpoint.
11890 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11891 TARGET_DEFAULT_RETURN.
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11895 * target-delegates.c: Rebuild.
11896 * target.c (update_current_target): Don't inherit or default
11897 to_insert_hw_breakpoint.
11898 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11899 TARGET_DEFAULT_RETURN.
11901 2014-02-19 Tom Tromey <tromey@redhat.com>
11903 * target-delegates.c: Rebuild.
11904 * target.c (update_current_target): Don't inherit or default
11905 to_can_use_hw_breakpoint.
11906 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11907 TARGET_DEFAULT_RETURN.
11909 2014-02-19 Tom Tromey <tromey@redhat.com>
11911 * target-delegates.c: Rebuild.
11912 * target.c (update_current_target): Don't inherit or default
11914 * target.h (struct target_ops) <to_files_info>: Use
11915 TARGET_DEFAULT_IGNORE.
11917 2014-02-19 Tom Tromey <tromey@redhat.com>
11919 * target-delegates.c: Rebuild.
11920 * target.c (update_current_target): Don't inherit or default
11922 * target.h (struct target_ops) <to_store>: Use
11923 TARGET_DEFAULT_NORETURN.
11925 2014-02-19 Tom Tromey <tromey@redhat.com>
11927 * target-delegates.c: Rebuild.
11928 * target.c (update_current_target): Don't inherit or default
11930 * target.h (struct target_ops) <to_post_attach>: Use
11931 TARGET_DEFAULT_IGNORE.
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11935 * target-delegates.c: Rebuild.
11936 * target.c (update_current_target): Don't inherit or default
11938 (default_rcmd): New function.
11939 (do_monitor_command): Unconditionally delegate.
11940 * target.h (struct target_ops) <to_rmcd>: Use
11941 TARGET_DEFAULT_FUNC.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * target-delegates.c: Rebuild.
11946 * target.c (init_dummy_target): Don't initialize to_attach.
11947 (target_attach): Unconditionally delegate.
11948 * target.h (struct target_ops) <to_attach>: Use
11949 TARGET_DEFAULT_FUNC.
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11953 * target-delegates.c: Rebuild.
11954 * target.c (target_detach): Unconditionally delegate.
11955 (init_dummy_target): Don't initialize to_detach.
11956 * target.h (struct target_ops) <to_detach>: Use
11957 TARGET_DEFAULT_IGNORE.
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11961 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11963 (target_augmented_libraries_svr4_read): Add argument.
11964 * target.c (update_current_target): Update.
11965 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11968 2014-02-19 Tom Tromey <tromey@redhat.com>
11970 * target.h (struct target_ops) <to_call_history_range>: Add
11972 * target.c (target_call_history_range): Add argument.
11973 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11975 (record_btrace_call_history_from): Update.
11977 2014-02-19 Tom Tromey <tromey@redhat.com>
11979 * target.h (struct target_ops) <to_call_history_from>: Add
11981 * target.c (target_call_history_from): Add argument.
11982 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11985 2014-02-19 Tom Tromey <tromey@redhat.com>
11987 * target.h (struct target_ops) <to_call_history>: Add argument.
11988 * target.c (target_call_history): Add argument.
11989 * record-btrace.c (record_btrace_call_history): Add 'self'
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11994 * target.h (struct target_ops) <to_insn_history_range>: Add
11996 * target.c (target_insn_history_range): Add argument.
11997 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11999 (record_btrace_insn_history_from): Update.
12001 2014-02-19 Tom Tromey <tromey@redhat.com>
12003 * target.h (struct target_ops) <to_insn_history_from>: Add
12005 * target.c (target_insn_history_from): Add argument.
12006 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12009 2014-02-19 Tom Tromey <tromey@redhat.com>
12011 * target.h (struct target_ops) <to_insn_history>: Add argument.
12012 * target.c (target_insn_history): Add argument.
12013 * record-btrace.c (record_btrace_insn_history): Add 'self'
12016 2014-02-19 Tom Tromey <tromey@redhat.com>
12018 * target.h (struct target_ops) <to_goto_record>: Add argument.
12019 * target.c (target_goto_record): Add argument.
12020 * record-full.c (record_full_goto): Add 'self' argument.
12021 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12026 * target.c (target_goto_record_end): Add argument.
12027 * record-full.c (record_full_goto_end): Add 'self' argument.
12028 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12032 * target.h (struct target_ops) <to_goto_record_begin>: Add
12034 * target.c (target_goto_record_begin): Add argument.
12035 * record-full.c (record_full_goto_begin): Add 'self' argument.
12036 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12039 2014-02-19 Tom Tromey <tromey@redhat.com>
12041 * target.h (struct target_ops) <to_record_is_replaying>: Add
12043 * target.c (target_record_is_replaying): Add argument.
12044 * record-full.c (record_full_is_replaying): Add 'self' argument.
12045 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12047 (record_btrace_xfer_partial, record_btrace_store_registers)
12048 (record_btrace_prepare_to_store, record_btrace_resume)
12049 (record_btrace_wait, record_btrace_decr_pc_after_break)
12050 (record_btrace_find_new_threads, record_btrace_thread_alive):
12053 2014-02-19 Tom Tromey <tromey@redhat.com>
12055 * target.h (struct target_ops) <to_delete_record>: Add argument.
12056 * target.c (target_delete_record): Add argument.
12057 * record-full.c (record_full_delete): Add 'self' argument.
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12061 * target.h (struct target_ops) <to_save_record>: Add argument.
12062 * target.c (target_save_record): Add argument.
12063 * record-full.c (record_full_save): Add 'self' argument.
12064 (record_full_save): Add 'self' argument.
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12068 * target.h (struct target_ops) <to_info_record>: Add argument.
12069 * target.c (target_info_record): Add argument.
12070 * record.c (info_record_command): Add argument.
12071 * record-full.c (record_full_info): Add 'self' argument.
12072 * record-btrace.c (record_btrace_info): Add 'self' argument.
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12076 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12077 * target.c (target_stop_recording): Add argument.
12078 * record.c (record_stop): Add argument.
12079 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12084 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12085 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12086 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12088 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12089 (_initialize_amd64_linux_nat): Use it.
12090 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12091 (_initialize_i386_linux_nat): Use it.
12093 2014-02-19 Tom Tromey <tromey@redhat.com>
12095 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12096 * target.c (target_teardown_btrace): Add argument.
12097 * remote.c (remote_teardown_btrace): Add 'self' argument.
12098 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12100 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12105 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12106 * target.c (target_disable_btrace): Add argument.
12107 * remote.c (remote_disable_btrace): Add 'self' argument.
12108 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12110 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12113 2014-02-19 Tom Tromey <tromey@redhat.com>
12115 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12116 * target.c (target_enable_btrace): Add argument.
12117 * remote.c (remote_enable_btrace): Add 'self' argument.
12118 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12120 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12123 2014-02-19 Tom Tromey <tromey@redhat.com>
12125 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12126 (target_can_use_agent): Add argument.
12127 * target.c (update_current_target): Update.
12128 * remote.c (remote_can_use_agent): Add 'self' argument.
12129 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target.h (struct target_ops) <to_use_agent>: Add argument.
12134 (target_use_agent): Add argument.
12135 * target.c (update_current_target): Update.
12136 * remote.c (remote_use_agent): Add 'self' argument.
12137 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12141 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12142 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12143 (target_traceframe_info): Add argument.
12144 * target.c (update_current_target): Update.
12145 * remote.c (remote_traceframe_info): Add 'self' argument.
12146 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12148 2014-02-19 Tom Tromey <tromey@redhat.com>
12150 * target.h (target_static_tracepoint_markers_by_strid): Add
12152 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12154 * target.c (update_current_target): Update.
12155 * remote.c (struct target_ops)
12156 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12157 * linux-nat.c (struct target_ops)
12158 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12160 2014-02-19 Tom Tromey <tromey@redhat.com>
12162 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12164 (target_static_tracepoint_marker_at): Add argument.
12165 * target.c (update_current_target): Update.
12166 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12171 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12172 (target_set_permissions): Add argument.
12173 * target.c (update_current_target): Update.
12174 * remote.c (remote_set_permissions): Add 'self' argument.
12175 (remote_start_remote): Update.
12177 2014-02-19 Tom Tromey <tromey@redhat.com>
12179 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12180 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12181 (target_get_tib_address): Add argument.
12182 * target.c (update_current_target): Update.
12183 * remote.c (remote_get_tib_address): Add 'self' argument.
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12187 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12188 (target_set_trace_notes): Add argument.
12189 * target.c (update_current_target): Update.
12190 * remote.c (remote_set_trace_notes): Add 'self' argument.
12192 2014-02-19 Tom Tromey <tromey@redhat.com>
12194 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12196 (target_set_trace_buffer_size): Add argument.
12197 * target.c (update_current_target): Update.
12198 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12200 2014-02-19 Tom Tromey <tromey@redhat.com>
12202 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12204 (target_set_circular_trace_buffer): Add argument.
12205 * target.c (update_current_target): Update.
12206 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12211 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12213 (target_set_disconnected_tracing): Add argument.
12214 * target.c (update_current_target): Update.
12215 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12219 * target.h (struct target_ops)
12220 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12221 (target_get_min_fast_tracepoint_insn_len): Add argument.
12222 * target.c (update_current_target): Update.
12223 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12226 2014-02-19 Tom Tromey <tromey@redhat.com>
12228 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12230 (target_get_raw_trace_data): Add argument.
12231 * target.c (update_current_target): Update.
12232 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12234 2014-02-19 Tom Tromey <tromey@redhat.com>
12236 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12238 (target_upload_trace_state_variables): Add argument.
12239 * target.c (update_current_target): Update.
12240 * remote.c (remote_upload_trace_state_variables): Add 'self'
12242 (remote_start_remote): Update.
12244 2014-02-19 Tom Tromey <tromey@redhat.com>
12246 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12248 (target_upload_tracepoints): Add argument.
12249 * target.c (update_current_target): Update.
12250 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12251 (remote_start_remote): Update.
12253 2014-02-19 Tom Tromey <tromey@redhat.com>
12255 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12256 (target_save_trace_data): Add argument.
12257 * target.c (update_current_target): Update.
12258 * remote.c (remote_save_trace_data): Add 'self' argument.
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12262 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12264 * target.h (struct target_ops)
12265 <to_get_trace_state_variable_value>: Add argument.
12266 (target_get_trace_state_variable_value): Add argument.
12267 * target.c (update_current_target): Update.
12268 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12270 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12272 2014-02-19 Tom Tromey <tromey@redhat.com>
12274 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12275 * target.h (struct target_ops) <to_trace_find>: Add argument.
12276 (target_trace_find): Add argument.
12277 * target.c (update_current_target): Update.
12278 * remote.c (remote_trace_find): Add 'self' argument.
12279 * ctf.c (ctf_trace_find): Add 'self' argument.
12281 2014-02-19 Tom Tromey <tromey@redhat.com>
12283 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12284 (target_trace_stop): Add argument.
12285 * target.c (update_current_target): Update.
12286 * remote.c (remote_trace_stop): Add 'self' argument.
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12290 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12291 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12293 (target_get_tracepoint_status): Add argument.
12294 * target.c (update_current_target): Update.
12295 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12299 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12300 * target.h (struct target_ops) <to_get_trace_status>: Add
12302 (target_get_trace_status): Add argument.
12303 * target.c (update_current_target): Update.
12304 * remote.c (remote_get_trace_status): Add 'self' argument.
12305 (remote_start_remote, remote_can_download_tracepoint): Update.
12306 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12308 2014-02-19 Tom Tromey <tromey@redhat.com>
12310 * target.h (struct target_ops) <to_trace_start>: Add argument.
12311 (target_trace_start): Add argument.
12312 * target.c (update_current_target): Update.
12313 * remote.c (remote_trace_start): Add 'self' argument.
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12317 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12319 (target_trace_set_readonly_regions): Add argument.
12320 * target.c (update_current_target): Update.
12321 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12324 2014-02-19 Tom Tromey <tromey@redhat.com>
12326 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12328 (target_disable_tracepoint): Add argument.
12329 * target.c (update_current_target): Update.
12330 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12334 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12336 (target_enable_tracepoint): Add argument.
12337 * target.c (update_current_target): Update.
12338 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12340 2014-02-19 Tom Tromey <tromey@redhat.com>
12342 * target.h (struct target_ops) <to_download_trace_state_variable>:
12344 (target_download_trace_state_variable): Add argument.
12345 * target.c (update_current_target): Update.
12346 * remote.c (remote_download_trace_state_variable): Add 'self'
12349 2014-02-19 Tom Tromey <tromey@redhat.com>
12351 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12353 (target_can_download_tracepoint): Add argument.
12354 * target.c (update_current_target): Update.
12355 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12357 2014-02-19 Tom Tromey <tromey@redhat.com>
12359 * target.h (struct target_ops) <to_download_tracepoint>: Add
12361 (target_download_tracepoint): Add argument.
12362 * target.c (update_current_target): Update.
12363 * remote.c (remote_download_tracepoint): Add 'self' argument.
12365 2014-02-19 Tom Tromey <tromey@redhat.com>
12367 * target.h (struct target_ops) <to_trace_init>: Add argument.
12368 (target_trace_init): Add argument.
12369 * target.c (update_current_target): Update.
12370 * remote.c (remote_trace_init): Add 'self' argument.
12372 2014-02-19 Tom Tromey <tromey@redhat.com>
12374 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12375 * target.c (target_fileio_readlink): Add argument.
12376 * remote.c (remote_hostio_readlink): Add 'self' argument.
12377 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12379 2014-02-19 Tom Tromey <tromey@redhat.com>
12381 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12382 * target.c (target_fileio_unlink): Add argument.
12383 * remote.c (remote_hostio_unlink): Add 'self' argument.
12384 (remote_file_delete): Update.
12385 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12387 2014-02-19 Tom Tromey <tromey@redhat.com>
12389 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12390 * target.c (target_fileio_close): Add argument.
12391 * remote.c (remote_hostio_close): Add 'self' argument.
12392 (remote_hostio_close_cleanup): Update.
12393 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12395 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12397 2014-02-19 Tom Tromey <tromey@redhat.com>
12399 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12400 * target.c (target_fileio_pread): Add argument.
12401 * remote.c (remote_hostio_pread): Add 'self' argument.
12402 (remote_bfd_iovec_pread, remote_file_get): Update.
12403 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12405 2014-02-19 Tom Tromey <tromey@redhat.com>
12407 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12408 * target.c (target_fileio_pwrite): Add argument.
12409 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12410 (remote_file_put): Update.
12411 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12413 2014-02-19 Tom Tromey <tromey@redhat.com>
12415 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12416 * target.c (target_fileio_open): Add argument.
12417 * remote.c (remote_hostio_open): Add 'self' argument.
12418 (remote_bfd_iovec_open): Add 'self' argument.
12419 (remote_file_put): Add 'self' argument.
12420 (remote_file_get): Add 'self' argument.
12421 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12423 2014-02-19 Tom Tromey <tromey@redhat.com>
12425 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12427 (target_can_run_breakpoint_commands): Add argument.
12428 * target.c (update_current_target): Update.
12429 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12431 (remote_insert_breakpoint): Add 'self' argument.
12432 (remote_insert_hw_breakpoint): Add 'self' argument.
12433 (remote_can_run_breakpoint_commands): Add 'self' argument.
12435 2014-02-19 Tom Tromey <tromey@redhat.com>
12437 * target.h (struct target_ops)
12438 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12439 (target_supports_evaluation_of_breakpoint_conditions): Add
12441 * target.c (update_current_target): Update.
12442 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12444 (remote_insert_breakpoint): Add 'self' argument.
12445 (remote_insert_hw_breakpoint): Add 'self' argument.
12446 (remote_supports_cond_breakpoints): Add 'self' argument.
12448 2014-02-19 Tom Tromey <tromey@redhat.com>
12450 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12452 (target_supports_string_tracing): Add argument.
12453 * target.c (update_current_target): Update.
12454 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12456 2014-02-19 Tom Tromey <tromey@redhat.com>
12458 * target.h (struct target_ops)
12459 <to_supports_disable_randomization>: Add argument.
12460 * target.c (find_default_supports_disable_randomization): Add
12462 (target_supports_disable_randomization): Add argument.
12463 (find_default_supports_disable_randomization): Add 'self'
12465 * remote.c (extended_remote_supports_disable_randomization): Add
12467 (remote_supports_disable_randomization): Add 'self' argument.
12468 (extended_remote_create_inferior): Update.
12469 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12472 2014-02-19 Tom Tromey <tromey@redhat.com>
12474 * target.h (struct target_ops)
12475 <to_supports_enable_disable_tracepoint>: Add argument.
12476 (target_supports_enable_disable_tracepoint): Add argument.
12477 * target.c (update_current_target): Update.
12478 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12481 2014-02-19 Tom Tromey <tromey@redhat.com>
12483 * target.h (struct target_ops) <to_supports_multi_process>: Add
12485 (target_supports_multi_process): Add argument.
12486 * target.c (update_current_target): Update.
12487 * remote.c (remote_supports_multi_process): Add 'self' argument.
12488 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12490 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12493 2014-02-19 Tom Tromey <tromey@redhat.com>
12495 * target.h (struct target_ops) <to_execution_direction>: Add
12497 (target_execution_direction): Add argument.
12498 * target.c (default_execution_direction): Add 'self' argument.
12499 * record-full.c (record_full_execution_direction): Add 'self'
12502 2014-02-19 Tom Tromey <tromey@redhat.com>
12504 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12506 (target_can_execute_reverse): Add argument.
12507 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12508 * record-full.c (record_full_can_execute_reverse): Add 'self'
12510 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12513 2014-02-19 Tom Tromey <tromey@redhat.com>
12515 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12516 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12518 (target_get_ada_task_ptid): Add argument.
12519 * target.c (update_current_target): Update.
12520 (default_get_ada_task_ptid): Add 'self' argument.
12521 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12522 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12523 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12525 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12527 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12529 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12531 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12532 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12535 2014-02-19 Tom Tromey <tromey@redhat.com>
12537 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12538 (target_goto_bookmark): Add argument.
12539 * target.c (dummy_goto_bookmark): Add 'self' argument.
12540 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12542 2014-02-19 Tom Tromey <tromey@redhat.com>
12544 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12545 (target_get_bookmark): Add argument.
12546 * target.c (dummy_get_bookmark): Add 'self' argument.
12547 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12549 2014-02-19 Tom Tromey <tromey@redhat.com>
12551 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12553 (target_make_corefile_notes): Add argument.
12554 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12555 * procfs.c (procfs_make_note_section): Add 'self' argument.
12556 (procfs_make_note_section): Add 'self' argument.
12557 (procfs_make_note_section): Add 'self' argument.
12558 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12560 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12561 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12562 * exec.c (exec_make_note_section): Add 'self' argument.
12563 (exec_make_note_section): Add 'self' argument.
12565 2014-02-19 Tom Tromey <tromey@redhat.com>
12567 * target.h (struct target_ops) <to_find_memory_regions>: Add
12569 (target_find_memory_regions): Add argument.
12570 * target.c (dummy_find_memory_regions): Add 'self' argument.
12571 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12572 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12573 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12574 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12575 * exec. (exec_do_find_memory_regions): New global.
12576 (exec_set_find_memory_regions): Rewrite.
12577 (exec_find_memory_regions): New function.
12578 (init_exec_ops): Use exec_find_memory_regions.
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12582 * target.h (struct target_ops) <to_supports_non_stop>: Add
12584 * target.c (find_default_supports_non_stop): Add argument.
12585 (target_supports_non_stop): Add argument.
12586 (find_default_supports_non_stop): Add 'self' argument.
12587 * remote.c (remote_supports_non_stop): Add 'self' argument.
12588 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12590 2014-02-19 Tom Tromey <tromey@redhat.com>
12592 * target.h (struct target_ops) <to_log_command>: Add argument.
12593 (target_log_command): Add argument.
12594 * serial.h (serial_log_command): Add 'self' argument.
12595 * serial.c (serial_log_command): Add 'self' argument.
12597 2014-02-19 Tom Tromey <tromey@redhat.com>
12599 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12600 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12602 (target_pid_to_exec_file): Add argument.
12603 * target.c (debug_to_pid_to_exec_file): Add argument.
12604 (update_current_target): Update.
12605 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12606 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12607 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12608 (linux_handle_extended_wait): Update.
12609 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12610 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12611 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12612 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12614 2014-02-19 Tom Tromey <tromey@redhat.com>
12616 * target.h (struct target_ops) <to_rcmd>: Add argument.
12617 (target_rcmd): Add argument.
12618 * target.c (debug_to_rcmd): Add argument.
12619 (update_current_target, do_monitor_command): Update.
12620 * remote.c (remote_rcmd): Add 'self' argument.
12621 * monitor.c (monitor_rcmd): Add 'self' argument.
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12625 * windows-nat.c (windows_stop): Add 'self' argument.
12626 * target.h (struct target_ops) <to_stop>: Add argument.
12627 * target.c (target_stop): Add argument.
12628 (debug_to_stop): Add argument.
12629 (update_current_target): Update.
12630 * remote.c (remote_stop): Add 'self' argument.
12631 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12632 (gdbsim_cntrl_c): Update.
12633 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12634 * procfs.c (procfs_stop): Add 'self' argument.
12635 * nto-procfs.c (procfs_stop): Add 'self' argument.
12636 * monitor.c (monitor_stop): Add 'self' argument.
12637 (monitor_open): Update.
12638 * linux-nat.c (linux_nat_stop): Add argument.
12639 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12640 * gnu-nat.c (gnu_stop): Add 'self' argument.
12641 * darwin-nat.c (darwin_stop): Add 'self' argument.
12643 2014-02-19 Tom Tromey <tromey@redhat.com>
12645 * target.h (struct target_ops) <to_thread_name>: Add argument.
12646 * target.c (target_thread_name): Add argument.
12647 (update_current_target): Update.
12648 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12650 2014-02-19 Tom Tromey <tromey@redhat.com>
12652 * target.h (struct target_ops) <to_extra_thread_info>: Add
12654 (target_extra_thread_info): Add argument.
12655 * target.c (update_current_target): Update.
12656 * remote.c (remote_threads_extra_info): Add 'self' argument.
12657 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12659 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12660 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12661 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12663 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12665 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12667 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12670 2014-02-19 Tom Tromey <tromey@redhat.com>
12672 * target.h (struct target_ops) <to_program_signals>: Add argument.
12673 * target.c (target_program_signals): Add argument.
12674 * remote.c (remote_program_signals): Add 'self' argument.
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12678 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12679 * target.c (target_pass_signals): Add argument.
12680 * remote.c (remote_pass_signals): Add 'self' argument.
12681 (remote_start_remote): Update.
12682 * procfs.c (procfs_pass_signals): Add 'self' argument.
12683 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12684 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12685 (linux_nat_create_inferior, linux_nat_attach): Update.
12687 2014-02-19 Tom Tromey <tromey@redhat.com>
12689 * windows-nat.c (windows_can_run): Add 'self' argument.
12690 * target.h (struct target_ops) <to_can_run>: Add argument.
12691 (target_can_run): Add argument.
12692 * target.c (debug_to_can_run): Add argument.
12693 (update_current_target): Update.
12694 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12695 * inf-child.c (inf_child_can_run): Add 'self' argument.
12696 * go32-nat.c (go32_can_run): Add 'self' argument.
12698 2014-02-19 Tom Tromey <tromey@redhat.com>
12700 * target.h (struct target_ops) <to_has_exited>: Add argument.
12701 (target_has_exited): Add argument.
12702 * target.c (debug_to_has_exited): Add argument.
12703 (update_current_target): Update.
12705 2014-02-19 Tom Tromey <tromey@redhat.com>
12707 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12709 (target_set_syscall_catchpoint): Add argument.
12710 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12712 * target.c (update_current_target): Update.
12714 2014-02-19 Tom Tromey <tromey@redhat.com>
12716 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12718 (target_remove_exec_catchpoint): Add argument.
12719 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12720 (update_current_target): Update.
12721 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12726 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12728 (target_insert_exec_catchpoint): Add argument.
12729 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12730 (update_current_target): Update.
12731 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12734 2014-02-19 Tom Tromey <tromey@redhat.com>
12736 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12738 (target_remove_vfork_catchpoint): Add argument.
12739 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12740 (update_current_target): Update.
12741 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12746 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12748 (target_insert_vfork_catchpoint): Add argument.
12749 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12750 (update_current_target): Update.
12751 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12754 2014-02-19 Tom Tromey <tromey@redhat.com>
12756 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12758 (target_remove_fork_catchpoint): Add argument.
12759 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12760 (update_current_target): Update.
12761 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12764 2014-02-19 Tom Tromey <tromey@redhat.com>
12766 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12768 (target_insert_fork_catchpoint): Add argument.
12769 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12770 (update_current_target): Update.
12771 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12774 2014-02-19 Tom Tromey <tromey@redhat.com>
12776 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12778 (target_post_startup_inferior): Add argument.
12779 * target.c (debug_to_post_startup_inferior): Add argument.
12780 (update_current_target): Update.
12781 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12783 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12785 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12787 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12789 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12791 (super_post_startup_inferior): Likewise.
12792 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12794 (super_post_startup_inferior): Likewise.
12795 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12796 Add 'self' argument.
12797 (super_post_startup_inferior): Likewise.
12799 2014-02-19 Tom Tromey <tromey@redhat.com>
12801 * target.h (struct target_ops) <to_load>: Add argument.
12802 * target.c (target_load): Add argument.
12803 (debug_to_load): Add argument.
12804 (update_current_target): Update.
12805 * remote.c (remote_load): Add 'self' argument.
12806 * remote-sim.c (gdbsim_load): Add 'self' argument.
12807 * remote-mips.c (mips_load): Add 'self' argument.
12808 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12809 * monitor.c (monitor_load): Add 'self' argument.
12810 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12812 2014-02-19 Tom Tromey <tromey@redhat.com>
12814 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12815 (target_terminal_info): Add argument.
12816 * target.c (debug_to_terminal_info): Add argument.
12817 (default_terminal_info): Likewise.
12818 * inflow.c (child_terminal_info): Add 'self' argument.
12819 * inferior.h (child_terminal_info): Add 'self' argument.
12820 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12824 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12826 (target_terminal_save_ours): Add argument.
12827 * target.c (debug_to_terminal_save_ours): Add argument.
12828 (update_current_target): Update.
12829 * inflow.c (terminal_save_ours): Add 'self' argument.
12830 * inferior.h (terminal_save_ours): Add 'self' argument.
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12834 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12835 (target_terminal_ours): Add argument.
12836 * target.c (debug_to_terminal_ours): Add argument.
12837 (update_current_target): Update.
12838 * remote.c (remote_terminal_ours): Add 'self' argument.
12839 (remote_close): Update.
12840 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12841 * inflow.c (terminal_ours): Add 'self' argument.
12842 * inferior.h (terminal_ours): Add 'self' argument.
12843 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12845 2014-02-19 Pedro Alves <palves@redhat.com>
12846 Tom Tromey <tromey@redhat.com>
12848 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12850 (target_terminal_ours_for_output): Add argument.
12851 * target.c (debug_to_terminal_ours_for_output): Add argument.
12852 (update_current_target): Update.
12853 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12854 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12855 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12857 2014-02-19 Tom Tromey <tromey@redhat.com>
12859 * target.h (struct target_ops) <to_terminal_inferior>: Add
12861 * target.c (target_terminal_inferior): Add argument.
12862 (update_current_target): Update.
12863 * remote.c (remote_terminal_inferior): Add 'self' argument.
12864 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12865 * inflow.c (terminal_inferior): Add 'self' argument.
12866 * inferior.h (terminal_inferior): Add 'self' argument.
12867 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12868 (go32_terminal_inferior): Add 'self' argument.
12870 2014-02-19 Tom Tromey <tromey@redhat.com>
12872 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12873 (target_terminal_init): Add argument.
12874 * target.c (debug_to_terminal_init): Add argument.
12875 (update_current_target): Update.
12876 * inflow.c (terminal_init_inferior): Add 'self' argument.
12877 * inferior.h (terminal_init_inferior): Add 'self' argument.
12878 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12879 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12881 2014-02-19 Tom Tromey <tromey@redhat.com>
12883 * target.h (struct target_ops)
12884 <to_can_accel_watchpoint_condition>: Add argument.
12885 (target_can_accel_watchpoint_condition): Add argument.
12886 * target.c (debug_to_can_accel_watchpoint_condition): Add
12888 (update_current_target): Update.
12889 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12892 2014-02-19 Tom Tromey <tromey@redhat.com>
12894 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12896 (target_region_ok_for_hw_watchpoint): Add argument.
12897 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12898 (default_region_ok_for_hw_watchpoint): Add argument.
12899 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12900 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12902 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12904 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12906 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12908 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12910 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12912 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12913 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12915 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12916 Add 'self' argument.
12918 2014-02-19 Tom Tromey <tromey@redhat.com>
12920 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12922 (target_insert_watchpoint): Add argument.
12923 * target.c (debug_to_insert_watchpoint): Add argument.
12924 (update_current_target): Update.
12925 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12926 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12927 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12928 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12929 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12930 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12932 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12933 (procfs_insert_hw_watchpoint): Add 'self' argument.
12934 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12936 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12938 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12940 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12941 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12943 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12946 2014-02-19 Tom Tromey <tromey@redhat.com>
12948 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12950 (target_remove_watchpoint): Add argument.
12951 * target.c (debug_to_remove_watchpoint): Add argument.
12952 (update_current_target): Update.
12953 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12954 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12955 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12956 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12957 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12958 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12960 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12961 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12963 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12965 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12967 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12968 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12970 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12973 2014-02-19 Tom Tromey <tromey@redhat.com>
12975 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12977 (target_remove_hw_breakpoint): Add argument.
12978 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12979 (update_current_target): Update.
12980 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12981 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12983 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12984 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12986 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12989 2014-02-19 Tom Tromey <tromey@redhat.com>
12991 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12993 (target_insert_hw_breakpoint): Add argument.
12994 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12995 (update_current_target): Update.
12996 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12997 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12999 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13000 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13001 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13003 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13006 2014-02-19 Tom Tromey <tromey@redhat.com>
13008 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13010 (target_can_use_hardware_watchpoint): Add argument.
13011 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13012 (update_current_target): Update.
13013 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13015 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13017 * remote.c (remote_check_watch_resources): Add 'self' argument.
13018 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13019 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13021 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13022 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13024 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13026 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13028 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13030 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13032 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13034 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13035 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13037 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13040 2014-02-19 Tom Tromey <tromey@redhat.com>
13042 * target.h (struct target_ops) <to_post_attach>: Add argument.
13043 (target_post_attach): Add argument.
13044 * target.c (debug_to_post_attach): Add argument.
13045 (update_current_target): Update.
13046 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13047 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13048 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13049 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13050 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13052 2014-02-19 Tom Tromey <tromey@redhat.com>
13054 * windows-nat.c (windows_close): Add 'self' argument.
13055 * tracepoint.c (tfile_close): Add 'self' argument.
13056 * target.h (struct target_ops) <to_close>: Add argument.
13057 * target.c (target_close): Add argument.
13058 (update_current_target): Update.
13059 * remote.c (remote_close): Add 'self' argument.
13060 * remote-sim.c (gdbsim_close): Add 'self' argument.
13061 * remote-mips.c (mips_close): Add 'self' argument.
13062 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13063 * record-full.c (record_full_close): Add 'self' argument.
13064 * record-btrace.c (record_btrace_close): Add 'self' argument.
13065 * monitor.h (monitor_close): Add 'self' argument.
13066 * monitor.c (monitor_close): Add 'self' argument.
13067 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13068 * linux-nat.c (linux_nat_close): Add argument.
13069 * go32-nat.c (go32_close): Add 'self' argument.
13070 * exec.c (exec_close_1): Add 'self' argument.
13071 * ctf.c (ctf_close): Add 'self' argument.
13072 * corelow.c (core_close): Add 'self' argument.
13073 (core_close_cleanup): Update.
13074 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13075 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13077 2014-02-19 Tom Tromey <tromey@redhat.com>
13079 * remote.c (remote_load): New function.
13080 (init_remote_ops): Use it.
13082 2014-02-19 Tom Tromey <tromey@redhat.com>
13084 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13086 * common/linux-btrace.h (linux_supports_btrace): Update.
13087 * remote.c (remote_supports_btrace): Add "self" argument.
13088 * target-delegates.c: Rebuild.
13089 * target.c (target_supports_btrace): Remove.
13090 * target.h (struct target_ops) <to_supports_btrace>: Add
13091 target_ops argument.
13092 (target_supports_btrace): New define.
13094 2014-02-19 Tom Tromey <tromey@redhat.com>
13096 * record-full.c (record_full_beneath_to_resume_ops)
13097 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13098 (record_full_beneath_to_wait)
13099 (record_full_beneath_to_store_registers_ops)
13100 (record_full_beneath_to_store_registers)
13101 (record_full_beneath_to_xfer_partial_ops)
13102 (record_full_beneath_to_xfer_partial)
13103 (record_full_beneath_to_insert_breakpoint_ops)
13104 (record_full_beneath_to_insert_breakpoint)
13105 (record_full_beneath_to_remove_breakpoint_ops)
13106 (record_full_beneath_to_remove_breakpoint)
13107 (record_full_beneath_to_stopped_by_watchpoint)
13108 (record_full_beneath_to_stopped_data_address)
13109 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13110 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13111 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13112 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13113 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13114 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13115 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13116 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13117 (record_full_resume, record_full_wait_1)
13118 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13119 (record_full_store_registers, record_full_xfer_partial)
13120 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13121 (record_full_async, record_full_core_xfer_partial): Use target
13123 * target-delegates.c: Rebuild.
13124 * target.c (current_xfer_partial): Remove.
13125 (update_current_target): Do not INHERIT or de_fault
13126 to_insert_breakpoint, to_remove_breakpoint,
13127 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13128 to_is_async_p, to_async. Do not set to_xfer_partial field.
13129 (default_xfer_partial): Simplify.
13130 (current_xfer_partial): Remove.
13131 (target_wait, target_resume): Simplify.
13132 (find_default_can_async_p, find_default_is_async_p): Update.
13133 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13134 to_xfer_partial, to_stopped_by_watchpoint,
13135 to_stopped_data_address.
13136 (target_store_registers): Simplify.
13137 (forward_target_remove_breakpoint)
13138 (forward_target_insert_breakpoint): Remove.
13139 (target_remove_breakpoint, target_insert_breakpoint)
13140 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13141 * target.h (struct target_ops) <to_resume, to_wait,
13142 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13143 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13144 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13146 (forward_target_remove_breakpoint)
13147 (forward_target_insert_breakpoint): Remove.
13148 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13150 (record_btrace_insert_breakpoint): Delegate directly.
13152 2014-02-19 Tom Tromey <tromey@redhat.com>
13155 * target-delegates.c: New file.
13156 * target.c: Include target-delegates.c.
13157 (init_dummy_target): Call install_dummy_methods.
13158 (complete_target_initialization): Call install_delegators.
13159 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13160 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13161 * make-target-delegates: New file.
13163 2014-02-19 Tom Tromey <tromey@redhat.com>
13165 * record.c (find_record_target): Use find_target_at.
13166 * target.c (find_target_at): New function.
13167 * target.h (find_target_at): Declare.
13169 2014-02-19 Tom Tromey <tromey@redhat.com>
13171 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13172 Add 'ops' argument.
13173 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13175 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13176 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13178 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13180 * linux-nat.c (save_sigtrap): Update.
13181 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13182 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13183 (linux_nat_close): Update.
13184 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13186 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13188 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13189 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13190 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13191 (tmp_to_async): Add 'ops' argument.
13192 (record_full_stopped_by_watchpoint, record_full_async)
13193 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13195 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13196 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13197 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13198 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13199 (remote_is_async_p, remote_async): Add 'ops' argument.
13200 (remote_stopped_data_address): Update.
13201 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13202 * target.c (update_current_target)
13203 (find_default_can_async_p, find_default_is_async_p): Update.
13204 (init_dummy_target): Update.
13205 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13206 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13207 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13208 (target_can_async_p, target_is_async_p, target_async)
13209 (target_stopped_by_watchpoint): Update.
13211 2014-02-19 Yao Qi <yao@codesourcery.com>
13214 * gdbarch.sh: Remove startup_gdbarch.
13215 * gdbarch.c: Regenerated.
13216 * gdbarch.h: Likewise.
13218 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13220 * rl78-tdep.c (rl78_g10_register_name): New function.
13221 (rl78_return_value): Add g10 support.
13222 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13225 2014-02-17 Doug Evans <xdje42@gmail.com>
13227 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13228 (SUBDIR_GUILE_SRCS): Ditto.
13229 (scm-gsmob.o): Ditto.
13231 2014-02-17 Yao Qi <yao@codesourcery.com>
13233 * gnu-nat.c (ILL_RPC): Declare defined function.
13235 2014-02-17 Yao Qi <yao@codesourcery.com>
13237 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13238 mach_msg_type_number_t.
13239 (gnu_write_inferior): Likewise.
13241 2014-02-17 Yao Qi <yao@codesourcery.com>
13243 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13245 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13246 (inf_validate_procs, inf_signal): Likewise.
13247 (S_exception_raise_request): Likewise.
13248 (do_mach_notify_dead_name): Likewise.
13249 (steal_exc_port): Likewise.
13250 (gnu_read_inferior): Change 'copy_count''s type to
13251 mach_msg_type_number_t.
13252 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13255 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13257 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13258 flag. Adjust all users; in particular...
13259 (gnu_wait): ..., don't decrement its value in here...
13260 (gnu_create_inferior): ..., and instead set the flag in here,
13261 around the startup_inferior call, and call that one with
13262 START_INFERIOR_TRAPS_EXPECTED.
13264 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13265 (ILL_RPC): ... new macro.
13266 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13267 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13268 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13269 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13270 functions with ILL_RPC macro.
13271 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13272 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13273 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13274 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13275 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13276 (S_proc_getlogin_reply, S_proc_getsid_reply)
13277 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13278 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13279 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13280 (S_proc_getnports_reply, S_proc_is_important_reply)
13281 (S_proc_get_code_reply): New stub functions, generated with
13284 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13285 collected the type check structures.
13287 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13289 2014-02-14 Doug Evans <dje@google.com>
13291 * target.c (target_write_partial): Fix result type.
13293 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13295 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13296 the proper offsets to access fpregset_t.
13298 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13300 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13301 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13302 * h8300-tdep.c (setmachinelist): Remove global.
13303 * hppa-tdep.c (hppa_sigtramp): Remove global.
13304 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13305 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13306 * ravenscar-thread.c (update_target_observer): Remove global.
13307 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13309 2014-02-12 Tom Tromey <tromey@redhat.com>
13311 * common/rsp-low.c: Update comments.
13312 * common/rsp-low.h: Update comments.
13314 2014-02-12 Tom Tromey <tromey@redhat.com>
13316 * common/rsp-low.c (convert_ascii_to_int): Remove.
13317 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13319 2014-02-12 Tom Tromey <tromey@redhat.com>
13321 * common/rsp-low.h (unhexify): Don't declare.
13322 * common/rsp-low.c (unhexify): Remove.
13324 2014-02-12 Tom Tromey <tromey@redhat.com>
13326 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13327 * common/rsp-low.c (convert_int_to_ascii): Remove.
13329 2014-02-12 Tom Tromey <tromey@redhat.com>
13331 * common/rsp-low.h (hexify): Don't declare.
13332 * common/rsp-low.c (hexify): Remove.
13334 2014-02-12 Tom Tromey <tromey@redhat.com>
13336 * common/rsp-low.c (hexify): Never take strlen of argument.
13338 2014-02-12 Tom Tromey <tromey@redhat.com>
13340 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13341 * remote.c (extended_remote_run, remote_rcmd)
13342 (remote_download_trace_state_variable, remote_save_trace_data)
13343 (remote_set_trace_notes): Update.
13344 * tracepoint.c (encode_source_string, tfile_write_status)
13345 (tfile_write_uploaded_tsv): Update.
13347 2014-02-12 Tom Tromey <tromey@redhat.com>
13349 * tracepoint.c: Include rsp-low.h.
13350 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13351 * remote.c: Include rsp-low.h.
13352 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13353 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13354 (remote_unescape_input): Move to common/rsp-low.c.
13355 * common/rsp-low.h: New file.
13356 * common/rsp-low.c: New file.
13357 * Makefile.in (SFILES): Add common/rsp-low.c.
13358 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13359 (COMMON_OBS): Add rsp-low.o.
13360 (rsp-low.o): New target.
13362 2014-02-12 Tom Tromey <tromey@redhat.com>
13364 * utils.h: Include print-utils.h.
13365 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13366 (int_string, core_addr_to_string, core_addr_to_string_nz)
13367 (hex_string, hex_string_custom): Don't declare.
13368 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13369 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13370 (hex_string_custom, int_string, core_addr_to_string)
13371 (core_addr_to_string_nz, host_address_to_string): Move to
13372 common/print-utils.c.
13373 * common/print-utils.h: New file.
13374 * common/print-utils.c: New file
13375 * Makefile.in (SFILES): Add common/print-utils.c.
13376 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13377 (COMMON_OBS): Add print-utils.o.
13378 (print-utils.o): New target.
13380 2014-02-12 Tom Tromey <tromey@redhat.com>
13382 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13384 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13386 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13388 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13390 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13391 if a PT_IO ptrace request returns sucessfully but indicates that 0
13392 bytes were transferred.
13394 2014-02-12 Pedro Alves <palves@redhat.com>
13395 Kevin Buettner <kevinb@redhat.com>
13397 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13398 TYPE_INSTANCE_FLAG_CODE_SPACE.
13400 2014-02-12 Pedro Alves <palves@redhat.com>
13402 * h8300-tdep.c (pseudo_from_raw_register)
13403 (raw_from_pseudo_register): New functions.
13404 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13407 2014-02-12 Pedro Alves <palves@redhat.com>
13409 * h8300-tdep.c (h8300_register_sim_regno): New function.
13410 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13411 gdbarch_register_sim_regno hook.
13413 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13415 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13417 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13419 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13421 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13423 * obsd-tdep.h (obsd_init_abi): New prototype.
13424 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13425 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13426 (obsd_init_abi): New functions.
13427 * i386obsd-tdep.c: Include "obsd-tdep.h".
13428 (i386obsd_init_abi): Call obsd_init_abi.
13429 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13430 (amd64obsd_init_abi): Call obsd_init_abi.
13431 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13432 obsd-tdep.c to gdb_target_obs.
13434 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13436 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13437 double float arguments to 16-byte in the argument slots.
13439 2014-02-11 Doug Evans <xdje42@gmail.com>
13441 * configure.ac: Don't crash if pkg-config is not found and guile
13442 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13444 * configure: Regenerate.
13446 2014-02-11 Yao Qi <yao@codesourcery.com>
13448 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13449 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13450 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13451 * gnu-nat.c (gnu_xfer_memory): Likewise.
13452 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13453 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13454 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13455 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13457 2014-02-11 Yao Qi <yao@codesourcery.com>
13459 * target.h (enum target_xfer_error): Rename to ...
13460 (enum target_xfer_status): ... it. New. All users updated.
13461 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13463 (TARGET_XFER_STATUS_ERROR_P): New macro.
13464 (target_xfer_error_to_string): Remove declaration.
13465 (target_xfer_status_to_string): Declare.
13466 (target_xfer_partial_ftype): Adjust it.
13467 (struct target_ops) <to_xfer_partial>: Return
13468 target_xfer_status. Add argument xfered_len. Update
13470 * target.c (target_xfer_error_to_string): Rename to ...
13471 (target_xfer_status_to_string): ... it. New. All callers
13473 (target_read_live_memory): Likewise. Call target_xfer_partial
13474 instead of target_read.
13475 (memory_xfer_live_readonly_partial): Return
13476 target_xfer_status. Add argument xfered_len.
13477 (raw_memory_xfer_partial): Likewise.
13478 (memory_xfer_partial_1): Likewise.
13479 (memory_xfer_partial): Likewise.
13480 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13481 properly. Update debug message.
13482 (default_xfer_partial, current_xfer_partial): Likewise.
13483 (target_write_partial): Likewise.
13484 (target_read_partial): Likewise. All callers updated.
13485 (read_whatever_is_readable): Likewise.
13486 (target_write_with_progress): Likewise.
13487 (target_read_alloc_1): Likewise.
13489 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13490 * auxv.c (procfs_xfer_auxv): Likewise.
13491 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13492 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13493 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13494 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13495 * corefile.c (read_memory): Adjust.
13496 * corelow.c (core_xfer_partial): Likewise.
13497 * ctf.c (ctf_xfer_partial): Likewise.
13498 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13500 (darwin_xfer_partial): Likewise.
13501 * exec.c (section_table_xfer_memory_partial): Likewise. All
13503 (exec_xfer_partial): Likewise.
13504 * exec.h (section_table_xfer_memory_partial): Update
13506 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13508 (gnu_xfer_partial): Likewise.
13509 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13510 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13511 (ia64_hpux_xfer_solib_got): Likewise.
13512 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13513 type of 'partial_len' to ULONGEST.
13514 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13515 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13516 (linux_nat_xfer_partial): Likewise.
13517 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13518 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13519 * monitor.c (monitor_xfer_memory): Likewise.
13520 (monitor_xfer_partial): Likewise.
13521 * procfs.c (procfs_xfer_partial): Likewise.
13522 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13523 * record-full.c (record_full_xfer_partial): Likewise.
13524 (record_full_core_xfer_partial): Likewise.
13525 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13526 (gdbsim_xfer_partial): Likewise.
13527 * remote.c (remote_write_bytes_aux): Likewise. All callers
13529 (remote_write_bytes, remote_read_bytes): Likewise. All
13531 (remote_flash_erase): Likewise. All callers updated.
13532 (remote_write_qxfer): Likewise. All callers updated.
13533 (remote_read_qxfer): Likewise. All callers updated.
13534 (remote_xfer_partial): Likewise.
13535 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13536 (rs6000_xfer_shared_libraries): Likewise.
13537 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13538 (sol_thread_xfer_partial): Likewise.
13539 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13540 (sparc_xfer_partial): Likewise.
13541 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13543 (spu_xfer_partial): Likewise.
13544 * spu-multiarch.c (spu_xfer_partial): Likewise.
13545 * tracepoint.c (tfile_xfer_partial): Likewise.
13546 * windows-nat.c (windows_xfer_memory): Likewise.
13547 (windows_xfer_shared_libraries): Likewise.
13548 (windows_xfer_partial): Likewise.
13549 * valprint.c: Replace 'target_xfer_error' with
13550 'target_xfer_status' in comments.
13552 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13554 Checked in by Joel Brobecker <brobecker@adacore.com>.
13555 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13557 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13559 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13560 function parameters.
13562 2014-02-10 Will Newton <will.newton@linaro.org>
13564 * elfread.c (elf_rel_plt_read): Look for a .got section if
13565 looking up .got.plt fails.
13566 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13567 on address passed to elf_gnu_ifunc_record_cache.
13568 (elf_gnu_ifunc_resolve_addr): Likewise.
13569 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13571 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13573 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13574 (X_RETTURN): New macro.
13575 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13577 * sparc64-tdep.c (sparc64_init_abi): Hook
13578 sparc_in_function_epilogue_p.
13580 2014-02-10 Gary Benson <gbenson@redhat.com>
13582 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13583 Rename name_matcher to symbol_matcher.
13585 2014-02-10 Gary Benson <gbenson@redhat.com>
13587 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13588 Use expand_symtabs_file_matcher_ftype and
13589 expand_symtabs_symbol_matcher_ftype.
13591 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13593 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13594 (struct ada_symbol_cache): New.
13595 (ada_free_symbol_cache): Forward declare.
13596 (struct ada_pspace_data): New.
13597 (ada_pspace_data_handle): New static global.
13598 (get_ada_pspace_data, ada_pspace_data_cleanup)
13599 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13600 (cache_space, cache): Delete, now folded inside struct
13602 (ada_get_symbol_cache): New function.
13603 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13605 (_initialize_ada_language): Remove initialization of cache_space.
13606 Move call to observer_attach_inferior_exit up, grouping it
13607 with the other observer registrations inside this function.
13608 Rename command to be more general. Add call to
13609 register_program_space_data_with_cleanup.
13611 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13613 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13614 ada_new_objfile_observer.
13615 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13616 (_initialize_tasks): Update uses of ada_new_objfile_observer
13617 and ada_tasks_normal_stop_observer.
13619 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13621 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13622 returned by the 'Length attribute to integer.
13624 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13626 * ada-lang.c (_initialize_ada_language): Initialize
13627 cache_space obstack.
13629 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13631 * ada-lang.c (HASH_SIZE): New macro.
13632 (struct cache_entry): New type.
13633 (cache_space, cache): New static globals.
13634 (ada_clear_symbol_cache, find_entry): New functions.
13635 (lookup_cached_symbol, cache_symbol): Implement.
13636 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13637 (_initialize_ada_language): Attach ada_new_objfile_observer
13638 and ada_free_objfile_observer.
13640 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13642 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13643 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13644 struct block * parameter.
13645 (ada_lookup_symbol_list_worker): Constify local variable "block".
13646 Remove cast which is no longer necessary.
13648 2014-02-10 Doug Evans <xdje42@gmail.com>
13650 Add Guile as an extension language.
13651 * NEWS: Mention Guile scripting.
13652 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13653 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13654 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13655 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13656 (CLIBS): Add GUILE_LIBS.
13657 (install-guile): New rule.
13658 (guile.o): New rule.
13659 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13660 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13661 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13662 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13663 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13664 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13665 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13666 * configure.ac: New option --with-guile.
13667 * configure: Regenerate.
13668 * config.in: Regenerate.
13669 * auto-load.c: Remove #include "python/python.h". Add #include
13670 "gdb/section-scripts.h".
13671 (source_section_scripts): Handle Guile scripts.
13672 (_initialize_auto_load): Add name of Guile objfile script to
13673 scripts-directory help text.
13674 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13675 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13676 (struct breakpoint): New member scm_bp_object.
13677 * defs.h (enum command_control_type): New value guile_control.
13678 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13680 (show_user): Update comment.
13681 (_initialize_cli_cmds): Update help text for "show user". Update help
13682 text for max-user-call-depth.
13683 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13685 (multi_line_command_p): Add guile_control.
13686 (print_command_lines): Handle guile_control.
13687 (execute_control_command, recurse_read_control_structure): Ditto.
13688 (process_next_line): Recognize "guile" commands.
13689 * disasm.c (gdb_disassemble_info): Make non-static.
13690 * disasm.h: #include "dis-asm.h".
13691 (struct gdbarch): Add forward decl.
13692 (gdb_disassemble_info): Declare.
13693 * extension.c: #include "guile/guile.h".
13694 (extension_languages): Add guile.
13695 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13696 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13697 * gdbtypes.c (get_unsigned_type_max): New function.
13698 (get_signed_type_minmax): New function.
13699 * gdbtypes.h (get_unsigned_type_max): Declare.
13700 (get_signed_type_minmax): Declare.
13701 * guile/README: New file.
13702 * guile/guile-internal.h: New file.
13703 * guile/guile.c: New file.
13704 * guile/guile.h: New file.
13705 * guile/scm-arch.c: New file.
13706 * guile/scm-auto-load.c: New file.
13707 * guile/scm-block.c: New file.
13708 * guile/scm-breakpoint.c: New file.
13709 * guile/scm-disasm.c: New file.
13710 * guile/scm-exception.c: New file.
13711 * guile/scm-frame.c: New file.
13712 * guile/scm-gsmob.c: New file.
13713 * guile/scm-iterator.c: New file.
13714 * guile/scm-lazy-string.c: New file.
13715 * guile/scm-math.c: New file.
13716 * guile/scm-objfile.c: New file.
13717 * guile/scm-ports.c: New file.
13718 * guile/scm-pretty-print.c: New file.
13719 * guile/scm-safe-call.c: New file.
13720 * guile/scm-string.c: New file.
13721 * guile/scm-symbol.c: New file.
13722 * guile/scm-symtab.c: New file.
13723 * guile/scm-type.c: New file.
13724 * guile/scm-utils.c: New file.
13725 * guile/scm-value.c: New file.
13726 * guile/lib/gdb.scm: New file.
13727 * guile/lib/gdb/boot.scm: New file.
13728 * guile/lib/gdb/experimental.scm: New file.
13729 * guile/lib/gdb/init.scm: New file.
13730 * guile/lib/gdb/iterator.scm: New file.
13731 * guile/lib/gdb/printing.scm: New file.
13732 * guile/lib/gdb/types.scm: New file.
13733 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13734 (VPATH): Add $(GUILE_SRCDIR).
13735 (GUILE_DIR): New variable.
13736 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13737 (all): Add stamp-guile dependency.
13738 (stamp-guile): New rule.
13739 (clean-guile, install-guile, uninstall-guile): New rules.
13740 (install-only): Add install-guile dependency.
13741 (uninstall): Add uninstall-guile dependency.
13742 (clean): Add clean-guile dependency.
13744 2014-02-09 Doug Evans <xdje42@gmail.com>
13746 Revert this patch (which I approved, mea culpa).
13748 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13750 * Makefile.in (all-lib): Remove.
13751 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13753 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13755 Fix Python stack corruption.
13756 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13759 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13761 * Makefile.in (all-lib): Remove.
13762 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13764 2014-02-07 Doug Evans <dje@google.com>
13766 * extension-priv.h (extension_language_script_ops): Add comment.
13767 (extension_language_ops): Add comment.
13768 (active_ext_lang_state): Fix typo in comment.
13770 2014-02-07 Pedro Alves <palves@redhat.com>
13772 PR breakpoints/16292
13773 * infrun.c (handle_signal_stop) <signal arrives while stepping
13774 over a breakpoint>: Switch back to the stepping thread.
13776 2014-02-07 Yao Qi <yao@codesourcery.com>
13778 * target.c (target_xfer_partial): Return zero if LEN is zero.
13780 2014-02-07 Yao Qi <yao@codesourcery.com>
13782 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13783 (ld_so_xfer_auxv): Likewise.
13784 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13785 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13786 * corelow.c (core_xfer_partial): Likewise.
13787 * ctf.c (ctf_xfer_partial): Likewise.
13788 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13789 (darwin_xfer_partial): Likewise.
13790 * exec.c (exec_xfer_partial): Likewise.
13791 * gnu-nat.c (gnu_xfer_partial): Likewise.
13792 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13793 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13794 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13795 * linux-nat.c (linux_xfer_siginfo): Likewise.
13796 (linux_proc_xfer_spu): Likewise.
13797 * procfs.c (procfs_xfer_partial): Likewise.
13798 * record-full.c (record_full_xfer_partial): Likewise.
13799 (record_full_core_xfer_partial): Likewise.
13800 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13801 * remote.c (remote_write_qxfer): Likewise.
13802 (remote_write_qxfer, remote_read_qxfer): Likewise.
13803 (remote_xfer_partial): Likewise.
13804 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13805 (rs6000_xfer_shared_libraries): Likewise.
13806 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13807 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13808 (spu_xfer_partial): Likewise.
13809 * target.c (memory_xfer_partial_1): Likewise.
13810 * tracepoint.c (tfile_xfer_partial): Likewise.
13811 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13812 (windows_xfer_partial): Likewise.
13814 2014-02-07 Yao Qi <yao@codesourcery.com>
13816 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13818 (core_xfer_shared_libraries_aix): Likewise.
13819 * gdbarch.c, gdbarch.h: Regenerated.
13820 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13821 ULONGEST. Change 'len_avail' type to ULONGEST.
13822 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13823 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13825 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13827 2014-02-07 Yao Qi <yao@codesourcery.com>
13829 * corefile.c (memory_error): Get 'exception' from ERR and pass
13830 'exception' to throw_error.
13832 2014-02-06 Doug Evans <xdje42@gmail.com>
13834 * configure.ac (libpython checking): Remove all but python.o from
13835 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13836 * configure: Regenerate.
13838 * Makefile.in (SFILES): Add extension.c.
13839 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13840 (COMMON_OBS): Add extension.o.
13841 * extension.h: New file.
13842 * extension-priv.h: New file.
13843 * extension.c: New file.
13845 * python/python-internal.h: #include "extension.h".
13846 (gdbpy_auto_load_enabled): Declare.
13847 (gdbpy_apply_val_pretty_printer): Declare.
13848 (gdbpy_apply_frame_filter): Declare.
13849 (gdbpy_preserve_values): Declare.
13850 (gdbpy_breakpoint_cond_says_stop): Declare.
13851 (gdbpy_breakpoint_has_cond): Declare.
13852 (void source_python_script_for_objfile): Delete.
13853 * python/python.c: #include "extension-priv.h".
13854 Delete inclusion of "observer.h".
13855 (extension_language_python): Moved here and renamed from
13856 script_language_python in py-auto-load.c.
13857 Redefined to be of type extension_language_defn.
13858 (python_extension_script_ops): New global.
13859 (python_extension_ops): New global.
13860 (struct python_env): New member previous_active.
13861 (restore_python_env): Call restore_active_ext_lang.
13862 (ensure_python_env): Call set_active_ext_lang.
13863 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13865 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13867 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13869 (gdbpy_eval_from_control_command): Renamed from
13870 eval_python_from_control_command, made static. New arg extlang.
13871 (gdbpy_source_script) Renamed from source_python_script, made static.
13873 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13874 result to int. New arg extlang.
13875 (gdbpy_source_objfile_script): Renamed from
13876 source_python_script_for_objfile, made static. New arg extlang.
13877 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13878 static. New args extlang, extlang_printers. Change result type to
13880 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13881 static. New arg extlang. Rename arg printers to extlang_printers
13882 and change type to ext_lang_type_printers *.
13883 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13884 static. Replace argument arg with extlang, extlang_printers.
13885 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13886 (!HAVE_PYTHON, source_python_script): Delete.
13887 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13888 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13889 (!HAVE_PYTHON, start_type_printers): Delete.
13890 (!HAVE_PYTHON, apply_type_printers): Delete.
13891 (!HAVE_PYTHON, free_type_printers): Delete.
13892 (_initialize_python): Delete call to observer_attach_before_prompt.
13893 (finalize_python): Set/restore active extension language.
13894 (gdbpy_finish_initialization) Renamed from
13895 finish_python_initialization, made static. New arg extlang.
13896 (gdbpy_initialized): New function.
13897 * python/python.h: #include "extension.h". Delete #include
13898 "value.h", "mi/mi-cmds.h".
13899 (extension_language_python): Declare.
13900 (GDBPY_AUTO_FILE_NAME): Delete.
13901 (enum py_bt_status): Moved to extension.h and renamed to
13902 ext_lang_bt_status.
13903 (enum frame_filter_flags): Moved to extension.h.
13904 (enum py_frame_args): Moved to extension.h and renamed to
13905 ext_lang_frame_args.
13906 (finish_python_initialization): Delete.
13907 (eval_python_from_control_command): Delete.
13908 (source_python_script): Delete.
13909 (apply_val_pretty_printer): Delete.
13910 (apply_frame_filter): Delete.
13911 (preserve_python_values): Delete.
13912 (gdbpy_script_language_defn): Delete.
13913 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13914 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13916 * auto-load.c: #include "extension.h".
13917 (GDB_AUTO_FILE_NAME): Delete.
13918 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13919 (script_language_gdb): Delete, moved to extension.c and renamed to
13920 extension_language_gdb.
13921 (source_gdb_script_for_objfile): Delete.
13922 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13923 (loaded_script): Change type of language member to
13924 struct extension_language_defn *.
13925 (init_loaded_scripts_info): Initialize
13926 unsupported_script_warning_printed.
13927 (maybe_add_script): Make static. Change type of language arg to
13928 struct extension_language_defn *.
13929 (clear_section_scripts): Reset unsupported_script_warning_printed.
13930 (auto_load_objfile_script_1): Rewrite to use extension language API.
13931 (auto_load_objfile_script): Make public. Remove support-compiled-in
13932 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13933 (source_section_scripts): Rewrite to use extension language API.
13934 (load_auto_scripts_for_objfile): Rewrite to use
13935 auto_load_scripts_for_objfile.
13936 (collect_matching_scripts_data): Change type of language member to
13937 struct extension_language_defn *.
13938 (auto_load_info_scripts): Change type of language arg to
13939 struct extension_language_defn *.
13940 (unsupported_script_warning_print): New function.
13941 (script_not_found_warning_print): Make static.
13942 (_initialize_auto_load): Rewrite construction of scripts-directory
13944 * auto-load.h (struct objfile): Add forward decl.
13945 (struct script_language): Delete.
13946 (struct auto_load_pspace_info): Add forward decl.
13947 (struct extension_language_defn): Add forward decl.
13948 (maybe_add_script): Delete.
13949 (auto_load_objfile_script): Declare.
13950 (script_not_found_warning_print): Delete.
13951 (auto_load_info_scripts): Update prototype.
13952 (auto_load_gdb_scripts_enabled): Declare.
13953 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13954 auto_load_python_scripts_enabled and made public.
13955 (script_language_python): Delete, moved to python.c.
13956 (gdbpy_script_language_defn): Delete.
13957 (info_auto_load_python_scripts): Update to use
13958 extension_language_python.
13960 * breakpoint.c (condition_command): Replace call to
13961 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13962 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13963 with call to breakpoint_ext_lang_cond_says_stop.
13964 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13965 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13966 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13967 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13969 (local_setattro): Print name of extension language with existing
13972 * valprint.c (val_print, value_print): Update to call
13973 apply_ext_lang_val_pretty_printer.
13974 * cp-valprint.c (cp_print_value): Update call to
13975 apply_ext_lang_val_pretty_printer.
13976 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13977 (gdbpy_apply_val_pretty_printer): Renamed from
13978 apply_val_pretty_printer. New arg extlang.
13979 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13981 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13982 extension language API.
13983 * cli/cli-script.c (execute_control_command): Update to call
13984 eval_ext_lang_from_control_command.
13986 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13987 enum ext_lang_bt_status values. Update call to
13988 apply_ext_lang_frame_filter.
13989 (mi_cmd_stack_list_locals): Ditto.
13990 (mi_cmd_stack_list_args): Ditto.
13991 (mi_cmd_stack_list_variables): Ditto.
13992 * mi/mi-main.c: Delete #include "python/python-internal.h".
13993 Add #include "extension.h".
13994 (mi_cmd_list_features): Replace reference to python internal variable
13995 gdb_python_initialized with call to ext_lang_initialized_p.
13997 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13998 Update to use enum ext_lang_frame_args. Update to call
13999 apply_ext_lang_frame_filter.
14000 * python/py-framefilter.c (extract_sym): Update to use enum
14001 ext_lang_bt_status.
14002 (extract_value, py_print_type, py_print_value): Ditto.
14003 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14004 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14005 (py_print_frame): Ditto.
14006 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14007 New arg extlang. Update to use enum ext_lang_bt_status.
14009 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14010 finish_python_initialization. Replace with call to
14011 finish_ext_lang_initialization.
14013 * typeprint.c (do_free_global_table): Update to call
14014 free_ext_lang_type_printers.
14015 (create_global_typedef_table): Update to call
14016 start_ext_lang_type_printers.
14017 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14018 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14019 (type_print_options): Change type of global_printers from "void *"
14020 to "struct ext_lang_type_printers *".
14022 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14023 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14024 (gdbpy_preserve_values): Renamed from preserve_python_values.
14026 (!HAVE_PYTHON, preserve_python_values): Delete.
14028 * utils.c (quit_flag): Delete, moved to extension.c.
14029 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14032 * eval.c: Delete #include "python/python.h".
14033 * main.c: Delete #include "python/python.h".
14035 * defs.h: Update comment.
14037 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14041 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14043 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14046 2014-02-05 Yao Qi <yao@codesourcery.com>
14048 * remote.c (remote_pass_signals): Remove local 'buf' and use
14050 (remote_program_signals): Likewise.
14052 2014-02-05 Yao Qi <yao@codesourcery.com>
14054 * ctf.c: Include "inferior.h" and "gdbthread.h".
14055 (CTF_PID): A new macro.
14056 (ctf_open): Call inferior_appeared and add_thread_silent.
14057 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14058 (ctf_thread_alive): New function.
14059 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14061 2014-02-05 Yao Qi <yao@codesourcery.com>
14065 2013-05-24 Yao Qi <yao@codesourcery.com>
14067 * tracepoint.c (TFILE_PID): Remove.
14068 (tfile_open): Don't add thread and inferior.
14069 (tfile_close): Don't set 'inferior_ptid'. Don't call
14070 exit_inferior_silent.
14071 (tfile_thread_alive): Remove.
14072 (init_tfile_ops): Don't set field 'to_thread_alive' of
14075 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14077 * remote.c (remote_start_remote): Call remote_check_symbols even
14078 if only symbol-file (not file) has been given.
14080 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14082 * gdbarch.sh (skip_entrypoint): New callback.
14083 * gdbarch.c, gdbarch.h: Regenerate.
14084 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14085 * infrun.c (fill_in_stop_func): Likewise.
14086 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14087 (ppc_elfv2_elf_make_msymbol_special): New function.
14088 (ppc_elfv2_skip_entrypoint): Likewise.
14089 (ppc_linux_init_abi): Install them for ELFv2.
14091 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14093 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14094 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14095 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14096 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14097 structures returned in GPRs.
14099 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14101 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14102 offset to the stack parameter list for the ELFv2 ABI.
14104 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14106 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14107 set_gdbarch_convert_from_func_ptr_addr and
14108 set_gdbarch_elf_make_msymbol_special for ELFv1.
14109 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14110 function descriptors on ELFv1.
14111 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14112 set up r12 at function entry.
14114 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14116 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14117 (struct gdbarch_tdep): New member elf_abi.
14119 * rs6000-tdep.c: Include "elf/ppc64.h".
14120 (rs6000_gdbarch_init): Detect ELF ABI version.
14122 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14124 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14125 within a register pair holding a DFP 128-bit value on little-endian.
14126 (ppc64_sysv_abi_return_value_base): Likewise.
14127 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14128 (dfp_pseudo_register_write): Likewise.
14130 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14132 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14133 offset on little-endian when passing _Decimal32.
14134 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14136 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14138 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14139 of the overlapped FP register within the VSX register on little-
14141 (efpr_pseudo_register_write): Likewise.
14143 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14145 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14146 offset on little-endian when passing small structures.
14148 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14150 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14151 (struct ppc64_sysv_argpos): New data structure.
14152 (ppc64_sysv_abi_push_float): Remove.
14153 (ppc64_sysv_abi_push_val): New function.
14154 (ppc64_sysv_abi_push_integer): Likewise.
14155 (ppc64_sysv_abi_push_freg): Likewise.
14156 (ppc64_sysv_abi_push_vreg): Likewise.
14157 (ppc64_sysv_abi_push_param): Likewise.
14158 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14159 (ppc64_sysv_abi_return_value_base): New function.
14160 (ppc64_sysv_abi_return_value): Refactor to use it.
14162 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14164 * NEWS: Document new target powerpc64le-*-linux*.
14166 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14168 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14169 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14171 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14172 register set used in ELF core dumps. Add floating-point register set.
14174 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14176 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14177 dwarf2_to_gdb[] table using symbolic constants. Adjust
14178 penultimate entry from number representing the PC register
14179 to symbolic constant representing the MDR register. Add
14180 constant for the PC register to the end of the table.
14182 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14184 * bsd-kvm.c: Include <sys/param.h>
14186 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14188 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14190 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14192 * ada-lang.h (clear_ada_sym_cache): Delete.
14194 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14196 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14198 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14200 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14201 the sigreturn register save area only if the syscall is
14204 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14206 * valops.c (value_slice): Minor reformatting.
14208 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14210 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14212 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14214 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14215 New static globals.
14216 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14217 (ada_ignore_descriptive_types_p): New static global.
14218 (find_parallel_type_by_descriptive_type): Return immediately
14219 if ada_ignore_descriptive_types_p is set.
14220 (_initialize_ada_language): Register new commands "maintenance
14221 set ada", "maintenance show ada", "maintenance set ada
14222 ignore-descriptive-types" and "maintenance show ada
14223 ignore-descriptive-types".
14224 * NEWS: Add entry for new "maint ada set/show
14225 ignore-descriptive-types" commands.
14227 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14229 * record-btrace.c (record_btrace_close): Call btrace_teardown
14232 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14234 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14237 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14239 * ada-typeprint (type_is_full_subrange_of_target_type):
14241 (print_range): Add parameter bounds_prefered_p. If not set,
14242 try printing range types using the name of their base type.
14243 (print_range_type): Add parameter bounds_prefered_p.
14244 Use it in call to print_range.
14245 (print_array_type, ada_print_type): Update calls to print_range
14246 and print_range_type.
14248 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14250 * ada-typeprint.c (print_array_type, print_choices, print_range)
14251 (print_range_bound, print_dynamic_range_bound, print_range_type):
14252 Remove declaration.
14254 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14256 * ada-typeprint.c (print_range): Add missing empty line
14257 after local declaration.
14259 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14261 * ada-valprint.c (print_optional_low_bound): Get index_type's
14262 target type for as long as it is a TYPE_CODE_RANGE.
14264 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14266 * procfs.c (procfs_make_note_section): Remove assertion and
14267 associated comment.
14269 2014-01-24 Yao Qi <yao@codesourcery.com>
14271 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14272 * corelow.c (get_core_siginfo): Likewise.
14274 2014-01-24 Yao Qi <yao@codesourcery.com>
14276 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14277 ULONGEST. Don't check 'len' is negative.
14278 (remote_write_bytes): Change type of 'len' to ULONGEST.
14280 2014-01-23 Tom Tromey <tromey@redhat.com>
14283 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14284 Handle exception from frame.block.
14285 (FrameVars.fetch_frame_locals): Likewise.
14287 2014-01-23 Tom Tromey <tromey@redhat.com>
14290 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14291 on a NULL pointer. Move "goto error" to correct place.
14293 2014-01-23 Tom Tromey <tromey@redhat.com>
14296 * python/py-framefilter.c (apply_frame_filter): Call
14297 ensure_python_env after computing gdbarch.
14299 2014-01-23 Yao Qi <yao@codesourcery.com>
14301 * target.c (raw_memory_xfer_partial): Change argument type
14302 from void * to gdb_byte *.
14303 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14305 2014-01-22 Doug Evans <dje@google.com>
14307 New gdbserver option --debug-format=timestamp.
14308 * NEWS: Mention it.
14310 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14312 * syscalls/s390x-linux.xml: New file.
14313 * syscalls/s390-linux.xml: New file.
14314 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14315 (XML_SYSCALL_FILENAME_S390X): Likewise.
14316 (op_svc): New enum value for SVC opcode.
14317 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14318 (s390_linux_get_syscall_number): New function.
14319 (s390_gdbarch_init): Register '*get_syscall_number' and the
14320 syscall xml file name.
14321 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14322 "s390-linux.xml" and "s390x-linux.xml".
14323 * NEWS: Announce new feature.
14325 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14327 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14329 2014-01-22 Pedro Alves <palves@redhat.com>
14331 * xtensa-config.c: Include defs.h.
14333 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14335 * common/common-utils.h: Add "ARI:" comment beside __func__
14338 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14340 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14341 documentation a bit.
14343 2014-01-21 Roland McGrath <mcgrathr@google.com>
14345 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14346 * configure: Regenerate.
14347 * aclocal.m4: Regenerate.
14348 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14349 New substituted variables.
14350 (install-strip): New target.
14351 (INSTALL_SCRIPT): New substituted variable.
14352 (FLAGS_TO_PASS): Add it.
14353 (install-only): Use $(INSTALL_SCRIPT) rather than
14354 $(INSTALL_PROGRAM) for gcore.
14356 2014-01-20 Tom Tromey <tromey@redhat.com>
14358 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14361 2014-01-20 Tom Tromey <tromey@redhat.com>
14363 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14364 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14365 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14366 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14367 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14368 (struct cmd_list_element) <flags>: Remove.
14369 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14370 doc_allocated>: New fields.
14371 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14373 * maint.c (maintenance_do_deprecate): Update.
14374 * top.c (execute_command): Update.
14376 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14378 * xtensa-linux-nat.c: Include asm/ptrace.h.
14380 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14382 * Makefile.in (SFILES): Add d-support.c.
14383 (COMMON_OBS): Add d-support.o.
14384 * d-lang.h (d_parse_symbol): Add comment, now defined in
14386 * d-lang.c (parse_call_convention)
14387 (parse_attributes, parse_function_types)
14388 (parse_function_args, parse_type, parse_identifier)
14389 (call_convention_p, d_parse_symbol): Move functions to ...
14390 * d-support.c: ... New file.
14392 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14394 * d-lang.h (d_parse_symbol): Add declaration.
14395 * d-lang.c (extract_identifiers)
14396 (extract_type_info): Remove functions.
14397 (parse_call_convention, parse_attributes)
14398 (parse_function_types, parse_function_args)
14399 (parse_type, parse_identifier, call_convention_p)
14400 (d_parse_symbol): New functions.
14401 (d_demangle): Use d_parse_symbol to demangle D symbols.
14403 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14405 * d-lang.h (struct builtin_d_type): New data type.
14406 (builtin_d_type): Add declaration.
14407 * d-lang.c (d_language_arch_info, build_d_types)
14408 (builtin_d_type): New functions.
14409 (enum d_primitive_types): New data type.
14410 (d_language_defn): Change c_language_arch_info to
14411 d_language_arch_info.
14412 (d_type_data): New static variable.
14413 (_initialize_d_language): Initialize d_type_data.
14415 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14417 * d-lang.h (d_main_name): Add declaration.
14418 * d-lang.c (d_main_name): New function.
14419 * symtab.c (find_main_name): Add call to d_main_name.
14421 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14423 * d-lang.c (d_language_defn): Change macro_expansion_c to
14424 macro_expansion_no.
14426 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14428 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14430 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14432 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14433 gdb_exception" declaration.
14434 * remote.c (getpkt_or_notif_sane): Likewise.
14436 2014-01-17 Doug Evans <dje@google.com>
14438 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14439 function, contents of dirnames_to_char_ptr_vec_append moved here.
14440 (delim_string_to_char_ptr_vec): New function.
14441 (dirnames_to_char_ptr_vec_append): Rewrite.
14442 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14444 2014-01-17 Doug Evans <dje@google.com>
14446 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14448 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14449 #include "common-utils.h".
14450 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14451 * common/vec.h (VEC_ASSERT_PASS): Update.
14452 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14453 (MACH_CHECK_ERROR): Update.
14455 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14457 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14459 * gdbarch.h: Regenerate.
14461 2014-01-16 Tom Tromey <tromey@redhat.com>
14463 * value.c (struct value) <regnum>: Move earlier.
14465 2014-01-16 Tom Tromey <tromey@redhat.com>
14467 * remote.c (extended_remote_create_inferior): Rename from
14468 extended_remote_create_inferior_1. Add "ops" argument. Remove
14469 old implementation.
14471 2014-01-16 Pedro Alves <palves@redhat.com>
14473 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14474 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14477 2014-01-16 Doug Evans <dje@google.com>
14479 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14483 * btrace.h (btrace_thread_flag): New.
14484 (struct btrace_thread_info) <flags>: New.
14485 * record-btrace.c (record_btrace_resume_thread)
14486 (record_btrace_find_thread_to_move, btrace_step_no_history)
14487 (btrace_step_stopped, record_btrace_start_replaying)
14488 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14489 (record_btrace_find_resume_thread): New.
14490 (record_btrace_resume, record_btrace_wait): Extend.
14491 (record_btrace_can_execute_reverse): New.
14492 (record_btrace_open): Fail in non-stop mode.
14493 (record_btrace_set_replay): Split into this, ...
14494 (record_btrace_stop_replaying): ... this, ...
14495 (record_btrace_clear_histories): ... and this.
14496 (init_record_btrace_ops): Init to_can_execute_reverse.
14497 * NEWS: Announce it.
14499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14501 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14502 (forward_target_decr_pc_after_break)
14503 (target_decr_pc_after_break): New.
14504 * target.c (forward_target_decr_pc_after_break)
14505 (target_decr_pc_after_break): New.
14506 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14507 instead of gdbarch_decr_pc_after_break.
14508 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14509 instead of gdbarch_decr_pc_after_break.
14510 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14511 instead of gdbarch_decr_pc_after_break.
14512 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14513 instead of gdbarch_decr_pc_after_break.
14514 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14515 instead of gdbarch_decr_pc_after_break.
14516 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14517 instead of gdbarch_decr_pc_after_break.
14519 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14521 * btrace.c: Include regcache.h.
14522 (btrace_add_pc): New.
14523 (btrace_enable): Call btrace_add_pc.
14524 (btrace_is_empty): New.
14525 * btrace.h (btrace_is_empty): New.
14526 * record-btrace.c (require_btrace, record_btrace_info): Call
14529 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14531 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14532 Support delta reads.
14533 (linux_disable_btrace): Change return type.
14534 * common/linux-btrace.h (linux_read_btrace): Change parameters
14535 and return type to allow error reporting. Update users.
14536 (linux_disable_btrace): Change return type. Update users.
14537 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14539 (btrace_error): New.
14540 (btrace_block) <begin>: Comment on BEGIN == 0.
14541 * btrace.c (btrace_compute_ftrace): Start from the end of
14543 (btrace_stitch_trace, btrace_clear_history): New.
14544 (btrace_fetch): Read delta trace, return if replaying.
14545 (btrace_clear): Move clear history code to btrace_clear_history.
14546 (parse_xml_btrace): Throw an error if parsing failed.
14547 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14548 and return type to allow error reporting.
14549 (target_read_btrace): Change parameters and return type to allow
14551 * target.c (target_read_btrace): Update.
14552 * remote.c (remote_read_btrace): Support delta reads. Pass
14554 * NEWS: Announce it.
14556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14558 * record.h (record_btrace_frame_unwind)
14559 (record_btrace_tailcall_frame_unwind): New declarations.
14560 * dwarf2-frame: Include record.h
14561 (dwarf2_frame_cfa): Throw an error for btrace frames.
14562 * record-btrace.c: Include hashtab.h.
14563 (btrace_get_bfun_name): New.
14564 (btrace_call_history): Call btrace_get_bfun_name.
14565 (struct btrace_frame_cache): New.
14567 (bfcache_hash, bfcache_eq, bfcache_new): New.
14568 (btrace_get_frame_function): New.
14569 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14570 (record_btrace_frame_this_id): Compute own id.
14571 (record_btrace_frame_prev_register): Provide PC, throw_error
14572 for all other registers.
14573 (record_btrace_frame_sniffer): Detect btrace frames.
14574 (record_btrace_tailcall_frame_sniffer): New.
14575 (record_btrace_frame_dealloc_cache): New.
14576 (record_btrace_frame_unwind): Add new functions.
14577 (record_btrace_tailcall_frame_unwind): New.
14578 (_initialize_record_btrace): Allocate cache.
14579 * btrace.c (btrace_clear): Call reinit_frame_cache.
14580 * NEWS: Announce it.
14582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14584 * record-btrace.c (record_btrace_set_replay)
14585 (record_btrace_goto_begin, record_btrace_goto_end)
14586 (record_btrace_goto): New.
14587 (init_record_btrace_ops): Initialize them.
14588 * NEWS: Announce it.
14590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14592 * record-btrace.c (record_btrace_find_new_threads)
14593 (record_btrace_thread_alive): New.
14594 (init_record_btrace_ops): Initialize to_find_new_threads and
14597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14599 * record-btrace.c (record_btrace_resume): New.
14600 (record_btrace_wait): New.
14601 (init_record_btrace_ops): Initialize to_wait and to_resume.
14603 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14605 * record-btrace.c (record_btrace_xfer_partial)
14606 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14607 (record_btrace_allow_memory_access): New.
14608 (init_record_btrace_ops): Initialize new methods.
14609 * target.c (raw_memory_xfer_partial): Bail out if target reports
14610 that this memory is not available.
14612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14614 * target.h (target_ops) <to_insert_breakpoint>
14615 <to_remove_breakpoint>: Add target_ops parameter.
14616 (forward_target_insert_breakpoint): New.
14617 (forward_target_remove_breakpoint): New.
14618 (memory_remove_breakpoint, memory_insert_breakpoint):
14619 Add target_ops parameter.
14620 * target.c (target_insert_breakpoint): Split into this and ...
14621 (forward_target_insert_breakpoint): ... this.
14622 (target_remove_breakpoint): Split into this and ...
14623 (forward_target_remove_breakpoint): ... this.
14624 (debug_to_insert_breakpoint): Add target_ops parameter.
14625 Call forward_target_insert_breakpoint.
14626 (debug_to_remove_breakpoint): Add target_ops parameter.
14627 Call forward_target_remove_breakpoint.
14628 (update_current_target): Do not inherit or default to_insert_breakpoint
14629 and to_remove_breakpoint.
14630 * corelow.c (ignore): Add target_ops parameter.
14631 * exec.c (ignore): Add target_ops parameter.
14632 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14633 Add target_ops parameter.
14634 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14635 Add target_ops parameter.
14636 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14637 Add target_ops parameter.
14638 * record-full.c (record_full_beneath_to_insert_breakpoint)
14639 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14640 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14641 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14642 (record_full_core_remove_breakpoint): Add target_ops parameter.
14644 (record_full_beneath_to_insert_breakpoint_ops)
14645 (record_full_beneath_to_remove_breakpoint_ops)
14646 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14647 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14648 tmp_to_remove_breakpoint_ops,
14649 record_full_beneath_to_insert_breakpoint_ops, and
14650 record_full_beneath_to_remove_breakpoint_ops.
14651 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14652 (m32r_remove_breakpoint): Add target_ops parameter.
14653 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14654 Add target_ops parameter.
14655 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14656 Add target_ops parameter.
14658 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14659 Markus Metzger <markus.t.metzger@intel.com>
14661 * record-btrace.c: Include frame-unwind.h.
14662 (record_btrace_frame_unwind_stop_reason)
14663 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14664 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14666 (init_record_btrace_ops): Install it.
14668 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14670 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14673 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14675 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14678 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14680 * frame-unwind.c: Include target.h.
14681 (frame_unwind_try_unwinder): New function with code from ...
14682 (frame_unwind_find_by_frame): ... here. New variable
14683 unwinder_from_target, call also target_get_unwinder)
14684 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14685 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14686 * target.h (struct target_ops): New fields to_get_unwinder and
14687 to_get_tailcall_unwinder.
14688 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14692 * record-btrace.c (record_btrace_fetch_registers)
14693 (record_btrace_store_registers)
14694 (record_btrace_to_prepare_to_store): New.
14695 (init_record_btrace_ops): Add the above.
14697 2014-01-16 Tom Tromey <tromey@redhat.com>
14699 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14700 * target.h (struct target_ops) <to_prepare_to_store>: Add
14702 (target_prepare_to_store): Add argument.
14703 * target.c (debug_to_prepare_to_store): Add argument.
14704 (update_current_target): Update.
14705 * remote.c (remote_prepare_to_store): Add 'self' argument.
14706 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14707 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14708 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14709 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14711 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14712 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14713 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14714 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14715 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14719 * btrace.h (replay) <replay>: New.
14720 (btrace_is_replaying): New.
14721 * btrace.c (btrace_clear): Free replay iterator.
14722 (btrace_is_replaying): New.
14723 * record-btrace.c (record_btrace_is_replaying): New.
14724 (record_btrace_info): Print insn number if replaying.
14725 (record_btrace_insn_history): Start at replay position.
14726 (record_btrace_call_history): Start at replay position.
14727 (init_record_btrace_ops): Init to_record_is_replaying.
14729 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14731 * record-btrace.c (record_btrace_insn_history_range): Include
14733 (record_btrace_insn_history_from): Adjust range.
14734 (record_btrace_call_history_range): Include
14736 (record_btrace_call_history_from): Adjust range.
14737 * NEWS: Announce changes.
14739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14741 * record.h (enum record_print_flag)
14742 <record_print_indent_calls>: New.
14743 * record.c (get_call_history_modifiers): Recognize /c modifier.
14744 (_initialize_record): Document /c modifier.
14745 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14746 Reorder fields. Optionally indent the function name. Update
14748 * NEWS: Announce changes.
14750 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14752 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14756 * btrace.c (ftrace_new_function): Start counting at one.
14757 * record-btrace.c (record_btrace_info): Adjust number of calls
14759 * NEWS: Announce it.
14761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14763 * record-btrace.c (btrace_call_history_insn_range): Print
14764 insn range as [begin, end].
14766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14768 * btrace.h (struct btrace_func_link): New.
14769 (enum btrace_function_flag): New.
14770 (struct btrace_inst): Rename to ...
14771 (struct btrace_insn): ...this. Update all users.
14772 (struct btrace_func) <ibegin, iend>: Remove.
14773 (struct btrace_func_link): New.
14774 (struct btrace_func): Rename to ...
14775 (struct btrace_function): ...this. Update all users.
14776 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14777 (number, level, flags>: New.
14778 (struct btrace_insn_iterator): Rename to ...
14779 (struct btrace_insn_history): ...this.
14781 (struct btrace_insn_iterator, btrace_call_iterator): New.
14782 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14783 (struct btrace_target_info) <begin, end, level>
14784 <insn_history, call_history>: New.
14785 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14786 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14787 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14788 (btrace_call_number, btrace_call_begin, btrace_call_end)
14789 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14790 (btrace_find_function_by_number, btrace_set_insn_history)
14791 (btrace_set_call_history): New.
14792 * btrace.c (btrace_init_insn_iterator)
14793 (btrace_init_func_iterator, compute_itrace): Remove.
14794 (ftrace_print_function_name, ftrace_print_filename)
14795 (ftrace_skip_file): Change
14796 parameter to const.
14797 (ftrace_init_func): Remove.
14798 (ftrace_debug): Use new btrace_function fields.
14799 (ftrace_function_switched): Also consider gaining and
14800 losing symbol information).
14801 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14802 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14803 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14805 (ftrace_new_function): Move. Remove debug print.
14806 (ftrace_update_lines, ftrace_update_insns): New.
14807 (ftrace_update_function): Check for call, ret, and jump.
14808 (compute_ftrace): Renamed to ...
14809 (btrace_compute_ftrace): ...this. Rewritten to compute call
14811 (btrace_fetch, btrace_clear): Updated.
14812 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14813 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14814 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14815 (btrace_call_number, btrace_call_begin, btrace_call_end)
14816 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14817 (btrace_find_function_by_number, btrace_set_insn_history)
14818 (btrace_set_call_history): New.
14819 * record-btrace.c (require_btrace): Use new btrace thread
14821 (record_btrace_info, btrace_insn_history)
14822 (record_btrace_insn_history, record_btrace_insn_history_range):
14823 Use new btrace thread info fields and new iterator.
14824 (btrace_func_history_src_line): Rename to ...
14825 (btrace_call_history_src_line): ...this. Use new btrace
14826 thread info fields.
14827 (btrace_func_history): Rename to ...
14828 (btrace_call_history): ...this. Use new btrace thread info
14829 fields and new iterator.
14830 (record_btrace_call_history, record_btrace_call_history_range):
14831 Use new btrace thread info fields and new iterator.
14833 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14835 * frame.h (frame_id_build_unavailable_stack_special): New.
14836 * frame.c (frame_id_build_unavailable_stack_special): New.
14838 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14840 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14841 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14842 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14844 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14845 (i386_insn_is_jump, i386_jmp_p): New.
14846 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14847 insn_is_jump to gdbarch.
14848 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14849 * gdbarch.h: Regenerated.
14850 * gdbarch.c: Regenerated.
14851 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14852 (default_insn_is_jump): New.
14853 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14854 (default_insn_is_jump): New.
14856 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14858 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14860 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14861 (btrace_read_type) <btrace_read_new>: Change to ...
14862 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14864 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14866 * common/linux-btrace.c (linux_read_btrace): Free trace from
14867 previous iteration.
14869 2014-01-15 Doug Evans <dje@google.com>
14871 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14874 2014-01-15 Tom Tromey <tromey@redhat.com>
14876 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14877 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14878 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14879 (set_objfile_main_name): New function.
14880 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14881 language_of_main>: New fields.
14882 (set_objfile_main_name): Declare.
14883 * symtab.c (find_main_name): Loop over objfiles to find the main
14885 (set_main_name): Now static.
14886 (get_main_info): Add comment.
14887 * symtab.h (set_main_name): Don't declare.
14889 2014-01-15 Tom Tromey <tromey@redhat.com>
14891 * symtab.c (main_progspace_key): New global.
14892 (struct main_info): New.
14893 (name_of_main, language_of_main): Remove.
14894 (get_main_info, main_info_cleanup): New function.
14895 (set_main_name, main_name, main_language): Use get_main_info.
14896 (_initialize_symtab): Initialize main_progspace_key.
14898 2014-01-15 Tom Tromey <tromey@redhat.com>
14900 * dbxread.c (process_one_symbol): Update.
14901 * dwarf2read.c (read_partial_die): Update.
14902 * symfile.c (set_initial_language): Call main_language.
14903 * symtab.c (language_of_main): Now static.
14904 (set_main_name): Add 'lang' parameter.
14905 (find_main_name): Update.
14906 (main_language): New function.
14907 (symtab_observer_executable_changed): Update.
14908 * symtab.h (set_main_name): Update.
14909 (language_of_main): Remove.
14910 (main_language): Declare.
14912 2014-01-15 Tom Tromey <tromey@redhat.com>
14914 * symfile.c (init_entry_point_info): Use new "initialized" field.
14916 * objfiles.h (struct entry_point) <initialized>: New field.
14917 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14918 (struct objfile) <ei>: ...here. Remove.
14919 * objfiles.c (entry_point_address_query): Update.
14921 2014-01-15 Tom Tromey <tromey@redhat.com>
14923 * objfiles.c (entry_point_address_query): Relocate entry point
14925 (objfile_relocate1): Do not relocate entry point address.
14926 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14927 <the_bfd_section_index>: New field.
14928 * symfile.c (init_entry_point_info): Find the entry point's
14931 2014-01-15 Tom Tromey <tromey@redhat.com>
14933 * solib-frv.c (enable_break): Use entry_point_address_query.
14935 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14937 * NEWS: Add note on improved process record-replay on
14938 arm*-linux* targets.
14940 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14942 * arm-tdep.c (enum arm_record_result): New enum.
14943 (arm_record_unsupported_insn): New function.
14944 (arm_record_coproc_data_proc): Removed.
14945 (thumb2_record_ld_st_multiple): New function.
14946 (thumb2_record_ld_st_dual_ex_tbb): New function.
14947 (thumb2_record_data_proc_sreg_mimm): New function.
14948 (thumb2_record_ps_dest_generic): New function.
14949 (thumb2_record_branch_misc_cntrl): New function.
14950 (thumb2_record_str_single_data): New function.
14951 (thumb2_record_ld_mem_hints): New function.
14952 (thumb2_record_ld_word): New function.
14953 (thumb2_record_lmul_lmla_div): New function.
14954 (thumb2_record_decode_insn_handler): New function.
14955 (decode_insn): Add thumb32 instruction handlers.
14957 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14959 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14960 (struct arm_linux_record_tdep): Declare.
14961 (arm_canonicalize_syscall): New function.
14962 (arm_all_but_pc_registers_record): New function.
14963 (arm_linux_syscall_record): New function.
14964 (arm_linux_init_abi): Add syscall recording constructs.
14965 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14966 decoding. (arm_record_coproc_data_proc): Update arm syscall
14968 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14969 <arm_syscall_record>: New field.
14970 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14973 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14975 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14976 register for push instruction recording.
14978 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14980 * arm-tdep.c (thumb_record_misc): Update to correct logical
14981 error while recording ldm, ldmia and pop instructions.
14983 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14985 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14987 2014-01-15 Pedro Alves <palves@redhat.com>
14989 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14990 (go32_resume, go32_fetch_registers, store_register)
14991 (go32_store_registers, go32_prepare_to_store)
14992 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14993 (go32_create_inferior, go32_can_run, go32_terminal_init)
14994 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14997 2014-01-15 Tom Tromey <tromey@redhat.com>
14999 * target.h (async_callback_ftype): New typedef.
15000 (struct target_ops) <to_async>: Use it.
15002 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15004 * python/py-value.c (get_field_type): Remove unnecessary curly
15005 braces for single-statement if block.
15007 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15009 * python/py-type.c (convert_field): Add missing empty line
15010 after declarations.
15012 2014-01-14 Doug Evans <dje@google.com>
15014 * symfile.h (expand_symtabs_matching): Renamed from
15015 expand_partial_symbol_names. Update prototype.
15016 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15017 * symfile.c (expand_symtabs_matching): Renamed from
15018 expand_partial_symbol_names. New args file_matcher, kind.
15019 Rename arg fun to symbol_matcher.
15020 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15021 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15022 ada_expand_partial_symbol_name.
15023 (ada_make_symbol_completion_list): Update to call
15024 expand_symtabs_matching.
15025 (ada_add_global_exceptions): Call expand_symtabs_matching.
15026 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15027 call map_symbol_filenames.
15028 * symtab.c (sources_info): Update to call map_symbol_filenames.
15029 (search_symbols): Call expand_symtabs_matching.
15030 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15031 (default_make_symbol_completion_list_break_on): Update to call
15032 expand_symtabs_matching.
15033 (make_source_files_completion_list): Update to call
15034 map_symbol_filenames.
15036 2014-01-14 Doug Evans <dje@google.com>
15038 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15039 (expand_symtabs_symbol_matcher_ftype): New typedef.
15040 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15041 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15042 * symfile.c (expand_partial_symbol_names): Update to use
15043 expand_symtabs_symbol_matcher_ftype.
15044 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15045 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15046 Arg name_matcher renamed to symbol_matcher.
15047 * psymtab.c (recursively_search_psymtabs): Update to use
15048 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15050 (expand_symtabs_matching_via_partial): Update to use
15051 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15052 Arg name_matcher renamed to symbol_matcher.
15054 2014-01-14 Doug Evans <dje@google.com>
15056 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15057 (map_partial_symbol_filenames): Ditto.
15058 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15059 (map_partial_symbol_filenames): Ditto.
15060 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15061 (map_partial_symbol_filenames): Ditto.
15062 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15063 (map_partial_symbol_filenames): Ditto.
15064 * symtab.c: Delete #include "psymtab.h".
15066 2014-01-14 Pedro Alves <palves@redhat.com>
15067 Tom Tromey <tromey@redhat.com>
15069 * infrun.c (use_displaced_stepping): Use find_record_target
15070 instead of RECORD_IS_USED.
15071 (adjust_pc_after_break): Use record_full_is_used instead of
15073 * record-btrace.c (record_btrace_open): Call record_preopen
15074 instead of checking RECORD_IS_USED.
15075 * record-full.c (record_full_shortname)
15076 (record_full_core_shortname): New globals.
15077 (record_full_is_used): New function.
15078 (find_full_open): Call record_preopen instead of checking
15080 (init_record_full_ops): Set the target's shortname to
15081 record_full_shortname.
15082 (init_record_full_core_ops): Set the target's shortname to
15083 record_full_core_shortname.
15084 * record-full.h (record_full_is_used): Declare.
15085 * record.c (find_record_target): Make extern.
15086 (record_preopen): New function.
15087 * record.h (RECORD_IS_USED): Delete macro.
15088 (find_record_target, record_preopen): Declare functions.
15090 2014-01-14 Yao Qi <yao@codesourcery.com>
15092 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15093 'len''s type to ULONGEST.
15094 (core_xfer_shared_libraries_aix): Likewise.
15095 * gdbarch.c, gdbarch.h: Regenerated.
15096 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15097 Change type of 'len' to ULONGEST.
15098 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15099 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15101 2014-01-14 Yao Qi <yao@codesourcery.com>
15103 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15104 type of 'len' to ULONGEST.
15105 (linux_xfer_osdata_processgroups): Likewise.
15106 (linux_xfer_osdata_threads): Likewise.
15107 (linux_xfer_osdata_fds): Likewise.
15108 (linux_xfer_osdata_isockets): Likewise.
15109 (linux_xfer_osdata_shm): Likewise.
15110 (linux_xfer_osdata_sem): Likewise.
15111 (linux_xfer_osdata_msg): Likewise.
15112 (linux_common_xfer_osdata): Likewise.
15113 (struct osdata_type) <getter>: Likewise.
15114 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15117 2014-01-14 Yao Qi <yao@codesourcery.com>
15119 * target.h (target_xfer_partial_ftype): Update.
15120 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15122 * aix-thread.c (aix_thread_xfer_partial): Change type of
15123 argument 'len' to ULONGEST.
15124 * auxv.c (procfs_xfer_auxv): Likewise.
15125 (ld_so_xfer_auxv): Likewise.
15126 (memory_xfer_auxv): Likewise.
15127 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15128 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15129 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15130 * corelow.c (core_xfer_partial): Likewise.
15131 * ctf.c (ctf_xfer_partial): Likewise.
15132 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15134 (darwin_read_dyld_info): Likewise.
15135 (darwin_xfer_partial): Likewise.
15136 * exec.c (section_table_xfer_memory_partial): Likewise.
15137 (exec_xfer_partial): Likewise.
15138 * exec.h (section_table_xfer_memory_partial): Update
15140 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15141 instead of plongest.
15142 (gnu_xfer_partial): Likewise.
15143 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15144 (ia64_hpux_xfer_solib_got): Likewise.
15145 (ia64_hpux_xfer_partial): Likewise.
15146 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15147 * inf-ptrace.c (inf_ptrace_xfer_partial):
15148 * inf-ttrace.c (inf_ttrace_xfer_partial):
15149 * linux-nat.c (linux_xfer_siginfo): Likewise.
15150 (linux_nat_xfer_partial): Likewise.
15151 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15152 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15153 * monitor.c (monitor_xfer_memory): Likewise.
15154 (monitor_xfer_partial): Likewise.
15155 * procfs.c (procfs_xfer_partial): Likewise.
15156 * record-full.c (record_full_xfer_partial): Likewise.
15157 (record_full_core_xfer_partial): Likewise.
15158 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15159 instead of plongest.
15160 (gdbsim_xfer_partial): Likewise.
15161 * remote.c (remote_xfer_partial): Likewise.
15162 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15163 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15165 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15166 (rs6000_xfer_shared_libraries): Likewise.
15167 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15168 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15169 (sparc_xfer_partial): Likewise.
15170 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15171 (spu_xfer_partial): Likewise.
15172 * spu-multiarch.c (spu_xfer_partial): Likewise.
15173 * target.c (target_read_live_memory): Likewise.
15174 (memory_xfer_live_readonly_partial): Likewise.
15175 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15176 (target_xfer_partial, default_xfer_partial): Likewise.
15177 (current_xfer_partial): Likewise.
15178 * tracepoint.c (tfile_xfer_partial): Likewise.
15179 * windows-nat.c (windows_xfer_memory): Likewise. Call
15180 pulongest instead of plongest.
15181 (windows_xfer_partial): Likewise.
15182 (windows_xfer_shared_libraries): Likewise.
15184 2014-01-14 Yao Qi <yao@codesourcery.com>
15186 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15187 target_xfer_partial_ftype.
15189 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15193 * valops.c (value_struct_elt_bitpos): New function
15194 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15195 object to 'None' if the field name is an empty string ("").
15196 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15197 attribute to look for a field when 'name' is 'None'.
15198 (get_field_type): New function
15200 2014-01-13 Doug Evans <dje@google.com>
15203 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15204 (try_open_dwop_file): Ditto.
15205 * gdb_bfd.c: #include "vec.h".
15206 (bfdp): New typedef.
15207 (struct gdb_bfd_data): New member included_bfds.
15208 (gdb_bfd_unref): Unref all included bfds.
15209 (gdb_bfd_record_inclusion): New function.
15210 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15212 2014-01-13 Tom Tromey <tromey@redhat.com>
15214 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15216 2014-01-13 Tom Tromey <tromey@redhat.com>
15218 * defs.h (use_windows): Remove.
15219 * gdb.c (main): Update.
15220 * main.c (captured_main, gdb_main): Update.
15221 * main.h (struct captured_main_args) <use_windows>: Remove.
15222 * top.c (use_windows): Remove.
15224 2014-01-13 Tom Tromey <tromey@redhat.com>
15226 * defs.h (deprecated_flush_hook): Remove.
15228 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15231 * linux-thread-db.c (try_thread_db_load): Add parameter
15232 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15233 (try_thread_db_load_from_pdir_1): Move it there from here.
15234 (try_thread_db_load_from_sdir): Update caller.
15235 (try_thread_db_load_from_dir): Move it there from here.
15237 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15239 * regformats/regdat.sh: Always rewrite the register file.
15241 2014-01-13 Pedro Alves <palves@redhat.com>
15243 * Makefile.in (CHECK_HEADERS): New variable.
15244 (check-headers:): New rule.
15246 2014-01-13 Tom Tromey <tromey@redhat.com>
15248 * cli/cli-setshow.c (do_set_command): Update.
15249 * defs.h (deprecated_set_hook): Remove.
15250 * top.c (deprecated_set_hook): Remove.
15252 2014-01-13 Pedro Alves <palves@redhat.com>
15254 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15255 the tracepoint if the PC is a pseudo-register.
15257 2014-01-13 Tom Tromey <tromey@redhat.com>
15259 * defs.h (XCALLOC): Remove.
15260 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15261 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15262 * dwarf2loc.c (allocate_piece_closure): Likewise.
15263 * elfread.c (elf_symfile_segments): Likewise.
15264 (elf_symfile_segments): Likewise.
15265 * gdbtypes.c (copy_type_recursive): Likewise.
15266 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15267 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15268 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15270 * mt-tdep.c (mt_gdbarch_init): Likewise.
15271 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15273 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15274 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15275 * registry.c (registry_alloc_data): Likewise.
15276 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15277 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15278 * serial.c (serial_fdopen_ops): Likewise.
15279 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15281 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15282 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15285 2014-01-13 Tom Tromey <tromey@redhat.com>
15287 * defs.h (XMALLOC): Remove.
15288 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15289 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15290 * cli-out.c (struct ui_out *): Likewise.
15291 * cli/cli-dump.c (add_dump_command): Likewise.
15292 (add_dump_command): Likewise.
15293 * complaints.c (get_complaints): Likewise.
15294 (find_complaint): Likewise.
15295 * dwarf2-frame.c (execute_cfa_program): Likewise.
15296 * dwarf2read.c (abbrev_table_read_table): Likewise.
15297 * gdbarch.sh: Likewise.
15298 * gdbarch.c: Rebuild.
15299 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15300 * interps.c (interp_new): Likewise.
15301 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15302 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15303 * mi/mi-console.c (mi_console_file_new): Likewise.
15304 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15305 * mi/mi-out.c (mi_out_new): Likewise.
15306 * mi/mi-parse.c (mi_parse): Likewise.
15307 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15308 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15309 * observer.c (xalloc_observer_list_node): Likewise.
15310 * regcache.c (regcache_xmalloc_1): Likewise.
15311 * reggroups.c (reggroup_new): Likewise.
15312 (_initialize_reggroup): Likewise.
15313 * registry.c (register_data_with_cleanup): Likewise.
15314 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15315 * ser-base.c (serial_ttystate): Likewise.
15316 * ser-mingw.c (make_pipe_state): Likewise.
15317 * ser-pipe.c (pipe_open): Likewise.
15318 * serial.c (serial_open): Likewise.
15319 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15320 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15321 (tui_alloc_win_info): Likewise.
15322 (tui_add_content_elements): Likewise.
15323 * tui/tui-file.c (tui_file_new): Likewise.
15324 * tui/tui-out.c (tui_out_new): Likewise.
15325 * ui-file.c (mem_file_new): Likewise.
15326 * ui-out.c (push_level): Likewise.
15327 (make_cleanup_ui_out_end): Likewise.
15328 (append_header_to_list): Likewise.
15329 (ui_out_new): Likewise.
15330 * user-regs.c (user_reg_add_builtin): Likewise.
15332 2014-01-13 Tom Tromey <tromey@redhat.com>
15334 * defs.h (XZALLOC): Remove.
15335 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15336 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15337 (get_ada_tasks_inferior_data): Likewise.
15338 * auto-load.c (get_auto_load_pspace_data): Likewise.
15339 * auxv.c (get_auxv_inferior_data): Likewise.
15340 * bfd-target.c (target_bfd_reopen): Likewise.
15341 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15342 (deprecated_insert_raw_breakpoint): Likewise.
15343 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15344 * corelow.c (core_open): Likewise.
15345 * darwin-nat.c (darwin_check_new_threads): Likewise.
15346 (darwin_attach_pid): Likewise.
15347 * dummy-frame.c (dummy_frame_push): Likewise.
15348 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15349 * dwarf2loc.c (allocate_piece_closure): Likewise.
15350 * elfread.c (elf_symfile_segments): Likewise.
15351 * eval.c (ptrmath_type_p): Likewise.
15352 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15353 * gdbtypes.c (alloc_type_arch): Likewise.
15354 (alloc_type_instance): Likewise.
15355 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15356 * inf-child.c (inf_child_can_use_agent): Likewise.
15357 * inflow.c (get_inflow_inferior_data): Likewise.
15358 * infrun.c (save_infcall_suspend_state): Likewise.
15359 * jit.c (jit_reader_load): Likewise.
15360 (get_jit_objfile_data): Likewise.
15361 (get_jit_program_space_data): Likewise.
15362 (jit_object_open_impl): Likewise.
15363 (jit_symtab_open_impl): Likewise.
15364 (jit_block_open_impl): Likewise.
15365 (jit_frame_sniffer): Likewise.
15366 * linux-fork.c (add_fork): Likewise.
15367 * maint.c (make_command_stats_cleanup): Likewise.
15368 * objfiles.c (get_objfile_pspace_data): Likewise.
15369 * opencl-lang.c (struct lval_closure): Likewise.
15370 * osdata.c (osdata_start_osdata): Likewise.
15371 * progspace.c (new_address_space): Likewise.
15372 (add_program_space): Likewise.
15373 * remote-sim.c (get_sim_inferior_data): Likewise.
15374 * sh-tdep.c (sh_gdbarch_init): Likewise.
15375 * skip.c (Ignore): Likewise.
15376 (skip_delete_command): Likewise.
15377 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15378 (library_list_start_library): Likewise.
15379 (solib_aix_current_sos): Likewise.
15380 * solib-darwin.c (get_darwin_info): Likewise.
15381 (darwin_current_sos): Likewise.
15382 * solib-dsbt.c (get_dsbt_info): Likewise.
15383 * solib-ia64-hpux.c (new_so_list): Likewise.
15384 (ia64_hpux_get_solib_linkage_addr): Likewise.
15385 * solib-spu.c (append_ocl_sos): Likewise.
15386 (spu_current_sos): Likewise.
15387 * solib-svr4.c (get_svr4_info): Likewise.
15388 (svr4_keep_data_in_core): Likewise.
15389 (library_list_start_library): Likewise.
15390 (svr4_default_sos): Likewise.
15391 (svr4_read_so_list): Likewise.
15392 * solib-target.c (library_list_start_library): Likewise.
15393 (solib_target_current_sos): Likewise.
15394 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15395 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15396 * symfile.c (default_symfile_segments): Likewise.
15397 * target-descriptions.c (tdesc_data_init): Likewise.
15398 (tdesc_create_reg): Likewise.
15399 (struct tdesc_type *): Likewise.
15400 (tdesc_create_vector): Likewise.
15401 (tdesc_set_struct_size): Likewise.
15402 (struct tdesc_type *): Likewise.
15403 (tdesc_free_feature): Likewise.
15404 (tdesc_create_feature): Likewise.
15405 * windows-nat.c (windows_add_thread): Likewise.
15406 (windows_make_so): Likewise.
15407 * xml-support.c (gdb_xml_body_text): Likewise.
15408 (gdb_xml_create_parser_and_cleanup): Likewise.
15409 (xml_process_xincludes): Likewise.
15410 * xml-syscall.c (allocate_syscalls_info): Likewise.
15411 (syscall_create_syscall_desc): Likewise.
15413 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15415 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15416 function, with code from i386_stap_parse_special_token.
15417 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15418 (i386_stap_parse_special_token): Move code to the two functions
15419 above; simplify it.
15421 2014-01-09 Pedro Alves <palves@redhat.com>
15422 Hui Zhu <hui@codesourcery.com>
15425 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15426 bp_err_string. Don't mark the location shlib_disabled if the
15427 error thrown wasn't a generic or memory error. Catch errors
15428 thrown while inserting breakpoints in overlayed code. Output
15429 error message of software breakpoints.
15430 * remote.c (remote_insert_breakpoint): If this breakpoint has
15431 target-side commands but this stub doesn't support Z0 packets,
15432 throw NOT_SUPPORTED_ERROR error.
15433 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15434 * target.h (target_insert_breakpoint): Extend comment.
15435 (target_insert_hw_breakpoint): Add comment.
15437 2014-01-08 Pedro Alves <palves@redhat.com>
15439 * remote.c (remote_add_thread): Add threads silently if starting
15441 (remote_notice_new_inferior): If in all-stop, and starting up,
15442 don't call notice_new_inferior.
15443 (get_current_thread): New function, factored out from ...
15444 (add_current_inferior_and_thread): ... this. Adjust.
15445 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15446 found any thread, then select the remote's current thread as GDB's
15447 current thread too.
15449 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15451 * NEWS: Create a new section for the next release branch.
15452 Rename the section of the current branch, now that it has
15455 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15457 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15458 * version.in: Bump version to 7.7.50.DATE-cvs.
15460 2014-01-08 Yao Qi <yao@codesourcery.com>
15462 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15463 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15464 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15466 2014-01-08 Yao Qi <yao@codesourcery.com>
15468 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15469 return value of bfd_get_filename to symbol_file_add_from_bfd.
15471 2014-01-08 Pierre Muller <muller@sourceware.org>
15474 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15475 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15476 to prim_record_mininal_symbol_and_info.
15477 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15478 in call to prim_record_minimal_symbol_and_info.
15479 (read_pe_exported_syms): Set index field of section_data.
15481 2014-01-07 Andrew Pinski <apinski@cavium.com>
15483 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15484 * features/aarch64.c: Regenerate.
15486 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15488 * target.c (return_null): Define.
15489 (update_current_target): Use it instead of return_zero for
15490 functions that return a pointer.
15492 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15494 * source.c (add_path): Fix check for duplicated paths in the previously
15497 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15499 * ada-lang.c: Remove duplicated include statements.
15500 * alphabsd-nat.c: Ditto.
15501 * amd64-darwin-tdep.c: Ditto.
15502 * amd64fbsd-nat.c: Ditto.
15503 * auto-load.c: Ditto.
15505 * breakpoint.c: Ditto.
15506 * dbxread.c: Ditto.
15507 * fork-child.c: Ditto.
15508 * gdb_usleep.c: Ditto.
15509 * i386-darwin-tdep.c: Ditto.
15510 * i386fbsd-nat.c: Ditto.
15512 * inferior.c: Ditto.
15513 * jv-lang.c: Ditto.
15514 * linux-nat.c: Ditto.
15515 * linux-tdep.c: Ditto.
15516 * m68kbsd-nat.c: Ditto.
15517 * m68klinux-nat.c: Ditto.
15518 * microblaze-tdep.c: Ditto.
15519 * mips-linux-tdep.c: Ditto.
15520 * mn10300-tdep.c: Ditto.
15521 * nto-tdep.c: Ditto.
15522 * opencl-lang.c: Ditto.
15524 * printcmd.c: Ditto.
15525 * regcache.c: Ditto.
15526 * remote-m32r-sdi.c: Ditto.
15528 * symfile.c: Ditto.
15530 * tilegx-linux-nat.c: Ditto.
15531 * tilegx-tdep.c: Ditto.
15532 * tracepoint.c: Ditto.
15534 * vaxbsd-nat.c: Ditto.
15535 * windows-nat.c: Ditto.
15536 * xtensa-tdep.c: Ditto.
15538 2014-01-07 Yao Qi <yao@codesourcery.com>
15540 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15542 2014-01-07 Yao Qi <yao@codesourcery.com>
15543 Joel Brobecker <brobecker@adacore.com>
15545 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15546 (pdc_write_regs): Likewise.
15547 (fetch_regs_kernel_thread): Likewise.
15548 (store_regs_kernel_thread): Likewise.
15550 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15552 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15553 tagged type objects to their actual type.
15555 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15557 * ada-valprint.c (print_field_values): Add "language" parameter.
15558 Update calls to print_field_values and print_variant_part.
15559 Pass new parameter "language" in call to val_print instead
15560 of "current_language". Replace call to ada_val_print by call
15562 (print_variant_part): Add "language" parameter.
15563 (ada_val_print_struct_union): Update call to print_field_values.
15565 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15567 * ada-valprint.c (ui_memcpy): Delete.
15568 (ada_print_floating): Update documentation. Add empty line
15569 between between function documentation and implementation.
15570 Delete variable "buffer". Use ui_file_xstrdup in place of
15571 ui_file_put. Minor adjustments following this change.
15573 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15575 * ada-valprint.c (ada_val_print_string): New function,
15576 extracted from ada_val_print_array.
15577 (ada_val_print_array): Replace extracted code by call
15578 to ada_val_print_string followed by a return. Move
15579 "else" branch to the function's top block.
15581 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15583 * ada-valprint.c (ada_val_print_array): Move implementation
15584 down. Rename parameter "offset" and "val" into "offset_aligned"
15585 and "original_value" respectively. Add parameter "offset".
15587 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15589 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15590 re-organizing the code. Change the "???" message printed
15591 when target type is a TYPE_CODE_UNDEF into
15592 "<ref to undefined type>".
15594 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15596 * ada-valprint.c (print_record): Delete, implementation inlined...
15597 (ada_val_print_struct_union): ... here. Remove call to
15598 ada_check_typedef in inlined implementation.
15600 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15602 * ada-valprint.c (ada_val_print_gnat_array): New function,
15603 extracted from ada_val_print_1;
15604 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15605 (ada_val_print_flt, ada_val_print_struct_union)
15606 (ada_val_print_ref): Likewise.
15607 (ada_val_print_1): Delete variables i and elttype.
15608 Replace extracted-out code by call to corresponding
15611 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15613 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15615 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15617 * ada-valprint.c (ada_val_print_1): Replace calls to
15618 ada_val_print_1 by calls to val_print.
15620 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15622 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15623 Update calls to self accordingly. Replace calls to c_val_print
15624 by calls to val_print.
15626 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15628 * ada-valprint.c (print_record): Delete declaration.
15629 (adjust_type_signedness, ada_val_print_1): Likewise.
15630 (ada_val_print): Move function implementation down.
15631 (print_variant_part, print_field_values, print_record):
15632 Move function implementation up.
15634 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15636 * python/py-type.c (typy_get_name): New function.
15637 (type_object_getset): Add entry for attribute "name".
15638 * NEWS: Add entry mentioning this new attribute.
15640 2014-01-07 Yao Qi <yao@codesourcery.com>
15642 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15645 2014-01-07 Yao Qi <yao@codesourcery.com>
15647 * gnu-nat.c (info_port_rights): Add qualifier const to
15650 2014-01-07 Yao Qi <yao@codesourcery.com>
15652 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15654 2014-01-07 Yao Qi <yao@codesourcery.com>
15656 * gnu-nat.c (make_inf) Update declaration.
15657 (make_inf): Make it static.
15658 (inf_set_traced): Likewise.
15659 (inf_port_to_thread, inf_task_died_status): Likewise.
15661 2014-01-07 Yao Qi <yao@codesourcery.com>
15663 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15665 2014-01-07 Yao Qi <yao@codesourcery.com>
15667 * gnu-nat.c (_initialize_gnu_nat): Declare.
15669 2014-01-07 Yao Qi <yao@codesourcery.com>
15671 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15673 (struct gdbarch_info) <byte_order>: Change type to
15675 <byte_order_for_code>: Likewise.
15676 * gdbarch.c, gdbarch.h: Regenerated.
15678 2014-01-06 Sasha Smundak <asmundak@google.com>
15680 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15682 2014-01-06 Tom Tromey <tromey@redhat.com>
15684 * doublest.c (convert_doublest_to_floatformat): Use const, not
15686 * somread.c (som_symtab_read): Likewise.
15688 2014-01-07 Hui Zhu <hui@codesourcery.com>
15690 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15691 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15692 (gdb_bfd_fopen): Ditto.
15693 (gdb_bfd_openr): Ditto.
15694 (gdb_bfd_openw): Ditto.
15695 (gdb_bfd_openr_iovec): Ditto.
15696 (gdb_bfd_fdopenr): Ditto.
15697 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15698 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15700 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15702 * symfile-mem.c (symbol_file_add_from_memory): Removed
15703 gdb_bfd_stash_filename.
15705 2014-01-03 Doug Evans <dje@google.com>
15707 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15710 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15712 Update year range in copyright notice of all files.
15714 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15716 * top.c (print_gdb_version): Set copyright year to 2014.
15718 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15720 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15722 For older changes see ChangeLog-2013.
15728 version-control: never