1 2014-12-02 Doug Evans <dje@google.com>
3 * python/py-infthread.c: Whitespace fixes.
5 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7 * features/Makefile (s390-te-linux64-expedite): Replace
8 non-existant r14 and r15 by r14l and r15l, respectively.
9 * regformats/s390-te-linux64.dat: Regenerate.
11 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
13 * objfiles.c (allocate_objfile): Remove duplicate comment.
15 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
17 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
18 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
19 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
20 (supply_gregset, supply_fpregset): Remove.
21 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
22 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
25 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
27 Add add-auto-load-scripts-directory.
28 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
29 * auto-load.c (add_auto_load_dir): New function.
30 (_initialize_auto_load): Install it.
32 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
34 Pushed by Joel Brobecker <brobecker@adacore.com>.
35 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
37 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
39 * eval.c (evaluate_subexp): Check that the thread stack temporaries
40 are not already enabled before enabling them.
42 2014-11-29 Yao Qi <yao@codesourcery.com>
44 * arm-tdep.c (arm_analyze_prologue): Move local variables
45 'framereg' and 'framesize' to inner block. Move code to
48 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
50 * eval.c: Include gdbthread.h.
51 (evaluate_subexp): Enable thread stack temporaries before
52 evaluating a complete expression and clean them up after the
53 evaluation is complete.
54 * gdbthread.h: Include common/vec.h.
55 (value_ptr): New typedef.
56 (VEC (value_ptr)): New vector type.
57 (value_vec): New typedef.
58 (struct thread_info): Add new fields stack_temporaries_enabled
59 and stack_temporaries.
60 (enable_thread_stack_temporaries)
61 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
62 (get_last_thread_stack_temporary)
63 (value_in_thread_stack_temporaries): Declare.
64 * gdbtypes.c (class_or_union_p): New function.
65 * gdbtypes.h (class_or_union_p): Declare.
66 * infcall.c (call_function_by_hand): Store return values of class
67 type as temporaries on stack.
68 * thread.c (enable_thread_stack_temporaries): New function.
69 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
70 (get_last_thread_stack_temporary): Likewise.
71 (value_in_thread_stack_temporaries): Likewise.
72 * value.c (value_force_lval): New function.
73 * value.h (value_force_lval): Declare.
75 2014-11-28 Pierre Muller <muller@sourceware.org>
77 Pushed by Joel Brobecker <brobecker@adacore.com>.
78 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
81 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
83 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
84 * config/sparc/linux.mh (NATDEPFILES): Likewise.
85 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
86 * m68klinux-nat.c (fetch_core_registers): Remove.
87 (linux_elf_core_fns): Remove.
88 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
90 2014-11-28 Joel Brobecker <brobecker@adacore.com>
92 * utils.c (gdb_realpath): Rework comment about handling on
95 2014-11-28 Yao Qi <yao@codesourcery.com>
97 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
99 * gnulib/aclocal.m4: Re-generated.
100 * gnulib/config.in: Re-generated.
101 * gnulib/configure: Re-generated.
102 * gnulib/import/Makefile.am: Re-generated.
103 * gnulib/import/Makefile.in: Re-generated.
104 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
105 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
106 * import/basename-lgpl.c: New file.
107 * import/dirname-lgpl.c: New file.
108 * import/dirname.h: New file.
109 * import/m4/dirname.m4: New file.
110 * import/m4/malloc.m4: New file.
111 * import/m4/rename.m4: New file.
112 * import/m4/rmdir.m4: New file.
113 * import/m4/stdio_h.m4: New file.
114 * import/malloc.c: New file.
115 * import/rename.c: New file.
116 * import/rmdir.c: New file.
117 * import/same-inode.h: New file.
118 * import/stdio.c: New file.
119 * import/stdio.in.h: New file.
120 * import/stripslash.c: New file.
122 2014-11-28 Yao Qi <yao@codesourcery.com>
124 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
126 * config.in: Re-generated.
127 * configure: Re-generated.
128 * utils.c (gdb_realpath): Remove code calling realpath,
129 canonicalize_file_name and pathconf.
130 [!_WIN32]: Call canonicalize_file_name.
132 2014-11-28 Yao Qi <yao@codesourcery.com>
134 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
136 * aclocal.m4: Re-generated.
137 * config.in: Re-generated.
138 * configure: Re-generated.
139 * import/Makefile.am: Re-generated.
140 * import/Makefile.in: Re-generated.
141 * import/m4/gnulib-cache.m4: Re-generated.
142 * import/m4/gnulib-comp.m4: Re-generated.
143 * import/canonicalize-lgpl.c: New file.
144 * import/extra/snippet/_Noreturn.h: New file.
145 * import/m4/canonicalize.m4: New file.
146 * import/m4/double-slash-root.m4: New file.
147 * import/m4/eealloc.m4: New file.
148 * import/m4/malloca.m4: New file.
149 * import/m4/nocrash.m4: New file.
150 * import/m4/stdlib_h.m4: New file.
151 * import/malloca.c: New file.
152 * import/malloca.h: New file.
153 * import/malloca.valgrind: New file.
155 2014-11-28 Yao Qi <yao@codesourcery.com>
157 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
158 * config.in, configure: Regenerate.
159 * symfile.c (find_separate_debug_file_by_debuglink): Remove
160 code checking HAVE_LSTAT is defined.
162 2014-11-28 Yao Qi <yao@codesourcery.com>
164 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
166 * gnulib/aclocal.m4: Re-generated.
167 * gnulib/config.in: Re-generated.
168 * gnulib/configure: Re-generated.
169 * gnulib/import/Makefile.am: Re-generated.
170 * gnulib/import/Makefile.in: Re-generated.
171 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
172 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
173 * gnulib/import/lstat.c: New file.
174 * gnulib/import/m4/lstat.m4: New file.
176 2014-11-28 Yao Qi <yao@codesourcery.com>
178 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
179 * config.in, configure: Re-generate.
180 * inf-child.c (inf_child_fileio_readlink): Don't check
181 HAVE_READLINK is defined.
183 2014-11-28 Yao Qi <yao@codesourcery.com>
185 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
186 * gnulib/aclocal.m4: Re-generated.
187 * gnulib/config.in: Likewise.
188 * gnulib/configure: Likewise.
189 * gnulib/import/Makefile.am: Likewise.
190 * gnulib/import/Makefile.in: Likewise.
191 * gnulib/import/m4/gnulib-cache.m4: Likewise.
192 * gnulib/import/m4/gnulib-comp.m4: Likewise.
193 * gnulib/import/dosname.h: New file
194 * gnulib/import/m4/largefile.m4: New file.
195 * gnulib/import/m4/readlink.m4: New file.
196 * gnulib/import/m4/stat.m4: New file.
197 * gnulib/import/readlink.c: New file.
198 * gnulib/import/stat.c: New file.
200 2014-11-26 Mark Wielaard <mjw@redhat.com>
202 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
203 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
205 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
207 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
208 that there can be only one stack adjustment in the prologue
209 with tests to detect specific disallowed stack adjustments.
211 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
213 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
216 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
218 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
219 the instruction as well as reading it from memory.
220 (nios2_match_add): New.
221 (nios2_match_sub): New.
222 (nios2_match_addi): New.
223 (nios2_match_orhi): New.
224 (nios2_match_stw): New.
225 (nios2_match_ldw): New.
226 (nios2_match_rdctl): New.
227 (enum branch_condition): New.
228 (nios2_match_branch): New.
229 (nios2_match_jmpi): New.
230 (nios2_match_calli): New.
231 (nios2_match_jmpr): New.
232 (nios2_match_callr): New.
233 (nios2_match_break): New.
234 (nios2_match_trap): New.
235 (nios2_in_epilogue_p): Rewrite to use new functions.
236 (nios2_analyze_prologue): Likewise.
237 (nios2_skip_prologue): Delete unused local limit_pc.
238 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
239 (nios2_get_next_pc): Rewrite to use new functions.
241 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
243 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
245 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
247 Pushed by Joel Brobecker <brobecker@adacore.com>
248 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
249 elements pi_len by the size of the elements before calling
251 (inf_validate_task_sc): Likewise, and properly deallocate the
254 2014-11-23 Doug Evans <xdje42@gmail.com>
256 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
257 number and name if present. All callers updated.
258 (dump_fn_fieldlists): Fix indentation of args.
260 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
262 * MAINTAINERS (Write After Approval): Add myself.
264 2014-11-23 Joel Brobecker <brobecker@adacore.com>
266 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
267 to a bp_call_dummy breakpoint type.
269 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
271 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
272 registering the signal handler.
274 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
276 * event-top.h (call_stdin_event_handler_again_p): Declare.
277 * event-top.c (call_stdin_event_handler_again_p): Define.
278 (stdin_event_handler): Use it.
279 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
280 handler again if there is pending input following a
283 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
285 Pushed by Joel Brobecker <brobecker@adacore.com>
286 * linux-fork.c (checkpoint_command): Print index of new
287 checkpoint in response message.
289 2014-11-23 Yao Qi <yao@codesourcery.com>
291 * valprint.c (read_string): Move local variables 'found_nul',
292 'chunksize' and 'limit' to inner scope. Update comments.
294 2014-11-22 Doug Evans <xdje42@gmail.com>
296 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
298 (search_symbols): Fix comments and whitespace.
300 2014-11-22 Doug Evans <xdje42@gmail.com>
302 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
304 2014-11-21 Doug Evans <dje@google.com>
306 * psymtab.c (psymtab_search_name): Fix whitespace.
308 2014-11-21 Yao Qi <yao@codesourcery.com>
310 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
312 * gnulib/import/Makefile.am: Re-generated.
313 * gnulib/import/Makefile.in: Likewise.
314 * gnulib/import/m4/gnulib-cache.m4: Likewise.
316 2014-11-21 Yao Qi <yao@codesourcery.com>
318 * gdb_wchar.h: Include wchar.h and wctype.h.
319 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
320 include wchar.h and wctype.h.
321 Don't check HAVE_WCHAR_H.
323 2014-11-21 Yao Qi <yao@codesourcery.com>
325 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
327 * gnulib/import/Makefile.am: Re-generated.
328 * gnulib/import/Makefile.in: Likewise.
329 * gnulib/import/m4/gnulib-cache.m4: Likewise.
331 2014-11-21 Yao Qi <yao@codesourcery.com>
333 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
335 * gnulib/import/Makefile.am: Re-generated.
336 * gnulib/import/Makefile.in: Likewise.
337 * gnulib/import/m4/gnulib-cache.m4: Likewise.
339 2014-11-21 Yao Qi <yao@codesourcery.com>
341 * common/common-defs.h: Include alloca.h
342 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
343 * configure: Re-generated.
344 * defs.h: Remove code handling alloca.
345 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
348 2014-11-21 Yao Qi <yao@codesourcery.com>
350 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
352 * gnulib/import/Makefile.am: Re-generated.
353 * gnulib/import/Makefile.in: Likewise..
354 * gnulib/import/m4/gnulib-cache.m4: Likewise.
356 2014-11-21 Yao Qi <yao@codesourcery.com>
358 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
361 2014-11-21 Joel Brobecker <brobecker@adacore.com>
363 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
364 flag_unsigned if HIGH_BOUND is constant and negative.
366 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
369 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
370 modifier from "struct gdbarch" when compiling without Expat (XML)
372 (get_syscall_by_number): Likewise.
373 (get_syscall_by_name): Likewise.
374 (get_syscall_names): Likewise.
376 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
379 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
380 set_xml_syscall_file_name to provide gdbarch.
381 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
382 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
383 * breakpoint.c (print_it_catch_syscall): Adjust call to
384 get_syscall_by_number to provide gdbarch.
385 (print_one_catch_syscall): Likewise.
386 (print_mention_catch_syscall): Likewise.
387 (print_recreate_catch_syscall): Likewise.
388 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
389 and get_syscall_by_name to provide gdbarch.
390 (catch_syscall_completer): Adjust call to get_syscall_names to
392 * gdbarch.c: Regenerate.
393 * gdbarch.h: Likewise.
394 * gdbarch.sh: Forward declare "struct syscalls_info".
395 (xml_syscall_file): New variable.
396 (syscalls_info): Likewise.
397 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
398 set_xml_syscall_file_name to provide gdbarch.
399 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
400 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
401 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
402 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
403 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
404 * xml-syscall.c: Include gdbarch.h.
405 (set_xml_syscall_file_name): Accept gdbarch parameter.
406 (get_syscall_by_number): Likewise.
407 (get_syscall_by_name): Likewise.
408 (get_syscall_names): Likewise.
409 (my_gdb_datadir): Delete global variable.
410 (struct syscalls_info) <my_gdb_datadir>: New variable.
411 (struct syscalls_info) <sysinfo>: Rename variable to
413 (sysinfo): Delete global variable.
414 (have_initialized_sysinfo): Likewise.
415 (xml_syscall_file): Likewise.
416 (sysinfo_free_syscalls_desc): Rename to...
417 (syscalls_info_free_syscalls_desc): ... this.
418 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
419 code to the new layout of "struct syscalls_info".
420 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
422 (syscall_create_syscall_desc): Likewise.
423 (syscall_start_syscall): Likewise.
424 (syscall_parse_xml): Likewise.
425 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
426 (init_sysinfo): Rename to...
427 (init_syscalls_info): ...this. Add gdbarch as a parameter.
428 Adjust function to deal with gdbarch.
429 (xml_get_syscall_number): Delete parameter sysinfo. Accept
430 gdbarch as a parameter. Adjust code.
431 (xml_get_syscall_name): Likewise.
432 (xml_list_of_syscalls): Likewise.
433 (set_xml_syscall_file_name): Accept gdbarch as parameter.
434 (get_syscall_by_number): Likewise.
435 (get_syscall_by_name): Likewise.
436 (get_syscall_names): Likewise.
437 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
438 (get_syscall_by_number): Likewise.
439 (get_syscall_by_name): Likewise.
440 (get_syscall_names): Likewise.
442 2014-11-20 Doug Evans <xdje42@gmail.com>
444 Split struct symtab into two: struct symtab and compunit_symtab.
445 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
446 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
447 to "struct compunit_symtab *". All callers updated.
448 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
449 "struct symtab *" argument to "struct compunit_symtab *".
451 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
452 result to "struct compunit_symtab *". All callers updated.
453 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
454 Change result to "struct compunit_symtab *". All callers updated.
455 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
456 hange type to "struct compunit_symtab *". All uses updated.
457 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
458 Change type to "struct compunit_symtab *". All uses updated.
459 * buildsym.c (struct buildsym_compunit): New struct.
460 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
461 (buildsym_compunit): New static global.
462 (finish_block_internal): Update to fetch objfile from
464 (make_blockvector): Delete objfile argument.
465 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
466 debugformat, producer.
467 (start_buildsym_compunit): New function.
468 (free_buildsym_compunit): Renamed from free_subfiles_list.
470 (patch_subfile_names): Rewrite to use buildsym_compunit.
471 (get_compunit_symtab): New function.
472 (get_macro_table): Delete argument comp_dir. All callers updated.
473 (start_symtab): Change result to "struct compunit_symtab *".
474 All callers updated. Create the subfile of the main source file.
475 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
476 (reset_symtab_globals): Update.
477 (end_symtab_get_static_block): Update to use buildsym_compunit.
478 (end_symtab_without_blockvector): Rewrite.
479 (end_symtab_with_blockvector): Change result to
480 "struct compunit_symtab *". All callers updated.
481 Update to use buildsym_compunit. Don't set symtab->dirname,
482 instead set it in the compunit.
483 Explicitly make sure main symtab is first in its list.
484 Set debugformat, producer, blockvector, block_line_section, and
485 macrotable in the compunit.
486 (end_symtab_from_static_block): Change result to
487 "struct compunit_symtab *". All callers updated.
488 (end_symtab, end_expandable_symtab): Ditto.
489 (set_missing_symtab): Change symtab argument to
490 "struct compunit_symtab *". All callers updated.
491 (augment_type_symtab): Ditto.
492 (record_debugformat): Update to use buildsym_compunit.
493 (record_producer): Update to use buildsym_compunit.
494 * buildsym.h (struct subfile) <dirname>: Delete.
495 <producer, debugformat>: Delete.
496 <buildsym_compunit>: New member.
497 (get_compunit_symtab): Declare.
498 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
499 from primary_symtab. Change type to "struct compunit_symtab *".
501 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
503 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
504 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
505 symtab. Change type to "struct compunit_symtab *". All uses updated.
506 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
508 (dw2_find_last_source_symtab): Ditto.
509 (dw2_lookup_symbol): Ditto.
510 (recursively_find_pc_sect_compunit_symtab): Renamed from
511 recursively_find_pc_sect_symtab. Change result to
512 "struct compunit_symtab *". All callers updated.
513 (dw2_find_pc_sect_compunit_symtab): Renamed from
514 dw2_find_pc_sect_symtab. Change result to
515 "struct compunit_symtab *". All callers updated.
516 (get_compunit_symtab): Renamed from get_symtab. Change result to
517 "struct compunit_symtab *". All callers updated.
518 (recursively_compute_inclusions): Change type of immediate_parent
519 argument to "struct compunit_symtab *". All callers updated.
520 (compute_compunit_symtab_includes): Renamed from
521 compute_symtab_includes. All callers updated. Rewrite to compute
522 includes of compunit_symtabs and not symtabs.
523 (process_full_comp_unit): Update to work with struct compunit_symtab.
524 (process_full_type_unit): Ditto.
525 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
526 (dwarf_decode_lines): Remove special case handling of main subfile.
527 (macro_start_file): Delete argument comp_dir. All callers updated.
528 (dwarf_decode_macro_bytes): Ditto.
529 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
530 use struct compunit_symtab.
531 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
532 * jit.c (finalize_symtab): Build compunit_symtab.
533 * jv-lang.c (get_java_class_symtab): Change result to
534 "struct compunit_symtab *". All callers updated.
535 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
536 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
537 comp_dir. Change type to "struct compunit_symtab *".
539 (new_macro_table): Change comp_dir argument to cust,
540 "struct compunit_symtab *". All callers updated.
541 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
542 nr_primary_symtabs. All uses updated.
543 (count_symtabs_and_blocks): Update to handle compunits.
544 (report_command_stats): Update output, "primary symtabs" renamed to
546 * mdebugread.c (new_symtab): Change result to
547 "struct compunit_symtab *". All callers updated.
548 (parse_procedure): Change type of search_symtab argument to
549 "struct compunit_symtab *". All callers updated.
550 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
552 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
553 symtabs. Change type to "struct compunit_symtab *". All uses updated.
554 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
556 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
558 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
559 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
560 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
561 symtab. Change type to "struct compunit_symtab *". All uses updated.
562 * psymtab.c (psymtab_to_symtab): Change result type to
563 "struct compunit_symtab *". All callers updated.
564 (find_pc_sect_compunit_symtab_from_partial): Renamed from
565 find_pc_sect_symtab_from_partial. Change result type to
566 "struct compunit_symtab *". All callers updated.
567 (lookup_symbol_aux_psymtabs): Change result type to
568 "struct compunit_symtab *". All callers updated.
569 (find_last_source_symtab_from_partial): Ditto.
570 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
571 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
572 and macro_table from compunit.
573 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
574 type to "struct compunit_symtab *". All callers updated.
575 (debug_qf_lookup_symbol): Ditto.
576 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
577 debug_qf_find_pc_sect_symtab, change result type to
578 "struct compunit_symtab *". All callers updated.
579 * symfile.c (allocate_symtab): Delete objfile argument.
581 (allocate_compunit_symtab): New function.
582 (add_compunit_symtab_to_objfile): New function.
583 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
584 Change result type to "struct compunit_symtab *". All uses updated.
585 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
586 Change result type to "struct compunit_symtab *". All uses updated.
587 * symmisc.c (print_objfile_statistics): Compute blockvector count in
589 (dump_symtab_1): Update test for primary source symtab.
590 (maintenance_info_symtabs): Update to handle compunit symtabs.
591 (maintenance_check_symtabs): Ditto.
592 * symtab.c (set_primary_symtab): Delete.
593 (compunit_primary_filetab): New function.
594 (compunit_language): New function.
595 (iterate_over_some_symtabs): Change type of arguments "first",
596 "after_last" to "struct compunit_symtab *". All callers updated.
597 Update to loop over symtabs in each compunit.
598 (error_in_psymtab_expansion): Rename symtab argument to cust,
599 and change type to "struct compunit_symtab *". All callers updated.
600 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
601 Change result type to "struct compunit_symtab *". All callers updated.
602 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
603 Change result type to "struct compunit_symtab *". All callers updated.
604 (find_pc_sect_line): Only loop over symtabs within selected compunit
605 instead of all symtabs in the objfile.
606 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
607 <compunit_symtab> New member.
608 <block_line_section>: Moved to compunit_symtab.
609 <locations_valid>: Ditto.
610 <epilogue_unwind_valid>: Ditto.
611 <macro_table>: Ditto.
613 <debugformat>: Ditto.
616 <call_site_htab>: Ditto.
620 (SYMTAB_COMPUNIT): New macro.
621 (SYMTAB_BLOCKVECTOR): Update definition.
622 (SYMTAB_OBJFILE): Update definition.
623 (SYMTAB_DIRNAME): Update definition.
624 (struct compunit_symtab): New type. Common members among all source
625 symtabs within a compilation unit moved here. All uses updated.
626 (COMPUNIT_OBJFILE): New macro.
627 (COMPUNIT_FILETABS): New macro.
628 (COMPUNIT_DEBUGFORMAT): New macro.
629 (COMPUNIT_PRODUCER): New macro.
630 (COMPUNIT_DIRNAME): New macro.
631 (COMPUNIT_BLOCKVECTOR): New macro.
632 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
633 (COMPUNIT_LOCATIONS_VALID): New macro.
634 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
635 (COMPUNIT_CALL_SITE_HTAB): New macro.
636 (COMPUNIT_MACRO_TABLE): New macro.
637 (ALL_COMPUNIT_FILETABS): New macro.
638 (compunit_symtab_ptr): New typedef.
639 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
641 2014-11-20 Joel Brobecker <brobecker@adacore.com>
643 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
644 if the TYPE_CODE of range_type's base type does not match
645 the TYPE_CODE of encoding_type's base type.
647 2014-11-19 Joel Brobecker <brobecker@adacore.com>
649 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
652 2014-11-19 Joel Brobecker <brobecker@adacore.com>
654 * ada-lang.c (ada_is_redundant_range_encoding): New function.
655 (ada_is_redundant_index_type_desc): New function.
656 (to_fixed_array_type): Ignore parallel XA type if redundant.
658 2014-11-19 Joel Brobecker <brobecker@adacore.com>
660 * ada-lang.c (constrained_packed_array_type): Set the length
661 of the return array as if both bounds where zero if that
662 returned array's index type is dynamic.
664 2014-11-19 Yao Qi <yao@codesourcery.com>
666 * config/i386/go32.mh (CC): Remove.
668 2014-11-18 Doug Evans <xdje42@gmail.com>
670 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
673 2014-11-18 Doug Evans <xdje42@gmail.com>
675 * buildsym.c (buildsym_objfile): New static global.
676 (buildsym_comp_dir): New static global.
677 (finish_block_internal): Delete arg objfile. All callers updated.
678 (finish_block): Delete arg objfile. All callers updated.
679 (start_subfile): Delete arg dirname. All callers updated.
680 (patch_subfile_names): Update buildsym_comp_dir.
681 (get_macro_table): Delete arg objfile. All callers updated.
682 (start_symtab): New arg objfile. All callers updated.
683 Rename arg dirname to comp_dir.
684 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
685 (end_symtab_get_static_block): Delete arg objfile. All callers
687 (end_symtab_without_blockvector): Ditto.
688 (end_symtab_with_blockvector): Ditto.
689 (end_symtab_from_static_block): Ditto.
691 (end_expandable_symtab): Ditto.
692 (augment_type_symtab): Ditto.
693 * coffread.c (coff_start_symtab): New arg objfile. All callers
696 2014-11-18 Doug Evans <xdje42@gmail.com>
698 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
701 2014-11-18 Doug Evans <xdje42@gmail.com>
703 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
704 symtab.dirname updated to use it.
706 2014-11-18 Doug Evans <xdje42@gmail.com>
708 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
709 symtab.objfile updated to use it.
711 2014-11-18 Doug Evans <xdje42@gmail.com>
713 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
715 2014-11-18 Doug Evans <xdje42@gmail.com>
717 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
719 * findvar.c (default_read_var_value): Ditto.
720 * jv-lang.c (add_class_symtab_symbol): Ditto.
721 * parse.c (operator_check_standard): Ditto.
722 * printcmd.c (address_info): Ditto.
723 * symtab.c (fixup_symbol_section): Ditto.
724 (skip_prologue_sal): Ditto.
725 * tracepoint.c (scope_info): Ditto.
726 * valops.c (find_function_in_inferior): Ditto.
727 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
728 * python/py-symbol.c (set_symbol): Ditto.
730 2014-11-18 Doug Evans <xdje42@gmail.com>
732 * buildsym.c (main_subfile): New static global.
733 (free_subfiles_list): New function.
734 (start_symtab): Set main_subfile.
735 (restart_symtab): Replace init of subfiles, current_subfile with
736 call to free_subfiles_list.
737 (watch_main_source_file_lossage): Use main_subfile.
738 (reset_symtab_globals): Replace init of current_subfile with call
739 to free_subfiles_list.
740 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
741 functions, split out from ...
742 (end_symtab_from_static_block): ... here. Rewrite to call them.
744 2014-11-18 Doug Evans <xdje42@gmail.com>
746 The result of symtab expansion is always a primary symtab.
747 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
748 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
749 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
750 (psymtab_to_symtab): Add comment and assert.
751 (map_matching_symbols_psymtab): Remove unnecessary test for
754 2014-11-15 Doug Evans <xdje42@gmail.com>
757 * symtab.c (find_pc_line_symtab): New function.
758 * symtab.h (find_pc_line_symtab): Declare.
759 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
761 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
762 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
763 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
764 * tui/tui-win.c (make_visible_with_new_height): Ditto.
765 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
766 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
768 2014-11-15 Doug Evans <xdje42@gmail.com>
770 * symtab.c (expand_symtab_containing_pc): Renamed from
771 find_pc_sect_symtab_via_partial. All callers updated.
773 2014-11-15 Yao Qi <yao@codesourcery.com>
775 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
777 2014-11-14 Joel Brobecker <brobecker@adacore.com>
779 * common/common-defs.h: Move <stdarg.h> #include ahead of
782 2014-11-14 Pedro Alves <palves@redhat.com>
784 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
785 [!PHONY_ICONV] (gdb_iconv): New function.
786 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
788 2014-11-13 Doug Evans <dje@google.com>
791 * dwarf2read.c (find_slot_in_mapped_hash): Handle
792 "(anonymous namespace)".
794 2014-11-13 Doug Evans <dje@google.com>
796 * dwarf2read.c (update_enumeration_type_from_children): Avoid
799 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
801 * NEWS (maint set target-async): Fix typo.
803 2014-11-12 Pedro Alves <palves@redhat.com>
805 * infrun.c (enum infwait_states, infwait_state): Delete.
807 2014-11-12 Pedro Alves <palves@redhat.com>
809 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
810 Rewrite stepping over a permanent breakpoint.
811 (thread_still_needs_step_over, proceed): Don't set
812 stepping_over_breakpoint for permanent breakpoints.
813 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
814 single-step breakpoints out of the target on hardware step
816 (process_event_stop_test): If stepping a permanent breakpoint
817 doesn't hit the step-resume breakpoint, delete the step-resume
819 (switch_back_to_stepped_thread): Also check if the stepped thread
820 has advanced already on hardware step targets.
821 (currently_stepping): Return true if the thread stepped a
824 2014-11-12 Pedro Alves <palves@redhat.com>
826 Mark locations as permanent, not the whole breakpoint.
827 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
828 (mark_breakpoints_out): Don't mark permanent breakpoints as
830 (breakpoint_init_inferior): Use mark_breakpoints_out.
831 (breakpoint_here_p): Adjust.
832 (bpstat_stop_status, describe_other_breakpoints): Remove handling
833 of permanent breakpoints.
834 (make_breakpoint_permanent): Mark each location as permanent,
835 instead of marking the breakpoint.
836 (add_location_to_breakpoint): If the location is permanent, mark
837 it as such, and as inserted.
838 (init_breakpoint_sal): Don't make the breakpoint permanent here.
839 (bp_location_compare, update_global_location_list): Adjust.
840 (update_breakpoint_locations): Don't make the breakpoint permanent
842 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
844 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
845 (struct bp_location) <permanent>: New field.
846 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
847 reference to bp_permanent.
849 2014-11-12 Pedro Alves <palves@redhat.com>
851 * arch-utils.c (default_skip_permanent_breakpoint): New function.
852 * arch-utils.h (default_skip_permanent_breakpoint): New
854 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
855 Install default_skip_permanent_breakpoint as default method.
856 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
857 (i386_gdbarch_init): Don't install it.
858 * infrun.c (resume): Assume there's always a
859 gdbarch_skip_permanent_breakpoint implementation.
860 * gdbarch.h, gdbarch.c: Regenerate.
862 2014-11-11 Daniel Colascione <dancol@dancol.org>
864 Warn about cross-PID-namespace debugging.
865 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
866 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
867 * linux-thread-db.c (check_pid_namespace_match): New function.
868 (thread_db_inferior_created): Call it.
870 2014-11-10 Doug Evans <xdje42@gmail.com>
872 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
873 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
875 2014-11-10 Doug Evans <xdje42@gmail.com>
877 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
879 2014-11-10 Doug Evans <xdje42@gmail.com>
882 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
883 (lookup_static_symbol): Move definition to new location and rewrite.
884 (lookup_symbol_in_objfile): New function.
885 (lookup_symbol_global_iterator_cb): Call it.
887 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
889 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
891 2014-11-07 Pedro Alves <palves@redhat.com>
893 * infrun.c (process_event_stop_test) <subroutine check>: Don't
894 check if we did a "nexti" inside a prologue.
895 * symtab.c (in_prologue): Delete function.
896 * symtab.h (in_prologue): Delete declaration.
898 2014-11-06 Doug Evans <xdje42@gmail.com>
900 * symtab.h (lookup_global_symbol): Improve function comment.
902 2014-11-06 Doug Evans <xdje42@gmail.com>
904 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
906 * symtab.h (lookup_global_symbol): Update decl.
907 (lookup_static_symbol): Move decl to better location.
909 2014-11-06 Doug Evans <xdje42@gmail.com>
911 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
913 2014-11-06 Doug Evans <xdje42@gmail.com>
915 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
917 (lookup_symbol_in_all_objfiles): Renamed from
918 lookup_symbol_aux_symtabs. All callers updated.
919 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
921 (lookup_symbol_in_objfile_symtabs): Renamed from
922 lookup_symbol_aux_objfile. All callers updated.
924 2014-11-06 Doug Evans <xdje42@gmail.com>
926 * symtab.c (lookup_symbol_in_block): Renamed from
927 lookup_symbol_aux_block. All callers updated.
929 2014-11-06 Doug Evans <xdje42@gmail.com>
931 * symtab.c (lookup_static_symbol): Renamed from
932 lookup_static_symbol_aux. All callers updated.
933 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
936 2014-11-06 Doug Evans <xdje42@gmail.com>
938 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
939 * block.c (block_lookup_symbol): Use it.
940 * cp-support.c (make_symbol_overload_list_block): Use it.
941 * symtab.c (iterate_over_symbols): Use it.
943 2014-11-06 Doug Evans <xdje42@gmail.com>
945 * symtab.c (lookup_block_symbol): Moved to ...
946 * block.c (block_lookup_symbol): ... here and renamed.
948 * block.h (block_lookup_symbol): Declare.
949 * symtab.h (lookup_block_symbol): Delete.
951 2014-11-06 Doug Evans <xdje42@gmail.com>
953 * ada-lang.c (ada_make_symbol_completion_list): Use
954 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
955 * symtab.c (lookup_objfile_from_block): Ditto.
957 2014-11-06 Doug Evans <xdje42@gmail.com>
959 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
962 2014-11-06 Doug Evans <xdje42@gmail.com>
964 * objfiles.c (get_objfile_arch): Constify.
965 * objfiles.h (get_objfile_arch): Update prototype.
966 * solib.c (solib_global_lookup): Fetch arch from objfile,
969 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
971 * nios2-tdep.c (wild_insn): Delete.
972 (profiler_insn, irqentry_insn): Delete.
973 (nios2_match_sequence): Delete.
974 (nios2_analyze_prologue): Update comments. Remove matching
975 of obsolete profiler_insn and irqentry_insn sequences.
977 2014-11-05 Alan Modra <amodra@gmail.com>
979 * charset.c (convert_between_encodings): Shrink obstack using
981 * minsyms.c (install_minimal_symbols): Likewise.
982 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
983 to char* before doing pointer arithmetic.
985 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
987 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
989 2014-11-04 Pedro Alves <palves@redhat.com>
991 * breakpoint.c (breakpoint_thread_match): Delete function.
992 * breakpoint.h (breakpoint_thread_match): Delete declaration.
994 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
997 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
998 the method args also under EVAL_SKIP when evaluating method
999 calls under EVAL_SKIP.
1001 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1003 * dwarf2loc.c (read_pieced_value): Do big endian
1004 processing only if gdb_regnum is not -1.
1005 (write_pieced_value): Ditto.
1007 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1009 * arm-linux-tdep.c (arm_linux_init_abi): Use
1010 info.byte_order_for_code to choose endianity of breakpoint
1011 instructions snippets.
1013 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1015 * arm-tdep.c (extract_arm_insn): Use
1016 gdbarch_byte_order_for_code to read arm instruction.
1018 2014-11-02 Doug Evans <xdje42@gmail.com>
1020 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1022 2014-11-02 Doug Evans <xdje42@gmail.com>
1024 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1025 main_subfile before returning.
1027 2014-10-31 Doug Evans <xdje42@gmail.com>
1029 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1030 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1032 2014-10-31 Doug Evans <xdje42@gmail.com>
1034 * valops.c (value_cast_pointers): Fix whitespace.
1035 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1038 2014-10-30 Doug Evans <dje@google.com>
1040 * NEWS: Mention ability add attributes to gdb.Objfile and
1041 gdb.Progspace objects.
1042 * python/py-objfile.c (objfile_object): New member dict.
1043 (objfpy_dealloc): Py_XDECREF dict.
1044 (objfpy_initialize): Initialize dict.
1045 (objfile_getset): Add __dict__.
1046 (objfile_object_type): Set tp_dictoffset member.
1047 * python/py-progspace.c (progspace_object): New member dict.
1048 (pspy_dealloc): Py_XDECREF dict.
1049 (pspy_initialize): Initialize dict.
1050 (pspace_getset): Add __dict__.
1051 (pspace_object_type): Set tp_dictoffset member.
1053 2014-10-30 Yao Qi <yao@codesourcery.com>
1055 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1056 replace '\\' with '\\\\'.
1058 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1062 2014-10-29 Pedro Alves <palves@redhat.com>
1065 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1066 instead of assuming a thread with a stepping range is always
1069 2014-10-29 Pedro Alves <palves@redhat.com>
1072 * event-top.c (change_line_handler): Call
1073 gdb_rl_callback_handler_remove instead of
1074 rl_callback_handler_remove.
1075 (callback_handler_installed): New global.
1076 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1077 (gdb_rl_callback_handler_reinstall): New functions.
1078 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1079 gdb_rl_callback_handler_install instead of
1080 rl_callback_handler_remove and rl_callback_handler_install.
1081 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1082 instead of rl_callback_handler_remove.
1083 * event-top.h (gdb_rl_callback_handler_remove)
1084 (gdb_rl_callback_handler_install)
1085 (gdb_rl_callback_handler_reinstall): New declarations.
1086 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1088 (fetch_inferior_event): Install it.
1089 * top.c (gdb_readline_wrapper_line) Call
1090 gdb_rl_callback_handler_remove instead of
1091 rl_callback_handler_remove.
1092 (gdb_readline_wrapper_cleanup): Don't call
1093 rl_callback_handler_install.
1095 2014-10-29 Pedro Alves <palves@redhat.com>
1097 * event-top.c (command_line_handler): Clear the first byte of
1098 linebuffer, when it is first allocated.
1100 2014-10-29 Pedro Alves <palves@redhat.com>
1102 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1105 2014-10-29 Pedro Alves <palves@redhat.com>
1109 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1110 (tui_allowed_p): Delete function.
1111 * tui/tui.c: Include "interps.h".
1112 (tui_enable): Don't use tui_allowed_p. Error out here with
1113 detailed error messages if the TUI is the top level interpreter,
1114 or if output is not a terminal. Use newterm instead of initscr,
1115 and error out if initializing the terminal fails. Also error out if
1116 the terminal doesn't support cursor addressing.
1117 * tui/tui.h (tui_allowed_p): Delete declaration.
1119 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1121 * arm-tdep.c (arm_skip_stack_protector): Return early if
1122 address loaded by first "ldr" instruction does not have
1123 a corresponding minimal symbol. Update comment.
1125 2014-10-29 Yao Qi <yao@codesourcery.com>
1127 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1128 loaded address correctly of ldr instruction.
1130 2014-10-28 Pedro Alves <palves@redhat.com>
1133 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1135 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1136 thread's stepped_breakpoint field. Skip if reverse debugging.
1138 (init_thread_stepping_state, handle_signal_stop): Clear the
1139 thread's stepped_breakpoint field.
1141 2014-10-27 Pedro Alves <palves@redhat.com>
1143 * remote.c (remote_thread_alive): New, factored out from ...
1144 (remote_thread_alive): ... this.
1145 (remote_update_thread_list): Bail out before deleting threads if
1146 the target returned an empty list, and, the current thread has a
1149 2014-10-27 Pedro Alves <palves@redhat.com>
1151 * infrun.c (handle_signal_stop): Also skip handlers when a random
1152 signal arrives while handling a "stepi" or a "nexti". Set the
1153 thread's 'step_after_step_resume_breakpoint' flag.
1155 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1157 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1158 (arm_record_ld_st_imm_offset): Reimplement to cover all
1159 load/store cases for ARM opcode 010.
1160 (arm_record_ld_st_multiple): Reimplement to cover all
1161 load/store cases for ARM opcode 100.
1163 2014-10-26 Doug Evans <xdje42@gmail.com>
1165 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1167 2014-10-26 Doug Evans <xdje42@gmail.com>
1169 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1170 parameter "kind" to "block_index".
1171 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1173 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1175 2014-10-26 Doug Evans <xdje42@gmail.com>
1177 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1179 2014-10-26 Doug Evans <xdje42@gmail.com>
1181 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1184 2014-10-26 Doug Evans <xdje42@gmail.com>
1186 * parser-defs.h (block_found): Move decl from here ...
1187 * symtab.h (block_found): ... to here.
1189 2014-10-26 Doug Evans <xdje42@gmail.com>
1191 * symtab.h (struct field_of_this_result): Fix typo in comment.
1192 (lookup_symbol_in_language): Move function comment here.
1193 (lookup_symbol): Improve function comment.
1194 (basic_lookup_symbol_nonlocal): Ditto.
1195 (lookup_symbol_static, lookup_symbol_global): Ditto.
1196 (lookup_symbol_aux_block): Ditto.
1197 (lookup_language_this): Add function comment.
1198 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1200 (lookup_block_symbol): Improve function comment.
1201 (lookup_struct): Fix capitalization in function comment.
1202 (lookup_transparent_type): Add function comment.
1203 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1204 Improve function comment.
1205 (lookup_objfile_from_block): Add function comment.
1206 * symtab.c (lookup_symbol_in_language): Update function comment.
1207 (lookup_symbol, lookup_language_this): Ditto.
1208 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1209 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1210 (basic_lookup_symbol_nonlocal): Ditto.
1211 (lookup_symbol_static, lookup_symbol_global): Ditto.
1212 (lookup_transparent_type, lookup_block_symbol): Ditto.
1214 2014-10-25 Doug Evans <xdje42@gmail.com>
1216 * symtab.c (types_info): Delete forward decl.
1217 (functions_info, variables_info, sources_info): Ditto.
1218 (_initialize_symtab): Rewrite forward decl to use
1219 initialize_file_ftype.
1221 2014-10-25 Doug Evans <xdje42@gmail.com>
1223 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1225 2014-10-25 Doug Evans <xdje42@gmail.com>
1227 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1228 of local var child_die.
1230 2014-10-24 Don Breazeal <donb@codesourcery.com>
1232 * infrun.c (follow_fork_inferior): Update fork message printing
1233 to use target_terminal_ours_for_output instead of
1234 target_terminal_ours, to use _() for all format strings, to print
1235 "vfork" instead of "fork" for vforks, and to add a detach message.
1236 (handle_vfork_child_exec_or_exit): Update message printing to use
1237 target_terminal_ours_for_output instead of target_terminal_ours, to
1238 use _() for all format strings, and to fix some formatting.
1240 2014-10-24 Pedro Alves <palves@redhat.com>
1242 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1243 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1244 * config/vax/vax.mh: Delete.
1245 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1246 obsolete configurations section.
1247 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1248 * vax-nat.c: Delete file.
1250 2014-10-24 Pedro Alves <palves@redhat.com>
1252 * NEWS (Removed targets): Add OS/arch column.
1254 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1256 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1257 on the arg type of a constructor only if it is of reference type.
1259 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1261 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1262 accessors and constants from nios2 opcodes update.
1263 (nios2_get_next_pc): Likewise.
1265 2014-10-19 Doug Evans <xdje42@gmail.com>
1267 * gdbthread.h (set_running): Fix comment.
1268 (set_executing, finish_thread_state): Fix comment.
1270 2014-10-18 Doug Evans <xdje42@gmail.com>
1272 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1274 2014-10-17 Doug Evans <dje@google.com>
1276 * NEWS: Mention new event gdb.clear_objfiles.
1277 * python/py-event.h (emit_clear_objfiles_event): Clear
1278 * python/py-events.h (events_object): New member clear_objfiles.
1279 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1281 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1282 emit clear_objfiles event.
1283 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1285 (emit_clear_objfiles_event): New function.
1286 (clear_objfiles): New event.
1287 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1289 * python/python.c (_initialize_python): Call
1290 gdbpy_initialize_clear_objfiles_event.
1292 2014-10-17 Doug Evans <dje@google.com>
1294 * NEWS: Mention new gdb.Objfile.progspace attribute.
1295 * python/py-objfile.c (objfpy_get_progspace): New function.
1296 (objfile_getset): New entry for "progspace".
1298 2014-10-17 Pedro Alves <palves@redhat.com>
1301 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1302 returns a copy of the input.
1303 (run_command_1, continue_command, step_1, jump_command)
1304 (signal_command, until_command, advance_command, finish_command)
1305 (attach_command): Adjust and install a cleanup to free the
1308 2014-10-17 Pedro Alves <palves@redhat.com>
1311 * infcmd.c (continue_1): If continuing all threads in the
1312 foreground, make sure the inferior's terminal settings are put in
1315 2014-10-17 Pedro Alves <palves@redhat.com>
1318 * annotate.c (annotate_breakpoints_invalid): Use
1319 target_terminal_our_for_output instead of target_terminal_ours.
1320 Give back the terminal to the target.
1321 (annotate_frames_invalid): Likewise.
1323 2014-10-17 Pedro Alves <palves@redhat.com>
1325 * target.c (enum terminal_state): New enum.
1326 (terminal_state): New global.
1327 (target_terminal_init): New function.
1328 (target_terminal_inferior): Skip if inferior already owns the
1330 (target_terminal_ours, target_terminal_ours_for_output): New
1332 * target.h (target_terminal_init): Convert to function prototype.
1333 (target_terminal_ours_for_output): Convert to function prototype
1335 (target_terminal_ours): Convert to function prototype and tweak
1337 * windows-nat.c (do_initial_windows_stuff): Call
1338 target_terminal_init instead of child_terminal_init_with_pgrp.
1340 2014-10-17 Pedro Alves <palves@redhat.com>
1342 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1343 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1344 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1346 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1347 * ada-lang.h [__alpha__ && __osf__]
1348 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1349 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1350 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1352 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1354 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1355 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1356 * configure: Regenerate.
1357 * configure.ac: Remove references to osf.
1358 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1359 section. Remove all other references to osf.
1360 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1361 Remove all other references to osf.
1362 * dec-thread.c: Delete file.
1363 * defs.h (GDB_OSABI_OSF1): Delete.
1364 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1366 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1367 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1369 (unconditionally_kill_inferior)
1370 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1371 * solib-osf.c: Delete file.
1373 2014-10-17 Pedro Alves <palves@redhat.com>
1375 * remote.c (clear_threads_listing_context): Move higher up, out of
1376 the HAVE_LIBEXPAT guard.
1378 2014-10-16 Tristan Gingold <gingold@adacore.com>
1380 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1381 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1384 2014-10-15 Pedro Alves <palves@redhat.com>
1386 * dec-thread.c (dec_thread_count_gdb_threads)
1387 (dec_thread_add_gdb_thread): Delete.
1388 (dec_thread_update_thread_list): Delete.
1389 (dec_thread_find_new_threads): Rename to ...
1390 (dec_thread_update_thread_list): ... this. Delete GDB-size
1391 threads that are no longer found in dec_thread_list.
1392 (resync_thread_list): Delete.
1393 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1396 2014-10-15 Pedro Alves <palves@redhat.com>
1398 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1399 * remote.c (remote_update_thread_list): Skip calling prune_threads
1400 if any thread listing method is supported, and instead walk over
1401 the set of remote threads listed, deleting those that are not
1402 found in GDB's thread list.
1404 2014-10-15 Pedro Alves <palves@redhat.com>
1406 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1407 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1408 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1409 (bsd_uthread_target): Adjust.
1410 * corelow.c (core_open): Adjust.
1411 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1412 (dec_thread_update_thread_list): New function.
1413 (init_dec_thread_ops): Adjust.
1414 * gdbthread.h (prune_threads): New declaration.
1415 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1416 (thread_db_update_thread_list): ... this. Call prune_threads.
1417 (init_thread_db_ops): Adjust.
1418 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1419 (procfs_update_thread_list): ... this. Call prune_threads.
1420 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1422 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1423 (obsd_update_thread_list): ... this. Call prune_threads.
1424 (obsd_add_target): Adjust.
1425 * procfs.c (procfs_target): Adjust.
1426 (procfs_notice_thread): Update comment.
1427 (procfs_find_new_threads): Rename to ...
1428 (procfs_update_thread_list): ... this. Call prune_threads.
1429 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1431 (ravenscar_wait): Adjust.
1432 (ravenscar_find_new_threads): Rename to ...
1433 (ravenscar_update_thread_list): ... this. Call prune_threads.
1434 (init_ravenscar_thread_ops): Adjust.
1435 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1436 (record_btrace_update_thread_list): ... this. Adjust comment.
1437 (init_record_btrace_ops): Adjust.
1438 * remote.c (remote_threads_info): Rename to ...
1439 (remote_update_thread_list): ... this. Call prune_threads.
1440 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1442 * sol-thread.c (check_for_thread_db): Adjust.
1443 (sol_find_new_threads_callback): Rename to ...
1444 (sol_update_thread_list_callback): ... this.
1445 (sol_find_new_threads): Rename to ...
1446 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1447 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1448 * target-delegates.c: Regenerate.
1449 * target.c (target_find_new_threads): Rename to ...
1450 (target_update_thread_list): ... this.
1451 * target.h (struct target_ops): Rename to_find_new_threads field
1452 to to_update_thread_list.
1453 (target_find_new_threads): Rename to ...
1454 (target_update_thread_list): ... this.
1455 * thread.c (prune_threads): Make extern.
1456 (update_thread_list): Adjust.
1458 2014-10-15 Pedro Alves <palves@redhat.com>
1460 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1461 Add describing comment. Return -1 if the qL packet is not
1463 (struct thread_item, thread_item_t): Move higher up in
1464 the file. Add comments.
1465 (struct threads_parsing_context): Move higher up in
1466 the file, add comments, and remote to ...
1467 (struct threads_listing_context): ... this.
1468 (remote_newthread_step): Don't add the thread to GDB's thread
1469 database here. Instead push it to the thread_listing_context
1471 (remote_find_new_threads): Rename to ...
1472 (remote_get_threads_with_ql): ... this. Add target_ops and
1473 targets_listing_context parameters. Pass down context.
1474 (start_thread): Adjust.
1475 (clear_threads_parsing_context): Rename to ...
1476 (clear_threads_listing_context): ... this.
1477 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1478 remote_threads_info.
1479 (remote_get_threads_with_qthreadinfo): Ditto.
1480 (remote_threads_info): Reimplement.
1482 2014-10-15 Pedro Alves <palves@redhat.com>
1484 * infrun.c (resume): Don't force displaced-stepping for all
1485 single-steps on software single-stepping archs.
1487 2014-10-15 Pedro Alves <palves@redhat.com>
1489 * breakpoint.c (single_step_breakpoints): Delete global.
1490 (insert_single_step_breakpoint): Adjust to store the breakpoint
1491 pointer in the current thread.
1492 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1493 (cancel_single_step_breakpoints): Delete functions.
1494 (breakpoint_has_location_inserted_here): Make extern.
1495 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1497 * breakpoint.h (breakpoint_has_location_inserted_here): New
1499 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1500 (cancel_single_step_breakpoints): Remove declarations.
1501 * gdbthread.h (struct thread_control_state)
1502 <single_step_breakpoints>: New field.
1503 (delete_single_step_breakpoints)
1504 (thread_has_single_step_breakpoints_set)
1505 (thread_has_single_step_breakpoint_here): New declarations.
1506 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1507 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1508 (singlestep_pc): Delete globals.
1509 (infrun_thread_ptid_changed): Remove references to removed
1511 (resume_cleanups): Delete the current thread's single-step
1513 (maybe_software_singlestep): Remove references to removed globals.
1514 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1515 delete_single_step_breakpoints.
1516 (init_wait_for_inferior): Remove references to removed globals.
1517 (delete_thread_infrun_breakpoints): Delete the thread's
1518 single-step breakpoints too.
1519 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1520 single-step breakpoints here.
1521 (delete_stopped_threads_single_step_breakpoints): New function.
1522 (adjust_pc_after_break): Adjust to use
1523 thread_has_single_step_breakpoints_set.
1524 (handle_inferior_event): Remove references to removed globals.
1525 Use delete_stopped_threads_single_step_breakpoints.
1526 (handle_signal_stop): Adjust to per-thread single-step
1527 breakpoints. Swap test order to do cheaper tests first.
1528 (switch_back_to_stepped_thread): Extend debug output. Remove
1529 references to removed globals.
1530 * record-full.c (record_full_wait_1): Adjust to per-thread
1531 single-step breakpoints.
1532 * thread.c (delete_single_step_breakpoints)
1533 (thread_has_single_step_breakpoints_set)
1534 (thread_has_single_step_breakpoint_here): New functions.
1535 (clear_thread_inferior_resources): Also delete the thread's
1536 single-step breakpoints.
1538 2014-10-15 Pedro Alves <palves@redhat.com>
1540 * thread.c (delete_thread_breakpoint): New function.
1541 (delete_step_resume_breakpoint)
1542 (delete_exception_resume_breakpoint): Use it.
1543 (delete_at_next_stop): New function.
1544 (clear_thread_inferior_resources): Use delete_at_next_stop.
1546 2014-10-15 Pedro Alves <palves@redhat.com>
1548 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1549 (breakpoint_inserted_here_p): ... here. Remove special case for
1550 software single-step breakpoints.
1551 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1552 (software_breakpoint_inserted_here_p): ... here. Remove special
1553 case for software single-step breakpoints.
1554 (bp_target_info_copy_insertion_state)
1555 (deprecated_insert_raw_breakpoint)
1556 (deprecated_remove_raw_breakpoint): Delete functions.
1557 * breakpoint.h (deprecated_insert_raw_breakpoint)
1558 (deprecated_remove_raw_breakpoint): Remove declarations.
1560 2014-10-15 Pedro Alves <palves@redhat.com>
1563 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1564 Delete array globals.
1565 (single_step_breakpoints): New global.
1566 (breakpoint_xfer_memory): Remove special handling for single-step
1568 (update_breakpoints_after_exec): Delete bp_single_step
1570 (detach_breakpoints): Remove special handling for single-step
1572 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1573 (bpstat_stop_status): Add comment.
1574 (bpstat_what, bptype_string, print_one_breakpoint_location)
1575 (adjust_breakpoint_address, init_bp_location): Handle
1577 (new_single_step_breakpoint): New function.
1578 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1579 handling for single-step breakpoints.
1580 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1581 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1583 (detach_single_step_breakpoints, find_single_step_breakpoint):
1585 (breakpoint_has_location_inserted_here): New function.
1586 (single_step_breakpoint_inserted_here_p): Rewrite.
1587 * breakpoint.h: Remove FIXME.
1588 (enum bptype) <bp_single_step>: New enum value.
1589 (insert_single_step_breakpoint): Update comment.
1590 * infrun.c (resume_cleanups)
1591 (delete_step_thread_step_resume_breakpoint): Remove single-step
1593 (fetch_inferior_event): Install a cleanup that removes infrun
1595 (switch_back_to_stepped_thread) <expect thread advanced also>:
1596 Clear step-over info.
1598 2014-10-15 Pedro Alves <palves@redhat.com>
1600 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1601 (delete_thread_infrun_breakpoints): New function, with parts
1602 salvaged from delete_step_resume_breakpoint_callback.
1603 (delete_step_thread_step_resume_breakpoint): Delete.
1604 (for_each_just_stopped_thread_callback_func): New typedef.
1605 (for_each_just_stopped_thread): New function.
1606 (delete_just_stopped_threads_infrun_breakpoints): New function.
1607 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1608 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1610 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1612 2014-10-15 Pedro Alves <palves@redhat.com>
1614 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1615 trying to step past a non-steppable watchpoint.
1616 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1618 * infrun.c (struct step_over_info): Add new field
1619 'nonsteppable_watchpoint_p' and adjust comments.
1620 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1622 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1623 (stepping_past_nonsteppable_watchpoint): New function.
1624 (step_over_info_valid_p): Also return true if stepping past a
1625 nonsteppable watchpoint.
1626 (proceed): Adjust call to set_step_over_info. Remove reference to
1628 (init_wait_for_inferior): Remove reference to init_infwait_state.
1629 (waiton_ptid): Delete global.
1630 (struct execution_control_state)
1631 <stepped_after_stopped_by_watchpoint>: Delete field.
1632 (wait_for_inferior, fetch_inferior_event): Always pass
1633 minus_one_ptid to target_wait.
1634 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1636 (init_infwait_state): Delete function.
1637 (handle_inferior_event): Remove infwait_state handling.
1638 (handle_signal_stop) <watchpoints handling>: Adjust after
1639 stepped_after_stopped_by_watchpoint removal. Don't remove
1640 breakpoints here nor set infwait_state. Set the thread's
1641 stepping_over_watchpoint flag, and call keep_going instead.
1642 (keep_going): Handle stepping_over_watchpoint. Adjust
1643 set_step_over_info calls.
1644 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1647 2014-10-15 Pedro Alves <palves@redhat.com>
1649 * infrun.c (step_over_info_valid_p): New function.
1650 (resume): Use step_over_info_valid_p instead of checking the
1651 threads's trap_expected flag.
1653 2014-10-15 Doug Evans <dje@google.com>
1654 Walfred Tedeschi <walfred.tedeschi@intel.com>
1657 * python/lib/gdb/__init__.py (packages): Add "printer".
1658 * python/lib/gdb/command/bound_registers.py: Moved to ...
1659 * python/lib/gdb/printer/bound_registers.py: ... here.
1660 Add printer to global set of builtin printers. Rename printer from
1661 "bound" to "mpx_bound128".
1662 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1663 registered as global "builtin" printer.
1664 (add_builtin_pretty_printer): New function.
1665 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1666 gdb/printer/__init__.py.
1668 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1670 * Makefile.in (SFILES): Remove d-support.c.
1671 (COMMON_OBS): Remove d-support.o.
1672 * d-lang.h (d_parse_symbol): Remove declaration.
1673 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1674 * d-support.c: Remove file.
1676 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1678 * gdb/infrun.c (process_event_stop_test): Apply
1679 gdbarch_addr_bits_remove to longjmp resume address.
1681 2014-10-15 Pedro Alves <palves@redhat.com>
1683 * regformats/microblaze.dat: Delete file.
1685 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1687 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1688 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1690 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1692 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1695 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1699 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1700 with qualified args.
1702 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1704 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1705 of the case where the second operand is a pointer.
1706 <BINOP_SUB>: Likewise.
1708 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1710 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1711 only if it is not NULL.
1712 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1713 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1714 (struct probe_ops) <clear_semaphore>: Likewise.
1715 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1717 (stop_tracing): Likewise, for clear_semaphore.
1719 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1721 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1722 using language_c, instead of current_language.
1724 2014-10-13 Doug Evans <dje@google.com>
1726 * python/py-objfile.c (objfpy_initialize): New function.
1727 (objfpy_new, objfile_to_objfile_object): Call it.
1728 * python/py-progspace.c (pspy_initialize): New function.
1729 (pspy_new, pspace_to_pspace_object): Call it.
1731 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1732 Jan Kratochvil <jan.kratochvil@redhat.com>
1734 Fix "save breakpoints" for "catch" command.
1735 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1738 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1740 Fix "save breakpoints" for "disable $bpnum" command.
1741 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1743 2014-10-10 Pedro Alves <palves@redhat.com>
1745 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1746 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1747 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1748 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1750 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1751 * configure.ac: Remove references to IRIX.
1752 * configure.host: Add *-*-irix* to the obsolete hosts section.
1753 Remove all other references to irix.
1754 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1757 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1759 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1760 isn't valid, release the tdesc arch data and return NULL.
1762 2014-10-10 Pedro Alves <palves@redhat.com>
1764 * linux-tdep.c: Include observer.h.
1765 (linux_inferior_data): New global.
1766 (struct linux_info): New structure.
1767 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1768 (get_linux_inferior_data): New functions.
1769 (linux_vsyscall_range): Rename to ...
1770 (linux_vsyscall_range_raw): ... this.
1771 (linux_vsyscall_range): New function; handles caching.
1772 (_initialize_linux_tdep): Register linux_inferior_data. Install
1773 inferior_exit and inferior_appeared observers.
1775 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1776 Pedro Alves <palves@redhat.com>
1779 * solib-svr4.c (svr4_read_so_list): Rename to ...
1780 (svr4_current_sos_1): ... this and change the function comment.
1781 (svr4_current_sos): New function.
1783 2014-10-10 Pedro Alves <palves@redhat.com>
1785 * arch-utils.c (default_vsyscall_range): New function.
1786 * arch-utils.h (default_vsyscall_range): New declaration.
1787 * gdbarch.sh (vsyscall_range): New hook.
1788 * gdbarch.h, gdbarch.c: Regenerate.
1789 * linux-tdep.c (linux_vsyscall_range): New function.
1790 (linux_init_abi): Install linux_vsyscall_range as
1791 vsyscall_range gdbarch hook.
1792 * memrange.c (address_in_mem_range): New function.
1793 * memrange.h (address_in_mem_range): New declaration.
1794 * symfile-mem.c (find_vdso_size): Delete function.
1795 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1797 2014-10-10 Pedro Alves <palves@redhat.com>
1799 * infrun.c (normal_stop): Fix typo in comment.
1801 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1804 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1805 typo when using logical AND to determine instruction type.
1807 2014-10-09 Yao Qi <yao@codesourcery.com>
1809 * infrun.c (handle_signal_stop): Remove local variable
1812 2014-10-08 Stan Shebs <stan@codesourcery.com>
1814 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1816 2014-10-08 Gary Benson <gbenson@redhat.com>
1818 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1820 2014-10-08 Gary Benson <gbenson@redhat.com>
1822 * common/common-defs.h: Include common-exceptions.h.
1823 * exceptions.h: Do not include common-exceptions.h.
1825 2014-10-08 Gary Benson <gbenson@redhat.com>
1827 * common/common-defs.h: Include cleanups.h.
1828 * common/common-exceptions.c: Do not include cleanups.h.
1829 * utils.h: Likewise.
1831 2014-10-08 Gary Benson <gbenson@redhat.com>
1833 * ada-lang.c: Do not include exceptions.h.
1834 * ada-valprint.c: Likewise.
1835 * amd64-tdep.c: Likewise.
1836 * auto-load.c: Likewise.
1837 * block.c: Likewise.
1838 * break-catch-throw.c: Likewise.
1839 * breakpoint.c: Likewise.
1840 * btrace.c: Likewise.
1841 * c-lang.c: Likewise.
1842 * cli/cli-cmds.c: Likewise.
1843 * cli/cli-interp.c: Likewise.
1844 * cli/cli-script.c: Likewise.
1845 * completer.c: Likewise.
1846 * corefile.c: Likewise.
1847 * corelow.c: Likewise.
1848 * cp-abi.c: Likewise.
1849 * cp-support.c: Likewise.
1850 * cp-valprint.c: Likewise.
1851 * darwin-nat.c: Likewise.
1852 * dwarf2-frame-tailcall.c: Likewise.
1853 * dwarf2-frame.c: Likewise.
1854 * dwarf2loc.c: Likewise.
1855 * dwarf2read.c: Likewise.
1857 * event-loop.c: Likewise.
1858 * event-top.c: Likewise.
1859 * f-valprint.c: Likewise.
1860 * frame-unwind.c: Likewise.
1861 * frame.c: Likewise.
1862 * gdbtypes.c: Likewise.
1863 * gnu-v2-abi.c: Likewise.
1864 * gnu-v3-abi.c: Likewise.
1865 * guile/scm-auto-load.c: Likewise.
1866 * guile/scm-breakpoint.c: Likewise.
1867 * guile/scm-cmd.c: Likewise.
1868 * guile/scm-frame.c: Likewise.
1869 * guile/scm-lazy-string.c: Likewise.
1870 * guile/scm-param.c: Likewise.
1871 * guile/scm-symbol.c: Likewise.
1872 * guile/scm-type.c: Likewise.
1873 * hppa-hpux-tdep.c: Likewise.
1874 * i386-tdep.c: Likewise.
1875 * inf-loop.c: Likewise.
1876 * infcall.c: Likewise.
1877 * infcmd.c: Likewise.
1878 * infrun.c: Likewise.
1879 * interps.c: Likewise.
1880 * interps.h: Likewise.
1882 * linespec.c: Likewise.
1883 * linux-nat.c: Likewise.
1884 * linux-thread-db.c: Likewise.
1885 * m32r-rom.c: Likewise.
1887 * memory-map.c: Likewise.
1888 * mi/mi-cmd-break.c: Likewise.
1889 * mi/mi-cmd-stack.c: Likewise.
1890 * mi/mi-interp.c: Likewise.
1891 * mi/mi-main.c: Likewise.
1892 * monitor.c: Likewise.
1893 * nto-procfs.c: Likewise.
1894 * objc-lang.c: Likewise.
1895 * p-valprint.c: Likewise.
1896 * parse.c: Likewise.
1897 * ppc-linux-tdep.c: Likewise.
1898 * printcmd.c: Likewise.
1899 * probe.c: Likewise.
1900 * python/py-auto-load.c: Likewise.
1901 * python/py-breakpoint.c: Likewise.
1902 * python/py-cmd.c: Likewise.
1903 * python/py-finishbreakpoint.c: Likewise.
1904 * python/py-frame.c: Likewise.
1905 * python/py-framefilter.c: Likewise.
1906 * python/py-function.c: Likewise.
1907 * python/py-gdb-readline.c: Likewise.
1908 * python/py-inferior.c: Likewise.
1909 * python/py-infthread.c: Likewise.
1910 * python/py-lazy-string.c: Likewise.
1911 * python/py-linetable.c: Likewise.
1912 * python/py-param.c: Likewise.
1913 * python/py-prettyprint.c: Likewise.
1914 * python/py-symbol.c: Likewise.
1915 * python/py-type.c: Likewise.
1916 * python/py-value.c: Likewise.
1917 * python/python-internal.h: Likewise.
1918 * python/python.c: Likewise.
1919 * record-btrace.c: Likewise.
1920 * record-full.c: Likewise.
1921 * regcache.c: Likewise.
1922 * remote-fileio.c: Likewise.
1923 * remote-mips.c: Likewise.
1924 * remote.c: Likewise.
1925 * rs6000-aix-tdep.c: Likewise.
1926 * rs6000-nat.c: Likewise.
1928 * solib-darwin.c: Likewise.
1929 * solib-dsbt.c: Likewise.
1930 * solib-frv.c: Likewise.
1931 * solib-ia64-hpux.c: Likewise.
1932 * solib-spu.c: Likewise.
1933 * solib-svr4.c: Likewise.
1934 * solib.c: Likewise.
1935 * spu-tdep.c: Likewise.
1936 * stack.c: Likewise.
1937 * stap-probe.c: Likewise.
1938 * symfile-mem.c: Likewise.
1939 * symmisc.c: Likewise.
1940 * target.c: Likewise.
1941 * thread.c: Likewise.
1943 * tracepoint.c: Likewise.
1944 * tui/tui-interp.c: Likewise.
1945 * typeprint.c: Likewise.
1946 * utils.c: Likewise.
1947 * valarith.c: Likewise.
1948 * valops.c: Likewise.
1949 * valprint.c: Likewise.
1950 * value.c: Likewise.
1951 * varobj.c: Likewise.
1952 * windows-nat.c: Likewise.
1953 * xml-support.c: Likewise.
1955 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1957 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1959 (extended_mips16_next_pc): Update accordingly.
1961 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1963 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1965 (micromips_instruction_is_compact_branch): Likewise.
1966 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1967 or a compact jump, reaching a jump delay slot, or seeing a
1968 second non-prologue instruction.
1969 (micromips_scan_prologue): Also terminate scanning upon seeing a
1970 compact branch or jump, or reaching a branch or jump delay slot.
1971 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1972 or jump delay slot, or seeing a second non-prologue instruction.
1973 (mips32_instruction_has_delay_slot): Retain instruction
1974 examination code only, update arguments accordingly and move
1975 instruction fetch pieces to...
1976 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1977 (micromips_instruction_has_delay_slot): Likewise and to...
1978 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1979 (mips16_instruction_has_delay_slot): Likewise and to...
1980 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1981 (mips_single_step_through_delay): Update accordingly.
1982 (mips_adjust_breakpoint_address): Likewise.
1984 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1986 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1987 !mustbe32 also return 1 for 32-bit instructions.
1988 (mips16_instruction_has_delay_slot): Likewise. Add an
1989 explanatory comment.
1991 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1993 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1996 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1998 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2000 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2001 for the breakpoint's address. Don't preinitialize `placed_size'.
2002 (insert_bp_location): Set `reqstd_address' rather than
2004 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2005 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2007 (bkpt_remove_location): Likewise.
2008 (deprecated_insert_raw_breakpoint): Likewise.
2009 (deprecated_remove_raw_breakpoint): Likewise.
2010 (find_single_step_breakpoint): Likewise.
2011 * mem-break.c (default_memory_insert_breakpoint): Use
2012 `reqstd_address' for the breakpoint's address. Don't set
2013 `placed_address' or `placed_size' if breakpoint contents couldn't
2014 have been determined.
2015 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2016 the breakpoint's address.
2017 (remote_insert_hw_breakpoint): Likewise. Don't set
2018 `placed_address' or `placed_size' if breakpoint couldn't have been
2020 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2021 `reqstd_address' for the breakpoint's address.
2022 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2023 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2024 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2025 * microblaze-linux-tdep.c
2026 (microblaze_linux_memory_remove_breakpoint): Likewise.
2027 * monitor.c (monitor_insert_breakpoint): Likewise.
2028 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2029 (procfs_insert_hw_breakpoint): Likewise.
2030 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2031 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2032 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2033 * remote-mips.c (mips_insert_breakpoint): Likewise.
2034 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2036 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2038 * valops.c (value_assign): Check for bit field assignments
2039 before calling architecture-specific register value
2040 conversion functions.
2042 2014-10-03 Pierre Muller <muller@sourceware.org>
2044 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2046 2014-10-02 Pedro Alves <palves@redhat.com>
2048 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2049 threads_are_executing.
2050 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2052 * gdbthread.h (threads_are_executing): Declare.
2053 (handle_signal_stop) <random signals>: Don't print about the
2054 signal here if stopping.
2055 (end_stepping_range): Don't notify observers here.
2056 (normal_stop): Update the thread list. If stopped by a random
2057 signal or a stepping range ended, notify observers.
2058 * thread.c (threads_executing): New global.
2059 (init_thread_list): Clear 'threads_executing'.
2060 (set_executing): Set or clear 'threads_executing'.
2061 (threads_are_executing): New function.
2062 (update_threads_executing): New function.
2063 (update_thread_list): Use it.
2065 2014-10-02 Pedro Alves <palves@redhat.com>
2067 PR breakpoints/17431
2068 * breakpoint.c (update_breakpoints_after_exec): Don't create
2069 overlay, longjmp, std terminate nor exception breakpoints here.
2071 2014-10-02 Pedro Alves <palves@redhat.com>
2073 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2075 * inferior.c (find_inferior_for_program_space): Give preference to
2076 the current inferior.
2077 * inferior.h (find_inferior_for_program_space): Update comment.
2078 * progspace.c (switch_to_program_space_and_thread): Prefer the
2079 current inferior if it's bound to the program space requested. If
2080 the inferior found doesn't have a PID yet, don't bother looking up
2082 * progspace.h (switch_to_program_space_and_thread): Adjust
2084 * thread.c (any_thread_of_process, any_live_thread_of_process):
2085 Give preference to the current thread.
2087 2014-10-01 Pedro Alves <palves@redhat.com>
2089 * breakpoint.c (insert_bp_location): Error out if inserting a
2090 software breakpoint at a read-only address.
2091 * target.c (memory_xfer_check_region): New function, factored out
2093 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2095 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2096 against the memory region attributes.
2098 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2100 * NEWS: Announce new exit-code field in -list-thread-groups
2102 * inferior.c (exit_inferior_1): Don't clear exit code.
2103 (inferior_appeared): Clear exit code.
2104 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2107 2014-10-01 Pedro Alves <palves@redhat.com>
2109 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2110 GENERATED" along with emacs/vi read-only markers.
2111 * regformats/aarch64.dat: Regenerate.
2112 * regformats/arm-with-iwmmxt.dat: Regenerate.
2113 * regformats/arm-with-neon.dat: Regenerate.
2114 * regformats/arm-with-vfpv2.dat: Regenerate.
2115 * regformats/arm-with-vfpv3.dat: Regenerate.
2116 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2117 * regformats/i386/amd64-avx.dat: Regenerate.
2118 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2119 * regformats/i386/amd64-avx512.dat: Regenerate.
2120 * regformats/i386/amd64-linux.dat: Regenerate.
2121 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2122 * regformats/i386/amd64-mpx.dat: Regenerate.
2123 * regformats/i386/amd64.dat: Regenerate.
2124 * regformats/i386/i386-avx-linux.dat: Regenerate.
2125 * regformats/i386/i386-avx.dat: Regenerate.
2126 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2127 * regformats/i386/i386-avx512.dat: Regenerate.
2128 * regformats/i386/i386-linux.dat: Regenerate.
2129 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2130 * regformats/i386/i386-mmx.dat: Regenerate.
2131 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2132 * regformats/i386/i386-mpx.dat: Regenerate.
2133 * regformats/i386/i386.dat: Regenerate.
2134 * regformats/i386/x32-avx-linux.dat: Regenerate.
2135 * regformats/i386/x32-avx.dat: Regenerate.
2136 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2137 * regformats/i386/x32-avx512.dat: Regenerate.
2138 * regformats/i386/x32-linux.dat: Regenerate.
2139 * regformats/i386/x32.dat: Regenerate.
2140 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2141 * regformats/mips-dsp-linux.dat: Regenerate.
2142 * regformats/mips-linux.dat: Regenerate.
2143 * regformats/mips64-dsp-linux.dat: Regenerate.
2144 * regformats/mips64-linux.dat: Regenerate.
2145 * regformats/nios2-linux.dat: Regenerate.
2146 * regformats/rs6000/powerpc-32.dat: Regenerate.
2147 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2148 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2149 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2150 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2151 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2152 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2153 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2154 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2155 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2156 * regformats/s390-linux32.dat: Regenerate.
2157 * regformats/s390-linux32v1.dat: Regenerate.
2158 * regformats/s390-linux32v2.dat: Regenerate.
2159 * regformats/s390-linux64.dat: Regenerate.
2160 * regformats/s390-linux64v1.dat: Regenerate.
2161 * regformats/s390-linux64v2.dat: Regenerate.
2162 * regformats/s390-te-linux64.dat: Regenerate.
2163 * regformats/s390x-linux64.dat: Regenerate.
2164 * regformats/s390x-linux64v1.dat: Regenerate.
2165 * regformats/s390x-linux64v2.dat: Regenerate.
2166 * regformats/s390x-te-linux64.dat: Regenerate.
2167 * regformats/tic6x-c62x-linux.dat: Regenerate.
2168 * regformats/tic6x-c62x.dat: Regenerate.
2169 * regformats/tic6x-c64x-linux.dat: Regenerate.
2170 * regformats/tic6x-c64x.dat: Regenerate.
2171 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2172 * regformats/tic6x-c64xp.dat: Regenerate.
2174 2014-10-01 Pedro Alves <palves@redhat.com>
2176 * features/Makefile: Update comments.
2177 (XMLTOC): List all xml files we build C files from.
2178 (clean-cfiles): New rule.
2180 2014-10-01 Pedro Alves <palves@redhat.com>
2182 * features/i386/amd64-avx512-linux.c: Regenerate.
2183 * features/i386/amd64-avx512.c: Regenerate.
2184 * features/i386/x32-avx512-linux.c: Regenerate.
2185 * features/i386/x32-avx512.c: Regenerate.
2187 2014-10-01 Pedro Alves <palves@redhat.com>
2189 * features/Makefile (WHICH): Remove arm-with-m,
2190 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2192 2014-10-01 Pedro Alves <palves@redhat.com>
2194 * features/Makefile (clean): New rule.
2196 2014-10-01 Pedro Alves <palves@redhat.com>
2198 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2199 (zmm14h): Add missing end quotes.
2201 2014-10-01 Pedro Alves <palves@redhat.com>
2203 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2204 * features/aarch64.c: Regenerate.
2206 2014-09-30 Don Breazeal <donb@codesourcery.com>
2208 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2209 code so as to work with follow_fork_inferior.
2210 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2211 (inf_ttrace_create_inferior): Remove reference to
2212 inf_ttrace_vfork_ppid.
2213 (inf_ttrace_attach): Ditto.
2214 (inf_ttrace_detach): Ditto.
2215 (inf_ttrace_kill): Use current_inferior instead of
2216 inf_ttrace_vfork_ppid.
2217 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2218 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2219 inferior away from the parent.
2220 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2222 (follow_fork_inferior): New function.
2223 (follow_inferior_reset_breakpoints): Make function static.
2224 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2225 * linux-nat.c (linux_child_follow_fork): Move target-independent
2226 code to infrun.c:follow_fork_inferior.
2228 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2230 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2231 * gdbarch.c: Regenerate.
2232 * gdbarch.h: Likewise.
2233 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2234 gdbarch method 'regset_from_core_section'.
2235 (get_core_register_section): Remove handling for the case that
2236 regset == NULL and regset_from_core_section is defined.
2237 (get_core_registers): Drop check for deleted method.
2238 * procfs.c (procfs_do_thread_registers): Adjust comment.
2240 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2242 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2243 (linux_nat_make_corefile_notes): Remove.
2244 (linux_target_install_ops): Do not set target method
2245 'make_corefile_notes'.
2246 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2248 (linux_corefile_thread_callback): Instead of args->collect, call
2249 linux_collect_thread_registers.
2250 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2251 NULL unless there is a regset iterator.
2252 (linux_make_corefile_notes_1): Remove.
2253 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2254 by linux_make_corefile_notes.
2255 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2257 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2259 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2260 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2262 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2264 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2266 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2267 (xtensa_iterate_over_regset_sections): New.
2268 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2270 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2272 * vax-tdep.c (vax_regset_from_core_section): Remove.
2273 (vax_iterate_over_regset_sections): New.
2274 (vax_gdbarch_init): Adjust gdbarch initialization.
2276 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2278 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2279 (tilegx_regset_from_core_section): Remove.
2280 (tilegx_iterate_over_regset_sections): New.
2281 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2285 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2286 (sparc_iterate_over_regset_sections): New.
2287 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2288 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2290 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2291 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2292 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2293 target method 'make_corefile_notes'.
2295 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2297 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2298 'sizeof_gregset' and 'sizeof_fpregset'.
2299 * sh-tdep.c (sh_regset_from_core_section): Remove.
2300 (sh_iterate_over_regset_sections): New.
2301 (sh_gdbarch_init): Adjust gdbarch initialization.
2302 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2304 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2307 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2309 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2310 (score7_linux_iterate_over_regset_sections): New.
2311 (score_gdbarch_init): Adjust gdbarch initialization.
2313 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2315 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2317 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2318 method 'make_corefile_notes'.
2319 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2320 (ppcfbsd_regset_from_core_section): Remove.
2321 (ppcfbsd_iterate_over_regset_sections): New.
2322 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2324 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2325 (ppcnbsd_iterate_over_regset_sections): New.
2326 (ppcnbsd_init_abi): Adjust.
2327 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2328 (ppcobsd_iterate_over_regset_sections): New.
2329 (ppcobsd_init_abi): Adjust.
2330 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2331 (rs6000_aix_iterate_over_regset_sections): New.
2332 (rs6000_aix_init_osabi): Adjust.
2334 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2336 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2337 (nios2_regset_from_core_section): Remove.
2338 (nios2_iterate_over_regset_sections): New.
2339 (nios2_linux_init_abi): Adjust gdbarch initialization.
2341 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2343 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2344 (am33_iterate_over_regset_sections): New.
2345 (am33_linux_init_osabi): Adjust gdbarch initialization.
2347 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2349 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2350 (mips_linux_iterate_over_regset_sections): New.
2351 (mips_linux_init_abi): Adjust gdbarch initialization.
2352 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2353 (mips64obsd_iterate_over_regset_sections): New.
2354 (mips64obsd_init_abi): Adjust.
2355 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2356 (mipsnbsd_iterate_over_regset_sections): New.
2357 (mipsnbsd_init_abi): Adjust.
2359 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2361 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2362 (m88k_iterate_over_regset_sections): New.
2363 (m88k_gdbarch_init): Adjust gdbarch initialization.
2365 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2367 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2368 (ia64_linux_iterate_over_regset_sections): New.
2369 (ia64_linux_init_abi): Adjust gdbarch initialization.
2371 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2373 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2374 (m68kbsd_iterate_over_regset_sections): New.
2375 (m68kbsd_init_abi): Adjust gdbarch initialization.
2376 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2377 (m68k_linux_iterate_over_regset_sections): New.
2378 (m68k_linux_init_abi): Adjust gdbarch initialization.
2380 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2382 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2383 (m32r_linux_regset_from_core_section): Remove.
2384 (m32r_linux_iterate_over_regset_sections): New.
2385 (m32r_linux_init_abi): Adjust gdbarch initialization.
2387 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2389 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2390 (amd64obsd_iterate_over_regset_sections): New.
2391 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2392 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2394 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2395 regset_from_core_section initialization.
2396 * i386-tdep.c (i386_regset_from_core_section): Remove.
2397 (i386_iterate_over_regset_sections): New.
2398 (i386_gdbarch_init): Adjust gdbarch initialization.
2399 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2400 (i386_iterate_over_regset_sections): New prototype.
2401 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2403 (i386obsd_aout_iterate_over_regset_sections): New.
2404 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2405 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2407 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2408 (amd64fbsd_init_abi): Call fbsd_init_abi.
2409 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2410 (i386fbsd4_init_abi): Call fbsd_init_abi.
2411 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2412 target method 'make_corefile_notes'.
2413 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2415 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2417 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2418 (hppa_hpux_iterate_over_regset_sections): New.
2419 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2420 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2421 (hppa_linux_iterate_over_regset_sections): New.
2422 (hppa_linux_init_abi): Adjust.
2423 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2424 (hppanbsd_iterate_over_regset_sections): New.
2425 (hppanbsd_init_abi): Adjust.
2426 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2427 (hppaobsd_iterate_over_regset_sections): New.
2428 (hppaobsd_init_abi): Adjust.
2430 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2432 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2433 (frv_linux_iterate_over_regset_sections): New.
2434 (frv_linux_init_abi): Adjust gdbarch initialization.
2436 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2438 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2439 (armbsd_iterate_over_regset_sections): New prototype.
2440 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2441 (armbsd_iterate_over_regset_sections): New.
2442 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2445 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2447 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2448 (alpha_linux_iterate_over_regset_sections): New.
2449 (alpha_linux_init_abi): Adjust gdbarch initialization.
2450 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2452 (alphanbsd_iterate_over_regset_sections): New prototype.
2454 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2456 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2458 (aarch64_linux_iterate_over_regset_sections): New.
2459 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2461 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2463 * fbsd-tdep.c: New file.
2464 * fbsd-tdep.h: New file.
2465 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2466 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2467 (ALLDEPFILES): Add fbsd-tdep.c.
2469 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2471 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2473 * gdbarch.h: Regenerate.
2474 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2476 (get_core_register_section): Add parameter 'regset' and use it, if
2477 set. Add parameter 'min_size' and verify the bfd section size
2479 (get_core_registers_cb): Add parameter 'regset' and pass it to
2480 get_core_register section. For the "standard" register sections
2481 ".reg" and ".reg2", set an appropriate default for human_name.
2482 (get_core_registers): Don't abort when the gdbarch has an iterator
2483 but no regset_from_core_section. Add NULL/0 for parameters
2484 'regset'/'min_size' in calls to get_core_register_section.
2485 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2486 'regset' and use it instead of calling the
2487 regset_from_core_section gdbarch method.
2488 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2489 * i386-tdep.c (i386_supply_xstateregset)
2490 (i386_collect_xstateregset, i386_xstateregset): Moved to
2492 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2494 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2495 core file support only if the regset iterator hasn't been set.
2496 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2497 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2498 Moved from i386-tdep.c and renamed to *_linux*.
2499 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2500 each callback invocation. Allow any .reg-xstate size when reading
2502 * amd64-tdep.c (amd64_supply_xstateregset)
2503 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2505 (amd64_regset_from_core_section): Remove.
2506 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2507 install an amd64-specific regset_from_core_section gdbarch method.
2508 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2509 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2510 Moved from amd64-tdep.c and renamed to *_linux*.
2511 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2512 to each callback invocation. Allow any .reg-xstate size when
2513 reading from a core file.
2514 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2515 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2516 each callback invocation.
2517 (arm_linux_init_abi): No longer set the regset_from_core_section
2519 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2520 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2521 each callback invocation.
2522 (ppc_linux_init_abi): No longer set the regset_from_core_section
2524 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2525 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2526 (s390_regset_from_core_section): Remove.
2527 (s390_iterate_over_regset_sections): Add regset parameter to each
2528 callback invocation.
2529 (s390_gdbarch_init): No longer set the regset_from_core_section
2530 gdbarch method. Drop initialization of deleted tdep fields.
2532 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2534 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2535 (amd64_linux_iterate_over_regset_sections): New.
2536 (amd64_linux_init_abi_common): Don't install the regset section
2537 list, but the new iterator in gdbarch.
2538 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2539 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2540 (arm_linux_iterate_over_regset_sections): ...here. New function.
2541 (arm_linux_init_abi): Set iterator instead of section list.
2542 * corelow.c (get_core_registers_cb): New function, logic moved
2544 (get_core_registers): ...loop body here. Use new iterator method
2545 instead of walking through the regset section list.
2546 * gdbarch.sh: Remove 'core_regset_sections'. New method
2547 'iterate_over_regset_sections'. New typedef
2548 'iterate_over_regset_sections_cb'.
2549 * gdbarch.c: Regenerate.
2550 * gdbarch.h: Likewise.
2551 * i386-linux-tdep.c (i386_linux_regset_sections)
2552 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2554 (i386_linux_iterate_over_regset_sections): New.
2555 (i386_linux_init_abi): Don't choose a regset section list, but
2556 install new iterator in gdbarch.
2557 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2558 (linux_collect_regset_section_cb): New function, logic moved
2560 (linux_collect_thread_registers): ...loop body here. Use iterator
2561 method instead of walking through list.
2562 (linux_make_corefile_notes_1): Check for presence of iterator
2563 method instead of regset section list.
2564 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2565 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2566 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2567 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2568 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2569 (ppc_linux_init_abi): Don't choose from above regset section
2570 lists, but install new iterator in gdbarch.
2571 * regset.h (struct core_regset_section): Remove.
2572 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2573 have_linux_v1, have_linux_v2, and have_tdb.
2574 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2575 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2576 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2577 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2578 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2579 (s390_iterate_over_regset_sections): ...here. New function. Use
2581 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2582 regset section lists, but install new iterator.
2584 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2586 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2588 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2590 * progspace.c (print_program_space): Don't prune program spaces
2591 before printing them.
2593 2014-09-25 Pedro Alves <palves@redhat.com>
2595 * infrun.c (user_visible_resume_ptid): Don't check
2596 singlestep_breakpoints_inserted_p.
2598 2014-09-25 Pedro Alves <palves@redhat.com>
2600 * breakpoint.c (should_be_inserted): Add debug output.
2602 2014-09-25 Pedro Alves <palves@redhat.com>
2604 * infrun.c (stepping_past_instruction_at)
2605 (clear_exit_convenience_vars): Point at infrun.h instead of
2607 (handle_signal_stop): Fix typo.
2609 2014-09-24 Yao Qi <yao@codesourcery.com>
2611 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2614 2014-09-22 Gary Benson <gbenson@redhat.com>
2616 * target.c (target_stop): Updated comment.
2618 2014-09-22 Gary Benson <gbenson@redhat.com>
2620 * target/target.h (target_stop_ptid): Renamed as...
2621 (target_stop_and_wait): New function. Updated comment.
2623 (target_continue_ptid): Renamed as...
2624 (target_continue_no_signal): New function. Updated comment.
2627 2014-09-22 Pedro Alves <palves@redhat.com>
2629 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2631 * breakpoint.c (enum ugll_insert_mode): New enum.
2632 (always_inserted_mode): Now a plain boolean.
2633 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2634 (breakpoints_always_inserted_mode): Delete.
2635 (breakpoints_should_be_inserted_now): New function.
2636 (insert_breakpoints): Pass UGLL_INSERT to
2637 update_global_location_list instead of calling
2638 insert_breakpoint_locations manually.
2639 (create_solib_event_breakpoint_1): New, factored out from ...
2640 (create_solib_event_breakpoint): ... this.
2641 (create_and_insert_solib_event_breakpoint): Use
2642 create_solib_event_breakpoint_1 instead of calling
2643 insert_breakpoint_locations manually.
2644 (update_global_location_list): Change parameter type from boolean
2645 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2646 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2647 (update_global_location_list_nothrow): Change parameter type from
2648 boolean to enum ugll_insert_mode.
2649 (_initialize_breakpoint): "breakpoint always-inserted" option is
2650 now a boolean command. Update help text.
2651 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2652 (breakpoints_should_be_inserted_now): New declaration.
2653 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2654 Remove breakpoints_always_inserted_mode check.
2655 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2656 * remote.c (remote_start_remote): Likewise.
2658 2014-09-22 Pedro Alves <palves@redhat.com>
2660 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2661 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2662 Instead, pass UGLL_INSERT to update_global_location_list.
2663 (update_global_location_list): Change parameter type from boolean
2664 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2665 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2666 (create_solib_event_breakpoint_1): New, factored out from ...
2667 (create_solib_event_breakpoint): ... this.
2668 (create_and_insert_solib_event_breakpoint): Use
2669 create_solib_event_breakpoint_1 instead of calling
2670 insert_breakpoint_locations manually.
2671 (update_global_location_list): Handle UGLL_INSERT.
2673 2014-09-22 Pedro Alves <palves@redhat.com>
2675 * breakpoint.c (enum ugll_insert_mode): New enum.
2676 (update_global_location_list)
2677 (update_global_location_list_nothrow): Change parameter type from
2678 boolean to enum ugll_insert_mode. All callers adjusted.
2680 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2682 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2683 SystemTap support in GDB.
2685 2014-09-19 Don Breazeal <donb@codesourcery.com>
2687 * linux-nat.c (linux_handle_extended_wait): Call
2688 linux_ptrace_get_extended_event.
2689 (wait_lwp): Call linux_is_extended_waitstatus.
2690 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2691 and linux_is_extended_waitstatus.
2692 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2693 linux_ptrace_get_extended_event.
2694 (linux_ptrace_get_extended_event): New function.
2695 (linux_is_extended_waitstatus): New function.
2696 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2697 (linux_is_extended_waitstatus): New declarations.
2699 2014-09-19 Yao Qi <yao@codesourcery.com>
2701 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2702 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2703 comments. Callers update.
2704 (dwarf_decode_lines): Likewise.
2705 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2706 comments. Skip the line table if 'lowpc' is greater than
2707 'address'. Don't check
2708 dwarf2_per_objfile->has_section_at_zero.
2710 2014-09-18 Doug Evans <dje@google.com>
2712 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2713 * python/py-symtab.c (stpy_get_producer): New function.
2714 (symtab_object_getset): Add "producer" attribute.
2716 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2719 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2720 (do_captured_read_memory_integer): Remove.
2721 (safe_read_memory_integer): Use target_read_memory directly instead
2722 of catching errors in do_captured_read_memory_integer.
2724 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2726 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2729 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2731 * objc-lang.c (find_implementation_from_class): Remove dead code.
2733 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2736 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2737 "fprintf_unfiltered (gdb_stdlog...)".
2739 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2741 PR breakpoints/12526
2742 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2744 * breakpoint.c (watch_command_1): Use these fields to retain
2745 bitfield information.
2746 (extract_bitfield_from_watchpoint_value): New function.
2747 (watchpoint_check): Use it.
2748 (update_watchpoint): Use it. Optimize the address and length of a
2749 HW watchpoint pointing to a bitfield.
2750 * value.h (unpack_value_bitfield): New prototype.
2751 * value.c (unpack_value_bitfield): Make extern.
2753 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2755 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2757 * gnu-nat.c (inf_threads): New function.
2758 * gnu-nat.h (inf_threads_ftype): New typedef.
2759 (inf_threads): New declaration.
2760 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2761 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2762 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2763 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2764 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2765 (i386_gnu_dr_get_control): New functions.
2766 (reg_addr): New structure.
2767 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2768 i386 debugging register hooks.
2769 * NEWS: Mention this.
2771 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2773 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2774 vector data transfer instructions.
2775 (arm_record_coproc_data_proc): Updated.
2777 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2779 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2780 arm_record_exreg_ld_st_insn.
2781 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2784 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2786 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2787 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2788 processing instructions.
2790 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2792 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2793 for advance SIMD struct ld/st insn.
2794 (thumb2_record_decode_insn_handler): Replace stub handler with
2795 thumb2_record_asimd_struct_ld_st.
2797 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2799 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2800 for asimd, vfp and coprocessor insns.
2801 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2802 and coprocessor insns.
2803 (thumb2_record_coproc_insn): New function.
2804 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2806 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2809 2014-09-13 Doug Evans <xdje42@gmail.com>
2811 * NEWS: Mention new "queue-signal" command.
2812 * infcmd.c (queue_signal_command): New function.
2813 (_initialize_infcmd): Add new queue-signal command.
2815 2014-09-13 Doug Evans <xdje42@gmail.com>
2817 * linux-nat.c (wait_lwp): Add debugging printf.
2818 (linux_nat_wait_1): Ditto.
2820 2014-09-12 Pedro Alves <palves@redhat.com>
2822 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2823 (create_and_insert_solib_event_breakpoint): New functions.
2824 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2825 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2826 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2827 (remove_dbx_link_breakpoint): Delete function.
2828 (insert_dbx_link_bpt_in_file): Use
2829 create_and_insert_solib_event_breakpoint instead of
2830 deprecated_insert_raw_breakpoint.
2831 (procfs_wait): Don't check whether we hit __dbx_link here.
2832 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2834 * solib-irix.c (base_breakpoint): Delete global.
2835 (disable_break): Delete function.
2836 (enable_break): Use create_solib_event_breakpoint
2837 instead of deprecated_insert_raw_breakpoint.
2838 (irix_solib_handle_event): New function.
2839 (irix_solib_create_inferior_hook): Don't run the target or disable
2840 the mapping-complete breakpoint here.
2841 (_initialize_irix_solib): Install irix_solib_handle_event as
2842 so_ops->handle_event hook.
2844 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2845 Ulrich Weigand <uweigand@de.ibm.com>
2848 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2849 instead of read_memory_unsigned_integer.
2851 2014-09-12 Gary Benson <gbenson@redhat.com>
2853 * nat/linux-waitpid.c: Include common-defs.h.
2854 [GDBSERVER]: Add FIXME comment.
2855 [!GDBSERVER]: Don't include defs.h or signal.h.
2856 (linux_debug) [!GDBSERVER]: Remove empty block.
2858 2014-09-12 Gary Benson <gbenson@redhat.com>
2860 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2861 Don't include defs.h or server.h.
2863 2014-09-12 Gary Benson <gbenson@redhat.com>
2865 * nat/linux-btrace.c: Include common-defs.h.
2866 Don't include defs.h, server.h or gdbthread.h.
2867 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2869 2014-09-12 Gary Benson <gbenson@redhat.com>
2871 * common/agent.c: Include common-defs.h.
2872 Don't include defs.h or server.h.
2873 * common/buffer.c: Likewise.
2874 * common/common-debug.c: Likewise.
2875 * common/common-utils.c: Likewise.
2876 * common/errors.c: Likewise.
2877 * common/filestuff.c: Likewise.
2878 * common/format.c: Likewise.
2879 * common/gdb_vecs.c: Likewise.
2880 * common/print-utils.c: Likewise.
2881 * common/ptid.c: Likewise.
2882 * common/rsp-low.c: Likewise.
2883 * common/signals.c: Likewise.
2884 * common/vec.c: Likewise.
2885 * common/xml-utils.c: Likewise.
2886 * nat/linux-osdata.c: Likewise.
2887 * nat/linux-procfs.c: Likewise.
2888 * nat/linux-ptrace.c: Likewise.
2889 * nat/mips-linux-watch.c: Likewise.
2890 * target/waitstatus.c: Likewise.
2892 2014-09-12 Tom Tromey <tromey@redhat.com>
2893 Gary Benson <gbenson@redhat.com>
2895 * common/common-regcache.h: New file.
2896 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2897 * regcache.h: Include common-regcache.h.
2898 (regcache_read_pc): Don't declare.
2899 * regcache.c (get_thread_regcache_for_ptid): New function.
2900 * nat/linux-btrace.c: Don't include regcache.h.
2901 Include common-regcache.h.
2902 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2904 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2906 * regcache.h (struct regset): Declare.
2908 2014-09-11 Pedro Alves <palves@redhat.com>
2911 * main.c: Include "infrun.h".
2912 (catch_command_errors, catch_command_errors_const): Wait for the
2913 foreground command to complete.
2914 * top.c (maybe_wait_sync_command_done): New function, factored out
2916 (maybe_wait_sync_command_done): ... here.
2917 * top.h (maybe_wait_sync_command_done): New declaration.
2919 2014-09-11 Tom Tromey <tromey@redhat.com>
2920 Gary Benson <gbenson@redhat.com>
2922 * common/symbol.h: New file.
2923 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2924 * minsyms.c (find_minimal_symbol_address): New function.
2925 * common/agent.c: Include common/symbol.h.
2926 [!GDBSERVER]: Don't include objfiles.h.
2927 (agent_look_up_symbols): Use find_minimal_symbol_address.
2929 2014-09-11 Gary Benson <gbenson@redhat.com>
2931 * target/target.h (target_stop_ptid, target_continue_ptid):
2933 * target.c (target_stop_ptid, target_continue_ptid): New
2935 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2936 (agent_run_command): Always use target_stop_ptid and
2937 target_continue_ptid.
2939 2014-09-11 Tom Tromey <tromey@redhat.com>
2940 Gary Benson <gbenson@redhat.com>
2942 * target/target.h: New file.
2943 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2944 * target.h: Include target/target.h.
2945 (target_read_memory, target_write_memory): Don't declare.
2946 * target.c (target_read_uint32): New function.
2947 * common/agent.c: Include target/target.h.
2948 [!GDBSERVER]: Don't include target.h.
2949 (helper_thread_id): Type changed to uint32_t.
2950 (agent_get_helper_thread_id): Use target_read_uint32.
2951 (agent_run_command): Always use target_read_memory and
2952 target_write_memory.
2953 (agent_capability): Type changed to uint32_t.
2954 (agent_capability_check): Use target_read_uint32.
2956 2014-09-11 Gary Benson <gbenson@redhat.com>
2958 * common/common-debug.h (show_debug_regs): Declare.
2959 * common/common-debug.c (show_debug_regs): Define.
2960 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2961 all uses with show_debug_regs. Replace all uses that considered
2962 debug_hw_points as a multi-value integer with straight boolean
2964 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2965 with show_debug_regs.
2966 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2967 all uses with show_debug_regs.
2968 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2969 uses with show_debug_regs.
2971 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2973 * findvar.c (address_from_register): Handle targets requiring
2974 a special conversion routine even for plain pointer types.
2976 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2978 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2979 (store_register): Do not call exec_one_dummy_insn.
2981 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2983 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2984 dereference it first. Use value_enclosing_type instead of
2986 (ada_array_length): Likewise.
2988 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2990 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2991 Adjust function implementation and documentation accordingly.
2992 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2993 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2994 Update call to ada_value_ptr_subscript.
2996 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2998 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2999 instead of VAL's type.
3001 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3003 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3005 2014-09-09 Doug Evans <xdje42@gmail.com>
3008 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3009 last parameter to pkg-config, not first.
3010 * configure.ac: Pass --with-guile provided pkg-config path to
3011 GDB_GUILE_PROGRAM_NAMES.
3012 * configure: Regenerate.
3014 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3016 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3019 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3021 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3022 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3023 the list of sections determining GDB_OSABI_IRIX.
3025 2014-09-09 James Hogan <james.hogan@imgtec.com>
3027 * MAINTAINERS (Write After Approval): Add "James Hogan".
3029 2014-09-09 James Hogan <james.hogan@imgtec.com>
3031 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3033 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3035 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3037 2014-09-08 Doug Evans <xdje42@gmail.com>
3040 * guile.c: #include <signal.h>.
3041 (_initialize_guile): Block SIGCHLD while initializing Guile.
3043 Replaces the following, which is reverted.
3045 2014-07-26 Doug Evans <xdje42@gmail.com>
3048 * configure.ac: Add check for header gc/gc.h.
3049 Add check for function setenv.
3050 * configure: Regenerate.
3051 * config.in: Regenerate.
3052 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3054 2014-09-08 Doug Evans <xdje42@gmail.com>
3056 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3057 with named constant. Fix style of pointer comparison.
3058 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3060 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3063 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3064 decide whether we display the command on "show user".
3065 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3066 printing command name.
3067 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3068 * cli/cli-decode.c (cli_user_command_p): Create helper function
3069 to verify whether cmd_list_element is a user-defined command.
3071 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3074 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3075 Fix goto out of TRY_CATCH.
3077 2014-09-06 Doug Evans <xdje42@gmail.com>
3078 Tom Tromey <tromey@redhat.com>
3081 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3082 $_any_caller_matches.
3083 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3084 * python/lib/gdb/function/caller_is.py: New file.
3086 2014-09-06 Doug Evans <xdje42@gmail.com>
3088 * infcmd.c (program_info): Fix typo.
3090 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3093 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3094 'number'. New variable 'has_digit'. Rewrite code to deal with
3095 subexpressions on SDT probes.
3097 2014-09-04 Pedro Alves <palves@redhat.com>
3099 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3100 the input is only one character long.
3102 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3105 * f-valprint.c (f_val_print): Specify the correct print option to
3106 use when printing integer values.
3108 2014-09-04 Gary Benson <gbenson@redhat.com>
3110 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3111 Remove code to cope with LWPs wrapped as PIDs.
3112 Add assertions to ensure no wrapped LWPs are passed.
3114 2014-09-04 Pedro Alves <palves@redhat.com>
3116 * value.c (value_ranges_copy_adjusted): New function, factored out
3118 (value_contents_copy_raw): ... here.
3119 (unpack_value_bits_as_long_1): Rename back to ...
3120 (unpack_bits_as_long): ... this. Remove 'original_value' and
3121 'result' parameters. Change return type to LONGEST.
3122 (unpack_value_bits_as_long): Delete.
3123 (unpack_value_field_as_long_1): Delete.
3124 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3125 (unpack_value_bitfield): New function.
3126 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3127 (value_fetch_lazy): Use unpack_value_bitfield.
3128 * value.h (unpack_value_bits_as_long): Delete declaration.
3130 2014-09-03 Sasha Smundak <asmundak@google.com>
3132 * python/py-frame.c (frapy_read_register): New function.
3134 2014-09-03 James Hogan <james.hogan@imgtec.com>
3136 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3137 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3139 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3142 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3144 (add_cmd): Set "completer_handle_brkchars" to NULL.
3145 * cli/cli-decode.h (struct cmd_list_element)
3146 <completer_handle_brkchars>: New field.
3147 * command.h (completer_ftype_void): New typedef.
3148 (set_cmd_completer_handle_brkchars): New prototype.
3149 * completer.c (set_gdb_completion_word_break_characters): New
3151 (complete_line_internal): Call "completer_handle_brkchars"
3152 callback from command.
3153 * completer.h: Include "command.h".
3154 (set_gdb_completion_word_break_characters): New prototype.
3155 * python/py-cmd.c (cmdpy_completer_helper): New function.
3156 (cmdpy_completer_handle_brkchars): New function.
3157 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3158 (cmdpy_init): Set completer_handle_brkchars to
3159 cmdpy_completer_handle_brkchars.
3161 2014-09-03 Gary Benson <gbenson@redhat.com>
3163 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3164 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3165 Loop conditions changed to equivalent form.
3166 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3167 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3168 ALL_DEBUG_ADDRESS_REGISTERS.
3170 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3172 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3175 2014-09-02 Doug Evans <dje@google.com>
3177 * typeprint.c (find_global_typedef): Fix comment.
3179 2014-09-02 Gary Benson <gbenson@redhat.com>
3181 * i386-nat.h: Renamed as...
3182 * x86-nat.h: New file. All type, function and variable name
3183 prefixes changed from "i386_" to "x86_". All references updated.
3184 * i386-nat.c: Renamed as...
3185 * x86-nat.c: New file. All type, function and variable name
3186 prefixes changed from "i386_" to "x86_". All references updated.
3187 * common/i386-xstate.h: Renamed as...
3188 * common/x86-xstate.h: New file. All type, function and variable
3189 name prefixes changed from "i386_" to "x86_". All references
3191 * nat/i386-cpuid.h: Renamed as...
3192 * nat/x86-cpuid.h: New file. All type, function and variable name
3193 prefixes changed from "i386_" to "x86_". All references updated.
3194 * nat/i386-gcc-cpuid.h: Renamed as...
3195 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3196 name prefixes changed from "i386_" to "x86_". All references
3198 * nat/i386-dregs.h: Renamed as...
3199 * nat/x86-dregs.h: New file. All type, function and variable name
3200 prefixes changed from "i386_" to "x86_". All references updated.
3201 * nat/i386-dregs.c: Renamed as...
3202 * nat/x86-dregs.c: New file. All type, function and variable name
3203 prefixes changed from "i386_" to "x86_". All references updated.
3205 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3207 * varobj.c (_initialize_varobj): Move to the end of file.
3209 2014-08-29 Gary Benson <gbenson@redhat.com>
3211 * common/common-exceptions.h: New file.
3212 * common/common-exceptions.c: Likewise.
3213 * Makefile.in (SFILES): Add common/common-exceptions.c.
3214 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3215 (COMMON_OBS): Add common-exceptions.o.
3216 (common-exceptions.o): New rule.
3217 * exceptions.h (common-exceptions.h): Include.
3218 (gdb_setjmp.h): Do not include.
3219 (return_reason): Moved to common-exceptions.h.
3220 (enum return_reason): Likewise.
3221 (RETURN_MASK): Likewise.
3222 (typedef return_mask): Likewise.
3223 (enum errors): Likewise.
3224 (struct gdb_exception): Likewise.
3225 (exceptions_state_mc_init): Likewise.
3226 (exceptions_state_mc_action_iter): Likewise.
3227 (exceptions_state_mc_action_iter_1): Likewise.
3228 (TRY_CATCH): Likewise.
3229 (throw_exception): Likewise.
3230 (throw_verror): Likewise.
3231 (throw_vquit): Likewise.
3232 (throw_error): Likewise.
3233 (throw_quit): Likewise.
3234 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3235 (enum catcher_action): Likewise.
3236 (struct catcher): Likewise.
3237 (current_catcher): Likewise.
3238 (catcher_list_size): Likewise.
3239 (exceptions_state_mc_init): Likewise.
3240 (catcher_pop): Likewise.
3241 (exceptions_state_mc): Likewise.
3242 (exceptions_state_mc_action_iter): Likewise.
3243 (exceptions_state_mc_action_iter_1): Likewise.
3244 (throw_exception): Likewise.
3245 (exception_messages): Likewise.
3246 (exception_messages_size): Likewise.
3247 (throw_it): Likewise.
3248 (throw_verror): Likewise.
3249 (throw_vquit): Likewise.
3250 (throw_error): Likewise.
3251 (throw_quit): Likewise.
3252 (prepare_to_throw_exception): New function.
3254 2014-08-29 Gary Benson <gbenson@redhat.com>
3256 * common/gdb_setjmp.h: New file.
3257 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3258 * configure.ac: Move sigsetjmp check...
3259 * common/common.m4: ...here.
3260 * configure: Regenerate.
3261 * cp-support.c (SIGJMP_BUF): Delete.
3262 (SIGSETJMP): Likewise.
3263 (SIGLONGJMP): Likewise.
3264 * exceptions.h (gdb_setjmp.h): Include.
3265 (setjmp.h): Do not include.
3266 (EXCEPTIONS_SIGJMP_BUF): Delete.
3267 (EXCEPTIONS_SIGSETJMP): Likewise.
3268 (EXCEPTIONS_SIGLONGJMP): Likewise.
3269 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3271 * exceptions.c: Likewise.
3273 2014-08-29 Gary Benson <gbenson@redhat.com>
3275 * cleanups.h: Moved to...
3276 * common/cleanups.h: New file.
3277 * cleanups.c: Moved to...
3278 * common/cleanups.c: New file. Include common-defs.h and
3279 cleanups.h. Do not include defs.h.
3280 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3281 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3282 (cleanups.o): New rule.
3284 2014-08-29 Gary Benson <gbenson@redhat.com>
3286 * common/errors.h (internal_warning): New declaration.
3287 (internal_vwarning): Likewise.
3288 * common/errors.c (internal_warning): New function.
3289 * utils.h (internal_warning): Don't declare.
3290 (internal_vwarning): Likewise.
3291 * utils.c (internal_warning): Removed.
3293 2014-08-29 Gary Benson <gbenson@redhat.com>
3295 * main.c (captured_main): Use warning during startup.
3296 Prefix startup warning messages with command name.
3298 2014-08-29 Gary Benson <gbenson@redhat.com>
3300 * main.c (captured_main): Handle usage errors with error.
3302 2014-08-29 Gary Benson <gbenson@redhat.com>
3304 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3305 exit pair with a call to error. Wrap the message with _().
3307 2014-08-29 Gary Benson <gbenson@redhat.com>
3309 * main.c (captured_main): Replace a fprintf/exit
3310 pair with a call to error. Wrap the message with _().
3312 2014-08-29 Gary Benson <gbenson@redhat.com>
3314 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3315 pairs with calls to error. Wrap the message with _().
3317 2014-08-29 Gary Benson <gbenson@redhat.com>
3319 * utils.c (vwarning): Protect calls to target_terminal_ours
3322 2014-08-29 Gary Benson <gbenson@redhat.com>
3324 * exceptions.c (print_flush): Protect calls to
3325 target_terminal_ours and wrap_here.
3327 2014-08-29 Gary Benson <gbenson@redhat.com>
3329 * utils.h (filtered_printing_initialized): New declaration.
3330 * utils.c (abort_with_message): New function.
3331 (internal_vproblem): Use abort_with_message for first level
3332 recursive internal problems, and if gdb_stderr is not set up.
3333 Protect calls to target_terminal_ours, begin_line and query.
3335 2014-08-28 Doug Evans <dje@google.com>
3337 * symtab.c (in_prologue): Move definition to better spot.
3338 (skip_prologue_using_sal): Ditto.
3340 2014-08-28 Doug Evans <dje@google.com>
3342 * symtab.c (find_function_start_sal): Move definition to better spot.
3344 2014-08-28 Yao Qi <yao@codesourcery.com>
3346 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3347 found_stack_adjust in forward scan. Remove condition check
3348 on found_stack_adjust which is always true. Indent the code.
3350 2014-08-28 Yao Qi <yao@codesourcery.com>
3352 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3353 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3354 (dwarf_decode_lines): Remove argument
3355 want_line_info. Remove condition check on want_line_info.
3358 2014-08-27 Doug Evans <dje@google.com>
3360 * dwarf2read.c (dwarf_record_line): Fix typo.
3362 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3364 * target.h (struct target_ops::to_terminal_save_ours): Remove
3366 (target_terminal_save_ours): Remove macro.
3367 * target-delegates.c: Regenerate.
3368 * inf-child.c (inf_child_target): Don't set the nonexistent
3369 field to_terminal_save_ours.
3370 * inferior.h (child_terminal_save_ours): Remove declaration.
3371 * terminal.h (gdb_save_tty_state): New declaration.
3372 * inflow.c (child_terminal_save_ours): Rename to ...
3373 (gdb_save_tty_state): ... this.
3374 * tui/tui.c: Include terminal.h.
3375 (tui_enable): Use gdb_save_tty_state instead of
3376 target_terminal_save_ours.
3377 (tui_disable): Likewise.
3379 2014-08-25 Doug Evans <dje@google.com>
3381 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3382 Pass NULL instead of 0 for context pointer.
3384 2014-08-25 Yao Qi <yao@codesourcery.com>
3386 * dwarf2read.c: Fix grammatical error.
3388 2014-08-24 Yao Qi <yao@codesourcery.com>
3390 * dwarf2read.c (scan_partial_symbols): Update comments.
3391 Rename argument 'need_pc' with 'set_addrmap'.
3392 (add_partial_namespace): Rename argument 'need_pc' with
3394 (add_partial_module): Likewise.
3395 (add_partial_subprogram): Likewise. Update comments.
3396 (dwarf2_name): Fix typo.
3398 2014-08-22 Doug Evans <dje@google.com>
3401 * dwarf2read.c (dwarf_record_line_p): New function.
3402 (dwarf_decode_lines_1): Ignore subsequent line number entries
3403 for the same line if any entry had a non-zero discriminator.
3405 2014-08-22 Doug Evans <dje@google.com>
3407 * buildsym.h (record_line_ftype): New typedef.
3408 (record_line): Use it.
3409 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3410 (dwarf_decode_lines_1): Call them.
3412 2014-08-22 Yao Qi <yao@codesourcery.com>
3414 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3415 (ctf_end): Remove code.
3417 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3419 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3420 (linux_make_corefile_notes): call update_thread_list, protected against
3423 2014-08-21 Pedro Alves <palves@redhat.com>
3425 * infcmd.c (attach_command): Remove comment.
3427 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3429 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3430 unsigned LONGEST to ULONGEST.
3432 2014-08-20 Pedro Alves <palves@redhat.com>
3434 * Makefile.in (check-read1): New rule.
3436 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3438 * value.c (value_from_contents_and_address): Strip resolved_type's
3439 typedef layers before checking its TYPE_DATA_LOCATION.
3441 2014-08-20 Pedro Alves <palves@redhat.com>
3443 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3445 2014-08-20 Yao Qi <yao@codesourcery.com>
3447 * amd64-tdep.c (amd64_classify): Add a blank line after the
3448 example. Move "*/" to a new line.
3449 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3450 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3451 * dwarf2read.c (psymtab_include_file_name): Likewise.
3453 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3454 Pedro Alves <palves@redhat.com>
3458 * ada-lang.c (coerce_unspec_val_to_type): Use
3459 value_contents_copy_raw.
3460 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3461 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3462 * cp-valprint.c (cp_print_value_fields): Let the common printing
3463 code handle optimized out values.
3464 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3465 * d-valprint.c (dynamic_array_type): Use
3466 value_bits_any_optimized_out.
3467 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3468 check_any_valid fields.
3469 (check_pieced_value_bits): Delete and inline ...
3470 (check_pieced_synthetic_pointer): ... here.
3471 (check_pieced_value_validity): Delete.
3472 (check_pieced_value_invalid): Delete.
3473 (pieced_value_funcs): Remove check_validity and check_any_valid
3475 (read_pieced_value): Use mark_value_bits_optimized_out.
3476 (write_pieced_value): Switch to use
3477 mark_value_bytes_optimized_out.
3478 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3479 of assuming the whole value is optimized out.
3480 * findvar.c (read_frame_register_value): Remove special handling
3481 of optimized out registers.
3482 (value_from_register): Use mark_value_bytes_optimized_out.
3483 * frame-unwind.c (frame_unwind_got_optimized): Use
3484 mark_value_bytes_optimized_out.
3485 * jv-valprint.c (java_value_print): Adjust.
3486 (java_print_value_fields): Let the common printing code handle
3487 optimized out values.
3488 * mips-tdep.c (mips_print_register): Remove special handling of
3489 optimized out registers.
3490 * opencl-lang.c (lval_func_check_validity): Delete.
3491 (lval_func_check_any_valid): Delete.
3492 (opencl_value_funcs): Remove check_validity and check_any_valid
3494 * p-valprint.c (pascal_object_print_value_fields): Let the common
3495 printing code handle optimized out values.
3496 * stack.c (read_frame_arg): Remove special handling of optimized
3497 out values. Fetch both VAL and ENTRYVAL before comparing
3498 contents. Adjust to value_available_contents_eq rename.
3499 * valprint.c (valprint_check_validity)
3500 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3501 (val_print_array_elements): Adjust.
3502 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3503 (value_bits_any_optimized_out): New function.
3504 (value_entirely_covered_by_range_vector): New function, factored
3505 out from value_entirely_unavailable.
3506 (value_entirely_unavailable): Reimplement.
3507 (value_entirely_optimized_out): New function.
3508 (insert_into_bit_range_vector): New function, factored out from
3509 mark_value_bits_unavailable.
3510 (mark_value_bits_unavailable): Reimplement.
3511 (struct ranges_and_idx): New struct.
3512 (find_first_range_overlap_and_match): New function, factored out
3513 from value_available_contents_bits_eq.
3514 (value_available_contents_bits_eq): Rename to ...
3515 (value_contents_bits_eq): ... this. Check both unavailable
3516 contents and optimized out contents.
3517 (value_available_contents_eq): Rename to ...
3518 (value_contents_eq): ... this.
3519 (allocate_value_lazy): Remove reference to the old optimized_out
3521 (allocate_optimized_out_value): Use
3522 mark_value_bytes_optimized_out.
3523 (require_not_optimized_out): Adjust to check whether the
3524 optimized_out vec is empty.
3525 (ranges_copy_adjusted): New function, factored out from
3526 value_contents_copy_raw.
3527 (value_contents_copy_raw): Also copy the optimized out ranges.
3528 Assert the destination ranges aren't optimized out.
3529 (value_contents_copy): Update comment, remove call to
3530 require_not_optimized_out.
3531 (value_contents_equal): Adjust to check whether the optimized_out
3533 (set_value_optimized_out, value_optimized_out_const): Delete.
3534 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3536 (value_entirely_optimized_out, value_bits_valid): Delete.
3537 (value_copy): Take a VEC copy of the 'optimized_out' field.
3538 (value_primitive_field): Remove special handling of optimized out.
3539 (value_fetch_lazy): Assert that lazy values have no unavailable
3540 regions. Use value_bits_any_optimized_out. Remove some special
3541 handling for optimized out values.
3542 * value.h: Add intro comment about <optimized out> and
3544 (struct lval_funcs): Remove check_validity and check_any_valid
3546 (set_value_optimized_out, value_optimized_out_const): Remove.
3547 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3549 (value_bits_any_optimized_out): New declaration.
3550 (value_bits_valid): Delete declaration.
3551 (value_available_contents_eq): Rename to ...
3552 (value_contents_eq): ... this, and extend comments.
3554 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3556 Fix -fsanitize=address on unreadable inferior strings.
3557 * valprint.c (val_print_string): Fix access before BUFFER.
3559 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3561 * target.c (target_struct_size): Remove.
3562 (target_struct_allocsize): Remove.
3563 (DEFAULT_ALLOCSIZE): Remove.
3564 (target_ops_p): New typedef.
3565 (DEF_VEC_P (target_ops_p)): New vector type.
3566 (target_structs): Change type to VEC (target_ops_p).
3567 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3568 (find_default_run_target): Rewrite for loop following changes to
3571 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3573 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3574 Adjust code accordingly. Adjust function description comment.
3576 2014-08-19 Yao Qi <yao@codesourcery.com>
3578 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3581 2014-08-19 Alan Modra <amodra@gmail.com>
3583 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3584 * config.in: Regenerate.
3585 * configure: Regenerate.
3587 2014-08-19 Tom Tromey <tromey@redhat.com>
3588 Gary Benson <gbenson@redhat.com>
3590 * common/common-debug.h: New file.
3591 * common/common-debug.c: Likewise.
3592 * debug.c: Likewise.
3593 * Makefile.in (SFILES): Add common/common-debug.c.
3594 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3595 (COMMON_OBS): Add common-debug.o and debug.o.
3596 (common-debug.o): New rule.
3597 * common/common-defs.h: Include common-debug.h.
3598 * common/agent.c (debug_agent_printf): New function.
3599 (DEBUG_AGENT): Redefine.
3600 * nat/i386-dregs.c (debug_printf): Undefine.
3602 2014-08-19 Gary Benson <gbenson@redhat.com>
3604 * common/common-defs.h: Include print-utils.h.
3605 * utils.h: Do not include print-utils.h.
3607 2014-08-19 Tom Tromey <tromey@redhat.com>
3608 Gary Benson <gbenson@redhat.com>
3610 * common/common-types.h: New file.
3611 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3612 * common/common-defs.h: Include common-types.h.
3613 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3616 2014-08-19 Tom Tromey <tromey@redhat.com>
3617 Gary Benson <gbenson@redhat.com>
3619 * common/errors.h: New file.
3620 * common/errors.c: Likewise.
3621 * Makefile.in (SFILES): Add common/errors.c.
3622 (HFILES_NO_SRCDIR): Add common/errors.h.
3623 (COMMON_OBS): Add errors.o.
3624 (errors.o): New rule.
3625 * common/common-defs.h: Include errors.h.
3626 * utils.h (perror_with_name, error, verror, warning, vwarning):
3628 * common/common-utils.h: (malloc_failure, internal_error):
3631 2014-08-19 Gary Benson <gbenson@redhat.com>
3633 * utils.c (internal_vproblem): Always print the message.
3635 2014-08-18 Doug Evans <dje@google.com>
3637 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3639 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3641 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3642 Return 0 if TYPE is dynamic.
3643 (print_range): Add handling of dynamic ranges.
3645 2014-08-18 Keven Boell <keven.boell@intel.com>
3646 Joel Brobecker <brobecker@adacore.com>
3648 * gdbtypes.h (struct main_type): Add field "data_location".
3649 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3650 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3651 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3652 a dynamic data location.
3653 (resolve_dynamic_type): Add DW_AT_data_location handling.
3654 (copy_recursive, copy_type): Copy the data_location information
3656 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3657 * value.c (value_from_contents_and_address): Add
3658 DW_AT_data_location handling.
3660 2014-08-18 Keven Boell <keven.boell@intel.com>
3661 Joel Brobecker <brobecker@adacore.com>
3663 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3664 field "get_object_address".
3665 * dwarf2expr.c (execute_stack_op): Add handling for
3666 DW_OP_push_object_address.
3667 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3668 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3669 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3670 (dwarf_expr_get_obj_addr): New function.
3671 (dwarf_expr_ctx_funcs): Add get_object_address field.
3672 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3673 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3674 (dwarf2_evaluate_property): Add parameter "address". Use it.
3675 (needs_get_obj_addr): New function.
3676 (needs_frame_ctx_funcs): Add get_object_address field.
3677 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3678 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3679 (resolve_dynamic_array): Likewise.
3681 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3683 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3684 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3685 fixed value for records and unions for which some GNAT encodings
3688 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3690 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3691 rewrite to avoid "else if" and "else" constructs. Should be
3692 a no-op in practice.
3694 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3696 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3699 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3702 * eval.c: Update all calls to find_overload_match.
3703 * valarith.c: Likewise.
3704 (value_user_defined_cpp_op, value_user_defined_op): New
3705 argument NOSIDE. Update all callers.
3706 * valops.c (find_overload_match): New argument NOSIDE.
3707 * value.h (find_overload_match): Update signature.
3709 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3711 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3712 'items' methods instead of 'iteritems' method on dictionaries.
3714 2014-08-15 Doug Evans <dje@google.com>
3716 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3719 2014-08-15 Doug Evans <dje@google.com>
3721 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3723 2014-08-15 Doug Evans <dje@google.com>
3725 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3727 2014-08-15 Doug Evans <dje@google.com>
3729 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3732 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3734 * dcache.h: Include target.h, to avoid compile time warnings.
3736 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3738 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3739 frame_info" partial declaration.
3740 * gdbarch.h: Regenerate.
3742 2014-08-15 Yao Qi <yao@codesourcery.com>
3744 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3745 Add parameter 'decode_for_pst_p'. Callers update.
3747 2014-08-13 Yao Qi <yao@codesourcery.com>
3750 * configure.ac: Use local variable 'pos'.
3751 * configure: Regenerated.
3753 2014-08-11 Doug Evans <dje@google.com>
3755 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3756 message, it is redundant with "Reading symbols from ..." message.
3758 2014-08-10 Doug Evans <xdje42@gmail.com>
3760 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3762 2014-08-09 Yao Qi <yao@codesourcery.com>
3765 * remote.c (remote_xfer_partial): Remove dead code.
3767 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3769 * ia64-linux-tdep.c: Include "regset.h".
3770 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3771 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3772 (ia64_linux_supply_fpregset): New function.
3773 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3774 (ia64_linux_regset_from_core_section): New function.
3775 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3778 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3780 * m68klinux-tdep.c: Include "regset.h".
3781 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3782 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3783 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3784 (m68k_linux_regset_from_core_section): New function.
3785 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3788 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3790 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3791 function. Move logic to...
3792 (tilegx_linux_regmap): ... this new register map.
3793 (tilegx_linux_regset): Refer to register map, replace supply
3794 method by regcache_supply_regset, and add collect method.
3795 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3796 TILEGX_FIRST_EASY_REGNUM.
3798 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3800 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3801 that calls regcache_supply_regset and handles the EPC register
3802 separately. Move main logic to...
3803 (score7_linux_gregmap): ... this new register map.
3804 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3805 (score7_linux_gregset): Refer to register map. Add collect method.
3806 (score7_linux_regset_from_core_section): Replace
3807 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3808 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3809 (struct regset): Delete unused forward declaraction.
3810 (struct pt_regs): Delete structure definition.
3811 (elf_gregset_t): Delete typedef.
3813 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3815 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3816 (nios2_core_regset): Add collect method.
3818 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3820 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3821 platform-independent and don't write to read-only input buffer.
3822 (m32r_linux_collect_gregset): New function.
3823 (m32r_linux_gregset): Add collect method.
3825 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3827 * hppa-linux-tdep.c (greg_map): Rename to...
3828 (hppa_linux_gregmap): ... this. Also convert to
3829 regcache_map_entry format.
3830 (hppa_linux_supply_regset): Delete function.
3831 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3832 (hppa_linux_fpregmap): ... this new register map.
3833 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3834 register map, replace supply method by regcache_supply_regset, and
3835 add collect method regcache_collect_regset.
3837 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3839 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3840 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3841 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3842 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3843 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3844 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3845 (frv_linux_supply_gregset): Replace main logic by call to
3846 regcache_supply_regset, but keep clearing gr32-gr63.
3847 (frv_linux_supply_fpregset): Delete function.
3848 (frv_linux_gregset): Refer to appropriate register map and add
3849 regcache_collect_regset as the collect method.
3850 (frv_linux_fpregset): Likewise. Also exchange the supply method
3851 by regcache_supply_regset.
3853 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3855 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3856 by call to alpha_supply_int_regs.
3857 (alpha_linux_collect_gregset): New function.
3858 (alpha_linux_supply_fpregset): Replace logic by call to
3859 alpha_supply_fp_regs.
3860 (alpha_linux_collect_fpregset): New function.
3861 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3863 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3865 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3866 by call to regcache_collect_regset.
3867 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3868 instead of aarch64_linux_supply_gregset/_fpregset.
3869 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3870 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3871 header file instead.
3872 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3873 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3874 functions. Move logic to ...
3875 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3877 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3878 refer to new register maps, replace *_regset_from_core by
3879 regcache_supply_regset, and also use regcache_collect_regset.
3880 * aarch64-linux-tdep.h: Include "regset.h".
3881 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3883 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3884 macros, moved from C source file.
3885 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3886 variable declarations.
3888 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3890 * s390-linux-nat.c: Include "regset.h".
3891 (regmap_gregset): Delete macro.
3892 (s390_64_regmap_gregset): New register map for
3893 regcache_supply/_collect_regset.
3894 (s390_64_gregset): New regset.
3895 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3896 (regmap_fpregset): Delete macro.
3897 (s390_native_supply, s390_native_collect): Delete functions.
3898 (supply_gregset, fill_gregset): Replace s390-specific regmap
3899 handling by a call to regcache_supply/_collect_regset.
3900 (supply_fpregset, fill_fpregset): Call regcache_supply/
3901 _collect_regset instead of s390_native_supply/_collect.
3902 (fetch_regset, store_regset): Likewise. Also change the last
3903 parameter to a regset instead of a regmap.
3904 (s390_linux_fetch_inferior_registers)
3905 (390_linux_store_inferior_registers): Adjust last parameter in
3906 calls to fetch_regset and store_regset.
3907 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3908 (s390_gregmap): ... this. Also make static const and convert to
3909 regcache_map_entry format.
3910 (s390x_regmap_gregset): Delete.
3911 (s390_regmap_fpregset): Rename to...
3912 (s390_fpregmap): ... this. Make static const and convert to
3913 regcache_map_entry format.
3914 (s390_regmap_upper, s390_regmap_last_break)
3915 (s390x_regmap_last_break, s390_regmap_system_call)
3916 (s390_regmap_tdb): Likewise.
3917 (s390_supply_regset, s390_collect_regset): Remove functions.
3918 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3920 (s390_gregset, s390_fpregset, s390_upper_regset)
3921 (s390_last_break_regset, s390x_last_break_regset)
3922 (s390_system_call_regset, s390_tdb_regset): Make global and
3923 replace s390_supply/_collect_regset by regcache_supply/
3925 (s390x_gregset): Delete.
3926 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3927 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3928 (s390_regmap_fpregset, s390_regmap_last_break)
3929 (s390x_regmap_last_break, s390_regmap_system_call)
3930 (s390_regmap_tdb): Delete global variable declarations.
3931 (s390_gregset, s390_fpregset, s390_last_break_regset)
3932 (s390x_last_break_regset, s390_system_call_regset)
3933 (s390_tdb_regset): New global variable declarations.
3935 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3937 * regcache.c: Include "regset.h".
3938 (regcache_transfer_regset): New local function.
3939 (regcache_supply_regset, regcache_collect_regset): New functions.
3940 * regcache.h (struct regcache_map_entry): New structure.
3941 (REGCACHE_MAP_SKIP): New enum value.
3942 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3944 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3946 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3947 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3948 (ppc_linux_collect_gregset ): Likewise.
3949 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3950 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3951 (ppc_collect_vrregset): Likewise.
3952 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3955 2014-08-07 Yao Qi <yao@codesourcery.com>
3957 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3958 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3959 * remote.c (remote_read_bytes): Likewise.
3961 2014-08-07 Yao Qi <yao@codesourcery.com>
3963 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3965 2014-08-07 Yao Qi <yao@codesourcery.com>
3968 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3969 TARGET_XFER_OK instead of 0.
3971 2014-08-07 Gary Benson <gbenson@redhat.com>
3973 * common/common-defs.h: Include errno.h.
3974 * defs.h: Do not include errno.h.
3975 * ada-typeprint.c: Likewise.
3976 * c-typeprint.c: Likewise.
3977 * core-regset.c: Likewise.
3978 * corefile.c: Likewise.
3979 * corelow.c: Likewise.
3980 * event-loop.c: Likewise.
3981 * f-typeprint.c: Likewise.
3982 * gnu-nat.c: Likewise.
3983 * go32-nat.c: Likewise.
3984 * i386gnu-nat.c: Likewise.
3985 * m2-typeprint.c: Likewise.
3986 * nat/linux-btrace.c: Likewise.
3987 * p-typeprint.c: Likewise.
3988 * procfs.c: Likewise.
3989 * remote-sim.c: Likewise.
3990 * rs6000-nat.c: Likewise.
3991 * target.c: Likewise.
3992 * typeprint.c: Likewise.
3993 * ui-file.c: Likewise.
3994 * valops.c: Likewise.
3995 * valprint.c: Likewise.
3997 2014-08-07 Gary Benson <gbenson@redhat.com>
3999 * common/common-defs.h: Include string.h.
4000 * aarch64-tdep.c: Do not include string.h.
4001 * ada-exp.y: Likewise.
4002 * ada-lang.c: Likewise.
4003 * ada-lex.l: Likewise.
4004 * ada-typeprint.c: Likewise.
4005 * ada-valprint.c: Likewise.
4006 * aix-thread.c: Likewise.
4007 * alpha-linux-tdep.c: Likewise.
4008 * alpha-mdebug-tdep.c: Likewise.
4009 * alpha-nat.c: Likewise.
4010 * alpha-osf1-tdep.c: Likewise.
4011 * alpha-tdep.c: Likewise.
4012 * alphanbsd-tdep.c: Likewise.
4013 * amd64-dicos-tdep.c: Likewise.
4014 * amd64-linux-tdep.c: Likewise.
4015 * amd64-nat.c: Likewise.
4016 * amd64-sol2-tdep.c: Likewise.
4017 * amd64fbsd-tdep.c: Likewise.
4018 * amd64obsd-tdep.c: Likewise.
4019 * arch-utils.c: Likewise.
4020 * arm-linux-nat.c: Likewise.
4021 * arm-linux-tdep.c: Likewise.
4022 * arm-tdep.c: Likewise.
4023 * arm-wince-tdep.c: Likewise.
4024 * armbsd-tdep.c: Likewise.
4025 * armnbsd-nat.c: Likewise.
4026 * armnbsd-tdep.c: Likewise.
4027 * armobsd-tdep.c: Likewise.
4028 * avr-tdep.c: Likewise.
4029 * ax-gdb.c: Likewise.
4030 * ax-general.c: Likewise.
4031 * bcache.c: Likewise.
4032 * bfin-tdep.c: Likewise.
4033 * breakpoint.c: Likewise.
4034 * build-id.c: Likewise.
4035 * buildsym.c: Likewise.
4036 * c-exp.y: Likewise.
4037 * c-lang.c: Likewise.
4038 * c-typeprint.c: Likewise.
4039 * c-valprint.c: Likewise.
4040 * charset.c: Likewise.
4041 * cli-out.c: Likewise.
4042 * cli/cli-cmds.c: Likewise.
4043 * cli/cli-decode.c: Likewise.
4044 * cli/cli-dump.c: Likewise.
4045 * cli/cli-interp.c: Likewise.
4046 * cli/cli-logging.c: Likewise.
4047 * cli/cli-script.c: Likewise.
4048 * cli/cli-setshow.c: Likewise.
4049 * cli/cli-utils.c: Likewise.
4050 * coffread.c: Likewise.
4051 * common/agent.c: Likewise.
4052 * common/buffer.c: Likewise.
4053 * common/buffer.h: Likewise.
4054 * common/common-utils.c: Likewise.
4055 * common/filestuff.c: Likewise.
4056 * common/filestuff.c: Likewise.
4057 * common/format.c: Likewise.
4058 * common/print-utils.c: Likewise.
4059 * common/rsp-low.c: Likewise.
4060 * common/signals.c: Likewise.
4061 * common/vec.h: Likewise.
4062 * common/xml-utils.c: Likewise.
4063 * core-regset.c: Likewise.
4064 * corefile.c: Likewise.
4065 * corelow.c: Likewise.
4066 * cp-abi.c: Likewise.
4067 * cp-name-parser.y: Likewise.
4068 * cp-support.c: Likewise.
4069 * cp-valprint.c: Likewise.
4070 * cris-tdep.c: Likewise.
4071 * d-exp.y: Likewise.
4072 * darwin-nat.c: Likewise.
4073 * dbxread.c: Likewise.
4074 * dcache.c: Likewise.
4075 * demangle.c: Likewise.
4076 * dicos-tdep.c: Likewise.
4077 * disasm.c: Likewise.
4078 * doublest.c: Likewise.
4079 * dsrec.c: Likewise.
4080 * dummy-frame.c: Likewise.
4081 * dwarf2-frame.c: Likewise.
4082 * dwarf2loc.c: Likewise.
4083 * dwarf2read.c: Likewise.
4084 * elfread.c: Likewise.
4085 * environ.c: Likewise.
4087 * event-loop.c: Likewise.
4088 * exceptions.c: Likewise.
4090 * expprint.c: Likewise.
4091 * f-exp.y: Likewise.
4092 * f-lang.c: Likewise.
4093 * f-typeprint.c: Likewise.
4094 * f-valprint.c: Likewise.
4095 * fbsd-nat.c: Likewise.
4096 * findcmd.c: Likewise.
4097 * findvar.c: Likewise.
4098 * fork-child.c: Likewise.
4099 * frame.c: Likewise.
4100 * frv-linux-tdep.c: Likewise.
4101 * frv-tdep.c: Likewise.
4103 * gdb_bfd.c: Likewise.
4104 * gdbarch.c: Likewise.
4105 * gdbarch.sh: Likewise.
4106 * gdbtypes.c: Likewise.
4107 * gnu-nat.c: Likewise.
4108 * gnu-v2-abi.c: Likewise.
4109 * gnu-v3-abi.c: Likewise.
4110 * go-exp.y: Likewise.
4111 * go-lang.c: Likewise.
4112 * go32-nat.c: Likewise.
4113 * guile/guile.c: Likewise.
4114 * guile/scm-auto-load.c: Likewise.
4115 * hppa-hpux-tdep.c: Likewise.
4116 * hppa-linux-nat.c: Likewise.
4117 * hppanbsd-tdep.c: Likewise.
4118 * hppaobsd-tdep.c: Likewise.
4119 * i386-cygwin-tdep.c: Likewise.
4120 * i386-dicos-tdep.c: Likewise.
4121 * i386-linux-tdep.c: Likewise.
4122 * i386-nto-tdep.c: Likewise.
4123 * i386-sol2-tdep.c: Likewise.
4124 * i386-tdep.c: Likewise.
4125 * i386bsd-tdep.c: Likewise.
4126 * i386gnu-nat.c: Likewise.
4127 * i386nbsd-tdep.c: Likewise.
4128 * i386obsd-tdep.c: Likewise.
4129 * i387-tdep.c: Likewise.
4130 * ia64-libunwind-tdep.c: Likewise.
4131 * ia64-linux-nat.c: Likewise.
4132 * inf-child.c: Likewise.
4133 * inf-ptrace.c: Likewise.
4134 * inf-ttrace.c: Likewise.
4135 * infcall.c: Likewise.
4136 * infcmd.c: Likewise.
4137 * inflow.c: Likewise.
4138 * infrun.c: Likewise.
4139 * interps.c: Likewise.
4140 * iq2000-tdep.c: Likewise.
4141 * irix5-nat.c: Likewise.
4142 * jv-exp.y: Likewise.
4143 * jv-lang.c: Likewise.
4144 * jv-typeprint.c: Likewise.
4145 * jv-valprint.c: Likewise.
4146 * language.c: Likewise.
4147 * linux-fork.c: Likewise.
4148 * linux-nat.c: Likewise.
4149 * lm32-tdep.c: Likewise.
4150 * m2-exp.y: Likewise.
4151 * m2-typeprint.c: Likewise.
4152 * m32c-tdep.c: Likewise.
4153 * m32r-linux-nat.c: Likewise.
4154 * m32r-linux-tdep.c: Likewise.
4155 * m32r-rom.c: Likewise.
4156 * m32r-tdep.c: Likewise.
4157 * m68hc11-tdep.c: Likewise.
4158 * m68k-tdep.c: Likewise.
4159 * m68kbsd-tdep.c: Likewise.
4160 * m68klinux-nat.c: Likewise.
4161 * m68klinux-tdep.c: Likewise.
4162 * m88k-tdep.c: Likewise.
4163 * machoread.c: Likewise.
4164 * macrocmd.c: Likewise.
4166 * mdebugread.c: Likewise.
4167 * mem-break.c: Likewise.
4168 * memattr.c: Likewise.
4169 * memory-map.c: Likewise.
4170 * mep-tdep.c: Likewise.
4171 * mi/mi-cmd-break.c: Likewise.
4172 * mi/mi-cmd-disas.c: Likewise.
4173 * mi/mi-cmd-env.c: Likewise.
4174 * mi/mi-cmd-stack.c: Likewise.
4175 * mi/mi-cmd-var.c: Likewise.
4176 * mi/mi-cmds.c: Likewise.
4177 * mi/mi-console.c: Likewise.
4178 * mi/mi-getopt.c: Likewise.
4179 * mi/mi-interp.c: Likewise.
4180 * mi/mi-main.c: Likewise.
4181 * mi/mi-parse.c: Likewise.
4182 * microblaze-rom.c: Likewise.
4183 * microblaze-tdep.c: Likewise.
4184 * mingw-hdep.c: Likewise.
4185 * minidebug.c: Likewise.
4186 * minsyms.c: Likewise.
4187 * mips-irix-tdep.c: Likewise.
4188 * mips-linux-tdep.c: Likewise.
4189 * mips-tdep.c: Likewise.
4190 * mips64obsd-tdep.c: Likewise.
4191 * mipsnbsd-tdep.c: Likewise.
4192 * mipsread.c: Likewise.
4193 * mn10300-linux-tdep.c: Likewise.
4194 * mn10300-tdep.c: Likewise.
4195 * monitor.c: Likewise.
4196 * moxie-tdep.c: Likewise.
4197 * mt-tdep.c: Likewise.
4198 * nat/linux-btrace.c: Likewise.
4199 * nat/linux-osdata.c: Likewise.
4200 * nat/linux-procfs.c: Likewise.
4201 * nat/linux-ptrace.c: Likewise.
4202 * nat/linux-waitpid.c: Likewise.
4203 * nbsd-tdep.c: Likewise.
4204 * nios2-linux-tdep.c: Likewise.
4205 * nto-procfs.c: Likewise.
4206 * nto-tdep.c: Likewise.
4207 * objc-lang.c: Likewise.
4208 * objfiles.c: Likewise.
4209 * opencl-lang.c: Likewise.
4210 * osabi.c: Likewise.
4211 * osdata.c: Likewise.
4212 * p-exp.y: Likewise.
4213 * p-lang.c: Likewise.
4214 * p-typeprint.c: Likewise.
4215 * parse.c: Likewise.
4216 * posix-hdep.c: Likewise.
4217 * ppc-linux-nat.c: Likewise.
4218 * ppc-sysv-tdep.c: Likewise.
4219 * ppcfbsd-tdep.c: Likewise.
4220 * ppcnbsd-tdep.c: Likewise.
4221 * ppcobsd-tdep.c: Likewise.
4222 * printcmd.c: Likewise.
4223 * procfs.c: Likewise.
4224 * prologue-value.c: Likewise.
4225 * python/py-auto-load.c: Likewise.
4226 * python/py-gdb-readline.c: Likewise.
4227 * ravenscar-thread.c: Likewise.
4228 * regcache.c: Likewise.
4229 * registry.c: Likewise.
4230 * remote-fileio.c: Likewise.
4231 * remote-m32r-sdi.c: Likewise.
4232 * remote-mips.c: Likewise.
4233 * remote-notif.c: Likewise.
4234 * remote-sim.c: Likewise.
4235 * remote.c: Likewise.
4236 * reverse.c: Likewise.
4237 * rs6000-aix-tdep.c: Likewise.
4238 * ser-base.c: Likewise.
4239 * ser-go32.c: Likewise.
4240 * ser-mingw.c: Likewise.
4241 * ser-pipe.c: Likewise.
4242 * ser-tcp.c: Likewise.
4243 * ser-unix.c: Likewise.
4244 * serial.c: Likewise.
4245 * sh-tdep.c: Likewise.
4246 * sh64-tdep.c: Likewise.
4247 * shnbsd-tdep.c: Likewise.
4249 * sol-thread.c: Likewise.
4250 * solib-dsbt.c: Likewise.
4251 * solib-frv.c: Likewise.
4252 * solib-osf.c: Likewise.
4253 * solib-som.c: Likewise.
4254 * solib-spu.c: Likewise.
4255 * solib-target.c: Likewise.
4256 * solib.c: Likewise.
4257 * somread.c: Likewise.
4258 * source.c: Likewise.
4259 * sparc-nat.c: Likewise.
4260 * sparc-sol2-tdep.c: Likewise.
4261 * sparc-tdep.c: Likewise.
4262 * sparc64-tdep.c: Likewise.
4263 * sparc64fbsd-tdep.c: Likewise.
4264 * sparc64nbsd-tdep.c: Likewise.
4265 * sparcnbsd-tdep.c: Likewise.
4266 * spu-linux-nat.c: Likewise.
4267 * spu-multiarch.c: Likewise.
4268 * spu-tdep.c: Likewise.
4269 * stabsread.c: Likewise.
4270 * stack.c: Likewise.
4271 * std-regs.c: Likewise.
4272 * symfile.c: Likewise.
4273 * symmisc.c: Likewise.
4274 * symtab.c: Likewise.
4275 * target.c: Likewise.
4276 * thread.c: Likewise.
4277 * tilegx-linux-nat.c: Likewise.
4278 * tilegx-tdep.c: Likewise.
4280 * tracepoint.c: Likewise.
4281 * tui/tui-command.c: Likewise.
4282 * tui/tui-data.c: Likewise.
4283 * tui/tui-disasm.c: Likewise.
4284 * tui/tui-file.c: Likewise.
4285 * tui/tui-layout.c: Likewise.
4286 * tui/tui-out.c: Likewise.
4287 * tui/tui-regs.c: Likewise.
4288 * tui/tui-source.c: Likewise.
4289 * tui/tui-stack.c: Likewise.
4290 * tui/tui-win.c: Likewise.
4291 * tui/tui-windata.c: Likewise.
4292 * tui/tui-winsource.c: Likewise.
4293 * typeprint.c: Likewise.
4294 * ui-file.c: Likewise.
4295 * ui-out.c: Likewise.
4296 * user-regs.c: Likewise.
4297 * utils.c: Likewise.
4298 * v850-tdep.c: Likewise.
4299 * valarith.c: Likewise.
4300 * valops.c: Likewise.
4301 * valprint.c: Likewise.
4302 * value.c: Likewise.
4303 * varobj.c: Likewise.
4304 * vax-tdep.c: Likewise.
4305 * vaxnbsd-tdep.c: Likewise.
4306 * vaxobsd-tdep.c: Likewise.
4307 * windows-nat.c: Likewise.
4308 * xcoffread.c: Likewise.
4309 * xml-support.c: Likewise.
4310 * xstormy16-tdep.c: Likewise.
4311 * xtensa-linux-nat.c: Likewise.
4313 2014-08-07 Gary Benson <gbenson@redhat.com>
4315 * common/common-defs.h: Include gdb_assert.h.
4316 * aarch64-tdep.c: Do not include gdb_assert.h.
4317 * addrmap.c: Likewise.
4318 * aix-thread.c: Likewise.
4319 * alpha-linux-tdep.c: Likewise.
4320 * alpha-mdebug-tdep.c: Likewise.
4321 * alphanbsd-tdep.c: Likewise.
4322 * amd64-nat.c: Likewise.
4323 * amd64-tdep.c: Likewise.
4324 * amd64bsd-nat.c: Likewise.
4325 * amd64fbsd-nat.c: Likewise.
4326 * amd64fbsd-tdep.c: Likewise.
4327 * amd64nbsd-nat.c: Likewise.
4328 * amd64nbsd-tdep.c: Likewise.
4329 * amd64obsd-nat.c: Likewise.
4330 * amd64obsd-tdep.c: Likewise.
4331 * arch-utils.c: Likewise.
4332 * arm-tdep.c: Likewise.
4333 * armbsd-tdep.c: Likewise.
4335 * bcache.c: Likewise.
4336 * bfin-tdep.c: Likewise.
4337 * blockframe.c: Likewise.
4338 * breakpoint.c: Likewise.
4339 * bsd-kvm.c: Likewise.
4340 * bsd-uthread.c: Likewise.
4341 * buildsym.c: Likewise.
4342 * c-exp.y: Likewise.
4343 * c-lang.c: Likewise.
4344 * charset.c: Likewise.
4345 * cleanups.c: Likewise.
4346 * cli-out.c: Likewise.
4347 * cli/cli-decode.c: Likewise.
4348 * cli/cli-dump.c: Likewise.
4349 * cli/cli-logging.c: Likewise.
4350 * cli/cli-script.c: Likewise.
4351 * cli/cli-utils.c: Likewise.
4352 * coffread.c: Likewise.
4353 * common/common-utils.c: Likewise.
4354 * common/queue.h: Likewise.
4355 * common/signals.c: Likewise.
4356 * common/vec.h: Likewise.
4357 * complaints.c: Likewise.
4358 * completer.c: Likewise.
4359 * corelow.c: Likewise.
4360 * cp-abi.c: Likewise.
4361 * cp-name-parser.y: Likewise.
4362 * cp-namespace.c: Likewise.
4363 * cp-support.c: Likewise.
4364 * cris-tdep.c: Likewise.
4365 * dbxread.c: Likewise.
4366 * dictionary.c: Likewise.
4367 * doublest.c: Likewise.
4368 * dsrec.c: Likewise.
4369 * dummy-frame.c: Likewise.
4370 * dwarf2-frame-tailcall.c: Likewise.
4371 * dwarf2-frame.c: Likewise.
4372 * dwarf2expr.c: Likewise.
4373 * dwarf2loc.c: Likewise.
4374 * dwarf2read.c: Likewise.
4376 * event-loop.c: Likewise.
4377 * exceptions.c: Likewise.
4378 * expprint.c: Likewise.
4379 * f-valprint.c: Likewise.
4380 * fbsd-nat.c: Likewise.
4381 * findvar.c: Likewise.
4382 * frame-unwind.c: Likewise.
4383 * frame.c: Likewise.
4384 * frv-tdep.c: Likewise.
4385 * gcore.c: Likewise.
4386 * gdb-dlfcn.c: Likewise.
4387 * gdb_bfd.c: Likewise.
4388 * gdbarch.c: Likewise.
4389 * gdbarch.sh: Likewise.
4390 * gdbtypes.c: Likewise.
4391 * gnu-nat.c: Likewise.
4392 * gnu-v3-abi.c: Likewise.
4393 * go-lang.c: Likewise.
4394 * guile/scm-exception.c: Likewise.
4395 * guile/scm-gsmob.c: Likewise.
4396 * guile/scm-lazy-string.c: Likewise.
4397 * guile/scm-math.c: Likewise.
4398 * guile/scm-pretty-print.c: Likewise.
4399 * guile/scm-safe-call.c: Likewise.
4400 * guile/scm-utils.c: Likewise.
4401 * guile/scm-value.c: Likewise.
4402 * h8300-tdep.c: Likewise.
4403 * hppa-hpux-nat.c: Likewise.
4404 * hppa-tdep.c: Likewise.
4405 * hppanbsd-tdep.c: Likewise.
4406 * hppaobsd-tdep.c: Likewise.
4407 * i386-darwin-nat.c: Likewise.
4408 * i386-darwin-tdep.c: Likewise.
4409 * i386-nto-tdep.c: Likewise.
4410 * i386-tdep.c: Likewise.
4411 * i386bsd-nat.c: Likewise.
4412 * i386fbsd-tdep.c: Likewise.
4413 * i386gnu-nat.c: Likewise.
4414 * i386nbsd-tdep.c: Likewise.
4415 * i386obsd-tdep.c: Likewise.
4416 * i387-tdep.c: Likewise.
4417 * ia64-libunwind-tdep.c: Likewise.
4418 * ia64-tdep.c: Likewise.
4419 * inf-ptrace.c: Likewise.
4420 * inf-ttrace.c: Likewise.
4421 * infcall.c: Likewise.
4422 * infcmd.c: Likewise.
4423 * infrun.c: Likewise.
4424 * inline-frame.c: Likewise.
4425 * interps.c: Likewise.
4426 * jv-lang.c: Likewise.
4427 * jv-typeprint.c: Likewise.
4428 * linux-fork.c: Likewise.
4429 * linux-nat.c: Likewise.
4430 * linux-thread-db.c: Likewise.
4431 * m32c-tdep.c: Likewise.
4432 * m32r-linux-nat.c: Likewise.
4433 * m32r-tdep.c: Likewise.
4434 * m68k-tdep.c: Likewise.
4435 * m68kbsd-nat.c: Likewise.
4436 * m68kbsd-tdep.c: Likewise.
4437 * m88k-tdep.c: Likewise.
4438 * machoread.c: Likewise.
4439 * macroexp.c: Likewise.
4440 * macrotab.c: Likewise.
4441 * maint.c: Likewise.
4442 * mdebugread.c: Likewise.
4443 * memory-map.c: Likewise.
4444 * mep-tdep.c: Likewise.
4445 * mi/mi-common.c: Likewise.
4446 * microblaze-tdep.c: Likewise.
4447 * mingw-hdep.c: Likewise.
4448 * mips-linux-nat.c: Likewise.
4449 * mips-linux-tdep.c: Likewise.
4450 * mips-tdep.c: Likewise.
4451 * mips64obsd-tdep.c: Likewise.
4452 * mipsnbsd-tdep.c: Likewise.
4453 * mn10300-linux-tdep.c: Likewise.
4454 * mn10300-tdep.c: Likewise.
4455 * moxie-tdep.c: Likewise.
4456 * mt-tdep.c: Likewise.
4457 * nat/linux-btrace.c: Likewise.
4458 * nat/linux-osdata.c: Likewise.
4459 * nat/linux-ptrace.c: Likewise.
4460 * nat/mips-linux-watch.c: Likewise.
4461 * nios2-linux-tdep.c: Likewise.
4462 * nios2-tdep.c: Likewise.
4463 * objc-lang.c: Likewise.
4464 * objfiles.c: Likewise.
4465 * obsd-nat.c: Likewise.
4466 * opencl-lang.c: Likewise.
4467 * osabi.c: Likewise.
4468 * parse.c: Likewise.
4469 * ppc-linux-nat.c: Likewise.
4470 * ppc-sysv-tdep.c: Likewise.
4471 * ppcfbsd-nat.c: Likewise.
4472 * ppcfbsd-tdep.c: Likewise.
4473 * ppcnbsd-nat.c: Likewise.
4474 * ppcnbsd-tdep.c: Likewise.
4475 * ppcobsd-nat.c: Likewise.
4476 * ppcobsd-tdep.c: Likewise.
4477 * printcmd.c: Likewise.
4478 * procfs.c: Likewise.
4479 * prologue-value.c: Likewise.
4480 * psymtab.c: Likewise.
4481 * python/py-lazy-string.c: Likewise.
4482 * python/py-value.c: Likewise.
4483 * regcache.c: Likewise.
4484 * reggroups.c: Likewise.
4485 * registry.c: Likewise.
4486 * remote-sim.c: Likewise.
4487 * remote.c: Likewise.
4488 * rs6000-aix-tdep.c: Likewise.
4489 * rs6000-tdep.c: Likewise.
4490 * s390-linux-tdep.c: Likewise.
4491 * score-tdep.c: Likewise.
4492 * ser-base.c: Likewise.
4493 * ser-mingw.c: Likewise.
4494 * sh-tdep.c: Likewise.
4495 * sh64-tdep.c: Likewise.
4496 * solib-darwin.c: Likewise.
4497 * solib-spu.c: Likewise.
4498 * solib-svr4.c: Likewise.
4499 * source.c: Likewise.
4500 * sparc-nat.c: Likewise.
4501 * sparc-sol2-tdep.c: Likewise.
4502 * sparc-tdep.c: Likewise.
4503 * sparc64-sol2-tdep.c: Likewise.
4504 * sparc64-tdep.c: Likewise.
4505 * sparc64fbsd-tdep.c: Likewise.
4506 * sparc64nbsd-tdep.c: Likewise.
4507 * sparc64obsd-tdep.c: Likewise.
4508 * sparcnbsd-tdep.c: Likewise.
4509 * sparcobsd-tdep.c: Likewise.
4510 * spu-multiarch.c: Likewise.
4511 * spu-tdep.c: Likewise.
4512 * stabsread.c: Likewise.
4513 * stack.c: Likewise.
4514 * symfile.c: Likewise.
4515 * symtab.c: Likewise.
4516 * target-descriptions.c: Likewise.
4517 * target-memory.c: Likewise.
4518 * target.c: Likewise.
4519 * tic6x-linux-tdep.c: Likewise.
4520 * tic6x-tdep.c: Likewise.
4521 * tilegx-linux-nat.c: Likewise.
4522 * tilegx-tdep.c: Likewise.
4524 * tramp-frame.c: Likewise.
4525 * tui/tui-out.c: Likewise.
4526 * tui/tui-winsource.c: Likewise.
4527 * ui-out.c: Likewise.
4528 * user-regs.c: Likewise.
4529 * utils.c: Likewise.
4530 * v850-tdep.c: Likewise.
4531 * valops.c: Likewise.
4532 * value.c: Likewise.
4533 * varobj.c: Likewise.
4534 * vax-nat.c: Likewise.
4535 * xml-syscall.c: Likewise.
4536 * xml-tdesc.c: Likewise.
4537 * xstormy16-tdep.c: Likewise.
4538 * xtensa-linux-nat.c: Likewise.
4539 * xtensa-tdep.c: Likewise.
4541 2014-08-07 Gary Benson <gbenson@redhat.com>
4543 * common/common-defs.h: Include common-utils.h.
4544 * defs.h: Do not include common-utils.h.
4545 * common/gdb_assert.h: Likewise.
4546 * darwin-nat.h: Likewise.
4547 * nat/linux-btrace.c: Likewise.
4548 * target/waitstatus.h: Likewise.
4550 2014-08-07 Gary Benson <gbenson@redhat.com>
4552 * common/common-defs.h: Include ptid.h.
4553 * defs.h: Do not include ptid.h.
4554 * inferior.h: Likewise.
4555 * infrun.h: Likewise.
4556 * nat/linux-btrace.h: Likewise.
4557 * nat/linux-osdata.h: Likewise.
4558 * target/waitstatus.h: Likewise.
4560 2014-08-07 Gary Benson <gbenson@redhat.com>
4562 * common/common-defs.h: Include gdb_locale.h.
4563 * defs.h: Do not include gdb_locale.h.
4565 2014-08-07 Gary Benson <gbenson@redhat.com>
4567 * common/common-defs.h: Include gdb/signals.h.
4568 * defs.h: Do not include gdb/signals.h.
4570 2014-08-07 Gary Benson <gbenson@redhat.com>
4572 * common/common-defs.h: Include pathmax.h.
4573 * defs.h: Do not include pathmax.h.
4575 2014-08-07 Gary Benson <gbenson@redhat.com>
4577 * common/common-defs.h: Include libiberty.h.
4578 * defs.h: Do not include libiberty.h.
4579 * common/queue.h: Likewise.
4580 * cp-name-parser.y: Likewise.
4581 * mi/mi-cmd-catch.c: Likewise.
4582 * python/python.c: Likewise.
4584 2014-08-07 Gary Benson <gbenson@redhat.com>
4586 * common/common-defs.h: Include ansidecl.h.
4587 * defs.h: Do not include ansidecl.h.
4588 * common/buffer.h: Likewise.
4589 * common/common-utils.h: Likewise.
4591 2014-08-07 Gary Benson <gbenson@redhat.com>
4593 * common/common-defs.h: Include stddef.h.
4594 * defs.h: Do not include stddef.h.
4595 * common/common-utils.h: Likewise.
4596 * amd64fbsd-nat.c: Likewise.
4597 * bcache.c: Likewise.
4598 * charset.c: Likewise.
4599 * common/buffer.h: Likewise.
4600 * common/vec.h: Likewise.
4601 * i386bsd-nat.c: Likewise.
4602 * nat/linux-btrace.h: Likewise.
4603 * ppcfbsd-nat.c: Likewise.
4604 * ppcnbsd-tdep.h: Likewise.
4605 * ppcobsd-nat.c: Likewise.
4606 * ppcobsd-tdep.h: Likewise.
4607 * python/py-gdb-readline.c: Likewise.
4609 2014-08-07 Gary Benson <gbenson@redhat.com>
4611 * common/common-defs.h: Include stdarg.h.
4612 * defs.h: Do not include stdarg.h.
4613 * ada-lang.c: Likewise.
4614 * common/common-utils.h: Likewise.
4615 * guile/scm-string.c: Likewise.
4616 * guile/scm-utils.c: Likewise.
4617 * m32c-tdep.c: Likewise.
4619 2014-08-07 Gary Benson <gbenson@redhat.com>
4621 * common/common-defs.h: Include stdlib.h.
4622 * defs.h: Do not include stdlib.h.
4623 * addrmap.c: Likewise.
4624 * bcache.c: Likewise.
4625 * common/buffer.c: Likewise.
4626 * common/common-utils.c: Likewise.
4627 * cp-name-parser.y: Likewise.
4628 * go32-nat.c: Likewise.
4629 * mn10300-linux-tdep.c: Likewise.
4630 * nat/linux-osdata.c: Likewise.
4631 * tui/tui.c: Likewise.
4632 * windows-nat.c: Likewise.
4634 2014-08-07 Gary Benson <gbenson@redhat.com>
4636 * common/common-defs.h: Include stdio.h.
4637 * defs.h: Do not include stdio.h.
4638 * ada-lang.c: Likewise.
4639 * common/buffer.c: Likewise.
4640 * common/common-utils.c: Likewise.
4641 * cp-name-parser.y: Likewise.
4642 * gnu-nat.c: Likewise.
4643 * go32-nat.c: Likewise.
4644 * i386gnu-nat.c: Likewise.
4645 * proc-api.c: Likewise.
4646 * proc-events.c: Likewise.
4647 * proc-flags.c: Likewise.
4648 * proc-why.c: Likewise.
4649 * python/python-internal.h: Likewise.
4650 * target-memory.c: Likewise.
4651 * tui/tui-io.c: Likewise.
4652 * tui/tui.c: Likewise.
4654 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4656 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4657 (scan_dyntag_auxv): Same.
4659 2014-08-06 Yao Qi <yao@codesourcery.com>
4661 * amd64-linux-nat.c: Remove duplicated include
4663 * i386-linux-nat.c: Likewise.
4665 2014-08-06 Yao Qi <yao@codesourcery.com>
4667 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4668 operand" with "Special opcode" in comments.
4670 2014-08-05 Gary Benson <gbenson@redhat.com>
4672 * interps.c (initialize_interps): Remove prototype.
4673 (interpreter_initialized): Remove static global.
4674 (interp_add): Do not call initialize_interps.
4675 (initialize_interps): Remove function.
4677 2014-08-05 Gary Benson <gbenson@redhat.com>
4679 * utils.c (vwarning): Remove spurious va_end.
4681 2014-08-05 Alan Modra <amodra@gmail.com>
4683 * charset.c (convert_between_encodings): Cast result of obstack_base.
4684 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4685 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4686 (read_unwind_info): Use size_t for some locals.
4687 * jit.c (finalize_symtab): Likewise.
4688 * utils.c (hashtab_obstack_allocate): Likewise.
4689 * symmisc.c (print_objfile_statistics): Update format strings.
4691 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4693 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4694 (Changes in GDB 7.8): ... here.
4696 2014-08-04 Tom Tromey <tromey@redhat.com>
4698 * target.c (set_targetdebug): New function.
4699 (initialize_targets): Pass set_targetdebug when creating "set
4702 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4704 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4705 if detecting a variable-sized field that is not the last field.
4706 Fix struct type length computation.
4708 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4710 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4713 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4715 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4716 Remove "+ 8" offset in computation of CHAIN_VMA.
4718 2014-07-31 Doug Evans <dje@google.com>
4720 * inflow.c (child_terminal_inferior): Add comment.
4721 (child_terminal_ours_for_output): Add comment.
4722 (child_terminal_ours): Add comment.
4723 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4724 (linux_nat_terminal_ours): Add comment.
4726 2014-07-31 Gary Benson <gbenson@redhat.com>
4728 * common/btrace-common.h: Do not include defs.h or server.h.
4729 * nat/mips-linux-watch.h: Likewise.
4730 * gdb-dlfcn.h: Do not include defs.h.
4731 * tracefile.h: Likewise.
4733 2014-07-30 Roland McGrath <mcgrathr@google.com>
4735 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4737 2014-07-30 Tom Tromey <tromey@redhat.com>
4739 * bsd-kvm.c (bsd_kvm_open): Constify.
4740 * corelow.c (core_open): Constify.
4741 * ctf.c (ctf_open): Constify.
4742 * dbug-rom.c (dbug_open): Constify.
4743 * exec.c (exec_open): Constify.
4744 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4745 * microblaze-rom.c (picobug_open): Constify.
4746 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4748 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4749 * record-btrace.c (record_btrace_open): Constify.
4750 * record-full.c (record_full_core_open_1, record_full_open_1)
4751 (record_full_open): Constify.
4752 * remote-m32r-sdi.c (m32r_open): Constify.
4753 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4754 (rockhopper_open, lsi_open): Constify.
4755 * remote-sim.c (gdbsim_open): Constify.
4756 * remote.c (remote_open, extended_remote_open, remote_open_1):
4758 * target.h (struct target_ops) <to_open>: Make "arg" const.
4759 * tracefile-tfile.c (tfile_open): Constify.
4761 2014-07-30 Tom Tromey <tromey@redhat.com>
4763 * breakpoint.c (map_breakpoint_numbers): Update.
4764 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4765 (get_number_const): New function.
4766 (get_number): Rewrite using get_number_const.
4767 (init_number_or_range): Make "string" const.
4768 (number_is_in_list): Make "list" const.
4769 * cli/cli-utils.h (get_number_const): Declare.
4770 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4771 (init_number_or_range, number_is_in_list): Update.
4772 * printcmd.c (map_display_numbers): Update.
4773 * value.c (value_from_history_ref): Constify.
4774 * value.h (value_from_history_ref): Update.
4776 2014-07-30 Tom Tromey <tromey@redhat.com>
4778 * corefile.c (hook_type, call_extra_exec_file_hooks)
4779 (specify_exec_file_hook): Constify.
4780 * exec.c (exec_file_attach): Make "filename" const.
4781 * gdbcore.h (deprecated_exec_file_display_hook)
4782 (specify_exec_file_hook, exec_file_attach): Constify.
4783 * main.c (captured_main): Use catch_command_errors_const.
4785 2014-07-30 Tom Tromey <tromey@redhat.com>
4787 * target.c (open_target): New function.
4788 (add_target_with_completer, add_deprecated_target_alias): Use
4789 set_cmd_sfunc, set_cmd_context.
4790 (debug_to_open): Remove.
4791 (setup_target_debug): Update.
4793 2014-07-30 Yao Qi <yao@codesourcery.com>
4795 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4797 * parse.c (exp_iterate): Update comments.
4799 2014-07-30 Gary Benson <gbenson@redhat.com>
4801 * common/common-defs.h: New file.
4802 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4803 * defs.h: Include common-defs.h.
4804 Do not include config.h or build-gnulib/config.h.
4806 2014-07-30 Gary Benson <gbenson@redhat.com>
4808 * common/common-utils.h: Do not include config.h.
4809 * nat/linux-btrace.h: Likewise.
4811 2014-07-30 Gary Benson <gbenson@redhat.com>
4813 * btrace.c: Include defs.h.
4814 * common/ptid.c: Include defs.h or server.h as appropriate.
4815 * nat/mips-linux-watch.c: Likewise.
4817 2014-07-29 Tom Tromey <tromey@redhat.com>
4819 * target.c (target_is_pushed): Simplify.
4821 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4825 2014-07-29 Yao Qi <yao@codesourcery.com>
4828 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4830 2014-07-28 Doug Evans <xdje42@gmail.com>
4833 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4834 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4837 2014-07-28 Will Newton <will.newton@linaro.org>
4839 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4840 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4841 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4842 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4843 (THUMB2_EABI_SYSCALL): Likewise.
4844 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4846 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4847 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4849 2014-07-27 Doug Evans <xdje42@gmail.com>
4851 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4853 2014-07-27 Doug Evans <xdje42@gmail.com>
4855 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4857 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4858 Doug Evans <xdje42@gmail.com>
4861 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4862 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4863 * configure.ac: Try to use guild to compile an scm file, if it fails
4864 then disable guile support.
4865 * configure: Regenerate.
4866 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4868 (GUILE_COMPILED_FILES): New variable.
4869 (GUILE_FILES) Update.
4870 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4871 (stamp-guile): Compile scm files.
4872 * guile/guile.c (boot_guile_support): New function.
4873 (standard_throw_args_p): New function.
4874 (print_standard_throw_error, print_throw_error): New functions.
4875 (handle_boot_error): New function.
4876 (initialize_scheme_side): Rewrite to call boot_guile_support.
4877 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4878 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4880 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4881 Doug Evans <xdje42@gmail.com>
4884 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4885 * guile/lib/gdb/support.scm: New file.
4886 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4887 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4889 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4891 (%assert-type): Ditto, and renamed to assert-type.
4892 (%exception-print-style): Delete.
4894 2014-07-26 Doug Evans <xdje42@gmail.com>
4897 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4898 * configure: Regenerate.
4899 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4901 (PYTHON_FILES): New variable.
4902 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4903 (GUILE_FILES): New variable.
4904 (stamp-python, install-python, uninstall-python): Handle empty
4906 (stamp-guile, install-guile, uninstall-guile): Ditto.
4908 2014-07-26 Doug Evans <xdje42@gmail.com>
4911 * guile/lib/gdb.scm (pretty-printers): Export.
4912 (set-pretty-printers!): Export.
4913 * guile/lib/gdb/printing.scm (gdb module): Update.
4914 (prepend-pretty-printer!, append-pretty-printer!): Update.
4915 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4916 (pretty_printer_list_var): Delete.
4917 (pretty_printer_list): New static global.
4918 (gdbscm_pretty_printers): New function.
4919 (gdbscm_set_pretty_printers_x): New function.
4920 (ppscm_find_pretty_printer_from_gdb): Update.
4921 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4922 (gdbscm_initialize_pretty_printers): Update.
4924 2014-07-26 Doug Evans <xdje42@gmail.com>
4927 * configure.ac: Add check for header gc/gc.h.
4928 Add check for function setenv.
4929 * configure: Regenerate.
4930 * config.in: Regenerate.
4931 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4933 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4935 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4936 variation in gdbarch matching.
4938 2014-07-25 Tom Tromey <tromey@redhat.com>
4940 * exec.c (using_exec_ops): Remove.
4941 (exec_close_1): Update. Remove extraneous block, reindent.
4942 (add_target_sections): Use target_is_pushed.
4944 2014-07-25 Pedro Alves <palves@redhat.com>
4946 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4947 * monitor.c (monitor_create_inferior): Likewise.
4948 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4949 * remote-sim.c (gdbsim_create_inferior): Likewise.
4950 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4951 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4952 * windows-nat.c (do_initial_windows_stuff): Likewise.
4954 2014-07-25 Pedro Alves <palves@redhat.com>
4956 * NEWS: Mention signal passing and "signal" command changes.
4957 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4959 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4961 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4962 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4963 (jump_command): Adjust clear_proceed_status call.
4964 (signal_command): Warn if other thread that are resumed have
4965 signals that will be delivered. Adjust clear_proceed_status call.
4966 (until_next_command, finish_command)
4967 (proceed_after_attach_callback, attach_command_post_wait)
4968 (attach_command): Adjust clear_proceed_status call.
4969 * infrun.c (proceed_after_vfork_done): Likewise.
4970 (proceed_after_attach_callback): Adjust comment.
4971 (clear_proceed_status_thread): Clear stop_signal if not in pass
4973 (clear_proceed_status_callback): Delete.
4974 (clear_proceed_status): New 'step' parameter. Only clear the
4975 proceed status of threads the command being prepared is about to
4977 (proceed): If passed in an explicit signal, override stop_signal
4978 with it. Don't pass the last stop signal to the thread we're
4980 (init_wait_for_inferior): Adjust clear_proceed_status call.
4981 (switch_back_to_stepped_thread): Clear the signal if it should not
4983 * infrun.h (clear_proceed_status): New 'step' parameter.
4984 (user_visible_resume_ptid): Add comment.
4985 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4986 signal is in pass state.
4987 * remote.c (append_pending_thread_resumptions): Likewise.
4988 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4990 2014-07-25 Tom Tromey <tromey@redhat.com>
4992 * target.h (target_stopped_data_address)
4993 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4996 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4998 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5000 (avr_pointer_to_address): Likewise.
5002 2014-07-24 Tom Tromey <tromey@redhat.com>
5004 * monitor.c (compile_pattern): Update.
5005 * target.h (struct target_ops) <to_shortname, to_longname,
5008 2014-07-24 Tom Tromey <tromey@redhat.com>
5010 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5011 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5012 (add_info_alias, add_com): Make "doc" const.
5013 (print_doc_line): Make "str" const.
5014 (delete_cmd): Update.
5015 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5016 (print_doc_line): Update.
5017 * cli/cli-script.c (document_command): Update.
5018 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5019 (add_com, add_info, add_info_alias): Update.
5020 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5021 * python/py-cmd.c (cmdpy_destroyer): Update.
5023 2014-07-24 Tom Tromey <tromey@redhat.com>
5025 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5026 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5027 (help_cmd_list): Constify.
5028 (lookup_cmd): Update.
5029 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5031 (help_cmd_list, apropos_cmd): Update.
5032 * cli/cli-script.c (show_user): Update.
5033 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5034 * cli/cli-setshow.h (cmd_show_list): Update.
5035 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5036 (cmd_show_list): Update.
5037 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5038 * python/py-cmd.c (cmdpy_destroyer): Update.
5040 2014-07-24 Tom Tromey <tromey@redhat.com>
5042 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5043 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5045 * command.h (deprecate_cmd): Update.
5046 * maint.c (maintenance_do_deprecate): Add casts.
5048 2014-07-24 Tom Tromey <tromey@redhat.com>
5050 * cli/cli-decode.c (help_cmd): Make parameter "const".
5051 * cli/cli-decode.h (help_cmd): Update.
5053 2014-07-24 Tom Tromey <tromey@redhat.com>
5055 * stack.c (up_silently_base, down_silently_base): Make argument
5058 2014-07-24 Tom Tromey <tromey@redhat.com>
5060 * solib.c (solib_add): Make "pattern" const.
5061 * solib.h (solib_add): Update.
5063 2014-07-24 Tom Tromey <tromey@redhat.com>
5065 * remote.c (remote_serial_open, print_packet, putpkt)
5066 (putpkt_binary): Constify.
5067 * remote.h (putpkt): Update.
5069 2014-07-24 Tom Tromey <tromey@redhat.com>
5071 * monitor.c (monitor_open): Make "args" const.
5072 * monitor.h (monitor_open): Update.
5074 2014-07-24 Tom Tromey <tromey@redhat.com>
5076 * maint.c (match_bfd_flags): Make "string" const.
5077 (print_bfd_section_info): Remove casts.
5078 (print_objfile_section_info): Make "string" const.
5080 2014-07-24 Tom Tromey <tromey@redhat.com>
5082 * inf-child.c (inf_child_open_target): Make "arg" const.
5083 * inf-child.h (inf_child_open_target): Update.
5085 2014-07-24 Tom Tromey <tromey@redhat.com>
5087 * environ.c (unset_in_environ): Make "var" const.
5088 * environ.h (unset_in_environ): Update.
5090 2014-07-24 Tom Tromey <tromey@redhat.com>
5092 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5094 (scan_filename_with_cleanup): Likewise.
5095 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5096 Make arguments const.
5097 (restore_command): Update.
5099 2014-07-24 Pedro Alves <palves@redhat.com>
5101 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5103 2014-07-24 Tom Tromey <tromey@redhat.com>
5104 Gary Benson <gbenson@redhat.com>
5106 * nat/linux-ptrace.c (additional_flags): New global.
5107 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5108 additional_flags; don't check GDBSERVER.
5109 (linux_ptrace_set_additional_flags): New function.
5110 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5112 * linux-nat.c (_initialize_linux_nat): Call
5113 linux_ptrace_set_additional_flags.
5115 2014-07-24 Tom Tromey <tromey@redhat.com>
5117 * make-target-delegates (munge_type, write_debugmethod): New
5119 (debug_names): New global.
5120 ($TARGET_DEBUG_PRINTER): New global.
5121 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5123 Write debug methods. Generate init_debug_target.
5124 * target-debug.h: New file.
5125 * target-delegates.c: Rebuild.
5126 * target.c: Include target-debug.h.
5127 (debug_target): Hoist definition.
5128 (target_kill, target_get_section_table, target_memory_map)
5129 (target_flash_erase, target_flash_done, target_detach)
5130 (target_disconnect, target_wait, target_resume)
5131 (target_pass_signals, target_program_signals, target_follow_fork)
5132 (target_mourn_inferior, target_search_memory)
5133 (target_thread_address_space, target_close)
5134 (target_find_new_threads, target_core_of_thread)
5135 (target_verify_memory, target_insert_mask_watchpoint)
5136 (target_remove_mask_watchpoint): Remove targetdebug code.
5137 (debug_to_post_attach, debug_to_prepare_to_store)
5138 (debug_to_files_info, debug_to_insert_breakpoint)
5139 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5140 (debug_to_region_ok_for_hw_watchpoint)
5141 (debug_to_can_accel_watchpoint_condition)
5142 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5143 (debug_to_watchpoint_addr_within_range)
5144 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5145 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5146 (debug_to_terminal_init, debug_to_terminal_inferior)
5147 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5148 (debug_to_terminal_save_ours, debug_to_terminal_info)
5149 (debug_to_load, debug_to_post_startup_inferior)
5150 (debug_to_insert_fork_catchpoint)
5151 (debug_to_remove_fork_catchpoint)
5152 (debug_to_insert_vfork_catchpoint)
5153 (debug_to_remove_vfork_catchpoint)
5154 (debug_to_insert_exec_catchpoint)
5155 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5156 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5157 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5158 (setup_target_debug): Call init_debug_target.
5159 * target.h (TARGET_DEBUG_PRINTER): New macro.
5160 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5161 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5163 2014-07-24 Gary Benson <gbenson@redhat.com>
5165 * exceptions.h (throw_vfatal): Renamed to...
5166 (throw_vquit): New declaration.
5167 (throw_quit): Likewise.
5168 * exceptions.c (throw_vfatal): Renamed to...
5169 (throw_vquit): New function.
5170 (throw_quit): Likewise.
5171 (throw_error): Call throw_verror rather than throw_it.
5172 * utils.h (vfatal): Removed.
5174 * utils.c (vfatal): Removed.
5176 (internal_verror): Replaced call to fatal with call to throw_quit.
5177 (quit): Replaced calls to fatal with calls to throw_quit.
5179 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5181 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5184 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5186 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5187 less than zero in conditional expression.
5189 2014-07-23 Tom Tromey <tromey@redhat.com>
5191 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5192 ($INTRO_PART): Don't match whitespace.
5193 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5195 ($METHOD): Add $METHOD_TRAILER.
5197 (scan_target_h): New sub.
5198 Change main loop not to collect state.
5199 * target-delegates.c: Rebuild.
5201 2014-07-23 Gary Benson <gbenson@redhat.com>
5203 * cp-support.c (gdb_demangle): Fix build on systems without
5206 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5208 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5209 for reference entry value target data value.
5211 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5213 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5214 value_available_contents_eq.
5216 2014-07-22 Pedro Alves <palves@redhat.com>
5218 * value.c (allocate_optimized_out_value): Don't mark value as
5221 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5223 * MAINTAINERS (Write After Approval): Update my email address.
5225 2014-07-20 Doug Evans <dje@google.com>
5228 * remote.c (putpkt_binary): Add text to error message.
5230 2014-07-20 Yao Qi <yao@codesourcery.com>
5232 * eval.c: Remove "Chill" from comments.
5233 * gdbtypes.h: Likewise.
5234 * symtab.h: Likewise.
5236 2014-07-20 Yao Qi <yao@codesourcery.com>
5238 * std-operator.def: Update comments to TERNOP_SLICE.
5240 2014-07-20 Yao Qi <yao@codesourcery.com>
5242 * std-operator.def: Remove BINOP_RANGE.
5243 * breakpoint.c (watchpoint_exp_is_const): Update.
5244 * expprint.c (dump_subexp_body_standard): Likewise.
5245 * eval.c (init_array_element): Remove dead code.
5246 (evaluate_subexp_standard): Likewise.
5248 2014-07-20 Yao Qi <yao@codesourcery.com>
5250 * std-operator.def: Remove BINOP_IN.
5251 * breakpoint.c (watchpoint_exp_is_const): Update.
5252 * eval.c (evaluate_subexp_standard): Likewise.
5253 * expprint.c (dump_subexp_body_standard): Likewise.
5255 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5257 * microblaze-tdep.c (microblaze_register_names): Add
5258 the rshr and rslr register names.
5259 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5260 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5261 Use of tdesc_numbered_register. Use of
5262 microblaze_register_g_packet_guesses. Use of
5263 tdesc_use_registers. Use of set_gdbarch_register_type.
5264 (microblaze_register_g_packet_guesses): New.
5265 * microblaze-tdep.h (microblaze_reg_num): Add
5266 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5267 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5268 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5269 * features/microblaze-core.xml: New file.
5270 * features/microblaze-stack-protect.xml: New file.
5271 * features/microblaze-with-stack-protect.c: New file.
5272 * features/microblaze-with-stack-protect.xml: New file.
5273 * features/microblaze.xml: New file.
5274 * features/microblaze.c: New file.
5275 * features/Makefile (microblaze-with-stack-protect): Add
5276 microblaze-with-stack-protect microblaze and microblaze-expedite.
5277 * regformats/microblaze-with-stack-protect.dat: New file.
5278 * regformats/microblaze.dat: New file.
5279 * doc/gdb.texinfo (MicroBlaze Features): Added.
5281 2014-07-18 Tom Tromey <tromey@redhat.com>
5283 * exec.c (exec_ops): Now static.
5284 * exec.h (exec_ops): Don't declare.
5286 2014-07-18 Tom Tromey <tromey@redhat.com>
5288 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5289 to find_target_beneath.
5290 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5291 find_target_beneath.
5292 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5294 2014-07-18 Tom Tromey <tromey@redhat.com>
5297 * utils.c (quit): Use target_supports_terminal_ours.
5298 * target.h (target_supports_terminal_ours): Declare.
5299 * target.c (target_supports_delete_record): Don't check
5300 to_delete_record against NULL.
5301 (target_supports_terminal_ours): New function.
5303 2014-07-18 Tom Tromey <tromey@redhat.com>
5306 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5307 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5308 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5309 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5310 * windows-nat.c (windows_xfer_partial): Always delegate.
5311 * record-btrace.c (record_btrace_xfer_partial): Simplify
5313 (record_btrace_fetch_registers, record_btrace_store_registers)
5314 (record_btrace_prepare_to_store, record_btrace_resume)
5315 (record_btrace_wait, record_btrace_find_new_threads)
5316 (record_btrace_thread_alive): Likewise.
5317 * procfs.c (procfs_xfer_partial): Always delegate.
5318 * corelow.c (core_xfer_partial): Always delegate.
5319 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5321 2014-07-18 Tom Tromey <tromey@redhat.com>
5323 * exec.c (exec_make_note_section): Move earlier.
5325 2014-07-17 Doug Evans <dje@google.com>
5328 * maint.c (count_symtabs_and_blocks): Handle NULL
5329 current_program_space.
5330 (report_command_stats): Check global enabled flag in addition to
5331 recorded enabled flag.
5332 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5334 2014-07-16 Pedro Alves <palves@redhat.com>
5336 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5338 2014-07-16 Tom Tromey <tromey@redhat.com>
5340 * target.h (struct target_ops) <to_delete_record>: Reformat
5343 2014-07-16 Tom Tromey <tromey@redhat.com>
5345 * target-delegates.c: Rebuild.
5347 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5349 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5350 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5351 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5352 (avr_pointer_to_address): Likewise.
5353 (avr_address_class_type_flags): New function.
5354 (avr_address_class_type_flags_to_name): Likewise.
5355 (avr_address_class_name_to_type_flags): Likewise.
5356 (avr_gdbarch_init): Set address_class_type_flags,
5357 address_class_type_flags_to_name and
5358 address_class_name_to_type_flags.
5360 2014-07-15 Pedro Alves <palves@redhat.com>
5362 * linux-nat.c (kill_callback): Save errno and work with saved
5365 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5367 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5369 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5371 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5372 breakpoint support correctly.
5374 2014-07-14 Pedro Alves <palves@redhat.com>
5376 * utils.c (prompt_for_continue): Call target_terminal_ours.
5378 2014-07-14 Pedro Alves <palves@redhat.com>
5380 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5381 catch_errors. Don't re-enable stdin or notify observers where,
5383 (fetch_inferior_event_wrapper): Delete.
5385 2014-07-14 Pedro Alves <palves@redhat.com>
5388 * top.c: Include "inf-loop.h".
5389 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5391 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5393 (gdb_readline_wrapper): Store whether the target is async, and
5396 2014-07-14 Pedro Alves <palves@redhat.com>
5399 * top.c (gdb_readline_wrapper_line): Tweak comment.
5400 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5401 the input handler callback.
5403 2014-07-14 Pedro Alves <palves@redhat.com>
5406 * main.c: Include event-top.h.
5407 (handle_command_errors): New function.
5408 (catch_command_errors, catch_command_errors_const): Use it.
5410 2014-07-14 Pedro Alves <palves@redhat.com>
5412 * exceptions.c (catch_command_errors, catch_command_errors_const):
5414 * exceptions.h (catch_command_errors_ftype)
5415 (catch_command_errors_const_ftype): Moved to main.c.
5416 (catch_command_errors, catch_command_errors_const): Delete
5418 * main.c (catch_command_errors_ftype)
5419 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5420 (catch_command_errors, catch_command_errors_const)): Moved here
5421 from exceptions.c and make static.
5423 2014-07-14 Pedro Alves <palves@redhat.com>
5425 * exceptions.c (print_any_exception): Delete.
5426 (catch_exceptions_with_msg): Use exception_print instead of
5427 print_any_exception.
5428 (catch_errors): Use exception_fprintf instead of
5429 print_any_exception.
5430 (catch_command_errors, catch_command_errors_const): Use
5431 exception_print instead of print_any_exception.
5433 2014-07-14 Pedro Alves <palves@redhat.com>
5435 * infcall.c (run_inferior_call): Set 'sync_execution' while
5436 running the inferior call.
5438 2014-07-14 Pedro Alves <palves@redhat.com>
5440 * value.c (value_contents_equal): Delete function.
5441 * value.h (value_contents_equal): Delete declaration.
5443 2014-07-14 Tom Tromey <tromey@redhat.com>
5446 * gdbtypes.c (is_dynamic_type_internal): New function, from
5448 (is_dynamic_type): Rewrite.
5449 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5450 (resolve_dynamic_struct): Likewise.
5451 (resolve_dynamic_type_internal): New function, from
5452 resolve_dynamic_type.
5453 (resolve_dynamic_type): Rewrite.
5455 2014-07-14 Tom Tromey <tromey@redhat.com>
5457 * target.c (target_require_runnable): Also check record_stratum.
5460 2014-07-11 Yao Qi <yao@codesourcery.com>
5462 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5463 thumb_instruction_restores_sp return true.
5465 2014-07-11 Yao Qi <yao@codesourcery.com>
5467 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5468 (thumb_in_function_epilogue_p): Call
5469 thumb_instruction_restores_sp.
5471 2014-07-11 Yao Qi <yao@codesourcery.com>
5473 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5475 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5477 2014-07-11 Gary Benson <gbenson@redhat.com>
5479 * amd64-linux-nat.c (gdbcore.h): Remove include.
5480 (regset.h): Likewise.
5481 (nat/linux-btrace.h): Likewise.
5482 (btrace.h): Likewise.
5483 (gdb_assert.h): Likewise.
5484 (string.h): Likewise.
5485 (sys/uio.h): Likewise.
5486 (sys/debugreg.h): Likewise.
5487 (sys/syscall.h): Likewise.
5488 (sys/procfs.h): Likewise.
5489 (sys/user.h): Likewise.
5490 (asm/ptrace.h): Likewise.
5491 (i386-nat.h): Likewise.
5492 * i386-linux-nat.c (i386-nat.h): Likewise.
5493 (regset.h): Likewise.
5494 (target.h): Likewise.
5495 (linux-nat.h): Likewise.
5496 (nat/linux-btrace.h): Likewise.
5497 (btrace.h): Likewise.
5498 (gdb_assert.h): Likewise.
5499 (string.h): Likewise.
5500 (sys/uio.h): Likewise.
5501 (sys/user.h): Likewise.
5502 (sys/procfs.h): Likewise.
5503 (sys/reg.h): Likewise.
5504 (sys/debugreg.h): Likewise.
5505 (ORIG_EAX): Remove definition.
5507 2014-07-11 Gary Benson <gbenson@redhat.com>
5509 * i386-linux-nat.h: New file.
5510 * x86-linux-nat.h: Likewise.
5511 * x86-linux-nat.c: Likewise.
5512 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5513 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5514 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5515 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5516 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5517 (PTRACE_SETREGSET): Likewise.
5518 (arch_lwp_info): Now in x86-linux-nat.c.
5519 (have_ptrace_getregset): Now in x86-linux-nat.h.
5520 (x86_linux_dr_get): Now in x86-linux-nat.c.
5521 (x86_linux_dr_set): Likewise.
5522 (x86_linux_dr_get_addr): Likewise.
5523 (x86_linux_dr_get_control): Likewise.
5524 (x86_linux_dr_get_status): Likewise.
5525 (update_debug_registers_callback): Likewise.
5526 (x86_linux_dr_set_control): Likewise.
5527 (x86_linux_dr_set_addr): Likewise.
5528 (x86_linux_prepare_to_resume): Likewise.
5529 (x86_linux_new_thread): Likewise.
5530 (x86_linux_new_fork): Likewise.
5531 (x86_linux_get_thread_area): Likewise.
5532 (super_post_startup_inferior): Likewise.
5533 (x86_linux_child_post_startup_inferior): Likewise.
5534 (AMD64_LINUX_USER64_CS): Likewise.
5535 (AMD64_LINUX_X32_DS): Likewise.
5536 (x86_linux_read_description): Likewise.
5537 (x86_linux_enable_btrace): Likewise.
5538 (x86_linux_disable_btrace): Likewise.
5539 (x86_linux_teardown_btrace): Likewise.
5540 (x86_linux_read_btrace): Likewise.
5541 (x86_linux_create_target): Likewise.
5542 (x86_linux_add_target): Likewise.
5543 * i386-linux-nat.c (x86-linux-nat.h): New include.
5544 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5545 (PTRACE_SETREGSET): Likewise.
5546 (arch_lwp_info): Now in x86-linux-nat.c.
5547 (have_ptrace_getregset): Now in x86-linux-nat.h.
5548 (x86_linux_dr_get): Now in x86-linux-nat.c.
5549 (x86_linux_dr_set): Likewise.
5550 (x86_linux_dr_get_addr): Likewise.
5551 (x86_linux_dr_get_control): Likewise.
5552 (x86_linux_dr_get_status): Likewise.
5553 (update_debug_registers_callback): Likewise.
5554 (x86_linux_dr_set_control): Likewise.
5555 (x86_linux_dr_set_addr): Likewise.
5556 (x86_linux_prepare_to_resume): Likewise.
5557 (x86_linux_new_thread): Likewise.
5558 (x86_linux_new_fork): Likewise.
5559 (x86_linux_get_thread_area): Likewise.
5560 (super_post_startup_inferior): Likewise.
5561 (x86_linux_child_post_startup_inferior): Likewise.
5562 (AMD64_LINUX_USER64_CS): Likewise.
5563 (AMD64_LINUX_X32_DS): Likewise.
5564 (x86_linux_read_description): Likewise.
5565 (x86_linux_enable_btrace): Likewise.
5566 (x86_linux_disable_btrace): Likewise.
5567 (x86_linux_teardown_btrace): Likewise.
5568 (x86_linux_read_btrace): Likewise.
5569 (x86_linux_create_target): Likewise.
5570 (x86_linux_add_target): Likewise.
5572 2014-07-11 Gary Benson <gbenson@redhat.com>
5574 * amd64-linux-nat.c: Comment and whitespace changes.
5575 * i386-linux-nat.c: Comment and whitespace changes.
5577 2014-07-11 Gary Benson <gbenson@redhat.com>
5579 * amd64-linux-nat.c (x86_linux_create_target): New function.
5580 (x86_linux_add_target): Likewise.
5581 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5582 * i386-linux-nat.c (x86_linux_create_target): New function.
5583 (x86_linux_add_target): Likewise.
5584 (_initialize_i386_linux_nat): Delegate to the above new functions.
5586 2014-07-11 Gary Benson <gbenson@redhat.com>
5588 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5589 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5590 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5591 (ps_get_thread_area): Delegate to the above.
5593 2014-07-11 Gary Benson <gbenson@redhat.com>
5595 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5596 x86_linux_read_description. All uses updated. amd64-specific
5597 code conditionalized. Conditionalized i386-specific code added.
5598 Redundant cast removed.
5599 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5600 x86_linux_read_description. All uses updated. i386-specific
5601 code conditionalized. Conditionalized amd64-specific code added.
5602 One sizeof replaced with the actual type it is describing.
5604 2014-07-11 Gary Benson <gbenson@redhat.com>
5606 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5607 x86_linux_dr_get. All uses updated.
5608 (amd64_linux_dr_set): Renamed to
5609 x86_linux_dr_set. All uses updated.
5610 (amd64_linux_dr_get_addr): Renamed to
5611 x86_linux_dr_get_addr. All uses updated.
5612 (amd64_linux_dr_get_control): Renamed to
5613 x86_linux_dr_get_control. All uses updated.
5614 (amd64_linux_dr_get_status): Renamed to
5615 x86_linux_dr_get_status. All uses updated.
5616 (amd64_linux_dr_set_control): Renamed to
5617 x86_linux_dr_set_control. All uses updated.
5618 (amd64_linux_dr_set_addr): Renamed to
5619 x86_linux_dr_set_addr. All uses updated.
5620 (amd64_linux_prepare_to_resume): Renamed to
5621 x86_linux_prepare_to_resume. All uses updated.
5622 (amd64_linux_new_thread): Renamed to
5623 x86_linux_new_thread. All uses updated.
5624 (amd64_linux_new_fork): Renamed to
5625 x86_linux_new_fork. All uses updated.
5626 (amd64_linux_child_post_startup_inferior): Renamed to
5627 x86_linux_child_post_startup_inferior. All uses updated.
5628 (amd64_linux_enable_btrace): Renamed to
5629 x86_linux_enable_btrace. All uses updated.
5630 (amd64_linux_disable_btrace): Renamed to
5631 x86_linux_disable_btrace. All uses updated.
5632 (amd64_linux_teardown_btrace): Renamed to
5633 x86_linux_teardown_btrace. All uses updated.
5634 (amd64_linux_read_btrace): Renamed to
5635 x86_linux_read_btrace. All uses updated.
5636 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5637 x86_linux_dr_get. All uses updated.
5638 (i386_linux_dr_set): Renamed to
5639 x86_linux_dr_set. All uses updated.
5640 (i386_linux_dr_get_addr): Renamed to
5641 x86_linux_dr_get_addr. All uses updated.
5642 (i386_linux_dr_get_control): Renamed to
5643 x86_linux_dr_get_control. All uses updated.
5644 (i386_linux_dr_get_status): Renamed to
5645 x86_linux_dr_get_status. All uses updated.
5646 (i386_linux_dr_set_control): Renamed to
5647 x86_linux_dr_set_control. All uses updated.
5648 (i386_linux_dr_set_addr): Renamed to
5649 x86_linux_dr_set_addr. All uses updated.
5650 (i386_linux_prepare_to_resume): Renamed to
5651 x86_linux_prepare_to_resume. All uses updated.
5652 (i386_linux_new_thread): Renamed to
5653 x86_linux_new_thread. All uses updated.
5654 (i386_linux_new_fork): Renamed to
5655 x86_linux_new_fork. All uses updated.
5656 (i386_linux_child_post_startup_inferior): Renamed to
5657 x86_linux_child_post_startup_inferior. All uses updated.
5658 (i386_linux_enable_btrace): Renamed to
5659 x86_linux_enable_btrace. All uses updated.
5660 (i386_linux_disable_btrace): Renamed to
5661 x86_linux_disable_btrace. All uses updated.
5662 (i386_linux_teardown_btrace): Renamed to
5663 x86_linux_teardown_btrace. All uses updated.
5664 (i386_linux_read_btrace): Renamed to
5665 x86_linux_read_btrace. All uses updated.
5667 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5669 * remote.c (extended_remote_post_attach): New function.
5670 (init_extended_remote_ops): Install it as to_post_attach method.
5672 2014-07-09 Pedro Alves <palves@redhat.com>
5674 * infcmd.c (attach_command_post_wait): Don't call
5675 target_terminal_inferior here.
5676 (attach_command): Call it here instead.
5678 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5680 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5682 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5683 from varobj.c, with additional checks.
5684 (c_varobj_ops): Fill in is_path_expr_parent field.
5685 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5686 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5688 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5690 (varobj_default_is_path_expr_parent): New function.
5691 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5692 (varobj_default_is_path_expr_parent): Declare new function.
5694 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5696 * infcmd.c (finish_backward): Turn internal error into normal error.
5698 2014-07-07 Pedro Alves <palves@redhat.com>
5701 * remote.c (async_handle_remote_sigint)
5702 (async_handle_remote_sigint_twice): Call
5703 gdb_call_async_signal_handler instead of
5704 mark_async_signal_handler.
5706 2014-07-07 Tom Tromey <tromey@redhat.com>
5708 * target-delegates.c: Rebuild.
5709 * target.c (target_info_record): Remove.
5710 * record.c (info_record_command): Unconditionally call
5712 * target.h (struct target_ops) <to_info_record>: Use
5713 TARGET_DEFAULT_IGNORE.
5714 (target_info_record): Remove.
5716 2014-07-07 Tom Tromey <tromey@redhat.com>
5718 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5719 TARGET_DEFAULT_NORETURN.
5720 * target.c (generic_tls_error): New function.
5721 (target_translate_tls_address): Don't search target stack.
5722 * target-delegates.c: Rebuild.
5723 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5725 * linux-thread-db.c (thread_db_get_thread_local_address):
5726 Unconditionally call beneath target.
5728 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5730 * cli/cli-logging.c (pop_output_files): Assign targerr to
5733 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5735 * MAINTAINERS (Write After Approval): Update my email address.
5737 2014-07-02 Gary Benson <gbenson@redhat.com>
5739 * proc-service.c (ps_xfer_memory): Update comment.
5740 (ps_pstop): Remove unused function.
5741 (ps_pcontinue): Likewise.
5742 (ps_lstop): Likewise.
5743 (ps_lcontinue): Likewise.
5744 (ps_lgetxregsize): Likewise.
5745 (ps_lgetxregs): Likewise.
5746 (ps_lsetxregs): Likewise.
5747 (ps_plog): Likewise.
5748 (ps_ptread): Likewise.
5749 (ps_ptwrite): Likewise.
5751 2014-07-01 Mark Wielaard <mjw@redhat.com>
5753 * dwarf2read.c (add_array_cv_type): New function.
5754 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5755 (read_tag_volatile_type): Likewise.
5757 2014-07-01 Tom Tromey <tromey@redhat.com>
5759 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5760 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5761 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5762 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5763 * command.h (cmd_cfunc_ftype): Move earlier.
5764 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5765 (add_com, add_info): Use cmd_cfunc_ftype.
5767 2014-06-30 Tom Tromey <tromey@redhat.com>
5769 * symtab.c (operator_chars): Make parameters and return type
5771 (file_matches): Make "files" const.
5772 (struct search_symbols_data) <files>: Now const.
5773 (search_symbols): Make "regexp" and "files" parameters const.
5775 (symtab_symbol_info): Remove cast.
5776 (rbreak_command): Update.
5777 * symtab.h (search_symbols): Update.
5779 2014-06-27 Yao Qi <yao@codesourcery.com>
5781 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5782 Change parameter type to 'struct thread_info *'. Caller
5784 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5786 * dummy-frame.c (struct dummy_frame_id): New.
5787 (dummy_frame_id_eq): New function.
5788 (struct dummy_frame) <id>: Change its type to 'struct
5790 (dummy_frame_push): Add parameter ptid and save it in
5792 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5794 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5796 (lookup_dummy_frame): Change parameter type to 'struct
5797 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5798 instead of frame_id_eq.
5799 (dummy_frame_pop): Add parameter ptid. Callers updated.
5800 Update comments. Compose dummy_frame_id and pass it to
5802 (dummy_frame_discard): Add parameter ptid.
5803 (dummy_frame_sniffer): Compose dummy_frame_id and call
5804 dummy_frame_id_eq instead of frame_id_eq.
5805 (fprint_dummy_frames): Print ptid.
5806 * dummy-frame.h: Remove comments.
5807 (dummy_frame_push): Add ptid in declaration.
5808 (dummy_frame_pop, dummy_frame_discard): Likewise.
5810 2014-06-26 Tom Tromey <tromey@redhat.com>
5812 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5813 * command.h (error_no_arg): Update.
5815 2014-06-26 Tom Tromey <tromey@redhat.com>
5817 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5818 (do_show_command): Make "arg" const.
5819 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5821 2014-06-26 Tom Tromey <tromey@redhat.com>
5823 * record-full.c (record_full_get_bookmark): Make "args" const.
5824 (record_full_goto_bookmark): Make "raw_bookmark" const.
5825 * record.c (record_goto): New function.
5826 (cmd_record_goto): Use it. Now static.
5827 * record.h (record_goto): Declare.
5828 (cmd_record_goto): Remove declaration.
5829 * target-delegates.c: Rebuild.
5830 * target.h (struct target_ops) <to_get_bookmark,
5831 to_goto_bookmark>: Make parameter const.
5833 2014-06-26 Tom Tromey <tromey@redhat.com>
5835 * defs.h (generic_load): Update.
5836 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5837 * monitor.c (monitor_load): Make "args" const.
5838 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5839 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5841 (mips_load): Make "file" const.
5842 * remote-sim.c (gdbsim_load): Make "args" const.
5843 * remote.c (remote_load): Make "name" const.
5844 * symfile.c (generic_load): Make "args" const.
5845 * target-delegates.c: Rebuild.
5846 * target.c (target_load): Make "arg" const.
5847 (debug_to_load): Make "args" const.
5848 * target.h (struct target_ops) <to_load>: Make parameter const.
5849 (target_load): Update.
5851 2014-06-26 Tom Tromey <tromey@redhat.com>
5854 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5855 (dwarf2_physname, read_partial_die)
5856 (guess_partial_die_structure_name, fixup_partial_die)
5857 (guess_full_die_structure_name, anonymous_struct_prefix)
5858 (dwarf2_name): Use per-BFD obstack.
5860 2014-06-26 Yao Qi <yao@codesourcery.com>
5862 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5863 dummyframe and this_id into inner block below.
5865 2014-06-26 Yao Qi <yao@codesourcery.com>
5867 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5868 with "signal_pass[0]" in the initialization of signal_pass.
5870 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5872 * record-btrace.c (record_btrace_generating_corefile)
5873 (record_btrace_prepare_to_generate_core)
5874 (record_btrace_done_generating_core): New.
5875 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5876 (record_btrace_store_registers, record_btrace_prepare_to_store):
5877 Forward request when generating a core file.
5878 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5879 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5880 to_done_generating_core.
5882 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5884 * target.h (target_ops) <to_prepare_to_generate_core>
5885 <to_done_generating_core>: New.
5886 (target_prepare_to_generate_core, target_done_generating_core): New.
5887 * target.c (target_prepare_to_generate_core)
5888 (target_done_generating_core): New.
5889 * target-delegates.c: Regenerate.
5890 * gcore.c: (write_gcore_file): Rename to ...
5891 (write_gcore_file_1): ...this.
5892 (write_gcore_file): Call target_prepare_to_generate_core
5893 and target_done_generating_core.
5895 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5897 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5898 * gcore.c (write_gcore_file): Free memory returned from
5899 make_corefile_notes.
5900 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5901 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5903 2014-06-24 Yao Qi <yao@codesourcery.com>
5905 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5906 (arm_linux_init_abi): Set skip_trampoline_code with
5907 gdbarch_skip_trampoline_code instead of
5908 find_solib_trampoline_target.
5910 2014-06-24 Yao Qi <yao@codesourcery.com>
5912 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5913 arm_skip_bx_reg returns non-zero.
5915 2014-06-24 Yao Qi <yao@codesourcery.com>
5917 * arm-tdep.c (arm_skip_bx_reg): New function.
5918 (arm_skip_stub): Call arm_skip_bx_reg.
5920 2014-06-23 Don Breazeal <donb@codesourcery.com>
5922 * MAINTAINERS: Add myself as write-after-approval maintainer.
5924 2014-06-23 Pedro Alves <palves@redhat.com>
5926 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5927 DR_CONTROL before setting DR0..DR3.
5928 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5929 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5930 bits of DR_CONTROL related to the debug register slot being
5931 disabled. If all slots are vacant, clear local slowdown as well,
5932 and assert DR_CONTROL is 0.
5934 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5936 * python/lib/gdb/command/xmethods.py
5937 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5938 current progspace only if the string "progspace" matches LOCUS_RE.
5940 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5942 Fix --with-system-readline with readline-6.3 patch 5.
5943 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5944 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5947 2014-06-20 Tom Tromey <tromey@redhat.com>
5949 * dwarf2read.c (dw2_get_real_path): Use correct type in
5951 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5953 2014-06-20 Gary Benson <gbenson@redhat.com>
5955 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5956 * common/glibc_thread_db.h: Likewise.
5957 * common/i386-cpuid.h: Likewise.
5958 * common/i386-gcc-cpuid.h: Likewise.
5959 * common/linux-btrace.h: Likewise.
5960 * common/linux-osdata.h: Likewise.
5961 * common/linux-procfs.h: Likewise.
5962 * common/linux-ptrace.h: Likewise.
5963 * common/mips-linux-watch.h: Likewise.
5964 * common/linux-btrace.c: Moved to nat.
5965 * common/linux-osdata.c: Likewise.
5966 * common/linux-procfs.c: Likewise.
5967 * common/linux-ptrace.c: Likewise.
5968 * common/mips-linux-watch.c: Likewise.
5969 * nat/gdb_thread_db.h: Moved from common.
5970 * nat/glibc_thread_db.h: Likewise.
5971 * nat/i386-cpuid.h: Likewise.
5972 * nat/i386-gcc-cpuid.h: Likewise.
5973 * nat/linux-btrace.c: Likewise.
5974 * nat/linux-btrace.h: Likewise.
5975 * nat/linux-osdata.c: Likewise.
5976 * nat/linux-osdata.h: Likewise.
5977 * nat/linux-procfs.c: Likewise.
5978 * nat/linux-procfs.h: Likewise.
5979 * nat/linux-ptrace.c: Likewise.
5980 * nat/linux-ptrace.h: Likewise.
5981 * nat/mips-linux-watch.c: Likewise.
5982 * nat/mips-linux-watch.h: Likewise.
5983 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5984 (object file files): Reordered.
5985 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5986 of glibc_thread_db.h.
5988 2014-06-20 Gary Benson <gbenson@redhat.com>
5990 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5991 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5992 (i386_dr_low): Likewise.
5993 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5994 (i386_dr_low_set_addr): Likewise.
5995 (i386_dr_low_get_addr): Likewise.
5996 (i386_dr_low_can_set_control): Likewise.
5997 (i386_dr_low_set_control): Likewise.
5998 (i386_dr_low_get_control): Likewise.
5999 (i386_dr_low_get_status): Likewise.
6000 (i386_get_debug_register_length): Likewise.
6001 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6002 (i386_dr_low): Likewise.
6003 * nat/i386-dregs.c (i386-low.h): Remove include.
6004 (i386-nat.h): Likewise.
6005 (nat/i386-dregs.h): New include.
6006 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6007 (i386_dr_low_set_addr): Likewise.
6008 (i386_dr_low_get_addr): Likewise.
6009 (i386_dr_low_can_set_control): Likewise.
6010 (i386_dr_low_set_control): Likewise.
6011 (i386_dr_low_get_control): Likewise.
6012 (i386_dr_low_get_status): Likewise.
6013 (i386_get_debug_register_length): Likewise.
6014 (debug_hw_points): Likewise.
6016 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6018 * Makefile.in (SFILES): Add d-exp.y.
6019 (YYFILES): Add d-exp.c.
6020 (YYOBJ): Add d-exp.o.
6021 (local-maintainer-clean): Delete d-exp.c.
6022 * d-exp.y: New file.
6023 * d-lang.h (d_parse): New declaration.
6024 (d_error): New declaration.
6025 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6026 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6027 PREC_ORDER operators.
6028 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6030 2014-06-19 Yao Qi <yao@codesourcery.com>
6032 * gdbthread.h (any_running): Remove the declaration.
6033 * thread.c (any_running): Remove.
6035 2014-06-19 Yao Qi <yao@codesourcery.com>
6037 * gdbthread.h (struct thread_info) <state>: Change its type to
6038 'enum thread_state'. Update comments.
6040 2014-06-19 Pedro Alves <palves@redhat.com>
6042 * gdbthread.h (ALL_THREADS): Delete.
6043 (ALL_NON_EXITED_THREADS): New macro.
6044 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6045 instead of ALL_THREADS.
6046 * infrun.c (find_thread_needs_step_over)
6047 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6048 instead of ALL_THREADS.
6049 * record-btrace.c (record_btrace_open)
6050 (record_btrace_stop_recording, record_btrace_close)
6051 (record_btrace_is_replaying, record_btrace_resume)
6052 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6053 * remote.c (append_pending_thread_resumptions): Likewise.
6054 * thread.c (thread_apply_all_command): Likewise.
6056 2014-06-19 Gary Benson <gbenson@redhat.com>
6058 * i386-nat.c (i386_stopped_by_watchpoint):
6059 Use i386_dr_stopped_by_watchpoint.
6060 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6061 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6063 2014-06-19 Gary Benson <gbenson@redhat.com>
6065 * nat/i386-dregs.c: New file.
6066 * Makefile.in (i386-dregs.o): New rule.
6067 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6068 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6069 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6070 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6071 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6072 * config/i386/go32.mh (NATDEPFILES): Likewise.
6073 * config/i386/linux.mh (NATDEPFILES): Likewise.
6074 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6075 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6076 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6077 * i386-nat.h (debug_hw_points): New declaration.
6078 * i386-nat.c (breakpoint.h): Remove include.
6079 (command.h): Likewise.
6080 (target.h): Likewise.
6081 (gdb_assert.h): Likewise.
6082 (debug_hw_points): Made nonstatic.
6083 (debug_printf): Now in i386-dregs.c.
6084 (TARGET_HAS_DR_LEN_8): Likewise.
6085 (DR_CONTROL_SHIFT): Likewise.
6086 (DR_CONTROL_SIZE): Likewise.
6087 (DR_RW_EXECUTE): Likewise.
6088 (DR_RW_WRITE): Likewise.
6089 (DR_RW_READ): Likewise.
6090 (DR_RW_IORW): Likewise.
6091 (DR_LEN_1): Likewise.
6092 (DR_LEN_2): Likewise.
6093 (DR_LEN_4): Likewise.
6094 (DR_LEN_8): Likewise.
6095 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6096 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6097 (DR_ENABLE_SIZE): Likewise.
6098 (DR_LOCAL_SLOWDOWN): Likewise.
6099 (DR_GLOBAL_SLOWDOWN): Likewise.
6100 (DR_CONTROL_RESERVED): Likewise.
6101 (I386_DR_CONTROL_MASK): Likewise.
6102 (I386_DR_VACANT): Likewise.
6103 (I386_DR_LOCAL_ENABLE): Likewise.
6104 (I386_DR_GLOBAL_ENABLE): Likewise.
6105 (I386_DR_DISABLE): Likewise.
6106 (I386_DR_SET_RW_LEN): Likewise.
6107 (I386_DR_GET_RW_LEN): Likewise.
6108 (I386_DR_WATCH_HIT): Likewise.
6109 (i386_wp_op_t): Likewise.
6110 (i386_show_dr): Likewise.
6111 (i386_length_and_rw_bits): Likewise.
6112 (i386_insert_aligned_watchpoint): Likewise.
6113 (i386_remove_aligned_watchpoint): Likewise.
6114 (i386_handle_nonaligned_watchpoint): Likewise.
6115 (i386_update_inferior_debug_regs): Likewise.
6116 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6117 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6118 (i386_region_ok_for_watchpoint):
6119 Use i386_dr_region_ok_for_watchpoint.
6120 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6122 2014-06-19 Gary Benson <gbenson@redhat.com>
6124 * i386-nat.c (i386_insert_hw_breakpoint): Use
6125 i386_insert_watchpoint.
6126 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6128 2014-06-19 Gary Benson <gbenson@redhat.com>
6130 * i386-nat.c (i386_dr_show): Renamed to
6131 i386_show_dr and made static. All uses updated.
6132 (i386_dr_length_and_rw_bits): Renamed to
6133 i386_length_and_rw_bits and made static.
6135 (i386_dr_insert_aligned_watchpoint): Renamed to
6136 i386_insert_aligned_watchpoint and made static.
6138 (i386_dr_remove_aligned_watchpoint): Renamed to
6139 i386_remove_aligned_watchpoint and made static.
6141 (i386_dr_update_inferior_debug_regs): Renamed to
6142 i386_update_inferior_debug_regs and made static.
6144 * nat/i386-dregs.h (i386_dr_show): Removed.
6145 (i386_dr_length_and_rw_bits): Likewise.
6146 (i386_dr_insert_aligned_watchpoint): Likewise.
6147 (i386_dr_remove_aligned_watchpoint): Likewise.
6148 (i386_dr_update_inferior_debug_regs): Likewise.
6150 2014-06-19 Gary Benson <gbenson@redhat.com>
6152 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6153 * configure: Regenerate.
6154 * config.in: Likewise.
6155 * main.c (signal.h): New include.
6156 (setup_alternate_signal_stack): New function.
6157 (captured_main): Call the above.
6158 * cp-support.c (signal.h): New include.
6159 (catch_demangler_crashes): New flag.
6160 (SIGJMP_BUF): New define.
6161 (SIGSETJMP): Likewise.
6162 (SIGLONGJMP): Likewise.
6163 (gdb_demangle_jmp_buf): New static global.
6164 (gdb_demangle_attempt_core_dump): Likewise.
6165 (gdb_demangle_signal_handler): New function.
6166 (gdb_demangle): If catch_demangler_crashes is set, install the
6167 above signal handler before calling bfd_demangle, and restore
6168 the original signal handler afterwards. Display the offending
6169 symbol and call demangler_warning the first time a segmentation
6171 (_initialize_cp_support): New maint set/show command.
6173 2014-06-19 Gary Benson <gbenson@redhat.com>
6175 * utils.h (resource_limit_kind): New enum.
6176 (can_dump_core): New declaration.
6177 (warn_cant_dump_core): Likewise.
6178 (dump_core): Likewise.
6179 * utils.c (dump_core): Made nonstatic. Added new
6180 parameter "limit_kind".
6181 (can_dump_core): Made nonstatic. Moved printing code to...
6182 (warn_cant_dump_core): New function.
6183 (can_dump_core_warn): Likewise.
6184 (internal_vproblem): Replace calls to can_dump_core with
6185 calls to can_dump_core_warn. Supply new argument to each.
6187 2014-06-19 Gary Benson <gbenson@redhat.com>
6189 * utils.h (demangler_vwarning): New declaration.
6190 (demangler_warning): Likewise.
6191 * utils.c (struct internal_problem)
6192 <user_settable_should_quit>: New field.
6193 <user_settable_should_dump_core>: Likewise
6194 (internal_error_problem): Add values for above new fields.
6195 (internal_warning_problem): Likewise.
6196 (demangler_warning_problem): New static global.
6197 (demangler_vwarning): New function.
6198 (demangler_warning): Likewise.
6199 (add_internal_problem_command): Selectively add commands.
6200 (_initialize_utils): New internal problem command.
6201 * maint.c (maintenance_demangler_warning): New function.
6202 (_initialize_maint_cmds): New command.
6204 2014-06-18 Tom Tromey <tromey@redhat.com>
6206 * f-valprint.c (info_common_command_for_block): Update.
6207 * symtab.h (struct general_symbol_info) <common_block>: Now
6210 2014-06-18 Tom Tromey <tromey@redhat.com>
6212 * symtab.h (struct symtab) <blockvector>: Now const.
6213 * ada-lang.c (ada_add_global_exceptions): Update.
6214 * buildsym.c (augment_type_symtab): Update.
6215 * dwarf2read.c (dw2_lookup_symbol): Update.
6216 * jit.c (finalize_symtab): Update.
6217 * jv-lang.c (add_class_symtab_symbol): Update.
6218 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6220 * objfiles.c (objfile_relocate1): Update.
6221 * psymtab.c (lookup_symbol_aux_psymtabs)
6222 (maintenance_check_psymtabs): Update.
6223 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6225 * spu-tdep.c (spu_catch_start): Update.
6226 * symmisc.c (dump_symtab_1): Update.
6227 * symtab.c (lookup_global_symbol_from_objfile)
6228 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6229 (basic_lookup_transparent_type_quick)
6230 (basic_lookup_transparent_type, find_pc_sect_symtab)
6231 (find_pc_sect_line, search_symbols): Update.
6232 * block.c (find_block_in_blockvector): Make "bl" const.
6233 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6235 (blockvector_contains_pc): Make "bv" const.
6236 (block_for_pc_sect): Update.
6237 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6238 (blockvector_contains_pc): Update.
6239 * breakpoint.c (resolve_sal_pc): Update.
6240 * inline-frame.c (block_starting_point_at): Update.
6242 2014-06-18 Tom Tromey <tromey@redhat.com>
6244 * completer.c (complete_line): Make "line_buffer" const.
6245 * completer.h (complete_line): Update.
6247 2014-06-18 Tom Tromey <tromey@redhat.com>
6249 * symtab.c (add_macro_name): Remove unneeded cast.
6251 2014-06-18 Tom Tromey <tromey@redhat.com>
6253 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6254 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6256 2014-06-18 Tom Tromey <tromey@redhat.com>
6258 * probe.c (info_probes_for_ops): Make "arg" const.
6259 * probe.h (info_probes_for_ops): Update.
6261 2014-06-18 Tom Tromey <tromey@redhat.com>
6263 * varobj.c (varobj_create): Update.
6264 * valops.c (value_of_this): Update.
6265 * tracepoint.c (add_local_symbols, scope_info): Update.
6266 * symtab.h (struct general_symbol_info) <block>: Now const.
6267 * symtab.c (skip_prologue_sal)
6268 (default_make_symbol_completion_list_break_on)
6269 (skip_prologue_using_sal): Update.
6270 * stack.h (iterate_over_block_locals)
6271 (iterate_over_block_local_vars): Update.
6272 * stack.c (print_frame_args): Update.
6273 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6275 (get_selected_block): Make return type const.
6276 * python/py-frame.c (frapy_block): Update.
6277 * python/py-block.c (gdbpy_block_for_pc): Update.
6278 * p-exp.y (%union) <bval>: Now const.
6279 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6280 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6281 * m2-exp.y (%union) <bval>: Now const.
6282 * linespec.c (get_current_search_block): Make return type const.
6283 (create_sals_line_offset, find_label_symbols): Update.
6284 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6286 (block_starting_point_at): Make "block" const.
6287 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6288 (check_exception_resume): Update.
6289 * guile/scm-frame.c (gdbscm_frame_block): Update.
6290 * guile/scm-block.c (gdbscm_lookup_block): Update.
6291 * frame.h (get_frame_block): Update.
6292 (get_selected_block): Make return type const.
6293 * frame.c (frame_id_inner): Update.
6294 * f-valprint.c (info_common_command_for_block)
6295 (info_common_command): Update.
6296 * dwarf2loc.c (dwarf2_find_location_expression)
6297 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6298 (locexpr_describe_location_piece): Update.
6299 * c-exp.y (%union) <bval>: Now const.
6300 * breakpoint.c (resolve_sal_pc): Update.
6301 * blockframe.c (get_frame_block):Make return type const.
6302 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6303 (block_innermost_frame): Update.
6304 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6305 (block_for_pc, block_for_pc_sect): Update.
6306 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6308 (block_for_pc_sect, block_for_pc): Make return type const.
6309 * ax-gdb.c (gen_expr): Update.
6310 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6311 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6312 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6313 (ada_read_var_value): Update.
6314 * ada-exp.y (struct name_info) <block>: Now const.
6316 (block_lookup): Constify.
6318 2014-06-18 Gary Benson <gbenson@redhat.com>
6320 * nat/i386-dregs.h: New file.
6321 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6322 * i386-nat.h (i386-dregs.h): New include.
6323 (DR_FIRSTADDR): Now in i386-dregs.h.
6324 (DR_LASTADDR): Likewise.
6325 (DR_NADDR): Likewise.
6326 (DR_STATUS): Likewise.
6327 (DR_CONTROL): Likewise.
6328 (i386_debug_reg_state): Likewise.
6329 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6331 2014-06-18 Don Breazeal <donb@codesourcery.com>
6333 * breakpoint.c (set_longjmp_breakpoint): Call
6334 momentary_breakpoint_from_master with additional argument.
6335 (set_longjmp_breakpoint_for_call_dummy): Call
6336 momentary_breakpoint_from_master with additional argument.
6337 (set_std_terminate_breakpoint): Call
6338 momentary_breakpoint_from_master with additional argument.
6339 (momentary_breakpoint_from_master): Add argument to function
6340 definition and use it to initialize structure member flag.
6341 (clone_momentary_breakpoint): Call
6342 momentary_breakpoint_from_master with additional argument.
6343 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6344 member flags set in momentary_breakpoint_from_master.
6346 2014-06-18 Gary Benson <gbenson@redhat.com>
6348 * i386-nat.c (i386_show_dr): Renamed to
6349 i386_dr_show and made nonstatic. All uses updated.
6350 (i386_length_and_rw_bits): Renamed to
6351 i386_dr_length_and_rw_bits and made nonstatic.
6353 (i386_insert_aligned_watchpoint): Renamed to
6354 i386_dr_insert_aligned_watchpoint and made nonstatic.
6356 (i386_remove_aligned_watchpoint): Renamed to
6357 i386_dr_remove_aligned_watchpoint and made nonstatic.
6359 (i386_update_inferior_debug_regs): Renamed to
6360 i386_dr_update_inferior_debug_regs and made nonstatic.
6363 2014-06-18 Gary Benson <gbenson@redhat.com>
6365 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6366 (i386_dr_low_can_set_control): Likewise.
6367 (i386_dr_low_set_addr): Likewise.
6368 (i386_dr_low_set_control): Likewise.
6369 (i386_dr_low_get_addr): Likewise.
6370 (i386_dr_low_get_status): Likewise.
6371 (i386_dr_low_get_control): Likewise.
6372 (i386_insert_aligned_watchpoint): Use new macros.
6373 (i386_update_inferior_debug_regs): Likewise.
6374 (i386_stopped_data_address): Likewise.
6376 2014-06-18 Gary Benson <gbenson@redhat.com>
6378 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6379 New parameter. All uses updated.
6381 2014-06-18 Gary Benson <gbenson@redhat.com>
6383 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6386 2014-06-18 Gary Benson <gbenson@redhat.com>
6388 * i386-nat.c (debug_printf): New macro.
6389 (i386_get_debug_register_length): Likewise.
6390 (TARGET_HAS_DR_LEN_8): Use above macro.
6391 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6392 and printf_unfiltered. Use phex to format values.
6394 2014-06-18 Gary Benson <gbenson@redhat.com>
6396 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6399 2014-06-18 Gary Benson <gbenson@redhat.com>
6401 * i386-nat.c: Comment changes.
6403 2014-06-18 Gary Benson <gbenson@redhat.com>
6405 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6407 2014-06-18 Gary Benson <gbenson@redhat.com>
6409 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6410 (i386_insert_aligned_watchpoint): Likewise.
6411 (i386_remove_aligned_watchpoint): Likewise.
6412 (i386_handle_nonaligned_watchpoint): Likewise.
6414 2014-06-18 Gary Benson <gbenson@redhat.com>
6416 * i386-nat.c: Whitespace changes.
6418 2014-06-17 Samuel Bronson <naesten@gmail.com>
6420 * MAINTAINERS: Update Roland McGrath's email address.
6421 Thanks to Sergio Durigan Junior for pointing out that he left
6422 Red Hat a while ago, and giving me a current address.
6424 2014-06-17 Tom Tromey <tromey@redhat.com>
6426 * utils.h (savestring): Remove declaration.
6428 2014-06-17 Tom Tromey <tromey@redhat.com>
6430 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6432 2014-06-16 Keith Seitz <keiths@redhat.com>
6435 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6436 to update the varobj if inferior_ptid is null_ptid.
6438 2014-06-16 Tom Tromey <tromey@redhat.com>
6440 * target.h (struct target_ops) <to_info_proc>: Make parameter
6442 (target_info_proc): Update.
6443 * target.c (target_info_proc): Make "args" const.
6444 * procfs.c (procfs_info_proc): Update.
6445 * linux-tdep.c (linux_info_proc): Update.
6446 (linux_core_info_proc_mappings): Make "args" const.
6447 (linux_core_info_proc): Update.
6448 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6449 * gdbarch.c: Rebuild.
6450 * gdbarch.h: Rebuild.
6451 * corelow.c (core_info_proc): Update.
6453 2014-06-16 Tom Tromey <tromey@redhat.com>
6455 * target.h (struct target_ops) <to_disconnect>: Make parameter
6457 (target_disconnect): Update.
6458 * target.c (target_disconnect): Make "args" const.
6459 * target-delegates.c: Rebuild.
6460 * remote.c (remote_disconnect): Update.
6461 * record.h (record_disconnect): Update.
6462 * record.c (record_disconnect): Update.
6463 * inf-child.c (inf_child_disconnect): Update.
6465 2014-06-16 Tom Tromey <tromey@redhat.com>
6467 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6468 * target.c (debug_to_rcmd, default_rcmd): Update.
6469 * target-delegates.c: Rebuild.
6470 * remote.c (remote_rcmd): Update.
6471 * monitor.c (monitor_rcmd): Update.
6473 2014-06-16 Pedro Alves <palves@redhat.com>
6475 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6476 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6477 have OBJF_SHARED set.
6478 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6479 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6480 instead of OBJF_USERLOADED.
6481 * objfiles.h (OBJF_SHARED): Update comment.
6482 (userloaded_objfile_contains_address_p): Rename to ...
6483 (shared_objfile_contains_address_p): ... this, and update
6485 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6487 (remove_symbol_file_command): Skip objfiles that don't have
6490 2014-06-16 Tom Tromey <tromey@redhat.com>
6492 * minsyms.h (prim_record_minimal_symbol)
6493 (prim_record_minimal_symbol_and_info): Update comments.
6495 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6497 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6498 or --without-guile, according to how GDB was built.
6500 2014-06-13 Tom Tromey <tromey@redhat.com>
6502 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6504 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6506 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6508 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6509 help_list.Pass all_commands, not -1, to help_list.
6510 * cli/cli-dump.c (dump_command, append_command)
6511 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6512 (binary_dump_command, binary_append_command): Pass all_commands,
6513 not -1, to help_list.
6514 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6516 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6518 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6520 * top.c (set_history): Pass all_commands, not -1, to help_list.
6521 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6522 all_commands, not -1, to help_list.
6523 * symfile.c (overlay_command): Pass all_commands, not -1, to
6525 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6527 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6529 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6531 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6532 not -1, to help_list.
6533 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6534 not -1, to help_list.
6535 * maint.c (maintenance_command, maintenance_info_command)
6536 (maintenance_print_command, maintenance_set_cmd): Pass
6537 all_commands, not -1, to help_list.
6538 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6540 * language.c (set_check): Pass all_commands, not -1, to help_list.
6541 * infcmd.c (unset_command): Pass all_commands, not -1, to
6543 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6545 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6547 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6549 * breakpoint.c (save_command): Pass all_commands, not -1, to
6551 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6552 all_commands, not -1, to help_list.
6554 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6556 * regcache.c (struct register_to_invalidate): New structure.
6557 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6559 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6561 2014-06-12 Yao Qi <yao@codesourcery.com>
6563 * varobj.c (varobj_get_num_children): Call
6564 varobj_is_dynamic_p.
6565 (varobj_list_children): Likewise.
6566 (varobj_update): Likewise. Update comments.
6568 2014-06-12 Yao Qi <yao@codesourcery.com>
6570 * varobj.c (varobj_pretty_printed_p): Rename to ...
6571 (varobj_is_dynamic_p): ... this. New function.
6572 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6573 (varobj_is_dynamic_p): Declare.
6574 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6575 (mi_print_value_p, varobj_update_one): Likewise.
6577 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6578 Yao Qi <yao@codesourcery.com>
6580 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6581 (varobj_get_iterator): Wrap up code for pretty-printer by
6582 "#if HAVE_PYTHON" and "#endif".
6583 (update_dynamic_varobj_children): Likewise.
6585 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6586 Yao Qi <yao@codesourcery.com>
6588 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6589 gdb_python_initialized is false. Move some code from varobj.c.
6590 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6591 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6592 (struct varobj_item): Moved to varobj-iter.h".
6593 (varobj_clear_saved_item): New function.
6594 (update_dynamic_varobj_children): Move python-related code to
6596 (free_variable): Call varobj_clear_saved_item and
6599 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6600 Yao Qi <yao@codesourcery.com>
6602 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6603 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6604 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6605 (py-varobj.o): New rule.
6606 * python/py-varobj.c: New file.
6607 * python/python-internal.h (py_varobj_get_iterator): Declare.
6608 * varobj-iter.h: New file.
6609 * varobj.c: Include "varobj-iter.h"
6610 (struct varobj) <child_iter>: Change its type from "PyObject *"
6611 to "struct varobj_iter *".
6612 <saved_item>: Likewise.
6613 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6614 [HAVE_PYTHON] (varobj_get_iterator): New function.
6615 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6616 python-specific code to python/py-varobj.c.
6617 (install_visualizer): Call varobj_iter_delete instead of
6619 * varobj.h (varobj_ensure_python_env): Declare.
6621 2014-06-12 Yao Qi <yao@codesourcery.com>
6623 * varobj.c (struct varobj_item): New structure.
6624 (create_child_with_value): Update declaration.
6625 (varobj_add_child): Replace arguments 'name' and 'value' with
6626 'item'. All callers updated.
6627 (install_dynamic_child): Likewise.
6628 (update_dynamic_varobj_children): Likewise.
6629 (varobj_add_child): Likewise.
6630 (create_child_with_value): Likewise.
6632 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6634 * NEWS: Create a new section for the next release branch.
6635 Rename the section of the current branch, now that it has
6638 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6640 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6641 * version.in: Bump version to 7.8.50.DATE-cvs.
6643 2014-06-11 Pedro Alves <palves@redhat.com>
6646 * ser-mingw.c (net_windows_socket_check_pending): New function.
6647 (net_windows_select_thread): Ignore spurious wakeups. Use
6648 net_windows_socket_check_pending.
6649 (net_windows_wait_handle): Check for pending events with
6650 ioctlsocket, through net_windows_socket_check_pending, instead of
6651 checking the socket's event.
6653 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6655 * python/python-internal.h (gdb_PyObject_GetAttrString)
6656 (gdb_PyObject_HasAttrString): New inline function definitions.
6657 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6658 char * of the second argument to PyObject_GetAttrString.
6660 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6662 * serial.c (serial_write): Fix index of character to be printed
6663 in call to serial_logchar when serial debug traces are enabled.
6665 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6667 * gdbtypes (resolve_dynamic_range): Add function description.
6669 2014-06-09 Pedro Alves <palves@redhat.com>
6671 * linux-nat.c (linux_child_follow_fork): Initialize status with
6672 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6673 inner block. Only pass the signal to PTRACE_DETACH if in pass
6676 2014-06-09 Gary Benson <gbenson@redhat.com>
6678 * common/signals.c (gdb_signal_from_host): Reorder to separate
6679 the always-available ANSI-standard signals from the signals that
6681 (do_gdb_signal_to_host): Likewise.
6682 * proc-events.c (signal_table): Likewise.
6684 2014-06-08 Hui Zhu <hui@codesourcery.com>
6686 * common/linux-ptrace.c (linux_disable_event_reporting): New
6688 * common/linux-ptrace.h (linux_disable_event_reporting): New
6690 * linux-nat.c (linux_child_follow_fork): Do a single step before
6693 2014-06-07 Keith Seitz <keiths@redhat.com>
6697 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6698 from symbol_matches_domain in symtab.c. All local callers
6699 of symbol_matches_domain updated.
6700 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6701 search STRUCT_DOMAIN.
6702 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6703 independently. standard_lookup will do that automatically.
6704 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6705 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6706 (cp_lookup_symbol_in_namespace): Likewise.
6707 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6708 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6709 may return a STRUCT_DOMAIN match.
6710 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6711 * cp-support.c: Include language.h.
6712 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6714 * psymtab.c (match_partial_symbol): Compare the requested
6715 domain with the symbol's domain directly.
6716 (lookup_partial_symbol): Likewise.
6717 * symtab.c (lookup_symbol_in_language): Explain when/why
6718 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6719 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6720 appropriate languages.
6721 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6722 and moved to ada-lang.c
6723 (lookup_block_symbol): Explain that this function only returns
6724 symbol matching the requested DOMAIN.
6725 Compare the requested domain with the symbol's domain directly.
6726 (iterate_over_symbols): Compare the requested domain with the
6727 symbol's domain directly.
6728 * symtab.h (symbol_matches_domain): Remove.
6730 2014-06-06 Doug Evans <xdje42@gmail.com>
6732 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6733 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6734 (gdbscm_guile_version_is_at_least): Declare.
6735 (gdbscm_scm_string_to_int): Declare.
6736 * guile/guile.c (gdbscm_guile_major_version): New global.
6737 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6738 (guile_datadir): New static global.
6739 (gdbscm_guile_data_directory): New function.
6740 (initialize_scheme_side): Update.
6741 (misc_guile_functions): Add guile-data-directory.
6742 (initialize_gdb_module): Fetch guile version number.
6743 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6744 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6745 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6746 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6748 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6749 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6750 * guile/scm-value.c (gdbscm_value_to_string): Only call
6751 scm_port_conversion_strategy if Guile version >= 2.0.6.
6753 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6755 * main.c (print_gdb_help): Add -q and --silent.
6757 2014-06-06 Gary Benson <gbenson@redhat.com>
6759 * common/signals.c: Remove preprocessor conditionals for
6760 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6761 SIGSEGV and SIGTERM.
6762 * proc-events.c: Likewise.
6764 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6766 * symfile.c (symfile_free_objfile): Remove restriction to
6768 * symfile-mem.c (symbol_file_add_from_memory): Call
6769 add_target_sections_of_objfile.
6771 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6773 * guile/scm-value.c (gdbscm_history_append_x): Use
6774 'vlscm_get_value_smob_arg_unsafe' instead of
6775 'vlscm_scm_to_value'.
6777 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6780 * utils.c (printchar): Don't escape at all if quoter is NUL.
6781 Update function documentation to clarify effect of parameter
6783 * remote.c (escape_buffer): Pass '\\' as the quoter to
6784 fputstrn_unfiltered.
6785 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6786 generate the output.
6787 (mi_solib_unloaded): Same.
6789 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6791 * development.sh: Delete.
6792 * Makefile.in (config.status): Adjust dependency on development.sh.
6793 * configure.ac: Adjust development.sh source call.
6794 * configure: Regenerate.
6796 2014-06-04 Doug Evans <xdje42@gmail.com>
6798 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6799 is_scheme_bkpt, spec.
6800 (bpscm_make_breakpoint_smob): Initialize new members.
6801 (gdbscm_create_breakpoint_x): Split into two ...
6802 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6803 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6804 (scheme_function breakpoint_functions): Update.
6805 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6806 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6807 register-breakpoint!.
6809 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6812 * mem-break.c (z_type_supported): Return zero if
6813 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6815 2014-06-04 Tom Tromey <tromey@redhat.com>
6817 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6818 value_from_contents_and_address_unresolved.
6819 (ada_template_to_fixed_record_type_1): Likewise.
6820 (ada_which_variant_applies): Likewise.
6821 * value.h (value_from_contents_and_address_unresolved): Declare.
6822 * value.c (value_from_contents_and_address_unresolved): New
6824 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6825 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6826 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6828 2014-06-04 Tom Tromey <tromey@redhat.com>
6830 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6832 2014-06-04 Tom Tromey <tromey@redhat.com>
6834 * procfs.c (procfs_attach): Make "args" const.
6835 * windows-nat.c (windows_attach): Make "args" const.
6836 * nto-procfs.c (procfs_attach): Make "args" const.
6837 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6838 * go32-nat.c (go32_attach): Make "args" const.
6839 * gnu-nat.c (gnu_attach): Make "args" const.
6840 * darwin-nat.c (darwin_attach): Make "args" const.
6841 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6842 * linux-nat.c (linux_nat_attach): Make "args" const.
6843 * remote.c (extended_remote_attach_1, extended_remote_attach):
6845 * target.h (struct target_ops) <to_attach>: Make "args" const.
6846 (find_default_attach): Likewise.
6847 * utils.c (parse_pid_to_attach): Make "args" const.
6848 * utils.h (parse_pid_to_attach): Update.
6850 2014-06-04 Tom Tromey <tromey@redhat.com>
6852 * target-delegates.c: Rebuild.
6853 * target.c (default_thread_address_space): New function.
6854 (target_thread_address_space): Simplify.
6855 * target.h (struct target_ops) <to_thread_address_space>: Add
6856 TARGET_DEFAULT_FUNC.
6858 2014-06-04 Doug Evans <xdje42@gmail.com>
6860 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6862 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6864 * record-btrace.c: Include event-loop.h and inf-loop.h.
6865 (record_btrace_resume_exec_dir)
6866 (record_btrace_async_inferior_event_handler)
6867 (record_btrace_handle_async_inferior_event): New.
6868 (record_btrace_open): Create async event handler.
6869 (record_btrace_close): Delete async event handler.
6870 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6871 Mark async event handler.
6872 (record_btrace_execution_direction): New.
6873 (init_record_btrace_ops): Initialize to_execution_direction.
6875 2014-06-03 Doug Evans <xdje42@gmail.com>
6877 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6878 (gdbscm_make_parameter): Ditto.
6880 2014-06-03 Doug Evans <dje@google.com>
6882 * exec.c (exec_close_1): Call clear_section_table instead of
6883 resize_section_table.
6884 (clear_section_table): New function.
6885 (resize_section_table): Make static. Rename arg num_added to
6887 * exec.h (clear_section_table): Declare.
6888 (resize_section_table): Delete.
6889 * progspace.c (release_program_space): Call clear_section_table
6890 instead of resize_section_table.
6892 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6894 * NEWS (Python Scripting): Add entry about the new xmethods
6897 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6899 * python/py-xmethods.c: New file.
6900 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6901 (objfpy_dealloc): XDECREF on the new xmethods field.
6902 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6904 (objfpy_get_xmethods): New function.
6905 (objfile_getset): New entry 'xmethods'.
6906 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6907 (pspy_dealloc): XDECREF on the new xmethods field.
6908 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6910 (pspy_get_xmethods): New function.
6911 (pspace_getset): New entry 'xmethods'.
6912 * python/python-internal.h: Add declarations for new functions.
6913 * python/python.c (_initialize_python): Invoke
6914 gdbpy_initialize_xmethods.
6915 * python/lib/gdb/__init__.py (xmethods): New
6917 * python/lib/gdb/xmethod.py: New file.
6918 * python/lib/gdb/command/xmethods.py: New file.
6920 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6922 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6923 best match method returned by find_overload_match is an xmethod.
6924 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6925 the best matching operator returned by find_overload_match is an
6927 * valops.c: #include "extension.h".
6928 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6929 Return void. The list of matching source methods is returned in
6930 "fn_list" and a vector of matching debug method workers is
6931 returned in "xm_worker_vec". Update all callers.
6932 (value_find_oload_method_list): Likewise.
6933 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6934 non-NULL, then the index of the best matching method in this
6935 vector is returned. Update all callers.
6936 (find_overload_match): Include xmethods while performing overload
6939 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6941 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6942 * extension-priv.h (struct extension_language_ops): Add the
6944 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6945 get_matching_xmethod_workers, get_xmethod_argtypes,
6946 invoke_xmethod, free_xmethod_worker,
6947 free_xmethod_worker_vec): New functions.
6948 * extension.h: #include "common/vec.h".
6949 New function declarations.
6950 (struct xmethod_worker): New struct.
6951 (VEC (xmethod_worker_ptr)): New vector type.
6952 (xmethod_worker_ptr): New typedef.
6953 (xmethod_worker_vec): Likewise.
6954 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6956 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6957 (struct builtin_type): New field "xmethod".
6958 * valarith.c (value_ptradd): Assert that the value argument is not
6960 * valops.c (value_must_coerce_to_target): Return 0 for
6961 lval_xcallable values.
6962 * value.c (struct value): New field XM_WORKER in the field
6964 (value_address, value_raw_address): Return 0 for lval_xcallable
6966 (set_value_address): Assert that the value is not an
6968 (value_free): Free the associated xmethod worker when freeing
6969 lval_xcallable values.
6970 (set_value_component_location): Assert that the WHOLE value is not
6972 (value_of_xmethod, call_xmethod): New functions.
6973 * value.h: Declare "struct xmethod_worker".
6974 Declare new functions value_of_xmethod, call_xmethod.
6976 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6977 Pedro Alves <palves@redhat.com>
6979 PR breakpoints/17000
6980 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6981 New function, extracted from software_breakpoint_inserted_here_p.
6982 (software_breakpoint_inserted_here_p): Replace factored out code
6983 by call to find_non_raw_software_breakpoint_inserted_here.
6984 (bp_target_info_copy_insertion_state): New function.
6985 (bkpt_insert_location): Handle the case of a single-step
6986 breakpoint already inserted at the same address.
6987 (bkpt_remove_location): Handle the case of a single-step
6988 breakpoint still inserted at the same address.
6989 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6990 breakpoint already inserted at the same address.
6991 (deprecated_remove_raw_breakpoint): Handle the case of a
6992 non-raw breakpoint still inserted at the same address.
6993 (find_single_step_breakpoint): New function, extracted from
6994 single_step_breakpoint_inserted_here_p.
6995 (find_single_step_breakpoint): New function,
6996 factored out from single_step_breakpoint_inserted_here_p.
6997 (single_step_breakpoint_inserted_here_p): Reimplement.
6999 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7001 Pushed by Joel Brobecker <brobecker@adacore.com>
7002 * source.c (show_substitute_path_command): Fix display of matching
7005 2014-06-03 Gary Benson <gbenson@redhat.com>
7007 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7009 2014-06-02 Doug Evans <xdje42@gmail.com>
7011 Add parameter support for Guile.
7012 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7013 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7014 (scm-param.o): New rule.
7015 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7016 (gdbscm_misc_error): Declare.
7017 (gdbscm_canonicalize_command_name): Declare.
7018 (gdbscm_scm_to_host_string): Declare.
7019 (gdbscm_scm_from_host_string): Declare.
7020 (gdbscm_initialize_parameters): Declare.
7021 * guile/guile.c (initialize_gdb_module): Call
7022 gdbscm_initialize_parameters.
7023 * guile/lib/gdb.scm: Export parameter symbols.
7024 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7025 cmdscm_canonicalize_name and made public. All callers updated.
7026 * guile/scm-exception.c (gdbscm_misc_error): New function.
7027 * guile/scm-param.c: New file.
7028 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7029 (gdbscm_scm_to_host_string): New function.
7030 (gdbscm_scm_from_host_string): New function.
7031 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7033 2014-06-02 Doug Evans <xdje42@gmail.com>
7035 Add command support for Guile.
7036 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7037 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7038 (scm-cmd.o): New rule.
7039 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7040 (gdbscm_user_error_p): Declare.
7041 (gdbscm_parse_command_name): Declare.
7042 (gdbscm_valid_command_class_p): Declare.
7043 (gdbscm_initialize_commands): Declare.
7044 * guile/guile.c (initialize_gdb_module): Call
7045 gdbscm_initialize_commands.
7046 * guile/lib/gdb.scm: Export command symbols.
7047 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7048 (throw-user-error): New function.
7049 * guile/scm-cmd.c: New file.
7050 * guile/scm-exception.c (user_error_symbol): New static global.
7051 (gdbscm_user_error_p): New function.
7052 (gdbscm_initialize_exceptions): Set user_error_symbol.
7053 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7055 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7057 * top.c (command_loop): Handle comments here...
7058 (command_line_input): ... not here.
7060 2014-06-02 Doug Evans <xdje42@gmail.com>
7062 Add progspace support for Guile.
7063 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7064 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7065 (scm-progspace.o): New rule.
7066 * guile/guile-internal.h (pspace_smob): New typedef.
7067 (psscm_pspace_smob_pretty_printers): Declare.
7068 (psscm_pspace_smob_from_pspace): Declare.
7069 (psscm_scm_from_pspace): Declare.
7070 * guile/guile.c (initialize_gdb_module): Call
7071 gdbscm_initialize_pspaces.
7072 * guile/lib/gdb.scm: Export progspace symbols.
7073 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7075 (append-pretty-printer!): Ditto.
7076 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7078 * guile/scm-progspace.c: New file.
7080 2014-06-03 Alan Modra <amodra@gmail.com>
7082 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7083 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7085 2014-06-02 Doug Evans <dje@google.com>
7087 Add support for skeletonless type units.
7088 * dwarf2read.c (struct dwarf2_per_objfile): New member
7089 n_allocated_type_units.
7090 (struct dwarf2_per_objfile) <tu_stats>: New member
7091 nr_all_type_units_reallocs.
7092 (create_signatured_type_table_from_index): Initialize
7093 n_allocated_type_units
7094 (create_all_type_units): Ditto.
7095 (add_type_unit): Move up in file. New arg slot.
7096 All callers updated. Increase space for all_type_units more
7098 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7099 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7100 (lookup_dwp_signatured_type): Ditto.
7101 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7102 All callers updated.
7103 (build_type_psymtabs_1): Leave type_unit_groups as
7104 NULL if no TUs present.
7105 (print_tu_stats): New function.
7106 (process_skeletonless_type_unit): New function.
7107 (process_dwo_file_for_skeletonless_type_units): New
7109 (process_skeletonless_type_units): New function.
7110 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7111 Call print tu_stats if debugging enabled.
7113 2014-06-02 Pedro Alves <palves@redhat.com>
7115 * breakpoint.c (build_target_command_list): Don't build a command
7116 list if we have any duplicate location that isn't a dprintf.
7118 2014-06-02 Pedro Alves <palves@redhat.com>
7120 * breakpoint.c (dprintf_breakpoint_hit): New function.
7121 (initialize_breakpoint_ops): Install it as dprintf's
7122 breakpoint_hit method.
7124 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7126 * source.c (substitute_path_rule_matches): Simplify using
7127 filename_ncmp instead of FILENAME_CMP.
7129 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7131 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7133 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7135 * configure.ac: When Guile is available, check for the
7136 availability of 'scm_new_smob'.
7137 * configure, config.h.in: Regenerate.
7138 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7141 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7143 * frame.c (struct frame_info): Add stop_string field.
7144 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7145 (get_prev_frame_always): Old content moved into
7146 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7147 TRY_CATCH, handle MEMORY_ERROR exceptions.
7148 (frame_stop_reason_string): New function definition.
7149 * frame.h (unwind_stop_reason_to_string): Extend comment to
7150 mention frame_stop_reason_string.
7151 (frame_stop_reason_string): New function declaration.
7152 * stack.c (frame_info): Switch to frame_stop_reason_string.
7153 (backtrace_command_1): Switch to frame_stop_reason_string.
7154 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7155 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7156 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7158 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7160 * frame.c (frame_stop_reason_string): Rename to ...
7161 (unwind_stop_reason_to_string): this.
7162 * frame.h (frame_stop_reason_string): Rename to ...
7163 (unwind_stop_reason_to_string): this.
7164 * stack.c (frame_info): Update call to frame_stop_reason_string.
7165 (backtrace_command_1): Likewise.
7166 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7167 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7169 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7171 * frame.c (remove_prev_frame): New function.
7172 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7175 2014-05-29 Pedro Alves <palves@redhat.com>
7177 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7178 and make it const. When a single-step decays to a continue,
7179 clear 'step', not 'hw_step'. Pass whether the caller wanted
7180 to step to user_visible_resume_ptid, not what we ask the
7183 2014-05-29 Pedro Alves <palves@redhat.com>
7185 * infrun.c (process_event_stop_test, handle_step_into_function)
7186 (handle_step_into_function_backward): Adjust.
7187 Don't set the even thread's stop_step and call stop_waiting before
7188 calling end_stepping_range. Instead do that ...
7189 (end_stepping_range): ... here. Take an ecs pointer parameter.
7191 2014-05-29 Pedro Alves <palves@redhat.com>
7193 * infrun.c (stop_stepping): Rename to ...
7194 (stop_waiting): ... this.
7195 (proceed): Update comment.
7196 (process_event_stop_test, handle_inferior_event)
7197 (handle_signal_stop, handle_step_into_function)
7198 (handle_step_into_function_backward): Update.
7200 2014-05-29 Pedro Alves <palves@redhat.com>
7202 * infcall.c (run_inferior_call): Don't check whether the current
7203 thread is running after the proceed call.
7205 2014-05-29 Pedro Alves <palves@redhat.com>
7206 Tom Tromey <tromey@redhat.com>
7208 * NEWS: Mention "maint set target-async", "set mi-async", and that
7209 background execution commands are now always available.
7210 * target.h (target_async_permitted): Update comment.
7211 * target.c (target_async_permitted, target_async_permitted_1):
7213 (set_target_async_command): Rename to ...
7214 (maint_set_target_async_command): ... this.
7215 (show_target_async_command): Rename to ...
7216 (maint_show_target_async_command): ... this.
7217 (_initialize_target): Adjust.
7218 * infcmd.c (prepare_execution_command): Make extern.
7219 * inferior.h (prepare_execution_command): Declare.
7220 * infrun.c (set_observer_mode): Leave target async alone.
7221 * mi/mi-interp.c (mi_interpreter_init): Install
7222 mi_on_sync_execution_done as sync_execution_done observer.
7223 (mi_on_sync_execution_done): New function.
7224 (mi_execute_command_input_handler): Don't print the prompt if we
7225 just started a synchronous command with an async target.
7226 (mi_on_resume): Check sync_execution before printing prompt.
7227 * mi/mi-main.h (mi_async_p): Declare.
7228 * mi/mi-main.c: Include gdbcmd.h.
7229 (mi_async_p): New function.
7230 (mi_async, mi_async_1): New globals.
7231 (set_mi_async_command, show_mi_async_command, mi_async): New
7233 (exec_continue): Call prepare_execution_command.
7234 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7235 (mi_execute_async_cli_command): Use mi_async_p.
7236 (_initialize_mi_main): Install "set mi-async". Make
7237 "target-async" a deprecated alias.
7239 2014-05-29 Pedro Alves <palves@redhat.com>
7241 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7242 (_initialize_cli_interp): Adjust.
7243 * event-loop.c: Include "observer.h".
7244 (start_event_loop): Notify 'command_error' observers instead of
7245 calling display_gdb_prompt. Remove FIXME comment.
7246 * event-top.c (display_gdb_prompt): Remove call into the
7248 * inf-loop.c: Include "observer.h".
7249 (inferior_event_handler): Notify 'command_error' observers instead
7250 of calling display_gdb_prompt.
7251 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7252 observers instead of calling display_gdb_prompt.
7253 * interps.c (interp_set): Don't call display_gdb_prompt.
7254 (current_interp_display_prompt_p): Delete.
7255 * interps.h (interp_prompt_p): Delete declaration.
7256 (interp_prompt_p_ftype): Delete.
7257 (struct interp_procs) <prompt_proc_p>: Delete field.
7258 (current_interp_display_prompt_p): Delete declaration.
7259 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7260 (_initialize_mi_interp): Adjust.
7261 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7262 'command_error' observers.
7263 (tui_on_sync_execution_done, tui_on_command_error): New
7265 (tui_display_prompt_p): Delete.
7266 (_initialize_tui_interp): Adjust.
7268 2014-05-29 Pedro Alves <palves@redhat.com>
7271 * cli/cli-interp.c: Include infrun.h and observer.h.
7272 (cli_uiout, cli_interp): New globals.
7273 (cli_on_signal_received, cli_on_end_stepping_range)
7274 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7276 (cli_interpreter_init): Install them as 'end_stepping_range',
7277 'signal_received' 'signal_exited', 'exited' and 'no_history'
7279 (_initialize_cli_interp): Remove cli_interp local.
7280 * infrun.c (handle_inferior_event): Call the several stop reason
7281 observers instead of printing the stop reason directly.
7282 (end_stepping_range): New function.
7283 (print_end_stepping_range_reason, print_signal_exited_reason)
7284 (print_exited_reason, print_signal_received_reason)
7285 (print_no_history_reason): Make static, and add an uiout
7286 parameter. Print to that instead of to CURRENT_UIOUT.
7287 * infrun.h (print_end_stepping_range_reason)
7288 (print_signal_exited_reason, print_exited_reason)
7289 (print_signal_received_reason print_no_history_reason): New
7291 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7293 <cli_uiout>: New field.
7294 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7295 uiout for CLI output. Install 'signal_received',
7296 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7298 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7299 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7300 (mi_on_no_history): New functions.
7301 (ui_out_free_cleanup): Delete function.
7302 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7303 instead use the one already stored in the MI interpreter data.
7304 (mi_ui_out): Adjust.
7305 * tui/tui-interp.c: Include infrun.h and observer.h.
7306 (tui_interp): New global.
7307 (tui_on_signal_received, tui_on_end_stepping_range)
7308 (tui_on_signal_exited, tui_on_exited)
7309 (tui_on_no_history): New functions.
7310 (tui_init): Install them as 'end_stepping_range',
7311 'signal_received' 'signal_exited', 'exited' and 'no_history'
7313 (_initialize_tui_interp): Delete tui_interp local.
7315 2014-05-29 Pedro Alves <palves@redhat.com>
7318 * linux-nat.c (linux_nat_resume_callback): Rename the second
7319 parameter to 'except'. Skip LP if it points to EXCEPT.
7320 (linux_nat_resume): Don't mark the event lwp as not stopped
7321 before resuming sibling lwps. Instead ask
7322 linux_nat_resume_callback to skip the event lwp. Mark it as not
7323 stopped after actually resuming it.
7324 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7326 (wait_lwp): Mark the lwp as stopped here.
7327 (stop_wait_callback): Mark the lwp as not stopped right after
7328 resuming it. Don't mark lwps as stopped here.
7329 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7330 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7332 2014-05-29 Pedro Alves <palves@redhat.com>
7335 * infrun.c (resume): Determine how much to resume depending on
7336 whether the caller wanted a step, not whether we can hardware step
7337 the target. Mark all threads that we intend to run as running,
7338 unless we're calling an inferior function.
7339 (normal_stop): If the thread is running an infcall, don't finish
7341 * target.c (target_resume): Don't mark threads as running here.
7343 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7345 * serial.c (_initialize_serial): Remove support for
7346 the "set remotebaud" and "show remotebaud" commands.
7347 * NEWS: Add entry documenting the removal of that command.
7349 2014-05-28 Yao Qi <yao@codesourcery.com>
7351 * charset.c: Fix typo in comments.
7353 2014-05-27 Gary Benson <gbenson@redhat.com>
7355 * utils.c (internal_vproblem): Prompt for a bug report.
7357 2014-05-26 Andy Wingo <wingo@igalia.com>
7359 * guile/scm-arch.c (arscm_mark_arch_smob):
7360 * guile/scm-block.c (bkscm_mark_block_smob)
7361 (bkscm_mark_block_syms_progress_smob):
7362 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7363 * guile/scm-exception.c (exscm_mark_exception_smob):
7364 * guile/scm-frame.c (frscm_mark_frame_smob):
7365 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7366 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7367 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7368 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7369 (ppscm_mark_pretty_printer_worker_smob):
7370 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7371 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7372 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7373 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7375 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7378 2014-05-26 Andy Wingo <wingo@igalia.com>
7379 Doug Evans <xdje42@gmail.com>
7381 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7382 empty_base_class. All uses updated.
7383 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7384 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7386 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7387 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7388 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7389 (gdbscm_gsmob_has_property_p, add_property_name)
7390 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7391 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7392 (gdb-object-has-property?, gdb-object-properties): Remove.
7393 (gdb-object-kind): Renamed from gsmob-kind.
7395 2014-05-26 Andy Wingo <wingo@igalia.com>
7397 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7398 * configure: Regenerate.
7400 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7402 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7404 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7406 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7407 (replay_memory_access_read_only, replay_memory_access_read_write)
7408 (replay_memory_access_types, replay_memory_access)
7409 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7410 (cmd_set_record_btrace, cmd_show_record_btrace)
7411 (cmd_show_replay_memory_access): New.
7412 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7413 (record_btrace_remove_breakpoint): Replace
7414 record_btrace_allow_memory_access with replay_memory_access.
7415 (_initialize_record_btrace): Add commands.
7416 * NEWS: Announce it.
7418 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7420 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7422 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7424 * MAINTAINERS (Write After Approval): Move self back from
7427 2014-05-22 Pedro Alves <palves@redhat.com>
7429 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7430 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7431 (disable_randomization, enum exec_direction_kind)
7432 (execution_direction, stop_registers, start_remote)
7433 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7434 (wait_for_inferior, normal_stop, get_last_target_status)
7435 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7436 (insert_step_resume_breakpoint_at_sal)
7437 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7438 (set_step_info, print_stop_event, signal_stop_state)
7439 (signal_print_state, signal_pass_state, signal_stop_update)
7440 (signal_print_update, signal_pass_update)
7441 (update_signals_program_target, clear_exit_convenience_vars)
7442 (displaced_step_dump_bytes, update_observer_mode)
7443 (signal_catch_update, gdb_signal_from_command): Move
7445 * infrun.h: ... to this new file.
7446 * amd64-tdep.c: Include infrun.h.
7447 * annotate.c: Include infrun.h.
7448 * arch-utils.c: Include infrun.h.
7449 * arm-linux-tdep.c: Include infrun.h.
7450 * arm-tdep.c: Include infrun.h.
7451 * break-catch-sig.c: Include infrun.h.
7452 * breakpoint.c: Include infrun.h.
7453 * common/agent.c: Include infrun.h instead of inferior.h.
7454 * corelow.c: Include infrun.h.
7455 * event-top.c: Include infrun.h.
7456 * go32-nat.c: Include infrun.h.
7457 * i386-tdep.c: Include infrun.h.
7458 * inf-loop.c: Include infrun.h.
7459 * infcall.c: Include infrun.h.
7460 * infcmd.c: Include infrun.h.
7461 * infrun.c: Include infrun.h.
7462 * linux-fork.c: Include infrun.h.
7463 * linux-nat.c: Include infrun.h.
7464 * linux-thread-db.c: Include infrun.h.
7465 * monitor.c: Include infrun.h.
7466 * nto-tdep.c: Include infrun.h.
7467 * procfs.c: Include infrun.h.
7468 * record-btrace.c: Include infrun.h.
7469 * record-full.c: Include infrun.h.
7470 * remote-m32r-sdi.c: Include infrun.h.
7471 * remote-mips.c: Include infrun.h.
7472 * remote-notif.c: Include infrun.h.
7473 * remote-sim.c: Include infrun.h.
7474 * remote.c: Include infrun.h.
7475 * reverse.c: Include infrun.h.
7476 * rs6000-tdep.c: Include infrun.h.
7477 * s390-linux-tdep.c: Include infrun.h.
7478 * solib-irix.c: Include infrun.h.
7479 * solib-osf.c: Include infrun.h.
7480 * solib-svr4.c: Include infrun.h.
7481 * target.c: Include infrun.h.
7482 * top.c: Include infrun.h.
7483 * windows-nat.c: Include infrun.h.
7484 * mi/mi-interp.c: Include infrun.h.
7485 * mi/mi-main.c: Include infrun.h.
7486 * python/py-threadevent.c: Include infrun.h.
7488 2014-05-22 Pedro Alves <palves@redhat.com>
7490 * infrun.c (handle_inferior_event): Store the exit code for
7491 --return-child-result here, instead of ...
7492 (print_exited_reason): ... here.
7494 2014-05-21 Pedro Alves <palves@redhat.com>
7497 * gdbthread.h (struct thread_control_state): New field
7499 * infrun.c (follow_fork): Copy the new thread control field to the
7501 (clear_proceed_status_thread): Clear the new thread control field.
7502 (proceed): Set the new thread control field.
7503 * interps.h (command_interp): Declare.
7504 * interps.c (command_interpreter): New global.
7505 (command_interp): New function.
7506 (interp_exec): Set `command_interpreter' while here.
7507 * cli-out.c (cli_uiout_dtor): New function.
7508 (cli_ui_out_impl): Install it.
7509 * mi/mi-interp.c: Include cli-out.h.
7510 (mi_cmd_interpreter_exec): Add comment.
7511 (restore_current_uiout_cleanup): New function.
7512 (ui_out_free_cleanup): New function.
7513 (mi_on_normal_stop): If finishing an execution command started by
7514 a CLI command, or any kind of breakpoint-like event triggered,
7515 print the stop event to the output (CLI) stream.
7516 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7518 2014-05-21 Pedro Alves <palves@redhat.com>
7520 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7521 current source line having changed.
7522 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7523 * infrun.c (normal_stop): Adjust call to
7524 set_current_sal_from_frame.
7525 * source.c (clear_lines_listed_range): New function.
7526 (set_current_source_symtab_and_line, identify_source_line): Clear
7527 the lines listed range.
7528 (line_info): Handle the first "info line" after the current source
7529 line having changed.
7530 * stack.c (print_stack_frame): Remove center handling.
7531 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7534 2014-05-21 Pedro Alves <palves@redhat.com>
7536 * inf-child.c (inf_child_mourn_inferior): New function.
7537 * inf-child.h (inf_child_mourn_inferior): New declaration.
7538 * darwin-nat.c (darwin_mourn_inferior): Use
7539 inf_child_mourn_inferior.
7540 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7541 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7542 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7543 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7544 * windows-nat.c (windows_mourn_inferior): Likewise.
7546 2014-05-21 Doug Evans <xdje42@gmail.com>
7548 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7550 2014-05-21 Doug Evans <xdje42@gmail.com>
7552 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7553 (gdbscm_out_of_range_error): Ditto.
7554 (gdbscm_memory_error): Ditto.
7555 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7556 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7557 (gdbscm_out_of_range_error): Update.
7558 (gdbscm_memory_error): Update.
7559 (gdbscm_scm_to_target_string_unsafe): Delete.
7561 2014-05-21 Pedro Alves <palves@redhat.com>
7563 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7565 (inf_child_open_target): New function.
7566 (inf_child_open): Use inf_child_open_target to push the target
7567 instead of erroring out.
7568 (inf_child_disconnect, inf_child_close)
7569 (inf_child_maybe_unpush_target): New functions.
7570 (inf_child_target): Install inf_child_disconnect and
7571 inf_child_close. Store a pointer to the returned object.
7572 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7574 * target.c (auto_connect_native_target): New global.
7575 (show_default_run_target): New function.
7576 (find_default_run_target): Return NULL if automatically connecting
7577 to the native target is disabled.
7578 (_initialize_target): Install set/show auto-connect-native-target.
7579 * NEWS: Mention "set auto-connect-native-target", and "target
7581 * linux-nat.c (super_close): New global.
7582 (linux_nat_close): Call super_close.
7583 (linux_nat_add_target): Store a pointer to the base class's
7585 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7586 inf_child_maybe_unpush.
7587 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7589 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7590 the inferior. Use inf_child_maybe_unpush_target.
7591 (inf_ttrace_attach): Don't push the target if it is already
7593 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7594 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7595 after mourning the inferior. Use inf_child_maybe_unpush_target.
7596 (darwin_attach_pid): Don't push the target if it is already
7598 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7599 mourning the inferior. Use inf_child_maybe_unpush_target.
7600 (gnu_detach): Use inf_child_maybe_unpush_target.
7601 * go32-nat.c (go32_create_inferior): Don't push the target if it
7603 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7604 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7605 (procfs_open): Rename to ...
7606 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7607 comments. Can target_preopen before changing node. Call
7608 inf_child_open_target to push the target explicitly.
7609 (procfs_attach): Don't push the target if it is already pushed.
7610 (procfs_detach): Use inf_child_maybe_unpush_target.
7611 (procfs_create_inferior): Don't push the target if it is already
7613 (nto_native_ops): New global.
7614 (procfs_open): Reimplement.
7615 (procfs_native_open): New function.
7616 (init_procfs_targets): Install procfs_native_open as to_open of
7617 "target native". Store a pointer to the "native" target in
7619 * procfs.c (procfs_attach): Don't push the target if it is already
7621 (procfs_detach): Use inf_child_maybe_unpush_target.
7622 (procfs_mourn_inferior): Only unpush the target after mourning the
7623 inferior. Use inf_child_maybe_unpush_target.
7624 (procfs_init_inferior): Don't push the target if it is already
7626 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7627 if it is already pushed.
7629 2014-05-21 Pedro Alves <palves@redhat.com>
7631 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7632 and "procfs" targets are now called "native" instead.
7634 2014-05-21 Pedro Alves <palves@redhat.com>
7636 * go32-nat.c (go32_open): Delete.
7637 (go32_target): Don't override the to_open method.
7639 2014-05-21 Pedro Alves <palves@redhat.com>
7641 * nto-procfs.c (procfs_can_run): New function.
7642 (nto_procfs_ops): New global.
7643 (init_procfs_targets): New, based on procfs_target. Install
7644 "target native" in addition to "target procfs".
7645 (_initialize_procfs): Call init_procfs_targets instead of adding
7648 2014-05-21 Pedro Alves <palves@redhat.com>
7650 * windows-nat.c (windows_target): Don't override to_shortname,
7651 to_longname or to_doc.
7653 2014-05-21 Pedro Alves <palves@redhat.com>
7655 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7658 2014-05-21 Pedro Alves <palves@redhat.com>
7660 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7661 to_shortname, to_longname or to_doc.
7663 2014-05-21 Pedro Alves <palves@redhat.com>
7665 * go32-nat.c (go32_target): Don't override to_shortname,
7666 to_longname or to_doc.
7668 2014-05-21 Pedro Alves <palves@redhat.com>
7670 * inf-child.c (inf_child_open): Remove mention of "child".
7671 (inf_child_target): Rename target to "native" instead of "child".
7673 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7675 * Makefile.in (SFILES): Delete "regset.c".
7676 (COMMON_OBS): Delete "regset.o".
7678 * regset.h (regset_alloc): Delete prototype.
7680 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7682 * sparc-linux-tdep.c (sparc32_linux_gregset)
7683 (sparc32_linux_fpregset): New static regset structures.
7684 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7685 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7687 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7688 (sparc64_linux_fpregset): New static regset structures.
7689 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7690 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7691 New static regset structures.
7692 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7693 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7694 New static regset structures.
7695 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7696 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7697 New static regset structures.
7698 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7699 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7700 New static regset structures.
7701 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7703 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7705 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7706 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7707 register maps ("regmaps") from "*regset" to "*regmap". Do this
7708 for all regmap types and variables.
7709 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7710 (sparc32_linux_supply_core_gregset)
7711 (sparc32_linux_collect_core_gregset)
7712 (sparc32_linux_supply_core_fpregset)
7713 (sparc32_linux_collect_core_fpregset): Likewise.
7714 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7715 (sparc_gregmap, sparc_fpregmap): ... these.
7716 (sparc_supply_gregset, sparc_collect_gregset)
7717 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7718 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7719 (_initialize_sparc_nat): Rename regmaps.
7720 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7721 (sparc_gregmap, sparc_fpregmap): ... these.
7722 (sparc_supply_gregset, sparc_collect_gregset)
7723 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7724 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7726 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7727 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7729 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7731 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7732 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7733 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7735 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7736 (sparc32_bsd_fpregset): Rename to...
7737 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7738 (sparc32_bsd_fpregmap): ... these.
7739 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7740 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7741 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7742 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7743 (struct sparc_gregmap, struct sparc_fpregmap)
7744 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7745 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7746 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7747 (sparc32_supply_regset, sparc32_collect_gregset)
7748 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7750 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7751 (sparc64_linux_ptrace_gregmap): ... this.
7752 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7753 (_initialize_sparc64_linux_nat): Rename regmaps.
7754 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7755 (sparc64_linux_core_gregmap): ... this.
7756 (sparc64_linux_supply_core_gregset)
7757 (sparc64_linux_collect_core_gregset)
7758 (sparc64_linux_supply_core_fpregset)
7759 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7760 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7761 (sparc64_sol2_fpregset): Rename to...
7762 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7763 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7764 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7766 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7767 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7768 (sparc64_bsd_fpregset): Rename to...
7769 (struct sparc_gregmap, sparc64_sol2_gregmap)
7770 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7771 (sparc64_bsd_fpregmap): ... these.
7772 (sparc64_supply_gregset, sparc64_collect_gregset)
7773 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7775 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7776 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7777 (sparc64fbsd_gregmap): ... this.
7778 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7779 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7781 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7782 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7783 (sparc64nbsd_collect_fpregset): Likewise.
7784 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7785 (sparc64nbsd_gregmap): ... this.
7786 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7788 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7789 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7790 (sparc64obsd_gregmap): ... this.
7791 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7793 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7794 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7795 (sparc32nbsd_gregmap): ... this.
7796 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7799 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7801 * score-tdep.c (score7_linux_gregset): New static regset
7803 (score7_linux_regset_from_core_section): Remove dynamic regset
7805 (score_gdbarch_init): Drop allocation of tdep structure.
7806 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7808 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7810 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7812 (am33_regset_from_core_section): Remove dynamic regset
7815 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7817 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7818 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7820 (mips_linux_regset_from_core_section): Remove dynamic regset
7822 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7823 'gregset64', 'fpregset', and 'fpregset64'.
7824 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7825 deleted tdep fields.
7827 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7829 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7831 (amd64_regset_from_core_section): Remove dynamic regset
7833 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7835 (amd64obsd_regset_from_core_section): Remove dynamic regset
7837 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7839 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7840 x86-common regset supply function.
7841 * i386-tdep.c (i386_collect_gregset): Make static.
7842 (i386_gregset): New global regset structure.
7843 (i386_fpregset, i386_xstateregset): New static regset structures.
7844 (i386_regset_from_core_section): Remove dynamic regset
7846 (i386_gdbarch_init): Remove initialization of tdep fields
7847 'gregset', 'fpregset', and 'xstateregset'.
7848 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7849 'fpregset', and 'xstateregset'.
7850 (i386_collect_gregset): Remove prototype.
7851 (i386_gregset): New declaration.
7852 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7854 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7857 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7859 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7860 (arm_linux_vfpregset): New static regset structures.
7861 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7863 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7864 and 'vfpregset' fields.
7866 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7868 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7869 (aarch64_linux_fpregset): New static regset structures.
7870 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7871 of regset structures.
7872 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7875 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7877 * regset.h (struct regset): Remove gdbarch field.
7878 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7879 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7880 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7882 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7883 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7884 (ppc32_linux_vsxregset): Likewise.
7885 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7886 via the regcache instead of the regset.
7887 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7888 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7889 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7890 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7893 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7895 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7896 Constify structures.
7897 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7898 (alphanbsd_aout_gregset): Likewise.
7899 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7900 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7902 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7903 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7905 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7906 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7907 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7908 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7909 * m88k-tdep.c (m88k_gregset): Likewise.
7910 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7911 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7912 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7913 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7914 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7915 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7916 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7917 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7918 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7920 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7921 * sh-tdep.h (sh_corefile_gregset): Likewise.
7922 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7923 * vax-tdep.c (vax_gregset): Likewise.
7925 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7927 Fix TLS access for -static -pthread.
7928 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7929 (try_thread_db_load_1): Initialize it.
7930 (thread_db_get_thread_local_address): Call it if LM is zero.
7931 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7932 * target.h (struct target_ops) (to_get_thread_local_address): Add
7933 load_module_addr comment.
7935 2014-05-21 Pedro Alves <palves@redhat.com>
7937 * dcache.c (dcache_read_memory_partial): If reading the cache line
7938 fails, fallback to reading just the memory the caller wanted.
7940 2014-05-20 Doug Evans <dje@google.com>
7942 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7943 instead of get_current_arch.
7945 2014-05-20 Pedro Alves <palves@redhat.com>
7947 * NEWS: Mention that compare-sections now works with all targets.
7949 * remote.c (PACKET_qCRC): New enum value.
7950 (remote_verify_memory): Don't send qCRC if the target has no
7951 execution. Use packet_support/packet_ok. If the target doesn't
7952 support the qCRC packet, fallback to a deep memory copy.
7953 (compare_sections_command): Say "target image" instead of "remote
7955 (_initialize_remote): Add PACKET_qCRC to the list of config
7956 packets that have no associated command. Extend comment.
7957 * target.c (simple_verify_memory, default_verify_memory): New
7959 * target.h (struct target_ops) <to_verify_memory>: Default to
7960 default_verify_memory.
7961 (simple_verify_memory): New declaration.
7962 * target-delegates.c: Regenerate.
7964 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7966 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7968 2014-05-20 Hui Zhu <hui@codesourcery.com>
7969 Yao Qi <yao@codesourcery.com>
7972 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7973 and change address of sp and pc.
7975 2014-05-19 Tom Tromey <tromey@redhat.com>
7977 * gdbtypes.c (rank_function): Use XNEWVEC.
7978 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7980 2014-05-19 Doug Evans <dje@google.com>
7982 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7983 build_type_unit_groups and moved closer to only caller. Remove
7984 arguments. All references updated. Remove outdated .gdb_index
7986 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7987 build_type_psymtabs_1.
7989 2014-05-19 Doug Evans <dje@google.com>
7991 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7992 n_type_unit_groups, all_type_unit_groups. All uses removed.
7993 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7994 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7995 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7996 (add_type_unit_group_to_table): Delete.
7998 2014-05-19 Doug Evans <dje@google.com>
8000 * eval.c (evaluate_subexp_standard): Add some comments.
8002 2014-05-17 Doug Evans <xdje42@gmail.com>
8004 * progspace.c (remove_program_space): Delete, unused.
8005 * progspace.h (remove_program_space): Ditto.
8007 2014-05-17 Doug Evans <xdje42@gmail.com>
8009 * inferior.c (prune_inferiors): Fix comment.
8010 (remove_inferior_command): Call prune_program_spaces.
8012 2014-05-16 Doug Evans <dje@google.com>
8014 New command line option -D.
8016 * main.c (set_gdb_data_directory): New function.
8017 (captured_main): Recognize -D. Flag error for --data-directory "".
8018 Call set_gdb_data_directory.
8019 (print_gdb_help): Print --data-directory, -D.
8020 * main.h (set_gdb_data_directory): Declare.
8021 * top.c (staged_gdb_datadir): New static global.
8022 (set_gdb_datadir): Call set_gdb_data_directory
8023 (show_gdb_datadir): New function.
8024 (init_main): Update init of data-directory parameter.
8026 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8028 Import the "dirfd" gnulib module.
8029 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8030 * gnulib/aclocal.m4: Update.
8031 * gnulib/config.in: Update.
8032 * gnulib/configure: Update.
8033 * gnulib/import/Makefile.am: Update.
8034 * gnulib/import/Makefile.in: Update.
8035 * gnulib/import/dirfd.c: New.
8036 * gnulib/import/m4/dirfd.m4: New.
8037 * gnulib/import/m4/gnulib-cache.m4: Update.
8038 * gnulib/import/m4/gnulib-comp.m4: Update.
8040 2014-05-16 Pierre Muller <muller@sourceware.org>
8041 Yao Qi <yao@codesourcery.com>
8043 * valprint.c (print_wchar): Move the code on checking whether
8044 W is a printable wide char to the default branch of switch
8045 statement below. Call wchar_printable instead of gdb_iswprint.
8047 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8049 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8050 ldr.w and ldrd instructions.
8052 2014-05-15 Doug Evans <dje@google.com>
8054 * dwarf2read.c (read_structure_type): Delete outdated comments.
8056 2014-05-14 Tom Tromey <tromey@redhat.com>
8058 * macrocmd.c (print_macro_definition): Reindent.
8060 2014-05-13 Doug Evans <xdje42@gmail.com>
8062 * python/py-cmd.c (cmdpy_completer): Add comment.
8063 (completers): Make const.
8065 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8067 * infrun.c (resume): Remove should_resume (unused). Move up
8068 declaration of resume_ptid.
8070 2014-05-13 Tom Tromey <tromey@redhat.com>
8072 * language.h (unop_type_check): Remove.
8073 (binop_type_check): Don't declare.
8075 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8077 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8078 call to regcache_raw_collect.
8080 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8082 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8083 mi_console->quote as the quoting character.
8085 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8087 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8089 2014-04-29 Tom Tromey <tromey@redhat.com>
8091 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8092 "show debug varobj".
8094 2014-05-07 Kyle McMartin <kyle@redhat.com>
8096 Pushed by Joel Brobecker <brobecker@adacore.com>.
8097 * aarch64-tdep.c (aarch64_software_single_step): New function.
8098 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8099 with aarch64_software_single_step.
8101 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8105 2014-05-05 Keith Seitz <keiths@redhat.com>
8107 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8108 variable or history value is successfully parsed.
8110 2014-05-05 Yao Qi <yao@codesourcery.com>
8111 Pedro Alves <palves@redhat.com>
8113 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8114 address of blocks that intersects the requested range. Trim
8115 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8117 * ctf.c (ctf_xfer_partial): Likewise.
8119 2014-05-05 Yao Qi <yao@codesourcery.com>
8121 * printcmd.c (display_command): Remove the check to
8122 target_has_execution.
8124 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8126 * ppcobsd-nat.c: Include "obsd-nat.h".
8127 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8129 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8131 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8133 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8134 and 16-bit signed and unsigned arguments. Update comment.
8135 (stap_parse_probe_arguments): Extend code to handle such
8136 arguments. Use warning instead of complaint to notify about
8137 unrecognized bitness.
8139 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8141 PR breakpoints/16889
8142 * stap-probe.c (stap_parse_probe_arguments): Simplify
8143 check for non-prefixed probes (i.e., probes whose
8144 arguments do not start with "N@"). Always set the
8145 argument type to a sane value.
8147 2014-05-01 David Taylor <dtaylor@emc.com>
8149 * remote.c (compare_sections_command): Add -r option to compare
8150 all loadable read-only sections.
8152 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8154 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8155 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8157 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8158 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8159 Remove unused CORE_ADDR argument. Update all callers.
8161 2014-04-29 Pedro Alves <palves@redhat.com>
8163 * remote.c (struct packet_config) <detect>: Extend comment.
8164 (add_packet_config_cmd): Don't set the config's detect or support
8166 (init_all_packet_configs): Also initialize the config's 'detect'
8168 (reset_all_packet_configs_support): New function.
8169 (remote_open_1): Call reset_all_packet_configs_support instead of
8170 init_all_packet_configs.
8171 (_initialize_remote): Initialize all packet configs. Assert that
8172 all packets have an associated command, except a few known
8175 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8177 * dwarf2read.c (read_subrange_type): Handle dynamic
8178 DW_AT_lower_bound attributes.
8180 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8182 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8183 dynamic bounds before computing its upper bound.
8184 (ada_discrete_type_low_bound): Same as above with the lower bound.
8186 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8188 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8189 range types. Adjust the array handling implementation to
8190 take advantage of this change.
8191 (resolve_dynamic_range): New function, mostly extracted from
8192 resolve_dynamic_bounds.
8193 (resolve_dynamic_array): New function, mostly extracted from
8194 resolve_dynamic_bounds.
8195 (resolve_dynamic_bounds): Delete.
8196 (resolve_dynamic_type): Reimplement. Add handling of
8197 TYPE_CODE_RANGE types.
8199 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8201 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8202 handling of parallel ___XA types.
8204 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8206 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8207 unnecessary second call to static_unwrap_type.
8209 2014-04-27 Hui Zhu <hui@codesourcery.com>
8211 * stack.c (print_frame_info): Call do_gdb_disassembly with
8212 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8214 2014-04-26 Doug Evans <xdje42@gmail.com>
8216 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8218 2014-04-25 Pedro Alves <palves@redhat.com>
8221 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8222 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8223 and newline from built string.
8224 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8225 (linux_ptrace_attach_fail_reason): ... this.
8226 * linux-nat.c (linux_nat_attach): Adjust to use
8227 linux_ptrace_attach_fail_reason.
8229 2014-04-25 Pedro Alves <palves@redhat.com>
8231 * remote.c (struct remote_state): Remove multi_process_aware,
8232 non_stop_aware, cond_tracepoints, cond_breakpoints,
8233 breakpoint_commands, fast_tracepoints, static_tracepoints,
8234 install_in_trace, disconnected_tracing,
8235 enable_disable_tracepoints, string_tracing, and
8236 augmented_libraries_svr4_read fields.
8237 (remote_multi_process_p): Move further below in the file.
8238 (struct packet_config): Add comments.
8239 (update_packet_config): Delete function.
8240 (show_packet_config_cmd): Use packet_config_support.
8241 (add_packet_config_cmd): Use NULL as set callback.
8242 (packet_ok): "set remote foo-packet"-style commands no longer
8243 change config->supported -- adjust.
8244 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8245 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8246 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8247 (PACKET_QNonStop, PACKET_multiprocess_feature)
8248 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8249 (PACKET_DisconnectedTracing_feature)
8250 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8251 (set_remote_protocol_packet_cmd): Delete function.
8252 (packet_config_support, packet_support): New functions.
8253 (set_remote_protocol_Z_packet_cmd): Don't call
8254 update_packet_config.
8255 (remote_query_attached, remote_pass_signals)
8256 (remote_program_signals, remote_threads_info)
8257 (remote_threads_extra_info, remote_start_remote): Use
8259 (remote_start_remote): Use packet_config_support and
8261 (init_all_packet_configs): Set all packets to unknown support,
8262 instead of calling update_packet_config.
8263 (remote_check_symbols): Use packet_support.
8264 (remote_supported_packet): Unconditionally set the packet config's
8266 (remote_multi_process_feature, remote_non_stop_feature)
8267 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8268 (remote_breakpoint_commands_feature)
8269 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8270 (remote_install_in_trace_feature)
8271 (remote_disconnected_tracing_feature)
8272 (remote_enable_disable_tracepoint_feature)
8273 (remote_string_tracing_feature)
8274 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8275 (remote_protocol_features): Adjust to use remote_supported_packet
8276 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8277 "ConditionalTracepoints", "ConditionalBreakpoints",
8278 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8279 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8280 "EnableDisableTracepoints", and "tracenz".
8281 (remote_query_supported): Use packet_support.
8282 (remote_open_1): Adjust.
8283 (extended_remote_attach_1): Use packet_support. Switch on the
8284 result of packet_ok instead of checking whether the packet ended
8286 (remote_vcont_resume): Use packet_support.
8287 (remote_resume, remote_stop_ns, fetch_register_using_p)
8288 (remote_prepare_to_store, store_register_using_P)
8289 (check_binary_download, remote_write_bytes): Use packet_support.
8290 (remote_vkill): Use packet_support. Switch on the result of
8291 packet_ok instead of checking whether the packet ended up
8293 (extended_remote_supports_disable_randomization): Use
8295 (extended_remote_run): Switch on the result of packet_ok instead
8296 of checking whether the packet ended up disabled.
8297 (remote_insert_breakpoint, remote_remove_breakpoint)
8298 (remote_insert_watchpoint, remote_remove_watchpoint)
8299 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8301 (remote_search_memory): Use packet_config_support.
8302 (remote_get_thread_local_address, remote_get_tib_address)
8303 (remote_hostio_send_command, remote_can_execute_reverse): Use
8305 (remote_supports_cond_tracepoints)
8306 (remote_supports_cond_breakpoints)
8307 (remote_supports_fast_tracepoints)
8308 (remote_supports_static_tracepoints)
8309 (remote_supports_install_in_trace)
8310 (remote_supports_enable_disable_tracepoint)
8311 (remote_supports_string_tracing)
8312 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8313 the packet config says the feature is enabled or disabled.
8314 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8315 (remote_get_trace_status): Use packet_support.
8316 (remote_set_disconnected_tracing): Adjust to check whether the
8317 feature is enabled with packet_support.
8318 (remote_set_trace_buffer_size, remote_use_agent)
8319 (remote_can_use_agent, remote_supports_btrace): Use
8321 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8322 Use packet_config_support.
8323 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8324 the packet config says the feature is enabled or disabled.
8325 (set_range_stepping): Use packet_support.
8327 2014-04-25 Tom Tromey <tromey@redhat.com>
8329 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8332 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8334 * NEWS: Mention support for C99 variable length arrays.
8336 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8338 * ada-lang.c (standard_exc): Expand introductory comment.
8340 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8341 Walfred Tedeschi <walfred.tedeschi@intel.com>
8343 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8345 (amd64_linux_read_description): Add code to handle AVX512 xstate
8346 mask and return respective tdesc.
8347 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8348 and features/i386/x32-avx512-linux.c.
8349 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8350 (amd64_linux_core_read_description): Add code to handle AVX512
8351 xstate mask and return respective tdesc.
8352 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8353 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8355 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8356 (tdesc_amd64_avx512_linux): New prototype.
8357 (tdesc_x32_avx512_linux): Likewise.
8358 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8359 features/i386/x32-avx512.c.
8360 (amd64_ymm_avx512_names): New register names for pseudo
8362 (amd64_ymmh_avx512_names): New register names for raw registers
8364 (amd64_k_names): New register names for K registers.
8365 (amd64_zmmh_names): New register names for ZMM raw registers.
8366 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8367 (amd64_xmm_avx512_names): New register names for XMM16-31
8369 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8371 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8372 if feature is present.
8373 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8374 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8375 (AMD64_NUM_REGS): Adjust to new number of registers.
8376 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8377 registers supplied via XSTATE by AVX512 registers.
8378 (i386_linux_read_description): Add case for AVX512.
8379 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8380 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8381 (i386_linux_core_read_description): Add case for AVX512.
8382 (i386_linux_init_abi): Install supported register note section
8384 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8386 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8387 registers to be number of zmm7h + 1.
8388 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8389 * i386-tdep.c: Include features/i386/i386-avx512.c.
8390 (i386_zmm_names): Add ZMM pseudo register names array.
8391 (i386_zmmh_names): Add ZMM raw register names array.
8392 (i386_k_names): Add K raw register names array.
8393 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8394 registers. AVX512 has 16 more ZMM registers than there are YMM
8396 (i386_zmmh_regnum_p): Add function to look up register number of
8398 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8399 (i386_k_regnum_p): Likewise for K raw registers.
8400 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8401 registers added by AVX512.
8402 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8403 registers added by AVX512.
8404 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8406 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8407 (i386_pseudo_register_name): Add ZMM pseudo registers.
8408 (i386_zmm_type): Construct and return vector registers type for ZMM
8410 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8411 ZMM0-31 pseudo registers and K registers.
8412 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8413 and YMM16-31 registers from register cache.
8414 (i386_pseudo_register_write): Add code to write K, ZMM and
8416 (i386_register_reggroup_p): Add code to include/exclude AVX512
8417 registers in/from respective register groups.
8418 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8419 registers if feature is present in xcr0.
8420 (i386_gdbarch_init): Add code to initialize AVX512 feature
8421 variables in tdep structure, wire in pseudo registers and call
8422 initialize_tdesc_i386_avx512.
8423 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8425 (i386_regnum): Add AVX512 registers.
8426 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8427 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8428 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8429 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8431 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8432 (i386_ymm_avx512_regnum_p): Likewise.
8433 (i386_k_regnum_p): Likewise.
8434 (i386_zmm_regnum_p): Likewise.
8435 (i386_zmmh_regnum_p): Likewise.
8436 * i387-tdep.c : Update year in copyright notice.
8437 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8439 (XSAVE_YMM_AVX512_ADDR): New macro.
8440 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8442 (XSAVE_XMM_AVX512_ADDR): New macro.
8443 (xsave_avx512_k_offset): New table for K register offsets in
8445 (XSAVE_AVX512_K_ADDR): New macro.
8446 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8448 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8449 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8451 (i387_collect_xsave): Add code to collect AVX512 registers from
8453 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8454 of XMM16-31 registers.
8455 (I387_NUM_K_REGS): New define for number of K registers.
8456 (I387_K0_REGNUM): New define for K0 register number.
8457 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8458 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8459 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8461 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8462 (I387_XMM16_REGNUM): New define for XMM16 register number.
8463 (I387_YMM0_REGNUM): New define for YMM0 register number.
8464 (I387_KEND_REGNUM): New define for last K register number.
8465 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8466 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8468 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8470 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8472 * features/Makefile: Add AVX512 related files.
8473 * features/i386/32bit-avx512.xml: New file.
8474 * features/i386/64bit-avx512.xml: Likewise.
8475 * features/i386/amd64-avx512-linux.c: Likewise.
8476 * features/i386/amd64-avx512-linux.xml: Likewise.
8477 * features/i386/amd64-avx512.c: Likewise.
8478 * features/i386/amd64-avx512.xml: Likewise.
8479 * features/i386/i386-avx512-linux.c: Likewise.
8480 * features/i386/i386-avx512-linux.xml: Likewise.
8481 * features/i386/i386-avx512.c: Likewise.
8482 * features/i386/i386-avx512.xml: Likewise.
8483 * features/i386/x32-avx512-linux.c: Likewise.
8484 * features/i386/x32-avx512-linux.xml: Likewise.
8485 * features/i386/x32-avx512.c: Likewise.
8486 * features/i386/x32-avx512.xml: Likewise.
8487 * regformats/i386/amd64-avx512-linux.dat: New file.
8488 * regformats/i386/amd64-avx512.dat: Likewise.
8489 * regformats/i386/i386-avx512-linux.dat: Likewise.
8490 * regformats/i386/i386-avx512.dat: Likewise.
8491 * regformats/i386/x32-avx512-linux.dat: Likewise.
8492 * regformats/i386/x32-avx512.dat: Likewise.
8493 * NEWS: Add note about new support for AVX512.
8496 2014-04-23 Pedro Alves <palves@redhat.com>
8498 * breakpoint.c (insert_bp_location): Tolerate errors if the
8499 breakpoint is set in a user-loaded objfile.
8500 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8501 location is marked shlib_disabled. If the breakpoint is set in a
8502 user-loaded objfile is a GDB-side memory breakpoint, validate it
8503 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8504 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8506 * mem-break.c (memory_validate_breakpoint): New function.
8507 * objfiles.c (userloaded_objfile_contains_address_p): New
8509 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8510 * target.h (memory_validate_breakpoint): New declaration.
8512 2014-04-23 Pedro Alves <palves@redhat.com>
8514 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8515 the breakpoint is set in a shared library, only suppress
8516 errors for software breakpoints, not hardware breakpoints.
8518 2014-04-22 Pedro Alves <palves@redhat.com>
8520 * infrun.c (schedlock_applies): New function, factored out from
8521 find_thread_needs_step_over.
8522 (find_thread_needs_step_over): Use it.
8523 (switch_back_to_stepped_thread): Always clear trap_expected if the
8524 step over is finished. Return early if scheduler locking applies.
8525 Look for the stepping thread and a potential step-over thread with
8527 (currently_stepping_or_nexting_callback): Delete.
8529 2014-04-22 Nick Clifton <nickc@redhat.com>
8531 * NEWS: Mention that ARM sim now supports tracing.
8533 2014-04-22 Yao Qi <yao@codesourcery.com>
8535 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8537 * tracefile.c (tracefile_fetch_registers): ... it. New
8539 * tracefile.h (tracefile_fetch_registers): Declare.
8540 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8541 tracefile_fetch_registers.
8543 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8546 * windows-nat.c (thread_rec): Don't display a warning when
8547 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8548 fails for any reason, set th->suspended to -1, so that we don't
8549 try to resume such a thread. Also, don't return NULL in these
8550 cases, to avoid completely ruin the session due to "PC register is
8551 not available" error.
8552 (do_windows_fetch_inferior_registers): Check errors in
8553 GetThreadContext call.
8554 (windows_continue): Accept an additional argument KILLED; if not
8555 zero, ignore errors in the SetThreadContext call, since the
8556 inferior was killed and is shutting down.
8557 (windows_resume, get_windows_debug_event)
8558 (windows_create_inferior, windows_mourn_inferior)
8559 (windows_kill_inferior): All callers of windows_continue changed
8560 to adjust to its new calling sequence.
8562 2014-04-19 Yao Qi <yao@codesourcery.com>
8564 * ctf.c (ctf_open): Call post_create_inferior.
8566 2014-04-19 Yao Qi <yao@codesourcery.com>
8568 * ctf.c (handle_id): New static variable.
8569 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8570 value. Get the declaration of event "register" and get length
8571 of field "contents".
8573 2014-04-19 Yao Qi <yao@codesourcery.com>
8575 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8577 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8579 * valops.c (oload_method_static): Remove unnecessary argument
8580 METHOD. Update all callers.
8582 2014-04-18 Pedro alves <palves@redhat.com>
8583 Tom Tromey <tromey@redhat.com>
8586 * frame.c (get_prev_frame_1): Rename to ...
8587 (get_prev_frame_always): ... this, and make extern. Adjust.
8588 (skip_artificial_frames): Use get_prev_frame_always.
8589 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8590 (get_frame_unwind_stop_reason): Adjust to rename.
8591 * frame.h (get_prev_frame_always): Declare.
8592 * inline-frame.c: Include frame.h.
8593 (inline_frame_this_id): Use get_prev_frame_always.
8595 2014-04-18 Tristan Gingold <gingold@adacore.com>
8597 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8598 code by using bfd_mach_o_get_base_address.
8600 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8602 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8603 (spu_ax_pseudo_register_collect): New function.
8604 (spu_ax_pseudo_register_push_stack): Likewise.
8605 (spu_dwarf_reg_to_regnum): Likewise.
8606 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8608 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8610 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8611 Replace FRAME argument with FRAME_ID.
8612 * gdbarch.c, gdbarch.h: Regenerate.
8613 * findvar.c (default_value_from_register): Add GDBARCH argument;
8614 replace FRAME by FRAME_ID. No longer call get_frame_id.
8615 (value_from_register): Update call to gdbarch_value_from_register.
8616 * value.h (default_value_from_register): Update prototype.
8617 * s390-linux-tdep.c (s390_value_from_register): Update interface
8618 and call to default_value_from_register.
8619 * spu-tdep.c (spu_value_from_register): Likewise.
8621 * findvar.c (address_from_register): Remove TYPE argument.
8622 Do not call value_from_register; use gdbarch_value_from_register
8623 with null_frame_id instead.
8624 * value.h (address_from_register): Update prototype.
8625 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8626 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8627 address_from_register interface change.
8629 2014-04-17 Yao Qi <yao@codesourcery.com>
8631 * gdbtypes.h: Update comments to link to types and macros'
8634 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8636 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8638 2014-04-16 Keith Seitz <keiths@redhat.com>
8641 * dwarf2read.c (skip_one_die): Check that all relative-offset
8642 sibling DIEs fall within range of the current reader's buffer.
8643 (read_partial_die): Likewise.
8645 2014-04-16 Keith Seitz <keiths@redhat.com>
8648 * cp-namespace.c (lookup_symbol_file): If the type name of
8649 `this' is NULL, return immediately.
8651 2014-04-14 Keith Seitz <keiths@redhat.com>
8654 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8655 from symbol_matches_domain in symtab.c. All local callers
8656 of symbol_matches_domain updated.
8657 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8658 search STRUCT_DOMAIN.
8659 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8660 independently. standard_lookup will do that automatically.
8661 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8662 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8663 (cp_lookup_symbol_in_namespace): Likewise.
8664 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8665 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8666 may return a STRUCT_DOMAIN match.
8667 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8668 * cp-support.c: Include language.h.
8669 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8671 * psymtab.c (match_partial_symbol): Compare the requested
8672 domain with the symbol's domain directly.
8673 (lookup_partial_symbol): Likewise.
8674 * symtab.c (lookup_symbol_in_language): Explain when/why
8675 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8676 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8677 appropriate languages.
8678 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8679 and moved to ada-lang.c
8680 (lookup_block_symbol): Explain that this function only returns
8681 symbol matching the requested DOMAIN.
8682 Compare the requested domain with the symbol's domain directly.
8683 (iterate_over_symbols): Compare the requested domain with the
8684 symbol's domain directly.
8685 * symtab.h (symbol_matches_domain): Remove.
8687 2014-04-14 Tom Tromey <tromey@redhat.com>
8690 * c-exp.y (type_aggregate_p): New function.
8691 (qualified_name, classify_inner_name): Use it.
8692 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8693 and TYPE_TARGET_TYPE of an enum type.
8694 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8696 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8697 handle TYPE_DECLARED_CLASS.
8698 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8700 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8701 * valops.c (enum_constant_from_type): New function.
8702 (value_aggregate_elt): Use it.
8703 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8706 2014-04-14 Tom Tromey <tromey@redhat.com>
8708 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8709 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8711 * value.h (value_aggregate_elt): Update.
8713 2014-04-14 Tom Tromey <tromey@redhat.com>
8715 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8717 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8719 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8720 (evaluate_subexp_standard): Pass noside argument.
8721 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8722 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8723 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8724 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8725 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8727 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8729 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8730 points to a constant blob.
8732 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8734 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8735 property and store it as the high bound and flag the range accordingly.
8736 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8737 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8738 * gdbtypes.h (enum range_flags): New enum.
8739 (struct range_bounds): Add flags member.
8741 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8743 * c-typeprint.c (c_type_print_varspec_suffix): Added
8744 check for not yet resolved high bound. If unresolved, print
8745 "variable length" string to the console instead of random
8748 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8750 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8752 (ada_template_to_fixed_record_type_1): Likewise.
8753 (ada_to_fixed_type_1): Likewise.
8754 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8755 (cp_print_value): Likewise.
8756 * d-valprint.c (dynamic_array_type): Likewise.
8757 * findvar.c (address_of_variable): Likewise.
8758 * jv-valprint.c (java_value_print): Likewise.
8759 * valops.c (value_ind): Likewise.
8760 * value.c (coerce_ref): Likewise.
8762 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8764 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8765 value and retrieve the dynamic type size.
8767 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8769 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8770 passed to sizeof is dynamic evaluate the argument to compute the length.
8772 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8773 Joel Brobecker <brobecker@adacore.com>
8775 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8776 (dwarf2_evaluate_property): New function.
8777 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8778 * dwarf2read.c (attr_to_dynamic_prop): New function.
8779 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8781 * gdbtypes.c: Include dwarf2loc.h.
8782 (is_dynamic_type): New function.
8783 (resolve_dynamic_type): New function.
8784 (resolve_dynamic_bounds): New function.
8785 (get_type_length): New function.
8786 (check_typedef): Use get_type_length to compute type length.
8787 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8788 (TYPE_LOW_BOUND_KIND): New macro.
8789 (is_dynamic_type): New function prototype.
8790 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8791 to resolve dynamic properties of the type. Update comment.
8792 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8794 2014-04-14 Richard Henderson <rth@redhat.com>
8796 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8798 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8799 Doug Evans <xdje42@gmail.com>
8801 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8802 dereference TYPE_CODE_REF values.
8804 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8806 Revert the following changes due to regressions:
8808 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8809 (dwarf2_evaluate_property): New function.
8810 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8811 * dwarf2read.c (attr_to_dynamic_prop): New function.
8812 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8814 * gdbtypes.c: Include dwarf2loc.h.
8815 (is_dynamic_type): New function.
8816 (resolve_dynamic_type): New function.
8817 (resolve_dynamic_bounds): New function.
8818 (get_type_length): New function.
8819 (check_typedef): Use get_type_length to compute type length.
8820 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8821 (TYPE_LOW_BOUND_KIND): New macro.
8822 (is_dynamic_type): New function prototype.
8823 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8824 to resolve dynamic properties of the type. Update comment.
8825 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8827 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8828 passed to sizeof is dynamic evaluate the argument to compute the length.
8830 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8831 value and retrieve the dynamic type size.
8833 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8834 (ada_template_to_fixed_record_type_1): Likewise.
8835 (ada_to_fixed_type_1): Likewise.
8836 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8837 (cp_print_value): Likewise.
8838 * d-valprint.c (dynamic_array_type): Likewise.
8839 * eval.c (evaluate_subexp_with_coercion): Likewise.
8840 * findvar.c (address_of_variable): Likewise.
8841 * jv-valprint.c (java_value_print): Likewise.
8842 * valops.c (value_ind): Likewise.
8843 * value.c (coerce_ref): Likewise.
8845 * c-typeprint.c (c_type_print_varspec_suffix): Added
8846 check for not yet resolved high bound. If unresolved, print
8847 "variable length" string to the console instead of random
8850 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8851 property and store it as the high bound and flag the range accordingly.
8852 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8853 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8854 * gdbtypes.h (enum range_flags): New enum.
8855 (struct range_bounds): Add flags member.
8857 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8858 points to a constant blob.
8860 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8861 (evaluate_subexp_standard): Pass noside argument.
8862 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8863 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8864 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8865 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8866 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8868 2014-04-11 Keith Seitz <keiths@redhat.com>
8871 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8872 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8875 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8877 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8878 (evaluate_subexp_standard): Pass noside argument.
8879 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8880 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8881 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8882 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8883 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8885 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8887 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8888 points to a constant blob.
8890 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8892 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8893 property and store it as the high bound and flag the range accordingly.
8894 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8895 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8896 * gdbtypes.h (enum range_flags): New enum.
8897 (struct range_bounds): Add flags member.
8899 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8901 * c-typeprint.c (c_type_print_varspec_suffix): Added
8902 check for not yet resolved high bound. If unresolved, print
8903 "variable length" string to the console instead of random
8906 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8908 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8909 (ada_template_to_fixed_record_type_1): Likewise.
8910 (ada_to_fixed_type_1): Likewise.
8911 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8912 (cp_print_value): Likewise.
8913 * d-valprint.c (dynamic_array_type): Likewise.
8914 * eval.c (evaluate_subexp_with_coercion): Likewise.
8915 * findvar.c (address_of_variable): Likewise.
8916 * jv-valprint.c (java_value_print): Likewise.
8917 * valops.c (value_ind): Likewise.
8918 * value.c (coerce_ref): Likewise.
8920 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8922 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8923 value and retrieve the dynamic type size.
8925 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8927 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8928 passed to sizeof is dynamic evaluate the argument to compute the length.
8930 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8932 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8933 (dwarf2_evaluate_property): New function.
8934 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8935 * dwarf2read.c (attr_to_dynamic_prop): New function.
8936 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8938 * gdbtypes.c: Include dwarf2loc.h.
8939 (is_dynamic_type): New function.
8940 (resolve_dynamic_type): New function.
8941 (resolve_dynamic_bounds): New function.
8942 (get_type_length): New function.
8943 (check_typedef): Use get_type_length to compute type length.
8944 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8945 (TYPE_LOW_BOUND_KIND): New macro.
8946 (is_dynamic_type): New function prototype.
8947 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8948 to resolve dynamic properties of the type. Update comment.
8949 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8951 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8953 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8954 declaring high/low bounds and change uses accordingly. Call
8955 create_range_type instead of create_static_range_type.
8956 * gdbtypes.c (create_range_type): New function.
8957 (create_range_type): Convert bounds into struct bound_prop and pass
8958 them to create_range_type.
8959 * gdbtypes.h (struct bound_prop): New struct.
8960 (create_range_type): New function prototype.
8961 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8962 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8963 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8965 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8967 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8969 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8970 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8971 * ada-lang.c: All uses of create_range_type updated.
8972 * coffread.c: All uses of create_range_type updated.
8973 * dwarf2read.c: All uses of create_range_type updated.
8974 * f-exp.y: All uses of create_range_type updated.
8975 * m2-valprint.c: All uses of create_range_type updated.
8976 * mdebugread.c: All uses of create_range_type updated.
8977 * stabsread.c: All uses of create_range_type updated.
8978 * valops.c: All uses of create_range_type updated.
8979 * valprint.c: All uses of create_range_type updated.
8981 2014-04-10 Pedro Alves <palves@redhat.com>
8983 * breakpoint.c (single_step_breakpoints)
8984 (single_step_gdbarch): Move up in the file.
8985 (one_breakpoint_xfer_memory): New function, factored out from ...
8986 (breakpoint_xfer_memory): ... here. Also process single-step
8989 2014-04-09 Tristan Gingold <gingold@adacore.com>
8991 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8993 (darwin_decode_exception_message): Free port only after use.
8995 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8997 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8998 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8999 when setting the size of call_length.
9001 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9003 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9004 dereference TYPE_CODE_REF values.
9006 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9008 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9009 end of warning message.
9011 2014-04-03 Doug Evans <dje@google.com>
9013 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9014 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9016 2014-04-02 Alan Modra <amodra@gmail.com>
9018 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9019 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9020 (struct symbol_file_add_from_memory_args): Add size field.
9021 (find_vdso_size): New function.
9022 (add_vsyscall_page): Attempt to find vdso size.
9024 2014-04-01 Doug Evans <dje@google.com>
9026 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9028 2014-04-01 Tristan Gingold <gingold@adacore.com>
9030 * darwin-nat.c (darwin_encode_reply): Add prototype.
9031 (darwin_decode_exception_message): Reply to unknown inferiors.
9032 (darwin_decode_message): Handle message by id. Ignore message
9033 to unknown inferior.
9034 (darwin_wait): Discard unknown messages, add debug trace.
9036 2014-03-31 Doug Evans <dje@google.com>
9038 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9041 2014-03-31 Doug Evans <dje@google.com>
9043 New option "set print symbol-loading".
9045 * solib.c (solib_read_symbols): Only print symbol loading messages
9047 (solib_add): If symbol loading is in "brief" mode, notify user
9048 symbols are being loaded.
9049 (reload_shared_libraries_1): Ditto.
9050 * symfile.c (print_symbol_loading_off): New static global.
9051 (print_symbol_loading_brief): New static global.
9052 (print_symbol_loading_full): New static global.
9053 (print_symbol_loading_enums): New static global.
9054 (print_symbol_loading): New static global.
9055 (print_symbol_loading_p): New function.
9056 (symbol_file_add_with_addrs): Only print symbol loading messages
9058 (_initialize_symfile): Register "print symbol-loading" set/show
9060 * symfile.h (print_symbol_loading_p): Declare.
9062 2014-03-30 Doug Evans <xdje42@gmail.com>
9064 * infrun.c (set_last_target_status): New function.
9065 (handle_inferior_event): Call it.
9067 2014-03-30 Doug Evans <xdje42@gmail.com>
9069 * inferior.h (enum stop_kind): Improve comment.
9071 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9073 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9074 a reference, strip the reference layer before calling
9075 the lang_ops value_has_mutated callback.
9077 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9079 Remove some globals from our parser.
9080 * language.c (unk_lang_parser): Add "struct parser_state"
9082 * language.h (struct language_defn) <la_parser>: Likewise.
9083 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9084 (initialize_expout): Add "struct parser_state" argument.
9085 Rewrite function to use the parser state.
9086 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9087 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9088 write_exp_elt_longcst, write_exp_elt_dblcst,
9089 write_exp_elt_decfloatcst, write_exp_elt_type,
9090 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9091 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9092 write_dollar_variable): Likewise.
9093 (parse_exp_in_context_1): Use parser state.
9094 (insert_type_address_space): Add "struct parser_state" argument.
9096 (increase_expout_size): New function.
9097 * parser-defs.h: Forward declare "struct language_defn" and
9098 "struct parser_state".
9099 (expout, expout_size, expout_ptr): Remove extern declarations.
9100 (parse_gdbarch, parse_language): Rewrite macro declarations to
9101 accept the parser state.
9102 (struct parser_state): New struct.
9103 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9104 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9105 write_exp_elt_decfloatcst, write_exp_elt_type,
9106 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9107 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9108 write_exp_msymbol, write_dollar_variable,
9109 mark_struct_expression, insert_type_address_space): Add "struct
9110 parser_state" argument.
9111 (increase_expout_size): New function.
9112 * utils.c (do_clear_parser_state): New function.
9113 (make_cleanup_clear_parser_state): Likewise.
9114 * utils.h (make_cleanup_clear_parser_state): New function
9116 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9117 Update calls to write_exp* in order to pass the parser state.
9118 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9119 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9120 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9121 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9122 * stap-probe.c (stap_parse_register_operand): Likewise.
9123 (stap_parse_single_operand): Likewise.
9124 (stap_parse_argument_1): Likewise.
9125 (stap_parse_argument): Use parser state.
9126 * stap-probe.h: Include "parser-defs.h".
9127 (struct stap_parse_info) <pstate>: New field.
9128 * c-exp.y (parse_type): Rewrite to use parser state.
9129 (yyparse): Redefine to c_parse_internal.
9130 (pstate): New global variable.
9131 (parse_number): Add "struct parser_state" argument.
9132 (write_destructor_name): Likewise.
9133 (type_exp): Update calls to write_exp* and similars in order to
9135 (exp1, exp, variable, qualified_name, space_identifier,
9136 typename, typebase): Likewise.
9137 (write_destructor_name, parse_number, lex_one_token,
9138 classify_name, classify_inner_name, c_parse): Add "struct
9139 parser_state" argument. Update function to use parser state.
9140 * c-lang.h: Forward declare "struct parser_state".
9141 (c_parse): Add "struct parser_state" argument.
9142 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9143 (yyparse): Redefine macro to ada_parse_internal.
9144 (pstate): New variable.
9145 (write_int, write_object_renaming, write_var_or_type,
9146 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9147 type_int, type_long, type_long_long, type_float, type_double,
9148 type_long_double, type_char, type_boolean, type_system_address):
9149 Add "struct parser_state" argument.
9150 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9151 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9152 var_or_type, aggregate, aggregate_component_list,
9153 positional_list, others, component_group,
9154 component_associations): Update calls to write_exp* and similar
9155 functions in order to use parser state.
9156 (ada_parse, write_var_from_sym, write_int,
9157 write_exp_op_with_string, write_object_renaming,
9158 find_primitive_type, write_selectors, write_ambiguous_var,
9159 write_var_or_type, write_name_assoc, type_int, type_long,
9160 type_long_long, type_float, type_double, type_long_double,
9161 type_char, type_boolean, type_system_address): Add "struct
9162 parser_state" argument. Adjust function to use parser state.
9163 * ada-lang.c (parse): Likewise.
9164 * ada-lang.h: Forward declare "struct parser_state".
9165 (ada_parse): Add "struct parser_state" argument.
9166 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9167 calls to both functions.
9168 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9170 (yyparse): Redefine macro to f_parse_internal.
9171 (pstate): New variable.
9172 (parse_number): Add "struct parser_state" argument.
9173 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9174 and similars in order to use parser state.
9175 (parse_number): Adjust code to use parser state.
9177 (f_parse): New function.
9178 * f-lang.h: Forward declare "struct parser_state".
9179 (f_parse): Add "struct parser_state" argument.
9180 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9182 (yyparse): Redefine macro for java_parse_internal.
9183 (pstate): New variable.
9184 (push_expression_name, push_expression_name, insert_exp): Add
9185 "struct parser_state" argument.
9186 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9187 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9188 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9189 PostIncrementExpression, PostDecrementExpression,
9190 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9191 UnaryExpressionNotPlusMinus, CastExpression,
9192 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9193 RelationalExpression, EqualityExpression, AndExpression,
9194 ExclusiveOrExpression, InclusiveOrExpression,
9195 ConditionalAndExpression, ConditionalOrExpression,
9196 ConditionalExpression, Assignment, LeftHandSide): Update
9197 calls to write_exp* and similars in order to use parser state.
9198 (parse_number): Ajust code to use parser state.
9200 (java_parse): New function.
9201 (push_variable): Add "struct parser_state" argument. Adjust
9202 code to user parser state.
9203 (push_fieldnames, push_qualified_expression_name,
9204 push_expression_name, insert_exp): Likewise.
9205 * jv-lang.h: Forward declare "struct parser_state".
9206 (java_parse): Add "struct parser_state" argument.
9207 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9209 (yyparse): Redefine macro to m2_parse_internal.
9210 (pstate): New variable.
9211 (type_exp, exp, fblock, variable, type): Update calls to
9212 write_exp* and similars to use parser state.
9214 (m2_parse): New function.
9215 * m2-lang.h: Forward declare "struct parser_state".
9216 (m2_parse): Add "struct parser_state" argument.
9217 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9218 * objc-lang.h: Forward declare "struct parser_state".
9219 (end_msglist): Add "struct parser_state" argument.
9220 * p-exp.y (parse_type): Rewrite macro to use parser state.
9221 (yyparse): Redefine macro to pascal_parse_internal.
9222 (pstate): New variable.
9223 (parse_number): Add "struct parser_state" argument.
9224 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9225 write_exp* and similars in order to use parser state.
9226 (parse_number, yylex): Adjust code to use parser state.
9227 (pascal_parse): New function.
9228 * p-lang.h: Forward declare "struct parser_state".
9229 (pascal_parse): Add "struct parser_state" argument.
9230 * go-exp.y (parse_type): Rewrite macro to use parser state.
9231 (yyparse): Redefine macro to go_parse_internal.
9232 (pstate): New variable.
9233 (parse_number): Add "struct parser_state" argument.
9234 (type_exp, exp1, exp, variable, type): Update calls to
9235 write_exp* and similars in order to use parser state.
9236 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9237 to use parser state.
9238 (go_parse): Likewise.
9239 * go-lang.h: Forward declare "struct parser_state".
9240 (go_parse): Add "struct parser_state" argument.
9242 2014-03-27 Doug Evans <dje@google.com>
9244 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9246 2014-03-27 Doug Evans <dje@google.com>
9248 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9249 Remove argument abbrev_section. All callers updated.
9251 2014-03-27 Doug Evans <dje@google.com>
9253 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9254 addr_base, ranges_base.
9256 2014-03-26 Keith Seitz <keiths@redhat.com>
9258 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9259 types, not VAR_DOMAIN.
9261 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9263 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9265 * features/nios2-linux.c: Regenerated.
9266 * features/nios2.c: Regenerated.
9268 2014-03-25 Pedro Alves <palves@redhat.com>
9270 * cli/cli-script.c (script_from_file): Force the interpreter to
9273 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9275 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9276 small stack allocation.
9278 2014-03-24 Tristan Gingold <gingold@adacore.com>
9280 * darwin-nat.c (exc_server): Remove unused prototype.
9281 (darwin_dump_message): Correctly display data on x86_64.
9282 (darwin_encode_reply): Fix style.
9283 Add comments and fix indentation.
9285 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9287 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9289 2014-03-22 Doug Evans <xdje42@gmail.com>
9291 * infcmd.c: Whitespace fixes.
9292 (interrupt_command): Merge two function comments into one.
9294 2014-03-22 Doug Evans <xdje42@gmail.com>
9296 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9299 2014-03-22 Yao Qi <yao@codesourcery.com>
9301 * remote.c (target_read_live_memory): Remove.
9302 (memory_xfer_live_readonly_partial): Rename it to
9303 remote_xfer_live_readonly_partial. Remove argument 'object'.
9304 All callers updated. Call remote_read_bytes_1
9305 instead of target_read_live_memory.
9306 * tracepoint.c (set_traceframe_number): Remove.
9307 (make_cleanup_restore_traceframe_number): Likewise .
9308 * tracepoint.h (set_traceframe_number): Remove declaration.
9309 (make_cleanup_restore_traceframe_number): Likewise.
9311 2014-03-22 Yao Qi <yao@codesourcery.com>
9313 * remote.c (remote_read_bytes): Move code on reading from the
9315 (remote_read_bytes_1): ... here. New function.
9317 2014-03-22 Yao Qi <yao@codesourcery.com>
9319 * ctf.c (ctf_xfer_partial): Check the return value of
9320 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9321 return TARGET_XFER_UNAVAILABLE.
9322 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9323 * target.c (target_read_live_memory): Move it to remote.c.
9324 (memory_xfer_live_readonly_partial): Likewise.
9325 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9326 * remote.c (target_read_live_memory): Moved from target.c.
9327 (memory_xfer_live_readonly_partial): Likewise.
9328 (remote_read_bytes): Factored out from
9329 memory_xfer_partial_1.
9331 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9333 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9336 2014-03-21 Pedro Alves <palves@redhat.com>
9338 * infrun.c (normal_stop): Extend comment.
9340 2014-03-21 Hui Zhu <hui@codesourcery.com>
9341 Pedro Alves <palves@redhat.com>
9343 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9345 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9346 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9347 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9349 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9351 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9352 `z' formatted output modifier.
9354 2014-03-20 Tom Tromey <tromey@redhat.com>
9355 Sergio Durigan Junior <sergiodj@redhat.com>
9357 * probe.c (parse_probes): Turn assert into an ordinary error.
9358 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9359 exceptions when parsing probes. Rearrange the code for clarity.
9361 2014-03-20 Tom Tromey <tromey@redhat.com>
9364 * top.c (execute_command): Only dispatch events if the command
9367 2014-03-20 Tom Tromey <tromey@redhat.com>
9370 * infcall.c: Include event-top.h.
9371 (run_inferior_call): Call async_disable_stdin if needed.
9373 2014-03-20 Pedro Alves <palves@redhat.com>
9375 * infrun.c (prepare_to_proceed): Delete.
9376 (thread_still_needs_step_over): New function.
9377 (find_thread_needs_step_over): New function.
9378 (proceed): If the current thread needs a step-over, set its
9379 steping_over_breakpoint flag. Adjust to use
9380 find_thread_needs_step_over instead of prepare_to_proceed.
9381 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9382 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9384 (switch_back_to_stepped_thread): Step over breakpoints of all
9385 threads not the stepping thread, before switching back to the
9388 2014-03-20 Pedro Alves <palves@redhat.com>
9390 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9392 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9393 * infrun.c (saved_singlestep_ptid)
9394 (stepping_past_singlestep_breakpoint): Delete.
9395 (resume): Remove stepping_past_singlestep_breakpoint handling.
9396 (proceed): Store the prev_pc of the stepping thread too.
9397 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9399 (enum infwait_states): Delete infwait_thread_hop_state.
9400 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9402 (handle_inferior_event): Adjust.
9403 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9404 handling and the thread-hop code. Before removing single-step
9405 breakpoints, check whether the thread hit a single-step breakpoint
9406 of another thread. If it did, the trap is not a random signal.
9407 (switch_back_to_stepped_thread): If the event thread hit a
9408 single-step breakpoint, unblock it before switching to the
9409 stepping thread. Handle the case of the stepped thread having
9411 (keep_going): Handle the case of the current thread moving past a
9412 single-step breakpoint.
9414 2014-03-20 Pedro Alves <palves@redhat.com>
9417 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9418 are being stepped over.
9419 (breakpoint_address_match): Make extern.
9420 * breakpoint.h (breakpoint_address_match): New declaration.
9421 * inferior.h (stepping_past_instruction_at): New declaration.
9422 * infrun.c (struct step_over_info): New type.
9423 (step_over_info): New global.
9424 (set_step_over_info, clear_step_over_info)
9425 (stepping_past_instruction_at): New functions.
9426 (handle_inferior_event): Clear the step-over info when
9427 trap_expected is cleared.
9428 (resume): Remove now stale comment.
9429 (clear_proceed_status): Clear step-over info.
9430 (proceed): Adjust step-over handling to set or clear the step-over
9431 info instead of removing all breakpoints.
9432 (handle_signal_stop): When setting up a thread-hop, don't remove
9434 (stop_stepping): Clear step-over info.
9435 (keep_going): Adjust step-over handling to set or clear step-over
9436 info and then always inserting breakpoints, instead of removing
9437 all breakpoints when stepping over one.
9439 2014-03-20 Pedro Alves <palves@redhat.com>
9441 * infrun.c (previous_inferior_ptid): Adjust comment.
9442 (deferred_step_ptid): Delete.
9443 (infrun_thread_ptid_changed, prepare_to_proceed)
9444 (init_wait_for_inferior): Adjust.
9445 (handle_signal_stop): Delete deferred_step_ptid handling.
9447 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9450 * defs.h (sync_quit_force_run): New declaration.
9451 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9452 * event-top.c (async_sigterm_handler): New declaration.
9453 (async_sigterm_token): New variable.
9454 (async_init_signals): Create also async_sigterm_token.
9455 (async_sigterm_handler): New function.
9456 (sync_quit_force_run): New variable.
9457 (handle_sigterm): Replace quit_force call by other calls.
9458 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9460 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9462 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9463 offset into SPE pseudo registers.
9465 2014-03-18 Pedro Alves <palves@redhat.com>
9468 * inferior.h (print_stop_event): Declare.
9469 * infrun.c (print_stop_event): New, factored out from ...
9470 (normal_stop): ... this.
9471 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9472 of bpstat_print/print_stack_frame.
9474 2014-03-17 Tom Tromey <tromey@redhat.com>
9476 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9478 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9480 * ada-lang.c (decode_constrained_packed_array): Perform a
9481 minimal coercion for reference with coerce_ref instead of
9484 2014-03-17 Tristan Gingold <gingold@adacore.com>
9486 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9487 (darwin_solib_create_inferior_hook): Emit a warning if version
9490 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9492 * python/py-value.c (get_field_flag): Cast flag_name argument to
9493 PyObject_GetAttrString to support Python 2.4.
9495 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9497 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9498 (Global Maintainers): Remove Jan Kratochvil.
9500 2014-03-14 Pedro Alves <palves@redhat.com>
9502 * inferior.h (terminal_ours_for_output): Rename to ...
9503 (child_terminal_ours_for_output): ... this.
9504 (terminal_save_ours): Rename to ...
9505 (child_terminal_save_ours): ... this.
9506 (terminal_ours): Rename to ...
9507 (child_terminal_ours): ... this.
9508 (terminal_inferior): Rename to ...
9509 (child_terminal_inferior): ... this.
9510 (terminal_init_inferior): Rename to ...
9511 (child_terminal_init_inferior): ... this.
9512 (terminal_init_inferior_with_pgrp): Rename to ...
9513 (child_terminal_init_inferior_with_pgrp): ... this.
9514 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9515 (child_terminal_init_with_pgrp): ... this.
9516 (terminal_save_ours): Rename to ...
9517 (child_terminal_save_ours): ... this.
9518 (terminal_init_inferior): Rename to ...
9519 (child_terminal_init): ... this. Adjust.
9520 (terminal_inferior): Rename to ...
9521 (child_terminal_inferior): ... this.
9522 (terminal_ours_for_output): Rename to ...
9523 (child_terminal_ours_for_output): ... this. Adjust.
9524 (terminal_ours): Rename to ...
9525 (child_terminal_ours): ... this.
9526 (terminal_ours_1): Rename to ...
9527 (child_terminal_ours_1): ... this. Adjust.
9528 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9529 * windows-nat.c (do_initial_windows_stuff): Adjust.
9530 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9531 (gnu_terminal_init): ... this. Adjust.
9532 (gnu_target): Adjust.
9533 * inf-child.c (inf_child_target): Adjust.
9535 2014-03-13 Doug Evans <xdje42@gmail.com>
9538 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9541 2014-03-13 Doug Evans <xdje42@gmail.com>
9543 * value.c (record_latest_value): Call release_value_or_incref
9544 instead of release_value.
9546 2014-03-13 Pedro Alves <palves@redhat.com>
9548 * procfs.c (procfs_target): Don't override to_shortname,
9549 to_longname or to_doc.
9551 2014-03-13 Pedro Alves <palves@redhat.com>
9553 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9554 Unix in user visible strings.
9556 2014-03-12 Stan Shebs <stan@codesourcery.com>
9558 * gdbtypes.h: Annotate comments for Doxygen, add a page
9559 block comment with some general info.
9561 2014-03-12 Pedro Alves <palves@redhat.com>
9563 * infcmd.c (prepare_execution_command): New function, factored out
9564 from several execution commands.
9565 (run_command_1, continue_command, step_1, jump_command)
9566 (signal_command, until_command, advance_command, finish_command)
9567 (attach_command): Use prepare_execution_command.
9569 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9571 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9574 (struct arm_linux_thread_points): Removed.
9575 (struct arm_linux_process_info): New.
9576 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9577 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9578 (arm_linux_find_breakpoints_by_tid): Removed.
9579 (struct arch_lwp_info): New.
9580 (arm_linux_find_process_pid): New functions.
9581 (arm_linux_add_process): New functions.
9582 (arm_linux_process_info_get): New functions.
9583 (arm_linux_forget_process): New function.
9584 (arm_linux_get_debug_reg_state): New function.
9585 (struct update_registers_data): New.
9586 (update_registers_callback): New function.
9587 (arm_linux_insert_hw_breakpoint1): Updated.
9588 (arm_linux_remove_hw_breakpoint1): Updated.
9589 (arm_linux_insert_hw_breakpoint): Updated.
9590 (arm_linux_remove_hw_breakpoint): Updated.
9591 (arm_linux_insert_watchpoint): Updated.
9592 (arm_linux_remove_watchpoint): Updated.
9593 (arm_linux_new_thread): Updated.
9594 (arm_linux_prepare_to_resume): New function.
9595 (arm_linux_new_fork): New function.
9596 (_initialize_arm_linux_nat): Updated.
9598 2014-03-12 Pedro Alves <palves@redhat.com>
9600 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9602 2014-03-12 Tom Tromey <tromey@redhat.com>
9604 * inf-child.c (return_zero): New function.
9605 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9606 * aix-thread.c (aix_thread_inferior_created): New function.
9607 (aix_thread_attach): Remove.
9608 (init_aix_thread_ops): Don't set to_attach.
9609 (_initialize_aix_thread): Register inferior_created observer.
9610 * corelow.c (init_core_ops): Don't set to_attach or
9612 * exec.c (init_exec_ops): Don't set to_attach or
9614 * infcmd.c (run_command_1): Use find_run_target. Make direct
9616 (attach_command): Use find_attach_target. Make direct target
9618 * record-btrace.c (init_record_btrace_ops): Don't set
9620 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9622 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9623 set to_create_inferior.
9624 * target.c (complete_target_initialization): Add assertion.
9625 (target_create_inferior): Remove.
9626 (find_default_attach, find_default_create_inferior): Remove.
9627 (find_attach_target, find_run_target): New functions.
9628 (find_default_is_async_p, find_default_can_async_p)
9629 (target_supports_non_stop, target_attach): Remove.
9630 (init_dummy_target): Don't set to_create_inferior or
9631 to_supports_non_stop.
9632 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9633 TARGET_DEFAULT_FUNC.
9634 <to_create_inferior>: Add comment.
9635 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9636 TARGET_DEFAULT_RETURN.
9637 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9638 (find_attach_target, find_run_target): Declare.
9639 (target_create_inferior): Remove.
9640 (target_has_execution_1): Update comment.
9641 (target_supports_non_stop): Remove.
9642 * target-delegates.c: Rebuild.
9644 2014-03-12 Pedro Alves <palves@redhat.com>
9646 * inf-child.h: Update comment to not mention Unix.
9648 2014-03-12 Pedro Alves <palves@redhat.com>
9650 * inf-child.c: Update top comment to not mention Unix. Add
9651 generic comment describing how this target is meant to be used.
9652 (inf_child_post_attach, inf_child_post_startup_inferior)
9653 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9656 2014-03-12 Pedro Alves <palves@redhat.com>
9658 * nto-procfs.c: Include inf-child.h.
9659 (procfs_ops): Delete global.
9660 (procfs_can_run): Delete method.
9661 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9662 target pointer instead of referencing procfs_ops.
9663 (procfs_prepare_to_store): Delete.
9664 (init_procfs_ops): Delete function.
9665 (procfs_target): New function, based on init_procfs_ops, but
9666 inherit inf_child_target.
9667 (_initialize_procfs): Use procfs_target.
9669 2014-03-12 Pedro Alves <palves@redhat.com>
9671 * windows-nat.c: Include inf-child.h.
9672 (windows_ops): Delete global.
9673 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9675 (init_windows_ops): Delete function.
9676 (windows_target): New function, based on init_windows_ops, but
9677 inherit inf_child_target.
9678 (_initialize_windows_nat): Use windows_target. Install x86
9679 specific target methods here.
9681 2014-03-10 Doug Evans <xdje42@gmail.com>
9683 * guile/guile.c (call_initialize_gdb_module): New function.
9684 (initialize_guile): Replace call to scm_init_guile with call to
9687 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9689 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9690 in call to TYPE_CODE macro.
9692 2014-03-10 Jerome Guitton <guitton@adacore.com>
9694 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9695 Resolve tagged types to full view.
9697 2014-03-10 Hui Zhu <hui@codesourcery.com>
9699 * target.h (target_insert_breakpoint): Remove "hardware" from its
9702 2014-03-07 Doug Evans <dje@google.com>
9704 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9706 2014-03-07 Doug Evans <dje@google.com>
9708 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9709 Remove unused local comp_dir_attr. Assert exactly one of
9710 stub_comp_unit_die, stub_comp_dir is non-NULL.
9712 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9714 * target.h (complete_target_initialization, add_target):
9717 2014-03-07 Pedro Alves <palves@redhat.com>
9719 * go32-nat.c: Include inf-child.h.
9720 (go32_ops): Delete global.
9721 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9723 (go32_create_inferior): Push the passed in target pointer instead
9724 of referencing go32_ops.
9725 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9726 (go32_target): New function, based on init_go32_ops, but inherit
9728 (_initialize_go32_nat): Use go32_target. Move parts of
9731 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9733 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9734 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9735 SYMBOL_VALUE_ADDRESS.
9736 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9738 2014-03-06 Yao Qi <yao@codesourcery.com>
9740 * breakpoint.c (get_tracepoint_by_number): Remove argument
9741 optional_p. All callers updated. Adjust comments. Update
9743 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9745 2014-03-06 Yao Qi <yao@codesourcery.com>
9747 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9748 early if get_number returns zero. Use 'p' instead of 'args'.
9750 2014-03-06 Yao Qi <yao@codesourcery.com>
9752 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9755 2014-03-06 Yao Qi <yao@codesourcery.com>
9757 PR breakpoints/16508
9758 * tracepoint.c (check_trace_running): New function.
9759 (trace_find_command): Move code to check_trace_running and
9760 call check_trace_running.
9761 (trace_find_pc_command): Likewise.
9762 (trace_find_tracepoint_command): Likewise.
9763 (trace_find_line_command): Likewise.
9764 (trace_find_range_command): Likewise.
9765 * tracepoint.h (check_trace_running): Likewise.
9766 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9768 2014-03-06 Yao Qi <yao@codesourcery.com>
9770 * target.h (struct target_ops) <to_traceframe_info>: Use
9771 TARGET_DEFAULT_NORETURN (tcomplain ()).
9772 * target-delegates.c: Regenerated.
9774 2014-03-05 Pedro Alves <palves@redhat.com>
9777 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9778 void. Update comment.
9779 (dcache_xfer_memory): Delete.
9780 (dcache_read_memory_partial): New, based on the read bits of
9782 (dcache_update): Add status parameter. Use ULONGEST for len, and
9783 adjust. Discard cache lines if the reason for the update was
9785 * dcache.h (dcache_xfer_memory): Delete declaration.
9786 (dcache_read_memory_partial): New declaration.
9787 (dcache_update): Update prototype.
9788 * target.c (raw_memory_xfer_partial): Update the dcache here.
9789 (memory_xfer_partial_1): Don't handle dcache writes here.
9791 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9793 * remote-sim.c (gdbsim_load): Add const to prog.
9795 2014-03-03 Tom Tromey <tromey@redhat.com>
9797 * elfread.c (probe_key): Change to bfd_data.
9798 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9799 now per-BFD, not per-objfile.
9800 * stap-probe.c (stap_probe_destroy): Update comment.
9801 (handle_stap_probe): Allocate on the per-BFD obstack.
9803 2014-03-03 Tom Tromey <tromey@redhat.com>
9805 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9806 * breakpoint.c (create_longjmp_master_breakpoint): Use
9808 (add_location_to_breakpoint, bkpt_probe_insert_location)
9809 (bkpt_probe_remove_location): Update.
9810 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9811 * elfread.c (elf_symfile_relocate_probe): Remove.
9812 (elf_probe_fns): Update.
9813 (insert_exception_resume_breakpoint): Change type of "probe"
9814 parameter to bound_probe.
9815 (check_exception_resume): Update.
9816 * objfiles.c (objfile_relocate1): Don't relocate probes.
9817 * probe.c (bound_probe_s): New typedef.
9818 (parse_probes): Use get_probe_address. Set sal's objfile.
9819 (find_probe_by_pc): Return a bound_probe.
9820 (collect_probes): Return a VEC(bound_probe_s).
9821 (compare_probes): Update.
9822 (gen_ui_out_table_header_info): Change type of "probes"
9824 (info_probes_for_ops): Update.
9825 (get_probe_address): New function.
9826 (probe_safe_evaluate_at_pc): Update.
9827 * probe.h (struct probe_ops) <get_probe_address>: New field.
9828 <set_semaphore, clear_semaphore>: Add objfile parameter.
9829 (struct probe) <objfile>: Remove field.
9831 <address>: Update comment.
9832 (struct bound_probe): New.
9833 (find_probe_by_pc): Return a bound_probe.
9834 (get_probe_address): Declare.
9835 * solib-svr4.c (struct probe_and_action) <address>: New field.
9836 (hash_probe_and_action, equal_probe_and_action): Update.
9837 (register_solib_event_probe): Add address parameter.
9838 (solib_event_probe_at): Update.
9839 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9841 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9842 (stap_get_probe_address): New function.
9843 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9844 (compile_probe_arg): Update.
9845 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9847 (handle_stap_probe): Don't relocate the probe.
9848 (stap_relocate): Remove.
9849 (stap_gen_info_probes_table_values): Update.
9850 (stap_probe_ops): Remove stap_relocate.
9851 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9852 (debug_sym_probe_fns): Update.
9853 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9854 * symtab.c (init_sal): Use memset.
9855 * symtab.h (struct symtab_and_line) <objfile>: New field.
9856 * tracepoint.c (start_tracing, stop_tracing): Update.
9858 2014-03-03 Tom Tromey <tromey@redhat.com>
9860 * probe.h (parse_probes, find_probe_by_pc)
9861 (find_probes_in_objfile): Fix comments.
9863 2014-03-02 Doug Evans <xdje42@gmail.com>
9865 * infrun.c (handle_signal_stop): Replace test for
9866 TARGET_WAITKIND_STOPPED with an assert.
9868 2014-03-02 Doug Evans <xdje42@gmail.com>
9870 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9872 2014-03-02 Doug Evans <xdje42@gmail.com>
9874 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9876 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9878 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9880 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9882 * i386obsd-nat.c: Include "obsd-nat.h".
9883 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9885 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9887 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9889 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9891 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9893 * mips64obsd-nat.c: Include "obsd-nath".
9894 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9896 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9898 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9900 * amd64obsd-nat.c: Include "obsd-nat,h.
9901 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9903 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9905 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9907 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9908 (find_overload_match): Update call to find_oload_champ.
9909 (find_oload_champ_namespace_loop): Likewise
9911 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9913 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9915 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9916 * config/sparc/obsd64.mh: New file.
9917 * sparc64obsd-nat.c: New file.
9919 * obsd-nat.h: New file.
9920 * obsd-nat.c: New file.
9921 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9922 (ALLDEPFILES): Add obsd-nat.c.
9924 2014-02-28 Tom Tromey <tromey@redhat.com>
9926 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9927 * cli-out.h (cli_ui_out_impl): Now const.
9928 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9929 * ui-out.c (struct ui_out) <impl>: Now const.
9930 (default_ui_out_impl): Now const.
9931 (ui_out_new): Make 'impl' parameter const.
9932 * ui-out.h (ui_out_new): Update.
9934 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9936 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9938 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9940 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9942 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9944 Additional PR 8882 fix.
9945 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9947 2014-02-27 Pedro Alves <palves@redhat.com>
9949 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9952 2014-02-27 Pedro Alves <palves@redhat.com>
9955 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9956 * nat/linux-waitpid.c: Include string.h.
9957 (status_to_str): Moved here and made extern.
9958 * nat/linux-waitpid.h (status_to_str): New declaration.
9960 2014-02-27 Hui Zhu <hui@codesourcery.com>
9963 * infrun.c (ptid_match): Move ...
9964 * common/ptid.c (ptid_match): ... here.
9965 * inferior.h (ptid_match): Move ...
9966 * common/ptid.h (ptid_match): ... here.
9968 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9970 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9971 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9974 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9976 * obsd-tdep.c (obsd_auxv_parse): New function.
9977 (obsd_init_abi): Set auxv_parse.
9979 * gdbarch.sh (auxv_parse): New.
9980 * gdbarch.h: Regenerated.
9981 * gdbarch.c: Regenerated.
9982 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9984 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9986 * guile/scm-value.c (gdbscm_history_append_x): New function.
9987 (value_functions): Add it.
9989 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9991 * dwarf2read.c (attr_value_as_address): New function.
9992 (dwarf2_find_base_address, read_call_site_scope): Use
9993 attr_value_as_address in place of DW_ADDR.
9994 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9995 the low and high addresses. Slight rework of the handling
9996 of the high pc being a constant form, and limit it to
9997 DWARF verson 4 or higher.
9998 (dwarf2_record_block_ranges): Likewise.
9999 (read_partial_die): Likewise.
10000 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10002 2014-02-26 Tom Tromey <tromey@redhat.com>
10004 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10006 2014-02-26 Tom Tromey <tromey@redhat.com>
10008 * elfread.c (elf_read_minimal_symbols): Return early if
10009 minimal symbols have already been read. Add "ei" parameter.
10010 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10011 * minsyms.c (prim_record_minimal_symbol_full): Update.
10012 * objfiles.h (struct objstats) <n_minsyms>: Move...
10013 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10014 * symmisc.c (print_objfile_statistics): Update.
10016 2014-02-26 Tom Tromey <tromey@redhat.com>
10018 * elfread.c (elf_read_minimal_symbols): New function, from
10020 (elf_symfile_read): Call it.
10022 2014-02-26 Tom Tromey <tromey@redhat.com>
10024 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10025 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10026 (lookup_minimal_symbol_solib_trampoline)
10027 (lookup_minimal_symbol_by_pc_section_1)
10028 (lookup_minimal_symbol_and_objfile): Update.
10029 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10030 Don't allocate a minimal symbol if minsyms have already been read.
10031 (build_minimal_symbol_hash_tables): Update.
10032 (install_minimal_symbols): Do nothing if minsyms already read.
10033 Use the per-BFD obstack.
10034 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10035 * objfiles.c (allocate_objfile): Call
10036 terminate_minimal_symbol_table later.
10037 (have_minimal_symbols): Update.
10038 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10039 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10040 Move from struct objfile.
10041 <minsyms_read>: New field.
10042 (struct objfile) <msymbols, minimal_symbol_count,
10043 msymbol_hash, msymbol_demangled_hash>: Move.
10044 (ALL_OBJFILE_MSYMBOLS): Update.
10045 * symfile.c (read_symbols): Set minsyms_read.
10046 (reread_symbols): Update.
10047 * symmisc.c (dump_objfile, dump_msymbols): Update.
10049 2014-02-26 Tom Tromey <tromey@redhat.com>
10051 * minsyms.c (msymbols_sort): Remove.
10052 * minsyms.h (msymbols_sort): Remove.
10053 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10054 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10055 * elfread.c (elf_symtab_read): Don't add section offsets.
10056 * xcoffread.c (record_minimal_symbol): Don't add section offset
10057 to minimal symbol address.
10058 * somread.c (text_offset, data_offset): Remove.
10059 (som_symtab_read): Don't add section offsets to minimal symbol
10061 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10062 Don't add section offsets to minimal symbols.
10063 * coffread.c (coff_symtab_read): Don't add section offsets
10064 to minimal symbol addresses.
10065 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10066 to minimal symbol addresses.
10067 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10068 section offset to minimal symbol addresses.
10069 * mdebugread.c (parse_partial_symbols): Don't add section
10070 offset to minimal symbol addresses.
10071 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10072 offset to minimal symbol addresses.
10074 2014-02-26 Tom Tromey <tromey@redhat.com>
10076 * ada-lang.c (ada_main_name): Update.
10077 (ada_add_standard_exceptions): Update.
10078 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10079 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10080 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10081 * auxv.c (ld_so_xfer_auxv): Update.
10082 * avr-tdep.c (avr_scan_prologue): Update.
10083 * ax-gdb.c (gen_var_ref): Update.
10084 * blockframe.c (get_pc_function_start)
10085 (find_pc_partial_function_gnu_ifunc): Update.
10086 * breakpoint.c (create_overlay_event_breakpoint)
10087 (create_longjmp_master_breakpoint)
10088 (create_std_terminate_master_breakpoint)
10089 (create_exception_master_breakpoint): Update.
10090 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10091 * c-valprint.c (c_val_print): Update.
10092 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10093 * common/agent.c (agent_look_up_symbols): Update.
10094 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10095 * dwarf2loc.c (call_site_to_target_addr): Update.
10096 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10097 * elfread.c (elf_gnu_ifunc_record_cache)
10098 (elf_gnu_ifunc_resolve_by_got): Update.
10099 * findvar.c (default_read_var_value): Update.
10100 * frame.c (inside_main_func): Update.
10101 * frv-tdep.c (frv_frame_this_id): Update.
10102 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10103 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10105 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10106 (hppa_hpux_find_dummy_bpaddr): Update.
10107 * hppa-tdep.c (hppa_symbol_address): Update.
10108 * infcmd.c (until_next_command): Update.
10109 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10111 * linespec.c (minsym_found, add_minsym): Update.
10112 * linux-nat.c (get_signo): Update.
10113 * linux-thread-db.c (inferior_has_bug): Update.
10114 * m32c-tdep.c (m32c_return_value)
10115 (m32c_m16c_address_to_pointer): Update.
10116 * m32r-tdep.c (m32r_frame_this_id): Update.
10117 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10118 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10119 * maint.c (maintenance_translate_address): Update.
10120 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10121 (frob_address): New function.
10122 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10123 frob_address. Rename parameter to "pc_in".
10124 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10126 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10128 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10129 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10130 * objc-lang.c (find_objc_msgsend): Update.
10131 * objfiles.c (objfile_relocate1): Update.
10132 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10133 * p-valprint.c (pascal_val_print): Update.
10134 * parse.c (write_exp_msymbol): Update.
10135 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10136 (ppc_elfv2_skip_entrypoint): Update.
10137 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10138 * printcmd.c (build_address_symbolic, msym_info)
10139 (address_info): Update.
10140 * proc-service.c (ps_pglobal_lookup): Update.
10141 * psymtab.c (find_pc_sect_psymtab_closer)
10142 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10143 Change msymbol parameter to bound_minimal_symbol.
10144 * ravenscar-thread.c (get_running_thread_id): Update.
10145 * remote.c (remote_check_symbols): Update.
10146 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10148 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10149 * solib-dsbt.c (lm_base): Update.
10150 * solib-frv.c (lm_base, main_got): Update.
10151 * solib-irix.c (locate_base): Update.
10152 * solib-som.c (som_solib_create_inferior_hook)
10153 (link_map_start): Update.
10154 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10155 * solib-svr4.c (elf_locate_base, enable_break): Update.
10156 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10157 (flush_ea_cache): Update.
10158 * stabsread.c (define_symbol, scan_file_globals): Update.
10159 * stack.c (find_frame_funname): Update.
10160 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10161 (debug_qf_find_pc_sect_symtab): Update.
10162 * symfile.c (simple_read_overlay_table)
10163 (simple_overlay_update): Update.
10164 * symfile.h (struct quick_symbol_functions)
10165 <find_pc_sect_symtab>: Change type of msymbol to
10166 bound_minimal_symbol.
10167 * symmisc.c (dump_msymbols): Update.
10168 * symtab.c (find_pc_sect_symtab_via_partial)
10169 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10170 (search_symbols, print_msymbol_info): Update.
10171 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10172 (MSYMBOL_VALUE_ADDRESS): Redefine.
10173 (BMSYMBOL_VALUE_ADDRESS): New macro.
10174 * tracepoint.c (scope_info): Update.
10175 * tui/tui-disasm.c (tui_find_disassembly_address)
10176 (tui_get_begin_asm_address): Update.
10177 * valops.c (find_function_in_inferior): Update.
10178 * value.c (value_static_field, value_fn_field): Update.
10180 2014-02-26 Tom Tromey <tromey@redhat.com>
10182 * ada-lang.c (ada_update_initial_language): Update.
10183 (ada_main_name, ada_has_this_exception_support): Update.
10184 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10185 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10186 * arm-tdep.c (arm_skip_stub): Update.
10187 * auxv.c (ld_so_xfer_auxv): Update.
10188 * avr-tdep.c (avr_scan_prologue): Update.
10189 * ax-gdb.c (gen_var_ref): Update.
10190 * breakpoint.c (struct breakpoint_objfile_data)
10191 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10192 type to bound_minimal_symbol.
10193 (create_overlay_event_breakpoint)
10194 (create_longjmp_master_breakpoint)
10195 (create_std_terminate_master_breakpoint)
10196 (create_exception_master_breakpoint): Update.
10197 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10198 * c-exp.y (classify_name): Update.
10199 * coffread.c (coff_symfile_read): Update.
10200 * common/agent.c (agent_look_up_symbols): Update.
10201 * d-lang.c (d_main_name): Update.
10202 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10203 * dec-thread.c (enable_dec_thread): Update.
10204 * dwarf2loc.c (call_site_to_target_addr): Update.
10205 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10206 * eval.c (evaluate_subexp_standard): Update.
10207 * findvar.c (struct minsym_lookup_data) <result>: Change type
10208 to bound_minimal_symbol.
10210 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10211 * frame.c (inside_main_func): Update.
10212 * frv-tdep.c (frv_frame_this_id): Update.
10213 * gcore.c (call_target_sbrk): Update.
10214 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10215 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10217 * go-lang.c (go_main_name): Update.
10218 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10219 (hppa_hpux_find_import_stub_for_addr): Update.
10220 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10221 Update. Change return type.
10222 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10224 * jit.c (jit_breakpoint_re_set_internal): Update.
10225 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10227 * linux-nat.c (get_signo): Update.
10228 * linux-thread-db.c (inferior_has_bug): Update
10229 * m32c-tdep.c (m32c_return_value)
10230 (m32c_m16c_address_to_pointer): Update.
10231 * m32r-tdep.c (m32r_frame_this_id): Update.
10232 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10233 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10234 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10235 lookup_minimal_symbol. Change return type.
10236 (lookup_minimal_symbol): Remove.
10237 (lookup_bound_minimal_symbol): Update.
10238 (lookup_minimal_symbol_text): Change return type.
10239 (lookup_minimal_symbol_solib_trampoline): Change return type.
10240 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10241 (lookup_minimal_symbol_solib_trampoline): Change return type.
10242 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10243 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10244 (value_nsstring, find_imps): Update.
10245 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10246 * p-lang.c (pascal_main_name): Update.
10247 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10248 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10249 * proc-service.c (ps_pglobal_lookup): Update.
10250 * ravenscar-thread.c (get_running_thread_msymbol): Change
10252 (has_ravenscar_runtime, get_running_thread_id): Update.
10253 * remote.c (remote_check_symbols): Update.
10254 * sol-thread.c (ps_pglobal_lookup): Update.
10255 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10256 * solib-dsbt.c (lm_base): Update.
10257 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10259 * solib-irix.c (locate_base): Update.
10260 * solib-som.c (som_solib_create_inferior_hook)
10261 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10263 * solib-spu.c (spu_enable_break): Update.
10264 * solib-svr4.c (elf_locate_base, enable_break): Update.
10265 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10266 (flush_ea_cache): Update.
10267 * stabsread.c (define_symbol): Update.
10268 * symfile.c (simple_read_overlay_table): Update.
10269 * symtab.c (find_pc_sect_line): Update.
10270 * tracepoint.c (scope_info): Update.
10271 * tui-disasm.c (tui_get_begin_asm_address): Update.
10272 * value.c (value_static_field): Update.
10274 2014-02-26 Tom Tromey <tromey@redhat.com>
10276 * minsyms.c (prim_record_minimal_symbol_full): Use
10277 SET_MSYMBOL_VALUE_ADDRESS.
10278 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10279 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10280 SET_MSYMBOL_VALUE_ADDRESS.
10281 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10282 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10284 2014-02-26 Tom Tromey <tromey@redhat.com>
10286 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10287 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10288 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10289 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10290 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10291 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10292 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10293 * ada-lang.c (ada_main_name): Update.
10294 (ada_lookup_simple_minsym): Update.
10295 (ada_make_symbol_completion_list): Update.
10296 (ada_add_standard_exceptions): Update.
10297 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10298 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10299 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10300 * arm-tdep.c (skip_prologue_function): Update.
10301 (arm_skip_stack_protector, arm_skip_stub): Update.
10302 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10303 (arm_wince_skip_main_prologue): Update.
10304 * auxv.c (ld_so_xfer_auxv): Update.
10305 * avr-tdep.c (avr_scan_prologue): Update.
10306 * ax-gdb.c (gen_var_ref): Update.
10307 * block.c (call_site_for_pc): Update.
10308 * blockframe.c (get_pc_function_start): Update.
10309 (find_pc_partial_function_gnu_ifunc): Update.
10310 * breakpoint.c (create_overlay_event_breakpoint): Update.
10311 (create_longjmp_master_breakpoint): Update.
10312 (create_std_terminate_master_breakpoint): Update.
10313 (create_exception_master_breakpoint): Update.
10314 (resolve_sal_pc): Update.
10315 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10316 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10318 * c-valprint.c (c_val_print): Update.
10319 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10320 * coffread.c (coff_symfile_read): Update.
10321 * common/agent.c (agent_look_up_symbols): Update.
10322 * dbxread.c (find_stab_function_addr): Update.
10323 (end_psymtab): Update.
10324 * dwarf2loc.c (call_site_to_target_addr): Update.
10325 (func_verify_no_selftailcall): Update.
10326 (tailcall_dump): Update.
10327 (call_site_find_chain_1): Update.
10328 (dwarf_expr_reg_to_entry_parameter): Update.
10329 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10330 (elf_gnu_ifunc_resolve_by_got): Update.
10331 * f-valprint.c (info_common_command): Update.
10332 * findvar.c (read_var_value): Update.
10333 * frame.c (get_prev_frame_1): Update.
10334 (inside_main_func): Update.
10335 * frv-tdep.c (frv_skip_main_prologue): Update.
10336 (frv_frame_this_id): Update.
10337 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10338 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10339 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10340 (gnuv3_skip_trampoline): Update.
10341 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10342 (hppa64_hpux_in_solib_call_trampoline): Update.
10343 (hppa_hpux_skip_trampoline_code): Update.
10344 (hppa64_hpux_search_dummy_call_sequence): Update.
10345 (hppa_hpux_find_import_stub_for_addr): Update.
10346 (hppa_hpux_find_dummy_bpaddr): Update.
10347 * hppa-tdep.c (hppa_symbol_address)
10348 (hppa_lookup_stub_minimal_symbol): Update.
10349 * i386-tdep.c (i386_skip_main_prologue): Update.
10350 (i386_pe_skip_trampoline_code): Update.
10351 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10352 * infcall.c (get_function_name): Update.
10353 * infcmd.c (until_next_command): Update.
10354 * jit.c (jit_breakpoint_re_set_internal): Update.
10355 (jit_inferior_init): Update.
10356 * linespec.c (minsym_found): Update.
10357 (add_minsym): Update.
10358 * linux-fork.c (info_checkpoints_command): Update.
10359 * linux-nat.c (get_signo): Update.
10360 * linux-thread-db.c (inferior_has_bug): Update.
10361 * m32c-tdep.c (m32c_return_value): Update.
10362 (m32c_m16c_address_to_pointer): Update.
10363 (m32c_m16c_pointer_to_address): Update.
10364 * m32r-tdep.c (m32r_frame_this_id): Update.
10365 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10366 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10367 * maint.c (maintenance_translate_address): Update.
10368 * minsyms.c (add_minsym_to_hash_table): Update.
10369 (add_minsym_to_demangled_hash_table): Update.
10370 (msymbol_objfile): Update.
10371 (lookup_minimal_symbol): Update.
10372 (iterate_over_minimal_symbols): Update.
10373 (lookup_minimal_symbol_text): Update.
10374 (lookup_minimal_symbol_by_pc_name): Update.
10375 (lookup_minimal_symbol_solib_trampoline): Update.
10376 (lookup_minimal_symbol_by_pc_section_1): Update.
10377 (lookup_minimal_symbol_and_objfile): Update.
10378 (prim_record_minimal_symbol_full): Update.
10379 (compare_minimal_symbols): Update.
10380 (compact_minimal_symbols): Update.
10381 (build_minimal_symbol_hash_tables): Update.
10382 (install_minimal_symbols): Update.
10383 (terminate_minimal_symbol_table): Update.
10384 (find_solib_trampoline_target): Update.
10385 (minimal_symbol_upper_bound): Update.
10386 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10387 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10388 (mips_skip_pic_trampoline_code): Update.
10389 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10390 * objc-lang.c (selectors_info): Update.
10391 (classes_info): Update.
10392 (find_methods): Update.
10393 (find_imps): Update.
10394 (find_objc_msgsend): Update.
10395 * objfiles.c (objfile_relocate1): Update.
10396 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10397 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10398 * p-valprint.c (pascal_val_print): Update.
10399 * parse.c (write_exp_msymbol): Update.
10400 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10401 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10402 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10403 * printcmd.c (build_address_symbolic): Update.
10404 (sym_info): Update.
10405 (address_info): Update.
10406 * proc-service.c (ps_pglobal_lookup): Update.
10407 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10408 (find_pc_sect_psymtab): Update.
10409 * python/py-framefilter.c (py_print_frame): Update.
10410 * ravenscar-thread.c (get_running_thread_id): Update.
10411 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10413 * remote.c (remote_check_symbols): Update.
10414 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10415 (rs6000_skip_trampoline_code): Update.
10416 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10417 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10418 * solib-dsbt.c (lm_base): Update.
10419 * solib-frv.c (lm_base): Update.
10420 (main_got): Update.
10421 * solib-irix.c (locate_base): Update.
10422 * solib-som.c (som_solib_create_inferior_hook): Update.
10423 (som_solib_desire_dynamic_linker_symbols): Update.
10424 (link_map_start): Update.
10425 * solib-spu.c (spu_enable_break): Update.
10426 (ocl_enable_break): Update.
10427 * solib-svr4.c (elf_locate_base): Update.
10428 (enable_break): Update.
10429 * spu-tdep.c (spu_get_overlay_table): Update.
10430 (spu_catch_start): Update.
10431 (flush_ea_cache): Update.
10432 * stabsread.c (define_symbol): Update.
10433 (scan_file_globals): Update.
10434 * stack.c (find_frame_funname): Update.
10435 (frame_info): Update.
10436 * symfile.c (simple_read_overlay_table): Update.
10437 (simple_overlay_update): Update.
10438 * symmisc.c (dump_msymbols): Update.
10439 * symtab.c (fixup_section): Update.
10440 (find_pc_sect_line): Update.
10441 (skip_prologue_sal): Update.
10442 (search_symbols): Update.
10443 (print_msymbol_info): Update.
10444 (rbreak_command): Update.
10445 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10446 (completion_list_objc_symbol): Update.
10447 (default_make_symbol_completion_list_break_on): Update.
10448 * tracepoint.c (scope_info): Update.
10449 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10450 (tui_get_begin_asm_address): Update.
10451 * valops.c (find_function_in_inferior): Update.
10452 * value.c (value_static_field): Update.
10453 (value_fn_field): Update.
10455 2014-02-26 Tom Tromey <tromey@redhat.com>
10457 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10458 bound minimal symbols. Move code that knows about minsym
10460 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10462 * minsyms.h (minimal_symbol_upper_bound): Declare.
10463 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10464 minimal_symbol_upper_bound.
10466 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10468 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10469 Use the type's name if its basic type does not have a tag.
10471 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10473 * dwarf2read.c (read_subrange_type): Add comment.
10475 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10477 * dwarf2read.c (update_enumeration_type_from_children): New
10478 function, mostly extracted from process_structure_scope.
10479 (read_enumeration_type): Call update_enumeration_type_from_children.
10480 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10481 and flag_flag_enum fields.
10483 2014-02-26 Pedro Alves <palves@redhat.com>
10485 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10486 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10487 to_xfer_partial method.
10489 2014-02-26 Pedro Alves <palves@redhat.com>
10491 * target.c (complete_target_initialization): Don't install
10492 default_xfer_partial as to_xfer_partial hook.
10493 (nomemory): Delete.
10494 (update_current_target): Don't INHERIT nor de_fault
10495 deprecated_xfer_memory. Delete de_fault macro.
10496 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10497 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10498 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10501 2014-02-26 Pedro Alves <palves@redhat.com>
10503 * go32-nat.c (my_write_child): New function.
10504 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10505 (go32_xfer_partial): New function.
10506 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10507 Instead install a to_xfer_partial hook.
10509 2014-02-26 Pedro Alves <palves@redhat.com>
10511 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10512 to_xfer_partial helper. Rewrite.
10513 (procfs_xfer_partial): New function.
10514 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10515 Install a to_xfer_partial hook.
10517 2014-02-26 Pedro Alves <palves@redhat.com>
10519 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10520 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10521 (m32r_xfer_partial): New function.
10522 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10523 Install a to_xfer_partial hook.
10525 2014-02-26 Pedro Alves <palves@redhat.com>
10527 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10529 (mips_xfer_partial): New function.
10530 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10531 hook. Install a to_xfer_partial hook.
10533 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10535 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10536 * gdbtypes.c (create_array_type_with_stride): New function,
10537 renaming create_array_type, but with an added parameter
10538 called "bit_stride".
10539 (create_array_type): Re-implement using
10540 create_array_type_with_stride.
10541 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10542 and DW_AT_bit_stride attributes.
10544 2014-02-26 Pedro Alves <palves@redhat.com>
10546 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10547 task-specific breakpoints.
10549 2014-02-25 Pedro Alves <palves@redhat.com>
10551 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10552 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10554 2014-02-25 Stan Shebs <stan@codesourcery.com>
10556 * defs.h: Annotate comments for Doxygen.
10558 2014-02-25 Tom Tromey <tromey@redhat.com>
10560 * target.h (target_ignore): Don't declare.
10561 * target.c (target_ignore): Remove.
10563 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10566 * auto-load.c (auto_load_objfile_script_1): Change filename to
10569 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10571 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10572 documentation. Adjust prototype to match the target_ops
10573 to_xfer_partial method. Adjust implementation accordingly.
10575 2014-02-25 Hui Zhu <hui@codesourcery.com>
10577 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10578 to_traceframe_info.
10580 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10582 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10583 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10584 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10585 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10586 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10587 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10588 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10589 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10591 (rl78_register_type): Use a data pointer type for SP and
10592 new pseudo registers mentioned above. Use a 16 bit integer
10593 type for all other register pairs.
10594 (rl78_register_name, rl78_g10_register_name): Update for
10595 new pseudo registers.
10596 (rl78_pseudo_register_read): Likewise.
10597 (rl78_pseudo_register_write): Likewise.
10598 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10599 to the newly added pseudo registers.
10601 2014-02-24 Doug Evans <dje@google.com>
10603 * value.c (record_latest_value): Fix comment.
10604 * printcmd.c (print_command_1): Remove code to handle -1 return from
10605 record_latest_value.
10607 2014-02-24 Pedro Alves <palves@redhat.com>
10609 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10610 deprecated_xfer_memory hook.
10611 (procfs_xfer_partial): Call procfs_xfer_memory instead
10612 of the deprecated_xfer_memory target hook.
10613 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10616 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10618 * windows-nat.c (windows_xfer_shared_libraries): Return
10619 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10620 requested object is TARGET_OBJECT_LIBRARIES.
10622 2014-02-24 Yao Qi <yao@codesourcery.com>
10624 * target.h (enum target_xfer_status)
10625 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10626 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10628 * corefile.c (memory_error_message): User updated.
10629 * exec.c (section_table_read_available_memory): Likewise.
10630 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10631 * target.c (target_xfer_status_to_string): Likewise.
10632 (raw_memory_xfer_partial): Likewise.
10633 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10634 * valops.c (read_value_memory): Likewise.
10635 * exec.h: Update comments.
10637 2014-02-24 Yao Qi <yao@codesourcery.com>
10639 * target.c (target_xfer_status_to_string): Rename argument err
10641 * target.h (target_xfer_status_to_string): Update declaration.
10642 Replace target_xfer_error_to_string with
10643 target_xfer_status_to_string in comment.
10645 2014-02-24 Yao Qi <yao@codesourcery.com>
10647 * mips-linux-nat.c (super_close): Update its type.
10648 (mips_linux_close): Pass 'self' to super_close.
10650 2014-02-24 Yao Qi <yao@codesourcery.com>
10652 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10653 * corefile.c (read_memory): Adjusted.
10654 * target.c (target_write_with_progress): Adjusted.
10656 2014-02-23 Yao Qi <yao@codesourcery.com>
10658 Revert two patches:
10660 2013-10-25 Yao Qi <yao@codesourcery.com>
10662 * remote.c (remote_traceframe_info): Return early if
10663 traceframe is not selected.
10665 2013-07-19 Yao Qi <yao@codesourcery.com>
10667 * target.c (update_current_target): Change the default action
10668 of 'to_traceframe_info' from tcomplain to return_zero.
10669 * target.h (struct target_ops) <to_traceframe_info>: Add more
10672 2014-02-23 Yao Qi <yao@codesourcery.com>
10674 * valops.c (read_value_memory): Rewrite it. Call
10675 target_xfer_partial in a loop.
10676 * exec.h (section_table_available_memory): Remove declaration.
10677 Move comments to ...
10678 * exec.c (section_table_available_memory): ... here. Make it
10681 2014-02-23 Yao Qi <yao@codesourcery.com>
10683 * exec.c (section_table_read_available_memory): New function.
10684 * exec.h (section_table_read_available_memory): Declare.
10685 * ctf.c (ctf_xfer_partial): Call
10686 section_table_read_available_memory.
10687 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10689 2014-02-23 Yao Qi <yao@codesourcery.com>
10691 * ctf.c (ctf_xfer_partial): Move code to ...
10692 * exec.c (exec_read_partial_read_only): ... it. New function.
10693 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10694 * tracefile.c: Include "exec.h".
10695 * exec.h (exec_read_partial_read_only): Declare.
10697 2014-02-23 Yao Qi <yao@codesourcery.com>
10699 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10700 (tfile_has_memory): Remove.
10701 (init_tfile_ops): Don't set fields to_has_all_memory and
10702 to_has_memory of tfile_ops.
10703 * tracefile.c (tracefile_has_all_memory): New function.
10704 (tracefile_has_memory): New function.
10705 (init_tracefile_ops): Initialize fields to_has_all_memory and
10706 to_has_memory of 'ops'.
10708 2014-02-23 Yao Qi <yao@codesourcery.com>
10710 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10711 (ctf_thread_alive, ctf_get_trace_status): Remove.
10712 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10713 init_tracefile_ops.
10714 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10715 (tfile_has_stack, tfile_has_registers): Remove.
10716 (tfile_thread_alive): Remove.
10717 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10718 init_tracefile_ops.
10719 * tracefile.c (tracefile_has_stack): New function.
10720 (tracefile_has_registers): New function.
10721 (tracefile_thread_alive): New function.
10722 (tracefile_get_trace_status): New function.
10723 (init_tracefile_ops): New function.
10724 * tracefile.h (init_tracefile_ops): Declare.
10726 2014-02-23 Yao Qi <yao@codesourcery.com>
10728 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10729 (O_LARGEFILE): Likewise.
10730 (tfile_ops): Likewise.
10731 (TRACE_HEADER_SIZE): Likewise.
10732 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10733 (cur_data_size): Likewise.
10734 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10735 (tfile_close, tfile_files_info): Likewise.
10736 (tfile_get_trace_status): Likewise.
10737 (tfile_get_tracepoint_status): Likewise.
10738 (tfile_get_traceframe_address): Likewise.
10739 (tfile_trace_find, match_blocktype): Likewise.
10740 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10741 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10742 (tfile_get_trace_state_variable_value): Likewise.
10743 (tfile_has_all_memory, tfile_has_memory): Likewise.
10744 (tfile_has_stack, tfile_has_registers): Likewise.
10745 (tfile_thread_alive, build_traceframe_info): Likewise.
10746 (tfile_traceframe_info, init_tfile_ops): Likewise.
10747 (_initialize_tracepoint): Don't call init_tfile_ops
10748 and add_target_with_completer.
10749 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10750 exec.h, completer.h and filenames.h.
10751 (_initialize_tracefile_tfile): New function.
10753 2014-02-23 Yao Qi <yao@codesourcery.com>
10755 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10757 (HFILES_NO_SRCDIR): Add tracefile.h.
10758 * ctf.c: Include "tracefile.h".
10759 * tracefile.h: New file.
10760 * tracefile.c: New file
10761 * tracefile-tfile.c: New file.
10762 * tracepoint.c: Include "tracefile.h".
10763 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10764 (stop_reason_names): Add const.
10765 (trace_file_writer_xfree): Move it to tracefile.c.
10766 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10767 (trace_save_ctf): Likewise.
10768 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10769 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10770 (tfile_write_header, tfile_write_regblock_type): Likewise.
10771 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10772 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10773 (tfile_write_raw_data, tfile_end): Likewise.
10774 (tfile_trace_file_writer_new): Likewise.
10775 (free_uploaded_tp): Make it extern.
10776 (free_uploaded_tsv): Make it extern.
10777 (_initialize_tracepoint): Move code to register command 'tsave'
10779 * tracepoint.h (stop_reason_names): Declare.
10780 (struct trace_frame_write_ops): Move it to tracefile.h.
10781 (struct trace_file_write_ops): Likewise.
10782 (struct trace_file_writer): Likewise.
10783 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10785 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10788 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10790 (get_cores_used_by_process): New parameter num_cores, use it.
10791 (linux_xfer_osdata_processes): Pass num_cores to it.
10792 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10795 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10797 * target.c (memory_xfer_partial): Fix length arg in call to
10798 breakpoint_xfer_memory.
10800 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10803 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10804 number comes after the + or - signs. Adjust length of register
10805 name to be extracted.
10807 2014-02-20 Tom Tromey <tromey@redhat.com>
10809 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10810 (ada_varobj_ops): Mark "extern".
10812 2014-02-20 Tom Tromey <tromey@redhat.com>
10814 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10816 2014-02-20 Doug Evans <xdje42@gmail.com>
10818 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10819 All callers updated.
10820 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10821 All callers updated.
10822 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10823 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10825 2014-02-20 lin zuojian <manjian2006@gmail.com>
10826 Joel Brobecker <brobecker@adacore.com>
10827 Doug Evans <xdje42@gmail.com>
10830 * dwarf2read.c (struct die_info): New member in_process.
10831 (reset_die_in_process): New function.
10832 (process_die): Set it at the start, reset when returning.
10833 (inherit_abstract_dies): Only call process_die if origin_child_die
10834 not already being processed.
10836 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10838 * windows-nat.c (handle_unload_dll): Add function documentation.
10839 (do_initial_windows_stuff): Add comment explaining why we wait
10840 until after inferior initialization has finished before
10841 processing all DLLs.
10843 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10845 * windows-nat.c (get_module_name): Delete.
10846 (windows_get_exec_module_filename): New function, mostly
10847 inspired from get_module_name.
10848 (windows_pid_to_exec_file): Replace call to get_module_name
10849 by call to windows_get_exec_module_filename.
10851 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10853 * windows-nat.c (handle_load_dll): Rewrite this function's
10854 introductory comment. Remove code using get_module_name
10855 to get the DLL's name.
10857 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10859 * windows-nat.c (get_windows_debug_event): Ignore
10860 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10861 if windows_initialization_done == 0.
10862 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10863 Adjust implementation to always load all DLLs.
10864 (do_initial_windows_stuff): Replace call to
10865 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10867 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10869 * windows-nat.c (_initialize_windows_nat): Deprecate the
10870 "dll-symbols" command. Turn the "add-shared-symbol-files"
10871 and "assf" aliases into commands, and deprecate them as well.
10872 * NEWS: Add entry explaining that "dll-symbols" and its two
10873 aliases are now deprecated.
10875 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10877 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10878 new-line in debug string. Remove trailing spaces.
10880 2014-02-19 Stan Shebs <stan@codesourcery.com>
10882 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10884 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10886 * NEWS: Add entry for the new feature
10887 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10890 2014-02-19 Stan Shebs <stan@codesourcery.com>
10892 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10894 2014-02-19 Pedro Alves <palves@redhat.com>
10896 * common/ptid.h (struct ptid): Mention that process_stratum
10897 targets should prefer ptid.lwp.
10899 2014-02-19 Pedro Alves <palves@redhat.com>
10901 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10902 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10903 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10904 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10905 store remote thread ids rather than ptid.tid.
10906 (_initialize_remote): Adjust.
10908 2014-02-19 Tom Tromey <tromey@redhat.com>
10910 * target.c (target_get_unwinder): Rewrite.
10911 (target_get_tailcall_unwinder): Rewrite.
10912 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10913 (record_btrace_to_get_tailcall_unwinder): New function.
10914 (init_record_btrace_ops): Update.
10915 * target.h (struct target_ops) <to_get_unwinder,
10916 to_get_tailcall_unwinder>: Now function pointers. Use
10917 TARGET_DEFAULT_RETURN.
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10921 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10923 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10925 2014-02-19 Tom Tromey <tromey@redhat.com>
10927 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10929 * target-delegates.c: Rebuild.
10930 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10931 TARGET_DEFAULT_FUNC.
10932 * target.c (default_target_decr_pc_after_break): Rename from
10933 forward_target_decr_pc_after_break. Simplify.
10934 (target_decr_pc_after_break): Rely on delegation.
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10938 * target.c (update_current_target): Do not INHERIT to_doc or
10939 to_magic. Do not de_fault to_open or to_close.
10941 2014-02-19 Tom Tromey <tromey@redhat.com>
10943 * gcore.h (objfile_find_memory_regions): Declare.
10944 * gcore.c (objfile_find_memory_regions): No longer static. Add
10946 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10947 * exec.c: Include gcore.h.
10948 (exec_set_find_memory_regions): Remove.
10949 (exec_find_memory_regions): Remove.
10950 (exec_do_find_memory_regions): Remove.
10951 (init_exec_ops): Update.
10952 * defs.h (exec_set_find_memory_regions): Remove.
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10956 * target-delegates.c: Rebuild.
10957 * target.h (struct target_ops) <to_extra_thread_info,
10958 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10959 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10960 not 0, in TARGET_DEFAULT_RETURN.
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10964 * target.c (complete_target_initialization): Remove casts. Use
10965 return_zero_has_execution.
10966 (return_zero): Add "ignore" argument.
10967 (return_zero_has_execution): New function.
10968 (init_dummy_target): Remove casts. Use
10969 return_zero_has_execution.
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10973 * target.c (update_current_target): Update comments. Do not
10974 INHERIT to_stratum.
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10978 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10980 * corelow.c (core_read_description): Delegate when needed.
10981 * remote.c (remote_read_description): Delegate when needed.
10982 * target-delegates.c: Rebuild.
10983 * target.c (target_read_description): Rewrite.
10984 * target.h (struct target_ops) <to_read_description>: Update
10985 comment. Use TARGET_DEFAULT_RETURN.
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10989 * target-delegates.c: Rebuild.
10990 * target.c (update_current_target): Don't inherit or default
10992 (find_default_run_target): Check against delegate_can_run.
10993 * target.h (struct target_ops) <to_can_run>: Use
10994 TARGET_DEFAULT_RETURN.
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target-delegates.c: Rebuild.
10999 * target.c (target_disconnect): Unconditionally delegate.
11000 * target.h (struct target_ops) <to_disconnect>: Use
11001 TARGET_DEFAULT_NORETURN.
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11005 * record.c (record_stop): Unconditionally delegate.
11006 * target-delegates.c: Rebuild.
11007 * target.c (target_stop_recording): Unconditionally delegate.
11008 * target.h (struct target_ops) <to_stop_recording>: Use
11009 TARGET_DEFAULT_IGNORE.
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * target-delegates.c: Rebuild.
11014 * target.c (target_enable_btrace): Unconditionally delegate.
11015 * target.h (struct target_ops) <to_enable_btrace>: Use
11016 TARGET_DEFAULT_NORETURN.
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target-delegates.c: Rebuild.
11021 * target.c (target_read_btrace): Unconditionally delegate.
11022 * target.h (struct target_ops) <to_read_btrace>: Use
11023 TARGET_DEFAULT_NORETURN.
11025 2014-02-19 Tom Tromey <tromey@redhat.com>
11027 * target-delegates.c: Rebuild.
11028 * target.c (target_teardown_btrace): Unconditionally delegate.
11029 * target.h (struct target_ops) <to_teardown_btrace>: Use
11030 TARGET_DEFAULT_NORETURN.
11032 2014-02-19 Tom Tromey <tromey@redhat.com>
11034 * target-delegates.c: Rebuild.
11035 * target.c (target_disable_btrace): Unconditionally delegate.
11036 * target.h (struct target_ops) <to_disable_btrace>: Use
11037 TARGET_DEFAULT_NORETURN.
11039 2014-02-19 Tom Tromey <tromey@redhat.com>
11041 * target-delegates.c: Rebuild.
11042 * target.c (default_search_memory): New function.
11043 (simple_search_memory): Update comment.
11044 (target_search_memory): Unconditionally delegate.
11045 * target.h (struct target_ops) <to_search_memory>: Use
11046 TARGET_DEFAULT_FUNC.
11048 2014-02-19 Tom Tromey <tromey@redhat.com>
11050 * auxv.c (default_auxv_parse): No longer static.
11051 (target_auxv_parse): Unconditionally delegate.
11052 * auxv.h (default_auxv_parse): Declare.
11053 * target-delegates.c: Rebuild.
11054 * target.c: Include auxv.h.
11055 * target.h (struct target_ops) <to_auxv_parse>: Use
11056 TARGET_DEFAULT_FUNC.
11058 2014-02-19 Tom Tromey <tromey@redhat.com>
11060 * target-delegates.c: Rebuild.
11061 * target.c (target_memory_map): Unconditionally delegate.
11062 * target.h (struct target_ops) <to_memory_map>: Use
11063 TARGET_DEFAULT_RETURN.
11065 2014-02-19 Tom Tromey <tromey@redhat.com>
11067 * target-delegates.c: Rebuild.
11068 * target.c (target_thread_alive): Unconditionally delegate.
11069 * target.h (struct target_ops) <to_thread_alive>: Use
11070 TARGET_DEFAULT_RETURN.
11072 2014-02-19 Tom Tromey <tromey@redhat.com>
11074 * target-delegates.c: Rebuild.
11075 * target.c (target_save_record): Unconditionally delegate.
11076 * target.h (struct target_ops) <to_save_record>: Use
11077 TARGET_DEFAULT_NORETURN.
11079 2014-02-19 Tom Tromey <tromey@redhat.com>
11081 * target-delegates.c: Rebuild.
11082 * target.c (target_delete_record): Unconditionally delegate.
11083 * target.h (struct target_ops) <to_delete_record>: Use
11084 TARGET_DEFAULT_NORETURN.
11086 2014-02-19 Tom Tromey <tromey@redhat.com>
11088 * target-delegates.c: Rebuild.
11089 * target.c (target_record_is_replaying): Unconditionally
11091 * target.h (struct target_ops) <to_record_is_replaying>: Use
11092 TARGET_DEFAULT_RETURN.
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11096 * target-delegates.c: Rebuild.
11097 * target.c (target_goto_record_begin): Unconditionally delegate.
11098 * target.h (struct target_ops) <to_goto_record_begin>: Use
11099 TARGET_DEFAULT_NORETURN.
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11103 * target-delegates.c: Rebuild.
11104 * target.c (target_goto_record_end): Unconditionally delegate.
11105 * target.h (struct target_ops) <to_goto_record_end>: Use
11106 TARGET_DEFAULT_NORETURN.
11108 2014-02-19 Tom Tromey <tromey@redhat.com>
11110 * target-delegates.c: Rebuild.
11111 * target.c (target_goto_record): Unconditionally delegate.
11112 * target.h (struct target_ops) <to_goto_record>: Use
11113 TARGET_DEFAULT_NORETURN.
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11117 * target-delegates.c: Rebuild.
11118 * target.c (target_insn_history): Unconditionally delegate.
11119 * target.h (struct target_ops) <to_insn_history>: Use
11120 TARGET_DEFAULT_NORETURN.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11124 * target-delegates.c: Rebuild.
11125 * target.c (target_insn_history_from): Unconditionally delegate.
11126 * target.h (struct target_ops) <to_insn_history_from>: Use
11127 TARGET_DEFAULT_NORETURN.
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11131 * target-delegates.c: Rebuild.
11132 * target.c (target_insn_history_range): Unconditionally delegate.
11133 * target.h (struct target_ops) <to_insn_history_range>: Use
11134 TARGET_DEFAULT_NORETURN.
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11138 * target-delegates.c: Rebuild.
11139 * target.c (target_call_history): Unconditionally delegate.
11140 * target.h (struct target_ops) <to_call_history>: Use
11141 TARGET_DEFAULT_NORETURN.
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11145 * target-delegates.c: Rebuild.
11146 * target.c (target_call_history_from): Unconditionally delegate.
11147 * target.h (struct target_ops) <to_call_history_from>: Use
11148 TARGET_DEFAULT_NORETURN.
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11152 * target-delegates.c: Rebuild.
11153 * target.c (target_call_history_range): Unconditionally delegate.
11154 * target.h (struct target_ops) <to_call_history_range>: Use
11155 TARGET_DEFAULT_NORETURN.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target-delegates.c: Rebuild.
11160 * target.c (target_verify_memory): Unconditionally delegate.
11161 * target.h (struct target_ops) <to_verify_memory>: Use
11162 TARGET_DEFAULT_NORETURN.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_core_of_thread): Unconditionally delegate.
11168 * target.h (struct target_ops) <to_core_of_thread>: Use
11169 TARGET_DEFAULT_RETURN.
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11173 * target-delegates.c: Rebuild.
11174 * target.c (target_flash_done): Unconditionally delegate.
11175 * target.h (struct target_ops) <to_flash_done>: Use
11176 TARGET_DEFAULT_NORETURN.
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11180 * target-delegates.c: Rebuild.
11181 * target.c (target_flash_erase): Unconditionally delegate.
11182 * target.h (struct target_ops) <to_flash_erase>: Use
11183 TARGET_DEFAULT_NORETURN.
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11187 * target-delegates.c: Rebuild.
11188 * target.c (target_get_section_table): Unconditionally delegate.
11189 * target.h (struct target_ops) <to_get_section_table>: Use
11190 TARGET_DEFAULT_RETURN.
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11194 * target-delegates.c: Rebuild.
11195 * target.c (target_pid_to_str): Unconditionally delegate.
11196 (init_dummy_target): Don't initialize to_pid_to_str.
11197 (default_pid_to_str): Rename from dummy_pid_to_str.
11198 * target.h (struct target_ops) <to_pid_to_str>: Use
11199 TARGET_DEFAULT_FUNC.
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11203 * target-delegates.c: Rebuild.
11204 * target.c (target_find_new_threads): Unconditionally delegate.
11205 * target.h (struct target_ops) <to_find_new_threads>: Use
11206 TARGET_DEFAULT_RETURN.
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target-delegates.c: Rebuild.
11211 * target.c (target_program_signals): Unconditionally delegate.
11212 * target.h (struct target_ops) <to_program_signals>: Use
11213 TARGET_DEFAULT_IGNORE.
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11217 * target-delegates.c: Rebuild.
11218 * target.c (target_pass_signals): Unconditionally delegate.
11219 * target.h (struct target_ops) <to_pass_signals>: Use
11220 TARGET_DEFAULT_IGNORE.
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target-delegates.c: Rebuild.
11225 * target.c (default_mourn_inferior): New function.
11226 (target_mourn_inferior): Unconditionally delegate.
11227 * target.h (struct target_ops) <to_mourn_inferior>: Use
11228 TARGET_DEFAULT_FUNC.
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11232 * target-delegates.c: Rebuild.
11233 * target.c (default_follow_fork): New function.
11234 (target_follow_fork): Unconditionally delegate.
11235 * target.h (struct target_ops) <to_follow_fork>: Use
11236 TARGET_DEFAULT_FUNC.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target-delegates.c: Rebuild.
11241 * target.c (target_kill): Unconditionally delegate.
11242 * target.h (struct target_ops) <to_kill>: Use
11243 TARGET_DEFAULT_NORETURN.
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11247 * target-delegates.c: Rebuild.
11248 * target.c (target_masked_watch_num_registers): Unconditionally
11250 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11251 Use TARGET_DEFAULT_RETURN.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * target-delegates.c: Rebuild.
11256 * target.c (target_remove_mask_watchpoint): Unconditionally
11258 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11259 TARGET_DEFAULT_RETURN.
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11263 * target-delegates.c: Rebuild.
11264 * target.c (target_insert_mask_watchpoint): Unconditionally
11266 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11267 TARGET_DEFAULT_RETURN.
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11271 * target-delegates.c: Rebuild.
11272 * target.c (target_ranged_break_num_registers): Unconditionally
11274 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11275 Use TARGET_DEFAULT_RETURN.
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11279 * target-delegates.c: Rebuild.
11280 * target.c (target_fetch_registers): Unconditionally delegate.
11281 * target.h (struct target_ops) <to_fetch_registers>: Use
11282 TARGET_DEFAULT_NORETURN.
11284 2014-02-19 Tom Tromey <tromey@redhat.com>
11286 * target-delegates.c: Rebuild.
11287 * target.c (update_current_target): Don't inherit or default
11289 * target.h (struct target_ops) <to_stop>: Use
11290 TARGET_DEFAULT_IGNORE.
11292 2014-02-19 Tom Tromey <tromey@redhat.com>
11294 * target-delegates.c: Rebuild.
11295 * target.c (update_current_target): Don't inherit or default
11296 to_can_run_breakpoint_commands.
11297 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11298 Use TARGET_DEFAULT_RETURN.
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11302 * target-delegates.c: Rebuild.
11303 * target.c (update_current_target): Don't inherit or default
11304 to_supports_evaluation_of_breakpoint_conditions.
11305 * target.h (struct target_ops)
11306 <to_supports_evaluation_of_breakpoint_conditions>: Use
11307 TARGET_DEFAULT_RETURN.
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11311 * target-delegates.c: Rebuild.
11312 * target.c (update_current_target): Don't inherit or default
11313 to_augmented_libraries_svr4_read.
11314 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11315 Use TARGET_DEFAULT_RETURN.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target-delegates.c: Rebuild.
11320 * target.c (update_current_target): Don't inherit or default
11322 * target.h (struct target_ops) <to_can_use_agent>: Use
11323 TARGET_DEFAULT_RETURN.
11325 2014-02-19 Tom Tromey <tromey@redhat.com>
11327 * target-delegates.c: Rebuild.
11328 * target.c (update_current_target): Don't inherit or default
11330 * target.h (struct target_ops) <to_use_agent>: Use
11331 TARGET_DEFAULT_NORETURN.
11333 2014-02-19 Tom Tromey <tromey@redhat.com>
11335 * target-delegates.c: Rebuild.
11336 * target.c (update_current_target): Don't inherit or default
11337 to_traceframe_info.
11338 (return_null): Remove.
11339 * target.h (struct target_ops) <to_traceframe_info>: Use
11340 TARGET_DEFAULT_RETURN.
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11344 * target-delegates.c: Rebuild.
11345 * target.c (update_current_target): Don't inherit or default
11346 to_static_tracepoint_markers_by_strid.
11347 * target.h (struct target_ops)
11348 <to_static_tracepoint_markers_by_strid>: Use
11349 TARGET_DEFAULT_NORETURN.
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11353 * target-delegates.c: Rebuild.
11354 * target.c (update_current_target): Don't inherit or default
11355 to_static_tracepoint_marker_at.
11356 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11357 Use TARGET_DEFAULT_RETURN.
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't inherit or default
11363 to_set_permissions.
11364 * target.h (struct target_ops) <to_set_permissions>: Use
11365 TARGET_DEFAULT_IGNORE.
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11369 * target-delegates.c: Rebuild.
11370 * target.c (update_current_target): Don't inherit or default
11371 to_get_tib_address.
11372 * target.h (struct target_ops) <to_get_tib_address>: Use
11373 TARGET_DEFAULT_NORETURN.
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11377 * target-delegates.c: Rebuild.
11378 * target.c (update_current_target): Don't inherit or default
11379 to_set_trace_notes.
11380 * target.h (struct target_ops) <to_set_trace_notes>: Use
11381 TARGET_DEFAULT_RETURN.
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11385 * target-delegates.c: Rebuild.
11386 * target.c (update_current_target): Don't initialize
11387 to_set_trace_buffer_size.
11388 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11389 TARGET_DEFAULT_IGNORE.
11391 2014-02-19 Tom Tromey <tromey@redhat.com>
11393 * target-delegates.c: Rebuild.
11394 * target.c (update_current_target): Don't inherit or default
11395 to_set_circular_trace_buffer.
11396 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11397 TARGET_DEFAULT_IGNORE.
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11401 * target-delegates.c: Rebuild.
11402 * target.c (update_current_target): Don't inherit or default
11403 to_set_disconnected_tracing.
11404 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11405 TARGET_DEFAULT_IGNORE.
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11411 to_get_min_fast_tracepoint_insn_len.
11412 (return_minus_one): Remove.
11413 * target.h (struct target_ops)
11414 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target-delegates.c: Rebuild.
11419 * target.c (update_current_target): Don't inherit or default
11420 to_get_raw_trace_data.
11421 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11422 TARGET_DEFAULT_NORETURN.
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11426 * target-delegates.c: Rebuild.
11427 * target.c (update_current_target): Don't inherit or default
11428 to_upload_trace_state_variables.
11429 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11430 Use TARGET_DEFAULT_RETURN.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (update_current_target): Don't inherit or default
11436 to_upload_tracepoints.
11437 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11438 TARGET_DEFAULT_RETURN.
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target-delegates.c: Rebuild.
11443 * target.c (update_current_target): Don't inherit or default
11444 to_save_trace_data.
11445 * target.h (struct target_ops) <to_save_trace_data>: Use
11446 TARGET_DEFAULT_NORETURN.
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11452 to_get_trace_state_variable_value.
11453 * target.h (struct target_ops)
11454 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11458 * target-delegates.c: Rebuild.
11459 * target.c (update_current_target): Don't inherit or default
11461 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11468 * target.h (struct target_ops) <to_trace_stop>: Use
11469 TARGET_DEFAULT_NORETURN.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * target-delegates.c: Rebuild.
11474 * target.c (update_current_target): Don't inherit or default
11475 to_get_tracepoint_status.
11476 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11477 TARGET_DEFAULT_NORETURN.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_get_trace_status.
11484 * target.h (struct target_ops) <to_get_trace_status>: Use
11485 TARGET_DEFAULT_RETURN.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11492 * target.h (struct target_ops) <to_trace_start>: Use
11493 TARGET_DEFAULT_NORETURN.
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11499 to_trace_set_readonly_regions.
11500 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11501 Use TARGET_DEFAULT_NORETURN.
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11507 to_disable_tracepoint.
11508 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11509 TARGET_DEFAULT_NORETURN.
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_enable_tracepoint.
11516 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11517 TARGET_DEFAULT_NORETURN.
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11523 to_download_trace_state_variable.
11524 * target.h (struct target_ops) <to_download_trace_state_variable>:
11525 Use TARGET_DEFAULT_NORETURN.
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11531 to_can_download_tracepoint.
11532 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11533 TARGET_DEFAULT_RETURN.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_download_tracepoint.
11540 * target.h (struct target_ops) <to_download_tracepoint>: Use
11541 TARGET_DEFAULT_NORETURN.
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11548 * target.h (struct target_ops) <to_trace_init>: Use
11549 TARGET_DEFAULT_RETURN.
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target-delegates.c: Rebuild.
11554 * target.c (update_current_target): Don't inherit or default
11555 to_supports_string_tracing.
11556 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11557 TARGET_DEFAULT_RETURN.
11559 2014-02-19 Tom Tromey <tromey@redhat.com>
11561 * target-delegates.c: Rebuild.
11562 * target.c (update_current_target): Don't inherit or default
11563 to_supports_enable_disable_tracepoint.
11564 * target.h (struct target_ops)
11565 <to_supports_enable_disable_tracepoint>: Use
11566 TARGET_DEFAULT_RETURN.
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11572 to_supports_multi_process.
11573 * target.h (struct target_ops) <to_supports_multi_process>: Use
11574 TARGET_DEFAULT_RETURN.
11576 2014-02-19 Tom Tromey <tromey@redhat.com>
11578 * target-delegates.c: Rebuild.
11579 * target.c (update_current_target): Don't inherit or default
11580 to_get_ada_task_ptid.
11581 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11582 TARGET_DEFAULT_FUNC.
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11586 * target-delegates.c: Rebuild.
11587 * target.c (update_current_target): Don't inherit or default
11588 to_thread_architecture.
11589 * target.h (struct target_ops) <to_thread_architecture>: Use
11590 TARGET_DEFAULT_FUNC.
11592 2014-02-19 Tom Tromey <tromey@redhat.com>
11594 * target-delegates.c: Rebuild.
11595 * target.c (update_current_target): Don't inherit or default
11596 to_execution_direction.
11597 * target.h (struct target_ops) <to_execution_direction>: Use
11598 TARGET_DEFAULT_FUNC.
11600 2014-02-19 Tom Tromey <tromey@redhat.com>
11602 * target-delegates.c: Rebuild.
11603 * target.c (update_current_target): Don't inherit or default
11604 to_can_execute_reverse.
11605 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11606 TARGET_DEFAULT_RETURN.
11607 (target_can_execute_reverse): Unconditionally delegate.
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11611 * target-delegates.c: Rebuild.
11612 * target.c (update_current_target): Don't inherit or default
11614 (dummy_goto_bookmark): Remove.
11615 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11616 * target.h (struct target_ops) <to_goto_bookmark>: Use
11617 TARGET_DEFAULT_NORETURN.
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
11624 (dummy_get_bookmark): Remove.
11625 (init_dummy_target): Don't inherit or default to_get_bookmark.
11626 * target.h (struct target_ops) <to_get_bookmark>: Use
11627 TARGET_DEFAULT_NORETURN
11629 2014-02-19 Tom Tromey <tromey@redhat.com>
11631 * target-delegates.c: Rebuild.
11632 * target.c (update_current_target): Don't inherit or default
11633 to_make_corefile_notes.
11634 (init_dummy_target): Don't initialize to_make_corefile_notes.
11635 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11636 TARGET_DEFAULT_FUNC.
11638 2014-02-19 Tom Tromey <tromey@redhat.com>
11640 * target-delegates.c: Rebuild.
11641 * target.c (update_current_target): Don't inherit or default
11642 to_find_memory_regions.
11643 (init_dummy_target): Don't initialize to_find_memory_regions.
11644 * target.h (struct target_ops) <to_find_memory_regions>: Use
11645 TARGET_DEFAULT_FUNC.
11647 2014-02-19 Tom Tromey <tromey@redhat.com>
11649 * target-delegates.c: Rebuild.
11650 * target.c (update_current_target): Don't inherit or default
11652 * target.h (struct target_ops) <to_log_command>: Use
11653 TARGET_DEFAULT_IGNORE.
11654 (target_log_command): Unconditionally delegate.
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11658 * target-delegates.c: Rebuild.
11659 * target.c (update_current_target): Don't inherit or default
11660 to_pid_to_exec_file.
11661 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11662 TARGET_DEFAULT_RETURN.
11664 2014-02-19 Tom Tromey <tromey@redhat.com>
11666 * target-delegates.c: Rebuild.
11667 * target.c (update_current_target): Don't inherit or default
11669 (target_thread_name): Unconditionally delegate.
11670 * target.h (struct target_ops) <to_thread_name>: Use
11671 TARGET_DEFAULT_RETURN.
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_extra_thread_info.
11678 * target.h (struct target_ops) <to_extra_thread_info>: Use
11679 TARGET_DEFAULT_RETURN.
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11686 * target.h (struct target_ops) <to_has_exited>: Use
11687 TARGET_DEFAULT_RETURN..
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_set_syscall_catchpoint.
11694 (return_one): Remove.
11695 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11696 TARGET_DEFAULT_RETURN.
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target-delegates.c: Rebuild.
11701 * target.c (update_current_target): Don't inherit or default
11702 to_insert_exec_catchpoint.
11703 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11704 TARGET_DEFAULT_RETURN.
11706 2014-01-08 Tom Tromey <tromey@redhat.com>
11708 * target-delegates.c: Rebuild.
11709 * target.c (update_current_target): Don't inherit or default
11710 to_insert_exec_catchpoint.
11711 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11712 TARGET_DEFAULT_RETURN.
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11716 * target-delegates.c: Rebuild.
11717 * target.c (update_current_target): Don't inherit or default
11718 to_remove_vfork_catchpoint.
11719 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11720 TARGET_DEFAULT_RETURN.
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11724 * target-delegates.c: Rebuild.
11725 * target.c (update_current_target): Don't inherit or default
11726 to_insert_vfork_catchpoint.
11727 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11728 TARGET_DEFAULT_RETURN.
11730 2014-02-19 Tom Tromey <tromey@redhat.com>
11732 * target-delegates.c: Rebuild.
11733 * target.c (update_current_target): Don't inherit or default
11734 to_remove_fork_catchpoint.
11735 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11736 TARGET_DEFAULT_RETURN.
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11740 * target-delegates.c: Rebuild.
11741 * target.c (update_current_target): Don't inherit or default
11742 to_insert_fork_catchpoint.
11743 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11744 TARGET_DEFAULT_RETURN.
11746 2014-02-19 Tom Tromey <tromey@redhat.com>
11748 * target-delegates.c: Rebuild.
11749 * target.c (update_current_target): Don't inherit or default
11750 to_post_startup_inferior.
11751 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11752 TARGET_DEFAULT_IGNORE.
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11756 * target-delegates.c: Rebuild.
11757 * target.c (update_current_target): Don't inherit or default
11759 * target.h (struct target_ops) <to_load>: Use
11760 TARGET_DEFAULT_NORETURN.
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11767 * target.h (struct target_ops) <to_terminal_info>: Use
11768 TARGET_DEFAULT_FUNC.
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_terminal_save_ours.
11775 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11776 TARGET_DEFAULT_IGNORE.
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11783 * target.h (struct target_ops) <to_terminal_ours>: Use
11784 TARGET_DEFAULT_IGNORE.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_terminal_ours_for_output.
11791 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11792 TARGET_DEFAULT_IGNORE.
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_terminal_inferior.
11799 * target.h (struct target_ops) <to_terminal_inferior>: Use
11800 TARGET_DEFAULT_IGNORE.
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11807 * target.h (struct target_ops) <to_terminal_init>: Use
11808 TARGET_DEFAULT_IGNORE.
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11812 * target-delegates.c: Rebuild.
11813 * target.c (update_current_target): Don't inherit or default
11814 to_can_accel_watchpoint_condition.
11815 * target.h (struct target_ops)
11816 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11818 2014-02-19 Tom Tromey <tromey@redhat.com>
11820 * target-delegates.c: Rebuild.
11821 * target.c (update_current_target): Don't inherit or default
11822 to_region_ok_for_hw_watchpoint.
11823 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11824 Use TARGET_DEFAULT_FUNC.
11826 2014-02-19 Tom Tromey <tromey@redhat.com>
11828 * target-delegates.c: Rebuild.
11829 * target.c (update_current_target): Don't inherit or default
11830 to_watchpoint_addr_within_range.
11831 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11832 Use TARGET_DEFAULT_FUNC.
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11836 * target-delegates.c: Rebuild.
11837 * target.c (update_current_target): Don't inherit or default
11838 to_remove_watchpoint.
11839 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11840 TARGET_DEFAULT_NORETURN.
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target-delegates.c: Rebuild.
11845 * target.c (update_current_target): Don't inherit or default
11846 to_insert_watchpoint.
11847 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11848 TARGET_DEFAULT_RETURN.
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11852 * target-delegates.c: Rebuild.
11853 * target.c (update_current_target): Don't inherit or default
11854 to_remove_hw_breakpoint.
11855 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11856 TARGET_DEFAULT_RETURN.
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11860 * target-delegates.c: Rebuild.
11861 * target.c (update_current_target): Don't inherit or default
11862 to_insert_hw_breakpoint.
11863 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11864 TARGET_DEFAULT_RETURN.
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11868 * target-delegates.c: Rebuild.
11869 * target.c (update_current_target): Don't inherit or default
11870 to_can_use_hw_breakpoint.
11871 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11872 TARGET_DEFAULT_RETURN.
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11876 * target-delegates.c: Rebuild.
11877 * target.c (update_current_target): Don't inherit or default
11879 * target.h (struct target_ops) <to_files_info>: Use
11880 TARGET_DEFAULT_IGNORE.
11882 2014-02-19 Tom Tromey <tromey@redhat.com>
11884 * target-delegates.c: Rebuild.
11885 * target.c (update_current_target): Don't inherit or default
11887 * target.h (struct target_ops) <to_store>: Use
11888 TARGET_DEFAULT_NORETURN.
11890 2014-02-19 Tom Tromey <tromey@redhat.com>
11892 * target-delegates.c: Rebuild.
11893 * target.c (update_current_target): Don't inherit or default
11895 * target.h (struct target_ops) <to_post_attach>: Use
11896 TARGET_DEFAULT_IGNORE.
11898 2014-02-19 Tom Tromey <tromey@redhat.com>
11900 * target-delegates.c: Rebuild.
11901 * target.c (update_current_target): Don't inherit or default
11903 (default_rcmd): New function.
11904 (do_monitor_command): Unconditionally delegate.
11905 * target.h (struct target_ops) <to_rmcd>: Use
11906 TARGET_DEFAULT_FUNC.
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11910 * target-delegates.c: Rebuild.
11911 * target.c (init_dummy_target): Don't initialize to_attach.
11912 (target_attach): Unconditionally delegate.
11913 * target.h (struct target_ops) <to_attach>: Use
11914 TARGET_DEFAULT_FUNC.
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target-delegates.c: Rebuild.
11919 * target.c (target_detach): Unconditionally delegate.
11920 (init_dummy_target): Don't initialize to_detach.
11921 * target.h (struct target_ops) <to_detach>: Use
11922 TARGET_DEFAULT_IGNORE.
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11926 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11928 (target_augmented_libraries_svr4_read): Add argument.
11929 * target.c (update_current_target): Update.
11930 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11935 * target.h (struct target_ops) <to_call_history_range>: Add
11937 * target.c (target_call_history_range): Add argument.
11938 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11940 (record_btrace_call_history_from): Update.
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11944 * target.h (struct target_ops) <to_call_history_from>: Add
11946 * target.c (target_call_history_from): Add argument.
11947 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11952 * target.h (struct target_ops) <to_call_history>: Add argument.
11953 * target.c (target_call_history): Add argument.
11954 * record-btrace.c (record_btrace_call_history): Add 'self'
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11959 * target.h (struct target_ops) <to_insn_history_range>: Add
11961 * target.c (target_insn_history_range): Add argument.
11962 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11964 (record_btrace_insn_history_from): Update.
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11968 * target.h (struct target_ops) <to_insn_history_from>: Add
11970 * target.c (target_insn_history_from): Add argument.
11971 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11976 * target.h (struct target_ops) <to_insn_history>: Add argument.
11977 * target.c (target_insn_history): Add argument.
11978 * record-btrace.c (record_btrace_insn_history): Add 'self'
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11983 * target.h (struct target_ops) <to_goto_record>: Add argument.
11984 * target.c (target_goto_record): Add argument.
11985 * record-full.c (record_full_goto): Add 'self' argument.
11986 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11990 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11991 * target.c (target_goto_record_end): Add argument.
11992 * record-full.c (record_full_goto_end): Add 'self' argument.
11993 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11995 2014-02-19 Tom Tromey <tromey@redhat.com>
11997 * target.h (struct target_ops) <to_goto_record_begin>: Add
11999 * target.c (target_goto_record_begin): Add argument.
12000 * record-full.c (record_full_goto_begin): Add 'self' argument.
12001 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target.h (struct target_ops) <to_record_is_replaying>: Add
12008 * target.c (target_record_is_replaying): Add argument.
12009 * record-full.c (record_full_is_replaying): Add 'self' argument.
12010 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12012 (record_btrace_xfer_partial, record_btrace_store_registers)
12013 (record_btrace_prepare_to_store, record_btrace_resume)
12014 (record_btrace_wait, record_btrace_decr_pc_after_break)
12015 (record_btrace_find_new_threads, record_btrace_thread_alive):
12018 2014-02-19 Tom Tromey <tromey@redhat.com>
12020 * target.h (struct target_ops) <to_delete_record>: Add argument.
12021 * target.c (target_delete_record): Add argument.
12022 * record-full.c (record_full_delete): Add 'self' argument.
12024 2014-02-19 Tom Tromey <tromey@redhat.com>
12026 * target.h (struct target_ops) <to_save_record>: Add argument.
12027 * target.c (target_save_record): Add argument.
12028 * record-full.c (record_full_save): Add 'self' argument.
12029 (record_full_save): Add 'self' argument.
12031 2014-02-19 Tom Tromey <tromey@redhat.com>
12033 * target.h (struct target_ops) <to_info_record>: Add argument.
12034 * target.c (target_info_record): Add argument.
12035 * record.c (info_record_command): Add argument.
12036 * record-full.c (record_full_info): Add 'self' argument.
12037 * record-btrace.c (record_btrace_info): Add 'self' argument.
12039 2014-02-19 Tom Tromey <tromey@redhat.com>
12041 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12042 * target.c (target_stop_recording): Add argument.
12043 * record.c (record_stop): Add argument.
12044 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12047 2014-02-19 Tom Tromey <tromey@redhat.com>
12049 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12050 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12051 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12053 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12054 (_initialize_amd64_linux_nat): Use it.
12055 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12056 (_initialize_i386_linux_nat): Use it.
12058 2014-02-19 Tom Tromey <tromey@redhat.com>
12060 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12061 * target.c (target_teardown_btrace): Add argument.
12062 * remote.c (remote_teardown_btrace): Add 'self' argument.
12063 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12065 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12071 * target.c (target_disable_btrace): Add argument.
12072 * remote.c (remote_disable_btrace): Add 'self' argument.
12073 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12075 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12078 2014-02-19 Tom Tromey <tromey@redhat.com>
12080 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12081 * target.c (target_enable_btrace): Add argument.
12082 * remote.c (remote_enable_btrace): Add 'self' argument.
12083 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12085 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12090 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12091 (target_can_use_agent): Add argument.
12092 * target.c (update_current_target): Update.
12093 * remote.c (remote_can_use_agent): Add 'self' argument.
12094 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12096 2014-02-19 Tom Tromey <tromey@redhat.com>
12098 * target.h (struct target_ops) <to_use_agent>: Add argument.
12099 (target_use_agent): Add argument.
12100 * target.c (update_current_target): Update.
12101 * remote.c (remote_use_agent): Add 'self' argument.
12102 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12104 2014-02-19 Tom Tromey <tromey@redhat.com>
12106 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12107 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12108 (target_traceframe_info): Add argument.
12109 * target.c (update_current_target): Update.
12110 * remote.c (remote_traceframe_info): Add 'self' argument.
12111 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12113 2014-02-19 Tom Tromey <tromey@redhat.com>
12115 * target.h (target_static_tracepoint_markers_by_strid): Add
12117 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12119 * target.c (update_current_target): Update.
12120 * remote.c (struct target_ops)
12121 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12122 * linux-nat.c (struct target_ops)
12123 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12125 2014-02-19 Tom Tromey <tromey@redhat.com>
12127 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12129 (target_static_tracepoint_marker_at): Add argument.
12130 * target.c (update_current_target): Update.
12131 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12134 2014-02-19 Tom Tromey <tromey@redhat.com>
12136 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12137 (target_set_permissions): Add argument.
12138 * target.c (update_current_target): Update.
12139 * remote.c (remote_set_permissions): Add 'self' argument.
12140 (remote_start_remote): Update.
12142 2014-02-19 Tom Tromey <tromey@redhat.com>
12144 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12145 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12146 (target_get_tib_address): Add argument.
12147 * target.c (update_current_target): Update.
12148 * remote.c (remote_get_tib_address): Add 'self' argument.
12150 2014-02-19 Tom Tromey <tromey@redhat.com>
12152 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12153 (target_set_trace_notes): Add argument.
12154 * target.c (update_current_target): Update.
12155 * remote.c (remote_set_trace_notes): Add 'self' argument.
12157 2014-02-19 Tom Tromey <tromey@redhat.com>
12159 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12161 (target_set_trace_buffer_size): Add argument.
12162 * target.c (update_current_target): Update.
12163 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12165 2014-02-19 Tom Tromey <tromey@redhat.com>
12167 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12169 (target_set_circular_trace_buffer): Add argument.
12170 * target.c (update_current_target): Update.
12171 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12174 2014-02-19 Tom Tromey <tromey@redhat.com>
12176 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12178 (target_set_disconnected_tracing): Add argument.
12179 * target.c (update_current_target): Update.
12180 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12182 2014-02-19 Tom Tromey <tromey@redhat.com>
12184 * target.h (struct target_ops)
12185 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12186 (target_get_min_fast_tracepoint_insn_len): Add argument.
12187 * target.c (update_current_target): Update.
12188 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12191 2014-02-19 Tom Tromey <tromey@redhat.com>
12193 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12195 (target_get_raw_trace_data): Add argument.
12196 * target.c (update_current_target): Update.
12197 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12201 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12203 (target_upload_trace_state_variables): Add argument.
12204 * target.c (update_current_target): Update.
12205 * remote.c (remote_upload_trace_state_variables): Add 'self'
12207 (remote_start_remote): Update.
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12211 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12213 (target_upload_tracepoints): Add argument.
12214 * target.c (update_current_target): Update.
12215 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12216 (remote_start_remote): Update.
12218 2014-02-19 Tom Tromey <tromey@redhat.com>
12220 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12221 (target_save_trace_data): Add argument.
12222 * target.c (update_current_target): Update.
12223 * remote.c (remote_save_trace_data): Add 'self' argument.
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12227 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12229 * target.h (struct target_ops)
12230 <to_get_trace_state_variable_value>: Add argument.
12231 (target_get_trace_state_variable_value): Add argument.
12232 * target.c (update_current_target): Update.
12233 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12235 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12239 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12240 * target.h (struct target_ops) <to_trace_find>: Add argument.
12241 (target_trace_find): Add argument.
12242 * target.c (update_current_target): Update.
12243 * remote.c (remote_trace_find): Add 'self' argument.
12244 * ctf.c (ctf_trace_find): Add 'self' argument.
12246 2014-02-19 Tom Tromey <tromey@redhat.com>
12248 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12249 (target_trace_stop): Add argument.
12250 * target.c (update_current_target): Update.
12251 * remote.c (remote_trace_stop): Add 'self' argument.
12253 2014-02-19 Tom Tromey <tromey@redhat.com>
12255 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12256 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12258 (target_get_tracepoint_status): Add argument.
12259 * target.c (update_current_target): Update.
12260 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12262 2014-02-19 Tom Tromey <tromey@redhat.com>
12264 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12265 * target.h (struct target_ops) <to_get_trace_status>: Add
12267 (target_get_trace_status): Add argument.
12268 * target.c (update_current_target): Update.
12269 * remote.c (remote_get_trace_status): Add 'self' argument.
12270 (remote_start_remote, remote_can_download_tracepoint): Update.
12271 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12273 2014-02-19 Tom Tromey <tromey@redhat.com>
12275 * target.h (struct target_ops) <to_trace_start>: Add argument.
12276 (target_trace_start): Add argument.
12277 * target.c (update_current_target): Update.
12278 * remote.c (remote_trace_start): Add 'self' argument.
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12282 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12284 (target_trace_set_readonly_regions): Add argument.
12285 * target.c (update_current_target): Update.
12286 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12289 2014-02-19 Tom Tromey <tromey@redhat.com>
12291 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12293 (target_disable_tracepoint): Add argument.
12294 * target.c (update_current_target): Update.
12295 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12299 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12301 (target_enable_tracepoint): Add argument.
12302 * target.c (update_current_target): Update.
12303 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12307 * target.h (struct target_ops) <to_download_trace_state_variable>:
12309 (target_download_trace_state_variable): Add argument.
12310 * target.c (update_current_target): Update.
12311 * remote.c (remote_download_trace_state_variable): Add 'self'
12314 2014-02-19 Tom Tromey <tromey@redhat.com>
12316 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12318 (target_can_download_tracepoint): Add argument.
12319 * target.c (update_current_target): Update.
12320 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12322 2014-02-19 Tom Tromey <tromey@redhat.com>
12324 * target.h (struct target_ops) <to_download_tracepoint>: Add
12326 (target_download_tracepoint): Add argument.
12327 * target.c (update_current_target): Update.
12328 * remote.c (remote_download_tracepoint): Add 'self' argument.
12330 2014-02-19 Tom Tromey <tromey@redhat.com>
12332 * target.h (struct target_ops) <to_trace_init>: Add argument.
12333 (target_trace_init): Add argument.
12334 * target.c (update_current_target): Update.
12335 * remote.c (remote_trace_init): Add 'self' argument.
12337 2014-02-19 Tom Tromey <tromey@redhat.com>
12339 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12340 * target.c (target_fileio_readlink): Add argument.
12341 * remote.c (remote_hostio_readlink): Add 'self' argument.
12342 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12346 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12347 * target.c (target_fileio_unlink): Add argument.
12348 * remote.c (remote_hostio_unlink): Add 'self' argument.
12349 (remote_file_delete): Update.
12350 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12355 * target.c (target_fileio_close): Add argument.
12356 * remote.c (remote_hostio_close): Add 'self' argument.
12357 (remote_hostio_close_cleanup): Update.
12358 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12360 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12362 2014-02-19 Tom Tromey <tromey@redhat.com>
12364 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12365 * target.c (target_fileio_pread): Add argument.
12366 * remote.c (remote_hostio_pread): Add 'self' argument.
12367 (remote_bfd_iovec_pread, remote_file_get): Update.
12368 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12370 2014-02-19 Tom Tromey <tromey@redhat.com>
12372 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12373 * target.c (target_fileio_pwrite): Add argument.
12374 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12375 (remote_file_put): Update.
12376 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12378 2014-02-19 Tom Tromey <tromey@redhat.com>
12380 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12381 * target.c (target_fileio_open): Add argument.
12382 * remote.c (remote_hostio_open): Add 'self' argument.
12383 (remote_bfd_iovec_open): Add 'self' argument.
12384 (remote_file_put): Add 'self' argument.
12385 (remote_file_get): Add 'self' argument.
12386 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12388 2014-02-19 Tom Tromey <tromey@redhat.com>
12390 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12392 (target_can_run_breakpoint_commands): Add argument.
12393 * target.c (update_current_target): Update.
12394 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12396 (remote_insert_breakpoint): Add 'self' argument.
12397 (remote_insert_hw_breakpoint): Add 'self' argument.
12398 (remote_can_run_breakpoint_commands): Add 'self' argument.
12400 2014-02-19 Tom Tromey <tromey@redhat.com>
12402 * target.h (struct target_ops)
12403 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12404 (target_supports_evaluation_of_breakpoint_conditions): Add
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12409 (remote_insert_breakpoint): Add 'self' argument.
12410 (remote_insert_hw_breakpoint): Add 'self' argument.
12411 (remote_supports_cond_breakpoints): Add 'self' argument.
12413 2014-02-19 Tom Tromey <tromey@redhat.com>
12415 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12417 (target_supports_string_tracing): Add argument.
12418 * target.c (update_current_target): Update.
12419 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12421 2014-02-19 Tom Tromey <tromey@redhat.com>
12423 * target.h (struct target_ops)
12424 <to_supports_disable_randomization>: Add argument.
12425 * target.c (find_default_supports_disable_randomization): Add
12427 (target_supports_disable_randomization): Add argument.
12428 (find_default_supports_disable_randomization): Add 'self'
12430 * remote.c (extended_remote_supports_disable_randomization): Add
12432 (remote_supports_disable_randomization): Add 'self' argument.
12433 (extended_remote_create_inferior): Update.
12434 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12437 2014-02-19 Tom Tromey <tromey@redhat.com>
12439 * target.h (struct target_ops)
12440 <to_supports_enable_disable_tracepoint>: Add argument.
12441 (target_supports_enable_disable_tracepoint): Add argument.
12442 * target.c (update_current_target): Update.
12443 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12448 * target.h (struct target_ops) <to_supports_multi_process>: Add
12450 (target_supports_multi_process): Add argument.
12451 * target.c (update_current_target): Update.
12452 * remote.c (remote_supports_multi_process): Add 'self' argument.
12453 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12455 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12458 2014-02-19 Tom Tromey <tromey@redhat.com>
12460 * target.h (struct target_ops) <to_execution_direction>: Add
12462 (target_execution_direction): Add argument.
12463 * target.c (default_execution_direction): Add 'self' argument.
12464 * record-full.c (record_full_execution_direction): Add 'self'
12467 2014-02-19 Tom Tromey <tromey@redhat.com>
12469 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12471 (target_can_execute_reverse): Add argument.
12472 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12473 * record-full.c (record_full_can_execute_reverse): Add 'self'
12475 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12478 2014-02-19 Tom Tromey <tromey@redhat.com>
12480 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12481 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12483 (target_get_ada_task_ptid): Add argument.
12484 * target.c (update_current_target): Update.
12485 (default_get_ada_task_ptid): Add 'self' argument.
12486 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12487 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12488 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12490 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12492 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12494 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12496 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12497 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12500 2014-02-19 Tom Tromey <tromey@redhat.com>
12502 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12503 (target_goto_bookmark): Add argument.
12504 * target.c (dummy_goto_bookmark): Add 'self' argument.
12505 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12507 2014-02-19 Tom Tromey <tromey@redhat.com>
12509 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12510 (target_get_bookmark): Add argument.
12511 * target.c (dummy_get_bookmark): Add 'self' argument.
12512 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12516 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12518 (target_make_corefile_notes): Add argument.
12519 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12520 * procfs.c (procfs_make_note_section): Add 'self' argument.
12521 (procfs_make_note_section): Add 'self' argument.
12522 (procfs_make_note_section): Add 'self' argument.
12523 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12525 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12526 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12527 * exec.c (exec_make_note_section): Add 'self' argument.
12528 (exec_make_note_section): Add 'self' argument.
12530 2014-02-19 Tom Tromey <tromey@redhat.com>
12532 * target.h (struct target_ops) <to_find_memory_regions>: Add
12534 (target_find_memory_regions): Add argument.
12535 * target.c (dummy_find_memory_regions): Add 'self' argument.
12536 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12537 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12538 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12539 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12540 * exec. (exec_do_find_memory_regions): New global.
12541 (exec_set_find_memory_regions): Rewrite.
12542 (exec_find_memory_regions): New function.
12543 (init_exec_ops): Use exec_find_memory_regions.
12545 2014-02-19 Tom Tromey <tromey@redhat.com>
12547 * target.h (struct target_ops) <to_supports_non_stop>: Add
12549 * target.c (find_default_supports_non_stop): Add argument.
12550 (target_supports_non_stop): Add argument.
12551 (find_default_supports_non_stop): Add 'self' argument.
12552 * remote.c (remote_supports_non_stop): Add 'self' argument.
12553 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12555 2014-02-19 Tom Tromey <tromey@redhat.com>
12557 * target.h (struct target_ops) <to_log_command>: Add argument.
12558 (target_log_command): Add argument.
12559 * serial.h (serial_log_command): Add 'self' argument.
12560 * serial.c (serial_log_command): Add 'self' argument.
12562 2014-02-19 Tom Tromey <tromey@redhat.com>
12564 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12565 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12567 (target_pid_to_exec_file): Add argument.
12568 * target.c (debug_to_pid_to_exec_file): Add argument.
12569 (update_current_target): Update.
12570 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12571 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12572 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12573 (linux_handle_extended_wait): Update.
12574 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12575 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12576 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12577 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12579 2014-02-19 Tom Tromey <tromey@redhat.com>
12581 * target.h (struct target_ops) <to_rcmd>: Add argument.
12582 (target_rcmd): Add argument.
12583 * target.c (debug_to_rcmd): Add argument.
12584 (update_current_target, do_monitor_command): Update.
12585 * remote.c (remote_rcmd): Add 'self' argument.
12586 * monitor.c (monitor_rcmd): Add 'self' argument.
12588 2014-02-19 Tom Tromey <tromey@redhat.com>
12590 * windows-nat.c (windows_stop): Add 'self' argument.
12591 * target.h (struct target_ops) <to_stop>: Add argument.
12592 * target.c (target_stop): Add argument.
12593 (debug_to_stop): Add argument.
12594 (update_current_target): Update.
12595 * remote.c (remote_stop): Add 'self' argument.
12596 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12597 (gdbsim_cntrl_c): Update.
12598 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12599 * procfs.c (procfs_stop): Add 'self' argument.
12600 * nto-procfs.c (procfs_stop): Add 'self' argument.
12601 * monitor.c (monitor_stop): Add 'self' argument.
12602 (monitor_open): Update.
12603 * linux-nat.c (linux_nat_stop): Add argument.
12604 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12605 * gnu-nat.c (gnu_stop): Add 'self' argument.
12606 * darwin-nat.c (darwin_stop): Add 'self' argument.
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12610 * target.h (struct target_ops) <to_thread_name>: Add argument.
12611 * target.c (target_thread_name): Add argument.
12612 (update_current_target): Update.
12613 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12617 * target.h (struct target_ops) <to_extra_thread_info>: Add
12619 (target_extra_thread_info): Add argument.
12620 * target.c (update_current_target): Update.
12621 * remote.c (remote_threads_extra_info): Add 'self' argument.
12622 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12624 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12625 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12626 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12628 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12630 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12632 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12635 2014-02-19 Tom Tromey <tromey@redhat.com>
12637 * target.h (struct target_ops) <to_program_signals>: Add argument.
12638 * target.c (target_program_signals): Add argument.
12639 * remote.c (remote_program_signals): Add 'self' argument.
12641 2014-02-19 Tom Tromey <tromey@redhat.com>
12643 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12644 * target.c (target_pass_signals): Add argument.
12645 * remote.c (remote_pass_signals): Add 'self' argument.
12646 (remote_start_remote): Update.
12647 * procfs.c (procfs_pass_signals): Add 'self' argument.
12648 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12649 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12650 (linux_nat_create_inferior, linux_nat_attach): Update.
12652 2014-02-19 Tom Tromey <tromey@redhat.com>
12654 * windows-nat.c (windows_can_run): Add 'self' argument.
12655 * target.h (struct target_ops) <to_can_run>: Add argument.
12656 (target_can_run): Add argument.
12657 * target.c (debug_to_can_run): Add argument.
12658 (update_current_target): Update.
12659 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12660 * inf-child.c (inf_child_can_run): Add 'self' argument.
12661 * go32-nat.c (go32_can_run): Add 'self' argument.
12663 2014-02-19 Tom Tromey <tromey@redhat.com>
12665 * target.h (struct target_ops) <to_has_exited>: Add argument.
12666 (target_has_exited): Add argument.
12667 * target.c (debug_to_has_exited): Add argument.
12668 (update_current_target): Update.
12670 2014-02-19 Tom Tromey <tromey@redhat.com>
12672 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12674 (target_set_syscall_catchpoint): Add argument.
12675 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12677 * target.c (update_current_target): Update.
12679 2014-02-19 Tom Tromey <tromey@redhat.com>
12681 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12683 (target_remove_exec_catchpoint): Add argument.
12684 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12685 (update_current_target): Update.
12686 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12689 2014-02-19 Tom Tromey <tromey@redhat.com>
12691 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12693 (target_insert_exec_catchpoint): Add argument.
12694 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12695 (update_current_target): Update.
12696 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12699 2014-02-19 Tom Tromey <tromey@redhat.com>
12701 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12703 (target_remove_vfork_catchpoint): Add argument.
12704 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12705 (update_current_target): Update.
12706 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12709 2014-02-19 Tom Tromey <tromey@redhat.com>
12711 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12713 (target_insert_vfork_catchpoint): Add argument.
12714 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12715 (update_current_target): Update.
12716 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12719 2014-02-19 Tom Tromey <tromey@redhat.com>
12721 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12723 (target_remove_fork_catchpoint): Add argument.
12724 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12725 (update_current_target): Update.
12726 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12729 2014-02-19 Tom Tromey <tromey@redhat.com>
12731 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12733 (target_insert_fork_catchpoint): Add argument.
12734 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12735 (update_current_target): Update.
12736 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12739 2014-02-19 Tom Tromey <tromey@redhat.com>
12741 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12743 (target_post_startup_inferior): Add argument.
12744 * target.c (debug_to_post_startup_inferior): Add argument.
12745 (update_current_target): Update.
12746 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12748 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12750 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12752 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12754 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12756 (super_post_startup_inferior): Likewise.
12757 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12759 (super_post_startup_inferior): Likewise.
12760 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12761 Add 'self' argument.
12762 (super_post_startup_inferior): Likewise.
12764 2014-02-19 Tom Tromey <tromey@redhat.com>
12766 * target.h (struct target_ops) <to_load>: Add argument.
12767 * target.c (target_load): Add argument.
12768 (debug_to_load): Add argument.
12769 (update_current_target): Update.
12770 * remote.c (remote_load): Add 'self' argument.
12771 * remote-sim.c (gdbsim_load): Add 'self' argument.
12772 * remote-mips.c (mips_load): Add 'self' argument.
12773 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12774 * monitor.c (monitor_load): Add 'self' argument.
12775 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12777 2014-02-19 Tom Tromey <tromey@redhat.com>
12779 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12780 (target_terminal_info): Add argument.
12781 * target.c (debug_to_terminal_info): Add argument.
12782 (default_terminal_info): Likewise.
12783 * inflow.c (child_terminal_info): Add 'self' argument.
12784 * inferior.h (child_terminal_info): Add 'self' argument.
12785 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12787 2014-02-19 Tom Tromey <tromey@redhat.com>
12789 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12791 (target_terminal_save_ours): Add argument.
12792 * target.c (debug_to_terminal_save_ours): Add argument.
12793 (update_current_target): Update.
12794 * inflow.c (terminal_save_ours): Add 'self' argument.
12795 * inferior.h (terminal_save_ours): Add 'self' argument.
12797 2014-02-19 Tom Tromey <tromey@redhat.com>
12799 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12800 (target_terminal_ours): Add argument.
12801 * target.c (debug_to_terminal_ours): Add argument.
12802 (update_current_target): Update.
12803 * remote.c (remote_terminal_ours): Add 'self' argument.
12804 (remote_close): Update.
12805 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12806 * inflow.c (terminal_ours): Add 'self' argument.
12807 * inferior.h (terminal_ours): Add 'self' argument.
12808 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12810 2014-02-19 Pedro Alves <palves@redhat.com>
12811 Tom Tromey <tromey@redhat.com>
12813 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12815 (target_terminal_ours_for_output): Add argument.
12816 * target.c (debug_to_terminal_ours_for_output): Add argument.
12817 (update_current_target): Update.
12818 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12819 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12820 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12824 * target.h (struct target_ops) <to_terminal_inferior>: Add
12826 * target.c (target_terminal_inferior): Add argument.
12827 (update_current_target): Update.
12828 * remote.c (remote_terminal_inferior): Add 'self' argument.
12829 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12830 * inflow.c (terminal_inferior): Add 'self' argument.
12831 * inferior.h (terminal_inferior): Add 'self' argument.
12832 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12833 (go32_terminal_inferior): Add 'self' argument.
12835 2014-02-19 Tom Tromey <tromey@redhat.com>
12837 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12838 (target_terminal_init): Add argument.
12839 * target.c (debug_to_terminal_init): Add argument.
12840 (update_current_target): Update.
12841 * inflow.c (terminal_init_inferior): Add 'self' argument.
12842 * inferior.h (terminal_init_inferior): Add 'self' argument.
12843 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12844 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12846 2014-02-19 Tom Tromey <tromey@redhat.com>
12848 * target.h (struct target_ops)
12849 <to_can_accel_watchpoint_condition>: Add argument.
12850 (target_can_accel_watchpoint_condition): Add argument.
12851 * target.c (debug_to_can_accel_watchpoint_condition): Add
12853 (update_current_target): Update.
12854 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12857 2014-02-19 Tom Tromey <tromey@redhat.com>
12859 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12861 (target_region_ok_for_hw_watchpoint): Add argument.
12862 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12863 (default_region_ok_for_hw_watchpoint): Add argument.
12864 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12865 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12867 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12869 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12871 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12873 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12875 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12877 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12878 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12880 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12881 Add 'self' argument.
12883 2014-02-19 Tom Tromey <tromey@redhat.com>
12885 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12887 (target_insert_watchpoint): Add argument.
12888 * target.c (debug_to_insert_watchpoint): Add argument.
12889 (update_current_target): Update.
12890 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12891 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12892 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12893 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12894 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12895 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12897 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12898 (procfs_insert_hw_watchpoint): Add 'self' argument.
12899 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12901 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12903 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12905 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12906 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12908 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12911 2014-02-19 Tom Tromey <tromey@redhat.com>
12913 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12915 (target_remove_watchpoint): Add argument.
12916 * target.c (debug_to_remove_watchpoint): Add argument.
12917 (update_current_target): Update.
12918 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12919 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12920 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12921 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12922 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12923 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12925 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12926 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12928 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12930 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12932 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12933 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12935 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12938 2014-02-19 Tom Tromey <tromey@redhat.com>
12940 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12942 (target_remove_hw_breakpoint): Add argument.
12943 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12944 (update_current_target): Update.
12945 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12946 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12948 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12949 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12951 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12954 2014-02-19 Tom Tromey <tromey@redhat.com>
12956 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12958 (target_insert_hw_breakpoint): Add argument.
12959 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12960 (update_current_target): Update.
12961 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12962 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12964 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12965 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12966 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12968 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12971 2014-02-19 Tom Tromey <tromey@redhat.com>
12973 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12975 (target_can_use_hardware_watchpoint): Add argument.
12976 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12977 (update_current_target): Update.
12978 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12980 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12982 * remote.c (remote_check_watch_resources): Add 'self' argument.
12983 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12984 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12986 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12987 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12989 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12991 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12993 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12995 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12997 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12999 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13000 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13002 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13005 2014-02-19 Tom Tromey <tromey@redhat.com>
13007 * target.h (struct target_ops) <to_post_attach>: Add argument.
13008 (target_post_attach): Add argument.
13009 * target.c (debug_to_post_attach): Add argument.
13010 (update_current_target): Update.
13011 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13012 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13013 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13014 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13015 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13017 2014-02-19 Tom Tromey <tromey@redhat.com>
13019 * windows-nat.c (windows_close): Add 'self' argument.
13020 * tracepoint.c (tfile_close): Add 'self' argument.
13021 * target.h (struct target_ops) <to_close>: Add argument.
13022 * target.c (target_close): Add argument.
13023 (update_current_target): Update.
13024 * remote.c (remote_close): Add 'self' argument.
13025 * remote-sim.c (gdbsim_close): Add 'self' argument.
13026 * remote-mips.c (mips_close): Add 'self' argument.
13027 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13028 * record-full.c (record_full_close): Add 'self' argument.
13029 * record-btrace.c (record_btrace_close): Add 'self' argument.
13030 * monitor.h (monitor_close): Add 'self' argument.
13031 * monitor.c (monitor_close): Add 'self' argument.
13032 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13033 * linux-nat.c (linux_nat_close): Add argument.
13034 * go32-nat.c (go32_close): Add 'self' argument.
13035 * exec.c (exec_close_1): Add 'self' argument.
13036 * ctf.c (ctf_close): Add 'self' argument.
13037 * corelow.c (core_close): Add 'self' argument.
13038 (core_close_cleanup): Update.
13039 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13040 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13042 2014-02-19 Tom Tromey <tromey@redhat.com>
13044 * remote.c (remote_load): New function.
13045 (init_remote_ops): Use it.
13047 2014-02-19 Tom Tromey <tromey@redhat.com>
13049 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13051 * common/linux-btrace.h (linux_supports_btrace): Update.
13052 * remote.c (remote_supports_btrace): Add "self" argument.
13053 * target-delegates.c: Rebuild.
13054 * target.c (target_supports_btrace): Remove.
13055 * target.h (struct target_ops) <to_supports_btrace>: Add
13056 target_ops argument.
13057 (target_supports_btrace): New define.
13059 2014-02-19 Tom Tromey <tromey@redhat.com>
13061 * record-full.c (record_full_beneath_to_resume_ops)
13062 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13063 (record_full_beneath_to_wait)
13064 (record_full_beneath_to_store_registers_ops)
13065 (record_full_beneath_to_store_registers)
13066 (record_full_beneath_to_xfer_partial_ops)
13067 (record_full_beneath_to_xfer_partial)
13068 (record_full_beneath_to_insert_breakpoint_ops)
13069 (record_full_beneath_to_insert_breakpoint)
13070 (record_full_beneath_to_remove_breakpoint_ops)
13071 (record_full_beneath_to_remove_breakpoint)
13072 (record_full_beneath_to_stopped_by_watchpoint)
13073 (record_full_beneath_to_stopped_data_address)
13074 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13075 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13076 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13077 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13078 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13079 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13080 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13081 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13082 (record_full_resume, record_full_wait_1)
13083 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13084 (record_full_store_registers, record_full_xfer_partial)
13085 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13086 (record_full_async, record_full_core_xfer_partial): Use target
13088 * target-delegates.c: Rebuild.
13089 * target.c (current_xfer_partial): Remove.
13090 (update_current_target): Do not INHERIT or de_fault
13091 to_insert_breakpoint, to_remove_breakpoint,
13092 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13093 to_is_async_p, to_async. Do not set to_xfer_partial field.
13094 (default_xfer_partial): Simplify.
13095 (current_xfer_partial): Remove.
13096 (target_wait, target_resume): Simplify.
13097 (find_default_can_async_p, find_default_is_async_p): Update.
13098 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13099 to_xfer_partial, to_stopped_by_watchpoint,
13100 to_stopped_data_address.
13101 (target_store_registers): Simplify.
13102 (forward_target_remove_breakpoint)
13103 (forward_target_insert_breakpoint): Remove.
13104 (target_remove_breakpoint, target_insert_breakpoint)
13105 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13106 * target.h (struct target_ops) <to_resume, to_wait,
13107 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13108 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13109 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13111 (forward_target_remove_breakpoint)
13112 (forward_target_insert_breakpoint): Remove.
13113 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13115 (record_btrace_insert_breakpoint): Delegate directly.
13117 2014-02-19 Tom Tromey <tromey@redhat.com>
13120 * target-delegates.c: New file.
13121 * target.c: Include target-delegates.c.
13122 (init_dummy_target): Call install_dummy_methods.
13123 (complete_target_initialization): Call install_delegators.
13124 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13125 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13126 * make-target-delegates: New file.
13128 2014-02-19 Tom Tromey <tromey@redhat.com>
13130 * record.c (find_record_target): Use find_target_at.
13131 * target.c (find_target_at): New function.
13132 * target.h (find_target_at): Declare.
13134 2014-02-19 Tom Tromey <tromey@redhat.com>
13136 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13137 Add 'ops' argument.
13138 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13140 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13141 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13143 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13145 * linux-nat.c (save_sigtrap): Update.
13146 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13147 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13148 (linux_nat_close): Update.
13149 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13151 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13153 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13154 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13155 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13156 (tmp_to_async): Add 'ops' argument.
13157 (record_full_stopped_by_watchpoint, record_full_async)
13158 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13160 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13161 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13162 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13163 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13164 (remote_is_async_p, remote_async): Add 'ops' argument.
13165 (remote_stopped_data_address): Update.
13166 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13167 * target.c (update_current_target)
13168 (find_default_can_async_p, find_default_is_async_p): Update.
13169 (init_dummy_target): Update.
13170 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13171 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13172 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13173 (target_can_async_p, target_is_async_p, target_async)
13174 (target_stopped_by_watchpoint): Update.
13176 2014-02-19 Yao Qi <yao@codesourcery.com>
13179 * gdbarch.sh: Remove startup_gdbarch.
13180 * gdbarch.c: Regenerated.
13181 * gdbarch.h: Likewise.
13183 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13185 * rl78-tdep.c (rl78_g10_register_name): New function.
13186 (rl78_return_value): Add g10 support.
13187 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13190 2014-02-17 Doug Evans <xdje42@gmail.com>
13192 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13193 (SUBDIR_GUILE_SRCS): Ditto.
13194 (scm-gsmob.o): Ditto.
13196 2014-02-17 Yao Qi <yao@codesourcery.com>
13198 * gnu-nat.c (ILL_RPC): Declare defined function.
13200 2014-02-17 Yao Qi <yao@codesourcery.com>
13202 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13203 mach_msg_type_number_t.
13204 (gnu_write_inferior): Likewise.
13206 2014-02-17 Yao Qi <yao@codesourcery.com>
13208 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13210 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13211 (inf_validate_procs, inf_signal): Likewise.
13212 (S_exception_raise_request): Likewise.
13213 (do_mach_notify_dead_name): Likewise.
13214 (steal_exc_port): Likewise.
13215 (gnu_read_inferior): Change 'copy_count''s type to
13216 mach_msg_type_number_t.
13217 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13220 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13222 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13223 flag. Adjust all users; in particular...
13224 (gnu_wait): ..., don't decrement its value in here...
13225 (gnu_create_inferior): ..., and instead set the flag in here,
13226 around the startup_inferior call, and call that one with
13227 START_INFERIOR_TRAPS_EXPECTED.
13229 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13230 (ILL_RPC): ... new macro.
13231 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13232 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13233 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13234 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13235 functions with ILL_RPC macro.
13236 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13237 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13238 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13239 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13240 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13241 (S_proc_getlogin_reply, S_proc_getsid_reply)
13242 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13243 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13244 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13245 (S_proc_getnports_reply, S_proc_is_important_reply)
13246 (S_proc_get_code_reply): New stub functions, generated with
13249 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13250 collected the type check structures.
13252 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13254 2014-02-14 Doug Evans <dje@google.com>
13256 * target.c (target_write_partial): Fix result type.
13258 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13260 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13261 the proper offsets to access fpregset_t.
13263 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13265 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13266 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13267 * h8300-tdep.c (setmachinelist): Remove global.
13268 * hppa-tdep.c (hppa_sigtramp): Remove global.
13269 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13270 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13271 * ravenscar-thread.c (update_target_observer): Remove global.
13272 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13274 2014-02-12 Tom Tromey <tromey@redhat.com>
13276 * common/rsp-low.c: Update comments.
13277 * common/rsp-low.h: Update comments.
13279 2014-02-12 Tom Tromey <tromey@redhat.com>
13281 * common/rsp-low.c (convert_ascii_to_int): Remove.
13282 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13284 2014-02-12 Tom Tromey <tromey@redhat.com>
13286 * common/rsp-low.h (unhexify): Don't declare.
13287 * common/rsp-low.c (unhexify): Remove.
13289 2014-02-12 Tom Tromey <tromey@redhat.com>
13291 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13292 * common/rsp-low.c (convert_int_to_ascii): Remove.
13294 2014-02-12 Tom Tromey <tromey@redhat.com>
13296 * common/rsp-low.h (hexify): Don't declare.
13297 * common/rsp-low.c (hexify): Remove.
13299 2014-02-12 Tom Tromey <tromey@redhat.com>
13301 * common/rsp-low.c (hexify): Never take strlen of argument.
13303 2014-02-12 Tom Tromey <tromey@redhat.com>
13305 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13306 * remote.c (extended_remote_run, remote_rcmd)
13307 (remote_download_trace_state_variable, remote_save_trace_data)
13308 (remote_set_trace_notes): Update.
13309 * tracepoint.c (encode_source_string, tfile_write_status)
13310 (tfile_write_uploaded_tsv): Update.
13312 2014-02-12 Tom Tromey <tromey@redhat.com>
13314 * tracepoint.c: Include rsp-low.h.
13315 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13316 * remote.c: Include rsp-low.h.
13317 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13318 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13319 (remote_unescape_input): Move to common/rsp-low.c.
13320 * common/rsp-low.h: New file.
13321 * common/rsp-low.c: New file.
13322 * Makefile.in (SFILES): Add common/rsp-low.c.
13323 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13324 (COMMON_OBS): Add rsp-low.o.
13325 (rsp-low.o): New target.
13327 2014-02-12 Tom Tromey <tromey@redhat.com>
13329 * utils.h: Include print-utils.h.
13330 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13331 (int_string, core_addr_to_string, core_addr_to_string_nz)
13332 (hex_string, hex_string_custom): Don't declare.
13333 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13334 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13335 (hex_string_custom, int_string, core_addr_to_string)
13336 (core_addr_to_string_nz, host_address_to_string): Move to
13337 common/print-utils.c.
13338 * common/print-utils.h: New file.
13339 * common/print-utils.c: New file
13340 * Makefile.in (SFILES): Add common/print-utils.c.
13341 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13342 (COMMON_OBS): Add print-utils.o.
13343 (print-utils.o): New target.
13345 2014-02-12 Tom Tromey <tromey@redhat.com>
13347 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13349 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13351 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13353 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13355 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13356 if a PT_IO ptrace request returns sucessfully but indicates that 0
13357 bytes were transferred.
13359 2014-02-12 Pedro Alves <palves@redhat.com>
13360 Kevin Buettner <kevinb@redhat.com>
13362 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13363 TYPE_INSTANCE_FLAG_CODE_SPACE.
13365 2014-02-12 Pedro Alves <palves@redhat.com>
13367 * h8300-tdep.c (pseudo_from_raw_register)
13368 (raw_from_pseudo_register): New functions.
13369 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13372 2014-02-12 Pedro Alves <palves@redhat.com>
13374 * h8300-tdep.c (h8300_register_sim_regno): New function.
13375 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13376 gdbarch_register_sim_regno hook.
13378 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13380 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13382 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13384 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13386 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13388 * obsd-tdep.h (obsd_init_abi): New prototype.
13389 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13390 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13391 (obsd_init_abi): New functions.
13392 * i386obsd-tdep.c: Include "obsd-tdep.h".
13393 (i386obsd_init_abi): Call obsd_init_abi.
13394 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13395 (amd64obsd_init_abi): Call obsd_init_abi.
13396 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13397 obsd-tdep.c to gdb_target_obs.
13399 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13401 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13402 double float arguments to 16-byte in the argument slots.
13404 2014-02-11 Doug Evans <xdje42@gmail.com>
13406 * configure.ac: Don't crash if pkg-config is not found and guile
13407 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13409 * configure: Regenerate.
13411 2014-02-11 Yao Qi <yao@codesourcery.com>
13413 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13414 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13415 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13416 * gnu-nat.c (gnu_xfer_memory): Likewise.
13417 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13418 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13419 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13420 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13422 2014-02-11 Yao Qi <yao@codesourcery.com>
13424 * target.h (enum target_xfer_error): Rename to ...
13425 (enum target_xfer_status): ... it. New. All users updated.
13426 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13428 (TARGET_XFER_STATUS_ERROR_P): New macro.
13429 (target_xfer_error_to_string): Remove declaration.
13430 (target_xfer_status_to_string): Declare.
13431 (target_xfer_partial_ftype): Adjust it.
13432 (struct target_ops) <to_xfer_partial>: Return
13433 target_xfer_status. Add argument xfered_len. Update
13435 * target.c (target_xfer_error_to_string): Rename to ...
13436 (target_xfer_status_to_string): ... it. New. All callers
13438 (target_read_live_memory): Likewise. Call target_xfer_partial
13439 instead of target_read.
13440 (memory_xfer_live_readonly_partial): Return
13441 target_xfer_status. Add argument xfered_len.
13442 (raw_memory_xfer_partial): Likewise.
13443 (memory_xfer_partial_1): Likewise.
13444 (memory_xfer_partial): Likewise.
13445 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13446 properly. Update debug message.
13447 (default_xfer_partial, current_xfer_partial): Likewise.
13448 (target_write_partial): Likewise.
13449 (target_read_partial): Likewise. All callers updated.
13450 (read_whatever_is_readable): Likewise.
13451 (target_write_with_progress): Likewise.
13452 (target_read_alloc_1): Likewise.
13454 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13455 * auxv.c (procfs_xfer_auxv): Likewise.
13456 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13457 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13458 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13459 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13460 * corefile.c (read_memory): Adjust.
13461 * corelow.c (core_xfer_partial): Likewise.
13462 * ctf.c (ctf_xfer_partial): Likewise.
13463 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13465 (darwin_xfer_partial): Likewise.
13466 * exec.c (section_table_xfer_memory_partial): Likewise. All
13468 (exec_xfer_partial): Likewise.
13469 * exec.h (section_table_xfer_memory_partial): Update
13471 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13473 (gnu_xfer_partial): Likewise.
13474 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13475 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13476 (ia64_hpux_xfer_solib_got): Likewise.
13477 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13478 type of 'partial_len' to ULONGEST.
13479 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13480 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13481 (linux_nat_xfer_partial): Likewise.
13482 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13483 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13484 * monitor.c (monitor_xfer_memory): Likewise.
13485 (monitor_xfer_partial): Likewise.
13486 * procfs.c (procfs_xfer_partial): Likewise.
13487 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13488 * record-full.c (record_full_xfer_partial): Likewise.
13489 (record_full_core_xfer_partial): Likewise.
13490 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13491 (gdbsim_xfer_partial): Likewise.
13492 * remote.c (remote_write_bytes_aux): Likewise. All callers
13494 (remote_write_bytes, remote_read_bytes): Likewise. All
13496 (remote_flash_erase): Likewise. All callers updated.
13497 (remote_write_qxfer): Likewise. All callers updated.
13498 (remote_read_qxfer): Likewise. All callers updated.
13499 (remote_xfer_partial): Likewise.
13500 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13501 (rs6000_xfer_shared_libraries): Likewise.
13502 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13503 (sol_thread_xfer_partial): Likewise.
13504 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13505 (sparc_xfer_partial): Likewise.
13506 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13508 (spu_xfer_partial): Likewise.
13509 * spu-multiarch.c (spu_xfer_partial): Likewise.
13510 * tracepoint.c (tfile_xfer_partial): Likewise.
13511 * windows-nat.c (windows_xfer_memory): Likewise.
13512 (windows_xfer_shared_libraries): Likewise.
13513 (windows_xfer_partial): Likewise.
13514 * valprint.c: Replace 'target_xfer_error' with
13515 'target_xfer_status' in comments.
13517 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13519 Checked in by Joel Brobecker <brobecker@adacore.com>.
13520 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13522 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13524 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13525 function parameters.
13527 2014-02-10 Will Newton <will.newton@linaro.org>
13529 * elfread.c (elf_rel_plt_read): Look for a .got section if
13530 looking up .got.plt fails.
13531 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13532 on address passed to elf_gnu_ifunc_record_cache.
13533 (elf_gnu_ifunc_resolve_addr): Likewise.
13534 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13536 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13538 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13539 (X_RETTURN): New macro.
13540 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13542 * sparc64-tdep.c (sparc64_init_abi): Hook
13543 sparc_in_function_epilogue_p.
13545 2014-02-10 Gary Benson <gbenson@redhat.com>
13547 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13548 Rename name_matcher to symbol_matcher.
13550 2014-02-10 Gary Benson <gbenson@redhat.com>
13552 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13553 Use expand_symtabs_file_matcher_ftype and
13554 expand_symtabs_symbol_matcher_ftype.
13556 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13558 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13559 (struct ada_symbol_cache): New.
13560 (ada_free_symbol_cache): Forward declare.
13561 (struct ada_pspace_data): New.
13562 (ada_pspace_data_handle): New static global.
13563 (get_ada_pspace_data, ada_pspace_data_cleanup)
13564 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13565 (cache_space, cache): Delete, now folded inside struct
13567 (ada_get_symbol_cache): New function.
13568 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13570 (_initialize_ada_language): Remove initialization of cache_space.
13571 Move call to observer_attach_inferior_exit up, grouping it
13572 with the other observer registrations inside this function.
13573 Rename command to be more general. Add call to
13574 register_program_space_data_with_cleanup.
13576 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13578 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13579 ada_new_objfile_observer.
13580 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13581 (_initialize_tasks): Update uses of ada_new_objfile_observer
13582 and ada_tasks_normal_stop_observer.
13584 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13586 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13587 returned by the 'Length attribute to integer.
13589 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13591 * ada-lang.c (_initialize_ada_language): Initialize
13592 cache_space obstack.
13594 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13596 * ada-lang.c (HASH_SIZE): New macro.
13597 (struct cache_entry): New type.
13598 (cache_space, cache): New static globals.
13599 (ada_clear_symbol_cache, find_entry): New functions.
13600 (lookup_cached_symbol, cache_symbol): Implement.
13601 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13602 (_initialize_ada_language): Attach ada_new_objfile_observer
13603 and ada_free_objfile_observer.
13605 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13607 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13608 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13609 struct block * parameter.
13610 (ada_lookup_symbol_list_worker): Constify local variable "block".
13611 Remove cast which is no longer necessary.
13613 2014-02-10 Doug Evans <xdje42@gmail.com>
13615 Add Guile as an extension language.
13616 * NEWS: Mention Guile scripting.
13617 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13618 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13619 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13620 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13621 (CLIBS): Add GUILE_LIBS.
13622 (install-guile): New rule.
13623 (guile.o): New rule.
13624 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13625 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13626 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13627 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13628 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13629 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13630 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13631 * configure.ac: New option --with-guile.
13632 * configure: Regenerate.
13633 * config.in: Regenerate.
13634 * auto-load.c: Remove #include "python/python.h". Add #include
13635 "gdb/section-scripts.h".
13636 (source_section_scripts): Handle Guile scripts.
13637 (_initialize_auto_load): Add name of Guile objfile script to
13638 scripts-directory help text.
13639 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13640 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13641 (struct breakpoint): New member scm_bp_object.
13642 * defs.h (enum command_control_type): New value guile_control.
13643 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13645 (show_user): Update comment.
13646 (_initialize_cli_cmds): Update help text for "show user". Update help
13647 text for max-user-call-depth.
13648 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13650 (multi_line_command_p): Add guile_control.
13651 (print_command_lines): Handle guile_control.
13652 (execute_control_command, recurse_read_control_structure): Ditto.
13653 (process_next_line): Recognize "guile" commands.
13654 * disasm.c (gdb_disassemble_info): Make non-static.
13655 * disasm.h: #include "dis-asm.h".
13656 (struct gdbarch): Add forward decl.
13657 (gdb_disassemble_info): Declare.
13658 * extension.c: #include "guile/guile.h".
13659 (extension_languages): Add guile.
13660 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13661 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13662 * gdbtypes.c (get_unsigned_type_max): New function.
13663 (get_signed_type_minmax): New function.
13664 * gdbtypes.h (get_unsigned_type_max): Declare.
13665 (get_signed_type_minmax): Declare.
13666 * guile/README: New file.
13667 * guile/guile-internal.h: New file.
13668 * guile/guile.c: New file.
13669 * guile/guile.h: New file.
13670 * guile/scm-arch.c: New file.
13671 * guile/scm-auto-load.c: New file.
13672 * guile/scm-block.c: New file.
13673 * guile/scm-breakpoint.c: New file.
13674 * guile/scm-disasm.c: New file.
13675 * guile/scm-exception.c: New file.
13676 * guile/scm-frame.c: New file.
13677 * guile/scm-gsmob.c: New file.
13678 * guile/scm-iterator.c: New file.
13679 * guile/scm-lazy-string.c: New file.
13680 * guile/scm-math.c: New file.
13681 * guile/scm-objfile.c: New file.
13682 * guile/scm-ports.c: New file.
13683 * guile/scm-pretty-print.c: New file.
13684 * guile/scm-safe-call.c: New file.
13685 * guile/scm-string.c: New file.
13686 * guile/scm-symbol.c: New file.
13687 * guile/scm-symtab.c: New file.
13688 * guile/scm-type.c: New file.
13689 * guile/scm-utils.c: New file.
13690 * guile/scm-value.c: New file.
13691 * guile/lib/gdb.scm: New file.
13692 * guile/lib/gdb/boot.scm: New file.
13693 * guile/lib/gdb/experimental.scm: New file.
13694 * guile/lib/gdb/init.scm: New file.
13695 * guile/lib/gdb/iterator.scm: New file.
13696 * guile/lib/gdb/printing.scm: New file.
13697 * guile/lib/gdb/types.scm: New file.
13698 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13699 (VPATH): Add $(GUILE_SRCDIR).
13700 (GUILE_DIR): New variable.
13701 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13702 (all): Add stamp-guile dependency.
13703 (stamp-guile): New rule.
13704 (clean-guile, install-guile, uninstall-guile): New rules.
13705 (install-only): Add install-guile dependency.
13706 (uninstall): Add uninstall-guile dependency.
13707 (clean): Add clean-guile dependency.
13709 2014-02-09 Doug Evans <xdje42@gmail.com>
13711 Revert this patch (which I approved, mea culpa).
13713 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13715 * Makefile.in (all-lib): Remove.
13716 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13718 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13720 Fix Python stack corruption.
13721 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13724 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13726 * Makefile.in (all-lib): Remove.
13727 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13729 2014-02-07 Doug Evans <dje@google.com>
13731 * extension-priv.h (extension_language_script_ops): Add comment.
13732 (extension_language_ops): Add comment.
13733 (active_ext_lang_state): Fix typo in comment.
13735 2014-02-07 Pedro Alves <palves@redhat.com>
13737 PR breakpoints/16292
13738 * infrun.c (handle_signal_stop) <signal arrives while stepping
13739 over a breakpoint>: Switch back to the stepping thread.
13741 2014-02-07 Yao Qi <yao@codesourcery.com>
13743 * target.c (target_xfer_partial): Return zero if LEN is zero.
13745 2014-02-07 Yao Qi <yao@codesourcery.com>
13747 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13748 (ld_so_xfer_auxv): Likewise.
13749 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13750 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13751 * corelow.c (core_xfer_partial): Likewise.
13752 * ctf.c (ctf_xfer_partial): Likewise.
13753 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13754 (darwin_xfer_partial): Likewise.
13755 * exec.c (exec_xfer_partial): Likewise.
13756 * gnu-nat.c (gnu_xfer_partial): Likewise.
13757 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13758 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13759 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13760 * linux-nat.c (linux_xfer_siginfo): Likewise.
13761 (linux_proc_xfer_spu): Likewise.
13762 * procfs.c (procfs_xfer_partial): Likewise.
13763 * record-full.c (record_full_xfer_partial): Likewise.
13764 (record_full_core_xfer_partial): Likewise.
13765 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13766 * remote.c (remote_write_qxfer): Likewise.
13767 (remote_write_qxfer, remote_read_qxfer): Likewise.
13768 (remote_xfer_partial): Likewise.
13769 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13770 (rs6000_xfer_shared_libraries): Likewise.
13771 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13772 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13773 (spu_xfer_partial): Likewise.
13774 * target.c (memory_xfer_partial_1): Likewise.
13775 * tracepoint.c (tfile_xfer_partial): Likewise.
13776 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13777 (windows_xfer_partial): Likewise.
13779 2014-02-07 Yao Qi <yao@codesourcery.com>
13781 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13783 (core_xfer_shared_libraries_aix): Likewise.
13784 * gdbarch.c, gdbarch.h: Regenerated.
13785 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13786 ULONGEST. Change 'len_avail' type to ULONGEST.
13787 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13788 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13790 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13792 2014-02-07 Yao Qi <yao@codesourcery.com>
13794 * corefile.c (memory_error): Get 'exception' from ERR and pass
13795 'exception' to throw_error.
13797 2014-02-06 Doug Evans <xdje42@gmail.com>
13799 * configure.ac (libpython checking): Remove all but python.o from
13800 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13801 * configure: Regenerate.
13803 * Makefile.in (SFILES): Add extension.c.
13804 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13805 (COMMON_OBS): Add extension.o.
13806 * extension.h: New file.
13807 * extension-priv.h: New file.
13808 * extension.c: New file.
13810 * python/python-internal.h: #include "extension.h".
13811 (gdbpy_auto_load_enabled): Declare.
13812 (gdbpy_apply_val_pretty_printer): Declare.
13813 (gdbpy_apply_frame_filter): Declare.
13814 (gdbpy_preserve_values): Declare.
13815 (gdbpy_breakpoint_cond_says_stop): Declare.
13816 (gdbpy_breakpoint_has_cond): Declare.
13817 (void source_python_script_for_objfile): Delete.
13818 * python/python.c: #include "extension-priv.h".
13819 Delete inclusion of "observer.h".
13820 (extension_language_python): Moved here and renamed from
13821 script_language_python in py-auto-load.c.
13822 Redefined to be of type extension_language_defn.
13823 (python_extension_script_ops): New global.
13824 (python_extension_ops): New global.
13825 (struct python_env): New member previous_active.
13826 (restore_python_env): Call restore_active_ext_lang.
13827 (ensure_python_env): Call set_active_ext_lang.
13828 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13830 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13832 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13834 (gdbpy_eval_from_control_command): Renamed from
13835 eval_python_from_control_command, made static. New arg extlang.
13836 (gdbpy_source_script) Renamed from source_python_script, made static.
13838 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13839 result to int. New arg extlang.
13840 (gdbpy_source_objfile_script): Renamed from
13841 source_python_script_for_objfile, made static. New arg extlang.
13842 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13843 static. New args extlang, extlang_printers. Change result type to
13845 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13846 static. New arg extlang. Rename arg printers to extlang_printers
13847 and change type to ext_lang_type_printers *.
13848 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13849 static. Replace argument arg with extlang, extlang_printers.
13850 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13851 (!HAVE_PYTHON, source_python_script): Delete.
13852 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13853 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13854 (!HAVE_PYTHON, start_type_printers): Delete.
13855 (!HAVE_PYTHON, apply_type_printers): Delete.
13856 (!HAVE_PYTHON, free_type_printers): Delete.
13857 (_initialize_python): Delete call to observer_attach_before_prompt.
13858 (finalize_python): Set/restore active extension language.
13859 (gdbpy_finish_initialization) Renamed from
13860 finish_python_initialization, made static. New arg extlang.
13861 (gdbpy_initialized): New function.
13862 * python/python.h: #include "extension.h". Delete #include
13863 "value.h", "mi/mi-cmds.h".
13864 (extension_language_python): Declare.
13865 (GDBPY_AUTO_FILE_NAME): Delete.
13866 (enum py_bt_status): Moved to extension.h and renamed to
13867 ext_lang_bt_status.
13868 (enum frame_filter_flags): Moved to extension.h.
13869 (enum py_frame_args): Moved to extension.h and renamed to
13870 ext_lang_frame_args.
13871 (finish_python_initialization): Delete.
13872 (eval_python_from_control_command): Delete.
13873 (source_python_script): Delete.
13874 (apply_val_pretty_printer): Delete.
13875 (apply_frame_filter): Delete.
13876 (preserve_python_values): Delete.
13877 (gdbpy_script_language_defn): Delete.
13878 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13879 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13881 * auto-load.c: #include "extension.h".
13882 (GDB_AUTO_FILE_NAME): Delete.
13883 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13884 (script_language_gdb): Delete, moved to extension.c and renamed to
13885 extension_language_gdb.
13886 (source_gdb_script_for_objfile): Delete.
13887 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13888 (loaded_script): Change type of language member to
13889 struct extension_language_defn *.
13890 (init_loaded_scripts_info): Initialize
13891 unsupported_script_warning_printed.
13892 (maybe_add_script): Make static. Change type of language arg to
13893 struct extension_language_defn *.
13894 (clear_section_scripts): Reset unsupported_script_warning_printed.
13895 (auto_load_objfile_script_1): Rewrite to use extension language API.
13896 (auto_load_objfile_script): Make public. Remove support-compiled-in
13897 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13898 (source_section_scripts): Rewrite to use extension language API.
13899 (load_auto_scripts_for_objfile): Rewrite to use
13900 auto_load_scripts_for_objfile.
13901 (collect_matching_scripts_data): Change type of language member to
13902 struct extension_language_defn *.
13903 (auto_load_info_scripts): Change type of language arg to
13904 struct extension_language_defn *.
13905 (unsupported_script_warning_print): New function.
13906 (script_not_found_warning_print): Make static.
13907 (_initialize_auto_load): Rewrite construction of scripts-directory
13909 * auto-load.h (struct objfile): Add forward decl.
13910 (struct script_language): Delete.
13911 (struct auto_load_pspace_info): Add forward decl.
13912 (struct extension_language_defn): Add forward decl.
13913 (maybe_add_script): Delete.
13914 (auto_load_objfile_script): Declare.
13915 (script_not_found_warning_print): Delete.
13916 (auto_load_info_scripts): Update prototype.
13917 (auto_load_gdb_scripts_enabled): Declare.
13918 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13919 auto_load_python_scripts_enabled and made public.
13920 (script_language_python): Delete, moved to python.c.
13921 (gdbpy_script_language_defn): Delete.
13922 (info_auto_load_python_scripts): Update to use
13923 extension_language_python.
13925 * breakpoint.c (condition_command): Replace call to
13926 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13927 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13928 with call to breakpoint_ext_lang_cond_says_stop.
13929 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13930 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13931 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13932 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13934 (local_setattro): Print name of extension language with existing
13937 * valprint.c (val_print, value_print): Update to call
13938 apply_ext_lang_val_pretty_printer.
13939 * cp-valprint.c (cp_print_value): Update call to
13940 apply_ext_lang_val_pretty_printer.
13941 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13942 (gdbpy_apply_val_pretty_printer): Renamed from
13943 apply_val_pretty_printer. New arg extlang.
13944 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13946 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13947 extension language API.
13948 * cli/cli-script.c (execute_control_command): Update to call
13949 eval_ext_lang_from_control_command.
13951 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13952 enum ext_lang_bt_status values. Update call to
13953 apply_ext_lang_frame_filter.
13954 (mi_cmd_stack_list_locals): Ditto.
13955 (mi_cmd_stack_list_args): Ditto.
13956 (mi_cmd_stack_list_variables): Ditto.
13957 * mi/mi-main.c: Delete #include "python/python-internal.h".
13958 Add #include "extension.h".
13959 (mi_cmd_list_features): Replace reference to python internal variable
13960 gdb_python_initialized with call to ext_lang_initialized_p.
13962 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13963 Update to use enum ext_lang_frame_args. Update to call
13964 apply_ext_lang_frame_filter.
13965 * python/py-framefilter.c (extract_sym): Update to use enum
13966 ext_lang_bt_status.
13967 (extract_value, py_print_type, py_print_value): Ditto.
13968 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13969 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13970 (py_print_frame): Ditto.
13971 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13972 New arg extlang. Update to use enum ext_lang_bt_status.
13974 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13975 finish_python_initialization. Replace with call to
13976 finish_ext_lang_initialization.
13978 * typeprint.c (do_free_global_table): Update to call
13979 free_ext_lang_type_printers.
13980 (create_global_typedef_table): Update to call
13981 start_ext_lang_type_printers.
13982 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13983 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13984 (type_print_options): Change type of global_printers from "void *"
13985 to "struct ext_lang_type_printers *".
13987 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13988 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13989 (gdbpy_preserve_values): Renamed from preserve_python_values.
13991 (!HAVE_PYTHON, preserve_python_values): Delete.
13993 * utils.c (quit_flag): Delete, moved to extension.c.
13994 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13997 * eval.c: Delete #include "python/python.h".
13998 * main.c: Delete #include "python/python.h".
14000 * defs.h: Update comment.
14002 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14006 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14008 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14011 2014-02-05 Yao Qi <yao@codesourcery.com>
14013 * remote.c (remote_pass_signals): Remove local 'buf' and use
14015 (remote_program_signals): Likewise.
14017 2014-02-05 Yao Qi <yao@codesourcery.com>
14019 * ctf.c: Include "inferior.h" and "gdbthread.h".
14020 (CTF_PID): A new macro.
14021 (ctf_open): Call inferior_appeared and add_thread_silent.
14022 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14023 (ctf_thread_alive): New function.
14024 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14026 2014-02-05 Yao Qi <yao@codesourcery.com>
14030 2013-05-24 Yao Qi <yao@codesourcery.com>
14032 * tracepoint.c (TFILE_PID): Remove.
14033 (tfile_open): Don't add thread and inferior.
14034 (tfile_close): Don't set 'inferior_ptid'. Don't call
14035 exit_inferior_silent.
14036 (tfile_thread_alive): Remove.
14037 (init_tfile_ops): Don't set field 'to_thread_alive' of
14040 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14042 * remote.c (remote_start_remote): Call remote_check_symbols even
14043 if only symbol-file (not file) has been given.
14045 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14047 * gdbarch.sh (skip_entrypoint): New callback.
14048 * gdbarch.c, gdbarch.h: Regenerate.
14049 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14050 * infrun.c (fill_in_stop_func): Likewise.
14051 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14052 (ppc_elfv2_elf_make_msymbol_special): New function.
14053 (ppc_elfv2_skip_entrypoint): Likewise.
14054 (ppc_linux_init_abi): Install them for ELFv2.
14056 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14058 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14059 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14060 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14061 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14062 structures returned in GPRs.
14064 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14066 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14067 offset to the stack parameter list for the ELFv2 ABI.
14069 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14071 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14072 set_gdbarch_convert_from_func_ptr_addr and
14073 set_gdbarch_elf_make_msymbol_special for ELFv1.
14074 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14075 function descriptors on ELFv1.
14076 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14077 set up r12 at function entry.
14079 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14081 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14082 (struct gdbarch_tdep): New member elf_abi.
14084 * rs6000-tdep.c: Include "elf/ppc64.h".
14085 (rs6000_gdbarch_init): Detect ELF ABI version.
14087 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14089 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14090 within a register pair holding a DFP 128-bit value on little-endian.
14091 (ppc64_sysv_abi_return_value_base): Likewise.
14092 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14093 (dfp_pseudo_register_write): Likewise.
14095 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14097 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14098 offset on little-endian when passing _Decimal32.
14099 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14101 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14103 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14104 of the overlapped FP register within the VSX register on little-
14106 (efpr_pseudo_register_write): Likewise.
14108 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14110 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14111 offset on little-endian when passing small structures.
14113 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14115 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14116 (struct ppc64_sysv_argpos): New data structure.
14117 (ppc64_sysv_abi_push_float): Remove.
14118 (ppc64_sysv_abi_push_val): New function.
14119 (ppc64_sysv_abi_push_integer): Likewise.
14120 (ppc64_sysv_abi_push_freg): Likewise.
14121 (ppc64_sysv_abi_push_vreg): Likewise.
14122 (ppc64_sysv_abi_push_param): Likewise.
14123 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14124 (ppc64_sysv_abi_return_value_base): New function.
14125 (ppc64_sysv_abi_return_value): Refactor to use it.
14127 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14129 * NEWS: Document new target powerpc64le-*-linux*.
14131 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14133 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14134 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14136 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14137 register set used in ELF core dumps. Add floating-point register set.
14139 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14141 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14142 dwarf2_to_gdb[] table using symbolic constants. Adjust
14143 penultimate entry from number representing the PC register
14144 to symbolic constant representing the MDR register. Add
14145 constant for the PC register to the end of the table.
14147 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14149 * bsd-kvm.c: Include <sys/param.h>
14151 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14153 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14155 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14157 * ada-lang.h (clear_ada_sym_cache): Delete.
14159 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14161 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14163 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14165 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14166 the sigreturn register save area only if the syscall is
14169 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14171 * valops.c (value_slice): Minor reformatting.
14173 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14175 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14177 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14179 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14180 New static globals.
14181 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14182 (ada_ignore_descriptive_types_p): New static global.
14183 (find_parallel_type_by_descriptive_type): Return immediately
14184 if ada_ignore_descriptive_types_p is set.
14185 (_initialize_ada_language): Register new commands "maintenance
14186 set ada", "maintenance show ada", "maintenance set ada
14187 ignore-descriptive-types" and "maintenance show ada
14188 ignore-descriptive-types".
14189 * NEWS: Add entry for new "maint ada set/show
14190 ignore-descriptive-types" commands.
14192 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14194 * record-btrace.c (record_btrace_close): Call btrace_teardown
14197 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14199 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14202 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14204 * ada-typeprint (type_is_full_subrange_of_target_type):
14206 (print_range): Add parameter bounds_prefered_p. If not set,
14207 try printing range types using the name of their base type.
14208 (print_range_type): Add parameter bounds_prefered_p.
14209 Use it in call to print_range.
14210 (print_array_type, ada_print_type): Update calls to print_range
14211 and print_range_type.
14213 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14215 * ada-typeprint.c (print_array_type, print_choices, print_range)
14216 (print_range_bound, print_dynamic_range_bound, print_range_type):
14217 Remove declaration.
14219 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14221 * ada-typeprint.c (print_range): Add missing empty line
14222 after local declaration.
14224 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14226 * ada-valprint.c (print_optional_low_bound): Get index_type's
14227 target type for as long as it is a TYPE_CODE_RANGE.
14229 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14231 * procfs.c (procfs_make_note_section): Remove assertion and
14232 associated comment.
14234 2014-01-24 Yao Qi <yao@codesourcery.com>
14236 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14237 * corelow.c (get_core_siginfo): Likewise.
14239 2014-01-24 Yao Qi <yao@codesourcery.com>
14241 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14242 ULONGEST. Don't check 'len' is negative.
14243 (remote_write_bytes): Change type of 'len' to ULONGEST.
14245 2014-01-23 Tom Tromey <tromey@redhat.com>
14248 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14249 Handle exception from frame.block.
14250 (FrameVars.fetch_frame_locals): Likewise.
14252 2014-01-23 Tom Tromey <tromey@redhat.com>
14255 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14256 on a NULL pointer. Move "goto error" to correct place.
14258 2014-01-23 Tom Tromey <tromey@redhat.com>
14261 * python/py-framefilter.c (apply_frame_filter): Call
14262 ensure_python_env after computing gdbarch.
14264 2014-01-23 Yao Qi <yao@codesourcery.com>
14266 * target.c (raw_memory_xfer_partial): Change argument type
14267 from void * to gdb_byte *.
14268 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14270 2014-01-22 Doug Evans <dje@google.com>
14272 New gdbserver option --debug-format=timestamp.
14273 * NEWS: Mention it.
14275 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14277 * syscalls/s390x-linux.xml: New file.
14278 * syscalls/s390-linux.xml: New file.
14279 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14280 (XML_SYSCALL_FILENAME_S390X): Likewise.
14281 (op_svc): New enum value for SVC opcode.
14282 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14283 (s390_linux_get_syscall_number): New function.
14284 (s390_gdbarch_init): Register '*get_syscall_number' and the
14285 syscall xml file name.
14286 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14287 "s390-linux.xml" and "s390x-linux.xml".
14288 * NEWS: Announce new feature.
14290 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14292 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14294 2014-01-22 Pedro Alves <palves@redhat.com>
14296 * xtensa-config.c: Include defs.h.
14298 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14300 * common/common-utils.h: Add "ARI:" comment beside __func__
14303 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14305 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14306 documentation a bit.
14308 2014-01-21 Roland McGrath <mcgrathr@google.com>
14310 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14311 * configure: Regenerate.
14312 * aclocal.m4: Regenerate.
14313 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14314 New substituted variables.
14315 (install-strip): New target.
14316 (INSTALL_SCRIPT): New substituted variable.
14317 (FLAGS_TO_PASS): Add it.
14318 (install-only): Use $(INSTALL_SCRIPT) rather than
14319 $(INSTALL_PROGRAM) for gcore.
14321 2014-01-20 Tom Tromey <tromey@redhat.com>
14323 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14326 2014-01-20 Tom Tromey <tromey@redhat.com>
14328 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14329 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14330 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14331 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14332 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14333 (struct cmd_list_element) <flags>: Remove.
14334 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14335 doc_allocated>: New fields.
14336 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14338 * maint.c (maintenance_do_deprecate): Update.
14339 * top.c (execute_command): Update.
14341 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14343 * xtensa-linux-nat.c: Include asm/ptrace.h.
14345 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14347 * Makefile.in (SFILES): Add d-support.c.
14348 (COMMON_OBS): Add d-support.o.
14349 * d-lang.h (d_parse_symbol): Add comment, now defined in
14351 * d-lang.c (parse_call_convention)
14352 (parse_attributes, parse_function_types)
14353 (parse_function_args, parse_type, parse_identifier)
14354 (call_convention_p, d_parse_symbol): Move functions to ...
14355 * d-support.c: ... New file.
14357 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14359 * d-lang.h (d_parse_symbol): Add declaration.
14360 * d-lang.c (extract_identifiers)
14361 (extract_type_info): Remove functions.
14362 (parse_call_convention, parse_attributes)
14363 (parse_function_types, parse_function_args)
14364 (parse_type, parse_identifier, call_convention_p)
14365 (d_parse_symbol): New functions.
14366 (d_demangle): Use d_parse_symbol to demangle D symbols.
14368 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14370 * d-lang.h (struct builtin_d_type): New data type.
14371 (builtin_d_type): Add declaration.
14372 * d-lang.c (d_language_arch_info, build_d_types)
14373 (builtin_d_type): New functions.
14374 (enum d_primitive_types): New data type.
14375 (d_language_defn): Change c_language_arch_info to
14376 d_language_arch_info.
14377 (d_type_data): New static variable.
14378 (_initialize_d_language): Initialize d_type_data.
14380 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14382 * d-lang.h (d_main_name): Add declaration.
14383 * d-lang.c (d_main_name): New function.
14384 * symtab.c (find_main_name): Add call to d_main_name.
14386 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14388 * d-lang.c (d_language_defn): Change macro_expansion_c to
14389 macro_expansion_no.
14391 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14393 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14395 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14397 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14398 gdb_exception" declaration.
14399 * remote.c (getpkt_or_notif_sane): Likewise.
14401 2014-01-17 Doug Evans <dje@google.com>
14403 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14404 function, contents of dirnames_to_char_ptr_vec_append moved here.
14405 (delim_string_to_char_ptr_vec): New function.
14406 (dirnames_to_char_ptr_vec_append): Rewrite.
14407 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14409 2014-01-17 Doug Evans <dje@google.com>
14411 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14413 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14414 #include "common-utils.h".
14415 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14416 * common/vec.h (VEC_ASSERT_PASS): Update.
14417 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14418 (MACH_CHECK_ERROR): Update.
14420 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14422 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14424 * gdbarch.h: Regenerate.
14426 2014-01-16 Tom Tromey <tromey@redhat.com>
14428 * value.c (struct value) <regnum>: Move earlier.
14430 2014-01-16 Tom Tromey <tromey@redhat.com>
14432 * remote.c (extended_remote_create_inferior): Rename from
14433 extended_remote_create_inferior_1. Add "ops" argument. Remove
14434 old implementation.
14436 2014-01-16 Pedro Alves <palves@redhat.com>
14438 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14439 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14442 2014-01-16 Doug Evans <dje@google.com>
14444 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14448 * btrace.h (btrace_thread_flag): New.
14449 (struct btrace_thread_info) <flags>: New.
14450 * record-btrace.c (record_btrace_resume_thread)
14451 (record_btrace_find_thread_to_move, btrace_step_no_history)
14452 (btrace_step_stopped, record_btrace_start_replaying)
14453 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14454 (record_btrace_find_resume_thread): New.
14455 (record_btrace_resume, record_btrace_wait): Extend.
14456 (record_btrace_can_execute_reverse): New.
14457 (record_btrace_open): Fail in non-stop mode.
14458 (record_btrace_set_replay): Split into this, ...
14459 (record_btrace_stop_replaying): ... this, ...
14460 (record_btrace_clear_histories): ... and this.
14461 (init_record_btrace_ops): Init to_can_execute_reverse.
14462 * NEWS: Announce it.
14464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14466 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14467 (forward_target_decr_pc_after_break)
14468 (target_decr_pc_after_break): New.
14469 * target.c (forward_target_decr_pc_after_break)
14470 (target_decr_pc_after_break): New.
14471 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14472 instead of gdbarch_decr_pc_after_break.
14473 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14474 instead of gdbarch_decr_pc_after_break.
14475 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14476 instead of gdbarch_decr_pc_after_break.
14477 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14478 instead of gdbarch_decr_pc_after_break.
14479 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14480 instead of gdbarch_decr_pc_after_break.
14481 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14482 instead of gdbarch_decr_pc_after_break.
14484 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14486 * btrace.c: Include regcache.h.
14487 (btrace_add_pc): New.
14488 (btrace_enable): Call btrace_add_pc.
14489 (btrace_is_empty): New.
14490 * btrace.h (btrace_is_empty): New.
14491 * record-btrace.c (require_btrace, record_btrace_info): Call
14494 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14496 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14497 Support delta reads.
14498 (linux_disable_btrace): Change return type.
14499 * common/linux-btrace.h (linux_read_btrace): Change parameters
14500 and return type to allow error reporting. Update users.
14501 (linux_disable_btrace): Change return type. Update users.
14502 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14504 (btrace_error): New.
14505 (btrace_block) <begin>: Comment on BEGIN == 0.
14506 * btrace.c (btrace_compute_ftrace): Start from the end of
14508 (btrace_stitch_trace, btrace_clear_history): New.
14509 (btrace_fetch): Read delta trace, return if replaying.
14510 (btrace_clear): Move clear history code to btrace_clear_history.
14511 (parse_xml_btrace): Throw an error if parsing failed.
14512 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14513 and return type to allow error reporting.
14514 (target_read_btrace): Change parameters and return type to allow
14516 * target.c (target_read_btrace): Update.
14517 * remote.c (remote_read_btrace): Support delta reads. Pass
14519 * NEWS: Announce it.
14521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14523 * record.h (record_btrace_frame_unwind)
14524 (record_btrace_tailcall_frame_unwind): New declarations.
14525 * dwarf2-frame: Include record.h
14526 (dwarf2_frame_cfa): Throw an error for btrace frames.
14527 * record-btrace.c: Include hashtab.h.
14528 (btrace_get_bfun_name): New.
14529 (btrace_call_history): Call btrace_get_bfun_name.
14530 (struct btrace_frame_cache): New.
14532 (bfcache_hash, bfcache_eq, bfcache_new): New.
14533 (btrace_get_frame_function): New.
14534 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14535 (record_btrace_frame_this_id): Compute own id.
14536 (record_btrace_frame_prev_register): Provide PC, throw_error
14537 for all other registers.
14538 (record_btrace_frame_sniffer): Detect btrace frames.
14539 (record_btrace_tailcall_frame_sniffer): New.
14540 (record_btrace_frame_dealloc_cache): New.
14541 (record_btrace_frame_unwind): Add new functions.
14542 (record_btrace_tailcall_frame_unwind): New.
14543 (_initialize_record_btrace): Allocate cache.
14544 * btrace.c (btrace_clear): Call reinit_frame_cache.
14545 * NEWS: Announce it.
14547 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14549 * record-btrace.c (record_btrace_set_replay)
14550 (record_btrace_goto_begin, record_btrace_goto_end)
14551 (record_btrace_goto): New.
14552 (init_record_btrace_ops): Initialize them.
14553 * NEWS: Announce it.
14555 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14557 * record-btrace.c (record_btrace_find_new_threads)
14558 (record_btrace_thread_alive): New.
14559 (init_record_btrace_ops): Initialize to_find_new_threads and
14562 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14564 * record-btrace.c (record_btrace_resume): New.
14565 (record_btrace_wait): New.
14566 (init_record_btrace_ops): Initialize to_wait and to_resume.
14568 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14570 * record-btrace.c (record_btrace_xfer_partial)
14571 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14572 (record_btrace_allow_memory_access): New.
14573 (init_record_btrace_ops): Initialize new methods.
14574 * target.c (raw_memory_xfer_partial): Bail out if target reports
14575 that this memory is not available.
14577 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14579 * target.h (target_ops) <to_insert_breakpoint>
14580 <to_remove_breakpoint>: Add target_ops parameter.
14581 (forward_target_insert_breakpoint): New.
14582 (forward_target_remove_breakpoint): New.
14583 (memory_remove_breakpoint, memory_insert_breakpoint):
14584 Add target_ops parameter.
14585 * target.c (target_insert_breakpoint): Split into this and ...
14586 (forward_target_insert_breakpoint): ... this.
14587 (target_remove_breakpoint): Split into this and ...
14588 (forward_target_remove_breakpoint): ... this.
14589 (debug_to_insert_breakpoint): Add target_ops parameter.
14590 Call forward_target_insert_breakpoint.
14591 (debug_to_remove_breakpoint): Add target_ops parameter.
14592 Call forward_target_remove_breakpoint.
14593 (update_current_target): Do not inherit or default to_insert_breakpoint
14594 and to_remove_breakpoint.
14595 * corelow.c (ignore): Add target_ops parameter.
14596 * exec.c (ignore): Add target_ops parameter.
14597 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14598 Add target_ops parameter.
14599 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14600 Add target_ops parameter.
14601 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14602 Add target_ops parameter.
14603 * record-full.c (record_full_beneath_to_insert_breakpoint)
14604 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14605 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14606 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14607 (record_full_core_remove_breakpoint): Add target_ops parameter.
14609 (record_full_beneath_to_insert_breakpoint_ops)
14610 (record_full_beneath_to_remove_breakpoint_ops)
14611 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14612 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14613 tmp_to_remove_breakpoint_ops,
14614 record_full_beneath_to_insert_breakpoint_ops, and
14615 record_full_beneath_to_remove_breakpoint_ops.
14616 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14617 (m32r_remove_breakpoint): Add target_ops parameter.
14618 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14619 Add target_ops parameter.
14620 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14621 Add target_ops parameter.
14623 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14624 Markus Metzger <markus.t.metzger@intel.com>
14626 * record-btrace.c: Include frame-unwind.h.
14627 (record_btrace_frame_unwind_stop_reason)
14628 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14629 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14631 (init_record_btrace_ops): Install it.
14633 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14635 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14638 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14640 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14643 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14645 * frame-unwind.c: Include target.h.
14646 (frame_unwind_try_unwinder): New function with code from ...
14647 (frame_unwind_find_by_frame): ... here. New variable
14648 unwinder_from_target, call also target_get_unwinder)
14649 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14650 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14651 * target.h (struct target_ops): New fields to_get_unwinder and
14652 to_get_tailcall_unwinder.
14653 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14657 * record-btrace.c (record_btrace_fetch_registers)
14658 (record_btrace_store_registers)
14659 (record_btrace_to_prepare_to_store): New.
14660 (init_record_btrace_ops): Add the above.
14662 2014-01-16 Tom Tromey <tromey@redhat.com>
14664 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14665 * target.h (struct target_ops) <to_prepare_to_store>: Add
14667 (target_prepare_to_store): Add argument.
14668 * target.c (debug_to_prepare_to_store): Add argument.
14669 (update_current_target): Update.
14670 * remote.c (remote_prepare_to_store): Add 'self' argument.
14671 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14672 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14673 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14674 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14676 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14677 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14678 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14679 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14680 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14684 * btrace.h (replay) <replay>: New.
14685 (btrace_is_replaying): New.
14686 * btrace.c (btrace_clear): Free replay iterator.
14687 (btrace_is_replaying): New.
14688 * record-btrace.c (record_btrace_is_replaying): New.
14689 (record_btrace_info): Print insn number if replaying.
14690 (record_btrace_insn_history): Start at replay position.
14691 (record_btrace_call_history): Start at replay position.
14692 (init_record_btrace_ops): Init to_record_is_replaying.
14694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14696 * record-btrace.c (record_btrace_insn_history_range): Include
14698 (record_btrace_insn_history_from): Adjust range.
14699 (record_btrace_call_history_range): Include
14701 (record_btrace_call_history_from): Adjust range.
14702 * NEWS: Announce changes.
14704 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14706 * record.h (enum record_print_flag)
14707 <record_print_indent_calls>: New.
14708 * record.c (get_call_history_modifiers): Recognize /c modifier.
14709 (_initialize_record): Document /c modifier.
14710 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14711 Reorder fields. Optionally indent the function name. Update
14713 * NEWS: Announce changes.
14715 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14717 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14719 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14721 * btrace.c (ftrace_new_function): Start counting at one.
14722 * record-btrace.c (record_btrace_info): Adjust number of calls
14724 * NEWS: Announce it.
14726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14728 * record-btrace.c (btrace_call_history_insn_range): Print
14729 insn range as [begin, end].
14731 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14733 * btrace.h (struct btrace_func_link): New.
14734 (enum btrace_function_flag): New.
14735 (struct btrace_inst): Rename to ...
14736 (struct btrace_insn): ...this. Update all users.
14737 (struct btrace_func) <ibegin, iend>: Remove.
14738 (struct btrace_func_link): New.
14739 (struct btrace_func): Rename to ...
14740 (struct btrace_function): ...this. Update all users.
14741 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14742 (number, level, flags>: New.
14743 (struct btrace_insn_iterator): Rename to ...
14744 (struct btrace_insn_history): ...this.
14746 (struct btrace_insn_iterator, btrace_call_iterator): New.
14747 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14748 (struct btrace_target_info) <begin, end, level>
14749 <insn_history, call_history>: New.
14750 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14751 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14752 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14753 (btrace_call_number, btrace_call_begin, btrace_call_end)
14754 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14755 (btrace_find_function_by_number, btrace_set_insn_history)
14756 (btrace_set_call_history): New.
14757 * btrace.c (btrace_init_insn_iterator)
14758 (btrace_init_func_iterator, compute_itrace): Remove.
14759 (ftrace_print_function_name, ftrace_print_filename)
14760 (ftrace_skip_file): Change
14761 parameter to const.
14762 (ftrace_init_func): Remove.
14763 (ftrace_debug): Use new btrace_function fields.
14764 (ftrace_function_switched): Also consider gaining and
14765 losing symbol information).
14766 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14767 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14768 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14770 (ftrace_new_function): Move. Remove debug print.
14771 (ftrace_update_lines, ftrace_update_insns): New.
14772 (ftrace_update_function): Check for call, ret, and jump.
14773 (compute_ftrace): Renamed to ...
14774 (btrace_compute_ftrace): ...this. Rewritten to compute call
14776 (btrace_fetch, btrace_clear): Updated.
14777 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14778 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14779 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14780 (btrace_call_number, btrace_call_begin, btrace_call_end)
14781 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14782 (btrace_find_function_by_number, btrace_set_insn_history)
14783 (btrace_set_call_history): New.
14784 * record-btrace.c (require_btrace): Use new btrace thread
14786 (record_btrace_info, btrace_insn_history)
14787 (record_btrace_insn_history, record_btrace_insn_history_range):
14788 Use new btrace thread info fields and new iterator.
14789 (btrace_func_history_src_line): Rename to ...
14790 (btrace_call_history_src_line): ...this. Use new btrace
14791 thread info fields.
14792 (btrace_func_history): Rename to ...
14793 (btrace_call_history): ...this. Use new btrace thread info
14794 fields and new iterator.
14795 (record_btrace_call_history, record_btrace_call_history_range):
14796 Use new btrace thread info fields and new iterator.
14798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14800 * frame.h (frame_id_build_unavailable_stack_special): New.
14801 * frame.c (frame_id_build_unavailable_stack_special): New.
14803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14805 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14806 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14807 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14809 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14810 (i386_insn_is_jump, i386_jmp_p): New.
14811 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14812 insn_is_jump to gdbarch.
14813 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14814 * gdbarch.h: Regenerated.
14815 * gdbarch.c: Regenerated.
14816 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14817 (default_insn_is_jump): New.
14818 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14819 (default_insn_is_jump): New.
14821 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14823 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14825 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14826 (btrace_read_type) <btrace_read_new>: Change to ...
14827 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14831 * common/linux-btrace.c (linux_read_btrace): Free trace from
14832 previous iteration.
14834 2014-01-15 Doug Evans <dje@google.com>
14836 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14839 2014-01-15 Tom Tromey <tromey@redhat.com>
14841 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14842 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14843 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14844 (set_objfile_main_name): New function.
14845 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14846 language_of_main>: New fields.
14847 (set_objfile_main_name): Declare.
14848 * symtab.c (find_main_name): Loop over objfiles to find the main
14850 (set_main_name): Now static.
14851 (get_main_info): Add comment.
14852 * symtab.h (set_main_name): Don't declare.
14854 2014-01-15 Tom Tromey <tromey@redhat.com>
14856 * symtab.c (main_progspace_key): New global.
14857 (struct main_info): New.
14858 (name_of_main, language_of_main): Remove.
14859 (get_main_info, main_info_cleanup): New function.
14860 (set_main_name, main_name, main_language): Use get_main_info.
14861 (_initialize_symtab): Initialize main_progspace_key.
14863 2014-01-15 Tom Tromey <tromey@redhat.com>
14865 * dbxread.c (process_one_symbol): Update.
14866 * dwarf2read.c (read_partial_die): Update.
14867 * symfile.c (set_initial_language): Call main_language.
14868 * symtab.c (language_of_main): Now static.
14869 (set_main_name): Add 'lang' parameter.
14870 (find_main_name): Update.
14871 (main_language): New function.
14872 (symtab_observer_executable_changed): Update.
14873 * symtab.h (set_main_name): Update.
14874 (language_of_main): Remove.
14875 (main_language): Declare.
14877 2014-01-15 Tom Tromey <tromey@redhat.com>
14879 * symfile.c (init_entry_point_info): Use new "initialized" field.
14881 * objfiles.h (struct entry_point) <initialized>: New field.
14882 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14883 (struct objfile) <ei>: ...here. Remove.
14884 * objfiles.c (entry_point_address_query): Update.
14886 2014-01-15 Tom Tromey <tromey@redhat.com>
14888 * objfiles.c (entry_point_address_query): Relocate entry point
14890 (objfile_relocate1): Do not relocate entry point address.
14891 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14892 <the_bfd_section_index>: New field.
14893 * symfile.c (init_entry_point_info): Find the entry point's
14896 2014-01-15 Tom Tromey <tromey@redhat.com>
14898 * solib-frv.c (enable_break): Use entry_point_address_query.
14900 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14902 * NEWS: Add note on improved process record-replay on
14903 arm*-linux* targets.
14905 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14907 * arm-tdep.c (enum arm_record_result): New enum.
14908 (arm_record_unsupported_insn): New function.
14909 (arm_record_coproc_data_proc): Removed.
14910 (thumb2_record_ld_st_multiple): New function.
14911 (thumb2_record_ld_st_dual_ex_tbb): New function.
14912 (thumb2_record_data_proc_sreg_mimm): New function.
14913 (thumb2_record_ps_dest_generic): New function.
14914 (thumb2_record_branch_misc_cntrl): New function.
14915 (thumb2_record_str_single_data): New function.
14916 (thumb2_record_ld_mem_hints): New function.
14917 (thumb2_record_ld_word): New function.
14918 (thumb2_record_lmul_lmla_div): New function.
14919 (thumb2_record_decode_insn_handler): New function.
14920 (decode_insn): Add thumb32 instruction handlers.
14922 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14924 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14925 (struct arm_linux_record_tdep): Declare.
14926 (arm_canonicalize_syscall): New function.
14927 (arm_all_but_pc_registers_record): New function.
14928 (arm_linux_syscall_record): New function.
14929 (arm_linux_init_abi): Add syscall recording constructs.
14930 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14931 decoding. (arm_record_coproc_data_proc): Update arm syscall
14933 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14934 <arm_syscall_record>: New field.
14935 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14938 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14940 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14941 register for push instruction recording.
14943 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14945 * arm-tdep.c (thumb_record_misc): Update to correct logical
14946 error while recording ldm, ldmia and pop instructions.
14948 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14950 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14952 2014-01-15 Pedro Alves <palves@redhat.com>
14954 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14955 (go32_resume, go32_fetch_registers, store_register)
14956 (go32_store_registers, go32_prepare_to_store)
14957 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14958 (go32_create_inferior, go32_can_run, go32_terminal_init)
14959 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14962 2014-01-15 Tom Tromey <tromey@redhat.com>
14964 * target.h (async_callback_ftype): New typedef.
14965 (struct target_ops) <to_async>: Use it.
14967 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14969 * python/py-value.c (get_field_type): Remove unnecessary curly
14970 braces for single-statement if block.
14972 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14974 * python/py-type.c (convert_field): Add missing empty line
14975 after declarations.
14977 2014-01-14 Doug Evans <dje@google.com>
14979 * symfile.h (expand_symtabs_matching): Renamed from
14980 expand_partial_symbol_names. Update prototype.
14981 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14982 * symfile.c (expand_symtabs_matching): Renamed from
14983 expand_partial_symbol_names. New args file_matcher, kind.
14984 Rename arg fun to symbol_matcher.
14985 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14986 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14987 ada_expand_partial_symbol_name.
14988 (ada_make_symbol_completion_list): Update to call
14989 expand_symtabs_matching.
14990 (ada_add_global_exceptions): Call expand_symtabs_matching.
14991 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14992 call map_symbol_filenames.
14993 * symtab.c (sources_info): Update to call map_symbol_filenames.
14994 (search_symbols): Call expand_symtabs_matching.
14995 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14996 (default_make_symbol_completion_list_break_on): Update to call
14997 expand_symtabs_matching.
14998 (make_source_files_completion_list): Update to call
14999 map_symbol_filenames.
15001 2014-01-14 Doug Evans <dje@google.com>
15003 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15004 (expand_symtabs_symbol_matcher_ftype): New typedef.
15005 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15006 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15007 * symfile.c (expand_partial_symbol_names): Update to use
15008 expand_symtabs_symbol_matcher_ftype.
15009 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15010 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15011 Arg name_matcher renamed to symbol_matcher.
15012 * psymtab.c (recursively_search_psymtabs): Update to use
15013 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15015 (expand_symtabs_matching_via_partial): Update to use
15016 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15017 Arg name_matcher renamed to symbol_matcher.
15019 2014-01-14 Doug Evans <dje@google.com>
15021 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15022 (map_partial_symbol_filenames): Ditto.
15023 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15024 (map_partial_symbol_filenames): Ditto.
15025 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15026 (map_partial_symbol_filenames): Ditto.
15027 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15028 (map_partial_symbol_filenames): Ditto.
15029 * symtab.c: Delete #include "psymtab.h".
15031 2014-01-14 Pedro Alves <palves@redhat.com>
15032 Tom Tromey <tromey@redhat.com>
15034 * infrun.c (use_displaced_stepping): Use find_record_target
15035 instead of RECORD_IS_USED.
15036 (adjust_pc_after_break): Use record_full_is_used instead of
15038 * record-btrace.c (record_btrace_open): Call record_preopen
15039 instead of checking RECORD_IS_USED.
15040 * record-full.c (record_full_shortname)
15041 (record_full_core_shortname): New globals.
15042 (record_full_is_used): New function.
15043 (find_full_open): Call record_preopen instead of checking
15045 (init_record_full_ops): Set the target's shortname to
15046 record_full_shortname.
15047 (init_record_full_core_ops): Set the target's shortname to
15048 record_full_core_shortname.
15049 * record-full.h (record_full_is_used): Declare.
15050 * record.c (find_record_target): Make extern.
15051 (record_preopen): New function.
15052 * record.h (RECORD_IS_USED): Delete macro.
15053 (find_record_target, record_preopen): Declare functions.
15055 2014-01-14 Yao Qi <yao@codesourcery.com>
15057 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15058 'len''s type to ULONGEST.
15059 (core_xfer_shared_libraries_aix): Likewise.
15060 * gdbarch.c, gdbarch.h: Regenerated.
15061 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15062 Change type of 'len' to ULONGEST.
15063 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15064 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15066 2014-01-14 Yao Qi <yao@codesourcery.com>
15068 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15069 type of 'len' to ULONGEST.
15070 (linux_xfer_osdata_processgroups): Likewise.
15071 (linux_xfer_osdata_threads): Likewise.
15072 (linux_xfer_osdata_fds): Likewise.
15073 (linux_xfer_osdata_isockets): Likewise.
15074 (linux_xfer_osdata_shm): Likewise.
15075 (linux_xfer_osdata_sem): Likewise.
15076 (linux_xfer_osdata_msg): Likewise.
15077 (linux_common_xfer_osdata): Likewise.
15078 (struct osdata_type) <getter>: Likewise.
15079 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15082 2014-01-14 Yao Qi <yao@codesourcery.com>
15084 * target.h (target_xfer_partial_ftype): Update.
15085 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15087 * aix-thread.c (aix_thread_xfer_partial): Change type of
15088 argument 'len' to ULONGEST.
15089 * auxv.c (procfs_xfer_auxv): Likewise.
15090 (ld_so_xfer_auxv): Likewise.
15091 (memory_xfer_auxv): Likewise.
15092 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15093 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15094 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15095 * corelow.c (core_xfer_partial): Likewise.
15096 * ctf.c (ctf_xfer_partial): Likewise.
15097 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15099 (darwin_read_dyld_info): Likewise.
15100 (darwin_xfer_partial): Likewise.
15101 * exec.c (section_table_xfer_memory_partial): Likewise.
15102 (exec_xfer_partial): Likewise.
15103 * exec.h (section_table_xfer_memory_partial): Update
15105 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15106 instead of plongest.
15107 (gnu_xfer_partial): Likewise.
15108 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15109 (ia64_hpux_xfer_solib_got): Likewise.
15110 (ia64_hpux_xfer_partial): Likewise.
15111 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15112 * inf-ptrace.c (inf_ptrace_xfer_partial):
15113 * inf-ttrace.c (inf_ttrace_xfer_partial):
15114 * linux-nat.c (linux_xfer_siginfo): Likewise.
15115 (linux_nat_xfer_partial): Likewise.
15116 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15117 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15118 * monitor.c (monitor_xfer_memory): Likewise.
15119 (monitor_xfer_partial): Likewise.
15120 * procfs.c (procfs_xfer_partial): Likewise.
15121 * record-full.c (record_full_xfer_partial): Likewise.
15122 (record_full_core_xfer_partial): Likewise.
15123 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15124 instead of plongest.
15125 (gdbsim_xfer_partial): Likewise.
15126 * remote.c (remote_xfer_partial): Likewise.
15127 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15128 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15130 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15131 (rs6000_xfer_shared_libraries): Likewise.
15132 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15133 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15134 (sparc_xfer_partial): Likewise.
15135 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15136 (spu_xfer_partial): Likewise.
15137 * spu-multiarch.c (spu_xfer_partial): Likewise.
15138 * target.c (target_read_live_memory): Likewise.
15139 (memory_xfer_live_readonly_partial): Likewise.
15140 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15141 (target_xfer_partial, default_xfer_partial): Likewise.
15142 (current_xfer_partial): Likewise.
15143 * tracepoint.c (tfile_xfer_partial): Likewise.
15144 * windows-nat.c (windows_xfer_memory): Likewise. Call
15145 pulongest instead of plongest.
15146 (windows_xfer_partial): Likewise.
15147 (windows_xfer_shared_libraries): Likewise.
15149 2014-01-14 Yao Qi <yao@codesourcery.com>
15151 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15152 target_xfer_partial_ftype.
15154 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15158 * valops.c (value_struct_elt_bitpos): New function
15159 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15160 object to 'None' if the field name is an empty string ("").
15161 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15162 attribute to look for a field when 'name' is 'None'.
15163 (get_field_type): New function
15165 2014-01-13 Doug Evans <dje@google.com>
15168 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15169 (try_open_dwop_file): Ditto.
15170 * gdb_bfd.c: #include "vec.h".
15171 (bfdp): New typedef.
15172 (struct gdb_bfd_data): New member included_bfds.
15173 (gdb_bfd_unref): Unref all included bfds.
15174 (gdb_bfd_record_inclusion): New function.
15175 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15177 2014-01-13 Tom Tromey <tromey@redhat.com>
15179 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15181 2014-01-13 Tom Tromey <tromey@redhat.com>
15183 * defs.h (use_windows): Remove.
15184 * gdb.c (main): Update.
15185 * main.c (captured_main, gdb_main): Update.
15186 * main.h (struct captured_main_args) <use_windows>: Remove.
15187 * top.c (use_windows): Remove.
15189 2014-01-13 Tom Tromey <tromey@redhat.com>
15191 * defs.h (deprecated_flush_hook): Remove.
15193 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15196 * linux-thread-db.c (try_thread_db_load): Add parameter
15197 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15198 (try_thread_db_load_from_pdir_1): Move it there from here.
15199 (try_thread_db_load_from_sdir): Update caller.
15200 (try_thread_db_load_from_dir): Move it there from here.
15202 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15204 * regformats/regdat.sh: Always rewrite the register file.
15206 2014-01-13 Pedro Alves <palves@redhat.com>
15208 * Makefile.in (CHECK_HEADERS): New variable.
15209 (check-headers:): New rule.
15211 2014-01-13 Tom Tromey <tromey@redhat.com>
15213 * cli/cli-setshow.c (do_set_command): Update.
15214 * defs.h (deprecated_set_hook): Remove.
15215 * top.c (deprecated_set_hook): Remove.
15217 2014-01-13 Pedro Alves <palves@redhat.com>
15219 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15220 the tracepoint if the PC is a pseudo-register.
15222 2014-01-13 Tom Tromey <tromey@redhat.com>
15224 * defs.h (XCALLOC): Remove.
15225 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15226 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15227 * dwarf2loc.c (allocate_piece_closure): Likewise.
15228 * elfread.c (elf_symfile_segments): Likewise.
15229 (elf_symfile_segments): Likewise.
15230 * gdbtypes.c (copy_type_recursive): Likewise.
15231 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15232 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15233 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15235 * mt-tdep.c (mt_gdbarch_init): Likewise.
15236 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15238 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15239 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15240 * registry.c (registry_alloc_data): Likewise.
15241 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15242 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15243 * serial.c (serial_fdopen_ops): Likewise.
15244 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15246 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15247 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15250 2014-01-13 Tom Tromey <tromey@redhat.com>
15252 * defs.h (XMALLOC): Remove.
15253 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15254 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15255 * cli-out.c (struct ui_out *): Likewise.
15256 * cli/cli-dump.c (add_dump_command): Likewise.
15257 (add_dump_command): Likewise.
15258 * complaints.c (get_complaints): Likewise.
15259 (find_complaint): Likewise.
15260 * dwarf2-frame.c (execute_cfa_program): Likewise.
15261 * dwarf2read.c (abbrev_table_read_table): Likewise.
15262 * gdbarch.sh: Likewise.
15263 * gdbarch.c: Rebuild.
15264 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15265 * interps.c (interp_new): Likewise.
15266 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15267 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15268 * mi/mi-console.c (mi_console_file_new): Likewise.
15269 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15270 * mi/mi-out.c (mi_out_new): Likewise.
15271 * mi/mi-parse.c (mi_parse): Likewise.
15272 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15273 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15274 * observer.c (xalloc_observer_list_node): Likewise.
15275 * regcache.c (regcache_xmalloc_1): Likewise.
15276 * reggroups.c (reggroup_new): Likewise.
15277 (_initialize_reggroup): Likewise.
15278 * registry.c (register_data_with_cleanup): Likewise.
15279 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15280 * ser-base.c (serial_ttystate): Likewise.
15281 * ser-mingw.c (make_pipe_state): Likewise.
15282 * ser-pipe.c (pipe_open): Likewise.
15283 * serial.c (serial_open): Likewise.
15284 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15285 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15286 (tui_alloc_win_info): Likewise.
15287 (tui_add_content_elements): Likewise.
15288 * tui/tui-file.c (tui_file_new): Likewise.
15289 * tui/tui-out.c (tui_out_new): Likewise.
15290 * ui-file.c (mem_file_new): Likewise.
15291 * ui-out.c (push_level): Likewise.
15292 (make_cleanup_ui_out_end): Likewise.
15293 (append_header_to_list): Likewise.
15294 (ui_out_new): Likewise.
15295 * user-regs.c (user_reg_add_builtin): Likewise.
15297 2014-01-13 Tom Tromey <tromey@redhat.com>
15299 * defs.h (XZALLOC): Remove.
15300 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15301 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15302 (get_ada_tasks_inferior_data): Likewise.
15303 * auto-load.c (get_auto_load_pspace_data): Likewise.
15304 * auxv.c (get_auxv_inferior_data): Likewise.
15305 * bfd-target.c (target_bfd_reopen): Likewise.
15306 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15307 (deprecated_insert_raw_breakpoint): Likewise.
15308 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15309 * corelow.c (core_open): Likewise.
15310 * darwin-nat.c (darwin_check_new_threads): Likewise.
15311 (darwin_attach_pid): Likewise.
15312 * dummy-frame.c (dummy_frame_push): Likewise.
15313 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15314 * dwarf2loc.c (allocate_piece_closure): Likewise.
15315 * elfread.c (elf_symfile_segments): Likewise.
15316 * eval.c (ptrmath_type_p): Likewise.
15317 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15318 * gdbtypes.c (alloc_type_arch): Likewise.
15319 (alloc_type_instance): Likewise.
15320 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15321 * inf-child.c (inf_child_can_use_agent): Likewise.
15322 * inflow.c (get_inflow_inferior_data): Likewise.
15323 * infrun.c (save_infcall_suspend_state): Likewise.
15324 * jit.c (jit_reader_load): Likewise.
15325 (get_jit_objfile_data): Likewise.
15326 (get_jit_program_space_data): Likewise.
15327 (jit_object_open_impl): Likewise.
15328 (jit_symtab_open_impl): Likewise.
15329 (jit_block_open_impl): Likewise.
15330 (jit_frame_sniffer): Likewise.
15331 * linux-fork.c (add_fork): Likewise.
15332 * maint.c (make_command_stats_cleanup): Likewise.
15333 * objfiles.c (get_objfile_pspace_data): Likewise.
15334 * opencl-lang.c (struct lval_closure): Likewise.
15335 * osdata.c (osdata_start_osdata): Likewise.
15336 * progspace.c (new_address_space): Likewise.
15337 (add_program_space): Likewise.
15338 * remote-sim.c (get_sim_inferior_data): Likewise.
15339 * sh-tdep.c (sh_gdbarch_init): Likewise.
15340 * skip.c (Ignore): Likewise.
15341 (skip_delete_command): Likewise.
15342 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15343 (library_list_start_library): Likewise.
15344 (solib_aix_current_sos): Likewise.
15345 * solib-darwin.c (get_darwin_info): Likewise.
15346 (darwin_current_sos): Likewise.
15347 * solib-dsbt.c (get_dsbt_info): Likewise.
15348 * solib-ia64-hpux.c (new_so_list): Likewise.
15349 (ia64_hpux_get_solib_linkage_addr): Likewise.
15350 * solib-spu.c (append_ocl_sos): Likewise.
15351 (spu_current_sos): Likewise.
15352 * solib-svr4.c (get_svr4_info): Likewise.
15353 (svr4_keep_data_in_core): Likewise.
15354 (library_list_start_library): Likewise.
15355 (svr4_default_sos): Likewise.
15356 (svr4_read_so_list): Likewise.
15357 * solib-target.c (library_list_start_library): Likewise.
15358 (solib_target_current_sos): Likewise.
15359 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15360 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15361 * symfile.c (default_symfile_segments): Likewise.
15362 * target-descriptions.c (tdesc_data_init): Likewise.
15363 (tdesc_create_reg): Likewise.
15364 (struct tdesc_type *): Likewise.
15365 (tdesc_create_vector): Likewise.
15366 (tdesc_set_struct_size): Likewise.
15367 (struct tdesc_type *): Likewise.
15368 (tdesc_free_feature): Likewise.
15369 (tdesc_create_feature): Likewise.
15370 * windows-nat.c (windows_add_thread): Likewise.
15371 (windows_make_so): Likewise.
15372 * xml-support.c (gdb_xml_body_text): Likewise.
15373 (gdb_xml_create_parser_and_cleanup): Likewise.
15374 (xml_process_xincludes): Likewise.
15375 * xml-syscall.c (allocate_syscalls_info): Likewise.
15376 (syscall_create_syscall_desc): Likewise.
15378 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15380 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15381 function, with code from i386_stap_parse_special_token.
15382 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15383 (i386_stap_parse_special_token): Move code to the two functions
15384 above; simplify it.
15386 2014-01-09 Pedro Alves <palves@redhat.com>
15387 Hui Zhu <hui@codesourcery.com>
15390 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15391 bp_err_string. Don't mark the location shlib_disabled if the
15392 error thrown wasn't a generic or memory error. Catch errors
15393 thrown while inserting breakpoints in overlayed code. Output
15394 error message of software breakpoints.
15395 * remote.c (remote_insert_breakpoint): If this breakpoint has
15396 target-side commands but this stub doesn't support Z0 packets,
15397 throw NOT_SUPPORTED_ERROR error.
15398 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15399 * target.h (target_insert_breakpoint): Extend comment.
15400 (target_insert_hw_breakpoint): Add comment.
15402 2014-01-08 Pedro Alves <palves@redhat.com>
15404 * remote.c (remote_add_thread): Add threads silently if starting
15406 (remote_notice_new_inferior): If in all-stop, and starting up,
15407 don't call notice_new_inferior.
15408 (get_current_thread): New function, factored out from ...
15409 (add_current_inferior_and_thread): ... this. Adjust.
15410 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15411 found any thread, then select the remote's current thread as GDB's
15412 current thread too.
15414 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15416 * NEWS: Create a new section for the next release branch.
15417 Rename the section of the current branch, now that it has
15420 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15422 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15423 * version.in: Bump version to 7.7.50.DATE-cvs.
15425 2014-01-08 Yao Qi <yao@codesourcery.com>
15427 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15428 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15429 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15431 2014-01-08 Yao Qi <yao@codesourcery.com>
15433 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15434 return value of bfd_get_filename to symbol_file_add_from_bfd.
15436 2014-01-08 Pierre Muller <muller@sourceware.org>
15439 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15440 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15441 to prim_record_mininal_symbol_and_info.
15442 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15443 in call to prim_record_minimal_symbol_and_info.
15444 (read_pe_exported_syms): Set index field of section_data.
15446 2014-01-07 Andrew Pinski <apinski@cavium.com>
15448 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15449 * features/aarch64.c: Regenerate.
15451 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15453 * target.c (return_null): Define.
15454 (update_current_target): Use it instead of return_zero for
15455 functions that return a pointer.
15457 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15459 * source.c (add_path): Fix check for duplicated paths in the previously
15462 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15464 * ada-lang.c: Remove duplicated include statements.
15465 * alphabsd-nat.c: Ditto.
15466 * amd64-darwin-tdep.c: Ditto.
15467 * amd64fbsd-nat.c: Ditto.
15468 * auto-load.c: Ditto.
15470 * breakpoint.c: Ditto.
15471 * dbxread.c: Ditto.
15472 * fork-child.c: Ditto.
15473 * gdb_usleep.c: Ditto.
15474 * i386-darwin-tdep.c: Ditto.
15475 * i386fbsd-nat.c: Ditto.
15477 * inferior.c: Ditto.
15478 * jv-lang.c: Ditto.
15479 * linux-nat.c: Ditto.
15480 * linux-tdep.c: Ditto.
15481 * m68kbsd-nat.c: Ditto.
15482 * m68klinux-nat.c: Ditto.
15483 * microblaze-tdep.c: Ditto.
15484 * mips-linux-tdep.c: Ditto.
15485 * mn10300-tdep.c: Ditto.
15486 * nto-tdep.c: Ditto.
15487 * opencl-lang.c: Ditto.
15489 * printcmd.c: Ditto.
15490 * regcache.c: Ditto.
15491 * remote-m32r-sdi.c: Ditto.
15493 * symfile.c: Ditto.
15495 * tilegx-linux-nat.c: Ditto.
15496 * tilegx-tdep.c: Ditto.
15497 * tracepoint.c: Ditto.
15499 * vaxbsd-nat.c: Ditto.
15500 * windows-nat.c: Ditto.
15501 * xtensa-tdep.c: Ditto.
15503 2014-01-07 Yao Qi <yao@codesourcery.com>
15505 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15507 2014-01-07 Yao Qi <yao@codesourcery.com>
15508 Joel Brobecker <brobecker@adacore.com>
15510 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15511 (pdc_write_regs): Likewise.
15512 (fetch_regs_kernel_thread): Likewise.
15513 (store_regs_kernel_thread): Likewise.
15515 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15517 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15518 tagged type objects to their actual type.
15520 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15522 * ada-valprint.c (print_field_values): Add "language" parameter.
15523 Update calls to print_field_values and print_variant_part.
15524 Pass new parameter "language" in call to val_print instead
15525 of "current_language". Replace call to ada_val_print by call
15527 (print_variant_part): Add "language" parameter.
15528 (ada_val_print_struct_union): Update call to print_field_values.
15530 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15532 * ada-valprint.c (ui_memcpy): Delete.
15533 (ada_print_floating): Update documentation. Add empty line
15534 between between function documentation and implementation.
15535 Delete variable "buffer". Use ui_file_xstrdup in place of
15536 ui_file_put. Minor adjustments following this change.
15538 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15540 * ada-valprint.c (ada_val_print_string): New function,
15541 extracted from ada_val_print_array.
15542 (ada_val_print_array): Replace extracted code by call
15543 to ada_val_print_string followed by a return. Move
15544 "else" branch to the function's top block.
15546 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15548 * ada-valprint.c (ada_val_print_array): Move implementation
15549 down. Rename parameter "offset" and "val" into "offset_aligned"
15550 and "original_value" respectively. Add parameter "offset".
15552 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15554 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15555 re-organizing the code. Change the "???" message printed
15556 when target type is a TYPE_CODE_UNDEF into
15557 "<ref to undefined type>".
15559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15561 * ada-valprint.c (print_record): Delete, implementation inlined...
15562 (ada_val_print_struct_union): ... here. Remove call to
15563 ada_check_typedef in inlined implementation.
15565 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15567 * ada-valprint.c (ada_val_print_gnat_array): New function,
15568 extracted from ada_val_print_1;
15569 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15570 (ada_val_print_flt, ada_val_print_struct_union)
15571 (ada_val_print_ref): Likewise.
15572 (ada_val_print_1): Delete variables i and elttype.
15573 Replace extracted-out code by call to corresponding
15576 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15578 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15580 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15582 * ada-valprint.c (ada_val_print_1): Replace calls to
15583 ada_val_print_1 by calls to val_print.
15585 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15587 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15588 Update calls to self accordingly. Replace calls to c_val_print
15589 by calls to val_print.
15591 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15593 * ada-valprint.c (print_record): Delete declaration.
15594 (adjust_type_signedness, ada_val_print_1): Likewise.
15595 (ada_val_print): Move function implementation down.
15596 (print_variant_part, print_field_values, print_record):
15597 Move function implementation up.
15599 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15601 * python/py-type.c (typy_get_name): New function.
15602 (type_object_getset): Add entry for attribute "name".
15603 * NEWS: Add entry mentioning this new attribute.
15605 2014-01-07 Yao Qi <yao@codesourcery.com>
15607 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15610 2014-01-07 Yao Qi <yao@codesourcery.com>
15612 * gnu-nat.c (info_port_rights): Add qualifier const to
15615 2014-01-07 Yao Qi <yao@codesourcery.com>
15617 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15619 2014-01-07 Yao Qi <yao@codesourcery.com>
15621 * gnu-nat.c (make_inf) Update declaration.
15622 (make_inf): Make it static.
15623 (inf_set_traced): Likewise.
15624 (inf_port_to_thread, inf_task_died_status): Likewise.
15626 2014-01-07 Yao Qi <yao@codesourcery.com>
15628 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15630 2014-01-07 Yao Qi <yao@codesourcery.com>
15632 * gnu-nat.c (_initialize_gnu_nat): Declare.
15634 2014-01-07 Yao Qi <yao@codesourcery.com>
15636 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15638 (struct gdbarch_info) <byte_order>: Change type to
15640 <byte_order_for_code>: Likewise.
15641 * gdbarch.c, gdbarch.h: Regenerated.
15643 2014-01-06 Sasha Smundak <asmundak@google.com>
15645 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15647 2014-01-06 Tom Tromey <tromey@redhat.com>
15649 * doublest.c (convert_doublest_to_floatformat): Use const, not
15651 * somread.c (som_symtab_read): Likewise.
15653 2014-01-07 Hui Zhu <hui@codesourcery.com>
15655 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15656 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15657 (gdb_bfd_fopen): Ditto.
15658 (gdb_bfd_openr): Ditto.
15659 (gdb_bfd_openw): Ditto.
15660 (gdb_bfd_openr_iovec): Ditto.
15661 (gdb_bfd_fdopenr): Ditto.
15662 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15663 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15665 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15667 * symfile-mem.c (symbol_file_add_from_memory): Removed
15668 gdb_bfd_stash_filename.
15670 2014-01-03 Doug Evans <dje@google.com>
15672 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15675 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15677 Update year range in copyright notice of all files.
15679 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15681 * top.c (print_gdb_version): Set copyright year to 2014.
15683 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15685 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15687 For older changes see ChangeLog-2013.
15693 version-control: never