MIPS: Add support for microMIPS Linux signal trampolines
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * tramp-frame.h (tramp_frame): Add `validate' member.
4 * tramp-frame.c (tramp_frame_start): Validate trampoline before
5 scanning.
6 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
7 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
8 (mips_linux_o32_sigframe): Initialize `validate' member.
9 (mips_linux_o32_rt_sigframe): Likewise.
10 (mips_linux_n32_rt_sigframe): Likewise.
11 (mips_linux_n64_rt_sigframe): Likewise.
12 (micromips_linux_o32_sigframe): New variable.
13 (micromips_linux_o32_rt_sigframe): Likewise.
14 (micromips_linux_n32_rt_sigframe): Likewise.
15 (micromips_linux_n64_rt_sigframe): Likewise.
16 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
17 (mips_linux_n32n64_sigframe_init): Likewise.
18 (mips_linux_sigframe_validate): New function.
19 (micromips_linux_sigframe_validate): Likewise.
20 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
21
22 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
23
24 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
25 * sparc-sol2-tdep.c: Include "regset.h".
26 (sparc32_sol2_supply_core_gregset): New function.
27 (sparc32_sol2_collect_core_gregset): Likewise.
28 (sparc32_sol2_supply_core_fpregset): Likewise.
29 (sparc32_sol2_collect_core_fpregset): Likewise.
30 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
31 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
32 tdep->fpregset/sizeof_fpregset.
33 * sparc64-sol2-tdep.c: Include "regset.h".
34 (sparc64_sol2_supply_core_gregset): New function.
35 (sparc64_sol2_collect_core_gregset): Likewise.
36 (sparc64_sol2_supply_core_fpregset): Likewise.
37 (sparc64_sol2_collect_core_fpregset): Likewise.
38 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
39 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
40 tdep->fpregset/sizeof_fpregset.
41
42 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
43
44 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
45 type.
46
47 2014-12-02 Doug Evans <dje@google.com>
48
49 * symtab.c (symbol_init_cplus_specific): Delete.
50 (symbol_set_demangled_name): Remove special c++ support.
51 (symbol_get_demangled_name, symbol_set_language): Ditto.
52 * symtab.h (struct cplus_specific): Delete.
53 (struct general_symbol_info) <language_specific>: Remove
54 cplus_specific.
55
56 2014-12-02 Doug Evans <dje@google.com>
57
58 PR symtab/17602
59 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
60
61 2014-12-02 Doug Evans <dje@google.com>
62
63 PR symtab/17591
64 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
65 to strip parameters.
66
67 2014-12-02 Doug Evans <dje@google.com>
68
69 * dwarf2read.c (peek_die_abbrev): Improve error message text.
70
71 2014-12-02 Doug Evans <dje@google.com>
72
73 * valops.c (do_search_struct_field): Remove remnant of Chill support.
74 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
75
76 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
77
78 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
79
80 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
81
82 * NEWS: Mention new Python events.
83 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
84 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
85 (py-infevents.o): New rule.
86 * doc/observer.texi (inferior_call_pre, inferior_call_post)
87 (memory_changed, register_changed): New observers.
88 * infcall.c (call_function_by_hand): Notify observer before and
89 after inferior call.
90 * python/py-event.h (inferior_call_kind): New enum.
91 (emit_inferior_call_event): New prototype.
92 (emit_register_changed_event): New prototype.
93 (emit_memory_changed_event): New prototype.
94 * python/py-events.h (events_object): New registries
95 inferior_call, memory_changed and register_changed.
96 * python/py-evts.c (gdbpy_initialize_py_events): Add the
97 inferior_call, memory_changed and register_changed registries.
98 * python/py-infevents.c: New.
99 * python/py-inferior.c (python_on_inferior_call_pre)
100 (python_on_inferior_call_post, python_on_register_change)
101 (python_on_memory_change): New functions.
102 (gdbpy_initialize_inferior): Attach python handler to new
103 observers.
104 * python/py-infthread.c(gdbpy_create_ptid_object): New.
105 (thpy_get_ptid) Use gdbpy_create_ptid_object.
106 * python/python-internal.h:
107 (gdbpy_create_ptid_object)
108 (gdbpy_initialize_inferior_call_pre_event)
109 (gdbpy_initialize_inferior_call_post_event)
110 (gdbpy_initialize_register_changed_event)
111 (gdbpy_initialize_memory_changed_event): New prototypes.
112 * python/python.c (_initialize_python): Initialize new events.
113 * valops.c (value_assign): Notify register_changed observer.
114
115 2014-12-02 Doug Evans <dje@google.com>
116
117 * python/py-infthread.c: Whitespace fixes.
118
119 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
120
121 * features/Makefile (s390-te-linux64-expedite): Replace
122 non-existant r14 and r15 by r14l and r15l, respectively.
123 * regformats/s390-te-linux64.dat: Regenerate.
124
125 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
126
127 * objfiles.c (allocate_objfile): Remove duplicate comment.
128
129 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
130
131 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
132 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
133 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
134 (supply_gregset, supply_fpregset): Remove.
135 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
136 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
137 and sizeof_gregset.
138
139 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
140
141 Add add-auto-load-scripts-directory.
142 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
143 * auto-load.c (add_auto_load_dir): New function.
144 (_initialize_auto_load): Install it.
145
146 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
147
148 Pushed by Joel Brobecker <brobecker@adacore.com>.
149 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
150
151 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
152
153 * eval.c (evaluate_subexp): Check that the thread stack temporaries
154 are not already enabled before enabling them.
155
156 2014-11-29 Yao Qi <yao@codesourcery.com>
157
158 * arm-tdep.c (arm_analyze_prologue): Move local variables
159 'framereg' and 'framesize' to inner block. Move code to
160 inner block too.
161
162 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
163
164 * eval.c: Include gdbthread.h.
165 (evaluate_subexp): Enable thread stack temporaries before
166 evaluating a complete expression and clean them up after the
167 evaluation is complete.
168 * gdbthread.h: Include common/vec.h.
169 (value_ptr): New typedef.
170 (VEC (value_ptr)): New vector type.
171 (value_vec): New typedef.
172 (struct thread_info): Add new fields stack_temporaries_enabled
173 and stack_temporaries.
174 (enable_thread_stack_temporaries)
175 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
176 (get_last_thread_stack_temporary)
177 (value_in_thread_stack_temporaries): Declare.
178 * gdbtypes.c (class_or_union_p): New function.
179 * gdbtypes.h (class_or_union_p): Declare.
180 * infcall.c (call_function_by_hand): Store return values of class
181 type as temporaries on stack.
182 * thread.c (enable_thread_stack_temporaries): New function.
183 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
184 (get_last_thread_stack_temporary): Likewise.
185 (value_in_thread_stack_temporaries): Likewise.
186 * value.c (value_force_lval): New function.
187 * value.h (value_force_lval): Declare.
188
189 2014-11-28 Pierre Muller <muller@sourceware.org>
190
191 Pushed by Joel Brobecker <brobecker@adacore.com>.
192 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
193 registers.
194
195 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
196
197 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
198 * config/sparc/linux.mh (NATDEPFILES): Likewise.
199 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
200 * m68klinux-nat.c (fetch_core_registers): Remove.
201 (linux_elf_core_fns): Remove.
202 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
203
204 2014-11-28 Joel Brobecker <brobecker@adacore.com>
205
206 * utils.c (gdb_realpath): Rework comment about handling on
207 Windows.
208
209 2014-11-28 Yao Qi <yao@codesourcery.com>
210
211 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
212 rename.
213 * gnulib/aclocal.m4: Re-generated.
214 * gnulib/config.in: Re-generated.
215 * gnulib/configure: Re-generated.
216 * gnulib/import/Makefile.am: Re-generated.
217 * gnulib/import/Makefile.in: Re-generated.
218 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
219 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
220 * import/basename-lgpl.c: New file.
221 * import/dirname-lgpl.c: New file.
222 * import/dirname.h: New file.
223 * import/m4/dirname.m4: New file.
224 * import/m4/malloc.m4: New file.
225 * import/m4/rename.m4: New file.
226 * import/m4/rmdir.m4: New file.
227 * import/m4/stdio_h.m4: New file.
228 * import/malloc.c: New file.
229 * import/rename.c: New file.
230 * import/rmdir.c: New file.
231 * import/same-inode.h: New file.
232 * import/stdio.c: New file.
233 * import/stdio.in.h: New file.
234 * import/stripslash.c: New file.
235
236 2014-11-28 Yao Qi <yao@codesourcery.com>
237
238 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
239 and realpath.
240 * config.in: Re-generated.
241 * configure: Re-generated.
242 * utils.c (gdb_realpath): Remove code calling realpath,
243 canonicalize_file_name and pathconf.
244 [!_WIN32]: Call canonicalize_file_name.
245
246 2014-11-28 Yao Qi <yao@codesourcery.com>
247
248 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
249 canonicalize-lgpl.
250 * aclocal.m4: Re-generated.
251 * config.in: Re-generated.
252 * configure: Re-generated.
253 * import/Makefile.am: Re-generated.
254 * import/Makefile.in: Re-generated.
255 * import/m4/gnulib-cache.m4: Re-generated.
256 * import/m4/gnulib-comp.m4: Re-generated.
257 * import/canonicalize-lgpl.c: New file.
258 * import/extra/snippet/_Noreturn.h: New file.
259 * import/m4/canonicalize.m4: New file.
260 * import/m4/double-slash-root.m4: New file.
261 * import/m4/eealloc.m4: New file.
262 * import/m4/malloca.m4: New file.
263 * import/m4/nocrash.m4: New file.
264 * import/m4/stdlib_h.m4: New file.
265 * import/malloca.c: New file.
266 * import/malloca.h: New file.
267 * import/malloca.valgrind: New file.
268
269 2014-11-28 Yao Qi <yao@codesourcery.com>
270
271 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
272 * config.in, configure: Regenerate.
273 * symfile.c (find_separate_debug_file_by_debuglink): Remove
274 code checking HAVE_LSTAT is defined.
275
276 2014-11-28 Yao Qi <yao@codesourcery.com>
277
278 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
279 lstat.
280 * gnulib/aclocal.m4: Re-generated.
281 * gnulib/config.in: Re-generated.
282 * gnulib/configure: Re-generated.
283 * gnulib/import/Makefile.am: Re-generated.
284 * gnulib/import/Makefile.in: Re-generated.
285 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
286 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
287 * gnulib/import/lstat.c: New file.
288 * gnulib/import/m4/lstat.m4: New file.
289
290 2014-11-28 Yao Qi <yao@codesourcery.com>
291
292 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
293 * config.in, configure: Re-generate.
294 * inf-child.c (inf_child_fileio_readlink): Don't check
295 HAVE_READLINK is defined.
296
297 2014-11-28 Yao Qi <yao@codesourcery.com>
298
299 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
300 * gnulib/aclocal.m4: Re-generated.
301 * gnulib/config.in: Likewise.
302 * gnulib/configure: Likewise.
303 * gnulib/import/Makefile.am: Likewise.
304 * gnulib/import/Makefile.in: Likewise.
305 * gnulib/import/m4/gnulib-cache.m4: Likewise.
306 * gnulib/import/m4/gnulib-comp.m4: Likewise.
307 * gnulib/import/dosname.h: New file
308 * gnulib/import/m4/largefile.m4: New file.
309 * gnulib/import/m4/readlink.m4: New file.
310 * gnulib/import/m4/stat.m4: New file.
311 * gnulib/import/readlink.c: New file.
312 * gnulib/import/stat.c: New file.
313
314 2014-11-26 Mark Wielaard <mjw@redhat.com>
315
316 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
317 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
318
319 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
320
321 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
322 that there can be only one stack adjustment in the prologue
323 with tests to detect specific disallowed stack adjustments.
324
325 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
326
327 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
328 adjustments.
329
330 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
331
332 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
333 the instruction as well as reading it from memory.
334 (nios2_match_add): New.
335 (nios2_match_sub): New.
336 (nios2_match_addi): New.
337 (nios2_match_orhi): New.
338 (nios2_match_stw): New.
339 (nios2_match_ldw): New.
340 (nios2_match_rdctl): New.
341 (enum branch_condition): New.
342 (nios2_match_branch): New.
343 (nios2_match_jmpi): New.
344 (nios2_match_calli): New.
345 (nios2_match_jmpr): New.
346 (nios2_match_callr): New.
347 (nios2_match_break): New.
348 (nios2_match_trap): New.
349 (nios2_in_epilogue_p): Rewrite to use new functions.
350 (nios2_analyze_prologue): Likewise.
351 (nios2_skip_prologue): Delete unused local limit_pc.
352 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
353 (nios2_get_next_pc): Rewrite to use new functions.
354
355 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
356
357 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
358
359 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
360
361 Pushed by Joel Brobecker <brobecker@adacore.com>
362 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
363 elements pi_len by the size of the elements before calling
364 vm_deallocate.
365 (inf_validate_task_sc): Likewise, and properly deallocate the
366 noise array.
367
368 2014-11-23 Doug Evans <xdje42@gmail.com>
369
370 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
371 number and name if present. All callers updated.
372 (dump_fn_fieldlists): Fix indentation of args.
373
374 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
375
376 * MAINTAINERS (Write After Approval): Add myself.
377
378 2014-11-23 Joel Brobecker <brobecker@adacore.com>
379
380 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
381 to a bp_call_dummy breakpoint type.
382
383 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
384
385 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
386 registering the signal handler.
387
388 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
389
390 * event-top.h (call_stdin_event_handler_again_p): Declare.
391 * event-top.c (call_stdin_event_handler_again_p): Define.
392 (stdin_event_handler): Use it.
393 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
394 handler again if there is pending input following a
395 start sequence.
396
397 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
398
399 Pushed by Joel Brobecker <brobecker@adacore.com>
400 * linux-fork.c (checkpoint_command): Print index of new
401 checkpoint in response message.
402
403 2014-11-23 Yao Qi <yao@codesourcery.com>
404
405 * valprint.c (read_string): Move local variables 'found_nul',
406 'chunksize' and 'limit' to inner scope. Update comments.
407
408 2014-11-22 Doug Evans <xdje42@gmail.com>
409
410 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
411 function comment.
412 (search_symbols): Fix comments and whitespace.
413
414 2014-11-22 Doug Evans <xdje42@gmail.com>
415
416 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
417
418 2014-11-21 Doug Evans <dje@google.com>
419
420 * psymtab.c (psymtab_search_name): Fix whitespace.
421
422 2014-11-21 Yao Qi <yao@codesourcery.com>
423
424 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
425 errno.
426 * gnulib/import/Makefile.am: Re-generated.
427 * gnulib/import/Makefile.in: Likewise.
428 * gnulib/import/m4/gnulib-cache.m4: Likewise.
429
430 2014-11-21 Yao Qi <yao@codesourcery.com>
431
432 * gdb_wchar.h: Include wchar.h and wctype.h.
433 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
434 include wchar.h and wctype.h.
435 Don't check HAVE_WCHAR_H.
436
437 2014-11-21 Yao Qi <yao@codesourcery.com>
438
439 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
440 and wctype-h.
441 * gnulib/import/Makefile.am: Re-generated.
442 * gnulib/import/Makefile.in: Likewise.
443 * gnulib/import/m4/gnulib-cache.m4: Likewise.
444
445 2014-11-21 Yao Qi <yao@codesourcery.com>
446
447 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
448 memchr.
449 * gnulib/import/Makefile.am: Re-generated.
450 * gnulib/import/Makefile.in: Likewise.
451 * gnulib/import/m4/gnulib-cache.m4: Likewise.
452
453 2014-11-21 Yao Qi <yao@codesourcery.com>
454
455 * common/common-defs.h: Include alloca.h
456 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
457 * configure: Re-generated.
458 * defs.h: Remove code handling alloca.
459 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
460 or not.
461
462 2014-11-21 Yao Qi <yao@codesourcery.com>
463
464 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
465 alloca.
466 * gnulib/import/Makefile.am: Re-generated.
467 * gnulib/import/Makefile.in: Likewise..
468 * gnulib/import/m4/gnulib-cache.m4: Likewise.
469
470 2014-11-21 Yao Qi <yao@codesourcery.com>
471
472 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
473 alphabetical order.
474
475 2014-11-21 Joel Brobecker <brobecker@adacore.com>
476
477 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
478 flag_unsigned if HIGH_BOUND is constant and negative.
479
480 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
481
482 PR breakpoints/10737
483 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
484 modifier from "struct gdbarch" when compiling without Expat (XML)
485 support.
486 (get_syscall_by_number): Likewise.
487 (get_syscall_by_name): Likewise.
488 (get_syscall_names): Likewise.
489
490 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
491
492 PR breakpoints/10737
493 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
494 set_xml_syscall_file_name to provide gdbarch.
495 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
496 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
497 * breakpoint.c (print_it_catch_syscall): Adjust call to
498 get_syscall_by_number to provide gdbarch.
499 (print_one_catch_syscall): Likewise.
500 (print_mention_catch_syscall): Likewise.
501 (print_recreate_catch_syscall): Likewise.
502 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
503 and get_syscall_by_name to provide gdbarch.
504 (catch_syscall_completer): Adjust call to get_syscall_names to
505 provide gdbarch.
506 * gdbarch.c: Regenerate.
507 * gdbarch.h: Likewise.
508 * gdbarch.sh: Forward declare "struct syscalls_info".
509 (xml_syscall_file): New variable.
510 (syscalls_info): Likewise.
511 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
512 set_xml_syscall_file_name to provide gdbarch.
513 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
514 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
515 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
516 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
517 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
518 * xml-syscall.c: Include gdbarch.h.
519 (set_xml_syscall_file_name): Accept gdbarch parameter.
520 (get_syscall_by_number): Likewise.
521 (get_syscall_by_name): Likewise.
522 (get_syscall_names): Likewise.
523 (my_gdb_datadir): Delete global variable.
524 (struct syscalls_info) <my_gdb_datadir>: New variable.
525 (struct syscalls_info) <sysinfo>: Rename variable to
526 "syscalls_info".
527 (sysinfo): Delete global variable.
528 (have_initialized_sysinfo): Likewise.
529 (xml_syscall_file): Likewise.
530 (sysinfo_free_syscalls_desc): Rename to...
531 (syscalls_info_free_syscalls_desc): ... this.
532 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
533 code to the new layout of "struct syscalls_info".
534 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
535 "syscalls_info".
536 (syscall_create_syscall_desc): Likewise.
537 (syscall_start_syscall): Likewise.
538 (syscall_parse_xml): Likewise.
539 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
540 (init_sysinfo): Rename to...
541 (init_syscalls_info): ...this. Add gdbarch as a parameter.
542 Adjust function to deal with gdbarch.
543 (xml_get_syscall_number): Delete parameter sysinfo. Accept
544 gdbarch as a parameter. Adjust code.
545 (xml_get_syscall_name): Likewise.
546 (xml_list_of_syscalls): Likewise.
547 (set_xml_syscall_file_name): Accept gdbarch as parameter.
548 (get_syscall_by_number): Likewise.
549 (get_syscall_by_name): Likewise.
550 (get_syscall_names): Likewise.
551 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
552 (get_syscall_by_number): Likewise.
553 (get_syscall_by_name): Likewise.
554 (get_syscall_names): Likewise.
555
556 2014-11-20 Doug Evans <xdje42@gmail.com>
557
558 Split struct symtab into two: struct symtab and compunit_symtab.
559 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
560 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
561 to "struct compunit_symtab *". All callers updated.
562 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
563 "struct symtab *" argument to "struct compunit_symtab *".
564 All callers updated.
565 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
566 result to "struct compunit_symtab *". All callers updated.
567 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
568 Change result to "struct compunit_symtab *". All callers updated.
569 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
570 hange type to "struct compunit_symtab *". All uses updated.
571 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
572 Change type to "struct compunit_symtab *". All uses updated.
573 * buildsym.c (struct buildsym_compunit): New struct.
574 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
575 (buildsym_compunit): New static global.
576 (finish_block_internal): Update to fetch objfile from
577 buildsym_compunit.
578 (make_blockvector): Delete objfile argument.
579 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
580 debugformat, producer.
581 (start_buildsym_compunit): New function.
582 (free_buildsym_compunit): Renamed from free_subfiles_list.
583 All callers updated.
584 (patch_subfile_names): Rewrite to use buildsym_compunit.
585 (get_compunit_symtab): New function.
586 (get_macro_table): Delete argument comp_dir. All callers updated.
587 (start_symtab): Change result to "struct compunit_symtab *".
588 All callers updated. Create the subfile of the main source file.
589 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
590 (reset_symtab_globals): Update.
591 (end_symtab_get_static_block): Update to use buildsym_compunit.
592 (end_symtab_without_blockvector): Rewrite.
593 (end_symtab_with_blockvector): Change result to
594 "struct compunit_symtab *". All callers updated.
595 Update to use buildsym_compunit. Don't set symtab->dirname,
596 instead set it in the compunit.
597 Explicitly make sure main symtab is first in its list.
598 Set debugformat, producer, blockvector, block_line_section, and
599 macrotable in the compunit.
600 (end_symtab_from_static_block): Change result to
601 "struct compunit_symtab *". All callers updated.
602 (end_symtab, end_expandable_symtab): Ditto.
603 (set_missing_symtab): Change symtab argument to
604 "struct compunit_symtab *". All callers updated.
605 (augment_type_symtab): Ditto.
606 (record_debugformat): Update to use buildsym_compunit.
607 (record_producer): Update to use buildsym_compunit.
608 * buildsym.h (struct subfile) <dirname>: Delete.
609 <producer, debugformat>: Delete.
610 <buildsym_compunit>: New member.
611 (get_compunit_symtab): Declare.
612 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
613 from primary_symtab. Change type to "struct compunit_symtab *".
614 All uses updated.
615 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
616 All callers updated.
617 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
618 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
619 symtab. Change type to "struct compunit_symtab *". All uses updated.
620 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
621 All callers updated.
622 (dw2_find_last_source_symtab): Ditto.
623 (dw2_lookup_symbol): Ditto.
624 (recursively_find_pc_sect_compunit_symtab): Renamed from
625 recursively_find_pc_sect_symtab. Change result to
626 "struct compunit_symtab *". All callers updated.
627 (dw2_find_pc_sect_compunit_symtab): Renamed from
628 dw2_find_pc_sect_symtab. Change result to
629 "struct compunit_symtab *". All callers updated.
630 (get_compunit_symtab): Renamed from get_symtab. Change result to
631 "struct compunit_symtab *". All callers updated.
632 (recursively_compute_inclusions): Change type of immediate_parent
633 argument to "struct compunit_symtab *". All callers updated.
634 (compute_compunit_symtab_includes): Renamed from
635 compute_symtab_includes. All callers updated. Rewrite to compute
636 includes of compunit_symtabs and not symtabs.
637 (process_full_comp_unit): Update to work with struct compunit_symtab.
638 (process_full_type_unit): Ditto.
639 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
640 (dwarf_decode_lines): Remove special case handling of main subfile.
641 (macro_start_file): Delete argument comp_dir. All callers updated.
642 (dwarf_decode_macro_bytes): Ditto.
643 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
644 use struct compunit_symtab.
645 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
646 * jit.c (finalize_symtab): Build compunit_symtab.
647 * jv-lang.c (get_java_class_symtab): Change result to
648 "struct compunit_symtab *". All callers updated.
649 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
650 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
651 comp_dir. Change type to "struct compunit_symtab *".
652 All uses updated.
653 (new_macro_table): Change comp_dir argument to cust,
654 "struct compunit_symtab *". All callers updated.
655 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
656 nr_primary_symtabs. All uses updated.
657 (count_symtabs_and_blocks): Update to handle compunits.
658 (report_command_stats): Update output, "primary symtabs" renamed to
659 "compunits".
660 * mdebugread.c (new_symtab): Change result to
661 "struct compunit_symtab *". All callers updated.
662 (parse_procedure): Change type of search_symtab argument to
663 "struct compunit_symtab *". All callers updated.
664 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
665 separate loop.
666 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
667 symtabs. Change type to "struct compunit_symtab *". All uses updated.
668 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
669 All uses updated.
670 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
671 All uses updated.
672 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
673 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
674 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
675 symtab. Change type to "struct compunit_symtab *". All uses updated.
676 * psymtab.c (psymtab_to_symtab): Change result type to
677 "struct compunit_symtab *". All callers updated.
678 (find_pc_sect_compunit_symtab_from_partial): Renamed from
679 find_pc_sect_symtab_from_partial. Change result type to
680 "struct compunit_symtab *". All callers updated.
681 (lookup_symbol_aux_psymtabs): Change result type to
682 "struct compunit_symtab *". All callers updated.
683 (find_last_source_symtab_from_partial): Ditto.
684 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
685 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
686 and macro_table from compunit.
687 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
688 type to "struct compunit_symtab *". All callers updated.
689 (debug_qf_lookup_symbol): Ditto.
690 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
691 debug_qf_find_pc_sect_symtab, change result type to
692 "struct compunit_symtab *". All callers updated.
693 * symfile.c (allocate_symtab): Delete objfile argument.
694 New argument cust.
695 (allocate_compunit_symtab): New function.
696 (add_compunit_symtab_to_objfile): New function.
697 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
698 Change result type to "struct compunit_symtab *". All uses updated.
699 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
700 Change result type to "struct compunit_symtab *". All uses updated.
701 * symmisc.c (print_objfile_statistics): Compute blockvector count in
702 separate loop.
703 (dump_symtab_1): Update test for primary source symtab.
704 (maintenance_info_symtabs): Update to handle compunit symtabs.
705 (maintenance_check_symtabs): Ditto.
706 * symtab.c (set_primary_symtab): Delete.
707 (compunit_primary_filetab): New function.
708 (compunit_language): New function.
709 (iterate_over_some_symtabs): Change type of arguments "first",
710 "after_last" to "struct compunit_symtab *". All callers updated.
711 Update to loop over symtabs in each compunit.
712 (error_in_psymtab_expansion): Rename symtab argument to cust,
713 and change type to "struct compunit_symtab *". All callers updated.
714 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
715 Change result type to "struct compunit_symtab *". All callers updated.
716 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
717 Change result type to "struct compunit_symtab *". All callers updated.
718 (find_pc_sect_line): Only loop over symtabs within selected compunit
719 instead of all symtabs in the objfile.
720 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
721 <compunit_symtab> New member.
722 <block_line_section>: Moved to compunit_symtab.
723 <locations_valid>: Ditto.
724 <epilogue_unwind_valid>: Ditto.
725 <macro_table>: Ditto.
726 <dirname>: Ditto.
727 <debugformat>: Ditto.
728 <producer>: Ditto.
729 <objfile>: Ditto.
730 <call_site_htab>: Ditto.
731 <includes>: Ditto.
732 <user>: Ditto.
733 <primary>: Delete
734 (SYMTAB_COMPUNIT): New macro.
735 (SYMTAB_BLOCKVECTOR): Update definition.
736 (SYMTAB_OBJFILE): Update definition.
737 (SYMTAB_DIRNAME): Update definition.
738 (struct compunit_symtab): New type. Common members among all source
739 symtabs within a compilation unit moved here. All uses updated.
740 (COMPUNIT_OBJFILE): New macro.
741 (COMPUNIT_FILETABS): New macro.
742 (COMPUNIT_DEBUGFORMAT): New macro.
743 (COMPUNIT_PRODUCER): New macro.
744 (COMPUNIT_DIRNAME): New macro.
745 (COMPUNIT_BLOCKVECTOR): New macro.
746 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
747 (COMPUNIT_LOCATIONS_VALID): New macro.
748 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
749 (COMPUNIT_CALL_SITE_HTAB): New macro.
750 (COMPUNIT_MACRO_TABLE): New macro.
751 (ALL_COMPUNIT_FILETABS): New macro.
752 (compunit_symtab_ptr): New typedef.
753 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
754
755 2014-11-20 Joel Brobecker <brobecker@adacore.com>
756
757 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
758 if the TYPE_CODE of range_type's base type does not match
759 the TYPE_CODE of encoding_type's base type.
760
761 2014-11-19 Joel Brobecker <brobecker@adacore.com>
762
763 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
764 it starts with '<'.
765
766 2014-11-19 Joel Brobecker <brobecker@adacore.com>
767
768 * ada-lang.c (ada_is_redundant_range_encoding): New function.
769 (ada_is_redundant_index_type_desc): New function.
770 (to_fixed_array_type): Ignore parallel XA type if redundant.
771
772 2014-11-19 Joel Brobecker <brobecker@adacore.com>
773
774 * ada-lang.c (constrained_packed_array_type): Set the length
775 of the return array as if both bounds where zero if that
776 returned array's index type is dynamic.
777
778 2014-11-19 Yao Qi <yao@codesourcery.com>
779
780 * config/i386/go32.mh (CC): Remove.
781
782 2014-11-18 Doug Evans <xdje42@gmail.com>
783
784 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
785 updated.
786
787 2014-11-18 Doug Evans <xdje42@gmail.com>
788
789 * buildsym.c (buildsym_objfile): New static global.
790 (buildsym_comp_dir): New static global.
791 (finish_block_internal): Delete arg objfile. All callers updated.
792 (finish_block): Delete arg objfile. All callers updated.
793 (start_subfile): Delete arg dirname. All callers updated.
794 (patch_subfile_names): Update buildsym_comp_dir.
795 (get_macro_table): Delete arg objfile. All callers updated.
796 (start_symtab): New arg objfile. All callers updated.
797 Rename arg dirname to comp_dir.
798 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
799 (end_symtab_get_static_block): Delete arg objfile. All callers
800 updated.
801 (end_symtab_without_blockvector): Ditto.
802 (end_symtab_with_blockvector): Ditto.
803 (end_symtab_from_static_block): Ditto.
804 (end_symtab): Ditto.
805 (end_expandable_symtab): Ditto.
806 (augment_type_symtab): Ditto.
807 * coffread.c (coff_start_symtab): New arg objfile. All callers
808 updated.
809
810 2014-11-18 Doug Evans <xdje42@gmail.com>
811
812 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
813 updated.
814
815 2014-11-18 Doug Evans <xdje42@gmail.com>
816
817 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
818 symtab.dirname updated to use it.
819
820 2014-11-18 Doug Evans <xdje42@gmail.com>
821
822 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
823 symtab.objfile updated to use it.
824
825 2014-11-18 Doug Evans <xdje42@gmail.com>
826
827 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
828
829 2014-11-18 Doug Evans <xdje42@gmail.com>
830
831 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
832 SYMBOL_OBJFILE.
833 * findvar.c (default_read_var_value): Ditto.
834 * jv-lang.c (add_class_symtab_symbol): Ditto.
835 * parse.c (operator_check_standard): Ditto.
836 * printcmd.c (address_info): Ditto.
837 * symtab.c (fixup_symbol_section): Ditto.
838 (skip_prologue_sal): Ditto.
839 * tracepoint.c (scope_info): Ditto.
840 * valops.c (find_function_in_inferior): Ditto.
841 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
842 * python/py-symbol.c (set_symbol): Ditto.
843
844 2014-11-18 Doug Evans <xdje42@gmail.com>
845
846 * buildsym.c (main_subfile): New static global.
847 (free_subfiles_list): New function.
848 (start_symtab): Set main_subfile.
849 (restart_symtab): Replace init of subfiles, current_subfile with
850 call to free_subfiles_list.
851 (watch_main_source_file_lossage): Use main_subfile.
852 (reset_symtab_globals): Replace init of current_subfile with call
853 to free_subfiles_list.
854 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
855 functions, split out from ...
856 (end_symtab_from_static_block): ... here. Rewrite to call them.
857
858 2014-11-18 Doug Evans <xdje42@gmail.com>
859
860 The result of symtab expansion is always a primary symtab.
861 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
862 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
863 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
864 (psymtab_to_symtab): Add comment and assert.
865 (map_matching_symbols_psymtab): Remove unnecessary test for
866 non-primary symtab.
867
868 2014-11-15 Doug Evans <xdje42@gmail.com>
869
870 PR symtab/17559
871 * symtab.c (find_pc_line_symtab): New function.
872 * symtab.h (find_pc_line_symtab): Declare.
873 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
874 find_pc_symtab.
875 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
876 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
877 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
878 * tui/tui-win.c (make_visible_with_new_height): Ditto.
879 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
880 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
881
882 2014-11-15 Doug Evans <xdje42@gmail.com>
883
884 * symtab.c (expand_symtab_containing_pc): Renamed from
885 find_pc_sect_symtab_via_partial. All callers updated.
886
887 2014-11-15 Yao Qi <yao@codesourcery.com>
888
889 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
890
891 2014-11-14 Joel Brobecker <brobecker@adacore.com>
892
893 * common/common-defs.h: Move <stdarg.h> #include ahead of
894 <stdio.h> #include.
895
896 2014-11-14 Pedro Alves <palves@redhat.com>
897
898 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
899 [!PHONY_ICONV] (gdb_iconv): New function.
900 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
901
902 2014-11-13 Doug Evans <dje@google.com>
903
904 PR symtab/17591
905 * dwarf2read.c (find_slot_in_mapped_hash): Handle
906 "(anonymous namespace)".
907
908 2014-11-13 Doug Evans <dje@google.com>
909
910 * dwarf2read.c (update_enumeration_type_from_children): Avoid
911 infinite loop.
912
913 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
914
915 * NEWS (maint set target-async): Fix typo.
916
917 2014-11-12 Pedro Alves <palves@redhat.com>
918
919 * infrun.c (enum infwait_states, infwait_state): Delete.
920
921 2014-11-12 Pedro Alves <palves@redhat.com>
922
923 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
924 Rewrite stepping over a permanent breakpoint.
925 (thread_still_needs_step_over, proceed): Don't set
926 stepping_over_breakpoint for permanent breakpoints.
927 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
928 single-step breakpoints out of the target on hardware step
929 targets.
930 (process_event_stop_test): If stepping a permanent breakpoint
931 doesn't hit the step-resume breakpoint, delete the step-resume
932 breakpoint.
933 (switch_back_to_stepped_thread): Also check if the stepped thread
934 has advanced already on hardware step targets.
935 (currently_stepping): Return true if the thread stepped a
936 breakpoint.
937
938 2014-11-12 Pedro Alves <palves@redhat.com>
939
940 Mark locations as permanent, not the whole breakpoint.
941 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
942 (mark_breakpoints_out): Don't mark permanent breakpoints as
943 uninserted.
944 (breakpoint_init_inferior): Use mark_breakpoints_out.
945 (breakpoint_here_p): Adjust.
946 (bpstat_stop_status, describe_other_breakpoints): Remove handling
947 of permanent breakpoints.
948 (make_breakpoint_permanent): Mark each location as permanent,
949 instead of marking the breakpoint.
950 (add_location_to_breakpoint): If the location is permanent, mark
951 it as such, and as inserted.
952 (init_breakpoint_sal): Don't make the breakpoint permanent here.
953 (bp_location_compare, update_global_location_list): Adjust.
954 (update_breakpoint_locations): Don't make the breakpoint permanent
955 here.
956 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
957 breakpoints.
958 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
959 (struct bp_location) <permanent>: New field.
960 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
961 reference to bp_permanent.
962
963 2014-11-12 Pedro Alves <palves@redhat.com>
964
965 * arch-utils.c (default_skip_permanent_breakpoint): New function.
966 * arch-utils.h (default_skip_permanent_breakpoint): New
967 declaration.
968 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
969 Install default_skip_permanent_breakpoint as default method.
970 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
971 (i386_gdbarch_init): Don't install it.
972 * infrun.c (resume): Assume there's always a
973 gdbarch_skip_permanent_breakpoint implementation.
974 * gdbarch.h, gdbarch.c: Regenerate.
975
976 2014-11-11 Daniel Colascione <dancol@dancol.org>
977
978 Warn about cross-PID-namespace debugging.
979 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
980 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
981 * linux-thread-db.c (check_pid_namespace_match): New function.
982 (thread_db_inferior_created): Call it.
983
984 2014-11-10 Doug Evans <xdje42@gmail.com>
985
986 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
987 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
988
989 2014-11-10 Doug Evans <xdje42@gmail.com>
990
991 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
992
993 2014-11-10 Doug Evans <xdje42@gmail.com>
994
995 PR symtab/17564
996 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
997 (lookup_static_symbol): Move definition to new location and rewrite.
998 (lookup_symbol_in_objfile): New function.
999 (lookup_symbol_global_iterator_cb): Call it.
1000
1001 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1002
1003 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1004
1005 2014-11-07 Pedro Alves <palves@redhat.com>
1006
1007 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1008 check if we did a "nexti" inside a prologue.
1009 * symtab.c (in_prologue): Delete function.
1010 * symtab.h (in_prologue): Delete declaration.
1011
1012 2014-11-06 Doug Evans <xdje42@gmail.com>
1013
1014 * symtab.h (lookup_global_symbol): Improve function comment.
1015
1016 2014-11-06 Doug Evans <xdje42@gmail.com>
1017
1018 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1019 All callers updated.
1020 * symtab.h (lookup_global_symbol): Update decl.
1021 (lookup_static_symbol): Move decl to better location.
1022
1023 2014-11-06 Doug Evans <xdje42@gmail.com>
1024
1025 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1026
1027 2014-11-06 Doug Evans <xdje42@gmail.com>
1028
1029 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1030 All callers updated.
1031 (lookup_symbol_in_all_objfiles): Renamed from
1032 lookup_symbol_aux_symtabs. All callers updated.
1033 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1034 All callers updated.
1035 (lookup_symbol_in_objfile_symtabs): Renamed from
1036 lookup_symbol_aux_objfile. All callers updated.
1037
1038 2014-11-06 Doug Evans <xdje42@gmail.com>
1039
1040 * symtab.c (lookup_symbol_in_block): Renamed from
1041 lookup_symbol_aux_block. All callers updated.
1042
1043 2014-11-06 Doug Evans <xdje42@gmail.com>
1044
1045 * symtab.c (lookup_static_symbol): Renamed from
1046 lookup_static_symbol_aux. All callers updated.
1047 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1048 All callers updated.
1049
1050 2014-11-06 Doug Evans <xdje42@gmail.com>
1051
1052 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1053 * block.c (block_lookup_symbol): Use it.
1054 * cp-support.c (make_symbol_overload_list_block): Use it.
1055 * symtab.c (iterate_over_symbols): Use it.
1056
1057 2014-11-06 Doug Evans <xdje42@gmail.com>
1058
1059 * symtab.c (lookup_block_symbol): Moved to ...
1060 * block.c (block_lookup_symbol): ... here and renamed.
1061 All callers updated.
1062 * block.h (block_lookup_symbol): Declare.
1063 * symtab.h (lookup_block_symbol): Delete.
1064
1065 2014-11-06 Doug Evans <xdje42@gmail.com>
1066
1067 * ada-lang.c (ada_make_symbol_completion_list): Use
1068 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1069 * symtab.c (lookup_objfile_from_block): Ditto.
1070
1071 2014-11-06 Doug Evans <xdje42@gmail.com>
1072
1073 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1074 TYPE_CODE_STRUCT.
1075
1076 2014-11-06 Doug Evans <xdje42@gmail.com>
1077
1078 * objfiles.c (get_objfile_arch): Constify.
1079 * objfiles.h (get_objfile_arch): Update prototype.
1080 * solib.c (solib_global_lookup): Fetch arch from objfile,
1081 not target_gdbarch.
1082
1083 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1084
1085 * nios2-tdep.c (wild_insn): Delete.
1086 (profiler_insn, irqentry_insn): Delete.
1087 (nios2_match_sequence): Delete.
1088 (nios2_analyze_prologue): Update comments. Remove matching
1089 of obsolete profiler_insn and irqentry_insn sequences.
1090
1091 2014-11-05 Alan Modra <amodra@gmail.com>
1092
1093 * charset.c (convert_between_encodings): Shrink obstack using
1094 obstack_blank_fast.
1095 * minsyms.c (install_minimal_symbols): Likewise.
1096 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1097 to char* before doing pointer arithmetic.
1098
1099 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1100
1101 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1102
1103 2014-11-04 Pedro Alves <palves@redhat.com>
1104
1105 * breakpoint.c (breakpoint_thread_match): Delete function.
1106 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1107
1108 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1109
1110 PR c++/17494
1111 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1112 the method args also under EVAL_SKIP when evaluating method
1113 calls under EVAL_SKIP.
1114
1115 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1116
1117 * dwarf2loc.c (read_pieced_value): Do big endian
1118 processing only if gdb_regnum is not -1.
1119 (write_pieced_value): Ditto.
1120
1121 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1122
1123 * arm-linux-tdep.c (arm_linux_init_abi): Use
1124 info.byte_order_for_code to choose endianity of breakpoint
1125 instructions snippets.
1126
1127 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1128
1129 * arm-tdep.c (extract_arm_insn): Use
1130 gdbarch_byte_order_for_code to read arm instruction.
1131
1132 2014-11-02 Doug Evans <xdje42@gmail.com>
1133
1134 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1135
1136 2014-11-02 Doug Evans <xdje42@gmail.com>
1137
1138 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1139 main_subfile before returning.
1140
1141 2014-10-31 Doug Evans <xdje42@gmail.com>
1142
1143 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1144 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1145
1146 2014-10-31 Doug Evans <xdje42@gmail.com>
1147
1148 * valops.c (value_cast_pointers): Fix whitespace.
1149 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1150 Ditto.
1151
1152 2014-10-30 Doug Evans <dje@google.com>
1153
1154 * NEWS: Mention ability add attributes to gdb.Objfile and
1155 gdb.Progspace objects.
1156 * python/py-objfile.c (objfile_object): New member dict.
1157 (objfpy_dealloc): Py_XDECREF dict.
1158 (objfpy_initialize): Initialize dict.
1159 (objfile_getset): Add __dict__.
1160 (objfile_object_type): Set tp_dictoffset member.
1161 * python/py-progspace.c (progspace_object): New member dict.
1162 (pspy_dealloc): Py_XDECREF dict.
1163 (pspy_initialize): Initialize dict.
1164 (pspace_getset): Add __dict__.
1165 (pspace_object_type): Set tp_dictoffset member.
1166
1167 2014-10-30 Yao Qi <yao@codesourcery.com>
1168
1169 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1170 replace '\\' with '\\\\'.
1171
1172 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1173
1174 GDB 7.8.1 released.
1175
1176 2014-10-29 Pedro Alves <palves@redhat.com>
1177
1178 PR gdb/17408
1179 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1180 instead of assuming a thread with a stepping range is always
1181 stepping.
1182
1183 2014-10-29 Pedro Alves <palves@redhat.com>
1184
1185 PR python/17372
1186 * event-top.c (change_line_handler): Call
1187 gdb_rl_callback_handler_remove instead of
1188 rl_callback_handler_remove.
1189 (callback_handler_installed): New global.
1190 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1191 (gdb_rl_callback_handler_reinstall): New functions.
1192 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1193 gdb_rl_callback_handler_install instead of
1194 rl_callback_handler_remove and rl_callback_handler_install.
1195 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1196 instead of rl_callback_handler_remove.
1197 * event-top.h (gdb_rl_callback_handler_remove)
1198 (gdb_rl_callback_handler_install)
1199 (gdb_rl_callback_handler_reinstall): New declarations.
1200 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1201 cleanup function.
1202 (fetch_inferior_event): Install it.
1203 * top.c (gdb_readline_wrapper_line) Call
1204 gdb_rl_callback_handler_remove instead of
1205 rl_callback_handler_remove.
1206 (gdb_readline_wrapper_cleanup): Don't call
1207 rl_callback_handler_install.
1208
1209 2014-10-29 Pedro Alves <palves@redhat.com>
1210
1211 * event-top.c (command_line_handler): Clear the first byte of
1212 linebuffer, when it is first allocated.
1213
1214 2014-10-29 Pedro Alves <palves@redhat.com>
1215
1216 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1217 TRY_CATCH.
1218
1219 2014-10-29 Pedro Alves <palves@redhat.com>
1220
1221 PR tui/16138
1222 PR tui/17519
1223 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1224 (tui_allowed_p): Delete function.
1225 * tui/tui.c: Include "interps.h".
1226 (tui_enable): Don't use tui_allowed_p. Error out here with
1227 detailed error messages if the TUI is the top level interpreter,
1228 or if output is not a terminal. Use newterm instead of initscr,
1229 and error out if initializing the terminal fails. Also error out if
1230 the terminal doesn't support cursor addressing.
1231 * tui/tui.h (tui_allowed_p): Delete declaration.
1232
1233 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1234
1235 * arm-tdep.c (arm_skip_stack_protector): Return early if
1236 address loaded by first "ldr" instruction does not have
1237 a corresponding minimal symbol. Update comment.
1238
1239 2014-10-29 Yao Qi <yao@codesourcery.com>
1240
1241 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1242 loaded address correctly of ldr instruction.
1243
1244 2014-10-28 Pedro Alves <palves@redhat.com>
1245
1246 PR gdb/12623
1247 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1248 field.
1249 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1250 thread's stepped_breakpoint field. Skip if reverse debugging.
1251 Add comment.
1252 (init_thread_stepping_state, handle_signal_stop): Clear the
1253 thread's stepped_breakpoint field.
1254
1255 2014-10-27 Pedro Alves <palves@redhat.com>
1256
1257 * remote.c (remote_thread_alive): New, factored out from ...
1258 (remote_thread_alive): ... this.
1259 (remote_update_thread_list): Bail out before deleting threads if
1260 the target returned an empty list, and, the current thread has a
1261 magic/fake ptid.
1262
1263 2014-10-27 Pedro Alves <palves@redhat.com>
1264
1265 * infrun.c (handle_signal_stop): Also skip handlers when a random
1266 signal arrives while handling a "stepi" or a "nexti". Set the
1267 thread's 'step_after_step_resume_breakpoint' flag.
1268
1269 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1270
1271 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1272 (arm_record_ld_st_imm_offset): Reimplement to cover all
1273 load/store cases for ARM opcode 010.
1274 (arm_record_ld_st_multiple): Reimplement to cover all
1275 load/store cases for ARM opcode 100.
1276
1277 2014-10-26 Doug Evans <xdje42@gmail.com>
1278
1279 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1280
1281 2014-10-26 Doug Evans <xdje42@gmail.com>
1282
1283 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1284 parameter "kind" to "block_index".
1285 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1286 "block_index".
1287 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1288
1289 2014-10-26 Doug Evans <xdje42@gmail.com>
1290
1291 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1292
1293 2014-10-26 Doug Evans <xdje42@gmail.com>
1294
1295 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1296 obstack_alloc.
1297
1298 2014-10-26 Doug Evans <xdje42@gmail.com>
1299
1300 * parser-defs.h (block_found): Move decl from here ...
1301 * symtab.h (block_found): ... to here.
1302
1303 2014-10-26 Doug Evans <xdje42@gmail.com>
1304
1305 * symtab.h (struct field_of_this_result): Fix typo in comment.
1306 (lookup_symbol_in_language): Move function comment here.
1307 (lookup_symbol): Improve function comment.
1308 (basic_lookup_symbol_nonlocal): Ditto.
1309 (lookup_symbol_static, lookup_symbol_global): Ditto.
1310 (lookup_symbol_aux_block): Ditto.
1311 (lookup_language_this): Add function comment.
1312 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1313 function comment.
1314 (lookup_block_symbol): Improve function comment.
1315 (lookup_struct): Fix capitalization in function comment.
1316 (lookup_transparent_type): Add function comment.
1317 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1318 Improve function comment.
1319 (lookup_objfile_from_block): Add function comment.
1320 * symtab.c (lookup_symbol_in_language): Update function comment.
1321 (lookup_symbol, lookup_language_this): Ditto.
1322 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1323 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1324 (basic_lookup_symbol_nonlocal): Ditto.
1325 (lookup_symbol_static, lookup_symbol_global): Ditto.
1326 (lookup_transparent_type, lookup_block_symbol): Ditto.
1327
1328 2014-10-25 Doug Evans <xdje42@gmail.com>
1329
1330 * symtab.c (types_info): Delete forward decl.
1331 (functions_info, variables_info, sources_info): Ditto.
1332 (_initialize_symtab): Rewrite forward decl to use
1333 initialize_file_ftype.
1334
1335 2014-10-25 Doug Evans <xdje42@gmail.com>
1336
1337 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1338
1339 2014-10-25 Doug Evans <xdje42@gmail.com>
1340
1341 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1342 of local var child_die.
1343
1344 2014-10-24 Don Breazeal <donb@codesourcery.com>
1345
1346 * infrun.c (follow_fork_inferior): Update fork message printing
1347 to use target_terminal_ours_for_output instead of
1348 target_terminal_ours, to use _() for all format strings, to print
1349 "vfork" instead of "fork" for vforks, and to add a detach message.
1350 (handle_vfork_child_exec_or_exit): Update message printing to use
1351 target_terminal_ours_for_output instead of target_terminal_ours, to
1352 use _() for all format strings, and to fix some formatting.
1353
1354 2014-10-24 Pedro Alves <palves@redhat.com>
1355
1356 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1357 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1358 * config/vax/vax.mh: Delete.
1359 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1360 obsolete configurations section.
1361 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1362 * vax-nat.c: Delete file.
1363
1364 2014-10-24 Pedro Alves <palves@redhat.com>
1365
1366 * NEWS (Removed targets): Add OS/arch column.
1367
1368 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1369
1370 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1371 on the arg type of a constructor only if it is of reference type.
1372
1373 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1374
1375 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1376 accessors and constants from nios2 opcodes update.
1377 (nios2_get_next_pc): Likewise.
1378
1379 2014-10-19 Doug Evans <xdje42@gmail.com>
1380
1381 * gdbthread.h (set_running): Fix comment.
1382 (set_executing, finish_thread_state): Fix comment.
1383
1384 2014-10-18 Doug Evans <xdje42@gmail.com>
1385
1386 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1387
1388 2014-10-17 Doug Evans <dje@google.com>
1389
1390 * NEWS: Mention new event gdb.clear_objfiles.
1391 * python/py-event.h (emit_clear_objfiles_event): Clear
1392 * python/py-events.h (events_object): New member clear_objfiles.
1393 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1394 event.
1395 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1396 emit clear_objfiles event.
1397 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1398 function.
1399 (emit_clear_objfiles_event): New function.
1400 (clear_objfiles): New event.
1401 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1402 Declare.
1403 * python/python.c (_initialize_python): Call
1404 gdbpy_initialize_clear_objfiles_event.
1405
1406 2014-10-17 Doug Evans <dje@google.com>
1407
1408 * NEWS: Mention new gdb.Objfile.progspace attribute.
1409 * python/py-objfile.c (objfpy_get_progspace): New function.
1410 (objfile_getset): New entry for "progspace".
1411
1412 2014-10-17 Pedro Alves <palves@redhat.com>
1413
1414 PR gdb/17471
1415 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1416 returns a copy of the input.
1417 (run_command_1, continue_command, step_1, jump_command)
1418 (signal_command, until_command, advance_command, finish_command)
1419 (attach_command): Adjust and install a cleanup to free the
1420 stripped args.
1421
1422 2014-10-17 Pedro Alves <palves@redhat.com>
1423
1424 PR gdb/17300
1425 * infcmd.c (continue_1): If continuing all threads in the
1426 foreground, make sure the inferior's terminal settings are put in
1427 effect.
1428
1429 2014-10-17 Pedro Alves <palves@redhat.com>
1430
1431 PR gdb/17472
1432 * annotate.c (annotate_breakpoints_invalid): Use
1433 target_terminal_our_for_output instead of target_terminal_ours.
1434 Give back the terminal to the target.
1435 (annotate_frames_invalid): Likewise.
1436
1437 2014-10-17 Pedro Alves <palves@redhat.com>
1438
1439 * target.c (enum terminal_state): New enum.
1440 (terminal_state): New global.
1441 (target_terminal_init): New function.
1442 (target_terminal_inferior): Skip if inferior already owns the
1443 terminal.
1444 (target_terminal_ours, target_terminal_ours_for_output): New
1445 functions.
1446 * target.h (target_terminal_init): Convert to function prototype.
1447 (target_terminal_ours_for_output): Convert to function prototype
1448 and tweak comment.
1449 (target_terminal_ours): Convert to function prototype and tweak
1450 comment.
1451 * windows-nat.c (do_initial_windows_stuff): Call
1452 target_terminal_init instead of child_terminal_init_with_pgrp.
1453
1454 2014-10-17 Pedro Alves <palves@redhat.com>
1455
1456 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1457 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1458 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1459 solib-osf.c.
1460 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1461 * ada-lang.h [__alpha__ && __osf__]
1462 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1463 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1464 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1465 GDB_OSABI_OSF1.
1466 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1467 files.
1468 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1469 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1470 * configure: Regenerate.
1471 * configure.ac: Remove references to osf.
1472 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1473 section. Remove all other references to osf.
1474 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1475 Remove all other references to osf.
1476 * dec-thread.c: Delete file.
1477 * defs.h (GDB_OSABI_OSF1): Delete.
1478 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1479 defined.
1480 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1481 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1482 Delete code.
1483 (unconditionally_kill_inferior)
1484 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1485 * solib-osf.c: Delete file.
1486
1487 2014-10-17 Pedro Alves <palves@redhat.com>
1488
1489 * remote.c (clear_threads_listing_context): Move higher up, out of
1490 the HAVE_LIBEXPAT guard.
1491
1492 2014-10-16 Tristan Gingold <gingold@adacore.com>
1493
1494 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1495 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1496 on amd64.
1497
1498 2014-10-15 Pedro Alves <palves@redhat.com>
1499
1500 * dec-thread.c (dec_thread_count_gdb_threads)
1501 (dec_thread_add_gdb_thread): Delete.
1502 (dec_thread_update_thread_list): Delete.
1503 (dec_thread_find_new_threads): Rename to ...
1504 (dec_thread_update_thread_list): ... this. Delete GDB-size
1505 threads that are no longer found in dec_thread_list.
1506 (resync_thread_list): Delete.
1507 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1508 resync_thread_list.
1509
1510 2014-10-15 Pedro Alves <palves@redhat.com>
1511
1512 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1513 * remote.c (remote_update_thread_list): Skip calling prune_threads
1514 if any thread listing method is supported, and instead walk over
1515 the set of remote threads listed, deleting those that are not
1516 found in GDB's thread list.
1517
1518 2014-10-15 Pedro Alves <palves@redhat.com>
1519
1520 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1521 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1522 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1523 (bsd_uthread_target): Adjust.
1524 * corelow.c (core_open): Adjust.
1525 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1526 (dec_thread_update_thread_list): New function.
1527 (init_dec_thread_ops): Adjust.
1528 * gdbthread.h (prune_threads): New declaration.
1529 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1530 (thread_db_update_thread_list): ... this. Call prune_threads.
1531 (init_thread_db_ops): Adjust.
1532 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1533 (procfs_update_thread_list): ... this. Call prune_threads.
1534 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1535 Adjust.
1536 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1537 (obsd_update_thread_list): ... this. Call prune_threads.
1538 (obsd_add_target): Adjust.
1539 * procfs.c (procfs_target): Adjust.
1540 (procfs_notice_thread): Update comment.
1541 (procfs_find_new_threads): Rename to ...
1542 (procfs_update_thread_list): ... this. Call prune_threads.
1543 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1544 comment.
1545 (ravenscar_wait): Adjust.
1546 (ravenscar_find_new_threads): Rename to ...
1547 (ravenscar_update_thread_list): ... this. Call prune_threads.
1548 (init_ravenscar_thread_ops): Adjust.
1549 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1550 (record_btrace_update_thread_list): ... this. Adjust comment.
1551 (init_record_btrace_ops): Adjust.
1552 * remote.c (remote_threads_info): Rename to ...
1553 (remote_update_thread_list): ... this. Call prune_threads.
1554 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1555 Adjust.
1556 * sol-thread.c (check_for_thread_db): Adjust.
1557 (sol_find_new_threads_callback): Rename to ...
1558 (sol_update_thread_list_callback): ... this.
1559 (sol_find_new_threads): Rename to ...
1560 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1561 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1562 * target-delegates.c: Regenerate.
1563 * target.c (target_find_new_threads): Rename to ...
1564 (target_update_thread_list): ... this.
1565 * target.h (struct target_ops): Rename to_find_new_threads field
1566 to to_update_thread_list.
1567 (target_find_new_threads): Rename to ...
1568 (target_update_thread_list): ... this.
1569 * thread.c (prune_threads): Make extern.
1570 (update_thread_list): Adjust.
1571
1572 2014-10-15 Pedro Alves <palves@redhat.com>
1573
1574 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1575 Add describing comment. Return -1 if the qL packet is not
1576 supported.
1577 (struct thread_item, thread_item_t): Move higher up in
1578 the file. Add comments.
1579 (struct threads_parsing_context): Move higher up in
1580 the file, add comments, and remote to ...
1581 (struct threads_listing_context): ... this.
1582 (remote_newthread_step): Don't add the thread to GDB's thread
1583 database here. Instead push it to the thread_listing_context
1584 list.
1585 (remote_find_new_threads): Rename to ...
1586 (remote_get_threads_with_ql): ... this. Add target_ops and
1587 targets_listing_context parameters. Pass down context.
1588 (start_thread): Adjust.
1589 (clear_threads_parsing_context): Rename to ...
1590 (clear_threads_listing_context): ... this.
1591 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1592 remote_threads_info.
1593 (remote_get_threads_with_qthreadinfo): Ditto.
1594 (remote_threads_info): Reimplement.
1595
1596 2014-10-15 Pedro Alves <palves@redhat.com>
1597
1598 * infrun.c (resume): Don't force displaced-stepping for all
1599 single-steps on software single-stepping archs.
1600
1601 2014-10-15 Pedro Alves <palves@redhat.com>
1602
1603 * breakpoint.c (single_step_breakpoints): Delete global.
1604 (insert_single_step_breakpoint): Adjust to store the breakpoint
1605 pointer in the current thread.
1606 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1607 (cancel_single_step_breakpoints): Delete functions.
1608 (breakpoint_has_location_inserted_here): Make extern.
1609 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1610 breakpoint list.
1611 * breakpoint.h (breakpoint_has_location_inserted_here): New
1612 declaration.
1613 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1614 (cancel_single_step_breakpoints): Remove declarations.
1615 * gdbthread.h (struct thread_control_state)
1616 <single_step_breakpoints>: New field.
1617 (delete_single_step_breakpoints)
1618 (thread_has_single_step_breakpoints_set)
1619 (thread_has_single_step_breakpoint_here): New declarations.
1620 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1621 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1622 (singlestep_pc): Delete globals.
1623 (infrun_thread_ptid_changed): Remove references to removed
1624 globals.
1625 (resume_cleanups): Delete the current thread's single-step
1626 breakpoints.
1627 (maybe_software_singlestep): Remove references to removed globals.
1628 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1629 delete_single_step_breakpoints.
1630 (init_wait_for_inferior): Remove references to removed globals.
1631 (delete_thread_infrun_breakpoints): Delete the thread's
1632 single-step breakpoints too.
1633 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1634 single-step breakpoints here.
1635 (delete_stopped_threads_single_step_breakpoints): New function.
1636 (adjust_pc_after_break): Adjust to use
1637 thread_has_single_step_breakpoints_set.
1638 (handle_inferior_event): Remove references to removed globals.
1639 Use delete_stopped_threads_single_step_breakpoints.
1640 (handle_signal_stop): Adjust to per-thread single-step
1641 breakpoints. Swap test order to do cheaper tests first.
1642 (switch_back_to_stepped_thread): Extend debug output. Remove
1643 references to removed globals.
1644 * record-full.c (record_full_wait_1): Adjust to per-thread
1645 single-step breakpoints.
1646 * thread.c (delete_single_step_breakpoints)
1647 (thread_has_single_step_breakpoints_set)
1648 (thread_has_single_step_breakpoint_here): New functions.
1649 (clear_thread_inferior_resources): Also delete the thread's
1650 single-step breakpoints.
1651
1652 2014-10-15 Pedro Alves <palves@redhat.com>
1653
1654 * thread.c (delete_thread_breakpoint): New function.
1655 (delete_step_resume_breakpoint)
1656 (delete_exception_resume_breakpoint): Use it.
1657 (delete_at_next_stop): New function.
1658 (clear_thread_inferior_resources): Use delete_at_next_stop.
1659
1660 2014-10-15 Pedro Alves <palves@redhat.com>
1661
1662 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1663 (breakpoint_inserted_here_p): ... here. Remove special case for
1664 software single-step breakpoints.
1665 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1666 (software_breakpoint_inserted_here_p): ... here. Remove special
1667 case for software single-step breakpoints.
1668 (bp_target_info_copy_insertion_state)
1669 (deprecated_insert_raw_breakpoint)
1670 (deprecated_remove_raw_breakpoint): Delete functions.
1671 * breakpoint.h (deprecated_insert_raw_breakpoint)
1672 (deprecated_remove_raw_breakpoint): Remove declarations.
1673
1674 2014-10-15 Pedro Alves <palves@redhat.com>
1675
1676 PR breakpoints/9649
1677 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1678 Delete array globals.
1679 (single_step_breakpoints): New global.
1680 (breakpoint_xfer_memory): Remove special handling for single-step
1681 breakpoints.
1682 (update_breakpoints_after_exec): Delete bp_single_step
1683 breakpoints.
1684 (detach_breakpoints): Remove special handling for single-step
1685 breakpoints.
1686 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1687 (bpstat_stop_status): Add comment.
1688 (bpstat_what, bptype_string, print_one_breakpoint_location)
1689 (adjust_breakpoint_address, init_bp_location): Handle
1690 bp_single_step.
1691 (new_single_step_breakpoint): New function.
1692 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1693 handling for single-step breakpoints.
1694 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1695 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1696 Rewrite.
1697 (detach_single_step_breakpoints, find_single_step_breakpoint):
1698 Delete functions.
1699 (breakpoint_has_location_inserted_here): New function.
1700 (single_step_breakpoint_inserted_here_p): Rewrite.
1701 * breakpoint.h: Remove FIXME.
1702 (enum bptype) <bp_single_step>: New enum value.
1703 (insert_single_step_breakpoint): Update comment.
1704 * infrun.c (resume_cleanups)
1705 (delete_step_thread_step_resume_breakpoint): Remove single-step
1706 breakpoints.
1707 (fetch_inferior_event): Install a cleanup that removes infrun
1708 breakpoints.
1709 (switch_back_to_stepped_thread) <expect thread advanced also>:
1710 Clear step-over info.
1711
1712 2014-10-15 Pedro Alves <palves@redhat.com>
1713
1714 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1715 (delete_thread_infrun_breakpoints): New function, with parts
1716 salvaged from delete_step_resume_breakpoint_callback.
1717 (delete_step_thread_step_resume_breakpoint): Delete.
1718 (for_each_just_stopped_thread_callback_func): New typedef.
1719 (for_each_just_stopped_thread): New function.
1720 (delete_just_stopped_threads_infrun_breakpoints): New function.
1721 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1722 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1723 ... this. Adjust.
1724 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1725
1726 2014-10-15 Pedro Alves <palves@redhat.com>
1727
1728 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1729 trying to step past a non-steppable watchpoint.
1730 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1731 field.
1732 * infrun.c (struct step_over_info): Add new field
1733 'nonsteppable_watchpoint_p' and adjust comments.
1734 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1735 Adjust.
1736 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1737 (stepping_past_nonsteppable_watchpoint): New function.
1738 (step_over_info_valid_p): Also return true if stepping past a
1739 nonsteppable watchpoint.
1740 (proceed): Adjust call to set_step_over_info. Remove reference to
1741 init_infwait_state.
1742 (init_wait_for_inferior): Remove reference to init_infwait_state.
1743 (waiton_ptid): Delete global.
1744 (struct execution_control_state)
1745 <stepped_after_stopped_by_watchpoint>: Delete field.
1746 (wait_for_inferior, fetch_inferior_event): Always pass
1747 minus_one_ptid to target_wait.
1748 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1749 field.
1750 (init_infwait_state): Delete function.
1751 (handle_inferior_event): Remove infwait_state handling.
1752 (handle_signal_stop) <watchpoints handling>: Adjust after
1753 stepped_after_stopped_by_watchpoint removal. Don't remove
1754 breakpoints here nor set infwait_state. Set the thread's
1755 stepping_over_watchpoint flag, and call keep_going instead.
1756 (keep_going): Handle stepping_over_watchpoint. Adjust
1757 set_step_over_info calls.
1758 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1759 function.
1760
1761 2014-10-15 Pedro Alves <palves@redhat.com>
1762
1763 * infrun.c (step_over_info_valid_p): New function.
1764 (resume): Use step_over_info_valid_p instead of checking the
1765 threads's trap_expected flag.
1766
1767 2014-10-15 Doug Evans <dje@google.com>
1768 Walfred Tedeschi <walfred.tedeschi@intel.com>
1769
1770 PR python/17364
1771 * python/lib/gdb/__init__.py (packages): Add "printer".
1772 * python/lib/gdb/command/bound_registers.py: Moved to ...
1773 * python/lib/gdb/printer/bound_registers.py: ... here.
1774 Add printer to global set of builtin printers. Rename printer from
1775 "bound" to "mpx_bound128".
1776 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1777 registered as global "builtin" printer.
1778 (add_builtin_pretty_printer): New function.
1779 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1780 gdb/printer/__init__.py.
1781
1782 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1783
1784 * Makefile.in (SFILES): Remove d-support.c.
1785 (COMMON_OBS): Remove d-support.o.
1786 * d-lang.h (d_parse_symbol): Remove declaration.
1787 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1788 * d-support.c: Remove file.
1789
1790 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1791
1792 * gdb/infrun.c (process_event_stop_test): Apply
1793 gdbarch_addr_bits_remove to longjmp resume address.
1794
1795 2014-10-15 Pedro Alves <palves@redhat.com>
1796
1797 * regformats/microblaze.dat: Delete file.
1798
1799 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1800
1801 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1802 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1803
1804 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1805
1806 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1807 as non-trivial.
1808
1809 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1810
1811 PR c++/13403
1812 PR c++/15154
1813 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1814 with qualified args.
1815
1816 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1817
1818 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1819 of the case where the second operand is a pointer.
1820 <BINOP_SUB>: Likewise.
1821
1822 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1823
1824 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1825 only if it is not NULL.
1826 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1827 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1828 (struct probe_ops) <clear_semaphore>: Likewise.
1829 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1830 not NULL.
1831 (stop_tracing): Likewise, for clear_semaphore.
1832
1833 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1834
1835 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1836 using language_c, instead of current_language.
1837
1838 2014-10-13 Doug Evans <dje@google.com>
1839
1840 * python/py-objfile.c (objfpy_initialize): New function.
1841 (objfpy_new, objfile_to_objfile_object): Call it.
1842 * python/py-progspace.c (pspy_initialize): New function.
1843 (pspy_new, pspace_to_pspace_object): Call it.
1844
1845 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1846 Jan Kratochvil <jan.kratochvil@redhat.com>
1847
1848 Fix "save breakpoints" for "catch" command.
1849 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1850 newline.
1851
1852 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1853
1854 Fix "save breakpoints" for "disable $bpnum" command.
1855 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1856
1857 2014-10-10 Pedro Alves <palves@redhat.com>
1858
1859 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1860 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1861 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1862 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1863 and been removed.
1864 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1865 * configure.ac: Remove references to IRIX.
1866 * configure.host: Add *-*-irix* to the obsolete hosts section.
1867 Remove all other references to irix.
1868 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1869 Delete files.
1870
1871 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1872
1873 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1874 isn't valid, release the tdesc arch data and return NULL.
1875
1876 2014-10-10 Pedro Alves <palves@redhat.com>
1877
1878 * linux-tdep.c: Include observer.h.
1879 (linux_inferior_data): New global.
1880 (struct linux_info): New structure.
1881 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1882 (get_linux_inferior_data): New functions.
1883 (linux_vsyscall_range): Rename to ...
1884 (linux_vsyscall_range_raw): ... this.
1885 (linux_vsyscall_range): New function; handles caching.
1886 (_initialize_linux_tdep): Register linux_inferior_data. Install
1887 inferior_exit and inferior_appeared observers.
1888
1889 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1890 Pedro Alves <palves@redhat.com>
1891
1892 PR symtab/14466
1893 * solib-svr4.c (svr4_read_so_list): Rename to ...
1894 (svr4_current_sos_1): ... this and change the function comment.
1895 (svr4_current_sos): New function.
1896
1897 2014-10-10 Pedro Alves <palves@redhat.com>
1898
1899 * arch-utils.c (default_vsyscall_range): New function.
1900 * arch-utils.h (default_vsyscall_range): New declaration.
1901 * gdbarch.sh (vsyscall_range): New hook.
1902 * gdbarch.h, gdbarch.c: Regenerate.
1903 * linux-tdep.c (linux_vsyscall_range): New function.
1904 (linux_init_abi): Install linux_vsyscall_range as
1905 vsyscall_range gdbarch hook.
1906 * memrange.c (address_in_mem_range): New function.
1907 * memrange.h (address_in_mem_range): New declaration.
1908 * symfile-mem.c (find_vdso_size): Delete function.
1909 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1910
1911 2014-10-10 Pedro Alves <palves@redhat.com>
1912
1913 * infrun.c (normal_stop): Fix typo in comment.
1914
1915 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1916
1917 PR tdep/9390
1918 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1919 typo when using logical AND to determine instruction type.
1920
1921 2014-10-09 Yao Qi <yao@codesourcery.com>
1922
1923 * infrun.c (handle_signal_stop): Remove local variable
1924 'printed'.
1925
1926 2014-10-08 Stan Shebs <stan@codesourcery.com>
1927
1928 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1929
1930 2014-10-08 Gary Benson <gbenson@redhat.com>
1931
1932 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1933
1934 2014-10-08 Gary Benson <gbenson@redhat.com>
1935
1936 * common/common-defs.h: Include common-exceptions.h.
1937 * exceptions.h: Do not include common-exceptions.h.
1938
1939 2014-10-08 Gary Benson <gbenson@redhat.com>
1940
1941 * common/common-defs.h: Include cleanups.h.
1942 * common/common-exceptions.c: Do not include cleanups.h.
1943 * utils.h: Likewise.
1944
1945 2014-10-08 Gary Benson <gbenson@redhat.com>
1946
1947 * ada-lang.c: Do not include exceptions.h.
1948 * ada-valprint.c: Likewise.
1949 * amd64-tdep.c: Likewise.
1950 * auto-load.c: Likewise.
1951 * block.c: Likewise.
1952 * break-catch-throw.c: Likewise.
1953 * breakpoint.c: Likewise.
1954 * btrace.c: Likewise.
1955 * c-lang.c: Likewise.
1956 * cli/cli-cmds.c: Likewise.
1957 * cli/cli-interp.c: Likewise.
1958 * cli/cli-script.c: Likewise.
1959 * completer.c: Likewise.
1960 * corefile.c: Likewise.
1961 * corelow.c: Likewise.
1962 * cp-abi.c: Likewise.
1963 * cp-support.c: Likewise.
1964 * cp-valprint.c: Likewise.
1965 * darwin-nat.c: Likewise.
1966 * dwarf2-frame-tailcall.c: Likewise.
1967 * dwarf2-frame.c: Likewise.
1968 * dwarf2loc.c: Likewise.
1969 * dwarf2read.c: Likewise.
1970 * eval.c: Likewise.
1971 * event-loop.c: Likewise.
1972 * event-top.c: Likewise.
1973 * f-valprint.c: Likewise.
1974 * frame-unwind.c: Likewise.
1975 * frame.c: Likewise.
1976 * gdbtypes.c: Likewise.
1977 * gnu-v2-abi.c: Likewise.
1978 * gnu-v3-abi.c: Likewise.
1979 * guile/scm-auto-load.c: Likewise.
1980 * guile/scm-breakpoint.c: Likewise.
1981 * guile/scm-cmd.c: Likewise.
1982 * guile/scm-frame.c: Likewise.
1983 * guile/scm-lazy-string.c: Likewise.
1984 * guile/scm-param.c: Likewise.
1985 * guile/scm-symbol.c: Likewise.
1986 * guile/scm-type.c: Likewise.
1987 * hppa-hpux-tdep.c: Likewise.
1988 * i386-tdep.c: Likewise.
1989 * inf-loop.c: Likewise.
1990 * infcall.c: Likewise.
1991 * infcmd.c: Likewise.
1992 * infrun.c: Likewise.
1993 * interps.c: Likewise.
1994 * interps.h: Likewise.
1995 * jit.c: Likewise.
1996 * linespec.c: Likewise.
1997 * linux-nat.c: Likewise.
1998 * linux-thread-db.c: Likewise.
1999 * m32r-rom.c: Likewise.
2000 * main.c: Likewise.
2001 * memory-map.c: Likewise.
2002 * mi/mi-cmd-break.c: Likewise.
2003 * mi/mi-cmd-stack.c: Likewise.
2004 * mi/mi-interp.c: Likewise.
2005 * mi/mi-main.c: Likewise.
2006 * monitor.c: Likewise.
2007 * nto-procfs.c: Likewise.
2008 * objc-lang.c: Likewise.
2009 * p-valprint.c: Likewise.
2010 * parse.c: Likewise.
2011 * ppc-linux-tdep.c: Likewise.
2012 * printcmd.c: Likewise.
2013 * probe.c: Likewise.
2014 * python/py-auto-load.c: Likewise.
2015 * python/py-breakpoint.c: Likewise.
2016 * python/py-cmd.c: Likewise.
2017 * python/py-finishbreakpoint.c: Likewise.
2018 * python/py-frame.c: Likewise.
2019 * python/py-framefilter.c: Likewise.
2020 * python/py-function.c: Likewise.
2021 * python/py-gdb-readline.c: Likewise.
2022 * python/py-inferior.c: Likewise.
2023 * python/py-infthread.c: Likewise.
2024 * python/py-lazy-string.c: Likewise.
2025 * python/py-linetable.c: Likewise.
2026 * python/py-param.c: Likewise.
2027 * python/py-prettyprint.c: Likewise.
2028 * python/py-symbol.c: Likewise.
2029 * python/py-type.c: Likewise.
2030 * python/py-value.c: Likewise.
2031 * python/python-internal.h: Likewise.
2032 * python/python.c: Likewise.
2033 * record-btrace.c: Likewise.
2034 * record-full.c: Likewise.
2035 * regcache.c: Likewise.
2036 * remote-fileio.c: Likewise.
2037 * remote-mips.c: Likewise.
2038 * remote.c: Likewise.
2039 * rs6000-aix-tdep.c: Likewise.
2040 * rs6000-nat.c: Likewise.
2041 * skip.c: Likewise.
2042 * solib-darwin.c: Likewise.
2043 * solib-dsbt.c: Likewise.
2044 * solib-frv.c: Likewise.
2045 * solib-ia64-hpux.c: Likewise.
2046 * solib-spu.c: Likewise.
2047 * solib-svr4.c: Likewise.
2048 * solib.c: Likewise.
2049 * spu-tdep.c: Likewise.
2050 * stack.c: Likewise.
2051 * stap-probe.c: Likewise.
2052 * symfile-mem.c: Likewise.
2053 * symmisc.c: Likewise.
2054 * target.c: Likewise.
2055 * thread.c: Likewise.
2056 * top.c: Likewise.
2057 * tracepoint.c: Likewise.
2058 * tui/tui-interp.c: Likewise.
2059 * typeprint.c: Likewise.
2060 * utils.c: Likewise.
2061 * valarith.c: Likewise.
2062 * valops.c: Likewise.
2063 * valprint.c: Likewise.
2064 * value.c: Likewise.
2065 * varobj.c: Likewise.
2066 * windows-nat.c: Likewise.
2067 * xml-support.c: Likewise.
2068
2069 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2070
2071 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2072 name implies.
2073 (extended_mips16_next_pc): Update accordingly.
2074
2075 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2076
2077 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2078 function.
2079 (micromips_instruction_is_compact_branch): Likewise.
2080 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2081 or a compact jump, reaching a jump delay slot, or seeing a
2082 second non-prologue instruction.
2083 (micromips_scan_prologue): Also terminate scanning upon seeing a
2084 compact branch or jump, or reaching a branch or jump delay slot.
2085 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2086 or jump delay slot, or seeing a second non-prologue instruction.
2087 (mips32_instruction_has_delay_slot): Retain instruction
2088 examination code only, update arguments accordingly and move
2089 instruction fetch pieces to...
2090 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2091 (micromips_instruction_has_delay_slot): Likewise and to...
2092 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2093 (mips16_instruction_has_delay_slot): Likewise and to...
2094 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2095 (mips_single_step_through_delay): Update accordingly.
2096 (mips_adjust_breakpoint_address): Likewise.
2097
2098 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2099
2100 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2101 !mustbe32 also return 1 for 32-bit instructions.
2102 (mips16_instruction_has_delay_slot): Likewise. Add an
2103 explanatory comment.
2104
2105 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2106
2107 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2108 symbols special.
2109
2110 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2111
2112 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2113 update comments.
2114 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2115 for the breakpoint's address. Don't preinitialize `placed_size'.
2116 (insert_bp_location): Set `reqstd_address' rather than
2117 `placed_address'.
2118 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2119 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2120 address.
2121 (bkpt_remove_location): Likewise.
2122 (deprecated_insert_raw_breakpoint): Likewise.
2123 (deprecated_remove_raw_breakpoint): Likewise.
2124 (find_single_step_breakpoint): Likewise.
2125 * mem-break.c (default_memory_insert_breakpoint): Use
2126 `reqstd_address' for the breakpoint's address. Don't set
2127 `placed_address' or `placed_size' if breakpoint contents couldn't
2128 have been determined.
2129 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2130 the breakpoint's address.
2131 (remote_insert_hw_breakpoint): Likewise. Don't set
2132 `placed_address' or `placed_size' if breakpoint couldn't have been
2133 set.
2134 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2135 `reqstd_address' for the breakpoint's address.
2136 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2137 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2138 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2139 * microblaze-linux-tdep.c
2140 (microblaze_linux_memory_remove_breakpoint): Likewise.
2141 * monitor.c (monitor_insert_breakpoint): Likewise.
2142 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2143 (procfs_insert_hw_breakpoint): Likewise.
2144 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2145 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2146 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2147 * remote-mips.c (mips_insert_breakpoint): Likewise.
2148 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2149
2150 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2151
2152 * valops.c (value_assign): Check for bit field assignments
2153 before calling architecture-specific register value
2154 conversion functions.
2155
2156 2014-10-03 Pierre Muller <muller@sourceware.org>
2157
2158 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2159
2160 2014-10-02 Pedro Alves <palves@redhat.com>
2161
2162 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2163 threads_are_executing.
2164 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2165 describing comment.
2166 * gdbthread.h (threads_are_executing): Declare.
2167 (handle_signal_stop) <random signals>: Don't print about the
2168 signal here if stopping.
2169 (end_stepping_range): Don't notify observers here.
2170 (normal_stop): Update the thread list. If stopped by a random
2171 signal or a stepping range ended, notify observers.
2172 * thread.c (threads_executing): New global.
2173 (init_thread_list): Clear 'threads_executing'.
2174 (set_executing): Set or clear 'threads_executing'.
2175 (threads_are_executing): New function.
2176 (update_threads_executing): New function.
2177 (update_thread_list): Use it.
2178
2179 2014-10-02 Pedro Alves <palves@redhat.com>
2180
2181 PR breakpoints/17431
2182 * breakpoint.c (update_breakpoints_after_exec): Don't create
2183 overlay, longjmp, std terminate nor exception breakpoints here.
2184
2185 2014-10-02 Pedro Alves <palves@redhat.com>
2186
2187 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2188 Adjust comments.
2189 * inferior.c (find_inferior_for_program_space): Give preference to
2190 the current inferior.
2191 * inferior.h (find_inferior_for_program_space): Update comment.
2192 * progspace.c (switch_to_program_space_and_thread): Prefer the
2193 current inferior if it's bound to the program space requested. If
2194 the inferior found doesn't have a PID yet, don't bother looking up
2195 a thread.
2196 * progspace.h (switch_to_program_space_and_thread): Adjust
2197 comment.
2198 * thread.c (any_thread_of_process, any_live_thread_of_process):
2199 Give preference to the current thread.
2200
2201 2014-10-01 Pedro Alves <palves@redhat.com>
2202
2203 * breakpoint.c (insert_bp_location): Error out if inserting a
2204 software breakpoint at a read-only address.
2205 * target.c (memory_xfer_check_region): New function, factored out
2206 from ...
2207 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2208 ULONGEST.
2209 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2210 against the memory region attributes.
2211
2212 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2213
2214 * NEWS: Announce new exit-code field in -list-thread-groups
2215 output.
2216 * inferior.c (exit_inferior_1): Don't clear exit code.
2217 (inferior_appeared): Clear exit code.
2218 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2219 code.
2220
2221 2014-10-01 Pedro Alves <palves@redhat.com>
2222
2223 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2224 GENERATED" along with emacs/vi read-only markers.
2225 * regformats/aarch64.dat: Regenerate.
2226 * regformats/arm-with-iwmmxt.dat: Regenerate.
2227 * regformats/arm-with-neon.dat: Regenerate.
2228 * regformats/arm-with-vfpv2.dat: Regenerate.
2229 * regformats/arm-with-vfpv3.dat: Regenerate.
2230 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2231 * regformats/i386/amd64-avx.dat: Regenerate.
2232 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2233 * regformats/i386/amd64-avx512.dat: Regenerate.
2234 * regformats/i386/amd64-linux.dat: Regenerate.
2235 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2236 * regformats/i386/amd64-mpx.dat: Regenerate.
2237 * regformats/i386/amd64.dat: Regenerate.
2238 * regformats/i386/i386-avx-linux.dat: Regenerate.
2239 * regformats/i386/i386-avx.dat: Regenerate.
2240 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2241 * regformats/i386/i386-avx512.dat: Regenerate.
2242 * regformats/i386/i386-linux.dat: Regenerate.
2243 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2244 * regformats/i386/i386-mmx.dat: Regenerate.
2245 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2246 * regformats/i386/i386-mpx.dat: Regenerate.
2247 * regformats/i386/i386.dat: Regenerate.
2248 * regformats/i386/x32-avx-linux.dat: Regenerate.
2249 * regformats/i386/x32-avx.dat: Regenerate.
2250 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2251 * regformats/i386/x32-avx512.dat: Regenerate.
2252 * regformats/i386/x32-linux.dat: Regenerate.
2253 * regformats/i386/x32.dat: Regenerate.
2254 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2255 * regformats/mips-dsp-linux.dat: Regenerate.
2256 * regformats/mips-linux.dat: Regenerate.
2257 * regformats/mips64-dsp-linux.dat: Regenerate.
2258 * regformats/mips64-linux.dat: Regenerate.
2259 * regformats/nios2-linux.dat: Regenerate.
2260 * regformats/rs6000/powerpc-32.dat: Regenerate.
2261 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2262 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2263 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2264 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2265 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2266 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2267 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2268 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2269 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2270 * regformats/s390-linux32.dat: Regenerate.
2271 * regformats/s390-linux32v1.dat: Regenerate.
2272 * regformats/s390-linux32v2.dat: Regenerate.
2273 * regformats/s390-linux64.dat: Regenerate.
2274 * regformats/s390-linux64v1.dat: Regenerate.
2275 * regformats/s390-linux64v2.dat: Regenerate.
2276 * regformats/s390-te-linux64.dat: Regenerate.
2277 * regformats/s390x-linux64.dat: Regenerate.
2278 * regformats/s390x-linux64v1.dat: Regenerate.
2279 * regformats/s390x-linux64v2.dat: Regenerate.
2280 * regformats/s390x-te-linux64.dat: Regenerate.
2281 * regformats/tic6x-c62x-linux.dat: Regenerate.
2282 * regformats/tic6x-c62x.dat: Regenerate.
2283 * regformats/tic6x-c64x-linux.dat: Regenerate.
2284 * regformats/tic6x-c64x.dat: Regenerate.
2285 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2286 * regformats/tic6x-c64xp.dat: Regenerate.
2287
2288 2014-10-01 Pedro Alves <palves@redhat.com>
2289
2290 * features/Makefile: Update comments.
2291 (XMLTOC): List all xml files we build C files from.
2292 (clean-cfiles): New rule.
2293
2294 2014-10-01 Pedro Alves <palves@redhat.com>
2295
2296 * features/i386/amd64-avx512-linux.c: Regenerate.
2297 * features/i386/amd64-avx512.c: Regenerate.
2298 * features/i386/x32-avx512-linux.c: Regenerate.
2299 * features/i386/x32-avx512.c: Regenerate.
2300
2301 2014-10-01 Pedro Alves <palves@redhat.com>
2302
2303 * features/Makefile (WHICH): Remove arm-with-m,
2304 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2305
2306 2014-10-01 Pedro Alves <palves@redhat.com>
2307
2308 * features/Makefile (clean): New rule.
2309
2310 2014-10-01 Pedro Alves <palves@redhat.com>
2311
2312 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2313 (zmm14h): Add missing end quotes.
2314
2315 2014-10-01 Pedro Alves <palves@redhat.com>
2316
2317 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2318 * features/aarch64.c: Regenerate.
2319
2320 2014-09-30 Don Breazeal <donb@codesourcery.com>
2321
2322 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2323 code so as to work with follow_fork_inferior.
2324 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2325 (inf_ttrace_create_inferior): Remove reference to
2326 inf_ttrace_vfork_ppid.
2327 (inf_ttrace_attach): Ditto.
2328 (inf_ttrace_detach): Ditto.
2329 (inf_ttrace_kill): Use current_inferior instead of
2330 inf_ttrace_vfork_ppid.
2331 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2332 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2333 inferior away from the parent.
2334 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2335 target_follow_fork.
2336 (follow_fork_inferior): New function.
2337 (follow_inferior_reset_breakpoints): Make function static.
2338 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2339 * linux-nat.c (linux_child_follow_fork): Move target-independent
2340 code to infrun.c:follow_fork_inferior.
2341
2342 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2343
2344 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2345 * gdbarch.c: Regenerate.
2346 * gdbarch.h: Likewise.
2347 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2348 gdbarch method 'regset_from_core_section'.
2349 (get_core_register_section): Remove handling for the case that
2350 regset == NULL and regset_from_core_section is defined.
2351 (get_core_registers): Drop check for deleted method.
2352 * procfs.c (procfs_do_thread_registers): Adjust comment.
2353
2354 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2355
2356 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2357 (linux_nat_make_corefile_notes): Remove.
2358 (linux_target_install_ops): Do not set target method
2359 'make_corefile_notes'.
2360 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2361 Remove field.
2362 (linux_corefile_thread_callback): Instead of args->collect, call
2363 linux_collect_thread_registers.
2364 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2365 NULL unless there is a regset iterator.
2366 (linux_make_corefile_notes_1): Remove.
2367 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2368 by linux_make_corefile_notes.
2369 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2370
2371 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2372
2373 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2374 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2375 Remove.
2376 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2377
2378 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2379
2380 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2381 (xtensa_iterate_over_regset_sections): New.
2382 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2383
2384 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2385
2386 * vax-tdep.c (vax_regset_from_core_section): Remove.
2387 (vax_iterate_over_regset_sections): New.
2388 (vax_gdbarch_init): Adjust gdbarch initialization.
2389
2390 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2391
2392 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2393 (tilegx_regset_from_core_section): Remove.
2394 (tilegx_iterate_over_regset_sections): New.
2395 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2396
2397 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2398
2399 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2400 (sparc_iterate_over_regset_sections): New.
2401 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2402 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2403 targets.
2404 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2405 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2406 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2407 target method 'make_corefile_notes'.
2408
2409 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2410
2411 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2412 'sizeof_gregset' and 'sizeof_fpregset'.
2413 * sh-tdep.c (sh_regset_from_core_section): Remove.
2414 (sh_iterate_over_regset_sections): New.
2415 (sh_gdbarch_init): Adjust gdbarch initialization.
2416 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2417 sizeof_fpregset.
2418 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2419 'sizeof_gregset'.
2420
2421 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2422
2423 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2424 (score7_linux_iterate_over_regset_sections): New.
2425 (score_gdbarch_init): Adjust gdbarch initialization.
2426
2427 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2428
2429 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2430 FreeBSD targets.
2431 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2432 method 'make_corefile_notes'.
2433 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2434 (ppcfbsd_regset_from_core_section): Remove.
2435 (ppcfbsd_iterate_over_regset_sections): New.
2436 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2437 initialization.
2438 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2439 (ppcnbsd_iterate_over_regset_sections): New.
2440 (ppcnbsd_init_abi): Adjust.
2441 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2442 (ppcobsd_iterate_over_regset_sections): New.
2443 (ppcobsd_init_abi): Adjust.
2444 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2445 (rs6000_aix_iterate_over_regset_sections): New.
2446 (rs6000_aix_init_osabi): Adjust.
2447
2448 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2449
2450 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2451 (nios2_regset_from_core_section): Remove.
2452 (nios2_iterate_over_regset_sections): New.
2453 (nios2_linux_init_abi): Adjust gdbarch initialization.
2454
2455 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2456
2457 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2458 (am33_iterate_over_regset_sections): New.
2459 (am33_linux_init_osabi): Adjust gdbarch initialization.
2460
2461 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2462
2463 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2464 (mips_linux_iterate_over_regset_sections): New.
2465 (mips_linux_init_abi): Adjust gdbarch initialization.
2466 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2467 (mips64obsd_iterate_over_regset_sections): New.
2468 (mips64obsd_init_abi): Adjust.
2469 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2470 (mipsnbsd_iterate_over_regset_sections): New.
2471 (mipsnbsd_init_abi): Adjust.
2472
2473 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2474
2475 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2476 (m88k_iterate_over_regset_sections): New.
2477 (m88k_gdbarch_init): Adjust gdbarch initialization.
2478
2479 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2480
2481 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2482 (ia64_linux_iterate_over_regset_sections): New.
2483 (ia64_linux_init_abi): Adjust gdbarch initialization.
2484
2485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2486
2487 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2488 (m68kbsd_iterate_over_regset_sections): New.
2489 (m68kbsd_init_abi): Adjust gdbarch initialization.
2490 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2491 (m68k_linux_iterate_over_regset_sections): New.
2492 (m68k_linux_init_abi): Adjust gdbarch initialization.
2493
2494 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2495
2496 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2497 (m32r_linux_regset_from_core_section): Remove.
2498 (m32r_linux_iterate_over_regset_sections): New.
2499 (m32r_linux_init_abi): Adjust gdbarch initialization.
2500
2501 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2502
2503 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2504 (amd64obsd_iterate_over_regset_sections): New.
2505 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2506 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2507 Remove.
2508 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2509 regset_from_core_section initialization.
2510 * i386-tdep.c (i386_regset_from_core_section): Remove.
2511 (i386_iterate_over_regset_sections): New.
2512 (i386_gdbarch_init): Adjust gdbarch initialization.
2513 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2514 (i386_iterate_over_regset_sections): New prototype.
2515 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2516 Remove.
2517 (i386obsd_aout_iterate_over_regset_sections): New.
2518 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2519 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2520 targets.
2521 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2522 (amd64fbsd_init_abi): Call fbsd_init_abi.
2523 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2524 (i386fbsd4_init_abi): Call fbsd_init_abi.
2525 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2526 target method 'make_corefile_notes'.
2527 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2528
2529 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2530
2531 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2532 (hppa_hpux_iterate_over_regset_sections): New.
2533 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2534 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2535 (hppa_linux_iterate_over_regset_sections): New.
2536 (hppa_linux_init_abi): Adjust.
2537 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2538 (hppanbsd_iterate_over_regset_sections): New.
2539 (hppanbsd_init_abi): Adjust.
2540 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2541 (hppaobsd_iterate_over_regset_sections): New.
2542 (hppaobsd_init_abi): Adjust.
2543
2544 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2545
2546 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2547 (frv_linux_iterate_over_regset_sections): New.
2548 (frv_linux_init_abi): Adjust gdbarch initialization.
2549
2550 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2551
2552 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2553 (armbsd_iterate_over_regset_sections): New prototype.
2554 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2555 (armbsd_iterate_over_regset_sections): New.
2556 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2557 initialization.
2558
2559 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2560
2561 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2562 (alpha_linux_iterate_over_regset_sections): New.
2563 (alpha_linux_init_abi): Adjust gdbarch initialization.
2564 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2565 prototype.
2566 (alphanbsd_iterate_over_regset_sections): New prototype.
2567
2568 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2569
2570 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2571 Remove.
2572 (aarch64_linux_iterate_over_regset_sections): New.
2573 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2574
2575 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2576
2577 * fbsd-tdep.c: New file.
2578 * fbsd-tdep.h: New file.
2579 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2580 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2581 (ALLDEPFILES): Add fbsd-tdep.c.
2582
2583 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2584
2585 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2586 parameter.
2587 * gdbarch.h: Regenerate.
2588 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2589 iterator.
2590 (get_core_register_section): Add parameter 'regset' and use it, if
2591 set. Add parameter 'min_size' and verify the bfd section size
2592 against it.
2593 (get_core_registers_cb): Add parameter 'regset' and pass it to
2594 get_core_register section. For the "standard" register sections
2595 ".reg" and ".reg2", set an appropriate default for human_name.
2596 (get_core_registers): Don't abort when the gdbarch has an iterator
2597 but no regset_from_core_section. Add NULL/0 for parameters
2598 'regset'/'min_size' in calls to get_core_register_section.
2599 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2600 'regset' and use it instead of calling the
2601 regset_from_core_section gdbarch method.
2602 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2603 * i386-tdep.c (i386_supply_xstateregset)
2604 (i386_collect_xstateregset, i386_xstateregset): Moved to
2605 i386-linux-tdep.c.
2606 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2607 .reg-xstate.
2608 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2609 core file support only if the regset iterator hasn't been set.
2610 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2611 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2612 Moved from i386-tdep.c and renamed to *_linux*.
2613 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2614 each callback invocation. Allow any .reg-xstate size when reading
2615 from a core file.
2616 * amd64-tdep.c (amd64_supply_xstateregset)
2617 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2618 amd64-linux-tdep.c.
2619 (amd64_regset_from_core_section): Remove.
2620 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2621 install an amd64-specific regset_from_core_section gdbarch method.
2622 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2623 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2624 Moved from amd64-tdep.c and renamed to *_linux*.
2625 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2626 to each callback invocation. Allow any .reg-xstate size when
2627 reading from a core file.
2628 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2629 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2630 each callback invocation.
2631 (arm_linux_init_abi): No longer set the regset_from_core_section
2632 gdbarch method.
2633 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2634 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2635 each callback invocation.
2636 (ppc_linux_init_abi): No longer set the regset_from_core_section
2637 gdbarch method.
2638 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2639 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2640 (s390_regset_from_core_section): Remove.
2641 (s390_iterate_over_regset_sections): Add regset parameter to each
2642 callback invocation.
2643 (s390_gdbarch_init): No longer set the regset_from_core_section
2644 gdbarch method. Drop initialization of deleted tdep fields.
2645
2646 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2647
2648 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2649 (amd64_linux_iterate_over_regset_sections): New.
2650 (amd64_linux_init_abi_common): Don't install the regset section
2651 list, but the new iterator in gdbarch.
2652 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2653 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2654 (arm_linux_iterate_over_regset_sections): ...here. New function.
2655 (arm_linux_init_abi): Set iterator instead of section list.
2656 * corelow.c (get_core_registers_cb): New function, logic moved
2657 from...
2658 (get_core_registers): ...loop body here. Use new iterator method
2659 instead of walking through the regset section list.
2660 * gdbarch.sh: Remove 'core_regset_sections'. New method
2661 'iterate_over_regset_sections'. New typedef
2662 'iterate_over_regset_sections_cb'.
2663 * gdbarch.c: Regenerate.
2664 * gdbarch.h: Likewise.
2665 * i386-linux-tdep.c (i386_linux_regset_sections)
2666 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2667 Remove.
2668 (i386_linux_iterate_over_regset_sections): New.
2669 (i386_linux_init_abi): Don't choose a regset section list, but
2670 install new iterator in gdbarch.
2671 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2672 (linux_collect_regset_section_cb): New function, logic moved
2673 from...
2674 (linux_collect_thread_registers): ...loop body here. Use iterator
2675 method instead of walking through list.
2676 (linux_make_corefile_notes_1): Check for presence of iterator
2677 method instead of regset section list.
2678 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2679 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2680 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2681 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2682 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2683 (ppc_linux_init_abi): Don't choose from above regset section
2684 lists, but install new iterator in gdbarch.
2685 * regset.h (struct core_regset_section): Remove.
2686 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2687 have_linux_v1, have_linux_v2, and have_tdb.
2688 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2689 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2690 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2691 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2692 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2693 (s390_iterate_over_regset_sections): ...here. New function. Use
2694 new tdep fields.
2695 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2696 regset section lists, but install new iterator.
2697
2698 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2699
2700 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2701
2702 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2703
2704 * progspace.c (print_program_space): Don't prune program spaces
2705 before printing them.
2706
2707 2014-09-25 Pedro Alves <palves@redhat.com>
2708
2709 * infrun.c (user_visible_resume_ptid): Don't check
2710 singlestep_breakpoints_inserted_p.
2711
2712 2014-09-25 Pedro Alves <palves@redhat.com>
2713
2714 * breakpoint.c (should_be_inserted): Add debug output.
2715
2716 2014-09-25 Pedro Alves <palves@redhat.com>
2717
2718 * infrun.c (stepping_past_instruction_at)
2719 (clear_exit_convenience_vars): Point at infrun.h instead of
2720 inferior.h.
2721 (handle_signal_stop): Fix typo.
2722
2723 2014-09-24 Yao Qi <yao@codesourcery.com>
2724
2725 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2726 bitmask.
2727
2728 2014-09-22 Gary Benson <gbenson@redhat.com>
2729
2730 * target.c (target_stop): Updated comment.
2731
2732 2014-09-22 Gary Benson <gbenson@redhat.com>
2733
2734 * target/target.h (target_stop_ptid): Renamed as...
2735 (target_stop_and_wait): New function. Updated comment.
2736 All uses updated.
2737 (target_continue_ptid): Renamed as...
2738 (target_continue_no_signal): New function. Updated comment.
2739 All uses updated.
2740
2741 2014-09-22 Pedro Alves <palves@redhat.com>
2742
2743 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2744 and "auto" merged.
2745 * breakpoint.c (enum ugll_insert_mode): New enum.
2746 (always_inserted_mode): Now a plain boolean.
2747 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2748 (breakpoints_always_inserted_mode): Delete.
2749 (breakpoints_should_be_inserted_now): New function.
2750 (insert_breakpoints): Pass UGLL_INSERT to
2751 update_global_location_list instead of calling
2752 insert_breakpoint_locations manually.
2753 (create_solib_event_breakpoint_1): New, factored out from ...
2754 (create_solib_event_breakpoint): ... this.
2755 (create_and_insert_solib_event_breakpoint): Use
2756 create_solib_event_breakpoint_1 instead of calling
2757 insert_breakpoint_locations manually.
2758 (update_global_location_list): Change parameter type from boolean
2759 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2760 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2761 (update_global_location_list_nothrow): Change parameter type from
2762 boolean to enum ugll_insert_mode.
2763 (_initialize_breakpoint): "breakpoint always-inserted" option is
2764 now a boolean command. Update help text.
2765 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2766 (breakpoints_should_be_inserted_now): New declaration.
2767 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2768 Remove breakpoints_always_inserted_mode check.
2769 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2770 * remote.c (remote_start_remote): Likewise.
2771
2772 2014-09-22 Pedro Alves <palves@redhat.com>
2773
2774 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2775 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2776 Instead, pass UGLL_INSERT to update_global_location_list.
2777 (update_global_location_list): Change parameter type from boolean
2778 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2779 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2780 (create_solib_event_breakpoint_1): New, factored out from ...
2781 (create_solib_event_breakpoint): ... this.
2782 (create_and_insert_solib_event_breakpoint): Use
2783 create_solib_event_breakpoint_1 instead of calling
2784 insert_breakpoint_locations manually.
2785 (update_global_location_list): Handle UGLL_INSERT.
2786
2787 2014-09-22 Pedro Alves <palves@redhat.com>
2788
2789 * breakpoint.c (enum ugll_insert_mode): New enum.
2790 (update_global_location_list)
2791 (update_global_location_list_nothrow): Change parameter type from
2792 boolean to enum ugll_insert_mode. All callers adjusted.
2793
2794 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2795
2796 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2797 SystemTap support in GDB.
2798
2799 2014-09-19 Don Breazeal <donb@codesourcery.com>
2800
2801 * linux-nat.c (linux_handle_extended_wait): Call
2802 linux_ptrace_get_extended_event.
2803 (wait_lwp): Call linux_is_extended_waitstatus.
2804 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2805 and linux_is_extended_waitstatus.
2806 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2807 linux_ptrace_get_extended_event.
2808 (linux_ptrace_get_extended_event): New function.
2809 (linux_is_extended_waitstatus): New function.
2810 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2811 (linux_is_extended_waitstatus): New declarations.
2812
2813 2014-09-19 Yao Qi <yao@codesourcery.com>
2814
2815 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2816 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2817 comments. Callers update.
2818 (dwarf_decode_lines): Likewise.
2819 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2820 comments. Skip the line table if 'lowpc' is greater than
2821 'address'. Don't check
2822 dwarf2_per_objfile->has_section_at_zero.
2823
2824 2014-09-18 Doug Evans <dje@google.com>
2825
2826 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2827 * python/py-symtab.c (stpy_get_producer): New function.
2828 (symtab_object_getset): Add "producer" attribute.
2829
2830 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2831
2832 PR gdb/17384
2833 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2834 (do_captured_read_memory_integer): Remove.
2835 (safe_read_memory_integer): Use target_read_memory directly instead
2836 of catching errors in do_captured_read_memory_integer.
2837
2838 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2839
2840 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2841 not gdb/doc.
2842
2843 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2844
2845 * objc-lang.c (find_implementation_from_class): Remove dead code.
2846
2847 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2848
2849 PR cli/7233
2850 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2851 "fprintf_unfiltered (gdb_stdlog...)".
2852
2853 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2854
2855 PR breakpoints/12526
2856 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2857 val_bitsize.
2858 * breakpoint.c (watch_command_1): Use these fields to retain
2859 bitfield information.
2860 (extract_bitfield_from_watchpoint_value): New function.
2861 (watchpoint_check): Use it.
2862 (update_watchpoint): Use it. Optimize the address and length of a
2863 HW watchpoint pointing to a bitfield.
2864 * value.h (unpack_value_bitfield): New prototype.
2865 * value.c (unpack_value_bitfield): Make extern.
2866
2867 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2868
2869 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2870 x86-dregs.o.
2871 * gnu-nat.c (inf_threads): New function.
2872 * gnu-nat.h (inf_threads_ftype): New typedef.
2873 (inf_threads): New declaration.
2874 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2875 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2876 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2877 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2878 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2879 (i386_gnu_dr_get_control): New functions.
2880 (reg_addr): New structure.
2881 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2882 i386 debugging register hooks.
2883 * NEWS: Mention this.
2884
2885 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2886
2887 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2888 vector data transfer instructions.
2889 (arm_record_coproc_data_proc): Updated.
2890
2891 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2892
2893 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2894 arm_record_exreg_ld_st_insn.
2895 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2896 load/store insns.
2897
2898 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2899
2900 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2901 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2902 processing instructions.
2903
2904 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2905
2906 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2907 for advance SIMD struct ld/st insn.
2908 (thumb2_record_decode_insn_handler): Replace stub handler with
2909 thumb2_record_asimd_struct_ld_st.
2910
2911 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2912
2913 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2914 for asimd, vfp and coprocessor insns.
2915 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2916 and coprocessor insns.
2917 (thumb2_record_coproc_insn): New function.
2918 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2919 handlers.
2920 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2921 opcode 110 insns.
2922
2923 2014-09-13 Doug Evans <xdje42@gmail.com>
2924
2925 * NEWS: Mention new "queue-signal" command.
2926 * infcmd.c (queue_signal_command): New function.
2927 (_initialize_infcmd): Add new queue-signal command.
2928
2929 2014-09-13 Doug Evans <xdje42@gmail.com>
2930
2931 * linux-nat.c (wait_lwp): Add debugging printf.
2932 (linux_nat_wait_1): Ditto.
2933
2934 2014-09-12 Pedro Alves <palves@redhat.com>
2935
2936 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2937 (create_and_insert_solib_event_breakpoint): New functions.
2938 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2939 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2940 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2941 (remove_dbx_link_breakpoint): Delete function.
2942 (insert_dbx_link_bpt_in_file): Use
2943 create_and_insert_solib_event_breakpoint instead of
2944 deprecated_insert_raw_breakpoint.
2945 (procfs_wait): Don't check whether we hit __dbx_link here.
2946 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2947 here.
2948 * solib-irix.c (base_breakpoint): Delete global.
2949 (disable_break): Delete function.
2950 (enable_break): Use create_solib_event_breakpoint
2951 instead of deprecated_insert_raw_breakpoint.
2952 (irix_solib_handle_event): New function.
2953 (irix_solib_create_inferior_hook): Don't run the target or disable
2954 the mapping-complete breakpoint here.
2955 (_initialize_irix_solib): Install irix_solib_handle_event as
2956 so_ops->handle_event hook.
2957
2958 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2959 Ulrich Weigand  <uweigand@de.ibm.com>
2960
2961 PR tdep/17379
2962 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2963 instead of read_memory_unsigned_integer.
2964
2965 2014-09-12 Gary Benson <gbenson@redhat.com>
2966
2967 * nat/linux-waitpid.c: Include common-defs.h.
2968 [GDBSERVER]: Add FIXME comment.
2969 [!GDBSERVER]: Don't include defs.h or signal.h.
2970 (linux_debug) [!GDBSERVER]: Remove empty block.
2971
2972 2014-09-12 Gary Benson <gbenson@redhat.com>
2973
2974 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2975 Don't include defs.h or server.h.
2976
2977 2014-09-12 Gary Benson <gbenson@redhat.com>
2978
2979 * nat/linux-btrace.c: Include common-defs.h.
2980 Don't include defs.h, server.h or gdbthread.h.
2981 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2982
2983 2014-09-12 Gary Benson <gbenson@redhat.com>
2984
2985 * common/agent.c: Include common-defs.h.
2986 Don't include defs.h or server.h.
2987 * common/buffer.c: Likewise.
2988 * common/common-debug.c: Likewise.
2989 * common/common-utils.c: Likewise.
2990 * common/errors.c: Likewise.
2991 * common/filestuff.c: Likewise.
2992 * common/format.c: Likewise.
2993 * common/gdb_vecs.c: Likewise.
2994 * common/print-utils.c: Likewise.
2995 * common/ptid.c: Likewise.
2996 * common/rsp-low.c: Likewise.
2997 * common/signals.c: Likewise.
2998 * common/vec.c: Likewise.
2999 * common/xml-utils.c: Likewise.
3000 * nat/linux-osdata.c: Likewise.
3001 * nat/linux-procfs.c: Likewise.
3002 * nat/linux-ptrace.c: Likewise.
3003 * nat/mips-linux-watch.c: Likewise.
3004 * target/waitstatus.c: Likewise.
3005
3006 2014-09-12 Tom Tromey <tromey@redhat.com>
3007 Gary Benson <gbenson@redhat.com>
3008
3009 * common/common-regcache.h: New file.
3010 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3011 * regcache.h: Include common-regcache.h.
3012 (regcache_read_pc): Don't declare.
3013 * regcache.c (get_thread_regcache_for_ptid): New function.
3014 * nat/linux-btrace.c: Don't include regcache.h.
3015 Include common-regcache.h.
3016 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3017
3018 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3019
3020 * regcache.h (struct regset): Declare.
3021
3022 2014-09-11 Pedro Alves <palves@redhat.com>
3023
3024 PR gdb/17347
3025 * main.c: Include "infrun.h".
3026 (catch_command_errors, catch_command_errors_const): Wait for the
3027 foreground command to complete.
3028 * top.c (maybe_wait_sync_command_done): New function, factored out
3029 from ...
3030 (maybe_wait_sync_command_done): ... here.
3031 * top.h (maybe_wait_sync_command_done): New declaration.
3032
3033 2014-09-11 Tom Tromey <tromey@redhat.com>
3034 Gary Benson <gbenson@redhat.com>
3035
3036 * common/symbol.h: New file.
3037 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3038 * minsyms.c (find_minimal_symbol_address): New function.
3039 * common/agent.c: Include common/symbol.h.
3040 [!GDBSERVER]: Don't include objfiles.h.
3041 (agent_look_up_symbols): Use find_minimal_symbol_address.
3042
3043 2014-09-11 Gary Benson <gbenson@redhat.com>
3044
3045 * target/target.h (target_stop_ptid, target_continue_ptid):
3046 Declare.
3047 * target.c (target_stop_ptid, target_continue_ptid): New
3048 functions.
3049 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3050 (agent_run_command): Always use target_stop_ptid and
3051 target_continue_ptid.
3052
3053 2014-09-11 Tom Tromey <tromey@redhat.com>
3054 Gary Benson <gbenson@redhat.com>
3055
3056 * target/target.h: New file.
3057 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3058 * target.h: Include target/target.h.
3059 (target_read_memory, target_write_memory): Don't declare.
3060 * target.c (target_read_uint32): New function.
3061 * common/agent.c: Include target/target.h.
3062 [!GDBSERVER]: Don't include target.h.
3063 (helper_thread_id): Type changed to uint32_t.
3064 (agent_get_helper_thread_id): Use target_read_uint32.
3065 (agent_run_command): Always use target_read_memory and
3066 target_write_memory.
3067 (agent_capability): Type changed to uint32_t.
3068 (agent_capability_check): Use target_read_uint32.
3069
3070 2014-09-11 Gary Benson <gbenson@redhat.com>
3071
3072 * common/common-debug.h (show_debug_regs): Declare.
3073 * common/common-debug.c (show_debug_regs): Define.
3074 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3075 all uses with show_debug_regs. Replace all uses that considered
3076 debug_hw_points as a multi-value integer with straight boolean
3077 uses.
3078 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3079 with show_debug_regs.
3080 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3081 all uses with show_debug_regs.
3082 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3083 uses with show_debug_regs.
3084
3085 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3086
3087 * findvar.c (address_from_register): Handle targets requiring
3088 a special conversion routine even for plain pointer types.
3089
3090 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3091
3092 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3093 (store_register): Do not call exec_one_dummy_insn.
3094
3095 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3096
3097 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3098 dereference it first. Use value_enclosing_type instead of
3099 value_type.
3100 (ada_array_length): Likewise.
3101
3102 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3103
3104 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3105 Adjust function implementation and documentation accordingly.
3106 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3107 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3108 Update call to ada_value_ptr_subscript.
3109
3110 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3111
3112 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3113 instead of VAL's type.
3114
3115 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3116
3117 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3118
3119 2014-09-09 Doug Evans <xdje42@gmail.com>
3120
3121 PR guile/17367
3122 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3123 last parameter to pkg-config, not first.
3124 * configure.ac: Pass --with-guile provided pkg-config path to
3125 GDB_GUILE_PROGRAM_NAMES.
3126 * configure: Regenerate.
3127
3128 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3129
3130 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3131 Bertazi".
3132
3133 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3134
3135 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3136 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3137 the list of sections determining GDB_OSABI_IRIX.
3138
3139 2014-09-09 James Hogan <james.hogan@imgtec.com>
3140
3141 * MAINTAINERS (Write After Approval): Add "James Hogan".
3142
3143 2014-09-09 James Hogan <james.hogan@imgtec.com>
3144
3145 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3146
3147 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3148
3149 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3150
3151 2014-09-08 Doug Evans <xdje42@gmail.com>
3152
3153 PR 17247
3154 * guile.c: #include <signal.h>.
3155 (_initialize_guile): Block SIGCHLD while initializing Guile.
3156
3157 Replaces the following, which is reverted.
3158
3159 2014-07-26 Doug Evans <xdje42@gmail.com>
3160
3161 PR 17185
3162 * configure.ac: Add check for header gc/gc.h.
3163 Add check for function setenv.
3164 * configure: Regenerate.
3165 * config.in: Regenerate.
3166 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3167
3168 2014-09-08 Doug Evans <xdje42@gmail.com>
3169
3170 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3171 with named constant. Fix style of pointer comparison.
3172 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3173
3174 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3175
3176 PR gdb/17035
3177 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3178 decide whether we display the command on "show user".
3179 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3180 printing command name.
3181 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3182 * cli/cli-decode.c (cli_user_command_p): Create helper function
3183 to verify whether cmd_list_element is a user-defined command.
3184
3185 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3186
3187 PR python/17355
3188 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3189 Fix goto out of TRY_CATCH.
3190
3191 2014-09-06 Doug Evans <xdje42@gmail.com>
3192 Tom Tromey <tromey@redhat.com>
3193
3194 PR 15276
3195 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3196 $_any_caller_matches.
3197 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3198 * python/lib/gdb/function/caller_is.py: New file.
3199
3200 2014-09-06 Doug Evans <xdje42@gmail.com>
3201
3202 * infcmd.c (program_info): Fix typo.
3203
3204 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3205
3206 PR gdb/17235
3207 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3208 'number'. New variable 'has_digit'. Rewrite code to deal with
3209 subexpressions on SDT probes.
3210
3211 2014-09-04 Pedro Alves <palves@redhat.com>
3212
3213 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3214 the input is only one character long.
3215
3216 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3217
3218 PR fortran/17237
3219 * f-valprint.c (f_val_print): Specify the correct print option to
3220 use when printing integer values.
3221
3222 2014-09-04 Gary Benson <gbenson@redhat.com>
3223
3224 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3225 Remove code to cope with LWPs wrapped as PIDs.
3226 Add assertions to ensure no wrapped LWPs are passed.
3227
3228 2014-09-04 Pedro Alves <palves@redhat.com>
3229
3230 * value.c (value_ranges_copy_adjusted): New function, factored out
3231 from ...
3232 (value_contents_copy_raw): ... here.
3233 (unpack_value_bits_as_long_1): Rename back to ...
3234 (unpack_bits_as_long): ... this. Remove 'original_value' and
3235 'result' parameters. Change return type to LONGEST.
3236 (unpack_value_bits_as_long): Delete.
3237 (unpack_value_field_as_long_1): Delete.
3238 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3239 (unpack_value_bitfield): New function.
3240 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3241 (value_fetch_lazy): Use unpack_value_bitfield.
3242 * value.h (unpack_value_bits_as_long): Delete declaration.
3243
3244 2014-09-03 Sasha Smundak <asmundak@google.com>
3245
3246 * python/py-frame.c (frapy_read_register): New function.
3247
3248 2014-09-03 James Hogan <james.hogan@imgtec.com>
3249
3250 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3251 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3252
3253 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3254
3255 PR python/16699
3256 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3257 function.
3258 (add_cmd): Set "completer_handle_brkchars" to NULL.
3259 * cli/cli-decode.h (struct cmd_list_element)
3260 <completer_handle_brkchars>: New field.
3261 * command.h (completer_ftype_void): New typedef.
3262 (set_cmd_completer_handle_brkchars): New prototype.
3263 * completer.c (set_gdb_completion_word_break_characters): New
3264 function.
3265 (complete_line_internal): Call "completer_handle_brkchars"
3266 callback from command.
3267 * completer.h: Include "command.h".
3268 (set_gdb_completion_word_break_characters): New prototype.
3269 * python/py-cmd.c (cmdpy_completer_helper): New function.
3270 (cmdpy_completer_handle_brkchars): New function.
3271 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3272 (cmdpy_init): Set completer_handle_brkchars to
3273 cmdpy_completer_handle_brkchars.
3274
3275 2014-09-03 Gary Benson <gbenson@redhat.com>
3276
3277 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3278 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3279 Loop conditions changed to equivalent form.
3280 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3281 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3282 ALL_DEBUG_ADDRESS_REGISTERS.
3283
3284 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3285
3286 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3287 description fix.
3288
3289 2014-09-02 Doug Evans <dje@google.com>
3290
3291 * typeprint.c (find_global_typedef): Fix comment.
3292
3293 2014-09-02 Gary Benson <gbenson@redhat.com>
3294
3295 * i386-nat.h: Renamed as...
3296 * x86-nat.h: New file. All type, function and variable name
3297 prefixes changed from "i386_" to "x86_". All references updated.
3298 * i386-nat.c: Renamed as...
3299 * x86-nat.c: New file. All type, function and variable name
3300 prefixes changed from "i386_" to "x86_". All references updated.
3301 * common/i386-xstate.h: Renamed as...
3302 * common/x86-xstate.h: New file. All type, function and variable
3303 name prefixes changed from "i386_" to "x86_". All references
3304 updated.
3305 * nat/i386-cpuid.h: Renamed as...
3306 * nat/x86-cpuid.h: New file. All type, function and variable name
3307 prefixes changed from "i386_" to "x86_". All references updated.
3308 * nat/i386-gcc-cpuid.h: Renamed as...
3309 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3310 name prefixes changed from "i386_" to "x86_". All references
3311 updated.
3312 * nat/i386-dregs.h: Renamed as...
3313 * nat/x86-dregs.h: New file. All type, function and variable name
3314 prefixes changed from "i386_" to "x86_". All references updated.
3315 * nat/i386-dregs.c: Renamed as...
3316 * nat/x86-dregs.c: New file. All type, function and variable name
3317 prefixes changed from "i386_" to "x86_". All references updated.
3318
3319 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3320
3321 * varobj.c (_initialize_varobj): Move to the end of file.
3322
3323 2014-08-29 Gary Benson <gbenson@redhat.com>
3324
3325 * common/common-exceptions.h: New file.
3326 * common/common-exceptions.c: Likewise.
3327 * Makefile.in (SFILES): Add common/common-exceptions.c.
3328 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3329 (COMMON_OBS): Add common-exceptions.o.
3330 (common-exceptions.o): New rule.
3331 * exceptions.h (common-exceptions.h): Include.
3332 (gdb_setjmp.h): Do not include.
3333 (return_reason): Moved to common-exceptions.h.
3334 (enum return_reason): Likewise.
3335 (RETURN_MASK): Likewise.
3336 (typedef return_mask): Likewise.
3337 (enum errors): Likewise.
3338 (struct gdb_exception): Likewise.
3339 (exceptions_state_mc_init): Likewise.
3340 (exceptions_state_mc_action_iter): Likewise.
3341 (exceptions_state_mc_action_iter_1): Likewise.
3342 (TRY_CATCH): Likewise.
3343 (throw_exception): Likewise.
3344 (throw_verror): Likewise.
3345 (throw_vquit): Likewise.
3346 (throw_error): Likewise.
3347 (throw_quit): Likewise.
3348 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3349 (enum catcher_action): Likewise.
3350 (struct catcher): Likewise.
3351 (current_catcher): Likewise.
3352 (catcher_list_size): Likewise.
3353 (exceptions_state_mc_init): Likewise.
3354 (catcher_pop): Likewise.
3355 (exceptions_state_mc): Likewise.
3356 (exceptions_state_mc_action_iter): Likewise.
3357 (exceptions_state_mc_action_iter_1): Likewise.
3358 (throw_exception): Likewise.
3359 (exception_messages): Likewise.
3360 (exception_messages_size): Likewise.
3361 (throw_it): Likewise.
3362 (throw_verror): Likewise.
3363 (throw_vquit): Likewise.
3364 (throw_error): Likewise.
3365 (throw_quit): Likewise.
3366 (prepare_to_throw_exception): New function.
3367
3368 2014-08-29 Gary Benson <gbenson@redhat.com>
3369
3370 * common/gdb_setjmp.h: New file.
3371 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3372 * configure.ac: Move sigsetjmp check...
3373 * common/common.m4: ...here.
3374 * configure: Regenerate.
3375 * cp-support.c (SIGJMP_BUF): Delete.
3376 (SIGSETJMP): Likewise.
3377 (SIGLONGJMP): Likewise.
3378 * exceptions.h (gdb_setjmp.h): Include.
3379 (setjmp.h): Do not include.
3380 (EXCEPTIONS_SIGJMP_BUF): Delete.
3381 (EXCEPTIONS_SIGSETJMP): Likewise.
3382 (EXCEPTIONS_SIGLONGJMP): Likewise.
3383 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3384 from gdb_setjmp.h.
3385 * exceptions.c: Likewise.
3386
3387 2014-08-29 Gary Benson <gbenson@redhat.com>
3388
3389 * cleanups.h: Moved to...
3390 * common/cleanups.h: New file.
3391 * cleanups.c: Moved to...
3392 * common/cleanups.c: New file. Include common-defs.h and
3393 cleanups.h. Do not include defs.h.
3394 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3395 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3396 (cleanups.o): New rule.
3397
3398 2014-08-29 Gary Benson <gbenson@redhat.com>
3399
3400 * common/errors.h (internal_warning): New declaration.
3401 (internal_vwarning): Likewise.
3402 * common/errors.c (internal_warning): New function.
3403 * utils.h (internal_warning): Don't declare.
3404 (internal_vwarning): Likewise.
3405 * utils.c (internal_warning): Removed.
3406
3407 2014-08-29 Gary Benson <gbenson@redhat.com>
3408
3409 * main.c (captured_main): Use warning during startup.
3410 Prefix startup warning messages with command name.
3411
3412 2014-08-29 Gary Benson <gbenson@redhat.com>
3413
3414 * main.c (captured_main): Handle usage errors with error.
3415
3416 2014-08-29 Gary Benson <gbenson@redhat.com>
3417
3418 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3419 exit pair with a call to error. Wrap the message with _().
3420
3421 2014-08-29 Gary Benson <gbenson@redhat.com>
3422
3423 * main.c (captured_main): Replace a fprintf/exit
3424 pair with a call to error. Wrap the message with _().
3425
3426 2014-08-29 Gary Benson <gbenson@redhat.com>
3427
3428 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3429 pairs with calls to error. Wrap the message with _().
3430
3431 2014-08-29 Gary Benson <gbenson@redhat.com>
3432
3433 * utils.c (vwarning): Protect calls to target_terminal_ours
3434 and wrap_here.
3435
3436 2014-08-29 Gary Benson <gbenson@redhat.com>
3437
3438 * exceptions.c (print_flush): Protect calls to
3439 target_terminal_ours and wrap_here.
3440
3441 2014-08-29 Gary Benson <gbenson@redhat.com>
3442
3443 * utils.h (filtered_printing_initialized): New declaration.
3444 * utils.c (abort_with_message): New function.
3445 (internal_vproblem): Use abort_with_message for first level
3446 recursive internal problems, and if gdb_stderr is not set up.
3447 Protect calls to target_terminal_ours, begin_line and query.
3448
3449 2014-08-28 Doug Evans <dje@google.com>
3450
3451 * symtab.c (in_prologue): Move definition to better spot.
3452 (skip_prologue_using_sal): Ditto.
3453
3454 2014-08-28 Doug Evans <dje@google.com>
3455
3456 * symtab.c (find_function_start_sal): Move definition to better spot.
3457
3458 2014-08-28 Yao Qi <yao@codesourcery.com>
3459
3460 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3461 found_stack_adjust in forward scan. Remove condition check
3462 on found_stack_adjust which is always true. Indent the code.
3463
3464 2014-08-28 Yao Qi <yao@codesourcery.com>
3465
3466 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3467 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3468 (dwarf_decode_lines): Remove argument
3469 want_line_info. Remove condition check on want_line_info.
3470 Callers update.
3471
3472 2014-08-27 Doug Evans <dje@google.com>
3473
3474 * dwarf2read.c (dwarf_record_line): Fix typo.
3475
3476 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3477
3478 * target.h (struct target_ops::to_terminal_save_ours): Remove
3479 declaration.
3480 (target_terminal_save_ours): Remove macro.
3481 * target-delegates.c: Regenerate.
3482 * inf-child.c (inf_child_target): Don't set the nonexistent
3483 field to_terminal_save_ours.
3484 * inferior.h (child_terminal_save_ours): Remove declaration.
3485 * terminal.h (gdb_save_tty_state): New declaration.
3486 * inflow.c (child_terminal_save_ours): Rename to ...
3487 (gdb_save_tty_state): ... this.
3488 * tui/tui.c: Include terminal.h.
3489 (tui_enable): Use gdb_save_tty_state instead of
3490 target_terminal_save_ours.
3491 (tui_disable): Likewise.
3492
3493 2014-08-25 Doug Evans <dje@google.com>
3494
3495 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3496 Pass NULL instead of 0 for context pointer.
3497
3498 2014-08-25 Yao Qi <yao@codesourcery.com>
3499
3500 * dwarf2read.c: Fix grammatical error.
3501
3502 2014-08-24 Yao Qi <yao@codesourcery.com>
3503
3504 * dwarf2read.c (scan_partial_symbols): Update comments.
3505 Rename argument 'need_pc' with 'set_addrmap'.
3506 (add_partial_namespace): Rename argument 'need_pc' with
3507 'set_addrmap'.
3508 (add_partial_module): Likewise.
3509 (add_partial_subprogram): Likewise. Update comments.
3510 (dwarf2_name): Fix typo.
3511
3512 2014-08-22 Doug Evans <dje@google.com>
3513
3514 PR 17276
3515 * dwarf2read.c (dwarf_record_line_p): New function.
3516 (dwarf_decode_lines_1): Ignore subsequent line number entries
3517 for the same line if any entry had a non-zero discriminator.
3518
3519 2014-08-22 Doug Evans <dje@google.com>
3520
3521 * buildsym.h (record_line_ftype): New typedef.
3522 (record_line): Use it.
3523 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3524 (dwarf_decode_lines_1): Call them.
3525
3526 2014-08-22 Yao Qi <yao@codesourcery.com>
3527
3528 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3529 (ctf_end): Remove code.
3530
3531 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3532
3533 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3534 (linux_make_corefile_notes): call update_thread_list, protected against
3535 exceptions.
3536
3537 2014-08-21 Pedro Alves <palves@redhat.com>
3538
3539 * infcmd.c (attach_command): Remove comment.
3540
3541 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3542
3543 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3544 unsigned LONGEST to ULONGEST.
3545
3546 2014-08-20 Pedro Alves <palves@redhat.com>
3547
3548 * Makefile.in (check-read1): New rule.
3549
3550 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3551
3552 * value.c (value_from_contents_and_address): Strip resolved_type's
3553 typedef layers before checking its TYPE_DATA_LOCATION.
3554
3555 2014-08-20 Pedro Alves <palves@redhat.com>
3556
3557 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3558
3559 2014-08-20 Yao Qi <yao@codesourcery.com>
3560
3561 * amd64-tdep.c (amd64_classify): Add a blank line after the
3562 example. Move "*/" to a new line.
3563 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3564 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3565 * dwarf2read.c (psymtab_include_file_name): Likewise.
3566
3567 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3568 Pedro Alves <palves@redhat.com>
3569
3570 PR symtab/14604
3571 PR symtab/14605
3572 * ada-lang.c (coerce_unspec_val_to_type): Use
3573 value_contents_copy_raw.
3574 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3575 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3576 * cp-valprint.c (cp_print_value_fields): Let the common printing
3577 code handle optimized out values.
3578 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3579 * d-valprint.c (dynamic_array_type): Use
3580 value_bits_any_optimized_out.
3581 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3582 check_any_valid fields.
3583 (check_pieced_value_bits): Delete and inline ...
3584 (check_pieced_synthetic_pointer): ... here.
3585 (check_pieced_value_validity): Delete.
3586 (check_pieced_value_invalid): Delete.
3587 (pieced_value_funcs): Remove check_validity and check_any_valid
3588 fields.
3589 (read_pieced_value): Use mark_value_bits_optimized_out.
3590 (write_pieced_value): Switch to use
3591 mark_value_bytes_optimized_out.
3592 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3593 of assuming the whole value is optimized out.
3594 * findvar.c (read_frame_register_value): Remove special handling
3595 of optimized out registers.
3596 (value_from_register): Use mark_value_bytes_optimized_out.
3597 * frame-unwind.c (frame_unwind_got_optimized): Use
3598 mark_value_bytes_optimized_out.
3599 * jv-valprint.c (java_value_print): Adjust.
3600 (java_print_value_fields): Let the common printing code handle
3601 optimized out values.
3602 * mips-tdep.c (mips_print_register): Remove special handling of
3603 optimized out registers.
3604 * opencl-lang.c (lval_func_check_validity): Delete.
3605 (lval_func_check_any_valid): Delete.
3606 (opencl_value_funcs): Remove check_validity and check_any_valid
3607 fields.
3608 * p-valprint.c (pascal_object_print_value_fields): Let the common
3609 printing code handle optimized out values.
3610 * stack.c (read_frame_arg): Remove special handling of optimized
3611 out values. Fetch both VAL and ENTRYVAL before comparing
3612 contents. Adjust to value_available_contents_eq rename.
3613 * valprint.c (valprint_check_validity)
3614 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3615 (val_print_array_elements): Adjust.
3616 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3617 (value_bits_any_optimized_out): New function.
3618 (value_entirely_covered_by_range_vector): New function, factored
3619 out from value_entirely_unavailable.
3620 (value_entirely_unavailable): Reimplement.
3621 (value_entirely_optimized_out): New function.
3622 (insert_into_bit_range_vector): New function, factored out from
3623 mark_value_bits_unavailable.
3624 (mark_value_bits_unavailable): Reimplement.
3625 (struct ranges_and_idx): New struct.
3626 (find_first_range_overlap_and_match): New function, factored out
3627 from value_available_contents_bits_eq.
3628 (value_available_contents_bits_eq): Rename to ...
3629 (value_contents_bits_eq): ... this. Check both unavailable
3630 contents and optimized out contents.
3631 (value_available_contents_eq): Rename to ...
3632 (value_contents_eq): ... this.
3633 (allocate_value_lazy): Remove reference to the old optimized_out
3634 boolean.
3635 (allocate_optimized_out_value): Use
3636 mark_value_bytes_optimized_out.
3637 (require_not_optimized_out): Adjust to check whether the
3638 optimized_out vec is empty.
3639 (ranges_copy_adjusted): New function, factored out from
3640 value_contents_copy_raw.
3641 (value_contents_copy_raw): Also copy the optimized out ranges.
3642 Assert the destination ranges aren't optimized out.
3643 (value_contents_copy): Update comment, remove call to
3644 require_not_optimized_out.
3645 (value_contents_equal): Adjust to check whether the optimized_out
3646 vec is empty.
3647 (set_value_optimized_out, value_optimized_out_const): Delete.
3648 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3649 New functions.
3650 (value_entirely_optimized_out, value_bits_valid): Delete.
3651 (value_copy): Take a VEC copy of the 'optimized_out' field.
3652 (value_primitive_field): Remove special handling of optimized out.
3653 (value_fetch_lazy): Assert that lazy values have no unavailable
3654 regions. Use value_bits_any_optimized_out. Remove some special
3655 handling for optimized out values.
3656 * value.h: Add intro comment about <optimized out> and
3657 <unavailable>.
3658 (struct lval_funcs): Remove check_validity and check_any_valid
3659 fields.
3660 (set_value_optimized_out, value_optimized_out_const): Remove.
3661 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3662 New declarations.
3663 (value_bits_any_optimized_out): New declaration.
3664 (value_bits_valid): Delete declaration.
3665 (value_available_contents_eq): Rename to ...
3666 (value_contents_eq): ... this, and extend comments.
3667
3668 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3669
3670 Fix -fsanitize=address on unreadable inferior strings.
3671 * valprint.c (val_print_string): Fix access before BUFFER.
3672
3673 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3674
3675 * target.c (target_struct_size): Remove.
3676 (target_struct_allocsize): Remove.
3677 (DEFAULT_ALLOCSIZE): Remove.
3678 (target_ops_p): New typedef.
3679 (DEF_VEC_P (target_ops_p)): New vector type.
3680 (target_structs): Change type to VEC (target_ops_p).
3681 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3682 (find_default_run_target): Rewrite for loop following changes to
3683 target_structs.
3684
3685 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3686
3687 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3688 Adjust code accordingly. Adjust function description comment.
3689
3690 2014-08-19 Yao Qi <yao@codesourcery.com>
3691
3692 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3693 types.
3694
3695 2014-08-19 Alan Modra <amodra@gmail.com>
3696
3697 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3698 * config.in: Regenerate.
3699 * configure: Regenerate.
3700
3701 2014-08-19 Tom Tromey <tromey@redhat.com>
3702 Gary Benson <gbenson@redhat.com>
3703
3704 * common/common-debug.h: New file.
3705 * common/common-debug.c: Likewise.
3706 * debug.c: Likewise.
3707 * Makefile.in (SFILES): Add common/common-debug.c.
3708 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3709 (COMMON_OBS): Add common-debug.o and debug.o.
3710 (common-debug.o): New rule.
3711 * common/common-defs.h: Include common-debug.h.
3712 * common/agent.c (debug_agent_printf): New function.
3713 (DEBUG_AGENT): Redefine.
3714 * nat/i386-dregs.c (debug_printf): Undefine.
3715
3716 2014-08-19 Gary Benson <gbenson@redhat.com>
3717
3718 * common/common-defs.h: Include print-utils.h.
3719 * utils.h: Do not include print-utils.h.
3720
3721 2014-08-19 Tom Tromey <tromey@redhat.com>
3722 Gary Benson <gbenson@redhat.com>
3723
3724 * common/common-types.h: New file.
3725 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3726 * common/common-defs.h: Include common-types.h.
3727 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3728 (ULONGEST): Remove.
3729
3730 2014-08-19 Tom Tromey <tromey@redhat.com>
3731 Gary Benson <gbenson@redhat.com>
3732
3733 * common/errors.h: New file.
3734 * common/errors.c: Likewise.
3735 * Makefile.in (SFILES): Add common/errors.c.
3736 (HFILES_NO_SRCDIR): Add common/errors.h.
3737 (COMMON_OBS): Add errors.o.
3738 (errors.o): New rule.
3739 * common/common-defs.h: Include errors.h.
3740 * utils.h (perror_with_name, error, verror, warning, vwarning):
3741 Don't declare.
3742 * common/common-utils.h: (malloc_failure, internal_error):
3743 Likewise.
3744
3745 2014-08-19 Gary Benson <gbenson@redhat.com>
3746
3747 * utils.c (internal_vproblem): Always print the message.
3748
3749 2014-08-18 Doug Evans <dje@google.com>
3750
3751 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3752
3753 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3754
3755 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3756 Return 0 if TYPE is dynamic.
3757 (print_range): Add handling of dynamic ranges.
3758
3759 2014-08-18 Keven Boell <keven.boell@intel.com>
3760 Joel Brobecker <brobecker@adacore.com>
3761
3762 * gdbtypes.h (struct main_type): Add field "data_location".
3763 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3764 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3765 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3766 a dynamic data location.
3767 (resolve_dynamic_type): Add DW_AT_data_location handling.
3768 (copy_recursive, copy_type): Copy the data_location information
3769 when present.
3770 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3771 * value.c (value_from_contents_and_address): Add
3772 DW_AT_data_location handling.
3773
3774 2014-08-18 Keven Boell <keven.boell@intel.com>
3775 Joel Brobecker <brobecker@adacore.com>
3776
3777 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3778 field "get_object_address".
3779 * dwarf2expr.c (execute_stack_op): Add handling for
3780 DW_OP_push_object_address.
3781 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3782 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3783 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3784 (dwarf_expr_get_obj_addr): New function.
3785 (dwarf_expr_ctx_funcs): Add get_object_address field.
3786 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3787 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3788 (dwarf2_evaluate_property): Add parameter "address". Use it.
3789 (needs_get_obj_addr): New function.
3790 (needs_frame_ctx_funcs): Add get_object_address field.
3791 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3792 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3793 (resolve_dynamic_array): Likewise.
3794
3795 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3796
3797 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3798 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3799 fixed value for records and unions for which some GNAT encodings
3800 are present.
3801
3802 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3803
3804 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3805 rewrite to avoid "else if" and "else" constructs. Should be
3806 a no-op in practice.
3807
3808 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3809
3810 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3811 of lexical block.
3812
3813 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3814
3815 PR c++/17132
3816 * eval.c: Update all calls to find_overload_match.
3817 * valarith.c: Likewise.
3818 (value_user_defined_cpp_op, value_user_defined_op): New
3819 argument NOSIDE. Update all callers.
3820 * valops.c (find_overload_match): New argument NOSIDE.
3821 * value.h (find_overload_match): Update signature.
3822
3823 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3824
3825 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3826 'items' methods instead of 'iteritems' method on dictionaries.
3827
3828 2014-08-15 Doug Evans <dje@google.com>
3829
3830 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3831 closer to use.
3832
3833 2014-08-15 Doug Evans <dje@google.com>
3834
3835 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3836
3837 2014-08-15 Doug Evans <dje@google.com>
3838
3839 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3840
3841 2014-08-15 Doug Evans <dje@google.com>
3842
3843 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3844 unused.
3845
3846 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3847
3848 * dcache.h: Include target.h, to avoid compile time warnings.
3849
3850 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3851
3852 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3853 frame_info" partial declaration.
3854 * gdbarch.h: Regenerate.
3855
3856 2014-08-15 Yao Qi <yao@codesourcery.com>
3857
3858 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3859 Add parameter 'decode_for_pst_p'. Callers update.
3860
3861 2014-08-13 Yao Qi <yao@codesourcery.com>
3862
3863 PR build/17104
3864 * configure.ac: Use local variable 'pos'.
3865 * configure: Regenerated.
3866
3867 2014-08-11 Doug Evans <dje@google.com>
3868
3869 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3870 message, it is redundant with "Reading symbols from ..." message.
3871
3872 2014-08-10 Doug Evans <xdje42@gmail.com>
3873
3874 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3875
3876 2014-08-09 Yao Qi <yao@codesourcery.com>
3877
3878 PR remote/9053
3879 * remote.c (remote_xfer_partial): Remove dead code.
3880
3881 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3882
3883 * ia64-linux-tdep.c: Include "regset.h".
3884 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3885 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3886 (ia64_linux_supply_fpregset): New function.
3887 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3888 (ia64_linux_regset_from_core_section): New function.
3889 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3890 method.
3891
3892 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3893
3894 * m68klinux-tdep.c: Include "regset.h".
3895 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3896 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3897 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3898 (m68k_linux_regset_from_core_section): New function.
3899 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3900 method.
3901
3902 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3903
3904 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3905 function. Move logic to...
3906 (tilegx_linux_regmap): ... this new register map.
3907 (tilegx_linux_regset): Refer to register map, replace supply
3908 method by regcache_supply_regset, and add collect method.
3909 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3910 TILEGX_FIRST_EASY_REGNUM.
3911
3912 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3913
3914 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3915 that calls regcache_supply_regset and handles the EPC register
3916 separately. Move main logic to...
3917 (score7_linux_gregmap): ... this new register map.
3918 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3919 (score7_linux_gregset): Refer to register map. Add collect method.
3920 (score7_linux_regset_from_core_section): Replace
3921 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3922 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3923 (struct regset): Delete unused forward declaraction.
3924 (struct pt_regs): Delete structure definition.
3925 (elf_gregset_t): Delete typedef.
3926
3927 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3928
3929 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3930 (nios2_core_regset): Add collect method.
3931
3932 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3933
3934 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3935 platform-independent and don't write to read-only input buffer.
3936 (m32r_linux_collect_gregset): New function.
3937 (m32r_linux_gregset): Add collect method.
3938
3939 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3940
3941 * hppa-linux-tdep.c (greg_map): Rename to...
3942 (hppa_linux_gregmap): ... this. Also convert to
3943 regcache_map_entry format.
3944 (hppa_linux_supply_regset): Delete function.
3945 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3946 (hppa_linux_fpregmap): ... this new register map.
3947 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3948 register map, replace supply method by regcache_supply_regset, and
3949 add collect method regcache_collect_regset.
3950
3951 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3952
3953 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3954 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3955 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3956 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3957 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3958 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3959 (frv_linux_supply_gregset): Replace main logic by call to
3960 regcache_supply_regset, but keep clearing gr32-gr63.
3961 (frv_linux_supply_fpregset): Delete function.
3962 (frv_linux_gregset): Refer to appropriate register map and add
3963 regcache_collect_regset as the collect method.
3964 (frv_linux_fpregset): Likewise. Also exchange the supply method
3965 by regcache_supply_regset.
3966
3967 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3968
3969 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3970 by call to alpha_supply_int_regs.
3971 (alpha_linux_collect_gregset): New function.
3972 (alpha_linux_supply_fpregset): Replace logic by call to
3973 alpha_supply_fp_regs.
3974 (alpha_linux_collect_fpregset): New function.
3975 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3976
3977 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3978
3979 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3980 by call to regcache_collect_regset.
3981 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3982 instead of aarch64_linux_supply_gregset/_fpregset.
3983 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3984 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3985 header file instead.
3986 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3987 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3988 functions. Move logic to ...
3989 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3990 register maps.
3991 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3992 refer to new register maps, replace *_regset_from_core by
3993 regcache_supply_regset, and also use regcache_collect_regset.
3994 * aarch64-linux-tdep.h: Include "regset.h".
3995 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3996 Delete prototypes.
3997 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3998 macros, moved from C source file.
3999 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4000 variable declarations.
4001
4002 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4003
4004 * s390-linux-nat.c: Include "regset.h".
4005 (regmap_gregset): Delete macro.
4006 (s390_64_regmap_gregset): New register map for
4007 regcache_supply/_collect_regset.
4008 (s390_64_gregset): New regset.
4009 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4010 (regmap_fpregset): Delete macro.
4011 (s390_native_supply, s390_native_collect): Delete functions.
4012 (supply_gregset, fill_gregset): Replace s390-specific regmap
4013 handling by a call to regcache_supply/_collect_regset.
4014 (supply_fpregset, fill_fpregset): Call regcache_supply/
4015 _collect_regset instead of s390_native_supply/_collect.
4016 (fetch_regset, store_regset): Likewise. Also change the last
4017 parameter to a regset instead of a regmap.
4018 (s390_linux_fetch_inferior_registers)
4019 (390_linux_store_inferior_registers): Adjust last parameter in
4020 calls to fetch_regset and store_regset.
4021 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4022 (s390_gregmap): ... this. Also make static const and convert to
4023 regcache_map_entry format.
4024 (s390x_regmap_gregset): Delete.
4025 (s390_regmap_fpregset): Rename to...
4026 (s390_fpregmap): ... this. Make static const and convert to
4027 regcache_map_entry format.
4028 (s390_regmap_upper, s390_regmap_last_break)
4029 (s390x_regmap_last_break, s390_regmap_system_call)
4030 (s390_regmap_tdb): Likewise.
4031 (s390_supply_regset, s390_collect_regset): Remove functions.
4032 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4033 s390_supply_regset.
4034 (s390_gregset, s390_fpregset, s390_upper_regset)
4035 (s390_last_break_regset, s390x_last_break_regset)
4036 (s390_system_call_regset, s390_tdb_regset): Make global and
4037 replace s390_supply/_collect_regset by regcache_supply/
4038 _collect_regset.
4039 (s390x_gregset): Delete.
4040 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4041 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4042 (s390_regmap_fpregset, s390_regmap_last_break)
4043 (s390x_regmap_last_break, s390_regmap_system_call)
4044 (s390_regmap_tdb): Delete global variable declarations.
4045 (s390_gregset, s390_fpregset, s390_last_break_regset)
4046 (s390x_last_break_regset, s390_system_call_regset)
4047 (s390_tdb_regset): New global variable declarations.
4048
4049 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4050
4051 * regcache.c: Include "regset.h".
4052 (regcache_transfer_regset): New local function.
4053 (regcache_supply_regset, regcache_collect_regset): New functions.
4054 * regcache.h (struct regcache_map_entry): New structure.
4055 (REGCACHE_MAP_SKIP): New enum value.
4056 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4057
4058 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4059
4060 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4061 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4062 (ppc_linux_collect_gregset ): Likewise.
4063 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4064 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4065 (ppc_collect_vrregset): Likewise.
4066 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4067 Likewise.
4068
4069 2014-08-07 Yao Qi <yao@codesourcery.com>
4070
4071 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4072 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4073 * remote.c (remote_read_bytes): Likewise.
4074
4075 2014-08-07 Yao Qi <yao@codesourcery.com>
4076
4077 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4078
4079 2014-08-07 Yao Qi <yao@codesourcery.com>
4080
4081 PR remote/17230
4082 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4083 TARGET_XFER_OK instead of 0.
4084
4085 2014-08-07 Gary Benson <gbenson@redhat.com>
4086
4087 * common/common-defs.h: Include errno.h.
4088 * defs.h: Do not include errno.h.
4089 * ada-typeprint.c: Likewise.
4090 * c-typeprint.c: Likewise.
4091 * core-regset.c: Likewise.
4092 * corefile.c: Likewise.
4093 * corelow.c: Likewise.
4094 * event-loop.c: Likewise.
4095 * f-typeprint.c: Likewise.
4096 * gnu-nat.c: Likewise.
4097 * go32-nat.c: Likewise.
4098 * i386gnu-nat.c: Likewise.
4099 * m2-typeprint.c: Likewise.
4100 * nat/linux-btrace.c: Likewise.
4101 * p-typeprint.c: Likewise.
4102 * procfs.c: Likewise.
4103 * remote-sim.c: Likewise.
4104 * rs6000-nat.c: Likewise.
4105 * target.c: Likewise.
4106 * typeprint.c: Likewise.
4107 * ui-file.c: Likewise.
4108 * valops.c: Likewise.
4109 * valprint.c: Likewise.
4110
4111 2014-08-07 Gary Benson <gbenson@redhat.com>
4112
4113 * common/common-defs.h: Include string.h.
4114 * aarch64-tdep.c: Do not include string.h.
4115 * ada-exp.y: Likewise.
4116 * ada-lang.c: Likewise.
4117 * ada-lex.l: Likewise.
4118 * ada-typeprint.c: Likewise.
4119 * ada-valprint.c: Likewise.
4120 * aix-thread.c: Likewise.
4121 * alpha-linux-tdep.c: Likewise.
4122 * alpha-mdebug-tdep.c: Likewise.
4123 * alpha-nat.c: Likewise.
4124 * alpha-osf1-tdep.c: Likewise.
4125 * alpha-tdep.c: Likewise.
4126 * alphanbsd-tdep.c: Likewise.
4127 * amd64-dicos-tdep.c: Likewise.
4128 * amd64-linux-tdep.c: Likewise.
4129 * amd64-nat.c: Likewise.
4130 * amd64-sol2-tdep.c: Likewise.
4131 * amd64fbsd-tdep.c: Likewise.
4132 * amd64obsd-tdep.c: Likewise.
4133 * arch-utils.c: Likewise.
4134 * arm-linux-nat.c: Likewise.
4135 * arm-linux-tdep.c: Likewise.
4136 * arm-tdep.c: Likewise.
4137 * arm-wince-tdep.c: Likewise.
4138 * armbsd-tdep.c: Likewise.
4139 * armnbsd-nat.c: Likewise.
4140 * armnbsd-tdep.c: Likewise.
4141 * armobsd-tdep.c: Likewise.
4142 * avr-tdep.c: Likewise.
4143 * ax-gdb.c: Likewise.
4144 * ax-general.c: Likewise.
4145 * bcache.c: Likewise.
4146 * bfin-tdep.c: Likewise.
4147 * breakpoint.c: Likewise.
4148 * build-id.c: Likewise.
4149 * buildsym.c: Likewise.
4150 * c-exp.y: Likewise.
4151 * c-lang.c: Likewise.
4152 * c-typeprint.c: Likewise.
4153 * c-valprint.c: Likewise.
4154 * charset.c: Likewise.
4155 * cli-out.c: Likewise.
4156 * cli/cli-cmds.c: Likewise.
4157 * cli/cli-decode.c: Likewise.
4158 * cli/cli-dump.c: Likewise.
4159 * cli/cli-interp.c: Likewise.
4160 * cli/cli-logging.c: Likewise.
4161 * cli/cli-script.c: Likewise.
4162 * cli/cli-setshow.c: Likewise.
4163 * cli/cli-utils.c: Likewise.
4164 * coffread.c: Likewise.
4165 * common/agent.c: Likewise.
4166 * common/buffer.c: Likewise.
4167 * common/buffer.h: Likewise.
4168 * common/common-utils.c: Likewise.
4169 * common/filestuff.c: Likewise.
4170 * common/filestuff.c: Likewise.
4171 * common/format.c: Likewise.
4172 * common/print-utils.c: Likewise.
4173 * common/rsp-low.c: Likewise.
4174 * common/signals.c: Likewise.
4175 * common/vec.h: Likewise.
4176 * common/xml-utils.c: Likewise.
4177 * core-regset.c: Likewise.
4178 * corefile.c: Likewise.
4179 * corelow.c: Likewise.
4180 * cp-abi.c: Likewise.
4181 * cp-name-parser.y: Likewise.
4182 * cp-support.c: Likewise.
4183 * cp-valprint.c: Likewise.
4184 * cris-tdep.c: Likewise.
4185 * d-exp.y: Likewise.
4186 * darwin-nat.c: Likewise.
4187 * dbxread.c: Likewise.
4188 * dcache.c: Likewise.
4189 * demangle.c: Likewise.
4190 * dicos-tdep.c: Likewise.
4191 * disasm.c: Likewise.
4192 * doublest.c: Likewise.
4193 * dsrec.c: Likewise.
4194 * dummy-frame.c: Likewise.
4195 * dwarf2-frame.c: Likewise.
4196 * dwarf2loc.c: Likewise.
4197 * dwarf2read.c: Likewise.
4198 * elfread.c: Likewise.
4199 * environ.c: Likewise.
4200 * eval.c: Likewise.
4201 * event-loop.c: Likewise.
4202 * exceptions.c: Likewise.
4203 * exec.c: Likewise.
4204 * expprint.c: Likewise.
4205 * f-exp.y: Likewise.
4206 * f-lang.c: Likewise.
4207 * f-typeprint.c: Likewise.
4208 * f-valprint.c: Likewise.
4209 * fbsd-nat.c: Likewise.
4210 * findcmd.c: Likewise.
4211 * findvar.c: Likewise.
4212 * fork-child.c: Likewise.
4213 * frame.c: Likewise.
4214 * frv-linux-tdep.c: Likewise.
4215 * frv-tdep.c: Likewise.
4216 * gdb.c: Likewise.
4217 * gdb_bfd.c: Likewise.
4218 * gdbarch.c: Likewise.
4219 * gdbarch.sh: Likewise.
4220 * gdbtypes.c: Likewise.
4221 * gnu-nat.c: Likewise.
4222 * gnu-v2-abi.c: Likewise.
4223 * gnu-v3-abi.c: Likewise.
4224 * go-exp.y: Likewise.
4225 * go-lang.c: Likewise.
4226 * go32-nat.c: Likewise.
4227 * guile/guile.c: Likewise.
4228 * guile/scm-auto-load.c: Likewise.
4229 * hppa-hpux-tdep.c: Likewise.
4230 * hppa-linux-nat.c: Likewise.
4231 * hppanbsd-tdep.c: Likewise.
4232 * hppaobsd-tdep.c: Likewise.
4233 * i386-cygwin-tdep.c: Likewise.
4234 * i386-dicos-tdep.c: Likewise.
4235 * i386-linux-tdep.c: Likewise.
4236 * i386-nto-tdep.c: Likewise.
4237 * i386-sol2-tdep.c: Likewise.
4238 * i386-tdep.c: Likewise.
4239 * i386bsd-tdep.c: Likewise.
4240 * i386gnu-nat.c: Likewise.
4241 * i386nbsd-tdep.c: Likewise.
4242 * i386obsd-tdep.c: Likewise.
4243 * i387-tdep.c: Likewise.
4244 * ia64-libunwind-tdep.c: Likewise.
4245 * ia64-linux-nat.c: Likewise.
4246 * inf-child.c: Likewise.
4247 * inf-ptrace.c: Likewise.
4248 * inf-ttrace.c: Likewise.
4249 * infcall.c: Likewise.
4250 * infcmd.c: Likewise.
4251 * inflow.c: Likewise.
4252 * infrun.c: Likewise.
4253 * interps.c: Likewise.
4254 * iq2000-tdep.c: Likewise.
4255 * irix5-nat.c: Likewise.
4256 * jv-exp.y: Likewise.
4257 * jv-lang.c: Likewise.
4258 * jv-typeprint.c: Likewise.
4259 * jv-valprint.c: Likewise.
4260 * language.c: Likewise.
4261 * linux-fork.c: Likewise.
4262 * linux-nat.c: Likewise.
4263 * lm32-tdep.c: Likewise.
4264 * m2-exp.y: Likewise.
4265 * m2-typeprint.c: Likewise.
4266 * m32c-tdep.c: Likewise.
4267 * m32r-linux-nat.c: Likewise.
4268 * m32r-linux-tdep.c: Likewise.
4269 * m32r-rom.c: Likewise.
4270 * m32r-tdep.c: Likewise.
4271 * m68hc11-tdep.c: Likewise.
4272 * m68k-tdep.c: Likewise.
4273 * m68kbsd-tdep.c: Likewise.
4274 * m68klinux-nat.c: Likewise.
4275 * m68klinux-tdep.c: Likewise.
4276 * m88k-tdep.c: Likewise.
4277 * machoread.c: Likewise.
4278 * macrocmd.c: Likewise.
4279 * main.c: Likewise.
4280 * mdebugread.c: Likewise.
4281 * mem-break.c: Likewise.
4282 * memattr.c: Likewise.
4283 * memory-map.c: Likewise.
4284 * mep-tdep.c: Likewise.
4285 * mi/mi-cmd-break.c: Likewise.
4286 * mi/mi-cmd-disas.c: Likewise.
4287 * mi/mi-cmd-env.c: Likewise.
4288 * mi/mi-cmd-stack.c: Likewise.
4289 * mi/mi-cmd-var.c: Likewise.
4290 * mi/mi-cmds.c: Likewise.
4291 * mi/mi-console.c: Likewise.
4292 * mi/mi-getopt.c: Likewise.
4293 * mi/mi-interp.c: Likewise.
4294 * mi/mi-main.c: Likewise.
4295 * mi/mi-parse.c: Likewise.
4296 * microblaze-rom.c: Likewise.
4297 * microblaze-tdep.c: Likewise.
4298 * mingw-hdep.c: Likewise.
4299 * minidebug.c: Likewise.
4300 * minsyms.c: Likewise.
4301 * mips-irix-tdep.c: Likewise.
4302 * mips-linux-tdep.c: Likewise.
4303 * mips-tdep.c: Likewise.
4304 * mips64obsd-tdep.c: Likewise.
4305 * mipsnbsd-tdep.c: Likewise.
4306 * mipsread.c: Likewise.
4307 * mn10300-linux-tdep.c: Likewise.
4308 * mn10300-tdep.c: Likewise.
4309 * monitor.c: Likewise.
4310 * moxie-tdep.c: Likewise.
4311 * mt-tdep.c: Likewise.
4312 * nat/linux-btrace.c: Likewise.
4313 * nat/linux-osdata.c: Likewise.
4314 * nat/linux-procfs.c: Likewise.
4315 * nat/linux-ptrace.c: Likewise.
4316 * nat/linux-waitpid.c: Likewise.
4317 * nbsd-tdep.c: Likewise.
4318 * nios2-linux-tdep.c: Likewise.
4319 * nto-procfs.c: Likewise.
4320 * nto-tdep.c: Likewise.
4321 * objc-lang.c: Likewise.
4322 * objfiles.c: Likewise.
4323 * opencl-lang.c: Likewise.
4324 * osabi.c: Likewise.
4325 * osdata.c: Likewise.
4326 * p-exp.y: Likewise.
4327 * p-lang.c: Likewise.
4328 * p-typeprint.c: Likewise.
4329 * parse.c: Likewise.
4330 * posix-hdep.c: Likewise.
4331 * ppc-linux-nat.c: Likewise.
4332 * ppc-sysv-tdep.c: Likewise.
4333 * ppcfbsd-tdep.c: Likewise.
4334 * ppcnbsd-tdep.c: Likewise.
4335 * ppcobsd-tdep.c: Likewise.
4336 * printcmd.c: Likewise.
4337 * procfs.c: Likewise.
4338 * prologue-value.c: Likewise.
4339 * python/py-auto-load.c: Likewise.
4340 * python/py-gdb-readline.c: Likewise.
4341 * ravenscar-thread.c: Likewise.
4342 * regcache.c: Likewise.
4343 * registry.c: Likewise.
4344 * remote-fileio.c: Likewise.
4345 * remote-m32r-sdi.c: Likewise.
4346 * remote-mips.c: Likewise.
4347 * remote-notif.c: Likewise.
4348 * remote-sim.c: Likewise.
4349 * remote.c: Likewise.
4350 * reverse.c: Likewise.
4351 * rs6000-aix-tdep.c: Likewise.
4352 * ser-base.c: Likewise.
4353 * ser-go32.c: Likewise.
4354 * ser-mingw.c: Likewise.
4355 * ser-pipe.c: Likewise.
4356 * ser-tcp.c: Likewise.
4357 * ser-unix.c: Likewise.
4358 * serial.c: Likewise.
4359 * sh-tdep.c: Likewise.
4360 * sh64-tdep.c: Likewise.
4361 * shnbsd-tdep.c: Likewise.
4362 * skip.c: Likewise.
4363 * sol-thread.c: Likewise.
4364 * solib-dsbt.c: Likewise.
4365 * solib-frv.c: Likewise.
4366 * solib-osf.c: Likewise.
4367 * solib-som.c: Likewise.
4368 * solib-spu.c: Likewise.
4369 * solib-target.c: Likewise.
4370 * solib.c: Likewise.
4371 * somread.c: Likewise.
4372 * source.c: Likewise.
4373 * sparc-nat.c: Likewise.
4374 * sparc-sol2-tdep.c: Likewise.
4375 * sparc-tdep.c: Likewise.
4376 * sparc64-tdep.c: Likewise.
4377 * sparc64fbsd-tdep.c: Likewise.
4378 * sparc64nbsd-tdep.c: Likewise.
4379 * sparcnbsd-tdep.c: Likewise.
4380 * spu-linux-nat.c: Likewise.
4381 * spu-multiarch.c: Likewise.
4382 * spu-tdep.c: Likewise.
4383 * stabsread.c: Likewise.
4384 * stack.c: Likewise.
4385 * std-regs.c: Likewise.
4386 * symfile.c: Likewise.
4387 * symmisc.c: Likewise.
4388 * symtab.c: Likewise.
4389 * target.c: Likewise.
4390 * thread.c: Likewise.
4391 * tilegx-linux-nat.c: Likewise.
4392 * tilegx-tdep.c: Likewise.
4393 * top.c: Likewise.
4394 * tracepoint.c: Likewise.
4395 * tui/tui-command.c: Likewise.
4396 * tui/tui-data.c: Likewise.
4397 * tui/tui-disasm.c: Likewise.
4398 * tui/tui-file.c: Likewise.
4399 * tui/tui-layout.c: Likewise.
4400 * tui/tui-out.c: Likewise.
4401 * tui/tui-regs.c: Likewise.
4402 * tui/tui-source.c: Likewise.
4403 * tui/tui-stack.c: Likewise.
4404 * tui/tui-win.c: Likewise.
4405 * tui/tui-windata.c: Likewise.
4406 * tui/tui-winsource.c: Likewise.
4407 * typeprint.c: Likewise.
4408 * ui-file.c: Likewise.
4409 * ui-out.c: Likewise.
4410 * user-regs.c: Likewise.
4411 * utils.c: Likewise.
4412 * v850-tdep.c: Likewise.
4413 * valarith.c: Likewise.
4414 * valops.c: Likewise.
4415 * valprint.c: Likewise.
4416 * value.c: Likewise.
4417 * varobj.c: Likewise.
4418 * vax-tdep.c: Likewise.
4419 * vaxnbsd-tdep.c: Likewise.
4420 * vaxobsd-tdep.c: Likewise.
4421 * windows-nat.c: Likewise.
4422 * xcoffread.c: Likewise.
4423 * xml-support.c: Likewise.
4424 * xstormy16-tdep.c: Likewise.
4425 * xtensa-linux-nat.c: Likewise.
4426
4427 2014-08-07 Gary Benson <gbenson@redhat.com>
4428
4429 * common/common-defs.h: Include gdb_assert.h.
4430 * aarch64-tdep.c: Do not include gdb_assert.h.
4431 * addrmap.c: Likewise.
4432 * aix-thread.c: Likewise.
4433 * alpha-linux-tdep.c: Likewise.
4434 * alpha-mdebug-tdep.c: Likewise.
4435 * alphanbsd-tdep.c: Likewise.
4436 * amd64-nat.c: Likewise.
4437 * amd64-tdep.c: Likewise.
4438 * amd64bsd-nat.c: Likewise.
4439 * amd64fbsd-nat.c: Likewise.
4440 * amd64fbsd-tdep.c: Likewise.
4441 * amd64nbsd-nat.c: Likewise.
4442 * amd64nbsd-tdep.c: Likewise.
4443 * amd64obsd-nat.c: Likewise.
4444 * amd64obsd-tdep.c: Likewise.
4445 * arch-utils.c: Likewise.
4446 * arm-tdep.c: Likewise.
4447 * armbsd-tdep.c: Likewise.
4448 * auxv.c: Likewise.
4449 * bcache.c: Likewise.
4450 * bfin-tdep.c: Likewise.
4451 * blockframe.c: Likewise.
4452 * breakpoint.c: Likewise.
4453 * bsd-kvm.c: Likewise.
4454 * bsd-uthread.c: Likewise.
4455 * buildsym.c: Likewise.
4456 * c-exp.y: Likewise.
4457 * c-lang.c: Likewise.
4458 * charset.c: Likewise.
4459 * cleanups.c: Likewise.
4460 * cli-out.c: Likewise.
4461 * cli/cli-decode.c: Likewise.
4462 * cli/cli-dump.c: Likewise.
4463 * cli/cli-logging.c: Likewise.
4464 * cli/cli-script.c: Likewise.
4465 * cli/cli-utils.c: Likewise.
4466 * coffread.c: Likewise.
4467 * common/common-utils.c: Likewise.
4468 * common/queue.h: Likewise.
4469 * common/signals.c: Likewise.
4470 * common/vec.h: Likewise.
4471 * complaints.c: Likewise.
4472 * completer.c: Likewise.
4473 * corelow.c: Likewise.
4474 * cp-abi.c: Likewise.
4475 * cp-name-parser.y: Likewise.
4476 * cp-namespace.c: Likewise.
4477 * cp-support.c: Likewise.
4478 * cris-tdep.c: Likewise.
4479 * dbxread.c: Likewise.
4480 * dictionary.c: Likewise.
4481 * doublest.c: Likewise.
4482 * dsrec.c: Likewise.
4483 * dummy-frame.c: Likewise.
4484 * dwarf2-frame-tailcall.c: Likewise.
4485 * dwarf2-frame.c: Likewise.
4486 * dwarf2expr.c: Likewise.
4487 * dwarf2loc.c: Likewise.
4488 * dwarf2read.c: Likewise.
4489 * eval.c: Likewise.
4490 * event-loop.c: Likewise.
4491 * exceptions.c: Likewise.
4492 * expprint.c: Likewise.
4493 * f-valprint.c: Likewise.
4494 * fbsd-nat.c: Likewise.
4495 * findvar.c: Likewise.
4496 * frame-unwind.c: Likewise.
4497 * frame.c: Likewise.
4498 * frv-tdep.c: Likewise.
4499 * gcore.c: Likewise.
4500 * gdb-dlfcn.c: Likewise.
4501 * gdb_bfd.c: Likewise.
4502 * gdbarch.c: Likewise.
4503 * gdbarch.sh: Likewise.
4504 * gdbtypes.c: Likewise.
4505 * gnu-nat.c: Likewise.
4506 * gnu-v3-abi.c: Likewise.
4507 * go-lang.c: Likewise.
4508 * guile/scm-exception.c: Likewise.
4509 * guile/scm-gsmob.c: Likewise.
4510 * guile/scm-lazy-string.c: Likewise.
4511 * guile/scm-math.c: Likewise.
4512 * guile/scm-pretty-print.c: Likewise.
4513 * guile/scm-safe-call.c: Likewise.
4514 * guile/scm-utils.c: Likewise.
4515 * guile/scm-value.c: Likewise.
4516 * h8300-tdep.c: Likewise.
4517 * hppa-hpux-nat.c: Likewise.
4518 * hppa-tdep.c: Likewise.
4519 * hppanbsd-tdep.c: Likewise.
4520 * hppaobsd-tdep.c: Likewise.
4521 * i386-darwin-nat.c: Likewise.
4522 * i386-darwin-tdep.c: Likewise.
4523 * i386-nto-tdep.c: Likewise.
4524 * i386-tdep.c: Likewise.
4525 * i386bsd-nat.c: Likewise.
4526 * i386fbsd-tdep.c: Likewise.
4527 * i386gnu-nat.c: Likewise.
4528 * i386nbsd-tdep.c: Likewise.
4529 * i386obsd-tdep.c: Likewise.
4530 * i387-tdep.c: Likewise.
4531 * ia64-libunwind-tdep.c: Likewise.
4532 * ia64-tdep.c: Likewise.
4533 * inf-ptrace.c: Likewise.
4534 * inf-ttrace.c: Likewise.
4535 * infcall.c: Likewise.
4536 * infcmd.c: Likewise.
4537 * infrun.c: Likewise.
4538 * inline-frame.c: Likewise.
4539 * interps.c: Likewise.
4540 * jv-lang.c: Likewise.
4541 * jv-typeprint.c: Likewise.
4542 * linux-fork.c: Likewise.
4543 * linux-nat.c: Likewise.
4544 * linux-thread-db.c: Likewise.
4545 * m32c-tdep.c: Likewise.
4546 * m32r-linux-nat.c: Likewise.
4547 * m32r-tdep.c: Likewise.
4548 * m68k-tdep.c: Likewise.
4549 * m68kbsd-nat.c: Likewise.
4550 * m68kbsd-tdep.c: Likewise.
4551 * m88k-tdep.c: Likewise.
4552 * machoread.c: Likewise.
4553 * macroexp.c: Likewise.
4554 * macrotab.c: Likewise.
4555 * maint.c: Likewise.
4556 * mdebugread.c: Likewise.
4557 * memory-map.c: Likewise.
4558 * mep-tdep.c: Likewise.
4559 * mi/mi-common.c: Likewise.
4560 * microblaze-tdep.c: Likewise.
4561 * mingw-hdep.c: Likewise.
4562 * mips-linux-nat.c: Likewise.
4563 * mips-linux-tdep.c: Likewise.
4564 * mips-tdep.c: Likewise.
4565 * mips64obsd-tdep.c: Likewise.
4566 * mipsnbsd-tdep.c: Likewise.
4567 * mn10300-linux-tdep.c: Likewise.
4568 * mn10300-tdep.c: Likewise.
4569 * moxie-tdep.c: Likewise.
4570 * mt-tdep.c: Likewise.
4571 * nat/linux-btrace.c: Likewise.
4572 * nat/linux-osdata.c: Likewise.
4573 * nat/linux-ptrace.c: Likewise.
4574 * nat/mips-linux-watch.c: Likewise.
4575 * nios2-linux-tdep.c: Likewise.
4576 * nios2-tdep.c: Likewise.
4577 * objc-lang.c: Likewise.
4578 * objfiles.c: Likewise.
4579 * obsd-nat.c: Likewise.
4580 * opencl-lang.c: Likewise.
4581 * osabi.c: Likewise.
4582 * parse.c: Likewise.
4583 * ppc-linux-nat.c: Likewise.
4584 * ppc-sysv-tdep.c: Likewise.
4585 * ppcfbsd-nat.c: Likewise.
4586 * ppcfbsd-tdep.c: Likewise.
4587 * ppcnbsd-nat.c: Likewise.
4588 * ppcnbsd-tdep.c: Likewise.
4589 * ppcobsd-nat.c: Likewise.
4590 * ppcobsd-tdep.c: Likewise.
4591 * printcmd.c: Likewise.
4592 * procfs.c: Likewise.
4593 * prologue-value.c: Likewise.
4594 * psymtab.c: Likewise.
4595 * python/py-lazy-string.c: Likewise.
4596 * python/py-value.c: Likewise.
4597 * regcache.c: Likewise.
4598 * reggroups.c: Likewise.
4599 * registry.c: Likewise.
4600 * remote-sim.c: Likewise.
4601 * remote.c: Likewise.
4602 * rs6000-aix-tdep.c: Likewise.
4603 * rs6000-tdep.c: Likewise.
4604 * s390-linux-tdep.c: Likewise.
4605 * score-tdep.c: Likewise.
4606 * ser-base.c: Likewise.
4607 * ser-mingw.c: Likewise.
4608 * sh-tdep.c: Likewise.
4609 * sh64-tdep.c: Likewise.
4610 * solib-darwin.c: Likewise.
4611 * solib-spu.c: Likewise.
4612 * solib-svr4.c: Likewise.
4613 * source.c: Likewise.
4614 * sparc-nat.c: Likewise.
4615 * sparc-sol2-tdep.c: Likewise.
4616 * sparc-tdep.c: Likewise.
4617 * sparc64-sol2-tdep.c: Likewise.
4618 * sparc64-tdep.c: Likewise.
4619 * sparc64fbsd-tdep.c: Likewise.
4620 * sparc64nbsd-tdep.c: Likewise.
4621 * sparc64obsd-tdep.c: Likewise.
4622 * sparcnbsd-tdep.c: Likewise.
4623 * sparcobsd-tdep.c: Likewise.
4624 * spu-multiarch.c: Likewise.
4625 * spu-tdep.c: Likewise.
4626 * stabsread.c: Likewise.
4627 * stack.c: Likewise.
4628 * symfile.c: Likewise.
4629 * symtab.c: Likewise.
4630 * target-descriptions.c: Likewise.
4631 * target-memory.c: Likewise.
4632 * target.c: Likewise.
4633 * tic6x-linux-tdep.c: Likewise.
4634 * tic6x-tdep.c: Likewise.
4635 * tilegx-linux-nat.c: Likewise.
4636 * tilegx-tdep.c: Likewise.
4637 * top.c: Likewise.
4638 * tramp-frame.c: Likewise.
4639 * tui/tui-out.c: Likewise.
4640 * tui/tui-winsource.c: Likewise.
4641 * ui-out.c: Likewise.
4642 * user-regs.c: Likewise.
4643 * utils.c: Likewise.
4644 * v850-tdep.c: Likewise.
4645 * valops.c: Likewise.
4646 * value.c: Likewise.
4647 * varobj.c: Likewise.
4648 * vax-nat.c: Likewise.
4649 * xml-syscall.c: Likewise.
4650 * xml-tdesc.c: Likewise.
4651 * xstormy16-tdep.c: Likewise.
4652 * xtensa-linux-nat.c: Likewise.
4653 * xtensa-tdep.c: Likewise.
4654
4655 2014-08-07 Gary Benson <gbenson@redhat.com>
4656
4657 * common/common-defs.h: Include common-utils.h.
4658 * defs.h: Do not include common-utils.h.
4659 * common/gdb_assert.h: Likewise.
4660 * darwin-nat.h: Likewise.
4661 * nat/linux-btrace.c: Likewise.
4662 * target/waitstatus.h: Likewise.
4663
4664 2014-08-07 Gary Benson <gbenson@redhat.com>
4665
4666 * common/common-defs.h: Include ptid.h.
4667 * defs.h: Do not include ptid.h.
4668 * inferior.h: Likewise.
4669 * infrun.h: Likewise.
4670 * nat/linux-btrace.h: Likewise.
4671 * nat/linux-osdata.h: Likewise.
4672 * target/waitstatus.h: Likewise.
4673
4674 2014-08-07 Gary Benson <gbenson@redhat.com>
4675
4676 * common/common-defs.h: Include gdb_locale.h.
4677 * defs.h: Do not include gdb_locale.h.
4678
4679 2014-08-07 Gary Benson <gbenson@redhat.com>
4680
4681 * common/common-defs.h: Include gdb/signals.h.
4682 * defs.h: Do not include gdb/signals.h.
4683
4684 2014-08-07 Gary Benson <gbenson@redhat.com>
4685
4686 * common/common-defs.h: Include pathmax.h.
4687 * defs.h: Do not include pathmax.h.
4688
4689 2014-08-07 Gary Benson <gbenson@redhat.com>
4690
4691 * common/common-defs.h: Include libiberty.h.
4692 * defs.h: Do not include libiberty.h.
4693 * common/queue.h: Likewise.
4694 * cp-name-parser.y: Likewise.
4695 * mi/mi-cmd-catch.c: Likewise.
4696 * python/python.c: Likewise.
4697
4698 2014-08-07 Gary Benson <gbenson@redhat.com>
4699
4700 * common/common-defs.h: Include ansidecl.h.
4701 * defs.h: Do not include ansidecl.h.
4702 * common/buffer.h: Likewise.
4703 * common/common-utils.h: Likewise.
4704
4705 2014-08-07 Gary Benson <gbenson@redhat.com>
4706
4707 * common/common-defs.h: Include stddef.h.
4708 * defs.h: Do not include stddef.h.
4709 * common/common-utils.h: Likewise.
4710 * amd64fbsd-nat.c: Likewise.
4711 * bcache.c: Likewise.
4712 * charset.c: Likewise.
4713 * common/buffer.h: Likewise.
4714 * common/vec.h: Likewise.
4715 * i386bsd-nat.c: Likewise.
4716 * nat/linux-btrace.h: Likewise.
4717 * ppcfbsd-nat.c: Likewise.
4718 * ppcnbsd-tdep.h: Likewise.
4719 * ppcobsd-nat.c: Likewise.
4720 * ppcobsd-tdep.h: Likewise.
4721 * python/py-gdb-readline.c: Likewise.
4722
4723 2014-08-07 Gary Benson <gbenson@redhat.com>
4724
4725 * common/common-defs.h: Include stdarg.h.
4726 * defs.h: Do not include stdarg.h.
4727 * ada-lang.c: Likewise.
4728 * common/common-utils.h: Likewise.
4729 * guile/scm-string.c: Likewise.
4730 * guile/scm-utils.c: Likewise.
4731 * m32c-tdep.c: Likewise.
4732
4733 2014-08-07 Gary Benson <gbenson@redhat.com>
4734
4735 * common/common-defs.h: Include stdlib.h.
4736 * defs.h: Do not include stdlib.h.
4737 * addrmap.c: Likewise.
4738 * bcache.c: Likewise.
4739 * common/buffer.c: Likewise.
4740 * common/common-utils.c: Likewise.
4741 * cp-name-parser.y: Likewise.
4742 * go32-nat.c: Likewise.
4743 * mn10300-linux-tdep.c: Likewise.
4744 * nat/linux-osdata.c: Likewise.
4745 * tui/tui.c: Likewise.
4746 * windows-nat.c: Likewise.
4747
4748 2014-08-07 Gary Benson <gbenson@redhat.com>
4749
4750 * common/common-defs.h: Include stdio.h.
4751 * defs.h: Do not include stdio.h.
4752 * ada-lang.c: Likewise.
4753 * common/buffer.c: Likewise.
4754 * common/common-utils.c: Likewise.
4755 * cp-name-parser.y: Likewise.
4756 * gnu-nat.c: Likewise.
4757 * go32-nat.c: Likewise.
4758 * i386gnu-nat.c: Likewise.
4759 * proc-api.c: Likewise.
4760 * proc-events.c: Likewise.
4761 * proc-flags.c: Likewise.
4762 * proc-why.c: Likewise.
4763 * python/python-internal.h: Likewise.
4764 * target-memory.c: Likewise.
4765 * tui/tui-io.c: Likewise.
4766 * tui/tui.c: Likewise.
4767
4768 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4769
4770 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4771 (scan_dyntag_auxv): Same.
4772
4773 2014-08-06 Yao Qi <yao@codesourcery.com>
4774
4775 * amd64-linux-nat.c: Remove duplicated include
4776 "x86-linux-nat.h".
4777 * i386-linux-nat.c: Likewise.
4778
4779 2014-08-06 Yao Qi <yao@codesourcery.com>
4780
4781 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4782 operand" with "Special opcode" in comments.
4783
4784 2014-08-05 Gary Benson <gbenson@redhat.com>
4785
4786 * interps.c (initialize_interps): Remove prototype.
4787 (interpreter_initialized): Remove static global.
4788 (interp_add): Do not call initialize_interps.
4789 (initialize_interps): Remove function.
4790
4791 2014-08-05 Gary Benson <gbenson@redhat.com>
4792
4793 * utils.c (vwarning): Remove spurious va_end.
4794
4795 2014-08-05 Alan Modra <amodra@gmail.com>
4796
4797 * charset.c (convert_between_encodings): Cast result of obstack_base.
4798 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4799 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4800 (read_unwind_info): Use size_t for some locals.
4801 * jit.c (finalize_symtab): Likewise.
4802 * utils.c (hashtab_obstack_allocate): Likewise.
4803 * symmisc.c (print_objfile_statistics): Update format strings.
4804
4805 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4806
4807 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4808 (Changes in GDB 7.8): ... here.
4809
4810 2014-08-04 Tom Tromey <tromey@redhat.com>
4811
4812 * target.c (set_targetdebug): New function.
4813 (initialize_targets): Pass set_targetdebug when creating "set
4814 debug target".
4815
4816 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4817
4818 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4819 if detecting a variable-sized field that is not the last field.
4820 Fix struct type length computation.
4821
4822 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4823
4824 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4825 Add debug trace.
4826
4827 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4828
4829 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4830 Remove "+ 8" offset in computation of CHAIN_VMA.
4831
4832 2014-07-31 Doug Evans <dje@google.com>
4833
4834 * inflow.c (child_terminal_inferior): Add comment.
4835 (child_terminal_ours_for_output): Add comment.
4836 (child_terminal_ours): Add comment.
4837 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4838 (linux_nat_terminal_ours): Add comment.
4839
4840 2014-07-31 Gary Benson <gbenson@redhat.com>
4841
4842 * common/btrace-common.h: Do not include defs.h or server.h.
4843 * nat/mips-linux-watch.h: Likewise.
4844 * gdb-dlfcn.h: Do not include defs.h.
4845 * tracefile.h: Likewise.
4846
4847 2014-07-30 Roland McGrath <mcgrathr@google.com>
4848
4849 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4850
4851 2014-07-30 Tom Tromey <tromey@redhat.com>
4852
4853 * bsd-kvm.c (bsd_kvm_open): Constify.
4854 * corelow.c (core_open): Constify.
4855 * ctf.c (ctf_open): Constify.
4856 * dbug-rom.c (dbug_open): Constify.
4857 * exec.c (exec_open): Constify.
4858 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4859 * microblaze-rom.c (picobug_open): Constify.
4860 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4861 Constify.
4862 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4863 * record-btrace.c (record_btrace_open): Constify.
4864 * record-full.c (record_full_core_open_1, record_full_open_1)
4865 (record_full_open): Constify.
4866 * remote-m32r-sdi.c (m32r_open): Constify.
4867 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4868 (rockhopper_open, lsi_open): Constify.
4869 * remote-sim.c (gdbsim_open): Constify.
4870 * remote.c (remote_open, extended_remote_open, remote_open_1):
4871 Constify.
4872 * target.h (struct target_ops) <to_open>: Make "arg" const.
4873 * tracefile-tfile.c (tfile_open): Constify.
4874
4875 2014-07-30 Tom Tromey <tromey@redhat.com>
4876
4877 * breakpoint.c (map_breakpoint_numbers): Update.
4878 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4879 (get_number_const): New function.
4880 (get_number): Rewrite using get_number_const.
4881 (init_number_or_range): Make "string" const.
4882 (number_is_in_list): Make "list" const.
4883 * cli/cli-utils.h (get_number_const): Declare.
4884 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4885 (init_number_or_range, number_is_in_list): Update.
4886 * printcmd.c (map_display_numbers): Update.
4887 * value.c (value_from_history_ref): Constify.
4888 * value.h (value_from_history_ref): Update.
4889
4890 2014-07-30 Tom Tromey <tromey@redhat.com>
4891
4892 * corefile.c (hook_type, call_extra_exec_file_hooks)
4893 (specify_exec_file_hook): Constify.
4894 * exec.c (exec_file_attach): Make "filename" const.
4895 * gdbcore.h (deprecated_exec_file_display_hook)
4896 (specify_exec_file_hook, exec_file_attach): Constify.
4897 * main.c (captured_main): Use catch_command_errors_const.
4898
4899 2014-07-30 Tom Tromey <tromey@redhat.com>
4900
4901 * target.c (open_target): New function.
4902 (add_target_with_completer, add_deprecated_target_alias): Use
4903 set_cmd_sfunc, set_cmd_context.
4904 (debug_to_open): Remove.
4905 (setup_target_debug): Update.
4906
4907 2014-07-30 Yao Qi <yao@codesourcery.com>
4908
4909 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4910 comments.
4911 * parse.c (exp_iterate): Update comments.
4912
4913 2014-07-30 Gary Benson <gbenson@redhat.com>
4914
4915 * common/common-defs.h: New file.
4916 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4917 * defs.h: Include common-defs.h.
4918 Do not include config.h or build-gnulib/config.h.
4919
4920 2014-07-30 Gary Benson <gbenson@redhat.com>
4921
4922 * common/common-utils.h: Do not include config.h.
4923 * nat/linux-btrace.h: Likewise.
4924
4925 2014-07-30 Gary Benson <gbenson@redhat.com>
4926
4927 * btrace.c: Include defs.h.
4928 * common/ptid.c: Include defs.h or server.h as appropriate.
4929 * nat/mips-linux-watch.c: Likewise.
4930
4931 2014-07-29 Tom Tromey <tromey@redhat.com>
4932
4933 * target.c (target_is_pushed): Simplify.
4934
4935 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4936
4937 GDB 7.8 released.
4938
4939 2014-07-29 Yao Qi <yao@codesourcery.com>
4940
4941 PR gdb/17206
4942 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4943
4944 2014-07-28 Doug Evans <xdje42@gmail.com>
4945
4946 PR guile/17203
4947 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4948 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4949 parameters.
4950
4951 2014-07-28 Will Newton <will.newton@linaro.org>
4952
4953 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4954 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4955 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4956 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4957 (THUMB2_EABI_SYSCALL): Likewise.
4958 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4959 struct tramp_frame.
4960 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4961 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4962
4963 2014-07-27 Doug Evans <xdje42@gmail.com>
4964
4965 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4966
4967 2014-07-27 Doug Evans <xdje42@gmail.com>
4968
4969 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4970
4971 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4972 Doug Evans <xdje42@gmail.com>
4973
4974 PR guile/17146
4975 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4976 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4977 * configure.ac: Try to use guild to compile an scm file, if it fails
4978 then disable guile support.
4979 * configure: Regenerate.
4980 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4981 GUILE_FILE_LIST.
4982 (GUILE_COMPILED_FILES): New variable.
4983 (GUILE_FILES) Update.
4984 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4985 (stamp-guile): Compile scm files.
4986 * guile/guile.c (boot_guile_support): New function.
4987 (standard_throw_args_p): New function.
4988 (print_standard_throw_error, print_throw_error): New functions.
4989 (handle_boot_error): New function.
4990 (initialize_scheme_side): Rewrite to call boot_guile_support.
4991 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4992 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4993
4994 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4995 Doug Evans <xdje42@gmail.com>
4996
4997 PR guile/17146
4998 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4999 * guile/lib/gdb/support.scm: New file.
5000 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5001 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5002 All uses updated.
5003 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5004 All uses updated.
5005 (%assert-type): Ditto, and renamed to assert-type.
5006 (%exception-print-style): Delete.
5007
5008 2014-07-26 Doug Evans <xdje42@gmail.com>
5009
5010 PR build/17105
5011 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5012 * configure: Regenerate.
5013 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5014 PYTHON_FILES.
5015 (PYTHON_FILES): New variable.
5016 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5017 (GUILE_FILES): New variable.
5018 (stamp-python, install-python, uninstall-python): Handle empty
5019 file list.
5020 (stamp-guile, install-guile, uninstall-guile): Ditto.
5021
5022 2014-07-26 Doug Evans <xdje42@gmail.com>
5023
5024 PR guile/17177
5025 * guile/lib/gdb.scm (pretty-printers): Export.
5026 (set-pretty-printers!): Export.
5027 * guile/lib/gdb/printing.scm (gdb module): Update.
5028 (prepend-pretty-printer!, append-pretty-printer!): Update.
5029 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5030 (pretty_printer_list_var): Delete.
5031 (pretty_printer_list): New static global.
5032 (gdbscm_pretty_printers): New function.
5033 (gdbscm_set_pretty_printers_x): New function.
5034 (ppscm_find_pretty_printer_from_gdb): Update.
5035 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5036 (gdbscm_initialize_pretty_printers): Update.
5037
5038 2014-07-26 Doug Evans <xdje42@gmail.com>
5039
5040 PR 17185
5041 * configure.ac: Add check for header gc/gc.h.
5042 Add check for function setenv.
5043 * configure: Regenerate.
5044 * config.in: Regenerate.
5045 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5046
5047 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5048
5049 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5050 variation in gdbarch matching.
5051
5052 2014-07-25 Tom Tromey <tromey@redhat.com>
5053
5054 * exec.c (using_exec_ops): Remove.
5055 (exec_close_1): Update. Remove extraneous block, reindent.
5056 (add_target_sections): Use target_is_pushed.
5057
5058 2014-07-25 Pedro Alves <palves@redhat.com>
5059
5060 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5061 * monitor.c (monitor_create_inferior): Likewise.
5062 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5063 * remote-sim.c (gdbsim_create_inferior): Likewise.
5064 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5065 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5066 * windows-nat.c (do_initial_windows_stuff): Likewise.
5067
5068 2014-07-25 Pedro Alves <palves@redhat.com>
5069
5070 * NEWS: Mention signal passing and "signal" command changes.
5071 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5072 comment.
5073 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5074 call.
5075 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5076 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5077 (jump_command): Adjust clear_proceed_status call.
5078 (signal_command): Warn if other thread that are resumed have
5079 signals that will be delivered. Adjust clear_proceed_status call.
5080 (until_next_command, finish_command)
5081 (proceed_after_attach_callback, attach_command_post_wait)
5082 (attach_command): Adjust clear_proceed_status call.
5083 * infrun.c (proceed_after_vfork_done): Likewise.
5084 (proceed_after_attach_callback): Adjust comment.
5085 (clear_proceed_status_thread): Clear stop_signal if not in pass
5086 state.
5087 (clear_proceed_status_callback): Delete.
5088 (clear_proceed_status): New 'step' parameter. Only clear the
5089 proceed status of threads the command being prepared is about to
5090 resume.
5091 (proceed): If passed in an explicit signal, override stop_signal
5092 with it. Don't pass the last stop signal to the thread we're
5093 resuming.
5094 (init_wait_for_inferior): Adjust clear_proceed_status call.
5095 (switch_back_to_stepped_thread): Clear the signal if it should not
5096 be passed.
5097 * infrun.h (clear_proceed_status): New 'step' parameter.
5098 (user_visible_resume_ptid): Add comment.
5099 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5100 signal is in pass state.
5101 * remote.c (append_pending_thread_resumptions): Likewise.
5102 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5103
5104 2014-07-25 Tom Tromey <tromey@redhat.com>
5105
5106 * target.h (target_stopped_data_address)
5107 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5108 parentheses.
5109
5110 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5111
5112 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5113 comments.
5114 (avr_pointer_to_address): Likewise.
5115
5116 2014-07-24 Tom Tromey <tromey@redhat.com>
5117
5118 * monitor.c (compile_pattern): Update.
5119 * target.h (struct target_ops) <to_shortname, to_longname,
5120 to_doc>: Now const.
5121
5122 2014-07-24 Tom Tromey <tromey@redhat.com>
5123
5124 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5125 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5126 (add_info_alias, add_com): Make "doc" const.
5127 (print_doc_line): Make "str" const.
5128 (delete_cmd): Update.
5129 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5130 (print_doc_line): Update.
5131 * cli/cli-script.c (document_command): Update.
5132 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5133 (add_com, add_info, add_info_alias): Update.
5134 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5135 * python/py-cmd.c (cmdpy_destroyer): Update.
5136
5137 2014-07-24 Tom Tromey <tromey@redhat.com>
5138
5139 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5140 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5141 (help_cmd_list): Constify.
5142 (lookup_cmd): Update.
5143 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5144 const.
5145 (help_cmd_list, apropos_cmd): Update.
5146 * cli/cli-script.c (show_user): Update.
5147 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5148 * cli/cli-setshow.h (cmd_show_list): Update.
5149 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5150 (cmd_show_list): Update.
5151 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5152 * python/py-cmd.c (cmdpy_destroyer): Update.
5153
5154 2014-07-24 Tom Tromey <tromey@redhat.com>
5155
5156 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5157 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5158 const.
5159 * command.h (deprecate_cmd): Update.
5160 * maint.c (maintenance_do_deprecate): Add casts.
5161
5162 2014-07-24 Tom Tromey <tromey@redhat.com>
5163
5164 * cli/cli-decode.c (help_cmd): Make parameter "const".
5165 * cli/cli-decode.h (help_cmd): Update.
5166
5167 2014-07-24 Tom Tromey <tromey@redhat.com>
5168
5169 * stack.c (up_silently_base, down_silently_base): Make argument
5170 const.
5171
5172 2014-07-24 Tom Tromey <tromey@redhat.com>
5173
5174 * solib.c (solib_add): Make "pattern" const.
5175 * solib.h (solib_add): Update.
5176
5177 2014-07-24 Tom Tromey <tromey@redhat.com>
5178
5179 * remote.c (remote_serial_open, print_packet, putpkt)
5180 (putpkt_binary): Constify.
5181 * remote.h (putpkt): Update.
5182
5183 2014-07-24 Tom Tromey <tromey@redhat.com>
5184
5185 * monitor.c (monitor_open): Make "args" const.
5186 * monitor.h (monitor_open): Update.
5187
5188 2014-07-24 Tom Tromey <tromey@redhat.com>
5189
5190 * maint.c (match_bfd_flags): Make "string" const.
5191 (print_bfd_section_info): Remove casts.
5192 (print_objfile_section_info): Make "string" const.
5193
5194 2014-07-24 Tom Tromey <tromey@redhat.com>
5195
5196 * inf-child.c (inf_child_open_target): Make "arg" const.
5197 * inf-child.h (inf_child_open_target): Update.
5198
5199 2014-07-24 Tom Tromey <tromey@redhat.com>
5200
5201 * environ.c (unset_in_environ): Make "var" const.
5202 * environ.h (unset_in_environ): Update.
5203
5204 2014-07-24 Tom Tromey <tromey@redhat.com>
5205
5206 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5207 Make "cmd" const.
5208 (scan_filename_with_cleanup): Likewise.
5209 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5210 Make arguments const.
5211 (restore_command): Update.
5212
5213 2014-07-24 Pedro Alves <palves@redhat.com>
5214
5215 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5216
5217 2014-07-24 Tom Tromey <tromey@redhat.com>
5218 Gary Benson <gbenson@redhat.com>
5219
5220 * nat/linux-ptrace.c (additional_flags): New global.
5221 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5222 additional_flags; don't check GDBSERVER.
5223 (linux_ptrace_set_additional_flags): New function.
5224 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5225 Declare.
5226 * linux-nat.c (_initialize_linux_nat): Call
5227 linux_ptrace_set_additional_flags.
5228
5229 2014-07-24 Tom Tromey <tromey@redhat.com>
5230
5231 * make-target-delegates (munge_type, write_debugmethod): New
5232 functions.
5233 (debug_names): New global.
5234 ($TARGET_DEBUG_PRINTER): New global.
5235 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5236 name.
5237 Write debug methods. Generate init_debug_target.
5238 * target-debug.h: New file.
5239 * target-delegates.c: Rebuild.
5240 * target.c: Include target-debug.h.
5241 (debug_target): Hoist definition.
5242 (target_kill, target_get_section_table, target_memory_map)
5243 (target_flash_erase, target_flash_done, target_detach)
5244 (target_disconnect, target_wait, target_resume)
5245 (target_pass_signals, target_program_signals, target_follow_fork)
5246 (target_mourn_inferior, target_search_memory)
5247 (target_thread_address_space, target_close)
5248 (target_find_new_threads, target_core_of_thread)
5249 (target_verify_memory, target_insert_mask_watchpoint)
5250 (target_remove_mask_watchpoint): Remove targetdebug code.
5251 (debug_to_post_attach, debug_to_prepare_to_store)
5252 (debug_to_files_info, debug_to_insert_breakpoint)
5253 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5254 (debug_to_region_ok_for_hw_watchpoint)
5255 (debug_to_can_accel_watchpoint_condition)
5256 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5257 (debug_to_watchpoint_addr_within_range)
5258 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5259 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5260 (debug_to_terminal_init, debug_to_terminal_inferior)
5261 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5262 (debug_to_terminal_save_ours, debug_to_terminal_info)
5263 (debug_to_load, debug_to_post_startup_inferior)
5264 (debug_to_insert_fork_catchpoint)
5265 (debug_to_remove_fork_catchpoint)
5266 (debug_to_insert_vfork_catchpoint)
5267 (debug_to_remove_vfork_catchpoint)
5268 (debug_to_insert_exec_catchpoint)
5269 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5270 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5271 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5272 (setup_target_debug): Call init_debug_target.
5273 * target.h (TARGET_DEBUG_PRINTER): New macro.
5274 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5275 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5276
5277 2014-07-24 Gary Benson <gbenson@redhat.com>
5278
5279 * exceptions.h (throw_vfatal): Renamed to...
5280 (throw_vquit): New declaration.
5281 (throw_quit): Likewise.
5282 * exceptions.c (throw_vfatal): Renamed to...
5283 (throw_vquit): New function.
5284 (throw_quit): Likewise.
5285 (throw_error): Call throw_verror rather than throw_it.
5286 * utils.h (vfatal): Removed.
5287 (fatal): Likewise.
5288 * utils.c (vfatal): Removed.
5289 (fatal): Likewise.
5290 (internal_verror): Replaced call to fatal with call to throw_quit.
5291 (quit): Replaced calls to fatal with calls to throw_quit.
5292
5293 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5294
5295 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5296 target_read_code.
5297
5298 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5299
5300 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5301 less than zero in conditional expression.
5302
5303 2014-07-23 Tom Tromey <tromey@redhat.com>
5304
5305 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5306 ($INTRO_PART): Don't match whitespace.
5307 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5308 argument matching.
5309 ($METHOD): Add $METHOD_TRAILER.
5310 (trim): Rewrite.
5311 (scan_target_h): New sub.
5312 Change main loop not to collect state.
5313 * target-delegates.c: Rebuild.
5314
5315 2014-07-23 Gary Benson <gbenson@redhat.com>
5316
5317 * cp-support.c (gdb_demangle): Fix build on systems without
5318 sigaltstack.
5319
5320 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5321
5322 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5323 for reference entry value target data value.
5324
5325 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5326
5327 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5328 value_available_contents_eq.
5329
5330 2014-07-22 Pedro Alves <palves@redhat.com>
5331
5332 * value.c (allocate_optimized_out_value): Don't mark value as
5333 non-lazy.
5334
5335 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5336
5337 * MAINTAINERS (Write After Approval): Update my email address.
5338
5339 2014-07-20 Doug Evans <dje@google.com>
5340
5341 PR server/17147
5342 * remote.c (putpkt_binary): Add text to error message.
5343
5344 2014-07-20 Yao Qi <yao@codesourcery.com>
5345
5346 * eval.c: Remove "Chill" from comments.
5347 * gdbtypes.h: Likewise.
5348 * symtab.h: Likewise.
5349
5350 2014-07-20 Yao Qi <yao@codesourcery.com>
5351
5352 * std-operator.def: Update comments to TERNOP_SLICE.
5353
5354 2014-07-20 Yao Qi <yao@codesourcery.com>
5355
5356 * std-operator.def: Remove BINOP_RANGE.
5357 * breakpoint.c (watchpoint_exp_is_const): Update.
5358 * expprint.c (dump_subexp_body_standard): Likewise.
5359 * eval.c (init_array_element): Remove dead code.
5360 (evaluate_subexp_standard): Likewise.
5361
5362 2014-07-20 Yao Qi <yao@codesourcery.com>
5363
5364 * std-operator.def: Remove BINOP_IN.
5365 * breakpoint.c (watchpoint_exp_is_const): Update.
5366 * eval.c (evaluate_subexp_standard): Likewise.
5367 * expprint.c (dump_subexp_body_standard): Likewise.
5368
5369 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5370
5371 * microblaze-tdep.c (microblaze_register_names): Add
5372 the rshr and rslr register names.
5373 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5374 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5375 Use of tdesc_numbered_register. Use of
5376 microblaze_register_g_packet_guesses. Use of
5377 tdesc_use_registers. Use of set_gdbarch_register_type.
5378 (microblaze_register_g_packet_guesses): New.
5379 * microblaze-tdep.h (microblaze_reg_num): Add
5380 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5381 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5382 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5383 * features/microblaze-core.xml: New file.
5384 * features/microblaze-stack-protect.xml: New file.
5385 * features/microblaze-with-stack-protect.c: New file.
5386 * features/microblaze-with-stack-protect.xml: New file.
5387 * features/microblaze.xml: New file.
5388 * features/microblaze.c: New file.
5389 * features/Makefile (microblaze-with-stack-protect): Add
5390 microblaze-with-stack-protect microblaze and microblaze-expedite.
5391 * regformats/microblaze-with-stack-protect.dat: New file.
5392 * regformats/microblaze.dat: New file.
5393 * doc/gdb.texinfo (MicroBlaze Features): Added.
5394
5395 2014-07-18 Tom Tromey <tromey@redhat.com>
5396
5397 * exec.c (exec_ops): Now static.
5398 * exec.h (exec_ops): Don't declare.
5399
5400 2014-07-18 Tom Tromey <tromey@redhat.com>
5401
5402 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5403 to find_target_beneath.
5404 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5405 find_target_beneath.
5406 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5407
5408 2014-07-18 Tom Tromey <tromey@redhat.com>
5409
5410 PR gdb/17130:
5411 * utils.c (quit): Use target_supports_terminal_ours.
5412 * target.h (target_supports_terminal_ours): Declare.
5413 * target.c (target_supports_delete_record): Don't check
5414 to_delete_record against NULL.
5415 (target_supports_terminal_ours): New function.
5416
5417 2014-07-18 Tom Tromey <tromey@redhat.com>
5418
5419 PR gdb/17130:
5420 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5421 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5422 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5423 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5424 * windows-nat.c (windows_xfer_partial): Always delegate.
5425 * record-btrace.c (record_btrace_xfer_partial): Simplify
5426 delegation.
5427 (record_btrace_fetch_registers, record_btrace_store_registers)
5428 (record_btrace_prepare_to_store, record_btrace_resume)
5429 (record_btrace_wait, record_btrace_find_new_threads)
5430 (record_btrace_thread_alive): Likewise.
5431 * procfs.c (procfs_xfer_partial): Always delegate.
5432 * corelow.c (core_xfer_partial): Always delegate.
5433 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5434
5435 2014-07-18 Tom Tromey <tromey@redhat.com>
5436
5437 * exec.c (exec_make_note_section): Move earlier.
5438
5439 2014-07-17 Doug Evans <dje@google.com>
5440
5441 PR gdb/17170
5442 * maint.c (count_symtabs_and_blocks): Handle NULL
5443 current_program_space.
5444 (report_command_stats): Check global enabled flag in addition to
5445 recorded enabled flag.
5446 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5447
5448 2014-07-16 Pedro Alves <palves@redhat.com>
5449
5450 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5451
5452 2014-07-16 Tom Tromey <tromey@redhat.com>
5453
5454 * target.h (struct target_ops) <to_delete_record>: Reformat
5455 comment.
5456
5457 2014-07-16 Tom Tromey <tromey@redhat.com>
5458
5459 * target-delegates.c: Rebuild.
5460
5461 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5462
5463 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5464 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5465 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5466 (avr_pointer_to_address): Likewise.
5467 (avr_address_class_type_flags): New function.
5468 (avr_address_class_type_flags_to_name): Likewise.
5469 (avr_address_class_name_to_type_flags): Likewise.
5470 (avr_gdbarch_init): Set address_class_type_flags,
5471 address_class_type_flags_to_name and
5472 address_class_name_to_type_flags.
5473
5474 2014-07-15 Pedro Alves <palves@redhat.com>
5475
5476 * linux-nat.c (kill_callback): Save errno and work with saved
5477 copy.
5478
5479 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5480
5481 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5482
5483 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5484
5485 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5486 breakpoint support correctly.
5487
5488 2014-07-14 Pedro Alves <palves@redhat.com>
5489
5490 * utils.c (prompt_for_continue): Call target_terminal_ours.
5491
5492 2014-07-14 Pedro Alves <palves@redhat.com>
5493
5494 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5495 catch_errors. Don't re-enable stdin or notify observers where,
5496 and rethrow error.
5497 (fetch_inferior_event_wrapper): Delete.
5498
5499 2014-07-14 Pedro Alves <palves@redhat.com>
5500
5501 PR gdb/17072
5502 * top.c: Include "inf-loop.h".
5503 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5504 field.
5505 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5506 was async before.
5507 (gdb_readline_wrapper): Store whether the target is async, and
5508 make it sync.
5509
5510 2014-07-14 Pedro Alves <palves@redhat.com>
5511
5512 PR gdb/17072
5513 * top.c (gdb_readline_wrapper_line): Tweak comment.
5514 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5515 the input handler callback.
5516
5517 2014-07-14 Pedro Alves <palves@redhat.com>
5518
5519 PR gdb/17072
5520 * main.c: Include event-top.h.
5521 (handle_command_errors): New function.
5522 (catch_command_errors, catch_command_errors_const): Use it.
5523
5524 2014-07-14 Pedro Alves <palves@redhat.com>
5525
5526 * exceptions.c (catch_command_errors, catch_command_errors_const):
5527 Moved to main.c.
5528 * exceptions.h (catch_command_errors_ftype)
5529 (catch_command_errors_const_ftype): Moved to main.c.
5530 (catch_command_errors, catch_command_errors_const): Delete
5531 declarations.
5532 * main.c (catch_command_errors_ftype)
5533 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5534 (catch_command_errors, catch_command_errors_const)): Moved here
5535 from exceptions.c and make static.
5536
5537 2014-07-14 Pedro Alves <palves@redhat.com>
5538
5539 * exceptions.c (print_any_exception): Delete.
5540 (catch_exceptions_with_msg): Use exception_print instead of
5541 print_any_exception.
5542 (catch_errors): Use exception_fprintf instead of
5543 print_any_exception.
5544 (catch_command_errors, catch_command_errors_const): Use
5545 exception_print instead of print_any_exception.
5546
5547 2014-07-14 Pedro Alves <palves@redhat.com>
5548
5549 * infcall.c (run_inferior_call): Set 'sync_execution' while
5550 running the inferior call.
5551
5552 2014-07-14 Pedro Alves <palves@redhat.com>
5553
5554 * value.c (value_contents_equal): Delete function.
5555 * value.h (value_contents_equal): Delete declaration.
5556
5557 2014-07-14 Tom Tromey <tromey@redhat.com>
5558
5559 PR exp/17106:
5560 * gdbtypes.c (is_dynamic_type_internal): New function, from
5561 is_dynamic_type.
5562 (is_dynamic_type): Rewrite.
5563 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5564 (resolve_dynamic_struct): Likewise.
5565 (resolve_dynamic_type_internal): New function, from
5566 resolve_dynamic_type.
5567 (resolve_dynamic_type): Rewrite.
5568
5569 2014-07-14 Tom Tromey <tromey@redhat.com>
5570
5571 * target.c (target_require_runnable): Also check record_stratum.
5572 Update comment.
5573
5574 2014-07-11 Yao Qi <yao@codesourcery.com>
5575
5576 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5577 thumb_instruction_restores_sp return true.
5578
5579 2014-07-11 Yao Qi <yao@codesourcery.com>
5580
5581 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5582 (thumb_in_function_epilogue_p): Call
5583 thumb_instruction_restores_sp.
5584
5585 2014-07-11 Yao Qi <yao@codesourcery.com>
5586
5587 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5588 'add sp, #imm'.
5589 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5590
5591 2014-07-11 Gary Benson <gbenson@redhat.com>
5592
5593 * amd64-linux-nat.c (gdbcore.h): Remove include.
5594 (regset.h): Likewise.
5595 (nat/linux-btrace.h): Likewise.
5596 (btrace.h): Likewise.
5597 (gdb_assert.h): Likewise.
5598 (string.h): Likewise.
5599 (sys/uio.h): Likewise.
5600 (sys/debugreg.h): Likewise.
5601 (sys/syscall.h): Likewise.
5602 (sys/procfs.h): Likewise.
5603 (sys/user.h): Likewise.
5604 (asm/ptrace.h): Likewise.
5605 (i386-nat.h): Likewise.
5606 * i386-linux-nat.c (i386-nat.h): Likewise.
5607 (regset.h): Likewise.
5608 (target.h): Likewise.
5609 (linux-nat.h): Likewise.
5610 (nat/linux-btrace.h): Likewise.
5611 (btrace.h): Likewise.
5612 (gdb_assert.h): Likewise.
5613 (string.h): Likewise.
5614 (sys/uio.h): Likewise.
5615 (sys/user.h): Likewise.
5616 (sys/procfs.h): Likewise.
5617 (sys/reg.h): Likewise.
5618 (sys/debugreg.h): Likewise.
5619 (ORIG_EAX): Remove definition.
5620
5621 2014-07-11 Gary Benson <gbenson@redhat.com>
5622
5623 * i386-linux-nat.h: New file.
5624 * x86-linux-nat.h: Likewise.
5625 * x86-linux-nat.c: Likewise.
5626 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5627 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5628 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5629 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5630 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5631 (PTRACE_SETREGSET): Likewise.
5632 (arch_lwp_info): Now in x86-linux-nat.c.
5633 (have_ptrace_getregset): Now in x86-linux-nat.h.
5634 (x86_linux_dr_get): Now in x86-linux-nat.c.
5635 (x86_linux_dr_set): Likewise.
5636 (x86_linux_dr_get_addr): Likewise.
5637 (x86_linux_dr_get_control): Likewise.
5638 (x86_linux_dr_get_status): Likewise.
5639 (update_debug_registers_callback): Likewise.
5640 (x86_linux_dr_set_control): Likewise.
5641 (x86_linux_dr_set_addr): Likewise.
5642 (x86_linux_prepare_to_resume): Likewise.
5643 (x86_linux_new_thread): Likewise.
5644 (x86_linux_new_fork): Likewise.
5645 (x86_linux_get_thread_area): Likewise.
5646 (super_post_startup_inferior): Likewise.
5647 (x86_linux_child_post_startup_inferior): Likewise.
5648 (AMD64_LINUX_USER64_CS): Likewise.
5649 (AMD64_LINUX_X32_DS): Likewise.
5650 (x86_linux_read_description): Likewise.
5651 (x86_linux_enable_btrace): Likewise.
5652 (x86_linux_disable_btrace): Likewise.
5653 (x86_linux_teardown_btrace): Likewise.
5654 (x86_linux_read_btrace): Likewise.
5655 (x86_linux_create_target): Likewise.
5656 (x86_linux_add_target): Likewise.
5657 * i386-linux-nat.c (x86-linux-nat.h): New include.
5658 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5659 (PTRACE_SETREGSET): Likewise.
5660 (arch_lwp_info): Now in x86-linux-nat.c.
5661 (have_ptrace_getregset): Now in x86-linux-nat.h.
5662 (x86_linux_dr_get): Now in x86-linux-nat.c.
5663 (x86_linux_dr_set): Likewise.
5664 (x86_linux_dr_get_addr): Likewise.
5665 (x86_linux_dr_get_control): Likewise.
5666 (x86_linux_dr_get_status): Likewise.
5667 (update_debug_registers_callback): Likewise.
5668 (x86_linux_dr_set_control): Likewise.
5669 (x86_linux_dr_set_addr): Likewise.
5670 (x86_linux_prepare_to_resume): Likewise.
5671 (x86_linux_new_thread): Likewise.
5672 (x86_linux_new_fork): Likewise.
5673 (x86_linux_get_thread_area): Likewise.
5674 (super_post_startup_inferior): Likewise.
5675 (x86_linux_child_post_startup_inferior): Likewise.
5676 (AMD64_LINUX_USER64_CS): Likewise.
5677 (AMD64_LINUX_X32_DS): Likewise.
5678 (x86_linux_read_description): Likewise.
5679 (x86_linux_enable_btrace): Likewise.
5680 (x86_linux_disable_btrace): Likewise.
5681 (x86_linux_teardown_btrace): Likewise.
5682 (x86_linux_read_btrace): Likewise.
5683 (x86_linux_create_target): Likewise.
5684 (x86_linux_add_target): Likewise.
5685
5686 2014-07-11 Gary Benson <gbenson@redhat.com>
5687
5688 * amd64-linux-nat.c: Comment and whitespace changes.
5689 * i386-linux-nat.c: Comment and whitespace changes.
5690
5691 2014-07-11 Gary Benson <gbenson@redhat.com>
5692
5693 * amd64-linux-nat.c (x86_linux_create_target): New function.
5694 (x86_linux_add_target): Likewise.
5695 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5696 * i386-linux-nat.c (x86_linux_create_target): New function.
5697 (x86_linux_add_target): Likewise.
5698 (_initialize_i386_linux_nat): Delegate to the above new functions.
5699
5700 2014-07-11 Gary Benson <gbenson@redhat.com>
5701
5702 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5703 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5704 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5705 (ps_get_thread_area): Delegate to the above.
5706
5707 2014-07-11 Gary Benson <gbenson@redhat.com>
5708
5709 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5710 x86_linux_read_description. All uses updated. amd64-specific
5711 code conditionalized. Conditionalized i386-specific code added.
5712 Redundant cast removed.
5713 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5714 x86_linux_read_description. All uses updated. i386-specific
5715 code conditionalized. Conditionalized amd64-specific code added.
5716 One sizeof replaced with the actual type it is describing.
5717
5718 2014-07-11 Gary Benson <gbenson@redhat.com>
5719
5720 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5721 x86_linux_dr_get. All uses updated.
5722 (amd64_linux_dr_set): Renamed to
5723 x86_linux_dr_set. All uses updated.
5724 (amd64_linux_dr_get_addr): Renamed to
5725 x86_linux_dr_get_addr. All uses updated.
5726 (amd64_linux_dr_get_control): Renamed to
5727 x86_linux_dr_get_control. All uses updated.
5728 (amd64_linux_dr_get_status): Renamed to
5729 x86_linux_dr_get_status. All uses updated.
5730 (amd64_linux_dr_set_control): Renamed to
5731 x86_linux_dr_set_control. All uses updated.
5732 (amd64_linux_dr_set_addr): Renamed to
5733 x86_linux_dr_set_addr. All uses updated.
5734 (amd64_linux_prepare_to_resume): Renamed to
5735 x86_linux_prepare_to_resume. All uses updated.
5736 (amd64_linux_new_thread): Renamed to
5737 x86_linux_new_thread. All uses updated.
5738 (amd64_linux_new_fork): Renamed to
5739 x86_linux_new_fork. All uses updated.
5740 (amd64_linux_child_post_startup_inferior): Renamed to
5741 x86_linux_child_post_startup_inferior. All uses updated.
5742 (amd64_linux_enable_btrace): Renamed to
5743 x86_linux_enable_btrace. All uses updated.
5744 (amd64_linux_disable_btrace): Renamed to
5745 x86_linux_disable_btrace. All uses updated.
5746 (amd64_linux_teardown_btrace): Renamed to
5747 x86_linux_teardown_btrace. All uses updated.
5748 (amd64_linux_read_btrace): Renamed to
5749 x86_linux_read_btrace. All uses updated.
5750 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5751 x86_linux_dr_get. All uses updated.
5752 (i386_linux_dr_set): Renamed to
5753 x86_linux_dr_set. All uses updated.
5754 (i386_linux_dr_get_addr): Renamed to
5755 x86_linux_dr_get_addr. All uses updated.
5756 (i386_linux_dr_get_control): Renamed to
5757 x86_linux_dr_get_control. All uses updated.
5758 (i386_linux_dr_get_status): Renamed to
5759 x86_linux_dr_get_status. All uses updated.
5760 (i386_linux_dr_set_control): Renamed to
5761 x86_linux_dr_set_control. All uses updated.
5762 (i386_linux_dr_set_addr): Renamed to
5763 x86_linux_dr_set_addr. All uses updated.
5764 (i386_linux_prepare_to_resume): Renamed to
5765 x86_linux_prepare_to_resume. All uses updated.
5766 (i386_linux_new_thread): Renamed to
5767 x86_linux_new_thread. All uses updated.
5768 (i386_linux_new_fork): Renamed to
5769 x86_linux_new_fork. All uses updated.
5770 (i386_linux_child_post_startup_inferior): Renamed to
5771 x86_linux_child_post_startup_inferior. All uses updated.
5772 (i386_linux_enable_btrace): Renamed to
5773 x86_linux_enable_btrace. All uses updated.
5774 (i386_linux_disable_btrace): Renamed to
5775 x86_linux_disable_btrace. All uses updated.
5776 (i386_linux_teardown_btrace): Renamed to
5777 x86_linux_teardown_btrace. All uses updated.
5778 (i386_linux_read_btrace): Renamed to
5779 x86_linux_read_btrace. All uses updated.
5780
5781 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5782
5783 * remote.c (extended_remote_post_attach): New function.
5784 (init_extended_remote_ops): Install it as to_post_attach method.
5785
5786 2014-07-09 Pedro Alves <palves@redhat.com>
5787
5788 * infcmd.c (attach_command_post_wait): Don't call
5789 target_terminal_inferior here.
5790 (attach_command): Call it here instead.
5791
5792 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5795 field.
5796 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5797 from varobj.c, with additional checks.
5798 (c_varobj_ops): Fill in is_path_expr_parent field.
5799 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5800 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5801 field.
5802 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5803 ops method.
5804 (varobj_default_is_path_expr_parent): New function.
5805 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5806 (varobj_default_is_path_expr_parent): Declare new function.
5807
5808 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5809
5810 * infcmd.c (finish_backward): Turn internal error into normal error.
5811
5812 2014-07-07 Pedro Alves <palves@redhat.com>
5813
5814 PR gdb/17096
5815 * remote.c (async_handle_remote_sigint)
5816 (async_handle_remote_sigint_twice): Call
5817 gdb_call_async_signal_handler instead of
5818 mark_async_signal_handler.
5819
5820 2014-07-07 Tom Tromey <tromey@redhat.com>
5821
5822 * target-delegates.c: Rebuild.
5823 * target.c (target_info_record): Remove.
5824 * record.c (info_record_command): Unconditionally call
5825 to_info_record.
5826 * target.h (struct target_ops) <to_info_record>: Use
5827 TARGET_DEFAULT_IGNORE.
5828 (target_info_record): Remove.
5829
5830 2014-07-07 Tom Tromey <tromey@redhat.com>
5831
5832 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5833 TARGET_DEFAULT_NORETURN.
5834 * target.c (generic_tls_error): New function.
5835 (target_translate_tls_address): Don't search target stack.
5836 * target-delegates.c: Rebuild.
5837 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5838 stack.
5839 * linux-thread-db.c (thread_db_get_thread_local_address):
5840 Unconditionally call beneath target.
5841
5842 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5843
5844 * cli/cli-logging.c (pop_output_files): Assign targerr to
5845 gdb_stdtargerr.
5846
5847 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5848
5849 * MAINTAINERS (Write After Approval): Update my email address.
5850
5851 2014-07-02 Gary Benson <gbenson@redhat.com>
5852
5853 * proc-service.c (ps_xfer_memory): Update comment.
5854 (ps_pstop): Remove unused function.
5855 (ps_pcontinue): Likewise.
5856 (ps_lstop): Likewise.
5857 (ps_lcontinue): Likewise.
5858 (ps_lgetxregsize): Likewise.
5859 (ps_lgetxregs): Likewise.
5860 (ps_lsetxregs): Likewise.
5861 (ps_plog): Likewise.
5862 (ps_ptread): Likewise.
5863 (ps_ptwrite): Likewise.
5864
5865 2014-07-01 Mark Wielaard <mjw@redhat.com>
5866
5867 * dwarf2read.c (add_array_cv_type): New function.
5868 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5869 (read_tag_volatile_type): Likewise.
5870
5871 2014-07-01 Tom Tromey <tromey@redhat.com>
5872
5873 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5874 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5875 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5876 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5877 * command.h (cmd_cfunc_ftype): Move earlier.
5878 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5879 (add_com, add_info): Use cmd_cfunc_ftype.
5880
5881 2014-06-30 Tom Tromey <tromey@redhat.com>
5882
5883 * symtab.c (operator_chars): Make parameters and return type
5884 const.
5885 (file_matches): Make "files" const.
5886 (struct search_symbols_data) <files>: Now const.
5887 (search_symbols): Make "regexp" and "files" parameters const.
5888 Update.
5889 (symtab_symbol_info): Remove cast.
5890 (rbreak_command): Update.
5891 * symtab.h (search_symbols): Update.
5892
5893 2014-06-27 Yao Qi <yao@codesourcery.com>
5894
5895 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5896 Change parameter type to 'struct thread_info *'. Caller
5897 updated.
5898 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5899 Update declaration.
5900 * dummy-frame.c (struct dummy_frame_id): New.
5901 (dummy_frame_id_eq): New function.
5902 (struct dummy_frame) <id>: Change its type to 'struct
5903 dummy_frame_id'.
5904 (dummy_frame_push): Add parameter ptid and save it in
5905 dummy_frame_id.
5906 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5907 inferior_ptid.
5908 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5909 to inferior_ptid.
5910 (lookup_dummy_frame): Change parameter type to 'struct
5911 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5912 instead of frame_id_eq.
5913 (dummy_frame_pop): Add parameter ptid. Callers updated.
5914 Update comments. Compose dummy_frame_id and pass it to
5915 lookup_dummy_frame.
5916 (dummy_frame_discard): Add parameter ptid.
5917 (dummy_frame_sniffer): Compose dummy_frame_id and call
5918 dummy_frame_id_eq instead of frame_id_eq.
5919 (fprint_dummy_frames): Print ptid.
5920 * dummy-frame.h: Remove comments.
5921 (dummy_frame_push): Add ptid in declaration.
5922 (dummy_frame_pop, dummy_frame_discard): Likewise.
5923
5924 2014-06-26 Tom Tromey <tromey@redhat.com>
5925
5926 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5927 * command.h (error_no_arg): Update.
5928
5929 2014-06-26 Tom Tromey <tromey@redhat.com>
5930
5931 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5932 (do_show_command): Make "arg" const.
5933 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5934
5935 2014-06-26 Tom Tromey <tromey@redhat.com>
5936
5937 * record-full.c (record_full_get_bookmark): Make "args" const.
5938 (record_full_goto_bookmark): Make "raw_bookmark" const.
5939 * record.c (record_goto): New function.
5940 (cmd_record_goto): Use it. Now static.
5941 * record.h (record_goto): Declare.
5942 (cmd_record_goto): Remove declaration.
5943 * target-delegates.c: Rebuild.
5944 * target.h (struct target_ops) <to_get_bookmark,
5945 to_goto_bookmark>: Make parameter const.
5946
5947 2014-06-26 Tom Tromey <tromey@redhat.com>
5948
5949 * defs.h (generic_load): Update.
5950 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5951 * monitor.c (monitor_load): Make "args" const.
5952 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5953 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5954 const.
5955 (mips_load): Make "file" const.
5956 * remote-sim.c (gdbsim_load): Make "args" const.
5957 * remote.c (remote_load): Make "name" const.
5958 * symfile.c (generic_load): Make "args" const.
5959 * target-delegates.c: Rebuild.
5960 * target.c (target_load): Make "arg" const.
5961 (debug_to_load): Make "args" const.
5962 * target.h (struct target_ops) <to_load>: Make parameter const.
5963 (target_load): Update.
5964
5965 2014-06-26 Tom Tromey <tromey@redhat.com>
5966
5967 PR symtab/16902:
5968 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5969 (dwarf2_physname, read_partial_die)
5970 (guess_partial_die_structure_name, fixup_partial_die)
5971 (guess_full_die_structure_name, anonymous_struct_prefix)
5972 (dwarf2_name): Use per-BFD obstack.
5973
5974 2014-06-26 Yao Qi <yao@codesourcery.com>
5975
5976 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5977 dummyframe and this_id into inner block below.
5978
5979 2014-06-26 Yao Qi <yao@codesourcery.com>
5980
5981 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5982 with "signal_pass[0]" in the initialization of signal_pass.
5983
5984 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5985
5986 * record-btrace.c (record_btrace_generating_corefile)
5987 (record_btrace_prepare_to_generate_core)
5988 (record_btrace_done_generating_core): New.
5989 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5990 (record_btrace_store_registers, record_btrace_prepare_to_store):
5991 Forward request when generating a core file.
5992 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5993 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5994 to_done_generating_core.
5995
5996 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5997
5998 * target.h (target_ops) <to_prepare_to_generate_core>
5999 <to_done_generating_core>: New.
6000 (target_prepare_to_generate_core, target_done_generating_core): New.
6001 * target.c (target_prepare_to_generate_core)
6002 (target_done_generating_core): New.
6003 * target-delegates.c: Regenerate.
6004 * gcore.c: (write_gcore_file): Rename to ...
6005 (write_gcore_file_1): ...this.
6006 (write_gcore_file): Call target_prepare_to_generate_core
6007 and target_done_generating_core.
6008
6009 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6010
6011 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6012 * gcore.c (write_gcore_file): Free memory returned from
6013 make_corefile_notes.
6014 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6015 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6016
6017 2014-06-24 Yao Qi <yao@codesourcery.com>
6018
6019 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6020 (arm_linux_init_abi): Set skip_trampoline_code with
6021 gdbarch_skip_trampoline_code instead of
6022 find_solib_trampoline_target.
6023
6024 2014-06-24 Yao Qi <yao@codesourcery.com>
6025
6026 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6027 arm_skip_bx_reg returns non-zero.
6028
6029 2014-06-24 Yao Qi <yao@codesourcery.com>
6030
6031 * arm-tdep.c (arm_skip_bx_reg): New function.
6032 (arm_skip_stub): Call arm_skip_bx_reg.
6033
6034 2014-06-23 Don Breazeal <donb@codesourcery.com>
6035
6036 * MAINTAINERS: Add myself as write-after-approval maintainer.
6037
6038 2014-06-23 Pedro Alves <palves@redhat.com>
6039
6040 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6041 DR_CONTROL before setting DR0..DR3.
6042 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6043 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6044 bits of DR_CONTROL related to the debug register slot being
6045 disabled. If all slots are vacant, clear local slowdown as well,
6046 and assert DR_CONTROL is 0.
6047
6048 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6049
6050 * python/lib/gdb/command/xmethods.py
6051 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6052 current progspace only if the string "progspace" matches LOCUS_RE.
6053
6054 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6055
6056 Fix --with-system-readline with readline-6.3 patch 5.
6057 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6058 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6059 types.
6060
6061 2014-06-20 Tom Tromey <tromey@redhat.com>
6062
6063 * dwarf2read.c (dw2_get_real_path): Use correct type in
6064 OBSTACK_CALLOC.
6065 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6066
6067 2014-06-20 Gary Benson <gbenson@redhat.com>
6068
6069 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6070 * common/glibc_thread_db.h: Likewise.
6071 * common/i386-cpuid.h: Likewise.
6072 * common/i386-gcc-cpuid.h: Likewise.
6073 * common/linux-btrace.h: Likewise.
6074 * common/linux-osdata.h: Likewise.
6075 * common/linux-procfs.h: Likewise.
6076 * common/linux-ptrace.h: Likewise.
6077 * common/mips-linux-watch.h: Likewise.
6078 * common/linux-btrace.c: Moved to nat.
6079 * common/linux-osdata.c: Likewise.
6080 * common/linux-procfs.c: Likewise.
6081 * common/linux-ptrace.c: Likewise.
6082 * common/mips-linux-watch.c: Likewise.
6083 * nat/gdb_thread_db.h: Moved from common.
6084 * nat/glibc_thread_db.h: Likewise.
6085 * nat/i386-cpuid.h: Likewise.
6086 * nat/i386-gcc-cpuid.h: Likewise.
6087 * nat/linux-btrace.c: Likewise.
6088 * nat/linux-btrace.h: Likewise.
6089 * nat/linux-osdata.c: Likewise.
6090 * nat/linux-osdata.h: Likewise.
6091 * nat/linux-procfs.c: Likewise.
6092 * nat/linux-procfs.h: Likewise.
6093 * nat/linux-ptrace.c: Likewise.
6094 * nat/linux-ptrace.h: Likewise.
6095 * nat/mips-linux-watch.c: Likewise.
6096 * nat/mips-linux-watch.h: Likewise.
6097 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6098 (object file files): Reordered.
6099 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6100 of glibc_thread_db.h.
6101
6102 2014-06-20 Gary Benson <gbenson@redhat.com>
6103
6104 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6105 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6106 (i386_dr_low): Likewise.
6107 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6108 (i386_dr_low_set_addr): Likewise.
6109 (i386_dr_low_get_addr): Likewise.
6110 (i386_dr_low_can_set_control): Likewise.
6111 (i386_dr_low_set_control): Likewise.
6112 (i386_dr_low_get_control): Likewise.
6113 (i386_dr_low_get_status): Likewise.
6114 (i386_get_debug_register_length): Likewise.
6115 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6116 (i386_dr_low): Likewise.
6117 * nat/i386-dregs.c (i386-low.h): Remove include.
6118 (i386-nat.h): Likewise.
6119 (nat/i386-dregs.h): New include.
6120 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6121 (i386_dr_low_set_addr): Likewise.
6122 (i386_dr_low_get_addr): Likewise.
6123 (i386_dr_low_can_set_control): Likewise.
6124 (i386_dr_low_set_control): Likewise.
6125 (i386_dr_low_get_control): Likewise.
6126 (i386_dr_low_get_status): Likewise.
6127 (i386_get_debug_register_length): Likewise.
6128 (debug_hw_points): Likewise.
6129
6130 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6131
6132 * Makefile.in (SFILES): Add d-exp.y.
6133 (YYFILES): Add d-exp.c.
6134 (YYOBJ): Add d-exp.o.
6135 (local-maintainer-clean): Delete d-exp.c.
6136 * d-exp.y: New file.
6137 * d-lang.h (d_parse): New declaration.
6138 (d_error): New declaration.
6139 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6140 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6141 PREC_ORDER operators.
6142 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6143
6144 2014-06-19 Yao Qi <yao@codesourcery.com>
6145
6146 * gdbthread.h (any_running): Remove the declaration.
6147 * thread.c (any_running): Remove.
6148
6149 2014-06-19 Yao Qi <yao@codesourcery.com>
6150
6151 * gdbthread.h (struct thread_info) <state>: Change its type to
6152 'enum thread_state'. Update comments.
6153
6154 2014-06-19 Pedro Alves <palves@redhat.com>
6155
6156 * gdbthread.h (ALL_THREADS): Delete.
6157 (ALL_NON_EXITED_THREADS): New macro.
6158 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6159 instead of ALL_THREADS.
6160 * infrun.c (find_thread_needs_step_over)
6161 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6162 instead of ALL_THREADS.
6163 * record-btrace.c (record_btrace_open)
6164 (record_btrace_stop_recording, record_btrace_close)
6165 (record_btrace_is_replaying, record_btrace_resume)
6166 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6167 * remote.c (append_pending_thread_resumptions): Likewise.
6168 * thread.c (thread_apply_all_command): Likewise.
6169
6170 2014-06-19 Gary Benson <gbenson@redhat.com>
6171
6172 * i386-nat.c (i386_stopped_by_watchpoint):
6173 Use i386_dr_stopped_by_watchpoint.
6174 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6175 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6176
6177 2014-06-19 Gary Benson <gbenson@redhat.com>
6178
6179 * nat/i386-dregs.c: New file.
6180 * Makefile.in (i386-dregs.o): New rule.
6181 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6182 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6183 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6184 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6185 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6186 * config/i386/go32.mh (NATDEPFILES): Likewise.
6187 * config/i386/linux.mh (NATDEPFILES): Likewise.
6188 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6189 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6190 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6191 * i386-nat.h (debug_hw_points): New declaration.
6192 * i386-nat.c (breakpoint.h): Remove include.
6193 (command.h): Likewise.
6194 (target.h): Likewise.
6195 (gdb_assert.h): Likewise.
6196 (debug_hw_points): Made nonstatic.
6197 (debug_printf): Now in i386-dregs.c.
6198 (TARGET_HAS_DR_LEN_8): Likewise.
6199 (DR_CONTROL_SHIFT): Likewise.
6200 (DR_CONTROL_SIZE): Likewise.
6201 (DR_RW_EXECUTE): Likewise.
6202 (DR_RW_WRITE): Likewise.
6203 (DR_RW_READ): Likewise.
6204 (DR_RW_IORW): Likewise.
6205 (DR_LEN_1): Likewise.
6206 (DR_LEN_2): Likewise.
6207 (DR_LEN_4): Likewise.
6208 (DR_LEN_8): Likewise.
6209 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6210 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6211 (DR_ENABLE_SIZE): Likewise.
6212 (DR_LOCAL_SLOWDOWN): Likewise.
6213 (DR_GLOBAL_SLOWDOWN): Likewise.
6214 (DR_CONTROL_RESERVED): Likewise.
6215 (I386_DR_CONTROL_MASK): Likewise.
6216 (I386_DR_VACANT): Likewise.
6217 (I386_DR_LOCAL_ENABLE): Likewise.
6218 (I386_DR_GLOBAL_ENABLE): Likewise.
6219 (I386_DR_DISABLE): Likewise.
6220 (I386_DR_SET_RW_LEN): Likewise.
6221 (I386_DR_GET_RW_LEN): Likewise.
6222 (I386_DR_WATCH_HIT): Likewise.
6223 (i386_wp_op_t): Likewise.
6224 (i386_show_dr): Likewise.
6225 (i386_length_and_rw_bits): Likewise.
6226 (i386_insert_aligned_watchpoint): Likewise.
6227 (i386_remove_aligned_watchpoint): Likewise.
6228 (i386_handle_nonaligned_watchpoint): Likewise.
6229 (i386_update_inferior_debug_regs): Likewise.
6230 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6231 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6232 (i386_region_ok_for_watchpoint):
6233 Use i386_dr_region_ok_for_watchpoint.
6234 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6235
6236 2014-06-19 Gary Benson <gbenson@redhat.com>
6237
6238 * i386-nat.c (i386_insert_hw_breakpoint): Use
6239 i386_insert_watchpoint.
6240 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6241
6242 2014-06-19 Gary Benson <gbenson@redhat.com>
6243
6244 * i386-nat.c (i386_dr_show): Renamed to
6245 i386_show_dr and made static. All uses updated.
6246 (i386_dr_length_and_rw_bits): Renamed to
6247 i386_length_and_rw_bits and made static.
6248 All uses updated.
6249 (i386_dr_insert_aligned_watchpoint): Renamed to
6250 i386_insert_aligned_watchpoint and made static.
6251 All uses updated.
6252 (i386_dr_remove_aligned_watchpoint): Renamed to
6253 i386_remove_aligned_watchpoint and made static.
6254 All uses updated.
6255 (i386_dr_update_inferior_debug_regs): Renamed to
6256 i386_update_inferior_debug_regs and made static.
6257 All uses updated.
6258 * nat/i386-dregs.h (i386_dr_show): Removed.
6259 (i386_dr_length_and_rw_bits): Likewise.
6260 (i386_dr_insert_aligned_watchpoint): Likewise.
6261 (i386_dr_remove_aligned_watchpoint): Likewise.
6262 (i386_dr_update_inferior_debug_regs): Likewise.
6263
6264 2014-06-19 Gary Benson <gbenson@redhat.com>
6265
6266 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6267 * configure: Regenerate.
6268 * config.in: Likewise.
6269 * main.c (signal.h): New include.
6270 (setup_alternate_signal_stack): New function.
6271 (captured_main): Call the above.
6272 * cp-support.c (signal.h): New include.
6273 (catch_demangler_crashes): New flag.
6274 (SIGJMP_BUF): New define.
6275 (SIGSETJMP): Likewise.
6276 (SIGLONGJMP): Likewise.
6277 (gdb_demangle_jmp_buf): New static global.
6278 (gdb_demangle_attempt_core_dump): Likewise.
6279 (gdb_demangle_signal_handler): New function.
6280 (gdb_demangle): If catch_demangler_crashes is set, install the
6281 above signal handler before calling bfd_demangle, and restore
6282 the original signal handler afterwards. Display the offending
6283 symbol and call demangler_warning the first time a segmentation
6284 fault is caught.
6285 (_initialize_cp_support): New maint set/show command.
6286
6287 2014-06-19 Gary Benson <gbenson@redhat.com>
6288
6289 * utils.h (resource_limit_kind): New enum.
6290 (can_dump_core): New declaration.
6291 (warn_cant_dump_core): Likewise.
6292 (dump_core): Likewise.
6293 * utils.c (dump_core): Made nonstatic. Added new
6294 parameter "limit_kind".
6295 (can_dump_core): Made nonstatic. Moved printing code to...
6296 (warn_cant_dump_core): New function.
6297 (can_dump_core_warn): Likewise.
6298 (internal_vproblem): Replace calls to can_dump_core with
6299 calls to can_dump_core_warn. Supply new argument to each.
6300
6301 2014-06-19 Gary Benson <gbenson@redhat.com>
6302
6303 * utils.h (demangler_vwarning): New declaration.
6304 (demangler_warning): Likewise.
6305 * utils.c (struct internal_problem)
6306 <user_settable_should_quit>: New field.
6307 <user_settable_should_dump_core>: Likewise
6308 (internal_error_problem): Add values for above new fields.
6309 (internal_warning_problem): Likewise.
6310 (demangler_warning_problem): New static global.
6311 (demangler_vwarning): New function.
6312 (demangler_warning): Likewise.
6313 (add_internal_problem_command): Selectively add commands.
6314 (_initialize_utils): New internal problem command.
6315 * maint.c (maintenance_demangler_warning): New function.
6316 (_initialize_maint_cmds): New command.
6317
6318 2014-06-18 Tom Tromey <tromey@redhat.com>
6319
6320 * f-valprint.c (info_common_command_for_block): Update.
6321 * symtab.h (struct general_symbol_info) <common_block>: Now
6322 const.
6323
6324 2014-06-18 Tom Tromey <tromey@redhat.com>
6325
6326 * symtab.h (struct symtab) <blockvector>: Now const.
6327 * ada-lang.c (ada_add_global_exceptions): Update.
6328 * buildsym.c (augment_type_symtab): Update.
6329 * dwarf2read.c (dw2_lookup_symbol): Update.
6330 * jit.c (finalize_symtab): Update.
6331 * jv-lang.c (add_class_symtab_symbol): Update.
6332 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6333 Update.
6334 * objfiles.c (objfile_relocate1): Update.
6335 * psymtab.c (lookup_symbol_aux_psymtabs)
6336 (maintenance_check_psymtabs): Update.
6337 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6338 Update.
6339 * spu-tdep.c (spu_catch_start): Update.
6340 * symmisc.c (dump_symtab_1): Update.
6341 * symtab.c (lookup_global_symbol_from_objfile)
6342 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6343 (basic_lookup_transparent_type_quick)
6344 (basic_lookup_transparent_type, find_pc_sect_symtab)
6345 (find_pc_sect_line, search_symbols): Update.
6346 * block.c (find_block_in_blockvector): Make "bl" const.
6347 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6348 const.
6349 (blockvector_contains_pc): Make "bv" const.
6350 (block_for_pc_sect): Update.
6351 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6352 (blockvector_contains_pc): Update.
6353 * breakpoint.c (resolve_sal_pc): Update.
6354 * inline-frame.c (block_starting_point_at): Update.
6355
6356 2014-06-18 Tom Tromey <tromey@redhat.com>
6357
6358 * completer.c (complete_line): Make "line_buffer" const.
6359 * completer.h (complete_line): Update.
6360
6361 2014-06-18 Tom Tromey <tromey@redhat.com>
6362
6363 * symtab.c (add_macro_name): Remove unneeded cast.
6364
6365 2014-06-18 Tom Tromey <tromey@redhat.com>
6366
6367 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6368 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6369
6370 2014-06-18 Tom Tromey <tromey@redhat.com>
6371
6372 * probe.c (info_probes_for_ops): Make "arg" const.
6373 * probe.h (info_probes_for_ops): Update.
6374
6375 2014-06-18 Tom Tromey <tromey@redhat.com>
6376
6377 * varobj.c (varobj_create): Update.
6378 * valops.c (value_of_this): Update.
6379 * tracepoint.c (add_local_symbols, scope_info): Update.
6380 * symtab.h (struct general_symbol_info) <block>: Now const.
6381 * symtab.c (skip_prologue_sal)
6382 (default_make_symbol_completion_list_break_on)
6383 (skip_prologue_using_sal): Update.
6384 * stack.h (iterate_over_block_locals)
6385 (iterate_over_block_local_vars): Update.
6386 * stack.c (print_frame_args): Update.
6387 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6388 parameter const.
6389 (get_selected_block): Make return type const.
6390 * python/py-frame.c (frapy_block): Update.
6391 * python/py-block.c (gdbpy_block_for_pc): Update.
6392 * p-exp.y (%union) <bval>: Now const.
6393 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6394 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6395 * m2-exp.y (%union) <bval>: Now const.
6396 * linespec.c (get_current_search_block): Make return type const.
6397 (create_sals_line_offset, find_label_symbols): Update.
6398 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6399 Update.
6400 (block_starting_point_at): Make "block" const.
6401 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6402 (check_exception_resume): Update.
6403 * guile/scm-frame.c (gdbscm_frame_block): Update.
6404 * guile/scm-block.c (gdbscm_lookup_block): Update.
6405 * frame.h (get_frame_block): Update.
6406 (get_selected_block): Make return type const.
6407 * frame.c (frame_id_inner): Update.
6408 * f-valprint.c (info_common_command_for_block)
6409 (info_common_command): Update.
6410 * dwarf2loc.c (dwarf2_find_location_expression)
6411 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6412 (locexpr_describe_location_piece): Update.
6413 * c-exp.y (%union) <bval>: Now const.
6414 * breakpoint.c (resolve_sal_pc): Update.
6415 * blockframe.c (get_frame_block):Make return type const.
6416 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6417 (block_innermost_frame): Update.
6418 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6419 (block_for_pc, block_for_pc_sect): Update.
6420 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6421 'pblock' const.
6422 (block_for_pc_sect, block_for_pc): Make return type const.
6423 * ax-gdb.c (gen_expr): Update.
6424 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6425 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6426 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6427 (ada_read_var_value): Update.
6428 * ada-exp.y (struct name_info) <block>: Now const.
6429 (%union): Likewise.
6430 (block_lookup): Constify.
6431
6432 2014-06-18 Gary Benson <gbenson@redhat.com>
6433
6434 * nat/i386-dregs.h: New file.
6435 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6436 * i386-nat.h (i386-dregs.h): New include.
6437 (DR_FIRSTADDR): Now in i386-dregs.h.
6438 (DR_LASTADDR): Likewise.
6439 (DR_NADDR): Likewise.
6440 (DR_STATUS): Likewise.
6441 (DR_CONTROL): Likewise.
6442 (i386_debug_reg_state): Likewise.
6443 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6444
6445 2014-06-18 Don Breazeal <donb@codesourcery.com>
6446
6447 * breakpoint.c (set_longjmp_breakpoint): Call
6448 momentary_breakpoint_from_master with additional argument.
6449 (set_longjmp_breakpoint_for_call_dummy): Call
6450 momentary_breakpoint_from_master with additional argument.
6451 (set_std_terminate_breakpoint): Call
6452 momentary_breakpoint_from_master with additional argument.
6453 (momentary_breakpoint_from_master): Add argument to function
6454 definition and use it to initialize structure member flag.
6455 (clone_momentary_breakpoint): Call
6456 momentary_breakpoint_from_master with additional argument.
6457 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6458 member flags set in momentary_breakpoint_from_master.
6459
6460 2014-06-18 Gary Benson <gbenson@redhat.com>
6461
6462 * i386-nat.c (i386_show_dr): Renamed to
6463 i386_dr_show and made nonstatic. All uses updated.
6464 (i386_length_and_rw_bits): Renamed to
6465 i386_dr_length_and_rw_bits and made nonstatic.
6466 All uses updated.
6467 (i386_insert_aligned_watchpoint): Renamed to
6468 i386_dr_insert_aligned_watchpoint and made nonstatic.
6469 All uses updated.
6470 (i386_remove_aligned_watchpoint): Renamed to
6471 i386_dr_remove_aligned_watchpoint and made nonstatic.
6472 All uses updated.
6473 (i386_update_inferior_debug_regs): Renamed to
6474 i386_dr_update_inferior_debug_regs and made nonstatic.
6475 All uses updated.
6476
6477 2014-06-18 Gary Benson <gbenson@redhat.com>
6478
6479 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6480 (i386_dr_low_can_set_control): Likewise.
6481 (i386_dr_low_set_addr): Likewise.
6482 (i386_dr_low_set_control): Likewise.
6483 (i386_dr_low_get_addr): Likewise.
6484 (i386_dr_low_get_status): Likewise.
6485 (i386_dr_low_get_control): Likewise.
6486 (i386_insert_aligned_watchpoint): Use new macros.
6487 (i386_update_inferior_debug_regs): Likewise.
6488 (i386_stopped_data_address): Likewise.
6489
6490 2014-06-18 Gary Benson <gbenson@redhat.com>
6491
6492 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6493 New parameter. All uses updated.
6494
6495 2014-06-18 Gary Benson <gbenson@redhat.com>
6496
6497 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6498 All uses updated.
6499
6500 2014-06-18 Gary Benson <gbenson@redhat.com>
6501
6502 * i386-nat.c (debug_printf): New macro.
6503 (i386_get_debug_register_length): Likewise.
6504 (TARGET_HAS_DR_LEN_8): Use above macro.
6505 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6506 and printf_unfiltered. Use phex to format values.
6507
6508 2014-06-18 Gary Benson <gbenson@redhat.com>
6509
6510 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6511 Make const.
6512
6513 2014-06-18 Gary Benson <gbenson@redhat.com>
6514
6515 * i386-nat.c: Comment changes.
6516
6517 2014-06-18 Gary Benson <gbenson@redhat.com>
6518
6519 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6520
6521 2014-06-18 Gary Benson <gbenson@redhat.com>
6522
6523 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6524 (i386_insert_aligned_watchpoint): Likewise.
6525 (i386_remove_aligned_watchpoint): Likewise.
6526 (i386_handle_nonaligned_watchpoint): Likewise.
6527
6528 2014-06-18 Gary Benson <gbenson@redhat.com>
6529
6530 * i386-nat.c: Whitespace changes.
6531
6532 2014-06-17 Samuel Bronson <naesten@gmail.com>
6533
6534 * MAINTAINERS: Update Roland McGrath's email address.
6535 Thanks to Sergio Durigan Junior for pointing out that he left
6536 Red Hat a while ago, and giving me a current address.
6537
6538 2014-06-17 Tom Tromey <tromey@redhat.com>
6539
6540 * utils.h (savestring): Remove declaration.
6541
6542 2014-06-17 Tom Tromey <tromey@redhat.com>
6543
6544 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6545
6546 2014-06-16 Keith Seitz <keiths@redhat.com>
6547
6548 PR mi/15863
6549 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6550 to update the varobj if inferior_ptid is null_ptid.
6551
6552 2014-06-16 Tom Tromey <tromey@redhat.com>
6553
6554 * target.h (struct target_ops) <to_info_proc>: Make parameter
6555 const.
6556 (target_info_proc): Update.
6557 * target.c (target_info_proc): Make "args" const.
6558 * procfs.c (procfs_info_proc): Update.
6559 * linux-tdep.c (linux_info_proc): Update.
6560 (linux_core_info_proc_mappings): Make "args" const.
6561 (linux_core_info_proc): Update.
6562 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6563 * gdbarch.c: Rebuild.
6564 * gdbarch.h: Rebuild.
6565 * corelow.c (core_info_proc): Update.
6566
6567 2014-06-16 Tom Tromey <tromey@redhat.com>
6568
6569 * target.h (struct target_ops) <to_disconnect>: Make parameter
6570 const.
6571 (target_disconnect): Update.
6572 * target.c (target_disconnect): Make "args" const.
6573 * target-delegates.c: Rebuild.
6574 * remote.c (remote_disconnect): Update.
6575 * record.h (record_disconnect): Update.
6576 * record.c (record_disconnect): Update.
6577 * inf-child.c (inf_child_disconnect): Update.
6578
6579 2014-06-16 Tom Tromey <tromey@redhat.com>
6580
6581 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6582 * target.c (debug_to_rcmd, default_rcmd): Update.
6583 * target-delegates.c: Rebuild.
6584 * remote.c (remote_rcmd): Update.
6585 * monitor.c (monitor_rcmd): Update.
6586
6587 2014-06-16 Pedro Alves <palves@redhat.com>
6588
6589 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6590 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6591 have OBJF_SHARED set.
6592 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6593 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6594 instead of OBJF_USERLOADED.
6595 * objfiles.h (OBJF_SHARED): Update comment.
6596 (userloaded_objfile_contains_address_p): Rename to ...
6597 (shared_objfile_contains_address_p): ... this, and update
6598 comments.
6599 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6600 new objfile.
6601 (remove_symbol_file_command): Skip objfiles that don't have
6602 OBJF_SHARED set.
6603
6604 2014-06-16 Tom Tromey <tromey@redhat.com>
6605
6606 * minsyms.h (prim_record_minimal_symbol)
6607 (prim_record_minimal_symbol_and_info): Update comments.
6608
6609 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6610
6611 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6612 or --without-guile, according to how GDB was built.
6613
6614 2014-06-13 Tom Tromey <tromey@redhat.com>
6615
6616 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6617 to help_list.
6618 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6619 to help_list.
6620 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6621 help_list.
6622 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6623 help_list.Pass all_commands, not -1, to help_list.
6624 * cli/cli-dump.c (dump_command, append_command)
6625 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6626 (binary_dump_command, binary_append_command): Pass all_commands,
6627 not -1, to help_list.
6628 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6629 -1, to help_list.
6630 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6631 -1, to help_list.
6632 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6633 help_list.
6634 * top.c (set_history): Pass all_commands, not -1, to help_list.
6635 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6636 all_commands, not -1, to help_list.
6637 * symfile.c (overlay_command): Pass all_commands, not -1, to
6638 help_list.
6639 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6640 help_list.
6641 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6642 help_list.
6643 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6644 -1, to help_list.
6645 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6646 not -1, to help_list.
6647 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6648 not -1, to help_list.
6649 * maint.c (maintenance_command, maintenance_info_command)
6650 (maintenance_print_command, maintenance_set_cmd): Pass
6651 all_commands, not -1, to help_list.
6652 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6653 help_list.
6654 * language.c (set_check): Pass all_commands, not -1, to help_list.
6655 * infcmd.c (unset_command): Pass all_commands, not -1, to
6656 help_list.
6657 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6658 help_list.
6659 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6660 help_list.
6661 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6662 help_list.
6663 * breakpoint.c (save_command): Pass all_commands, not -1, to
6664 help_list.
6665 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6666 all_commands, not -1, to help_list.
6667
6668 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6669
6670 * regcache.c (struct register_to_invalidate): New structure.
6671 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6672 functions.
6673 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6674
6675 2014-06-12 Yao Qi <yao@codesourcery.com>
6676
6677 * varobj.c (varobj_get_num_children): Call
6678 varobj_is_dynamic_p.
6679 (varobj_list_children): Likewise.
6680 (varobj_update): Likewise. Update comments.
6681
6682 2014-06-12 Yao Qi <yao@codesourcery.com>
6683
6684 * varobj.c (varobj_pretty_printed_p): Rename to ...
6685 (varobj_is_dynamic_p): ... this. New function.
6686 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6687 (varobj_is_dynamic_p): Declare.
6688 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6689 (mi_print_value_p, varobj_update_one): Likewise.
6690
6691 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6692 Yao Qi <yao@codesourcery.com>
6693
6694 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6695 (varobj_get_iterator): Wrap up code for pretty-printer by
6696 "#if HAVE_PYTHON" and "#endif".
6697 (update_dynamic_varobj_children): Likewise.
6698
6699 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6700 Yao Qi <yao@codesourcery.com>
6701
6702 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6703 gdb_python_initialized is false. Move some code from varobj.c.
6704 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6705 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6706 (struct varobj_item): Moved to varobj-iter.h".
6707 (varobj_clear_saved_item): New function.
6708 (update_dynamic_varobj_children): Move python-related code to
6709 py-varobj.c.
6710 (free_variable): Call varobj_clear_saved_item and
6711 varobj_iter_delete.
6712
6713 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6714 Yao Qi <yao@codesourcery.com>
6715
6716 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6717 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6718 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6719 (py-varobj.o): New rule.
6720 * python/py-varobj.c: New file.
6721 * python/python-internal.h (py_varobj_get_iterator): Declare.
6722 * varobj-iter.h: New file.
6723 * varobj.c: Include "varobj-iter.h"
6724 (struct varobj) <child_iter>: Change its type from "PyObject *"
6725 to "struct varobj_iter *".
6726 <saved_item>: Likewise.
6727 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6728 [HAVE_PYTHON] (varobj_get_iterator): New function.
6729 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6730 python-specific code to python/py-varobj.c.
6731 (install_visualizer): Call varobj_iter_delete instead of
6732 Py_XDECREF.
6733 * varobj.h (varobj_ensure_python_env): Declare.
6734
6735 2014-06-12 Yao Qi <yao@codesourcery.com>
6736
6737 * varobj.c (struct varobj_item): New structure.
6738 (create_child_with_value): Update declaration.
6739 (varobj_add_child): Replace arguments 'name' and 'value' with
6740 'item'. All callers updated.
6741 (install_dynamic_child): Likewise.
6742 (update_dynamic_varobj_children): Likewise.
6743 (varobj_add_child): Likewise.
6744 (create_child_with_value): Likewise.
6745
6746 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6747
6748 * NEWS: Create a new section for the next release branch.
6749 Rename the section of the current branch, now that it has
6750 been cut.
6751
6752 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6753
6754 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6755 * version.in: Bump version to 7.8.50.DATE-cvs.
6756
6757 2014-06-11 Pedro Alves <palves@redhat.com>
6758
6759 PR remote/17028
6760 * ser-mingw.c (net_windows_socket_check_pending): New function.
6761 (net_windows_select_thread): Ignore spurious wakeups. Use
6762 net_windows_socket_check_pending.
6763 (net_windows_wait_handle): Check for pending events with
6764 ioctlsocket, through net_windows_socket_check_pending, instead of
6765 checking the socket's event.
6766
6767 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6768
6769 * python/python-internal.h (gdb_PyObject_GetAttrString)
6770 (gdb_PyObject_HasAttrString): New inline function definitions.
6771 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6772 char * of the second argument to PyObject_GetAttrString.
6773
6774 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6775
6776 * serial.c (serial_write): Fix index of character to be printed
6777 in call to serial_logchar when serial debug traces are enabled.
6778
6779 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6780
6781 * gdbtypes (resolve_dynamic_range): Add function description.
6782
6783 2014-06-09 Pedro Alves <palves@redhat.com>
6784
6785 * linux-nat.c (linux_child_follow_fork): Initialize status with
6786 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6787 inner block. Only pass the signal to PTRACE_DETACH if in pass
6788 state.
6789
6790 2014-06-09 Gary Benson <gbenson@redhat.com>
6791
6792 * common/signals.c (gdb_signal_from_host): Reorder to separate
6793 the always-available ANSI-standard signals from the signals that
6794 require checking.
6795 (do_gdb_signal_to_host): Likewise.
6796 * proc-events.c (signal_table): Likewise.
6797
6798 2014-06-08 Hui Zhu <hui@codesourcery.com>
6799
6800 * common/linux-ptrace.c (linux_disable_event_reporting): New
6801 function.
6802 * common/linux-ptrace.h (linux_disable_event_reporting): New
6803 declaration.
6804 * linux-nat.c (linux_child_follow_fork): Do a single step before
6805 detach.
6806
6807 2014-06-07 Keith Seitz <keiths@redhat.com>
6808
6809 Revert:
6810 PR c++/16253
6811 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6812 from symbol_matches_domain in symtab.c. All local callers
6813 of symbol_matches_domain updated.
6814 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6815 search STRUCT_DOMAIN.
6816 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6817 independently. standard_lookup will do that automatically.
6818 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6819 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6820 (cp_lookup_symbol_in_namespace): Likewise.
6821 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6822 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6823 may return a STRUCT_DOMAIN match.
6824 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6825 * cp-support.c: Include language.h.
6826 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6827 VAR_DOMAIN.
6828 * psymtab.c (match_partial_symbol): Compare the requested
6829 domain with the symbol's domain directly.
6830 (lookup_partial_symbol): Likewise.
6831 * symtab.c (lookup_symbol_in_language): Explain when/why
6832 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6833 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6834 appropriate languages.
6835 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6836 and moved to ada-lang.c
6837 (lookup_block_symbol): Explain that this function only returns
6838 symbol matching the requested DOMAIN.
6839 Compare the requested domain with the symbol's domain directly.
6840 (iterate_over_symbols): Compare the requested domain with the
6841 symbol's domain directly.
6842 * symtab.h (symbol_matches_domain): Remove.
6843
6844 2014-06-06 Doug Evans <xdje42@gmail.com>
6845
6846 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6847 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6848 (gdbscm_guile_version_is_at_least): Declare.
6849 (gdbscm_scm_string_to_int): Declare.
6850 * guile/guile.c (gdbscm_guile_major_version): New global.
6851 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6852 (guile_datadir): New static global.
6853 (gdbscm_guile_data_directory): New function.
6854 (initialize_scheme_side): Update.
6855 (misc_guile_functions): Add guile-data-directory.
6856 (initialize_gdb_module): Fetch guile version number.
6857 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6858 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6859 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6860 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6861 comments.
6862 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6863 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6864 * guile/scm-value.c (gdbscm_value_to_string): Only call
6865 scm_port_conversion_strategy if Guile version >= 2.0.6.
6866
6867 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6868
6869 * main.c (print_gdb_help): Add -q and --silent.
6870
6871 2014-06-06 Gary Benson <gbenson@redhat.com>
6872
6873 * common/signals.c: Remove preprocessor conditionals for
6874 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6875 SIGSEGV and SIGTERM.
6876 * proc-events.c: Likewise.
6877
6878 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6879
6880 * symfile.c (symfile_free_objfile): Remove restriction to
6881 OBJF_USERLOADED.
6882 * symfile-mem.c (symbol_file_add_from_memory): Call
6883 add_target_sections_of_objfile.
6884
6885 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6886
6887 * guile/scm-value.c (gdbscm_history_append_x): Use
6888 'vlscm_get_value_smob_arg_unsafe' instead of
6889 'vlscm_scm_to_value'.
6890
6891 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6892
6893 PR mi/15806
6894 * utils.c (printchar): Don't escape at all if quoter is NUL.
6895 Update function documentation to clarify effect of parameter
6896 QUOTER.
6897 * remote.c (escape_buffer): Pass '\\' as the quoter to
6898 fputstrn_unfiltered.
6899 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6900 generate the output.
6901 (mi_solib_unloaded): Same.
6902
6903 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6904
6905 * development.sh: Delete.
6906 * Makefile.in (config.status): Adjust dependency on development.sh.
6907 * configure.ac: Adjust development.sh source call.
6908 * configure: Regenerate.
6909
6910 2014-06-04 Doug Evans <xdje42@gmail.com>
6911
6912 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6913 is_scheme_bkpt, spec.
6914 (bpscm_make_breakpoint_smob): Initialize new members.
6915 (gdbscm_create_breakpoint_x): Split into two ...
6916 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6917 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6918 (scheme_function breakpoint_functions): Update.
6919 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6920 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6921 register-breakpoint!.
6922
6923 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6924
6925 PR server/17023
6926 * mem-break.c (z_type_supported): Return zero if
6927 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6928
6929 2014-06-04 Tom Tromey <tromey@redhat.com>
6930
6931 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6932 value_from_contents_and_address_unresolved.
6933 (ada_template_to_fixed_record_type_1): Likewise.
6934 (ada_which_variant_applies): Likewise.
6935 * value.h (value_from_contents_and_address_unresolved): Declare.
6936 * value.c (value_from_contents_and_address_unresolved): New
6937 function.
6938 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6939 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6940 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6941
6942 2014-06-04 Tom Tromey <tromey@redhat.com>
6943
6944 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6945
6946 2014-06-04 Tom Tromey <tromey@redhat.com>
6947
6948 * procfs.c (procfs_attach): Make "args" const.
6949 * windows-nat.c (windows_attach): Make "args" const.
6950 * nto-procfs.c (procfs_attach): Make "args" const.
6951 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6952 * go32-nat.c (go32_attach): Make "args" const.
6953 * gnu-nat.c (gnu_attach): Make "args" const.
6954 * darwin-nat.c (darwin_attach): Make "args" const.
6955 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6956 * linux-nat.c (linux_nat_attach): Make "args" const.
6957 * remote.c (extended_remote_attach_1, extended_remote_attach):
6958 Make "args" const.
6959 * target.h (struct target_ops) <to_attach>: Make "args" const.
6960 (find_default_attach): Likewise.
6961 * utils.c (parse_pid_to_attach): Make "args" const.
6962 * utils.h (parse_pid_to_attach): Update.
6963
6964 2014-06-04 Tom Tromey <tromey@redhat.com>
6965
6966 * target-delegates.c: Rebuild.
6967 * target.c (default_thread_address_space): New function.
6968 (target_thread_address_space): Simplify.
6969 * target.h (struct target_ops) <to_thread_address_space>: Add
6970 TARGET_DEFAULT_FUNC.
6971
6972 2014-06-04 Doug Evans <xdje42@gmail.com>
6973
6974 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6975
6976 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6977
6978 * record-btrace.c: Include event-loop.h and inf-loop.h.
6979 (record_btrace_resume_exec_dir)
6980 (record_btrace_async_inferior_event_handler)
6981 (record_btrace_handle_async_inferior_event): New.
6982 (record_btrace_open): Create async event handler.
6983 (record_btrace_close): Delete async event handler.
6984 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6985 Mark async event handler.
6986 (record_btrace_execution_direction): New.
6987 (init_record_btrace_ops): Initialize to_execution_direction.
6988
6989 2014-06-03 Doug Evans <xdje42@gmail.com>
6990
6991 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6992 (gdbscm_make_parameter): Ditto.
6993
6994 2014-06-03 Doug Evans <dje@google.com>
6995
6996 * exec.c (exec_close_1): Call clear_section_table instead of
6997 resize_section_table.
6998 (clear_section_table): New function.
6999 (resize_section_table): Make static. Rename arg num_added to
7000 adjustment.
7001 * exec.h (clear_section_table): Declare.
7002 (resize_section_table): Delete.
7003 * progspace.c (release_program_space): Call clear_section_table
7004 instead of resize_section_table.
7005
7006 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7007
7008 * NEWS (Python Scripting): Add entry about the new xmethods
7009 feature.
7010
7011 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7012
7013 * python/py-xmethods.c: New file.
7014 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7015 (objfpy_dealloc): XDECREF on the new xmethods field.
7016 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7017 field.
7018 (objfpy_get_xmethods): New function.
7019 (objfile_getset): New entry 'xmethods'.
7020 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7021 (pspy_dealloc): XDECREF on the new xmethods field.
7022 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7023 field.
7024 (pspy_get_xmethods): New function.
7025 (pspace_getset): New entry 'xmethods'.
7026 * python/python-internal.h: Add declarations for new functions.
7027 * python/python.c (_initialize_python): Invoke
7028 gdbpy_initialize_xmethods.
7029 * python/lib/gdb/__init__.py (xmethods): New
7030 attribute.
7031 * python/lib/gdb/xmethod.py: New file.
7032 * python/lib/gdb/command/xmethods.py: New file.
7033
7034 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7035
7036 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7037 best match method returned by find_overload_match is an xmethod.
7038 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7039 the best matching operator returned by find_overload_match is an
7040 xmethod.
7041 * valops.c: #include "extension.h".
7042 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7043 Return void. The list of matching source methods is returned in
7044 "fn_list" and a vector of matching debug method workers is
7045 returned in "xm_worker_vec". Update all callers.
7046 (value_find_oload_method_list): Likewise.
7047 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7048 non-NULL, then the index of the best matching method in this
7049 vector is returned. Update all callers.
7050 (find_overload_match): Include xmethods while performing overload
7051 resolution.
7052
7053 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7054
7055 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7056 * extension-priv.h (struct extension_language_ops): Add the
7057 xmethod interface.
7058 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7059 get_matching_xmethod_workers, get_xmethod_argtypes,
7060 invoke_xmethod, free_xmethod_worker,
7061 free_xmethod_worker_vec): New functions.
7062 * extension.h: #include "common/vec.h".
7063 New function declarations.
7064 (struct xmethod_worker): New struct.
7065 (VEC (xmethod_worker_ptr)): New vector type.
7066 (xmethod_worker_ptr): New typedef.
7067 (xmethod_worker_vec): Likewise.
7068 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7069 builtin_type.
7070 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7071 (struct builtin_type): New field "xmethod".
7072 * valarith.c (value_ptradd): Assert that the value argument is not
7073 lval_xcallable.
7074 * valops.c (value_must_coerce_to_target): Return 0 for
7075 lval_xcallable values.
7076 * value.c (struct value): New field XM_WORKER in the field
7077 LOCATION.
7078 (value_address, value_raw_address): Return 0 for lval_xcallable
7079 values.
7080 (set_value_address): Assert that the value is not an
7081 lval_xcallable.
7082 (value_free): Free the associated xmethod worker when freeing
7083 lval_xcallable values.
7084 (set_value_component_location): Assert that the WHOLE value is not
7085 lval_xcallable.
7086 (value_of_xmethod, call_xmethod): New functions.
7087 * value.h: Declare "struct xmethod_worker".
7088 Declare new functions value_of_xmethod, call_xmethod.
7089
7090 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7091 Pedro Alves <palves@redhat.com>
7092
7093 PR breakpoints/17000
7094 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7095 New function, extracted from software_breakpoint_inserted_here_p.
7096 (software_breakpoint_inserted_here_p): Replace factored out code
7097 by call to find_non_raw_software_breakpoint_inserted_here.
7098 (bp_target_info_copy_insertion_state): New function.
7099 (bkpt_insert_location): Handle the case of a single-step
7100 breakpoint already inserted at the same address.
7101 (bkpt_remove_location): Handle the case of a single-step
7102 breakpoint still inserted at the same address.
7103 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7104 breakpoint already inserted at the same address.
7105 (deprecated_remove_raw_breakpoint): Handle the case of a
7106 non-raw breakpoint still inserted at the same address.
7107 (find_single_step_breakpoint): New function, extracted from
7108 single_step_breakpoint_inserted_here_p.
7109 (find_single_step_breakpoint): New function,
7110 factored out from single_step_breakpoint_inserted_here_p.
7111 (single_step_breakpoint_inserted_here_p): Reimplement.
7112
7113 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7114
7115 Pushed by Joel Brobecker <brobecker@adacore.com>
7116 * source.c (show_substitute_path_command): Fix display of matching
7117 substitution rules.
7118
7119 2014-06-03 Gary Benson <gbenson@redhat.com>
7120
7121 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7122
7123 2014-06-02 Doug Evans <xdje42@gmail.com>
7124
7125 Add parameter support for Guile.
7126 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7127 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7128 (scm-param.o): New rule.
7129 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7130 (gdbscm_misc_error): Declare.
7131 (gdbscm_canonicalize_command_name): Declare.
7132 (gdbscm_scm_to_host_string): Declare.
7133 (gdbscm_scm_from_host_string): Declare.
7134 (gdbscm_initialize_parameters): Declare.
7135 * guile/guile.c (initialize_gdb_module): Call
7136 gdbscm_initialize_parameters.
7137 * guile/lib/gdb.scm: Export parameter symbols.
7138 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7139 cmdscm_canonicalize_name and made public. All callers updated.
7140 * guile/scm-exception.c (gdbscm_misc_error): New function.
7141 * guile/scm-param.c: New file.
7142 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7143 (gdbscm_scm_to_host_string): New function.
7144 (gdbscm_scm_from_host_string): New function.
7145 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7146
7147 2014-06-02 Doug Evans <xdje42@gmail.com>
7148
7149 Add command support for Guile.
7150 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7151 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7152 (scm-cmd.o): New rule.
7153 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7154 (gdbscm_user_error_p): Declare.
7155 (gdbscm_parse_command_name): Declare.
7156 (gdbscm_valid_command_class_p): Declare.
7157 (gdbscm_initialize_commands): Declare.
7158 * guile/guile.c (initialize_gdb_module): Call
7159 gdbscm_initialize_commands.
7160 * guile/lib/gdb.scm: Export command symbols.
7161 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7162 (throw-user-error): New function.
7163 * guile/scm-cmd.c: New file.
7164 * guile/scm-exception.c (user_error_symbol): New static global.
7165 (gdbscm_user_error_p): New function.
7166 (gdbscm_initialize_exceptions): Set user_error_symbol.
7167 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7168
7169 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7170
7171 * top.c (command_loop): Handle comments here...
7172 (command_line_input): ... not here.
7173
7174 2014-06-02 Doug Evans <xdje42@gmail.com>
7175
7176 Add progspace support for Guile.
7177 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7178 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7179 (scm-progspace.o): New rule.
7180 * guile/guile-internal.h (pspace_smob): New typedef.
7181 (psscm_pspace_smob_pretty_printers): Declare.
7182 (psscm_pspace_smob_from_pspace): Declare.
7183 (psscm_scm_from_pspace): Declare.
7184 * guile/guile.c (initialize_gdb_module): Call
7185 gdbscm_initialize_pspaces.
7186 * guile/lib/gdb.scm: Export progspace symbols.
7187 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7188 support.
7189 (append-pretty-printer!): Ditto.
7190 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7191 Implement.
7192 * guile/scm-progspace.c: New file.
7193
7194 2014-06-03 Alan Modra <amodra@gmail.com>
7195
7196 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7197 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7198
7199 2014-06-02 Doug Evans <dje@google.com>
7200
7201 Add support for skeletonless type units.
7202 * dwarf2read.c (struct dwarf2_per_objfile): New member
7203 n_allocated_type_units.
7204 (struct dwarf2_per_objfile) <tu_stats>: New member
7205 nr_all_type_units_reallocs.
7206 (create_signatured_type_table_from_index): Initialize
7207 n_allocated_type_units
7208 (create_all_type_units): Ditto.
7209 (add_type_unit): Move up in file. New arg slot.
7210 All callers updated. Increase space for all_type_units more
7211 efficiently.
7212 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7213 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7214 (lookup_dwp_signatured_type): Ditto.
7215 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7216 All callers updated.
7217 (build_type_psymtabs_1): Leave type_unit_groups as
7218 NULL if no TUs present.
7219 (print_tu_stats): New function.
7220 (process_skeletonless_type_unit): New function.
7221 (process_dwo_file_for_skeletonless_type_units): New
7222 function.
7223 (process_skeletonless_type_units): New function.
7224 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7225 Call print tu_stats if debugging enabled.
7226
7227 2014-06-02 Pedro Alves <palves@redhat.com>
7228
7229 * breakpoint.c (build_target_command_list): Don't build a command
7230 list if we have any duplicate location that isn't a dprintf.
7231
7232 2014-06-02 Pedro Alves <palves@redhat.com>
7233
7234 * breakpoint.c (dprintf_breakpoint_hit): New function.
7235 (initialize_breakpoint_ops): Install it as dprintf's
7236 breakpoint_hit method.
7237
7238 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7239
7240 * source.c (substitute_path_rule_matches): Simplify using
7241 filename_ncmp instead of FILENAME_CMP.
7242
7243 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7244
7245 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7246
7247 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7248
7249 * configure.ac: When Guile is available, check for the
7250 availability of 'scm_new_smob'.
7251 * configure, config.h.in: Regenerate.
7252 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7253 function.
7254
7255 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7256
7257 * frame.c (struct frame_info): Add stop_string field.
7258 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7259 (get_prev_frame_always): Old content moved into
7260 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7261 TRY_CATCH, handle MEMORY_ERROR exceptions.
7262 (frame_stop_reason_string): New function definition.
7263 * frame.h (unwind_stop_reason_to_string): Extend comment to
7264 mention frame_stop_reason_string.
7265 (frame_stop_reason_string): New function declaration.
7266 * stack.c (frame_info): Switch to frame_stop_reason_string.
7267 (backtrace_command_1): Switch to frame_stop_reason_string.
7268 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7269 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7270 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7271
7272 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7273
7274 * frame.c (frame_stop_reason_string): Rename to ...
7275 (unwind_stop_reason_to_string): this.
7276 * frame.h (frame_stop_reason_string): Rename to ...
7277 (unwind_stop_reason_to_string): this.
7278 * stack.c (frame_info): Update call to frame_stop_reason_string.
7279 (backtrace_command_1): Likewise.
7280 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7281 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7282
7283 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7284
7285 * frame.c (remove_prev_frame): New function.
7286 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7287 remove_prev_frame.
7288
7289 2014-05-29 Pedro Alves <palves@redhat.com>
7290
7291 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7292 and make it const. When a single-step decays to a continue,
7293 clear 'step', not 'hw_step'. Pass whether the caller wanted
7294 to step to user_visible_resume_ptid, not what we ask the
7295 target to do.
7296
7297 2014-05-29 Pedro Alves <palves@redhat.com>
7298
7299 * infrun.c (process_event_stop_test, handle_step_into_function)
7300 (handle_step_into_function_backward): Adjust.
7301 Don't set the even thread's stop_step and call stop_waiting before
7302 calling end_stepping_range. Instead do that ...
7303 (end_stepping_range): ... here. Take an ecs pointer parameter.
7304
7305 2014-05-29 Pedro Alves <palves@redhat.com>
7306
7307 * infrun.c (stop_stepping): Rename to ...
7308 (stop_waiting): ... this.
7309 (proceed): Update comment.
7310 (process_event_stop_test, handle_inferior_event)
7311 (handle_signal_stop, handle_step_into_function)
7312 (handle_step_into_function_backward): Update.
7313
7314 2014-05-29 Pedro Alves <palves@redhat.com>
7315
7316 * infcall.c (run_inferior_call): Don't check whether the current
7317 thread is running after the proceed call.
7318
7319 2014-05-29 Pedro Alves <palves@redhat.com>
7320 Tom Tromey <tromey@redhat.com>
7321
7322 * NEWS: Mention "maint set target-async", "set mi-async", and that
7323 background execution commands are now always available.
7324 * target.h (target_async_permitted): Update comment.
7325 * target.c (target_async_permitted, target_async_permitted_1):
7326 Default to 1.
7327 (set_target_async_command): Rename to ...
7328 (maint_set_target_async_command): ... this.
7329 (show_target_async_command): Rename to ...
7330 (maint_show_target_async_command): ... this.
7331 (_initialize_target): Adjust.
7332 * infcmd.c (prepare_execution_command): Make extern.
7333 * inferior.h (prepare_execution_command): Declare.
7334 * infrun.c (set_observer_mode): Leave target async alone.
7335 * mi/mi-interp.c (mi_interpreter_init): Install
7336 mi_on_sync_execution_done as sync_execution_done observer.
7337 (mi_on_sync_execution_done): New function.
7338 (mi_execute_command_input_handler): Don't print the prompt if we
7339 just started a synchronous command with an async target.
7340 (mi_on_resume): Check sync_execution before printing prompt.
7341 * mi/mi-main.h (mi_async_p): Declare.
7342 * mi/mi-main.c: Include gdbcmd.h.
7343 (mi_async_p): New function.
7344 (mi_async, mi_async_1): New globals.
7345 (set_mi_async_command, show_mi_async_command, mi_async): New
7346 functions.
7347 (exec_continue): Call prepare_execution_command.
7348 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7349 (mi_execute_async_cli_command): Use mi_async_p.
7350 (_initialize_mi_main): Install "set mi-async". Make
7351 "target-async" a deprecated alias.
7352
7353 2014-05-29 Pedro Alves <palves@redhat.com>
7354
7355 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7356 (_initialize_cli_interp): Adjust.
7357 * event-loop.c: Include "observer.h".
7358 (start_event_loop): Notify 'command_error' observers instead of
7359 calling display_gdb_prompt. Remove FIXME comment.
7360 * event-top.c (display_gdb_prompt): Remove call into the
7361 interpreters.
7362 * inf-loop.c: Include "observer.h".
7363 (inferior_event_handler): Notify 'command_error' observers instead
7364 of calling display_gdb_prompt.
7365 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7366 observers instead of calling display_gdb_prompt.
7367 * interps.c (interp_set): Don't call display_gdb_prompt.
7368 (current_interp_display_prompt_p): Delete.
7369 * interps.h (interp_prompt_p): Delete declaration.
7370 (interp_prompt_p_ftype): Delete.
7371 (struct interp_procs) <prompt_proc_p>: Delete field.
7372 (current_interp_display_prompt_p): Delete declaration.
7373 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7374 (_initialize_mi_interp): Adjust.
7375 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7376 'command_error' observers.
7377 (tui_on_sync_execution_done, tui_on_command_error): New
7378 functions.
7379 (tui_display_prompt_p): Delete.
7380 (_initialize_tui_interp): Adjust.
7381
7382 2014-05-29 Pedro Alves <palves@redhat.com>
7383
7384 PR gdb/13860
7385 * cli/cli-interp.c: Include infrun.h and observer.h.
7386 (cli_uiout, cli_interp): New globals.
7387 (cli_on_signal_received, cli_on_end_stepping_range)
7388 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7389 functions.
7390 (cli_interpreter_init): Install them as 'end_stepping_range',
7391 'signal_received' 'signal_exited', 'exited' and 'no_history'
7392 observers.
7393 (_initialize_cli_interp): Remove cli_interp local.
7394 * infrun.c (handle_inferior_event): Call the several stop reason
7395 observers instead of printing the stop reason directly.
7396 (end_stepping_range): New function.
7397 (print_end_stepping_range_reason, print_signal_exited_reason)
7398 (print_exited_reason, print_signal_received_reason)
7399 (print_no_history_reason): Make static, and add an uiout
7400 parameter. Print to that instead of to CURRENT_UIOUT.
7401 * infrun.h (print_end_stepping_range_reason)
7402 (print_signal_exited_reason, print_exited_reason)
7403 (print_signal_received_reason print_no_history_reason): New
7404 declarations.
7405 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7406 'mi_uiout'.
7407 <cli_uiout>: New field.
7408 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7409 uiout for CLI output. Install 'signal_received',
7410 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7411 observers.
7412 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7413 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7414 (mi_on_no_history): New functions.
7415 (ui_out_free_cleanup): Delete function.
7416 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7417 instead use the one already stored in the MI interpreter data.
7418 (mi_ui_out): Adjust.
7419 * tui/tui-interp.c: Include infrun.h and observer.h.
7420 (tui_interp): New global.
7421 (tui_on_signal_received, tui_on_end_stepping_range)
7422 (tui_on_signal_exited, tui_on_exited)
7423 (tui_on_no_history): New functions.
7424 (tui_init): Install them as 'end_stepping_range',
7425 'signal_received' 'signal_exited', 'exited' and 'no_history'
7426 observers.
7427 (_initialize_tui_interp): Delete tui_interp local.
7428
7429 2014-05-29 Pedro Alves <palves@redhat.com>
7430
7431 PR gdb/15713
7432 * linux-nat.c (linux_nat_resume_callback): Rename the second
7433 parameter to 'except'. Skip LP if it points to EXCEPT.
7434 (linux_nat_resume): Don't mark the event lwp as not stopped
7435 before resuming sibling lwps. Instead ask
7436 linux_nat_resume_callback to skip the event lwp. Mark it as not
7437 stopped after actually resuming it.
7438 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7439 resuming it.
7440 (wait_lwp): Mark the lwp as stopped here.
7441 (stop_wait_callback): Mark the lwp as not stopped right after
7442 resuming it. Don't mark lwps as stopped here.
7443 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7444 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7445
7446 2014-05-29 Pedro Alves <palves@redhat.com>
7447
7448 PR PR15693
7449 * infrun.c (resume): Determine how much to resume depending on
7450 whether the caller wanted a step, not whether we can hardware step
7451 the target. Mark all threads that we intend to run as running,
7452 unless we're calling an inferior function.
7453 (normal_stop): If the thread is running an infcall, don't finish
7454 thread state.
7455 * target.c (target_resume): Don't mark threads as running here.
7456
7457 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7458
7459 * serial.c (_initialize_serial): Remove support for
7460 the "set remotebaud" and "show remotebaud" commands.
7461 * NEWS: Add entry documenting the removal of that command.
7462
7463 2014-05-28 Yao Qi <yao@codesourcery.com>
7464
7465 * charset.c: Fix typo in comments.
7466
7467 2014-05-27 Gary Benson <gbenson@redhat.com>
7468
7469 * utils.c (internal_vproblem): Prompt for a bug report.
7470
7471 2014-05-26 Andy Wingo <wingo@igalia.com>
7472
7473 * guile/scm-arch.c (arscm_mark_arch_smob):
7474 * guile/scm-block.c (bkscm_mark_block_smob)
7475 (bkscm_mark_block_syms_progress_smob):
7476 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7477 * guile/scm-exception.c (exscm_mark_exception_smob):
7478 * guile/scm-frame.c (frscm_mark_frame_smob):
7479 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7480 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7481 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7482 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7483 (ppscm_mark_pretty_printer_worker_smob):
7484 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7485 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7486 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7487 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7488 mark functions.
7489 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7490 function.
7491
7492 2014-05-26 Andy Wingo <wingo@igalia.com>
7493 Doug Evans <xdje42@gmail.com>
7494
7495 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7496 empty_base_class. All uses updated.
7497 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7498 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7499 Adapt all callers.
7500 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7501 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7502 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7503 (gdbscm_gsmob_has_property_p, add_property_name)
7504 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7505 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7506 (gdb-object-has-property?, gdb-object-properties): Remove.
7507 (gdb-object-kind): Renamed from gsmob-kind.
7508
7509 2014-05-26 Andy Wingo <wingo@igalia.com>
7510
7511 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7512 * configure: Regenerate.
7513
7514 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7515
7516 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7517
7518 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7519
7520 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7521 (replay_memory_access_read_only, replay_memory_access_read_write)
7522 (replay_memory_access_types, replay_memory_access)
7523 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7524 (cmd_set_record_btrace, cmd_show_record_btrace)
7525 (cmd_show_replay_memory_access): New.
7526 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7527 (record_btrace_remove_breakpoint): Replace
7528 record_btrace_allow_memory_access with replay_memory_access.
7529 (_initialize_record_btrace): Add commands.
7530 * NEWS: Announce it.
7531
7532 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7533
7534 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7535
7536 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7537
7538 * MAINTAINERS (Write After Approval): Move self back from
7539 paper trail.
7540
7541 2014-05-22 Pedro Alves <palves@redhat.com>
7542
7543 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7544 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7545 (disable_randomization, enum exec_direction_kind)
7546 (execution_direction, stop_registers, start_remote)
7547 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7548 (wait_for_inferior, normal_stop, get_last_target_status)
7549 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7550 (insert_step_resume_breakpoint_at_sal)
7551 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7552 (set_step_info, print_stop_event, signal_stop_state)
7553 (signal_print_state, signal_pass_state, signal_stop_update)
7554 (signal_print_update, signal_pass_update)
7555 (update_signals_program_target, clear_exit_convenience_vars)
7556 (displaced_step_dump_bytes, update_observer_mode)
7557 (signal_catch_update, gdb_signal_from_command): Move
7558 declarations ...
7559 * infrun.h: ... to this new file.
7560 * amd64-tdep.c: Include infrun.h.
7561 * annotate.c: Include infrun.h.
7562 * arch-utils.c: Include infrun.h.
7563 * arm-linux-tdep.c: Include infrun.h.
7564 * arm-tdep.c: Include infrun.h.
7565 * break-catch-sig.c: Include infrun.h.
7566 * breakpoint.c: Include infrun.h.
7567 * common/agent.c: Include infrun.h instead of inferior.h.
7568 * corelow.c: Include infrun.h.
7569 * event-top.c: Include infrun.h.
7570 * go32-nat.c: Include infrun.h.
7571 * i386-tdep.c: Include infrun.h.
7572 * inf-loop.c: Include infrun.h.
7573 * infcall.c: Include infrun.h.
7574 * infcmd.c: Include infrun.h.
7575 * infrun.c: Include infrun.h.
7576 * linux-fork.c: Include infrun.h.
7577 * linux-nat.c: Include infrun.h.
7578 * linux-thread-db.c: Include infrun.h.
7579 * monitor.c: Include infrun.h.
7580 * nto-tdep.c: Include infrun.h.
7581 * procfs.c: Include infrun.h.
7582 * record-btrace.c: Include infrun.h.
7583 * record-full.c: Include infrun.h.
7584 * remote-m32r-sdi.c: Include infrun.h.
7585 * remote-mips.c: Include infrun.h.
7586 * remote-notif.c: Include infrun.h.
7587 * remote-sim.c: Include infrun.h.
7588 * remote.c: Include infrun.h.
7589 * reverse.c: Include infrun.h.
7590 * rs6000-tdep.c: Include infrun.h.
7591 * s390-linux-tdep.c: Include infrun.h.
7592 * solib-irix.c: Include infrun.h.
7593 * solib-osf.c: Include infrun.h.
7594 * solib-svr4.c: Include infrun.h.
7595 * target.c: Include infrun.h.
7596 * top.c: Include infrun.h.
7597 * windows-nat.c: Include infrun.h.
7598 * mi/mi-interp.c: Include infrun.h.
7599 * mi/mi-main.c: Include infrun.h.
7600 * python/py-threadevent.c: Include infrun.h.
7601
7602 2014-05-22 Pedro Alves <palves@redhat.com>
7603
7604 * infrun.c (handle_inferior_event): Store the exit code for
7605 --return-child-result here, instead of ...
7606 (print_exited_reason): ... here.
7607
7608 2014-05-21 Pedro Alves <palves@redhat.com>
7609
7610 PR gdb/13860
7611 * gdbthread.h (struct thread_control_state): New field
7612 `command_interp'.
7613 * infrun.c (follow_fork): Copy the new thread control field to the
7614 child fork thread.
7615 (clear_proceed_status_thread): Clear the new thread control field.
7616 (proceed): Set the new thread control field.
7617 * interps.h (command_interp): Declare.
7618 * interps.c (command_interpreter): New global.
7619 (command_interp): New function.
7620 (interp_exec): Set `command_interpreter' while here.
7621 * cli-out.c (cli_uiout_dtor): New function.
7622 (cli_ui_out_impl): Install it.
7623 * mi/mi-interp.c: Include cli-out.h.
7624 (mi_cmd_interpreter_exec): Add comment.
7625 (restore_current_uiout_cleanup): New function.
7626 (ui_out_free_cleanup): New function.
7627 (mi_on_normal_stop): If finishing an execution command started by
7628 a CLI command, or any kind of breakpoint-like event triggered,
7629 print the stop event to the output (CLI) stream.
7630 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7631
7632 2014-05-21 Pedro Alves <palves@redhat.com>
7633
7634 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7635 current source line having changed.
7636 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7637 * infrun.c (normal_stop): Adjust call to
7638 set_current_sal_from_frame.
7639 * source.c (clear_lines_listed_range): New function.
7640 (set_current_source_symtab_and_line, identify_source_line): Clear
7641 the lines listed range.
7642 (line_info): Handle the first "info line" after the current source
7643 line having changed.
7644 * stack.c (print_stack_frame): Remove center handling.
7645 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7646 center sal.line.
7647
7648 2014-05-21 Pedro Alves <palves@redhat.com>
7649
7650 * inf-child.c (inf_child_mourn_inferior): New function.
7651 * inf-child.h (inf_child_mourn_inferior): New declaration.
7652 * darwin-nat.c (darwin_mourn_inferior): Use
7653 inf_child_mourn_inferior.
7654 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7655 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7656 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7657 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7658 * windows-nat.c (windows_mourn_inferior): Likewise.
7659
7660 2014-05-21 Doug Evans <xdje42@gmail.com>
7661
7662 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7663
7664 2014-05-21 Doug Evans <xdje42@gmail.com>
7665
7666 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7667 (gdbscm_out_of_range_error): Ditto.
7668 (gdbscm_memory_error): Ditto.
7669 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7670 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7671 (gdbscm_out_of_range_error): Update.
7672 (gdbscm_memory_error): Update.
7673 (gdbscm_scm_to_target_string_unsafe): Delete.
7674
7675 2014-05-21 Pedro Alves <palves@redhat.com>
7676
7677 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7678 globals.
7679 (inf_child_open_target): New function.
7680 (inf_child_open): Use inf_child_open_target to push the target
7681 instead of erroring out.
7682 (inf_child_disconnect, inf_child_close)
7683 (inf_child_maybe_unpush_target): New functions.
7684 (inf_child_target): Install inf_child_disconnect and
7685 inf_child_close. Store a pointer to the returned object.
7686 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7687 declarations.
7688 * target.c (auto_connect_native_target): New global.
7689 (show_default_run_target): New function.
7690 (find_default_run_target): Return NULL if automatically connecting
7691 to the native target is disabled.
7692 (_initialize_target): Install set/show auto-connect-native-target.
7693 * NEWS: Mention "set auto-connect-native-target", and "target
7694 native".
7695 * linux-nat.c (super_close): New global.
7696 (linux_nat_close): Call super_close.
7697 (linux_nat_add_target): Store a pointer to the base class's
7698 to_close method.
7699 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7700 inf_child_maybe_unpush.
7701 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7702 already pushed.
7703 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7704 the inferior. Use inf_child_maybe_unpush_target.
7705 (inf_ttrace_attach): Don't push the target if it is already
7706 pushed.
7707 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7708 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7709 after mourning the inferior. Use inf_child_maybe_unpush_target.
7710 (darwin_attach_pid): Don't push the target if it is already
7711 pushed.
7712 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7713 mourning the inferior. Use inf_child_maybe_unpush_target.
7714 (gnu_detach): Use inf_child_maybe_unpush_target.
7715 * go32-nat.c (go32_create_inferior): Don't push the target if it
7716 is already pushed.
7717 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7718 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7719 (procfs_open): Rename to ...
7720 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7721 comments. Can target_preopen before changing node. Call
7722 inf_child_open_target to push the target explicitly.
7723 (procfs_attach): Don't push the target if it is already pushed.
7724 (procfs_detach): Use inf_child_maybe_unpush_target.
7725 (procfs_create_inferior): Don't push the target if it is already
7726 pushed.
7727 (nto_native_ops): New global.
7728 (procfs_open): Reimplement.
7729 (procfs_native_open): New function.
7730 (init_procfs_targets): Install procfs_native_open as to_open of
7731 "target native". Store a pointer to the "native" target in
7732 nto_native_ops.
7733 * procfs.c (procfs_attach): Don't push the target if it is already
7734 pushed.
7735 (procfs_detach): Use inf_child_maybe_unpush_target.
7736 (procfs_mourn_inferior): Only unpush the target after mourning the
7737 inferior. Use inf_child_maybe_unpush_target.
7738 (procfs_init_inferior): Don't push the target if it is already
7739 pushed.
7740 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7741 if it is already pushed.
7742
7743 2014-05-21 Pedro Alves <palves@redhat.com>
7744
7745 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7746 and "procfs" targets are now called "native" instead.
7747
7748 2014-05-21 Pedro Alves <palves@redhat.com>
7749
7750 * go32-nat.c (go32_open): Delete.
7751 (go32_target): Don't override the to_open method.
7752
7753 2014-05-21 Pedro Alves <palves@redhat.com>
7754
7755 * nto-procfs.c (procfs_can_run): New function.
7756 (nto_procfs_ops): New global.
7757 (init_procfs_targets): New, based on procfs_target. Install
7758 "target native" in addition to "target procfs".
7759 (_initialize_procfs): Call init_procfs_targets instead of adding
7760 the target here.
7761
7762 2014-05-21 Pedro Alves <palves@redhat.com>
7763
7764 * windows-nat.c (windows_target): Don't override to_shortname,
7765 to_longname or to_doc.
7766
7767 2014-05-21 Pedro Alves <palves@redhat.com>
7768
7769 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7770 to_doc.
7771
7772 2014-05-21 Pedro Alves <palves@redhat.com>
7773
7774 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7775 to_shortname, to_longname or to_doc.
7776
7777 2014-05-21 Pedro Alves <palves@redhat.com>
7778
7779 * go32-nat.c (go32_target): Don't override to_shortname,
7780 to_longname or to_doc.
7781
7782 2014-05-21 Pedro Alves <palves@redhat.com>
7783
7784 * inf-child.c (inf_child_open): Remove mention of "child".
7785 (inf_child_target): Rename target to "native" instead of "child".
7786
7787 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7788
7789 * Makefile.in (SFILES): Delete "regset.c".
7790 (COMMON_OBS): Delete "regset.o".
7791 * regset.c: Remove.
7792 * regset.h (regset_alloc): Delete prototype.
7793
7794 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7795
7796 * sparc-linux-tdep.c (sparc32_linux_gregset)
7797 (sparc32_linux_fpregset): New static regset structures.
7798 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7799 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7800 'fpregset' fields.
7801 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7802 (sparc64_linux_fpregset): New static regset structures.
7803 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7804 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7805 New static regset structures.
7806 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7807 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7808 New static regset structures.
7809 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7810 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7811 New static regset structures.
7812 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7813 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7814 New static regset structures.
7815 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7816
7817 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7818
7819 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7820 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7821 register maps ("regmaps") from "*regset" to "*regmap". Do this
7822 for all regmap types and variables.
7823 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7824 (sparc32_linux_supply_core_gregset)
7825 (sparc32_linux_collect_core_gregset)
7826 (sparc32_linux_supply_core_fpregset)
7827 (sparc32_linux_collect_core_fpregset): Likewise.
7828 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7829 (sparc_gregmap, sparc_fpregmap): ... these.
7830 (sparc_supply_gregset, sparc_collect_gregset)
7831 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7832 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7833 (_initialize_sparc_nat): Rename regmaps.
7834 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7835 (sparc_gregmap, sparc_fpregmap): ... these.
7836 (sparc_supply_gregset, sparc_collect_gregset)
7837 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7838 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7839 Rename macros to...
7840 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7841 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7842 Likewise.
7843 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7844 Rename to...
7845 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7846 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7847 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7848 regmaps.
7849 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7850 (sparc32_bsd_fpregset): Rename to...
7851 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7852 (sparc32_bsd_fpregmap): ... these.
7853 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7854 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7855 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7856 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7857 (struct sparc_gregmap, struct sparc_fpregmap)
7858 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7859 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7860 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7861 (sparc32_supply_regset, sparc32_collect_gregset)
7862 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7863 prototypes.
7864 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7865 (sparc64_linux_ptrace_gregmap): ... this.
7866 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7867 (_initialize_sparc64_linux_nat): Rename regmaps.
7868 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7869 (sparc64_linux_core_gregmap): ... this.
7870 (sparc64_linux_supply_core_gregset)
7871 (sparc64_linux_collect_core_gregset)
7872 (sparc64_linux_supply_core_fpregset)
7873 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7874 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7875 (sparc64_sol2_fpregset): Rename to...
7876 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7877 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7878 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7879 regmaps.
7880 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7881 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7882 (sparc64_bsd_fpregset): Rename to...
7883 (struct sparc_gregmap, sparc64_sol2_gregmap)
7884 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7885 (sparc64_bsd_fpregmap): ... these.
7886 (sparc64_supply_gregset, sparc64_collect_gregset)
7887 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7888 prototypes.
7889 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7890 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7891 (sparc64fbsd_gregmap): ... this.
7892 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7893 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7894 Rename regmaps.
7895 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7896 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7897 (sparc64nbsd_collect_fpregset): Likewise.
7898 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7899 (sparc64nbsd_gregmap): ... this.
7900 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7901 regmaps.
7902 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7903 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7904 (sparc64obsd_gregmap): ... this.
7905 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7906 regmaps.
7907 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7908 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7909 (sparc32nbsd_gregmap): ... this.
7910 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7911 regmaps.
7912
7913 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7914
7915 * score-tdep.c (score7_linux_gregset): New static regset
7916 structure.
7917 (score7_linux_regset_from_core_section): Remove dynamic regset
7918 allocation.
7919 (score_gdbarch_init): Drop allocation of tdep structure.
7920 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7921
7922 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7923
7924 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7925 regset structures.
7926 (am33_regset_from_core_section): Remove dynamic regset
7927 allocations.
7928
7929 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7930
7931 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7932 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7933 structures.
7934 (mips_linux_regset_from_core_section): Remove dynamic regset
7935 allocations.
7936 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7937 'gregset64', 'fpregset', and 'fpregset64'.
7938 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7939 deleted tdep fields.
7940
7941 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7942
7943 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7944 regset structures.
7945 (amd64_regset_from_core_section): Remove dynamic regset
7946 allocations.
7947 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7948 structure.
7949 (amd64obsd_regset_from_core_section): Remove dynamic regset
7950 allocation.
7951 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7952 Likewise.
7953 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7954 x86-common regset supply function.
7955 * i386-tdep.c (i386_collect_gregset): Make static.
7956 (i386_gregset): New global regset structure.
7957 (i386_fpregset, i386_xstateregset): New static regset structures.
7958 (i386_regset_from_core_section): Remove dynamic regset
7959 allocations.
7960 (i386_gdbarch_init): Remove initialization of tdep fields
7961 'gregset', 'fpregset', and 'xstateregset'.
7962 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7963 'fpregset', and 'xstateregset'.
7964 (i386_collect_gregset): Remove prototype.
7965 (i386_gregset): New declaration.
7966 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7967 structure.
7968 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7969 allocation.
7970
7971 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7972
7973 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7974 (arm_linux_vfpregset): New static regset structures.
7975 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7976 regset structures.
7977 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7978 and 'vfpregset' fields.
7979
7980 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7981
7982 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7983 (aarch64_linux_fpregset): New static regset structures.
7984 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7985 of regset structures.
7986 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7987 'fpregset' fields.
7988
7989 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7990
7991 * regset.h (struct regset): Remove gdbarch field.
7992 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7993 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7994 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7995 Likewise.
7996 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7997 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7998 (ppc32_linux_vsxregset): Likewise.
7999 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8000 via the regcache instead of the regset.
8001 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8002 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8003 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8004 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8005 Likewise.
8006
8007 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8008
8009 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8010 Constify structures.
8011 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8012 (alphanbsd_aout_gregset): Likewise.
8013 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8014 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8015 Likewise.
8016 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8017 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8018 Likewise.
8019 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8020 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8021 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8022 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8023 * m88k-tdep.c (m88k_gregset): Likewise.
8024 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8025 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8026 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8027 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8028 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8029 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8030 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8031 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8032 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8033 Likewise.
8034 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8035 * sh-tdep.h (sh_corefile_gregset): Likewise.
8036 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8037 * vax-tdep.c (vax_gregset): Likewise.
8038
8039 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8040
8041 Fix TLS access for -static -pthread.
8042 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8043 (try_thread_db_load_1): Initialize it.
8044 (thread_db_get_thread_local_address): Call it if LM is zero.
8045 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8046 * target.h (struct target_ops) (to_get_thread_local_address): Add
8047 load_module_addr comment.
8048
8049 2014-05-21 Pedro Alves <palves@redhat.com>
8050
8051 * dcache.c (dcache_read_memory_partial): If reading the cache line
8052 fails, fallback to reading just the memory the caller wanted.
8053
8054 2014-05-20 Doug Evans <dje@google.com>
8055
8056 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8057 instead of get_current_arch.
8058
8059 2014-05-20 Pedro Alves <palves@redhat.com>
8060
8061 * NEWS: Mention that compare-sections now works with all targets.
8062
8063 * remote.c (PACKET_qCRC): New enum value.
8064 (remote_verify_memory): Don't send qCRC if the target has no
8065 execution. Use packet_support/packet_ok. If the target doesn't
8066 support the qCRC packet, fallback to a deep memory copy.
8067 (compare_sections_command): Say "target image" instead of "remote
8068 executable".
8069 (_initialize_remote): Add PACKET_qCRC to the list of config
8070 packets that have no associated command. Extend comment.
8071 * target.c (simple_verify_memory, default_verify_memory): New
8072 function.
8073 * target.h (struct target_ops) <to_verify_memory>: Default to
8074 default_verify_memory.
8075 (simple_verify_memory): New declaration.
8076 * target-delegates.c: Regenerate.
8077
8078 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8079
8080 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8081
8082 2014-05-20 Hui Zhu <hui@codesourcery.com>
8083 Yao Qi <yao@codesourcery.com>
8084
8085 PR backtrace/16558
8086 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8087 and change address of sp and pc.
8088
8089 2014-05-19 Tom Tromey <tromey@redhat.com>
8090
8091 * gdbtypes.c (rank_function): Use XNEWVEC.
8092 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8093
8094 2014-05-19 Doug Evans <dje@google.com>
8095
8096 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8097 build_type_unit_groups and moved closer to only caller. Remove
8098 arguments. All references updated. Remove outdated .gdb_index
8099 comment.
8100 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8101 build_type_psymtabs_1.
8102
8103 2014-05-19 Doug Evans <dje@google.com>
8104
8105 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8106 n_type_unit_groups, all_type_unit_groups. All uses removed.
8107 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8108 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8109 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8110 (add_type_unit_group_to_table): Delete.
8111
8112 2014-05-19 Doug Evans <dje@google.com>
8113
8114 * eval.c (evaluate_subexp_standard): Add some comments.
8115
8116 2014-05-17 Doug Evans <xdje42@gmail.com>
8117
8118 * progspace.c (remove_program_space): Delete, unused.
8119 * progspace.h (remove_program_space): Ditto.
8120
8121 2014-05-17 Doug Evans <xdje42@gmail.com>
8122
8123 * inferior.c (prune_inferiors): Fix comment.
8124 (remove_inferior_command): Call prune_program_spaces.
8125
8126 2014-05-16 Doug Evans <dje@google.com>
8127
8128 New command line option -D.
8129 * NEWS: Mention it.
8130 * main.c (set_gdb_data_directory): New function.
8131 (captured_main): Recognize -D. Flag error for --data-directory "".
8132 Call set_gdb_data_directory.
8133 (print_gdb_help): Print --data-directory, -D.
8134 * main.h (set_gdb_data_directory): Declare.
8135 * top.c (staged_gdb_datadir): New static global.
8136 (set_gdb_datadir): Call set_gdb_data_directory
8137 (show_gdb_datadir): New function.
8138 (init_main): Update init of data-directory parameter.
8139
8140 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8141
8142 Import the "dirfd" gnulib module.
8143 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8144 * gnulib/aclocal.m4: Update.
8145 * gnulib/config.in: Update.
8146 * gnulib/configure: Update.
8147 * gnulib/import/Makefile.am: Update.
8148 * gnulib/import/Makefile.in: Update.
8149 * gnulib/import/dirfd.c: New.
8150 * gnulib/import/m4/dirfd.m4: New.
8151 * gnulib/import/m4/gnulib-cache.m4: Update.
8152 * gnulib/import/m4/gnulib-comp.m4: Update.
8153
8154 2014-05-16 Pierre Muller <muller@sourceware.org>
8155 Yao Qi <yao@codesourcery.com>
8156
8157 * valprint.c (print_wchar): Move the code on checking whether
8158 W is a printable wide char to the default branch of switch
8159 statement below. Call wchar_printable instead of gdb_iswprint.
8160
8161 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8162
8163 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8164 ldr.w and ldrd instructions.
8165
8166 2014-05-15 Doug Evans <dje@google.com>
8167
8168 * dwarf2read.c (read_structure_type): Delete outdated comments.
8169
8170 2014-05-14 Tom Tromey <tromey@redhat.com>
8171
8172 * macrocmd.c (print_macro_definition): Reindent.
8173
8174 2014-05-13 Doug Evans <xdje42@gmail.com>
8175
8176 * python/py-cmd.c (cmdpy_completer): Add comment.
8177 (completers): Make const.
8178
8179 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8180
8181 * infrun.c (resume): Remove should_resume (unused). Move up
8182 declaration of resume_ptid.
8183
8184 2014-05-13 Tom Tromey <tromey@redhat.com>
8185
8186 * language.h (unop_type_check): Remove.
8187 (binop_type_check): Don't declare.
8188
8189 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8190
8191 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8192 call to regcache_raw_collect.
8193
8194 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8195
8196 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8197 mi_console->quote as the quoting character.
8198
8199 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8200
8201 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8202
8203 2014-04-29 Tom Tromey <tromey@redhat.com>
8204
8205 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8206 "show debug varobj".
8207
8208 2014-05-07 Kyle McMartin <kyle@redhat.com>
8209
8210 Pushed by Joel Brobecker <brobecker@adacore.com>.
8211 * aarch64-tdep.c (aarch64_software_single_step): New function.
8212 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8213 with aarch64_software_single_step.
8214
8215 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8216
8217 GDB 7.7.1 released.
8218
8219 2014-05-05 Keith Seitz <keiths@redhat.com>
8220
8221 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8222 variable or history value is successfully parsed.
8223
8224 2014-05-05 Yao Qi <yao@codesourcery.com>
8225 Pedro Alves <palves@redhat.com>
8226
8227 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8228 address of blocks that intersects the requested range. Trim
8229 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8230 sections.
8231 * ctf.c (ctf_xfer_partial): Likewise.
8232
8233 2014-05-05 Yao Qi <yao@codesourcery.com>
8234
8235 * printcmd.c (display_command): Remove the check to
8236 target_has_execution.
8237
8238 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8239
8240 * ppcobsd-nat.c: Include "obsd-nat.h".
8241 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8242 add_target.
8243 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8244
8245 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8246
8247 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8248 and 16-bit signed and unsigned arguments. Update comment.
8249 (stap_parse_probe_arguments): Extend code to handle such
8250 arguments. Use warning instead of complaint to notify about
8251 unrecognized bitness.
8252
8253 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8254
8255 PR breakpoints/16889
8256 * stap-probe.c (stap_parse_probe_arguments): Simplify
8257 check for non-prefixed probes (i.e., probes whose
8258 arguments do not start with "N@"). Always set the
8259 argument type to a sane value.
8260
8261 2014-05-01 David Taylor <dtaylor@emc.com>
8262
8263 * remote.c (compare_sections_command): Add -r option to compare
8264 all loadable read-only sections.
8265
8266 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8267
8268 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8269 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8270 Update all callers.
8271 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8272 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8273 Remove unused CORE_ADDR argument. Update all callers.
8274
8275 2014-04-29 Pedro Alves <palves@redhat.com>
8276
8277 * remote.c (struct packet_config) <detect>: Extend comment.
8278 (add_packet_config_cmd): Don't set the config's detect or support
8279 fields here.
8280 (init_all_packet_configs): Also initialize the config's 'detect'
8281 field.
8282 (reset_all_packet_configs_support): New function.
8283 (remote_open_1): Call reset_all_packet_configs_support instead of
8284 init_all_packet_configs.
8285 (_initialize_remote): Initialize all packet configs. Assert that
8286 all packets have an associated command, except a few known
8287 outliers.
8288
8289 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8290
8291 * dwarf2read.c (read_subrange_type): Handle dynamic
8292 DW_AT_lower_bound attributes.
8293
8294 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8295
8296 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8297 dynamic bounds before computing its upper bound.
8298 (ada_discrete_type_low_bound): Same as above with the lower bound.
8299
8300 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8301
8302 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8303 range types. Adjust the array handling implementation to
8304 take advantage of this change.
8305 (resolve_dynamic_range): New function, mostly extracted from
8306 resolve_dynamic_bounds.
8307 (resolve_dynamic_array): New function, mostly extracted from
8308 resolve_dynamic_bounds.
8309 (resolve_dynamic_bounds): Delete.
8310 (resolve_dynamic_type): Reimplement. Add handling of
8311 TYPE_CODE_RANGE types.
8312
8313 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8314
8315 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8316 handling of parallel ___XA types.
8317
8318 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8319
8320 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8321 unnecessary second call to static_unwrap_type.
8322
8323 2014-04-27 Hui Zhu <hui@codesourcery.com>
8324
8325 * stack.c (print_frame_info): Call do_gdb_disassembly with
8326 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8327
8328 2014-04-26 Doug Evans <xdje42@gmail.com>
8329
8330 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8331
8332 2014-04-25 Pedro Alves <palves@redhat.com>
8333
8334 PR server/16255
8335 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8336 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8337 and newline from built string.
8338 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8339 (linux_ptrace_attach_fail_reason): ... this.
8340 * linux-nat.c (linux_nat_attach): Adjust to use
8341 linux_ptrace_attach_fail_reason.
8342
8343 2014-04-25 Pedro Alves <palves@redhat.com>
8344
8345 * remote.c (struct remote_state): Remove multi_process_aware,
8346 non_stop_aware, cond_tracepoints, cond_breakpoints,
8347 breakpoint_commands, fast_tracepoints, static_tracepoints,
8348 install_in_trace, disconnected_tracing,
8349 enable_disable_tracepoints, string_tracing, and
8350 augmented_libraries_svr4_read fields.
8351 (remote_multi_process_p): Move further below in the file.
8352 (struct packet_config): Add comments.
8353 (update_packet_config): Delete function.
8354 (show_packet_config_cmd): Use packet_config_support.
8355 (add_packet_config_cmd): Use NULL as set callback.
8356 (packet_ok): "set remote foo-packet"-style commands no longer
8357 change config->supported -- adjust.
8358 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8359 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8360 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8361 (PACKET_QNonStop, PACKET_multiprocess_feature)
8362 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8363 (PACKET_DisconnectedTracing_feature)
8364 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8365 (set_remote_protocol_packet_cmd): Delete function.
8366 (packet_config_support, packet_support): New functions.
8367 (set_remote_protocol_Z_packet_cmd): Don't call
8368 update_packet_config.
8369 (remote_query_attached, remote_pass_signals)
8370 (remote_program_signals, remote_threads_info)
8371 (remote_threads_extra_info, remote_start_remote): Use
8372 packet_support.
8373 (remote_start_remote): Use packet_config_support and
8374 packet_support.
8375 (init_all_packet_configs): Set all packets to unknown support,
8376 instead of calling update_packet_config.
8377 (remote_check_symbols): Use packet_support.
8378 (remote_supported_packet): Unconditionally set the packet config's
8379 support status.
8380 (remote_multi_process_feature, remote_non_stop_feature)
8381 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8382 (remote_breakpoint_commands_feature)
8383 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8384 (remote_install_in_trace_feature)
8385 (remote_disconnected_tracing_feature)
8386 (remote_enable_disable_tracepoint_feature)
8387 (remote_string_tracing_feature)
8388 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8389 (remote_protocol_features): Adjust to use remote_supported_packet
8390 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8391 "ConditionalTracepoints", "ConditionalBreakpoints",
8392 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8393 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8394 "EnableDisableTracepoints", and "tracenz".
8395 (remote_query_supported): Use packet_support.
8396 (remote_open_1): Adjust.
8397 (extended_remote_attach_1): Use packet_support. Switch on the
8398 result of packet_ok instead of checking whether the packet ended
8399 up disabled.
8400 (remote_vcont_resume): Use packet_support.
8401 (remote_resume, remote_stop_ns, fetch_register_using_p)
8402 (remote_prepare_to_store, store_register_using_P)
8403 (check_binary_download, remote_write_bytes): Use packet_support.
8404 (remote_vkill): Use packet_support. Switch on the result of
8405 packet_ok instead of checking whether the packet ended up
8406 disabled.
8407 (extended_remote_supports_disable_randomization): Use
8408 packet_support.
8409 (extended_remote_run): Switch on the result of packet_ok instead
8410 of checking whether the packet ended up disabled.
8411 (remote_insert_breakpoint, remote_remove_breakpoint)
8412 (remote_insert_watchpoint, remote_remove_watchpoint)
8413 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8414 packet_support.
8415 (remote_search_memory): Use packet_config_support.
8416 (remote_get_thread_local_address, remote_get_tib_address)
8417 (remote_hostio_send_command, remote_can_execute_reverse): Use
8418 packet_support.
8419 (remote_supports_cond_tracepoints)
8420 (remote_supports_cond_breakpoints)
8421 (remote_supports_fast_tracepoints)
8422 (remote_supports_static_tracepoints)
8423 (remote_supports_install_in_trace)
8424 (remote_supports_enable_disable_tracepoint)
8425 (remote_supports_string_tracing)
8426 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8427 the packet config says the feature is enabled or disabled.
8428 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8429 (remote_get_trace_status): Use packet_support.
8430 (remote_set_disconnected_tracing): Adjust to check whether the
8431 feature is enabled with packet_support.
8432 (remote_set_trace_buffer_size, remote_use_agent)
8433 (remote_can_use_agent, remote_supports_btrace): Use
8434 packet_support.
8435 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8436 Use packet_config_support.
8437 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8438 the packet config says the feature is enabled or disabled.
8439 (set_range_stepping): Use packet_support.
8440
8441 2014-04-25 Tom Tromey <tromey@redhat.com>
8442
8443 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8444 argument.
8445
8446 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8447
8448 * NEWS: Mention support for C99 variable length arrays.
8449
8450 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8451
8452 * ada-lang.c (standard_exc): Expand introductory comment.
8453
8454 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8455 Walfred Tedeschi <walfred.tedeschi@intel.com>
8456
8457 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8458 AVX512 registers.
8459 (amd64_linux_read_description): Add code to handle AVX512 xstate
8460 mask and return respective tdesc.
8461 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8462 and features/i386/x32-avx512-linux.c.
8463 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8464 (amd64_linux_core_read_description): Add code to handle AVX512
8465 xstate mask and return respective tdesc.
8466 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8467 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8468 calculation.
8469 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8470 (tdesc_amd64_avx512_linux): New prototype.
8471 (tdesc_x32_avx512_linux): Likewise.
8472 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8473 features/i386/x32-avx512.c.
8474 (amd64_ymm_avx512_names): New register names for pseudo
8475 registers YMM16-31.
8476 (amd64_ymmh_avx512_names): New register names for raw registers
8477 YMMH16-31.
8478 (amd64_k_names): New register names for K registers.
8479 (amd64_zmmh_names): New register names for ZMM raw registers.
8480 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8481 (amd64_xmm_avx512_names): New register names for XMM16-31
8482 registers.
8483 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8484 registers.
8485 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8486 if feature is present.
8487 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8488 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8489 (AMD64_NUM_REGS): Adjust to new number of registers.
8490 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8491 registers supplied via XSTATE by AVX512 registers.
8492 (i386_linux_read_description): Add case for AVX512.
8493 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8494 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8495 (i386_linux_core_read_description): Add case for AVX512.
8496 (i386_linux_init_abi): Install supported register note section
8497 for AVX512.
8498 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8499 AVX512.
8500 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8501 registers to be number of zmm7h + 1.
8502 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8503 * i386-tdep.c: Include features/i386/i386-avx512.c.
8504 (i386_zmm_names): Add ZMM pseudo register names array.
8505 (i386_zmmh_names): Add ZMM raw register names array.
8506 (i386_k_names): Add K raw register names array.
8507 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8508 registers. AVX512 has 16 more ZMM registers than there are YMM
8509 registers.
8510 (i386_zmmh_regnum_p): Add function to look up register number of
8511 ZMM raw registers.
8512 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8513 (i386_k_regnum_p): Likewise for K raw registers.
8514 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8515 registers added by AVX512.
8516 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8517 registers added by AVX512.
8518 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8519 added by AVX512.
8520 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8521 (i386_pseudo_register_name): Add ZMM pseudo registers.
8522 (i386_zmm_type): Construct and return vector registers type for ZMM
8523 registers.
8524 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8525 ZMM0-31 pseudo registers and K registers.
8526 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8527 and YMM16-31 registers from register cache.
8528 (i386_pseudo_register_write): Add code to write K, ZMM and
8529 YMM16-31 registers.
8530 (i386_register_reggroup_p): Add code to include/exclude AVX512
8531 registers in/from respective register groups.
8532 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8533 registers if feature is present in xcr0.
8534 (i386_gdbarch_init): Add code to initialize AVX512 feature
8535 variables in tdep structure, wire in pseudo registers and call
8536 initialize_tdesc_i386_avx512.
8537 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8538 variables.
8539 (i386_regnum): Add AVX512 registers.
8540 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8541 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8542 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8543 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8544 512 bits wide.
8545 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8546 (i386_ymm_avx512_regnum_p): Likewise.
8547 (i386_k_regnum_p): Likewise.
8548 (i386_zmm_regnum_p): Likewise.
8549 (i386_zmmh_regnum_p): Likewise.
8550 * i387-tdep.c : Update year in copyright notice.
8551 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8552 XSAVE buffer.
8553 (XSAVE_YMM_AVX512_ADDR): New macro.
8554 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8555 XSAVE buffer.
8556 (XSAVE_XMM_AVX512_ADDR): New macro.
8557 (xsave_avx512_k_offset): New table for K register offsets in
8558 XSAVE buffer.
8559 (XSAVE_AVX512_K_ADDR): New macro.
8560 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8561 in XSAVE buffer.
8562 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8563 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8564 buffer.
8565 (i387_collect_xsave): Add code to collect AVX512 registers from
8566 XSAVE buffer.
8567 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8568 of XMM16-31 registers.
8569 (I387_NUM_K_REGS): New define for number of K registers.
8570 (I387_K0_REGNUM): New define for K0 register number.
8571 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8572 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8573 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8574 registers.
8575 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8576 (I387_XMM16_REGNUM): New define for XMM16 register number.
8577 (I387_YMM0_REGNUM): New define for YMM0 register number.
8578 (I387_KEND_REGNUM): New define for last K register number.
8579 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8580 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8581 number.
8582 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8583 number.
8584 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8585 size.
8586 * features/Makefile: Add AVX512 related files.
8587 * features/i386/32bit-avx512.xml: New file.
8588 * features/i386/64bit-avx512.xml: Likewise.
8589 * features/i386/amd64-avx512-linux.c: Likewise.
8590 * features/i386/amd64-avx512-linux.xml: Likewise.
8591 * features/i386/amd64-avx512.c: Likewise.
8592 * features/i386/amd64-avx512.xml: Likewise.
8593 * features/i386/i386-avx512-linux.c: Likewise.
8594 * features/i386/i386-avx512-linux.xml: Likewise.
8595 * features/i386/i386-avx512.c: Likewise.
8596 * features/i386/i386-avx512.xml: Likewise.
8597 * features/i386/x32-avx512-linux.c: Likewise.
8598 * features/i386/x32-avx512-linux.xml: Likewise.
8599 * features/i386/x32-avx512.c: Likewise.
8600 * features/i386/x32-avx512.xml: Likewise.
8601 * regformats/i386/amd64-avx512-linux.dat: New file.
8602 * regformats/i386/amd64-avx512.dat: Likewise.
8603 * regformats/i386/i386-avx512-linux.dat: Likewise.
8604 * regformats/i386/i386-avx512.dat: Likewise.
8605 * regformats/i386/x32-avx512-linux.dat: Likewise.
8606 * regformats/i386/x32-avx512.dat: Likewise.
8607 * NEWS: Add note about new support for AVX512.
8608
8609
8610 2014-04-23 Pedro Alves <palves@redhat.com>
8611
8612 * breakpoint.c (insert_bp_location): Tolerate errors if the
8613 breakpoint is set in a user-loaded objfile.
8614 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8615 location is marked shlib_disabled. If the breakpoint is set in a
8616 user-loaded objfile is a GDB-side memory breakpoint, validate it
8617 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8618 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8619 flag.
8620 * mem-break.c (memory_validate_breakpoint): New function.
8621 * objfiles.c (userloaded_objfile_contains_address_p): New
8622 function.
8623 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8624 * target.h (memory_validate_breakpoint): New declaration.
8625
8626 2014-04-23 Pedro Alves <palves@redhat.com>
8627
8628 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8629 the breakpoint is set in a shared library, only suppress
8630 errors for software breakpoints, not hardware breakpoints.
8631
8632 2014-04-22 Pedro Alves <palves@redhat.com>
8633
8634 * infrun.c (schedlock_applies): New function, factored out from
8635 find_thread_needs_step_over.
8636 (find_thread_needs_step_over): Use it.
8637 (switch_back_to_stepped_thread): Always clear trap_expected if the
8638 step over is finished. Return early if scheduler locking applies.
8639 Look for the stepping thread and a potential step-over thread with
8640 a single loop.
8641 (currently_stepping_or_nexting_callback): Delete.
8642
8643 2014-04-22 Nick Clifton <nickc@redhat.com>
8644
8645 * NEWS: Mention that ARM sim now supports tracing.
8646
8647 2014-04-22 Yao Qi <yao@codesourcery.com>
8648
8649 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8650 to ...
8651 * tracefile.c (tracefile_fetch_registers): ... it. New
8652 function.
8653 * tracefile.h (tracefile_fetch_registers): Declare.
8654 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8655 tracefile_fetch_registers.
8656
8657 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8658
8659 PR gdb/14018
8660 * windows-nat.c (thread_rec): Don't display a warning when
8661 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8662 fails for any reason, set th->suspended to -1, so that we don't
8663 try to resume such a thread. Also, don't return NULL in these
8664 cases, to avoid completely ruin the session due to "PC register is
8665 not available" error.
8666 (do_windows_fetch_inferior_registers): Check errors in
8667 GetThreadContext call.
8668 (windows_continue): Accept an additional argument KILLED; if not
8669 zero, ignore errors in the SetThreadContext call, since the
8670 inferior was killed and is shutting down.
8671 (windows_resume, get_windows_debug_event)
8672 (windows_create_inferior, windows_mourn_inferior)
8673 (windows_kill_inferior): All callers of windows_continue changed
8674 to adjust to its new calling sequence.
8675
8676 2014-04-19 Yao Qi <yao@codesourcery.com>
8677
8678 * ctf.c (ctf_open): Call post_create_inferior.
8679
8680 2014-04-19 Yao Qi <yao@codesourcery.com>
8681
8682 * ctf.c (handle_id): New static variable.
8683 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8684 value. Get the declaration of event "register" and get length
8685 of field "contents".
8686
8687 2014-04-19 Yao Qi <yao@codesourcery.com>
8688
8689 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8690
8691 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8692
8693 * valops.c (oload_method_static): Remove unnecessary argument
8694 METHOD. Update all callers.
8695
8696 2014-04-18 Pedro alves <palves@redhat.com>
8697 Tom Tromey <tromey@redhat.com>
8698
8699 PR backtrace/15558
8700 * frame.c (get_prev_frame_1): Rename to ...
8701 (get_prev_frame_always): ... this, and make extern. Adjust.
8702 (skip_artificial_frames): Use get_prev_frame_always.
8703 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8704 (get_frame_unwind_stop_reason): Adjust to rename.
8705 * frame.h (get_prev_frame_always): Declare.
8706 * inline-frame.c: Include frame.h.
8707 (inline_frame_this_id): Use get_prev_frame_always.
8708
8709 2014-04-18 Tristan Gingold <gingold@adacore.com>
8710
8711 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8712 code by using bfd_mach_o_get_base_address.
8713
8714 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8715
8716 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8717 (spu_ax_pseudo_register_collect): New function.
8718 (spu_ax_pseudo_register_push_stack): Likewise.
8719 (spu_dwarf_reg_to_regnum): Likewise.
8720 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8721
8722 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8723
8724 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8725 Replace FRAME argument with FRAME_ID.
8726 * gdbarch.c, gdbarch.h: Regenerate.
8727 * findvar.c (default_value_from_register): Add GDBARCH argument;
8728 replace FRAME by FRAME_ID. No longer call get_frame_id.
8729 (value_from_register): Update call to gdbarch_value_from_register.
8730 * value.h (default_value_from_register): Update prototype.
8731 * s390-linux-tdep.c (s390_value_from_register): Update interface
8732 and call to default_value_from_register.
8733 * spu-tdep.c (spu_value_from_register): Likewise.
8734
8735 * findvar.c (address_from_register): Remove TYPE argument.
8736 Do not call value_from_register; use gdbarch_value_from_register
8737 with null_frame_id instead.
8738 * value.h (address_from_register): Update prototype.
8739 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8740 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8741 address_from_register interface change.
8742
8743 2014-04-17 Yao Qi <yao@codesourcery.com>
8744
8745 * gdbtypes.h: Update comments to link to types and macros'
8746 definitions.
8747
8748 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8749
8750 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8751
8752 2014-04-16 Keith Seitz <keiths@redhat.com>
8753
8754 PR gdb/15827
8755 * dwarf2read.c (skip_one_die): Check that all relative-offset
8756 sibling DIEs fall within range of the current reader's buffer.
8757 (read_partial_die): Likewise.
8758
8759 2014-04-16 Keith Seitz <keiths@redhat.com>
8760
8761 PR c++/16597
8762 * cp-namespace.c (lookup_symbol_file): If the type name of
8763 `this' is NULL, return immediately.
8764
8765 2014-04-14 Keith Seitz <keiths@redhat.com>
8766
8767 PR c++/16253
8768 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8769 from symbol_matches_domain in symtab.c. All local callers
8770 of symbol_matches_domain updated.
8771 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8772 search STRUCT_DOMAIN.
8773 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8774 independently. standard_lookup will do that automatically.
8775 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8776 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8777 (cp_lookup_symbol_in_namespace): Likewise.
8778 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8779 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8780 may return a STRUCT_DOMAIN match.
8781 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8782 * cp-support.c: Include language.h.
8783 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8784 VAR_DOMAIN.
8785 * psymtab.c (match_partial_symbol): Compare the requested
8786 domain with the symbol's domain directly.
8787 (lookup_partial_symbol): Likewise.
8788 * symtab.c (lookup_symbol_in_language): Explain when/why
8789 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8790 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8791 appropriate languages.
8792 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8793 and moved to ada-lang.c
8794 (lookup_block_symbol): Explain that this function only returns
8795 symbol matching the requested DOMAIN.
8796 Compare the requested domain with the symbol's domain directly.
8797 (iterate_over_symbols): Compare the requested domain with the
8798 symbol's domain directly.
8799 * symtab.h (symbol_matches_domain): Remove.
8800
8801 2014-04-14 Tom Tromey <tromey@redhat.com>
8802
8803 PR c++/15246:
8804 * c-exp.y (type_aggregate_p): New function.
8805 (qualified_name, classify_inner_name): Use it.
8806 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8807 and TYPE_TARGET_TYPE of an enum type.
8808 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8809 an enum type.
8810 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8811 handle TYPE_DECLARED_CLASS.
8812 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8813 types.
8814 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8815 * valops.c (enum_constant_from_type): New function.
8816 (value_aggregate_elt): Use it.
8817 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8818 TYPE_CODE_ENUM.
8819
8820 2014-04-14 Tom Tromey <tromey@redhat.com>
8821
8822 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8823 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8824 const.
8825 * value.h (value_aggregate_elt): Update.
8826
8827 2014-04-14 Tom Tromey <tromey@redhat.com>
8828
8829 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8830
8831 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8832
8833 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8834 (evaluate_subexp_standard): Pass noside argument.
8835 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8836 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8837 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8838 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8839 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8840
8841 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8842
8843 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8844 points to a constant blob.
8845
8846 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8847
8848 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8849 property and store it as the high bound and flag the range accordingly.
8850 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8851 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8852 * gdbtypes.h (enum range_flags): New enum.
8853 (struct range_bounds): Add flags member.
8854
8855 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8856
8857 * c-typeprint.c (c_type_print_varspec_suffix): Added
8858 check for not yet resolved high bound. If unresolved, print
8859 "variable length" string to the console instead of random
8860 length.
8861
8862 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8863
8864 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8865 value.
8866 (ada_template_to_fixed_record_type_1): Likewise.
8867 (ada_to_fixed_type_1): Likewise.
8868 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8869 (cp_print_value): Likewise.
8870 * d-valprint.c (dynamic_array_type): Likewise.
8871 * findvar.c (address_of_variable): Likewise.
8872 * jv-valprint.c (java_value_print): Likewise.
8873 * valops.c (value_ind): Likewise.
8874 * value.c (coerce_ref): Likewise.
8875
8876 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8877
8878 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8879 value and retrieve the dynamic type size.
8880
8881 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8882
8883 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8884 passed to sizeof is dynamic evaluate the argument to compute the length.
8885
8886 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8887 Joel Brobecker <brobecker@adacore.com>
8888
8889 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8890 (dwarf2_evaluate_property): New function.
8891 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8892 * dwarf2read.c (attr_to_dynamic_prop): New function.
8893 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8894 attribute.
8895 * gdbtypes.c: Include dwarf2loc.h.
8896 (is_dynamic_type): New function.
8897 (resolve_dynamic_type): New function.
8898 (resolve_dynamic_bounds): New function.
8899 (get_type_length): New function.
8900 (check_typedef): Use get_type_length to compute type length.
8901 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8902 (TYPE_LOW_BOUND_KIND): New macro.
8903 (is_dynamic_type): New function prototype.
8904 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8905 to resolve dynamic properties of the type. Update comment.
8906 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8907
8908 2014-04-14 Richard Henderson <rth@redhat.com>
8909
8910 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8911
8912 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8913 Doug Evans <xdje42@gmail.com>
8914
8915 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8916 dereference TYPE_CODE_REF values.
8917
8918 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8919
8920 Revert the following changes due to regressions:
8921
8922 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8923 (dwarf2_evaluate_property): New function.
8924 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8925 * dwarf2read.c (attr_to_dynamic_prop): New function.
8926 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8927 attribute.
8928 * gdbtypes.c: Include dwarf2loc.h.
8929 (is_dynamic_type): New function.
8930 (resolve_dynamic_type): New function.
8931 (resolve_dynamic_bounds): New function.
8932 (get_type_length): New function.
8933 (check_typedef): Use get_type_length to compute type length.
8934 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8935 (TYPE_LOW_BOUND_KIND): New macro.
8936 (is_dynamic_type): New function prototype.
8937 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8938 to resolve dynamic properties of the type. Update comment.
8939 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8940
8941 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8942 passed to sizeof is dynamic evaluate the argument to compute the length.
8943
8944 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8945 value and retrieve the dynamic type size.
8946
8947 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8948 (ada_template_to_fixed_record_type_1): Likewise.
8949 (ada_to_fixed_type_1): Likewise.
8950 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8951 (cp_print_value): Likewise.
8952 * d-valprint.c (dynamic_array_type): Likewise.
8953 * eval.c (evaluate_subexp_with_coercion): Likewise.
8954 * findvar.c (address_of_variable): Likewise.
8955 * jv-valprint.c (java_value_print): Likewise.
8956 * valops.c (value_ind): Likewise.
8957 * value.c (coerce_ref): Likewise.
8958
8959 * c-typeprint.c (c_type_print_varspec_suffix): Added
8960 check for not yet resolved high bound. If unresolved, print
8961 "variable length" string to the console instead of random
8962 length.
8963
8964 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8965 property and store it as the high bound and flag the range accordingly.
8966 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8967 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8968 * gdbtypes.h (enum range_flags): New enum.
8969 (struct range_bounds): Add flags member.
8970
8971 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8972 points to a constant blob.
8973
8974 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8975 (evaluate_subexp_standard): Pass noside argument.
8976 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8977 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8978 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8979 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8980 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8981
8982 2014-04-11 Keith Seitz <keiths@redhat.com>
8983
8984 PR c++/16675
8985 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8986 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8987 reference types.
8988
8989 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8990
8991 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8992 (evaluate_subexp_standard): Pass noside argument.
8993 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8994 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8995 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8996 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8997 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8998
8999 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9000
9001 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9002 points to a constant blob.
9003
9004 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9005
9006 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9007 property and store it as the high bound and flag the range accordingly.
9008 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9009 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9010 * gdbtypes.h (enum range_flags): New enum.
9011 (struct range_bounds): Add flags member.
9012
9013 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9014
9015 * c-typeprint.c (c_type_print_varspec_suffix): Added
9016 check for not yet resolved high bound. If unresolved, print
9017 "variable length" string to the console instead of random
9018 length.
9019
9020 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9021
9022 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9023 (ada_template_to_fixed_record_type_1): Likewise.
9024 (ada_to_fixed_type_1): Likewise.
9025 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9026 (cp_print_value): Likewise.
9027 * d-valprint.c (dynamic_array_type): Likewise.
9028 * eval.c (evaluate_subexp_with_coercion): Likewise.
9029 * findvar.c (address_of_variable): Likewise.
9030 * jv-valprint.c (java_value_print): Likewise.
9031 * valops.c (value_ind): Likewise.
9032 * value.c (coerce_ref): Likewise.
9033
9034 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9035
9036 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9037 value and retrieve the dynamic type size.
9038
9039 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9040
9041 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9042 passed to sizeof is dynamic evaluate the argument to compute the length.
9043
9044 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9045
9046 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9047 (dwarf2_evaluate_property): New function.
9048 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9049 * dwarf2read.c (attr_to_dynamic_prop): New function.
9050 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9051 attribute.
9052 * gdbtypes.c: Include dwarf2loc.h.
9053 (is_dynamic_type): New function.
9054 (resolve_dynamic_type): New function.
9055 (resolve_dynamic_bounds): New function.
9056 (get_type_length): New function.
9057 (check_typedef): Use get_type_length to compute type length.
9058 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9059 (TYPE_LOW_BOUND_KIND): New macro.
9060 (is_dynamic_type): New function prototype.
9061 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9062 to resolve dynamic properties of the type. Update comment.
9063 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9064
9065 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9066
9067 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9068 declaring high/low bounds and change uses accordingly. Call
9069 create_range_type instead of create_static_range_type.
9070 * gdbtypes.c (create_range_type): New function.
9071 (create_range_type): Convert bounds into struct bound_prop and pass
9072 them to create_range_type.
9073 * gdbtypes.h (struct bound_prop): New struct.
9074 (create_range_type): New function prototype.
9075 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9076 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9077 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9078 part of the bound.
9079 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9080
9081 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9082
9083 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9084 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9085 * ada-lang.c: All uses of create_range_type updated.
9086 * coffread.c: All uses of create_range_type updated.
9087 * dwarf2read.c: All uses of create_range_type updated.
9088 * f-exp.y: All uses of create_range_type updated.
9089 * m2-valprint.c: All uses of create_range_type updated.
9090 * mdebugread.c: All uses of create_range_type updated.
9091 * stabsread.c: All uses of create_range_type updated.
9092 * valops.c: All uses of create_range_type updated.
9093 * valprint.c: All uses of create_range_type updated.
9094
9095 2014-04-10 Pedro Alves <palves@redhat.com>
9096
9097 * breakpoint.c (single_step_breakpoints)
9098 (single_step_gdbarch): Move up in the file.
9099 (one_breakpoint_xfer_memory): New function, factored out from ...
9100 (breakpoint_xfer_memory): ... here. Also process single-step
9101 breakpoints.
9102
9103 2014-04-09 Tristan Gingold <gingold@adacore.com>
9104
9105 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9106 comments.
9107 (darwin_decode_exception_message): Free port only after use.
9108
9109 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9110
9111 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9112 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9113 when setting the size of call_length.
9114
9115 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9116
9117 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9118 dereference TYPE_CODE_REF values.
9119
9120 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9121
9122 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9123 end of warning message.
9124
9125 2014-04-03 Doug Evans <dje@google.com>
9126
9127 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9128 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9129
9130 2014-04-02 Alan Modra <amodra@gmail.com>
9131
9132 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9133 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9134 (struct symbol_file_add_from_memory_args): Add size field.
9135 (find_vdso_size): New function.
9136 (add_vsyscall_page): Attempt to find vdso size.
9137
9138 2014-04-01 Doug Evans <dje@google.com>
9139
9140 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9141
9142 2014-04-01 Tristan Gingold <gingold@adacore.com>
9143
9144 * darwin-nat.c (darwin_encode_reply): Add prototype.
9145 (darwin_decode_exception_message): Reply to unknown inferiors.
9146 (darwin_decode_message): Handle message by id. Ignore message
9147 to unknown inferior.
9148 (darwin_wait): Discard unknown messages, add debug trace.
9149
9150 2014-03-31 Doug Evans <dje@google.com>
9151
9152 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9153 comp_dir_string.
9154
9155 2014-03-31 Doug Evans <dje@google.com>
9156
9157 New option "set print symbol-loading".
9158 * NEWS: Mention it.
9159 * solib.c (solib_read_symbols): Only print symbol loading messages
9160 if requested.
9161 (solib_add): If symbol loading is in "brief" mode, notify user
9162 symbols are being loaded.
9163 (reload_shared_libraries_1): Ditto.
9164 * symfile.c (print_symbol_loading_off): New static global.
9165 (print_symbol_loading_brief): New static global.
9166 (print_symbol_loading_full): New static global.
9167 (print_symbol_loading_enums): New static global.
9168 (print_symbol_loading): New static global.
9169 (print_symbol_loading_p): New function.
9170 (symbol_file_add_with_addrs): Only print symbol loading messages
9171 if requested.
9172 (_initialize_symfile): Register "print symbol-loading" set/show
9173 command.
9174 * symfile.h (print_symbol_loading_p): Declare.
9175
9176 2014-03-30 Doug Evans <xdje42@gmail.com>
9177
9178 * infrun.c (set_last_target_status): New function.
9179 (handle_inferior_event): Call it.
9180
9181 2014-03-30 Doug Evans <xdje42@gmail.com>
9182
9183 * inferior.h (enum stop_kind): Improve comment.
9184
9185 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9186
9187 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9188 a reference, strip the reference layer before calling
9189 the lang_ops value_has_mutated callback.
9190
9191 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9192
9193 Remove some globals from our parser.
9194 * language.c (unk_lang_parser): Add "struct parser_state"
9195 argument.
9196 * language.h (struct language_defn) <la_parser>: Likewise.
9197 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9198 (initialize_expout): Add "struct parser_state" argument.
9199 Rewrite function to use the parser state.
9200 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9201 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9202 write_exp_elt_longcst, write_exp_elt_dblcst,
9203 write_exp_elt_decfloatcst, write_exp_elt_type,
9204 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9205 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9206 write_dollar_variable): Likewise.
9207 (parse_exp_in_context_1): Use parser state.
9208 (insert_type_address_space): Add "struct parser_state" argument.
9209 Use parser state.
9210 (increase_expout_size): New function.
9211 * parser-defs.h: Forward declare "struct language_defn" and
9212 "struct parser_state".
9213 (expout, expout_size, expout_ptr): Remove extern declarations.
9214 (parse_gdbarch, parse_language): Rewrite macro declarations to
9215 accept the parser state.
9216 (struct parser_state): New struct.
9217 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9218 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9219 write_exp_elt_decfloatcst, write_exp_elt_type,
9220 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9221 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9222 write_exp_msymbol, write_dollar_variable,
9223 mark_struct_expression, insert_type_address_space): Add "struct
9224 parser_state" argument.
9225 (increase_expout_size): New function.
9226 * utils.c (do_clear_parser_state): New function.
9227 (make_cleanup_clear_parser_state): Likewise.
9228 * utils.h (make_cleanup_clear_parser_state): New function
9229 prototype.
9230 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9231 Update calls to write_exp* in order to pass the parser state.
9232 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9233 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9234 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9235 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9236 * stap-probe.c (stap_parse_register_operand): Likewise.
9237 (stap_parse_single_operand): Likewise.
9238 (stap_parse_argument_1): Likewise.
9239 (stap_parse_argument): Use parser state.
9240 * stap-probe.h: Include "parser-defs.h".
9241 (struct stap_parse_info) <pstate>: New field.
9242 * c-exp.y (parse_type): Rewrite to use parser state.
9243 (yyparse): Redefine to c_parse_internal.
9244 (pstate): New global variable.
9245 (parse_number): Add "struct parser_state" argument.
9246 (write_destructor_name): Likewise.
9247 (type_exp): Update calls to write_exp* and similars in order to
9248 use parser state.
9249 (exp1, exp, variable, qualified_name, space_identifier,
9250 typename, typebase): Likewise.
9251 (write_destructor_name, parse_number, lex_one_token,
9252 classify_name, classify_inner_name, c_parse): Add "struct
9253 parser_state" argument. Update function to use parser state.
9254 * c-lang.h: Forward declare "struct parser_state".
9255 (c_parse): Add "struct parser_state" argument.
9256 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9257 (yyparse): Redefine macro to ada_parse_internal.
9258 (pstate): New variable.
9259 (write_int, write_object_renaming, write_var_or_type,
9260 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9261 type_int, type_long, type_long_long, type_float, type_double,
9262 type_long_double, type_char, type_boolean, type_system_address):
9263 Add "struct parser_state" argument.
9264 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9265 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9266 var_or_type, aggregate, aggregate_component_list,
9267 positional_list, others, component_group,
9268 component_associations): Update calls to write_exp* and similar
9269 functions in order to use parser state.
9270 (ada_parse, write_var_from_sym, write_int,
9271 write_exp_op_with_string, write_object_renaming,
9272 find_primitive_type, write_selectors, write_ambiguous_var,
9273 write_var_or_type, write_name_assoc, type_int, type_long,
9274 type_long_long, type_float, type_double, type_long_double,
9275 type_char, type_boolean, type_system_address): Add "struct
9276 parser_state" argument. Adjust function to use parser state.
9277 * ada-lang.c (parse): Likewise.
9278 * ada-lang.h: Forward declare "struct parser_state".
9279 (ada_parse): Add "struct parser_state" argument.
9280 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9281 calls to both functions.
9282 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9283 parser state.
9284 (yyparse): Redefine macro to f_parse_internal.
9285 (pstate): New variable.
9286 (parse_number): Add "struct parser_state" argument.
9287 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9288 and similars in order to use parser state.
9289 (parse_number): Adjust code to use parser state.
9290 (yylex): Likewise.
9291 (f_parse): New function.
9292 * f-lang.h: Forward declare "struct parser_state".
9293 (f_parse): Add "struct parser_state" argument.
9294 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9295 parser state.
9296 (yyparse): Redefine macro for java_parse_internal.
9297 (pstate): New variable.
9298 (push_expression_name, push_expression_name, insert_exp): Add
9299 "struct parser_state" argument.
9300 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9301 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9302 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9303 PostIncrementExpression, PostDecrementExpression,
9304 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9305 UnaryExpressionNotPlusMinus, CastExpression,
9306 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9307 RelationalExpression, EqualityExpression, AndExpression,
9308 ExclusiveOrExpression, InclusiveOrExpression,
9309 ConditionalAndExpression, ConditionalOrExpression,
9310 ConditionalExpression, Assignment, LeftHandSide): Update
9311 calls to write_exp* and similars in order to use parser state.
9312 (parse_number): Ajust code to use parser state.
9313 (yylex): Likewise.
9314 (java_parse): New function.
9315 (push_variable): Add "struct parser_state" argument. Adjust
9316 code to user parser state.
9317 (push_fieldnames, push_qualified_expression_name,
9318 push_expression_name, insert_exp): Likewise.
9319 * jv-lang.h: Forward declare "struct parser_state".
9320 (java_parse): Add "struct parser_state" argument.
9321 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9322 parser state.
9323 (yyparse): Redefine macro to m2_parse_internal.
9324 (pstate): New variable.
9325 (type_exp, exp, fblock, variable, type): Update calls to
9326 write_exp* and similars to use parser state.
9327 (yylex): Likewise.
9328 (m2_parse): New function.
9329 * m2-lang.h: Forward declare "struct parser_state".
9330 (m2_parse): Add "struct parser_state" argument.
9331 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9332 * objc-lang.h: Forward declare "struct parser_state".
9333 (end_msglist): Add "struct parser_state" argument.
9334 * p-exp.y (parse_type): Rewrite macro to use parser state.
9335 (yyparse): Redefine macro to pascal_parse_internal.
9336 (pstate): New variable.
9337 (parse_number): Add "struct parser_state" argument.
9338 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9339 write_exp* and similars in order to use parser state.
9340 (parse_number, yylex): Adjust code to use parser state.
9341 (pascal_parse): New function.
9342 * p-lang.h: Forward declare "struct parser_state".
9343 (pascal_parse): Add "struct parser_state" argument.
9344 * go-exp.y (parse_type): Rewrite macro to use parser state.
9345 (yyparse): Redefine macro to go_parse_internal.
9346 (pstate): New variable.
9347 (parse_number): Add "struct parser_state" argument.
9348 (type_exp, exp1, exp, variable, type): Update calls to
9349 write_exp* and similars in order to use parser state.
9350 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9351 to use parser state.
9352 (go_parse): Likewise.
9353 * go-lang.h: Forward declare "struct parser_state".
9354 (go_parse): Add "struct parser_state" argument.
9355
9356 2014-03-27 Doug Evans <dje@google.com>
9357
9358 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9359
9360 2014-03-27 Doug Evans <dje@google.com>
9361
9362 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9363 Remove argument abbrev_section. All callers updated.
9364
9365 2014-03-27 Doug Evans <dje@google.com>
9366
9367 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9368 addr_base, ranges_base.
9369
9370 2014-03-26 Keith Seitz <keiths@redhat.com>
9371
9372 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9373 types, not VAR_DOMAIN.
9374
9375 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9376
9377 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9378 "ra" registers.
9379 * features/nios2-linux.c: Regenerated.
9380 * features/nios2.c: Regenerated.
9381
9382 2014-03-25 Pedro Alves <palves@redhat.com>
9383
9384 * cli/cli-script.c (script_from_file): Force the interpreter to
9385 sync mode.
9386
9387 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9388
9389 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9390 small stack allocation.
9391
9392 2014-03-24 Tristan Gingold <gingold@adacore.com>
9393
9394 * darwin-nat.c (exc_server): Remove unused prototype.
9395 (darwin_dump_message): Correctly display data on x86_64.
9396 (darwin_encode_reply): Fix style.
9397 Add comments and fix indentation.
9398
9399 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9400
9401 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9402
9403 2014-03-22 Doug Evans <xdje42@gmail.com>
9404
9405 * infcmd.c: Whitespace fixes.
9406 (interrupt_command): Merge two function comments into one.
9407
9408 2014-03-22 Doug Evans <xdje42@gmail.com>
9409
9410 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9411 All uses updated.
9412
9413 2014-03-22 Yao Qi <yao@codesourcery.com>
9414
9415 * remote.c (target_read_live_memory): Remove.
9416 (memory_xfer_live_readonly_partial): Rename it to
9417 remote_xfer_live_readonly_partial. Remove argument 'object'.
9418 All callers updated. Call remote_read_bytes_1
9419 instead of target_read_live_memory.
9420 * tracepoint.c (set_traceframe_number): Remove.
9421 (make_cleanup_restore_traceframe_number): Likewise .
9422 * tracepoint.h (set_traceframe_number): Remove declaration.
9423 (make_cleanup_restore_traceframe_number): Likewise.
9424
9425 2014-03-22 Yao Qi <yao@codesourcery.com>
9426
9427 * remote.c (remote_read_bytes): Move code on reading from the
9428 remote stub to ...
9429 (remote_read_bytes_1): ... here. New function.
9430
9431 2014-03-22 Yao Qi <yao@codesourcery.com>
9432
9433 * ctf.c (ctf_xfer_partial): Check the return value of
9434 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9435 return TARGET_XFER_UNAVAILABLE.
9436 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9437 * target.c (target_read_live_memory): Move it to remote.c.
9438 (memory_xfer_live_readonly_partial): Likewise.
9439 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9440 * remote.c (target_read_live_memory): Moved from target.c.
9441 (memory_xfer_live_readonly_partial): Likewise.
9442 (remote_read_bytes): Factored out from
9443 memory_xfer_partial_1.
9444
9445 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9446
9447 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9448 NULL pointer.
9449
9450 2014-03-21 Pedro Alves <palves@redhat.com>
9451
9452 * infrun.c (normal_stop): Extend comment.
9453
9454 2014-03-21 Hui Zhu <hui@codesourcery.com>
9455 Pedro Alves <palves@redhat.com>
9456
9457 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9458 static buffer.
9459 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9460 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9461 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9462
9463 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9464
9465 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9466 `z' formatted output modifier.
9467
9468 2014-03-20 Tom Tromey <tromey@redhat.com>
9469 Sergio Durigan Junior <sergiodj@redhat.com>
9470
9471 * probe.c (parse_probes): Turn assert into an ordinary error.
9472 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9473 exceptions when parsing probes. Rearrange the code for clarity.
9474
9475 2014-03-20 Tom Tromey <tromey@redhat.com>
9476
9477 PR gdb/14135
9478 * top.c (execute_command): Only dispatch events if the command
9479 started the target.
9480
9481 2014-03-20 Tom Tromey <tromey@redhat.com>
9482
9483 PR cli/15718
9484 * infcall.c: Include event-top.h.
9485 (run_inferior_call): Call async_disable_stdin if needed.
9486
9487 2014-03-20 Pedro Alves <palves@redhat.com>
9488
9489 * infrun.c (prepare_to_proceed): Delete.
9490 (thread_still_needs_step_over): New function.
9491 (find_thread_needs_step_over): New function.
9492 (proceed): If the current thread needs a step-over, set its
9493 steping_over_breakpoint flag. Adjust to use
9494 find_thread_needs_step_over instead of prepare_to_proceed.
9495 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9496 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9497 breakpoint.
9498 (switch_back_to_stepped_thread): Step over breakpoints of all
9499 threads not the stepping thread, before switching back to the
9500 stepping thread.
9501
9502 2014-03-20 Pedro Alves <palves@redhat.com>
9503
9504 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9505 extern.
9506 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9507 * infrun.c (saved_singlestep_ptid)
9508 (stepping_past_singlestep_breakpoint): Delete.
9509 (resume): Remove stepping_past_singlestep_breakpoint handling.
9510 (proceed): Store the prev_pc of the stepping thread too.
9511 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9512 singlestep_pc.
9513 (enum infwait_states): Delete infwait_thread_hop_state.
9514 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9515 field.
9516 (handle_inferior_event): Adjust.
9517 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9518 handling and the thread-hop code. Before removing single-step
9519 breakpoints, check whether the thread hit a single-step breakpoint
9520 of another thread. If it did, the trap is not a random signal.
9521 (switch_back_to_stepped_thread): If the event thread hit a
9522 single-step breakpoint, unblock it before switching to the
9523 stepping thread. Handle the case of the stepped thread having
9524 advanced already.
9525 (keep_going): Handle the case of the current thread moving past a
9526 single-step breakpoint.
9527
9528 2014-03-20 Pedro Alves <palves@redhat.com>
9529
9530 PR breakpoints/7143
9531 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9532 are being stepped over.
9533 (breakpoint_address_match): Make extern.
9534 * breakpoint.h (breakpoint_address_match): New declaration.
9535 * inferior.h (stepping_past_instruction_at): New declaration.
9536 * infrun.c (struct step_over_info): New type.
9537 (step_over_info): New global.
9538 (set_step_over_info, clear_step_over_info)
9539 (stepping_past_instruction_at): New functions.
9540 (handle_inferior_event): Clear the step-over info when
9541 trap_expected is cleared.
9542 (resume): Remove now stale comment.
9543 (clear_proceed_status): Clear step-over info.
9544 (proceed): Adjust step-over handling to set or clear the step-over
9545 info instead of removing all breakpoints.
9546 (handle_signal_stop): When setting up a thread-hop, don't remove
9547 breakpoints here.
9548 (stop_stepping): Clear step-over info.
9549 (keep_going): Adjust step-over handling to set or clear step-over
9550 info and then always inserting breakpoints, instead of removing
9551 all breakpoints when stepping over one.
9552
9553 2014-03-20 Pedro Alves <palves@redhat.com>
9554
9555 * infrun.c (previous_inferior_ptid): Adjust comment.
9556 (deferred_step_ptid): Delete.
9557 (infrun_thread_ptid_changed, prepare_to_proceed)
9558 (init_wait_for_inferior): Adjust.
9559 (handle_signal_stop): Delete deferred_step_ptid handling.
9560
9561 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9562
9563 PR gdb/15358
9564 * defs.h (sync_quit_force_run): New declaration.
9565 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9566 * event-top.c (async_sigterm_handler): New declaration.
9567 (async_sigterm_token): New variable.
9568 (async_init_signals): Create also async_sigterm_token.
9569 (async_sigterm_handler): New function.
9570 (sync_quit_force_run): New variable.
9571 (handle_sigterm): Replace quit_force call by other calls.
9572 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9573
9574 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9575
9576 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9577 offset into SPE pseudo registers.
9578
9579 2014-03-18 Pedro Alves <palves@redhat.com>
9580
9581 PR gdb/13860
9582 * inferior.h (print_stop_event): Declare.
9583 * infrun.c (print_stop_event): New, factored out from ...
9584 (normal_stop): ... this.
9585 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9586 of bpstat_print/print_stack_frame.
9587
9588 2014-03-17 Tom Tromey <tromey@redhat.com>
9589
9590 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9591
9592 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9593
9594 * ada-lang.c (decode_constrained_packed_array): Perform a
9595 minimal coercion for reference with coerce_ref instead of
9596 ada_coerce_ref.
9597
9598 2014-03-17 Tristan Gingold <gingold@adacore.com>
9599
9600 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9601 (darwin_solib_create_inferior_hook): Emit a warning if version
9602 is unhandled.
9603
9604 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9605
9606 * python/py-value.c (get_field_flag): Cast flag_name argument to
9607 PyObject_GetAttrString to support Python 2.4.
9608
9609 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9610
9611 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9612 (Global Maintainers): Remove Jan Kratochvil.
9613
9614 2014-03-14 Pedro Alves <palves@redhat.com>
9615
9616 * inferior.h (terminal_ours_for_output): Rename to ...
9617 (child_terminal_ours_for_output): ... this.
9618 (terminal_save_ours): Rename to ...
9619 (child_terminal_save_ours): ... this.
9620 (terminal_ours): Rename to ...
9621 (child_terminal_ours): ... this.
9622 (terminal_inferior): Rename to ...
9623 (child_terminal_inferior): ... this.
9624 (terminal_init_inferior): Rename to ...
9625 (child_terminal_init_inferior): ... this.
9626 (terminal_init_inferior_with_pgrp): Rename to ...
9627 (child_terminal_init_inferior_with_pgrp): ... this.
9628 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9629 (child_terminal_init_with_pgrp): ... this.
9630 (terminal_save_ours): Rename to ...
9631 (child_terminal_save_ours): ... this.
9632 (terminal_init_inferior): Rename to ...
9633 (child_terminal_init): ... this. Adjust.
9634 (terminal_inferior): Rename to ...
9635 (child_terminal_inferior): ... this.
9636 (terminal_ours_for_output): Rename to ...
9637 (child_terminal_ours_for_output): ... this. Adjust.
9638 (terminal_ours): Rename to ...
9639 (child_terminal_ours): ... this.
9640 (terminal_ours_1): Rename to ...
9641 (child_terminal_ours_1): ... this. Adjust.
9642 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9643 * windows-nat.c (do_initial_windows_stuff): Adjust.
9644 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9645 (gnu_terminal_init): ... this. Adjust.
9646 (gnu_target): Adjust.
9647 * inf-child.c (inf_child_target): Adjust.
9648
9649 2014-03-13 Doug Evans <xdje42@gmail.com>
9650
9651 PR guile/16612
9652 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9653 new eq?-hashtab.
9654
9655 2014-03-13 Doug Evans <xdje42@gmail.com>
9656
9657 * value.c (record_latest_value): Call release_value_or_incref
9658 instead of release_value.
9659
9660 2014-03-13 Pedro Alves <palves@redhat.com>
9661
9662 * procfs.c (procfs_target): Don't override to_shortname,
9663 to_longname or to_doc.
9664
9665 2014-03-13 Pedro Alves <palves@redhat.com>
9666
9667 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9668 Unix in user visible strings.
9669
9670 2014-03-12 Stan Shebs <stan@codesourcery.com>
9671
9672 * gdbtypes.h: Annotate comments for Doxygen, add a page
9673 block comment with some general info.
9674
9675 2014-03-12 Pedro Alves <palves@redhat.com>
9676
9677 * infcmd.c (prepare_execution_command): New function, factored out
9678 from several execution commands.
9679 (run_command_1, continue_command, step_1, jump_command)
9680 (signal_command, until_command, advance_command, finish_command)
9681 (attach_command): Use prepare_execution_command.
9682
9683 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9684
9685 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9686 (MAX_BPTS): Define.
9687 (MAX_WPTS): Define.
9688 (struct arm_linux_thread_points): Removed.
9689 (struct arm_linux_process_info): New.
9690 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9691 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9692 (arm_linux_find_breakpoints_by_tid): Removed.
9693 (struct arch_lwp_info): New.
9694 (arm_linux_find_process_pid): New functions.
9695 (arm_linux_add_process): New functions.
9696 (arm_linux_process_info_get): New functions.
9697 (arm_linux_forget_process): New function.
9698 (arm_linux_get_debug_reg_state): New function.
9699 (struct update_registers_data): New.
9700 (update_registers_callback): New function.
9701 (arm_linux_insert_hw_breakpoint1): Updated.
9702 (arm_linux_remove_hw_breakpoint1): Updated.
9703 (arm_linux_insert_hw_breakpoint): Updated.
9704 (arm_linux_remove_hw_breakpoint): Updated.
9705 (arm_linux_insert_watchpoint): Updated.
9706 (arm_linux_remove_watchpoint): Updated.
9707 (arm_linux_new_thread): Updated.
9708 (arm_linux_prepare_to_resume): New function.
9709 (arm_linux_new_fork): New function.
9710 (_initialize_arm_linux_nat): Updated.
9711
9712 2014-03-12 Pedro Alves <palves@redhat.com>
9713
9714 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9715
9716 2014-03-12 Tom Tromey <tromey@redhat.com>
9717
9718 * inf-child.c (return_zero): New function.
9719 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9720 * aix-thread.c (aix_thread_inferior_created): New function.
9721 (aix_thread_attach): Remove.
9722 (init_aix_thread_ops): Don't set to_attach.
9723 (_initialize_aix_thread): Register inferior_created observer.
9724 * corelow.c (init_core_ops): Don't set to_attach or
9725 to_create_inferior.
9726 * exec.c (init_exec_ops): Don't set to_attach or
9727 to_create_inferior.
9728 * infcmd.c (run_command_1): Use find_run_target. Make direct
9729 target calls.
9730 (attach_command): Use find_attach_target. Make direct target
9731 calls.
9732 * record-btrace.c (init_record_btrace_ops): Don't set
9733 to_create_inferior.
9734 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9735 Remove.
9736 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9737 set to_create_inferior.
9738 * target.c (complete_target_initialization): Add assertion.
9739 (target_create_inferior): Remove.
9740 (find_default_attach, find_default_create_inferior): Remove.
9741 (find_attach_target, find_run_target): New functions.
9742 (find_default_is_async_p, find_default_can_async_p)
9743 (target_supports_non_stop, target_attach): Remove.
9744 (init_dummy_target): Don't set to_create_inferior or
9745 to_supports_non_stop.
9746 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9747 TARGET_DEFAULT_FUNC.
9748 <to_create_inferior>: Add comment.
9749 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9750 TARGET_DEFAULT_RETURN.
9751 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9752 (find_attach_target, find_run_target): Declare.
9753 (target_create_inferior): Remove.
9754 (target_has_execution_1): Update comment.
9755 (target_supports_non_stop): Remove.
9756 * target-delegates.c: Rebuild.
9757
9758 2014-03-12 Pedro Alves <palves@redhat.com>
9759
9760 * inf-child.h: Update comment to not mention Unix.
9761
9762 2014-03-12 Pedro Alves <palves@redhat.com>
9763
9764 * inf-child.c: Update top comment to not mention Unix. Add
9765 generic comment describing how this target is meant to be used.
9766 (inf_child_post_attach, inf_child_post_startup_inferior)
9767 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9768 Unix in comment.
9769
9770 2014-03-12 Pedro Alves <palves@redhat.com>
9771
9772 * nto-procfs.c: Include inf-child.h.
9773 (procfs_ops): Delete global.
9774 (procfs_can_run): Delete method.
9775 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9776 target pointer instead of referencing procfs_ops.
9777 (procfs_prepare_to_store): Delete.
9778 (init_procfs_ops): Delete function.
9779 (procfs_target): New function, based on init_procfs_ops, but
9780 inherit inf_child_target.
9781 (_initialize_procfs): Use procfs_target.
9782
9783 2014-03-12 Pedro Alves <palves@redhat.com>
9784
9785 * windows-nat.c: Include inf-child.h.
9786 (windows_ops): Delete global.
9787 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9788 methods.
9789 (init_windows_ops): Delete function.
9790 (windows_target): New function, based on init_windows_ops, but
9791 inherit inf_child_target.
9792 (_initialize_windows_nat): Use windows_target. Install x86
9793 specific target methods here.
9794
9795 2014-03-10 Doug Evans <xdje42@gmail.com>
9796
9797 * guile/guile.c (call_initialize_gdb_module): New function.
9798 (initialize_guile): Replace call to scm_init_guile with call to
9799 scm_with_guile.
9800
9801 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9802
9803 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9804 in call to TYPE_CODE macro.
9805
9806 2014-03-10 Jerome Guitton <guitton@adacore.com>
9807
9808 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9809 Resolve tagged types to full view.
9810
9811 2014-03-10 Hui Zhu <hui@codesourcery.com>
9812
9813 * target.h (target_insert_breakpoint): Remove "hardware" from its
9814 comments.
9815
9816 2014-03-07 Doug Evans <dje@google.com>
9817
9818 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9819
9820 2014-03-07 Doug Evans <dje@google.com>
9821
9822 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9823 Remove unused local comp_dir_attr. Assert exactly one of
9824 stub_comp_unit_die, stub_comp_dir is non-NULL.
9825
9826 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9827
9828 * target.h (complete_target_initialization, add_target):
9829 Add comment.
9830
9831 2014-03-07 Pedro Alves <palves@redhat.com>
9832
9833 * go32-nat.c: Include inf-child.h.
9834 (go32_ops): Delete global.
9835 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9836 Delete methods.
9837 (go32_create_inferior): Push the passed in target pointer instead
9838 of referencing go32_ops.
9839 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9840 (go32_target): New function, based on init_go32_ops, but inherit
9841 inf_child_target.
9842 (_initialize_go32_nat): Use go32_target. Move parts of
9843 init_go32_ops here.
9844
9845 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9846
9847 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9848 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9849 SYMBOL_VALUE_ADDRESS.
9850 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9851
9852 2014-03-06 Yao Qi <yao@codesourcery.com>
9853
9854 * breakpoint.c (get_tracepoint_by_number): Remove argument
9855 optional_p. All callers updated. Adjust comments. Update
9856 output message.
9857 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9858
9859 2014-03-06 Yao Qi <yao@codesourcery.com>
9860
9861 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9862 early if get_number returns zero. Use 'p' instead of 'args'.
9863
9864 2014-03-06 Yao Qi <yao@codesourcery.com>
9865
9866 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9867 message.
9868
9869 2014-03-06 Yao Qi <yao@codesourcery.com>
9870
9871 PR breakpoints/16508
9872 * tracepoint.c (check_trace_running): New function.
9873 (trace_find_command): Move code to check_trace_running and
9874 call check_trace_running.
9875 (trace_find_pc_command): Likewise.
9876 (trace_find_tracepoint_command): Likewise.
9877 (trace_find_line_command): Likewise.
9878 (trace_find_range_command): Likewise.
9879 * tracepoint.h (check_trace_running): Likewise.
9880 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9881
9882 2014-03-06 Yao Qi <yao@codesourcery.com>
9883
9884 * target.h (struct target_ops) <to_traceframe_info>: Use
9885 TARGET_DEFAULT_NORETURN (tcomplain ()).
9886 * target-delegates.c: Regenerated.
9887
9888 2014-03-05 Pedro Alves <palves@redhat.com>
9889
9890 PR gdb/16575
9891 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9892 void. Update comment.
9893 (dcache_xfer_memory): Delete.
9894 (dcache_read_memory_partial): New, based on the read bits of
9895 dcache_xfer_memory.
9896 (dcache_update): Add status parameter. Use ULONGEST for len, and
9897 adjust. Discard cache lines if the reason for the update was
9898 error.
9899 * dcache.h (dcache_xfer_memory): Delete declaration.
9900 (dcache_read_memory_partial): New declaration.
9901 (dcache_update): Update prototype.
9902 * target.c (raw_memory_xfer_partial): Update the dcache here.
9903 (memory_xfer_partial_1): Don't handle dcache writes here.
9904
9905 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9906
9907 * remote-sim.c (gdbsim_load): Add const to prog.
9908
9909 2014-03-03 Tom Tromey <tromey@redhat.com>
9910
9911 * elfread.c (probe_key): Change to bfd_data.
9912 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9913 now per-BFD, not per-objfile.
9914 * stap-probe.c (stap_probe_destroy): Update comment.
9915 (handle_stap_probe): Allocate on the per-BFD obstack.
9916
9917 2014-03-03 Tom Tromey <tromey@redhat.com>
9918
9919 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9920 * breakpoint.c (create_longjmp_master_breakpoint): Use
9921 get_probe_address.
9922 (add_location_to_breakpoint, bkpt_probe_insert_location)
9923 (bkpt_probe_remove_location): Update.
9924 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9925 * elfread.c (elf_symfile_relocate_probe): Remove.
9926 (elf_probe_fns): Update.
9927 (insert_exception_resume_breakpoint): Change type of "probe"
9928 parameter to bound_probe.
9929 (check_exception_resume): Update.
9930 * objfiles.c (objfile_relocate1): Don't relocate probes.
9931 * probe.c (bound_probe_s): New typedef.
9932 (parse_probes): Use get_probe_address. Set sal's objfile.
9933 (find_probe_by_pc): Return a bound_probe.
9934 (collect_probes): Return a VEC(bound_probe_s).
9935 (compare_probes): Update.
9936 (gen_ui_out_table_header_info): Change type of "probes"
9937 parameter. Update.
9938 (info_probes_for_ops): Update.
9939 (get_probe_address): New function.
9940 (probe_safe_evaluate_at_pc): Update.
9941 * probe.h (struct probe_ops) <get_probe_address>: New field.
9942 <set_semaphore, clear_semaphore>: Add objfile parameter.
9943 (struct probe) <objfile>: Remove field.
9944 <arch>: New field.
9945 <address>: Update comment.
9946 (struct bound_probe): New.
9947 (find_probe_by_pc): Return a bound_probe.
9948 (get_probe_address): Declare.
9949 * solib-svr4.c (struct probe_and_action) <address>: New field.
9950 (hash_probe_and_action, equal_probe_and_action): Update.
9951 (register_solib_event_probe): Add address parameter.
9952 (solib_event_probe_at): Update.
9953 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9954 get_probe_address.
9955 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9956 (stap_get_probe_address): New function.
9957 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9958 (compile_probe_arg): Update.
9959 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9960 address.
9961 (handle_stap_probe): Don't relocate the probe.
9962 (stap_relocate): Remove.
9963 (stap_gen_info_probes_table_values): Update.
9964 (stap_probe_ops): Remove stap_relocate.
9965 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9966 (debug_sym_probe_fns): Update.
9967 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9968 * symtab.c (init_sal): Use memset.
9969 * symtab.h (struct symtab_and_line) <objfile>: New field.
9970 * tracepoint.c (start_tracing, stop_tracing): Update.
9971
9972 2014-03-03 Tom Tromey <tromey@redhat.com>
9973
9974 * probe.h (parse_probes, find_probe_by_pc)
9975 (find_probes_in_objfile): Fix comments.
9976
9977 2014-03-02 Doug Evans <xdje42@gmail.com>
9978
9979 * infrun.c (handle_signal_stop): Replace test for
9980 TARGET_WAITKIND_STOPPED with an assert.
9981
9982 2014-03-02 Doug Evans <xdje42@gmail.com>
9983
9984 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9985
9986 2014-03-02 Doug Evans <xdje42@gmail.com>
9987
9988 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9989
9990 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9991
9992 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9993
9994 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9995
9996 * i386obsd-nat.c: Include "obsd-nat.h".
9997 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9998 add_target.
9999 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10000
10001 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10002
10003 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10004
10005 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10006
10007 * mips64obsd-nat.c: Include "obsd-nath".
10008 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10009 add_target
10010 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10011
10012 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10013
10014 * amd64obsd-nat.c: Include "obsd-nat,h.
10015 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10016 add_target.
10017 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10018
10019 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10020
10021 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10022 (find_overload_match): Update call to find_oload_champ.
10023 (find_oload_champ_namespace_loop): Likewise
10024
10025 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10026
10027 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10028
10029 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10030 * config/sparc/obsd64.mh: New file.
10031 * sparc64obsd-nat.c: New file.
10032
10033 * obsd-nat.h: New file.
10034 * obsd-nat.c: New file.
10035 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10036 (ALLDEPFILES): Add obsd-nat.c.
10037
10038 2014-02-28 Tom Tromey <tromey@redhat.com>
10039
10040 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10041 * cli-out.h (cli_ui_out_impl): Now const.
10042 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10043 * ui-out.c (struct ui_out) <impl>: Now const.
10044 (default_ui_out_impl): Now const.
10045 (ui_out_new): Make 'impl' parameter const.
10046 * ui-out.h (ui_out_new): Update.
10047
10048 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10049
10050 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10051
10052 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10053
10054 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10055
10056 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10057
10058 Additional PR 8882 fix.
10059 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10060
10061 2014-02-27 Pedro Alves <palves@redhat.com>
10062
10063 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10064 isn't set.
10065
10066 2014-02-27 Pedro Alves <palves@redhat.com>
10067
10068 PR 12702
10069 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10070 * nat/linux-waitpid.c: Include string.h.
10071 (status_to_str): Moved here and made extern.
10072 * nat/linux-waitpid.h (status_to_str): New declaration.
10073
10074 2014-02-27 Hui Zhu <hui@codesourcery.com>
10075
10076 PR 12702
10077 * infrun.c (ptid_match): Move ...
10078 * common/ptid.c (ptid_match): ... here.
10079 * inferior.h (ptid_match): Move ...
10080 * common/ptid.h (ptid_match): ... here.
10081
10082 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10083
10084 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10085 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10086 gdb_target_obs.
10087
10088 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10089
10090 * obsd-tdep.c (obsd_auxv_parse): New function.
10091 (obsd_init_abi): Set auxv_parse.
10092
10093 * gdbarch.sh (auxv_parse): New.
10094 * gdbarch.h: Regenerated.
10095 * gdbarch.c: Regenerated.
10096 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10097
10098 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10099
10100 * guile/scm-value.c (gdbscm_history_append_x): New function.
10101 (value_functions): Add it.
10102
10103 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10104
10105 * dwarf2read.c (attr_value_as_address): New function.
10106 (dwarf2_find_base_address, read_call_site_scope): Use
10107 attr_value_as_address in place of DW_ADDR.
10108 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10109 the low and high addresses. Slight rework of the handling
10110 of the high pc being a constant form, and limit it to
10111 DWARF verson 4 or higher.
10112 (dwarf2_record_block_ranges): Likewise.
10113 (read_partial_die): Likewise.
10114 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10115
10116 2014-02-26 Tom Tromey <tromey@redhat.com>
10117
10118 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10119
10120 2014-02-26 Tom Tromey <tromey@redhat.com>
10121
10122 * elfread.c (elf_read_minimal_symbols): Return early if
10123 minimal symbols have already been read. Add "ei" parameter.
10124 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10125 * minsyms.c (prim_record_minimal_symbol_full): Update.
10126 * objfiles.h (struct objstats) <n_minsyms>: Move...
10127 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10128 * symmisc.c (print_objfile_statistics): Update.
10129
10130 2014-02-26 Tom Tromey <tromey@redhat.com>
10131
10132 * elfread.c (elf_read_minimal_symbols): New function, from
10133 elf_symfile_read.
10134 (elf_symfile_read): Call it.
10135
10136 2014-02-26 Tom Tromey <tromey@redhat.com>
10137
10138 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10139 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10140 (lookup_minimal_symbol_solib_trampoline)
10141 (lookup_minimal_symbol_by_pc_section_1)
10142 (lookup_minimal_symbol_and_objfile): Update.
10143 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10144 Don't allocate a minimal symbol if minsyms have already been read.
10145 (build_minimal_symbol_hash_tables): Update.
10146 (install_minimal_symbols): Do nothing if minsyms already read.
10147 Use the per-BFD obstack.
10148 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10149 * objfiles.c (allocate_objfile): Call
10150 terminate_minimal_symbol_table later.
10151 (have_minimal_symbols): Update.
10152 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10153 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10154 Move from struct objfile.
10155 <minsyms_read>: New field.
10156 (struct objfile) <msymbols, minimal_symbol_count,
10157 msymbol_hash, msymbol_demangled_hash>: Move.
10158 (ALL_OBJFILE_MSYMBOLS): Update.
10159 * symfile.c (read_symbols): Set minsyms_read.
10160 (reread_symbols): Update.
10161 * symmisc.c (dump_objfile, dump_msymbols): Update.
10162
10163 2014-02-26 Tom Tromey <tromey@redhat.com>
10164
10165 * minsyms.c (msymbols_sort): Remove.
10166 * minsyms.h (msymbols_sort): Remove.
10167 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10168 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10169 * elfread.c (elf_symtab_read): Don't add section offsets.
10170 * xcoffread.c (record_minimal_symbol): Don't add section offset
10171 to minimal symbol address.
10172 * somread.c (text_offset, data_offset): Remove.
10173 (som_symtab_read): Don't add section offsets to minimal symbol
10174 addresses.
10175 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10176 Don't add section offsets to minimal symbols.
10177 * coffread.c (coff_symtab_read): Don't add section offsets
10178 to minimal symbol addresses.
10179 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10180 to minimal symbol addresses.
10181 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10182 section offset to minimal symbol addresses.
10183 * mdebugread.c (parse_partial_symbols): Don't add section
10184 offset to minimal symbol addresses.
10185 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10186 offset to minimal symbol addresses.
10187
10188 2014-02-26 Tom Tromey <tromey@redhat.com>
10189
10190 * ada-lang.c (ada_main_name): Update.
10191 (ada_add_standard_exceptions): Update.
10192 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10193 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10194 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10195 * auxv.c (ld_so_xfer_auxv): Update.
10196 * avr-tdep.c (avr_scan_prologue): Update.
10197 * ax-gdb.c (gen_var_ref): Update.
10198 * blockframe.c (get_pc_function_start)
10199 (find_pc_partial_function_gnu_ifunc): Update.
10200 * breakpoint.c (create_overlay_event_breakpoint)
10201 (create_longjmp_master_breakpoint)
10202 (create_std_terminate_master_breakpoint)
10203 (create_exception_master_breakpoint): Update.
10204 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10205 * c-valprint.c (c_val_print): Update.
10206 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10207 * common/agent.c (agent_look_up_symbols): Update.
10208 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10209 * dwarf2loc.c (call_site_to_target_addr): Update.
10210 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10211 * elfread.c (elf_gnu_ifunc_record_cache)
10212 (elf_gnu_ifunc_resolve_by_got): Update.
10213 * findvar.c (default_read_var_value): Update.
10214 * frame.c (inside_main_func): Update.
10215 * frv-tdep.c (frv_frame_this_id): Update.
10216 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10217 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10218 Update.
10219 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10220 (hppa_hpux_find_dummy_bpaddr): Update.
10221 * hppa-tdep.c (hppa_symbol_address): Update.
10222 * infcmd.c (until_next_command): Update.
10223 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10224 Update.
10225 * linespec.c (minsym_found, add_minsym): Update.
10226 * linux-nat.c (get_signo): Update.
10227 * linux-thread-db.c (inferior_has_bug): Update.
10228 * m32c-tdep.c (m32c_return_value)
10229 (m32c_m16c_address_to_pointer): Update.
10230 * m32r-tdep.c (m32r_frame_this_id): Update.
10231 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10232 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10233 * maint.c (maintenance_translate_address): Update.
10234 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10235 (frob_address): New function.
10236 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10237 frob_address. Rename parameter to "pc_in".
10238 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10239 addresses.
10240 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10241 Update.
10242 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10243 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10244 * objc-lang.c (find_objc_msgsend): Update.
10245 * objfiles.c (objfile_relocate1): Update.
10246 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10247 * p-valprint.c (pascal_val_print): Update.
10248 * parse.c (write_exp_msymbol): Update.
10249 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10250 (ppc_elfv2_skip_entrypoint): Update.
10251 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10252 * printcmd.c (build_address_symbolic, msym_info)
10253 (address_info): Update.
10254 * proc-service.c (ps_pglobal_lookup): Update.
10255 * psymtab.c (find_pc_sect_psymtab_closer)
10256 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10257 Change msymbol parameter to bound_minimal_symbol.
10258 * ravenscar-thread.c (get_running_thread_id): Update.
10259 * remote.c (remote_check_symbols): Update.
10260 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10261 address.
10262 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10263 * solib-dsbt.c (lm_base): Update.
10264 * solib-frv.c (lm_base, main_got): Update.
10265 * solib-irix.c (locate_base): Update.
10266 * solib-som.c (som_solib_create_inferior_hook)
10267 (link_map_start): Update.
10268 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10269 * solib-svr4.c (elf_locate_base, enable_break): Update.
10270 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10271 (flush_ea_cache): Update.
10272 * stabsread.c (define_symbol, scan_file_globals): Update.
10273 * stack.c (find_frame_funname): Update.
10274 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10275 (debug_qf_find_pc_sect_symtab): Update.
10276 * symfile.c (simple_read_overlay_table)
10277 (simple_overlay_update): Update.
10278 * symfile.h (struct quick_symbol_functions)
10279 <find_pc_sect_symtab>: Change type of msymbol to
10280 bound_minimal_symbol.
10281 * symmisc.c (dump_msymbols): Update.
10282 * symtab.c (find_pc_sect_symtab_via_partial)
10283 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10284 (search_symbols, print_msymbol_info): Update.
10285 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10286 (MSYMBOL_VALUE_ADDRESS): Redefine.
10287 (BMSYMBOL_VALUE_ADDRESS): New macro.
10288 * tracepoint.c (scope_info): Update.
10289 * tui/tui-disasm.c (tui_find_disassembly_address)
10290 (tui_get_begin_asm_address): Update.
10291 * valops.c (find_function_in_inferior): Update.
10292 * value.c (value_static_field, value_fn_field): Update.
10293
10294 2014-02-26 Tom Tromey <tromey@redhat.com>
10295
10296 * ada-lang.c (ada_update_initial_language): Update.
10297 (ada_main_name, ada_has_this_exception_support): Update.
10298 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10299 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10300 * arm-tdep.c (arm_skip_stub): Update.
10301 * auxv.c (ld_so_xfer_auxv): Update.
10302 * avr-tdep.c (avr_scan_prologue): Update.
10303 * ax-gdb.c (gen_var_ref): Update.
10304 * breakpoint.c (struct breakpoint_objfile_data)
10305 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10306 type to bound_minimal_symbol.
10307 (create_overlay_event_breakpoint)
10308 (create_longjmp_master_breakpoint)
10309 (create_std_terminate_master_breakpoint)
10310 (create_exception_master_breakpoint): Update.
10311 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10312 * c-exp.y (classify_name): Update.
10313 * coffread.c (coff_symfile_read): Update.
10314 * common/agent.c (agent_look_up_symbols): Update.
10315 * d-lang.c (d_main_name): Update.
10316 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10317 * dec-thread.c (enable_dec_thread): Update.
10318 * dwarf2loc.c (call_site_to_target_addr): Update.
10319 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10320 * eval.c (evaluate_subexp_standard): Update.
10321 * findvar.c (struct minsym_lookup_data) <result>: Change type
10322 to bound_minimal_symbol.
10323 <objfile>: Remove.
10324 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10325 * frame.c (inside_main_func): Update.
10326 * frv-tdep.c (frv_frame_this_id): Update.
10327 * gcore.c (call_target_sbrk): Update.
10328 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10329 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10330 Update.
10331 * go-lang.c (go_main_name): Update.
10332 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10333 (hppa_hpux_find_import_stub_for_addr): Update.
10334 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10335 Update. Change return type.
10336 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10337 type.
10338 * jit.c (jit_breakpoint_re_set_internal): Update.
10339 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10340 Update.
10341 * linux-nat.c (get_signo): Update.
10342 * linux-thread-db.c (inferior_has_bug): Update
10343 * m32c-tdep.c (m32c_return_value)
10344 (m32c_m16c_address_to_pointer): Update.
10345 * m32r-tdep.c (m32r_frame_this_id): Update.
10346 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10347 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10348 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10349 lookup_minimal_symbol. Change return type.
10350 (lookup_minimal_symbol): Remove.
10351 (lookup_bound_minimal_symbol): Update.
10352 (lookup_minimal_symbol_text): Change return type.
10353 (lookup_minimal_symbol_solib_trampoline): Change return type.
10354 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10355 (lookup_minimal_symbol_solib_trampoline): Change return type.
10356 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10357 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10358 (value_nsstring, find_imps): Update.
10359 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10360 * p-lang.c (pascal_main_name): Update.
10361 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10362 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10363 * proc-service.c (ps_pglobal_lookup): Update.
10364 * ravenscar-thread.c (get_running_thread_msymbol): Change
10365 return type.
10366 (has_ravenscar_runtime, get_running_thread_id): Update.
10367 * remote.c (remote_check_symbols): Update.
10368 * sol-thread.c (ps_pglobal_lookup): Update.
10369 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10370 * solib-dsbt.c (lm_base): Update.
10371 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10372 Update.
10373 * solib-irix.c (locate_base): Update.
10374 * solib-som.c (som_solib_create_inferior_hook)
10375 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10376 Update.
10377 * solib-spu.c (spu_enable_break): Update.
10378 * solib-svr4.c (elf_locate_base, enable_break): Update.
10379 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10380 (flush_ea_cache): Update.
10381 * stabsread.c (define_symbol): Update.
10382 * symfile.c (simple_read_overlay_table): Update.
10383 * symtab.c (find_pc_sect_line): Update.
10384 * tracepoint.c (scope_info): Update.
10385 * tui-disasm.c (tui_get_begin_asm_address): Update.
10386 * value.c (value_static_field): Update.
10387
10388 2014-02-26 Tom Tromey <tromey@redhat.com>
10389
10390 * minsyms.c (prim_record_minimal_symbol_full): Use
10391 SET_MSYMBOL_VALUE_ADDRESS.
10392 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10393 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10394 SET_MSYMBOL_VALUE_ADDRESS.
10395 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10396 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10397
10398 2014-02-26 Tom Tromey <tromey@redhat.com>
10399
10400 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10401 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10402 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10403 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10404 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10405 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10406 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10407 * ada-lang.c (ada_main_name): Update.
10408 (ada_lookup_simple_minsym): Update.
10409 (ada_make_symbol_completion_list): Update.
10410 (ada_add_standard_exceptions): Update.
10411 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10412 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10413 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10414 * arm-tdep.c (skip_prologue_function): Update.
10415 (arm_skip_stack_protector, arm_skip_stub): Update.
10416 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10417 (arm_wince_skip_main_prologue): Update.
10418 * auxv.c (ld_so_xfer_auxv): Update.
10419 * avr-tdep.c (avr_scan_prologue): Update.
10420 * ax-gdb.c (gen_var_ref): Update.
10421 * block.c (call_site_for_pc): Update.
10422 * blockframe.c (get_pc_function_start): Update.
10423 (find_pc_partial_function_gnu_ifunc): Update.
10424 * breakpoint.c (create_overlay_event_breakpoint): Update.
10425 (create_longjmp_master_breakpoint): Update.
10426 (create_std_terminate_master_breakpoint): Update.
10427 (create_exception_master_breakpoint): Update.
10428 (resolve_sal_pc): Update.
10429 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10430 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10431 Update.
10432 * c-valprint.c (c_val_print): Update.
10433 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10434 * coffread.c (coff_symfile_read): Update.
10435 * common/agent.c (agent_look_up_symbols): Update.
10436 * dbxread.c (find_stab_function_addr): Update.
10437 (end_psymtab): Update.
10438 * dwarf2loc.c (call_site_to_target_addr): Update.
10439 (func_verify_no_selftailcall): Update.
10440 (tailcall_dump): Update.
10441 (call_site_find_chain_1): Update.
10442 (dwarf_expr_reg_to_entry_parameter): Update.
10443 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10444 (elf_gnu_ifunc_resolve_by_got): Update.
10445 * f-valprint.c (info_common_command): Update.
10446 * findvar.c (read_var_value): Update.
10447 * frame.c (get_prev_frame_1): Update.
10448 (inside_main_func): Update.
10449 * frv-tdep.c (frv_skip_main_prologue): Update.
10450 (frv_frame_this_id): Update.
10451 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10452 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10453 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10454 (gnuv3_skip_trampoline): Update.
10455 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10456 (hppa64_hpux_in_solib_call_trampoline): Update.
10457 (hppa_hpux_skip_trampoline_code): Update.
10458 (hppa64_hpux_search_dummy_call_sequence): Update.
10459 (hppa_hpux_find_import_stub_for_addr): Update.
10460 (hppa_hpux_find_dummy_bpaddr): Update.
10461 * hppa-tdep.c (hppa_symbol_address)
10462 (hppa_lookup_stub_minimal_symbol): Update.
10463 * i386-tdep.c (i386_skip_main_prologue): Update.
10464 (i386_pe_skip_trampoline_code): Update.
10465 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10466 * infcall.c (get_function_name): Update.
10467 * infcmd.c (until_next_command): Update.
10468 * jit.c (jit_breakpoint_re_set_internal): Update.
10469 (jit_inferior_init): Update.
10470 * linespec.c (minsym_found): Update.
10471 (add_minsym): Update.
10472 * linux-fork.c (info_checkpoints_command): Update.
10473 * linux-nat.c (get_signo): Update.
10474 * linux-thread-db.c (inferior_has_bug): Update.
10475 * m32c-tdep.c (m32c_return_value): Update.
10476 (m32c_m16c_address_to_pointer): Update.
10477 (m32c_m16c_pointer_to_address): Update.
10478 * m32r-tdep.c (m32r_frame_this_id): Update.
10479 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10480 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10481 * maint.c (maintenance_translate_address): Update.
10482 * minsyms.c (add_minsym_to_hash_table): Update.
10483 (add_minsym_to_demangled_hash_table): Update.
10484 (msymbol_objfile): Update.
10485 (lookup_minimal_symbol): Update.
10486 (iterate_over_minimal_symbols): Update.
10487 (lookup_minimal_symbol_text): Update.
10488 (lookup_minimal_symbol_by_pc_name): Update.
10489 (lookup_minimal_symbol_solib_trampoline): Update.
10490 (lookup_minimal_symbol_by_pc_section_1): Update.
10491 (lookup_minimal_symbol_and_objfile): Update.
10492 (prim_record_minimal_symbol_full): Update.
10493 (compare_minimal_symbols): Update.
10494 (compact_minimal_symbols): Update.
10495 (build_minimal_symbol_hash_tables): Update.
10496 (install_minimal_symbols): Update.
10497 (terminate_minimal_symbol_table): Update.
10498 (find_solib_trampoline_target): Update.
10499 (minimal_symbol_upper_bound): Update.
10500 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10501 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10502 (mips_skip_pic_trampoline_code): Update.
10503 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10504 * objc-lang.c (selectors_info): Update.
10505 (classes_info): Update.
10506 (find_methods): Update.
10507 (find_imps): Update.
10508 (find_objc_msgsend): Update.
10509 * objfiles.c (objfile_relocate1): Update.
10510 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10511 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10512 * p-valprint.c (pascal_val_print): Update.
10513 * parse.c (write_exp_msymbol): Update.
10514 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10515 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10516 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10517 * printcmd.c (build_address_symbolic): Update.
10518 (sym_info): Update.
10519 (address_info): Update.
10520 * proc-service.c (ps_pglobal_lookup): Update.
10521 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10522 (find_pc_sect_psymtab): Update.
10523 * python/py-framefilter.c (py_print_frame): Update.
10524 * ravenscar-thread.c (get_running_thread_id): Update.
10525 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10526 Update.
10527 * remote.c (remote_check_symbols): Update.
10528 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10529 (rs6000_skip_trampoline_code): Update.
10530 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10531 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10532 * solib-dsbt.c (lm_base): Update.
10533 * solib-frv.c (lm_base): Update.
10534 (main_got): Update.
10535 * solib-irix.c (locate_base): Update.
10536 * solib-som.c (som_solib_create_inferior_hook): Update.
10537 (som_solib_desire_dynamic_linker_symbols): Update.
10538 (link_map_start): Update.
10539 * solib-spu.c (spu_enable_break): Update.
10540 (ocl_enable_break): Update.
10541 * solib-svr4.c (elf_locate_base): Update.
10542 (enable_break): Update.
10543 * spu-tdep.c (spu_get_overlay_table): Update.
10544 (spu_catch_start): Update.
10545 (flush_ea_cache): Update.
10546 * stabsread.c (define_symbol): Update.
10547 (scan_file_globals): Update.
10548 * stack.c (find_frame_funname): Update.
10549 (frame_info): Update.
10550 * symfile.c (simple_read_overlay_table): Update.
10551 (simple_overlay_update): Update.
10552 * symmisc.c (dump_msymbols): Update.
10553 * symtab.c (fixup_section): Update.
10554 (find_pc_sect_line): Update.
10555 (skip_prologue_sal): Update.
10556 (search_symbols): Update.
10557 (print_msymbol_info): Update.
10558 (rbreak_command): Update.
10559 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10560 (completion_list_objc_symbol): Update.
10561 (default_make_symbol_completion_list_break_on): Update.
10562 * tracepoint.c (scope_info): Update.
10563 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10564 (tui_get_begin_asm_address): Update.
10565 * valops.c (find_function_in_inferior): Update.
10566 * value.c (value_static_field): Update.
10567 (value_fn_field): Update.
10568
10569 2014-02-26 Tom Tromey <tromey@redhat.com>
10570
10571 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10572 bound minimal symbols. Move code that knows about minsym
10573 table layout...
10574 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10575 function.
10576 * minsyms.h (minimal_symbol_upper_bound): Declare.
10577 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10578 minimal_symbol_upper_bound.
10579
10580 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10581
10582 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10583 Use the type's name if its basic type does not have a tag.
10584
10585 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10586
10587 * dwarf2read.c (read_subrange_type): Add comment.
10588
10589 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10590
10591 * dwarf2read.c (update_enumeration_type_from_children): New
10592 function, mostly extracted from process_structure_scope.
10593 (read_enumeration_type): Call update_enumeration_type_from_children.
10594 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10595 and flag_flag_enum fields.
10596
10597 2014-02-26 Pedro Alves <palves@redhat.com>
10598
10599 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10600 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10601 to_xfer_partial method.
10602
10603 2014-02-26 Pedro Alves <palves@redhat.com>
10604
10605 * target.c (complete_target_initialization): Don't install
10606 default_xfer_partial as to_xfer_partial hook.
10607 (nomemory): Delete.
10608 (update_current_target): Don't INHERIT nor de_fault
10609 deprecated_xfer_memory. Delete de_fault macro.
10610 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10611 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10612 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10613 field.
10614
10615 2014-02-26 Pedro Alves <palves@redhat.com>
10616
10617 * go32-nat.c (my_write_child): New function.
10618 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10619 (go32_xfer_partial): New function.
10620 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10621 Instead install a to_xfer_partial hook.
10622
10623 2014-02-26 Pedro Alves <palves@redhat.com>
10624
10625 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10626 to_xfer_partial helper. Rewrite.
10627 (procfs_xfer_partial): New function.
10628 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10629 Install a to_xfer_partial hook.
10630
10631 2014-02-26 Pedro Alves <palves@redhat.com>
10632
10633 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10634 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10635 (m32r_xfer_partial): New function.
10636 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10637 Install a to_xfer_partial hook.
10638
10639 2014-02-26 Pedro Alves <palves@redhat.com>
10640
10641 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10642 helper.
10643 (mips_xfer_partial): New function.
10644 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10645 hook. Install a to_xfer_partial hook.
10646
10647 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10648
10649 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10650 * gdbtypes.c (create_array_type_with_stride): New function,
10651 renaming create_array_type, but with an added parameter
10652 called "bit_stride".
10653 (create_array_type): Re-implement using
10654 create_array_type_with_stride.
10655 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10656 and DW_AT_bit_stride attributes.
10657
10658 2014-02-26 Pedro Alves <palves@redhat.com>
10659
10660 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10661 task-specific breakpoints.
10662
10663 2014-02-25 Pedro Alves <palves@redhat.com>
10664
10665 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10666 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10667
10668 2014-02-25 Stan Shebs <stan@codesourcery.com>
10669
10670 * defs.h: Annotate comments for Doxygen.
10671
10672 2014-02-25 Tom Tromey <tromey@redhat.com>
10673
10674 * target.h (target_ignore): Don't declare.
10675 * target.c (target_ignore): Remove.
10676
10677 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10678
10679 PR gdb/16626
10680 * auto-load.c (auto_load_objfile_script_1): Change filename to
10681 debugfile.
10682
10683 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10684
10685 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10686 documentation. Adjust prototype to match the target_ops
10687 to_xfer_partial method. Adjust implementation accordingly.
10688
10689 2014-02-25 Hui Zhu <hui@codesourcery.com>
10690
10691 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10692 to_traceframe_info.
10693
10694 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10695
10696 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10697 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10698 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10699 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10700 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10701 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10702 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10703 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10704 New constants.
10705 (rl78_register_type): Use a data pointer type for SP and
10706 new pseudo registers mentioned above. Use a 16 bit integer
10707 type for all other register pairs.
10708 (rl78_register_name, rl78_g10_register_name): Update for
10709 new pseudo registers.
10710 (rl78_pseudo_register_read): Likewise.
10711 (rl78_pseudo_register_write): Likewise.
10712 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10713 to the newly added pseudo registers.
10714
10715 2014-02-24 Doug Evans <dje@google.com>
10716
10717 * value.c (record_latest_value): Fix comment.
10718 * printcmd.c (print_command_1): Remove code to handle -1 return from
10719 record_latest_value.
10720
10721 2014-02-24 Pedro Alves <palves@redhat.com>
10722
10723 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10724 deprecated_xfer_memory hook.
10725 (procfs_xfer_partial): Call procfs_xfer_memory instead
10726 of the deprecated_xfer_memory target hook.
10727 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10728 helper.
10729
10730 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10731
10732 * windows-nat.c (windows_xfer_shared_libraries): Return
10733 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10734 requested object is TARGET_OBJECT_LIBRARIES.
10735
10736 2014-02-24 Yao Qi <yao@codesourcery.com>
10737
10738 * target.h (enum target_xfer_status)
10739 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10740 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10741 explicitly. New.
10742 * corefile.c (memory_error_message): User updated.
10743 * exec.c (section_table_read_available_memory): Likewise.
10744 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10745 * target.c (target_xfer_status_to_string): Likewise.
10746 (raw_memory_xfer_partial): Likewise.
10747 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10748 * valops.c (read_value_memory): Likewise.
10749 * exec.h: Update comments.
10750
10751 2014-02-24 Yao Qi <yao@codesourcery.com>
10752
10753 * target.c (target_xfer_status_to_string): Rename argument err
10754 to status.
10755 * target.h (target_xfer_status_to_string): Update declaration.
10756 Replace target_xfer_error_to_string with
10757 target_xfer_status_to_string in comment.
10758
10759 2014-02-24 Yao Qi <yao@codesourcery.com>
10760
10761 * mips-linux-nat.c (super_close): Update its type.
10762 (mips_linux_close): Pass 'self' to super_close.
10763
10764 2014-02-24 Yao Qi <yao@codesourcery.com>
10765
10766 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10767 * corefile.c (read_memory): Adjusted.
10768 * target.c (target_write_with_progress): Adjusted.
10769
10770 2014-02-23 Yao Qi <yao@codesourcery.com>
10771
10772 Revert two patches:
10773
10774 2013-10-25 Yao Qi <yao@codesourcery.com>
10775
10776 * remote.c (remote_traceframe_info): Return early if
10777 traceframe is not selected.
10778
10779 2013-07-19 Yao Qi <yao@codesourcery.com>
10780
10781 * target.c (update_current_target): Change the default action
10782 of 'to_traceframe_info' from tcomplain to return_zero.
10783 * target.h (struct target_ops) <to_traceframe_info>: Add more
10784 comments.
10785
10786 2014-02-23 Yao Qi <yao@codesourcery.com>
10787
10788 * valops.c (read_value_memory): Rewrite it. Call
10789 target_xfer_partial in a loop.
10790 * exec.h (section_table_available_memory): Remove declaration.
10791 Move comments to ...
10792 * exec.c (section_table_available_memory): ... here. Make it
10793 static.
10794
10795 2014-02-23 Yao Qi <yao@codesourcery.com>
10796
10797 * exec.c (section_table_read_available_memory): New function.
10798 * exec.h (section_table_read_available_memory): Declare.
10799 * ctf.c (ctf_xfer_partial): Call
10800 section_table_read_available_memory.
10801 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10802
10803 2014-02-23 Yao Qi <yao@codesourcery.com>
10804
10805 * ctf.c (ctf_xfer_partial): Move code to ...
10806 * exec.c (exec_read_partial_read_only): ... it. New function.
10807 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10808 * tracefile.c: Include "exec.h".
10809 * exec.h (exec_read_partial_read_only): Declare.
10810
10811 2014-02-23 Yao Qi <yao@codesourcery.com>
10812
10813 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10814 (tfile_has_memory): Remove.
10815 (init_tfile_ops): Don't set fields to_has_all_memory and
10816 to_has_memory of tfile_ops.
10817 * tracefile.c (tracefile_has_all_memory): New function.
10818 (tracefile_has_memory): New function.
10819 (init_tracefile_ops): Initialize fields to_has_all_memory and
10820 to_has_memory of 'ops'.
10821
10822 2014-02-23 Yao Qi <yao@codesourcery.com>
10823
10824 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10825 (ctf_thread_alive, ctf_get_trace_status): Remove.
10826 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10827 init_tracefile_ops.
10828 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10829 (tfile_has_stack, tfile_has_registers): Remove.
10830 (tfile_thread_alive): Remove.
10831 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10832 init_tracefile_ops.
10833 * tracefile.c (tracefile_has_stack): New function.
10834 (tracefile_has_registers): New function.
10835 (tracefile_thread_alive): New function.
10836 (tracefile_get_trace_status): New function.
10837 (init_tracefile_ops): New function.
10838 * tracefile.h (init_tracefile_ops): Declare.
10839
10840 2014-02-23 Yao Qi <yao@codesourcery.com>
10841
10842 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10843 (O_LARGEFILE): Likewise.
10844 (tfile_ops): Likewise.
10845 (TRACE_HEADER_SIZE): Likewise.
10846 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10847 (cur_data_size): Likewise.
10848 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10849 (tfile_close, tfile_files_info): Likewise.
10850 (tfile_get_trace_status): Likewise.
10851 (tfile_get_tracepoint_status): Likewise.
10852 (tfile_get_traceframe_address): Likewise.
10853 (tfile_trace_find, match_blocktype): Likewise.
10854 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10855 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10856 (tfile_get_trace_state_variable_value): Likewise.
10857 (tfile_has_all_memory, tfile_has_memory): Likewise.
10858 (tfile_has_stack, tfile_has_registers): Likewise.
10859 (tfile_thread_alive, build_traceframe_info): Likewise.
10860 (tfile_traceframe_info, init_tfile_ops): Likewise.
10861 (_initialize_tracepoint): Don't call init_tfile_ops
10862 and add_target_with_completer.
10863 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10864 exec.h, completer.h and filenames.h.
10865 (_initialize_tracefile_tfile): New function.
10866
10867 2014-02-23 Yao Qi <yao@codesourcery.com>
10868
10869 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10870 tracefile-tfile.o.
10871 (HFILES_NO_SRCDIR): Add tracefile.h.
10872 * ctf.c: Include "tracefile.h".
10873 * tracefile.h: New file.
10874 * tracefile.c: New file
10875 * tracefile-tfile.c: New file.
10876 * tracepoint.c: Include "tracefile.h".
10877 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10878 (stop_reason_names): Add const.
10879 (trace_file_writer_xfree): Move it to tracefile.c.
10880 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10881 (trace_save_ctf): Likewise.
10882 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10883 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10884 (tfile_write_header, tfile_write_regblock_type): Likewise.
10885 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10886 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10887 (tfile_write_raw_data, tfile_end): Likewise.
10888 (tfile_trace_file_writer_new): Likewise.
10889 (free_uploaded_tp): Make it extern.
10890 (free_uploaded_tsv): Make it extern.
10891 (_initialize_tracepoint): Move code to register command 'tsave'
10892 to tracefile.c.
10893 * tracepoint.h (stop_reason_names): Declare.
10894 (struct trace_frame_write_ops): Move it to tracefile.h.
10895 (struct trace_file_write_ops): Likewise.
10896 (struct trace_file_writer): Likewise.
10897 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10898
10899 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10900
10901 PR gdb/16594
10902 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10903 process name.
10904 (get_cores_used_by_process): New parameter num_cores, use it.
10905 (linux_xfer_osdata_processes): Pass num_cores to it.
10906 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10907 process name.
10908
10909 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10910
10911 * target.c (memory_xfer_partial): Fix length arg in call to
10912 breakpoint_xfer_memory.
10913
10914 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10915
10916 PR tdep/16397
10917 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10918 number comes after the + or - signs. Adjust length of register
10919 name to be extracted.
10920
10921 2014-02-20 Tom Tromey <tromey@redhat.com>
10922
10923 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10924 (ada_varobj_ops): Mark "extern".
10925
10926 2014-02-20 Tom Tromey <tromey@redhat.com>
10927
10928 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10929
10930 2014-02-20 Doug Evans <xdje42@gmail.com>
10931
10932 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10933 All callers updated.
10934 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10935 All callers updated.
10936 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10937 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10938
10939 2014-02-20 lin zuojian <manjian2006@gmail.com>
10940 Joel Brobecker <brobecker@adacore.com>
10941 Doug Evans <xdje42@gmail.com>
10942
10943 PR symtab/16581
10944 * dwarf2read.c (struct die_info): New member in_process.
10945 (reset_die_in_process): New function.
10946 (process_die): Set it at the start, reset when returning.
10947 (inherit_abstract_dies): Only call process_die if origin_child_die
10948 not already being processed.
10949
10950 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10951
10952 * windows-nat.c (handle_unload_dll): Add function documentation.
10953 (do_initial_windows_stuff): Add comment explaining why we wait
10954 until after inferior initialization has finished before
10955 processing all DLLs.
10956
10957 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10958
10959 * windows-nat.c (get_module_name): Delete.
10960 (windows_get_exec_module_filename): New function, mostly
10961 inspired from get_module_name.
10962 (windows_pid_to_exec_file): Replace call to get_module_name
10963 by call to windows_get_exec_module_filename.
10964
10965 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10966
10967 * windows-nat.c (handle_load_dll): Rewrite this function's
10968 introductory comment. Remove code using get_module_name
10969 to get the DLL's name.
10970
10971 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10972
10973 * windows-nat.c (get_windows_debug_event): Ignore
10974 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10975 if windows_initialization_done == 0.
10976 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10977 Adjust implementation to always load all DLLs.
10978 (do_initial_windows_stuff): Replace call to
10979 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10980
10981 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10982
10983 * windows-nat.c (_initialize_windows_nat): Deprecate the
10984 "dll-symbols" command. Turn the "add-shared-symbol-files"
10985 and "assf" aliases into commands, and deprecate them as well.
10986 * NEWS: Add entry explaining that "dll-symbols" and its two
10987 aliases are now deprecated.
10988
10989 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10990
10991 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10992 new-line in debug string. Remove trailing spaces.
10993
10994 2014-02-19 Stan Shebs <stan@codesourcery.com>
10995
10996 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10997
10998 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10999
11000 * NEWS: Add entry for the new feature
11001 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11002 and class values.
11003
11004 2014-02-19 Stan Shebs <stan@codesourcery.com>
11005
11006 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11007
11008 2014-02-19 Pedro Alves <palves@redhat.com>
11009
11010 * common/ptid.h (struct ptid): Mention that process_stratum
11011 targets should prefer ptid.lwp.
11012
11013 2014-02-19 Pedro Alves <palves@redhat.com>
11014
11015 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11016 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11017 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11018 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11019 store remote thread ids rather than ptid.tid.
11020 (_initialize_remote): Adjust.
11021
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target.c (target_get_unwinder): Rewrite.
11025 (target_get_tailcall_unwinder): Rewrite.
11026 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11027 (record_btrace_to_get_tailcall_unwinder): New function.
11028 (init_record_btrace_ops): Update.
11029 * target.h (struct target_ops) <to_get_unwinder,
11030 to_get_tailcall_unwinder>: Now function pointers. Use
11031 TARGET_DEFAULT_RETURN.
11032
11033 2014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11036 argument.
11037 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11038
11039 2014-02-19 Tom Tromey <tromey@redhat.com>
11040
11041 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11042 directly.
11043 * target-delegates.c: Rebuild.
11044 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11045 TARGET_DEFAULT_FUNC.
11046 * target.c (default_target_decr_pc_after_break): Rename from
11047 forward_target_decr_pc_after_break. Simplify.
11048 (target_decr_pc_after_break): Rely on delegation.
11049
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11051
11052 * target.c (update_current_target): Do not INHERIT to_doc or
11053 to_magic. Do not de_fault to_open or to_close.
11054
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * gcore.h (objfile_find_memory_regions): Declare.
11058 * gcore.c (objfile_find_memory_regions): No longer static. Add
11059 "self" argument.
11060 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11061 * exec.c: Include gcore.h.
11062 (exec_set_find_memory_regions): Remove.
11063 (exec_find_memory_regions): Remove.
11064 (exec_do_find_memory_regions): Remove.
11065 (init_exec_ops): Update.
11066 * defs.h (exec_set_find_memory_regions): Remove.
11067
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11069
11070 * target-delegates.c: Rebuild.
11071 * target.h (struct target_ops) <to_extra_thread_info,
11072 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11073 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11074 not 0, in TARGET_DEFAULT_RETURN.
11075
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * target.c (complete_target_initialization): Remove casts. Use
11079 return_zero_has_execution.
11080 (return_zero): Add "ignore" argument.
11081 (return_zero_has_execution): New function.
11082 (init_dummy_target): Remove casts. Use
11083 return_zero_has_execution.
11084
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11086
11087 * target.c (update_current_target): Update comments. Do not
11088 INHERIT to_stratum.
11089
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11091
11092 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11093 needed.
11094 * corelow.c (core_read_description): Delegate when needed.
11095 * remote.c (remote_read_description): Delegate when needed.
11096 * target-delegates.c: Rebuild.
11097 * target.c (target_read_description): Rewrite.
11098 * target.h (struct target_ops) <to_read_description>: Update
11099 comment. Use TARGET_DEFAULT_RETURN.
11100
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target-delegates.c: Rebuild.
11104 * target.c (update_current_target): Don't inherit or default
11105 to_can_run.
11106 (find_default_run_target): Check against delegate_can_run.
11107 * target.h (struct target_ops) <to_can_run>: Use
11108 TARGET_DEFAULT_RETURN.
11109
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11111
11112 * target-delegates.c: Rebuild.
11113 * target.c (target_disconnect): Unconditionally delegate.
11114 * target.h (struct target_ops) <to_disconnect>: Use
11115 TARGET_DEFAULT_NORETURN.
11116
11117 2014-02-19 Tom Tromey <tromey@redhat.com>
11118
11119 * record.c (record_stop): Unconditionally delegate.
11120 * target-delegates.c: Rebuild.
11121 * target.c (target_stop_recording): Unconditionally delegate.
11122 * target.h (struct target_ops) <to_stop_recording>: Use
11123 TARGET_DEFAULT_IGNORE.
11124
11125 2014-02-19 Tom Tromey <tromey@redhat.com>
11126
11127 * target-delegates.c: Rebuild.
11128 * target.c (target_enable_btrace): Unconditionally delegate.
11129 * target.h (struct target_ops) <to_enable_btrace>: Use
11130 TARGET_DEFAULT_NORETURN.
11131
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11133
11134 * target-delegates.c: Rebuild.
11135 * target.c (target_read_btrace): Unconditionally delegate.
11136 * target.h (struct target_ops) <to_read_btrace>: Use
11137 TARGET_DEFAULT_NORETURN.
11138
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target-delegates.c: Rebuild.
11142 * target.c (target_teardown_btrace): Unconditionally delegate.
11143 * target.h (struct target_ops) <to_teardown_btrace>: Use
11144 TARGET_DEFAULT_NORETURN.
11145
11146 2014-02-19 Tom Tromey <tromey@redhat.com>
11147
11148 * target-delegates.c: Rebuild.
11149 * target.c (target_disable_btrace): Unconditionally delegate.
11150 * target.h (struct target_ops) <to_disable_btrace>: Use
11151 TARGET_DEFAULT_NORETURN.
11152
11153 2014-02-19 Tom Tromey <tromey@redhat.com>
11154
11155 * target-delegates.c: Rebuild.
11156 * target.c (default_search_memory): New function.
11157 (simple_search_memory): Update comment.
11158 (target_search_memory): Unconditionally delegate.
11159 * target.h (struct target_ops) <to_search_memory>: Use
11160 TARGET_DEFAULT_FUNC.
11161
11162 2014-02-19 Tom Tromey <tromey@redhat.com>
11163
11164 * auxv.c (default_auxv_parse): No longer static.
11165 (target_auxv_parse): Unconditionally delegate.
11166 * auxv.h (default_auxv_parse): Declare.
11167 * target-delegates.c: Rebuild.
11168 * target.c: Include auxv.h.
11169 * target.h (struct target_ops) <to_auxv_parse>: Use
11170 TARGET_DEFAULT_FUNC.
11171
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target-delegates.c: Rebuild.
11175 * target.c (target_memory_map): Unconditionally delegate.
11176 * target.h (struct target_ops) <to_memory_map>: Use
11177 TARGET_DEFAULT_RETURN.
11178
11179 2014-02-19 Tom Tromey <tromey@redhat.com>
11180
11181 * target-delegates.c: Rebuild.
11182 * target.c (target_thread_alive): Unconditionally delegate.
11183 * target.h (struct target_ops) <to_thread_alive>: Use
11184 TARGET_DEFAULT_RETURN.
11185
11186 2014-02-19 Tom Tromey <tromey@redhat.com>
11187
11188 * target-delegates.c: Rebuild.
11189 * target.c (target_save_record): Unconditionally delegate.
11190 * target.h (struct target_ops) <to_save_record>: Use
11191 TARGET_DEFAULT_NORETURN.
11192
11193 2014-02-19 Tom Tromey <tromey@redhat.com>
11194
11195 * target-delegates.c: Rebuild.
11196 * target.c (target_delete_record): Unconditionally delegate.
11197 * target.h (struct target_ops) <to_delete_record>: Use
11198 TARGET_DEFAULT_NORETURN.
11199
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11201
11202 * target-delegates.c: Rebuild.
11203 * target.c (target_record_is_replaying): Unconditionally
11204 delegate.
11205 * target.h (struct target_ops) <to_record_is_replaying>: Use
11206 TARGET_DEFAULT_RETURN.
11207
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target-delegates.c: Rebuild.
11211 * target.c (target_goto_record_begin): Unconditionally delegate.
11212 * target.h (struct target_ops) <to_goto_record_begin>: Use
11213 TARGET_DEFAULT_NORETURN.
11214
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11216
11217 * target-delegates.c: Rebuild.
11218 * target.c (target_goto_record_end): Unconditionally delegate.
11219 * target.h (struct target_ops) <to_goto_record_end>: Use
11220 TARGET_DEFAULT_NORETURN.
11221
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target-delegates.c: Rebuild.
11225 * target.c (target_goto_record): Unconditionally delegate.
11226 * target.h (struct target_ops) <to_goto_record>: Use
11227 TARGET_DEFAULT_NORETURN.
11228
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11230
11231 * target-delegates.c: Rebuild.
11232 * target.c (target_insn_history): Unconditionally delegate.
11233 * target.h (struct target_ops) <to_insn_history>: Use
11234 TARGET_DEFAULT_NORETURN.
11235
11236 2014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target-delegates.c: Rebuild.
11239 * target.c (target_insn_history_from): Unconditionally delegate.
11240 * target.h (struct target_ops) <to_insn_history_from>: Use
11241 TARGET_DEFAULT_NORETURN.
11242
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target-delegates.c: Rebuild.
11246 * target.c (target_insn_history_range): Unconditionally delegate.
11247 * target.h (struct target_ops) <to_insn_history_range>: Use
11248 TARGET_DEFAULT_NORETURN.
11249
11250 2014-02-19 Tom Tromey <tromey@redhat.com>
11251
11252 * target-delegates.c: Rebuild.
11253 * target.c (target_call_history): Unconditionally delegate.
11254 * target.h (struct target_ops) <to_call_history>: Use
11255 TARGET_DEFAULT_NORETURN.
11256
11257 2014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target-delegates.c: Rebuild.
11260 * target.c (target_call_history_from): Unconditionally delegate.
11261 * target.h (struct target_ops) <to_call_history_from>: Use
11262 TARGET_DEFAULT_NORETURN.
11263
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target-delegates.c: Rebuild.
11267 * target.c (target_call_history_range): Unconditionally delegate.
11268 * target.h (struct target_ops) <to_call_history_range>: Use
11269 TARGET_DEFAULT_NORETURN.
11270
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target-delegates.c: Rebuild.
11274 * target.c (target_verify_memory): Unconditionally delegate.
11275 * target.h (struct target_ops) <to_verify_memory>: Use
11276 TARGET_DEFAULT_NORETURN.
11277
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11279
11280 * target-delegates.c: Rebuild.
11281 * target.c (target_core_of_thread): Unconditionally delegate.
11282 * target.h (struct target_ops) <to_core_of_thread>: Use
11283 TARGET_DEFAULT_RETURN.
11284
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11286
11287 * target-delegates.c: Rebuild.
11288 * target.c (target_flash_done): Unconditionally delegate.
11289 * target.h (struct target_ops) <to_flash_done>: Use
11290 TARGET_DEFAULT_NORETURN.
11291
11292 2014-02-19 Tom Tromey <tromey@redhat.com>
11293
11294 * target-delegates.c: Rebuild.
11295 * target.c (target_flash_erase): Unconditionally delegate.
11296 * target.h (struct target_ops) <to_flash_erase>: Use
11297 TARGET_DEFAULT_NORETURN.
11298
11299 2014-02-19 Tom Tromey <tromey@redhat.com>
11300
11301 * target-delegates.c: Rebuild.
11302 * target.c (target_get_section_table): Unconditionally delegate.
11303 * target.h (struct target_ops) <to_get_section_table>: Use
11304 TARGET_DEFAULT_RETURN.
11305
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target-delegates.c: Rebuild.
11309 * target.c (target_pid_to_str): Unconditionally delegate.
11310 (init_dummy_target): Don't initialize to_pid_to_str.
11311 (default_pid_to_str): Rename from dummy_pid_to_str.
11312 * target.h (struct target_ops) <to_pid_to_str>: Use
11313 TARGET_DEFAULT_FUNC.
11314
11315 2014-02-19 Tom Tromey <tromey@redhat.com>
11316
11317 * target-delegates.c: Rebuild.
11318 * target.c (target_find_new_threads): Unconditionally delegate.
11319 * target.h (struct target_ops) <to_find_new_threads>: Use
11320 TARGET_DEFAULT_RETURN.
11321
11322 2014-02-19 Tom Tromey <tromey@redhat.com>
11323
11324 * target-delegates.c: Rebuild.
11325 * target.c (target_program_signals): Unconditionally delegate.
11326 * target.h (struct target_ops) <to_program_signals>: Use
11327 TARGET_DEFAULT_IGNORE.
11328
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * target-delegates.c: Rebuild.
11332 * target.c (target_pass_signals): Unconditionally delegate.
11333 * target.h (struct target_ops) <to_pass_signals>: Use
11334 TARGET_DEFAULT_IGNORE.
11335
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11337
11338 * target-delegates.c: Rebuild.
11339 * target.c (default_mourn_inferior): New function.
11340 (target_mourn_inferior): Unconditionally delegate.
11341 * target.h (struct target_ops) <to_mourn_inferior>: Use
11342 TARGET_DEFAULT_FUNC.
11343
11344 2014-02-19 Tom Tromey <tromey@redhat.com>
11345
11346 * target-delegates.c: Rebuild.
11347 * target.c (default_follow_fork): New function.
11348 (target_follow_fork): Unconditionally delegate.
11349 * target.h (struct target_ops) <to_follow_fork>: Use
11350 TARGET_DEFAULT_FUNC.
11351
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target-delegates.c: Rebuild.
11355 * target.c (target_kill): Unconditionally delegate.
11356 * target.h (struct target_ops) <to_kill>: Use
11357 TARGET_DEFAULT_NORETURN.
11358
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target-delegates.c: Rebuild.
11362 * target.c (target_masked_watch_num_registers): Unconditionally
11363 delegate.
11364 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11365 Use TARGET_DEFAULT_RETURN.
11366
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target-delegates.c: Rebuild.
11370 * target.c (target_remove_mask_watchpoint): Unconditionally
11371 delegate.
11372 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11373 TARGET_DEFAULT_RETURN.
11374
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * target-delegates.c: Rebuild.
11378 * target.c (target_insert_mask_watchpoint): Unconditionally
11379 delegate.
11380 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11381 TARGET_DEFAULT_RETURN.
11382
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target-delegates.c: Rebuild.
11386 * target.c (target_ranged_break_num_registers): Unconditionally
11387 delegate.
11388 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11389 Use TARGET_DEFAULT_RETURN.
11390
11391 2014-02-19 Tom Tromey <tromey@redhat.com>
11392
11393 * target-delegates.c: Rebuild.
11394 * target.c (target_fetch_registers): Unconditionally delegate.
11395 * target.h (struct target_ops) <to_fetch_registers>: Use
11396 TARGET_DEFAULT_NORETURN.
11397
11398 2014-02-19 Tom Tromey <tromey@redhat.com>
11399
11400 * target-delegates.c: Rebuild.
11401 * target.c (update_current_target): Don't inherit or default
11402 to_stop.
11403 * target.h (struct target_ops) <to_stop>: Use
11404 TARGET_DEFAULT_IGNORE.
11405
11406 2014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target-delegates.c: Rebuild.
11409 * target.c (update_current_target): Don't inherit or default
11410 to_can_run_breakpoint_commands.
11411 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11412 Use TARGET_DEFAULT_RETURN.
11413
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * target-delegates.c: Rebuild.
11417 * target.c (update_current_target): Don't inherit or default
11418 to_supports_evaluation_of_breakpoint_conditions.
11419 * target.h (struct target_ops)
11420 <to_supports_evaluation_of_breakpoint_conditions>: Use
11421 TARGET_DEFAULT_RETURN.
11422
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11424
11425 * target-delegates.c: Rebuild.
11426 * target.c (update_current_target): Don't inherit or default
11427 to_augmented_libraries_svr4_read.
11428 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11429 Use TARGET_DEFAULT_RETURN.
11430
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target-delegates.c: Rebuild.
11434 * target.c (update_current_target): Don't inherit or default
11435 to_can_use_agent.
11436 * target.h (struct target_ops) <to_can_use_agent>: Use
11437 TARGET_DEFAULT_RETURN.
11438
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_use_agent.
11444 * target.h (struct target_ops) <to_use_agent>: Use
11445 TARGET_DEFAULT_NORETURN.
11446
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target-delegates.c: Rebuild.
11450 * target.c (update_current_target): Don't inherit or default
11451 to_traceframe_info.
11452 (return_null): Remove.
11453 * target.h (struct target_ops) <to_traceframe_info>: Use
11454 TARGET_DEFAULT_RETURN.
11455
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11457
11458 * target-delegates.c: Rebuild.
11459 * target.c (update_current_target): Don't inherit or default
11460 to_static_tracepoint_markers_by_strid.
11461 * target.h (struct target_ops)
11462 <to_static_tracepoint_markers_by_strid>: Use
11463 TARGET_DEFAULT_NORETURN.
11464
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * target-delegates.c: Rebuild.
11468 * target.c (update_current_target): Don't inherit or default
11469 to_static_tracepoint_marker_at.
11470 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11471 Use TARGET_DEFAULT_RETURN.
11472
11473 2014-02-19 Tom Tromey <tromey@redhat.com>
11474
11475 * target-delegates.c: Rebuild.
11476 * target.c (update_current_target): Don't inherit or default
11477 to_set_permissions.
11478 * target.h (struct target_ops) <to_set_permissions>: Use
11479 TARGET_DEFAULT_IGNORE.
11480
11481 2014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * target-delegates.c: Rebuild.
11484 * target.c (update_current_target): Don't inherit or default
11485 to_get_tib_address.
11486 * target.h (struct target_ops) <to_get_tib_address>: Use
11487 TARGET_DEFAULT_NORETURN.
11488
11489 2014-02-19 Tom Tromey <tromey@redhat.com>
11490
11491 * target-delegates.c: Rebuild.
11492 * target.c (update_current_target): Don't inherit or default
11493 to_set_trace_notes.
11494 * target.h (struct target_ops) <to_set_trace_notes>: Use
11495 TARGET_DEFAULT_RETURN.
11496
11497 2014-02-19 Tom Tromey <tromey@redhat.com>
11498
11499 * target-delegates.c: Rebuild.
11500 * target.c (update_current_target): Don't initialize
11501 to_set_trace_buffer_size.
11502 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11503 TARGET_DEFAULT_IGNORE.
11504
11505 2014-02-19 Tom Tromey <tromey@redhat.com>
11506
11507 * target-delegates.c: Rebuild.
11508 * target.c (update_current_target): Don't inherit or default
11509 to_set_circular_trace_buffer.
11510 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11511 TARGET_DEFAULT_IGNORE.
11512
11513 2014-02-19 Tom Tromey <tromey@redhat.com>
11514
11515 * target-delegates.c: Rebuild.
11516 * target.c (update_current_target): Don't inherit or default
11517 to_set_disconnected_tracing.
11518 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11519 TARGET_DEFAULT_IGNORE.
11520
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11522
11523 * target-delegates.c: Rebuild.
11524 * target.c (update_current_target): Don't inherit or default
11525 to_get_min_fast_tracepoint_insn_len.
11526 (return_minus_one): Remove.
11527 * target.h (struct target_ops)
11528 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11529
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_get_raw_trace_data.
11535 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11536 TARGET_DEFAULT_NORETURN.
11537
11538 2014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target-delegates.c: Rebuild.
11541 * target.c (update_current_target): Don't inherit or default
11542 to_upload_trace_state_variables.
11543 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11544 Use TARGET_DEFAULT_RETURN.
11545
11546 2014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target-delegates.c: Rebuild.
11549 * target.c (update_current_target): Don't inherit or default
11550 to_upload_tracepoints.
11551 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11552 TARGET_DEFAULT_RETURN.
11553
11554 2014-02-19 Tom Tromey <tromey@redhat.com>
11555
11556 * target-delegates.c: Rebuild.
11557 * target.c (update_current_target): Don't inherit or default
11558 to_save_trace_data.
11559 * target.h (struct target_ops) <to_save_trace_data>: Use
11560 TARGET_DEFAULT_NORETURN.
11561
11562 2014-02-19 Tom Tromey <tromey@redhat.com>
11563
11564 * target-delegates.c: Rebuild.
11565 * target.c (update_current_target): Don't inherit or default
11566 to_get_trace_state_variable_value.
11567 * target.h (struct target_ops)
11568 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11569
11570 2014-02-19 Tom Tromey <tromey@redhat.com>
11571
11572 * target-delegates.c: Rebuild.
11573 * target.c (update_current_target): Don't inherit or default
11574 to_trace_find.
11575 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11576
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11581 to_trace_stop.
11582 * target.h (struct target_ops) <to_trace_stop>: Use
11583 TARGET_DEFAULT_NORETURN.
11584
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't inherit or default
11589 to_get_tracepoint_status.
11590 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11591 TARGET_DEFAULT_NORETURN.
11592
11593 2014-02-19 Tom Tromey <tromey@redhat.com>
11594
11595 * target-delegates.c: Rebuild.
11596 * target.c (update_current_target): Don't inherit or default
11597 to_get_trace_status.
11598 * target.h (struct target_ops) <to_get_trace_status>: Use
11599 TARGET_DEFAULT_RETURN.
11600
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11602
11603 * target-delegates.c: Rebuild.
11604 * target.c (update_current_target): Don't inherit or default
11605 to_trace_start.
11606 * target.h (struct target_ops) <to_trace_start>: Use
11607 TARGET_DEFAULT_NORETURN.
11608
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target-delegates.c: Rebuild.
11612 * target.c (update_current_target): Don't inherit or default
11613 to_trace_set_readonly_regions.
11614 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11615 Use TARGET_DEFAULT_NORETURN.
11616
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target-delegates.c: Rebuild.
11620 * target.c (update_current_target): Don't inherit or default
11621 to_disable_tracepoint.
11622 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11623 TARGET_DEFAULT_NORETURN.
11624
11625 2014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target-delegates.c: Rebuild.
11628 * target.c (update_current_target): Don't inherit or default
11629 to_enable_tracepoint.
11630 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11631 TARGET_DEFAULT_NORETURN.
11632
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target-delegates.c: Rebuild.
11636 * target.c (update_current_target): Don't inherit or default
11637 to_download_trace_state_variable.
11638 * target.h (struct target_ops) <to_download_trace_state_variable>:
11639 Use TARGET_DEFAULT_NORETURN.
11640
11641 2014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target-delegates.c: Rebuild.
11644 * target.c (update_current_target): Don't inherit or default
11645 to_can_download_tracepoint.
11646 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11647 TARGET_DEFAULT_RETURN.
11648
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11650
11651 * target-delegates.c: Rebuild.
11652 * target.c (update_current_target): Don't inherit or default
11653 to_download_tracepoint.
11654 * target.h (struct target_ops) <to_download_tracepoint>: Use
11655 TARGET_DEFAULT_NORETURN.
11656
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target-delegates.c: Rebuild.
11660 * target.c (update_current_target): Don't inherit or default
11661 to_trace_init.
11662 * target.h (struct target_ops) <to_trace_init>: Use
11663 TARGET_DEFAULT_RETURN.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_supports_string_tracing.
11670 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11671 TARGET_DEFAULT_RETURN.
11672
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_supports_enable_disable_tracepoint.
11678 * target.h (struct target_ops)
11679 <to_supports_enable_disable_tracepoint>: Use
11680 TARGET_DEFAULT_RETURN.
11681
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * target-delegates.c: Rebuild.
11685 * target.c (update_current_target): Don't inherit or default
11686 to_supports_multi_process.
11687 * target.h (struct target_ops) <to_supports_multi_process>: Use
11688 TARGET_DEFAULT_RETURN.
11689
11690 2014-02-19 Tom Tromey <tromey@redhat.com>
11691
11692 * target-delegates.c: Rebuild.
11693 * target.c (update_current_target): Don't inherit or default
11694 to_get_ada_task_ptid.
11695 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11696 TARGET_DEFAULT_FUNC.
11697
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target-delegates.c: Rebuild.
11701 * target.c (update_current_target): Don't inherit or default
11702 to_thread_architecture.
11703 * target.h (struct target_ops) <to_thread_architecture>: Use
11704 TARGET_DEFAULT_FUNC.
11705
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * target-delegates.c: Rebuild.
11709 * target.c (update_current_target): Don't inherit or default
11710 to_execution_direction.
11711 * target.h (struct target_ops) <to_execution_direction>: Use
11712 TARGET_DEFAULT_FUNC.
11713
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11715
11716 * target-delegates.c: Rebuild.
11717 * target.c (update_current_target): Don't inherit or default
11718 to_can_execute_reverse.
11719 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11720 TARGET_DEFAULT_RETURN.
11721 (target_can_execute_reverse): Unconditionally delegate.
11722
11723 2014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target-delegates.c: Rebuild.
11726 * target.c (update_current_target): Don't inherit or default
11727 to_goto_bookmark.
11728 (dummy_goto_bookmark): Remove.
11729 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11730 * target.h (struct target_ops) <to_goto_bookmark>: Use
11731 TARGET_DEFAULT_NORETURN.
11732
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target-delegates.c: Rebuild.
11736 * target.c (update_current_target): Don't inherit or default
11737 to_get_bookmark.
11738 (dummy_get_bookmark): Remove.
11739 (init_dummy_target): Don't inherit or default to_get_bookmark.
11740 * target.h (struct target_ops) <to_get_bookmark>: Use
11741 TARGET_DEFAULT_NORETURN
11742
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target-delegates.c: Rebuild.
11746 * target.c (update_current_target): Don't inherit or default
11747 to_make_corefile_notes.
11748 (init_dummy_target): Don't initialize to_make_corefile_notes.
11749 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11750 TARGET_DEFAULT_FUNC.
11751
11752 2014-02-19 Tom Tromey <tromey@redhat.com>
11753
11754 * target-delegates.c: Rebuild.
11755 * target.c (update_current_target): Don't inherit or default
11756 to_find_memory_regions.
11757 (init_dummy_target): Don't initialize to_find_memory_regions.
11758 * target.h (struct target_ops) <to_find_memory_regions>: Use
11759 TARGET_DEFAULT_FUNC.
11760
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target-delegates.c: Rebuild.
11764 * target.c (update_current_target): Don't inherit or default
11765 to_log_command.
11766 * target.h (struct target_ops) <to_log_command>: Use
11767 TARGET_DEFAULT_IGNORE.
11768 (target_log_command): Unconditionally delegate.
11769
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_pid_to_exec_file.
11775 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11776 TARGET_DEFAULT_RETURN.
11777
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_thread_name.
11783 (target_thread_name): Unconditionally delegate.
11784 * target.h (struct target_ops) <to_thread_name>: Use
11785 TARGET_DEFAULT_RETURN.
11786
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target-delegates.c: Rebuild.
11790 * target.c (update_current_target): Don't inherit or default
11791 to_extra_thread_info.
11792 * target.h (struct target_ops) <to_extra_thread_info>: Use
11793 TARGET_DEFAULT_RETURN.
11794
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * target-delegates.c: Rebuild.
11798 * target.c (update_current_target): Don't inherit or default
11799 to_has_exited.
11800 * target.h (struct target_ops) <to_has_exited>: Use
11801 TARGET_DEFAULT_RETURN..
11802
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target-delegates.c: Rebuild.
11806 * target.c (update_current_target): Don't inherit or default
11807 to_set_syscall_catchpoint.
11808 (return_one): Remove.
11809 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11810 TARGET_DEFAULT_RETURN.
11811
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * target-delegates.c: Rebuild.
11815 * target.c (update_current_target): Don't inherit or default
11816 to_insert_exec_catchpoint.
11817 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11818 TARGET_DEFAULT_RETURN.
11819
11820 2014-01-08 Tom Tromey <tromey@redhat.com>
11821
11822 * target-delegates.c: Rebuild.
11823 * target.c (update_current_target): Don't inherit or default
11824 to_insert_exec_catchpoint.
11825 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11826 TARGET_DEFAULT_RETURN.
11827
11828 2014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target-delegates.c: Rebuild.
11831 * target.c (update_current_target): Don't inherit or default
11832 to_remove_vfork_catchpoint.
11833 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11834 TARGET_DEFAULT_RETURN.
11835
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target-delegates.c: Rebuild.
11839 * target.c (update_current_target): Don't inherit or default
11840 to_insert_vfork_catchpoint.
11841 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11842 TARGET_DEFAULT_RETURN.
11843
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 * target-delegates.c: Rebuild.
11847 * target.c (update_current_target): Don't inherit or default
11848 to_remove_fork_catchpoint.
11849 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11850 TARGET_DEFAULT_RETURN.
11851
11852 2014-02-19 Tom Tromey <tromey@redhat.com>
11853
11854 * target-delegates.c: Rebuild.
11855 * target.c (update_current_target): Don't inherit or default
11856 to_insert_fork_catchpoint.
11857 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11858 TARGET_DEFAULT_RETURN.
11859
11860 2014-02-19 Tom Tromey <tromey@redhat.com>
11861
11862 * target-delegates.c: Rebuild.
11863 * target.c (update_current_target): Don't inherit or default
11864 to_post_startup_inferior.
11865 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11866 TARGET_DEFAULT_IGNORE.
11867
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11869
11870 * target-delegates.c: Rebuild.
11871 * target.c (update_current_target): Don't inherit or default
11872 to_load.
11873 * target.h (struct target_ops) <to_load>: Use
11874 TARGET_DEFAULT_NORETURN.
11875
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11877
11878 * target-delegates.c: Rebuild.
11879 * target.c (update_current_target): Don't inherit or default
11880 to_terminal_info.
11881 * target.h (struct target_ops) <to_terminal_info>: Use
11882 TARGET_DEFAULT_FUNC.
11883
11884 2014-02-19 Tom Tromey <tromey@redhat.com>
11885
11886 * target-delegates.c: Rebuild.
11887 * target.c (update_current_target): Don't inherit or default
11888 to_terminal_save_ours.
11889 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11890 TARGET_DEFAULT_IGNORE.
11891
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target-delegates.c: Rebuild.
11895 * target.c (update_current_target): Don't inherit or default
11896 to_terminal_ours.
11897 * target.h (struct target_ops) <to_terminal_ours>: Use
11898 TARGET_DEFAULT_IGNORE.
11899
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target-delegates.c: Rebuild.
11903 * target.c (update_current_target): Don't inherit or default
11904 to_terminal_ours_for_output.
11905 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11906 TARGET_DEFAULT_IGNORE.
11907
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11909
11910 * target-delegates.c: Rebuild.
11911 * target.c (update_current_target): Don't inherit or default
11912 to_terminal_inferior.
11913 * target.h (struct target_ops) <to_terminal_inferior>: Use
11914 TARGET_DEFAULT_IGNORE.
11915
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_terminal_init.
11921 * target.h (struct target_ops) <to_terminal_init>: Use
11922 TARGET_DEFAULT_IGNORE.
11923
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11925
11926 * target-delegates.c: Rebuild.
11927 * target.c (update_current_target): Don't inherit or default
11928 to_can_accel_watchpoint_condition.
11929 * target.h (struct target_ops)
11930 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11931
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11936 to_region_ok_for_hw_watchpoint.
11937 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11938 Use TARGET_DEFAULT_FUNC.
11939
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11941
11942 * target-delegates.c: Rebuild.
11943 * target.c (update_current_target): Don't inherit or default
11944 to_watchpoint_addr_within_range.
11945 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11946 Use TARGET_DEFAULT_FUNC.
11947
11948 2014-02-19 Tom Tromey <tromey@redhat.com>
11949
11950 * target-delegates.c: Rebuild.
11951 * target.c (update_current_target): Don't inherit or default
11952 to_remove_watchpoint.
11953 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11954 TARGET_DEFAULT_NORETURN.
11955
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11960 to_insert_watchpoint.
11961 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11962 TARGET_DEFAULT_RETURN.
11963
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11965
11966 * target-delegates.c: Rebuild.
11967 * target.c (update_current_target): Don't inherit or default
11968 to_remove_hw_breakpoint.
11969 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11970 TARGET_DEFAULT_RETURN.
11971
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11973
11974 * target-delegates.c: Rebuild.
11975 * target.c (update_current_target): Don't inherit or default
11976 to_insert_hw_breakpoint.
11977 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11978 TARGET_DEFAULT_RETURN.
11979
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11981
11982 * target-delegates.c: Rebuild.
11983 * target.c (update_current_target): Don't inherit or default
11984 to_can_use_hw_breakpoint.
11985 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11986 TARGET_DEFAULT_RETURN.
11987
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11989
11990 * target-delegates.c: Rebuild.
11991 * target.c (update_current_target): Don't inherit or default
11992 to_files_info.
11993 * target.h (struct target_ops) <to_files_info>: Use
11994 TARGET_DEFAULT_IGNORE.
11995
11996 2014-02-19 Tom Tromey <tromey@redhat.com>
11997
11998 * target-delegates.c: Rebuild.
11999 * target.c (update_current_target): Don't inherit or default
12000 to_store.
12001 * target.h (struct target_ops) <to_store>: Use
12002 TARGET_DEFAULT_NORETURN.
12003
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target-delegates.c: Rebuild.
12007 * target.c (update_current_target): Don't inherit or default
12008 to_post_attach.
12009 * target.h (struct target_ops) <to_post_attach>: Use
12010 TARGET_DEFAULT_IGNORE.
12011
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12013
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_rcmd.
12017 (default_rcmd): New function.
12018 (do_monitor_command): Unconditionally delegate.
12019 * target.h (struct target_ops) <to_rmcd>: Use
12020 TARGET_DEFAULT_FUNC.
12021
12022 2014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * target-delegates.c: Rebuild.
12025 * target.c (init_dummy_target): Don't initialize to_attach.
12026 (target_attach): Unconditionally delegate.
12027 * target.h (struct target_ops) <to_attach>: Use
12028 TARGET_DEFAULT_FUNC.
12029
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12031
12032 * target-delegates.c: Rebuild.
12033 * target.c (target_detach): Unconditionally delegate.
12034 (init_dummy_target): Don't initialize to_detach.
12035 * target.h (struct target_ops) <to_detach>: Use
12036 TARGET_DEFAULT_IGNORE.
12037
12038 2014-02-19 Tom Tromey <tromey@redhat.com>
12039
12040 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12041 Add argument.
12042 (target_augmented_libraries_svr4_read): Add argument.
12043 * target.c (update_current_target): Update.
12044 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12045 argument.
12046
12047 2014-02-19 Tom Tromey <tromey@redhat.com>
12048
12049 * target.h (struct target_ops) <to_call_history_range>: Add
12050 argument.
12051 * target.c (target_call_history_range): Add argument.
12052 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12053 argument.
12054 (record_btrace_call_history_from): Update.
12055
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target.h (struct target_ops) <to_call_history_from>: Add
12059 argument.
12060 * target.c (target_call_history_from): Add argument.
12061 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12062 argument.
12063
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target.h (struct target_ops) <to_call_history>: Add argument.
12067 * target.c (target_call_history): Add argument.
12068 * record-btrace.c (record_btrace_call_history): Add 'self'
12069 argument.
12070
12071 2014-02-19 Tom Tromey <tromey@redhat.com>
12072
12073 * target.h (struct target_ops) <to_insn_history_range>: Add
12074 argument.
12075 * target.c (target_insn_history_range): Add argument.
12076 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12077 argument.
12078 (record_btrace_insn_history_from): Update.
12079
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12081
12082 * target.h (struct target_ops) <to_insn_history_from>: Add
12083 argument.
12084 * target.c (target_insn_history_from): Add argument.
12085 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12086 argument.
12087
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12089
12090 * target.h (struct target_ops) <to_insn_history>: Add argument.
12091 * target.c (target_insn_history): Add argument.
12092 * record-btrace.c (record_btrace_insn_history): Add 'self'
12093 argument.
12094
12095 2014-02-19 Tom Tromey <tromey@redhat.com>
12096
12097 * target.h (struct target_ops) <to_goto_record>: Add argument.
12098 * target.c (target_goto_record): Add argument.
12099 * record-full.c (record_full_goto): Add 'self' argument.
12100 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12101
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12103
12104 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12105 * target.c (target_goto_record_end): Add argument.
12106 * record-full.c (record_full_goto_end): Add 'self' argument.
12107 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12108
12109 2014-02-19 Tom Tromey <tromey@redhat.com>
12110
12111 * target.h (struct target_ops) <to_goto_record_begin>: Add
12112 argument.
12113 * target.c (target_goto_record_begin): Add argument.
12114 * record-full.c (record_full_goto_begin): Add 'self' argument.
12115 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12116 argument.
12117
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * target.h (struct target_ops) <to_record_is_replaying>: Add
12121 argument.
12122 * target.c (target_record_is_replaying): Add argument.
12123 * record-full.c (record_full_is_replaying): Add 'self' argument.
12124 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12125 argument.
12126 (record_btrace_xfer_partial, record_btrace_store_registers)
12127 (record_btrace_prepare_to_store, record_btrace_resume)
12128 (record_btrace_wait, record_btrace_decr_pc_after_break)
12129 (record_btrace_find_new_threads, record_btrace_thread_alive):
12130 Update.
12131
12132 2014-02-19 Tom Tromey <tromey@redhat.com>
12133
12134 * target.h (struct target_ops) <to_delete_record>: Add argument.
12135 * target.c (target_delete_record): Add argument.
12136 * record-full.c (record_full_delete): Add 'self' argument.
12137
12138 2014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target.h (struct target_ops) <to_save_record>: Add argument.
12141 * target.c (target_save_record): Add argument.
12142 * record-full.c (record_full_save): Add 'self' argument.
12143 (record_full_save): Add 'self' argument.
12144
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12146
12147 * target.h (struct target_ops) <to_info_record>: Add argument.
12148 * target.c (target_info_record): Add argument.
12149 * record.c (info_record_command): Add argument.
12150 * record-full.c (record_full_info): Add 'self' argument.
12151 * record-btrace.c (record_btrace_info): Add 'self' argument.
12152
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12154
12155 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12156 * target.c (target_stop_recording): Add argument.
12157 * record.c (record_stop): Add argument.
12158 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12159 argument.
12160
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12164 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12165 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12166 argument.
12167 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12168 (_initialize_amd64_linux_nat): Use it.
12169 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12170 (_initialize_i386_linux_nat): Use it.
12171
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12175 * target.c (target_teardown_btrace): Add argument.
12176 * remote.c (remote_teardown_btrace): Add 'self' argument.
12177 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12178 argument.
12179 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12180 argument.
12181
12182 2014-02-19 Tom Tromey <tromey@redhat.com>
12183
12184 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12185 * target.c (target_disable_btrace): Add argument.
12186 * remote.c (remote_disable_btrace): Add 'self' argument.
12187 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12188 argument.
12189 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12190 argument.
12191
12192 2014-02-19 Tom Tromey <tromey@redhat.com>
12193
12194 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12195 * target.c (target_enable_btrace): Add argument.
12196 * remote.c (remote_enable_btrace): Add 'self' argument.
12197 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12198 argument.
12199 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12200 argument.
12201
12202 2014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12205 (target_can_use_agent): Add argument.
12206 * target.c (update_current_target): Update.
12207 * remote.c (remote_can_use_agent): Add 'self' argument.
12208 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12209
12210 2014-02-19 Tom Tromey <tromey@redhat.com>
12211
12212 * target.h (struct target_ops) <to_use_agent>: Add argument.
12213 (target_use_agent): Add argument.
12214 * target.c (update_current_target): Update.
12215 * remote.c (remote_use_agent): Add 'self' argument.
12216 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12217
12218 2014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12221 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12222 (target_traceframe_info): Add argument.
12223 * target.c (update_current_target): Update.
12224 * remote.c (remote_traceframe_info): Add 'self' argument.
12225 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12226
12227 2014-02-19 Tom Tromey <tromey@redhat.com>
12228
12229 * target.h (target_static_tracepoint_markers_by_strid): Add
12230 argument.
12231 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12232 'self' argument.
12233 * target.c (update_current_target): Update.
12234 * remote.c (struct target_ops)
12235 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12236 * linux-nat.c (struct target_ops)
12237 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12238
12239 2014-02-19 Tom Tromey <tromey@redhat.com>
12240
12241 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12242 Add argument.
12243 (target_static_tracepoint_marker_at): Add argument.
12244 * target.c (update_current_target): Update.
12245 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12246 argument.
12247
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12249
12250 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12251 (target_set_permissions): Add argument.
12252 * target.c (update_current_target): Update.
12253 * remote.c (remote_set_permissions): Add 'self' argument.
12254 (remote_start_remote): Update.
12255
12256 2014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12259 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12260 (target_get_tib_address): Add argument.
12261 * target.c (update_current_target): Update.
12262 * remote.c (remote_get_tib_address): Add 'self' argument.
12263
12264 2014-02-19 Tom Tromey <tromey@redhat.com>
12265
12266 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12267 (target_set_trace_notes): Add argument.
12268 * target.c (update_current_target): Update.
12269 * remote.c (remote_set_trace_notes): Add 'self' argument.
12270
12271 2014-02-19 Tom Tromey <tromey@redhat.com>
12272
12273 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12274 argument.
12275 (target_set_trace_buffer_size): Add argument.
12276 * target.c (update_current_target): Update.
12277 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12278
12279 2014-02-19 Tom Tromey <tromey@redhat.com>
12280
12281 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12282 argument.
12283 (target_set_circular_trace_buffer): Add argument.
12284 * target.c (update_current_target): Update.
12285 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12286 argument.
12287
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12291 argument.
12292 (target_set_disconnected_tracing): Add argument.
12293 * target.c (update_current_target): Update.
12294 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12295
12296 2014-02-19 Tom Tromey <tromey@redhat.com>
12297
12298 * target.h (struct target_ops)
12299 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12300 (target_get_min_fast_tracepoint_insn_len): Add argument.
12301 * target.c (update_current_target): Update.
12302 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12303 argument.
12304
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12306
12307 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12308 argument.
12309 (target_get_raw_trace_data): Add argument.
12310 * target.c (update_current_target): Update.
12311 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12312
12313 2014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12316 Add argument.
12317 (target_upload_trace_state_variables): Add argument.
12318 * target.c (update_current_target): Update.
12319 * remote.c (remote_upload_trace_state_variables): Add 'self'
12320 argument.
12321 (remote_start_remote): Update.
12322
12323 2014-02-19 Tom Tromey <tromey@redhat.com>
12324
12325 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12326 argument.
12327 (target_upload_tracepoints): Add argument.
12328 * target.c (update_current_target): Update.
12329 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12330 (remote_start_remote): Update.
12331
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12335 (target_save_trace_data): Add argument.
12336 * target.c (update_current_target): Update.
12337 * remote.c (remote_save_trace_data): Add 'self' argument.
12338
12339 2014-02-19 Tom Tromey <tromey@redhat.com>
12340
12341 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12342 argument.
12343 * target.h (struct target_ops)
12344 <to_get_trace_state_variable_value>: Add argument.
12345 (target_get_trace_state_variable_value): Add argument.
12346 * target.c (update_current_target): Update.
12347 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12348 argument.
12349 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12350
12351 2014-02-19 Tom Tromey <tromey@redhat.com>
12352
12353 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12354 * target.h (struct target_ops) <to_trace_find>: Add argument.
12355 (target_trace_find): Add argument.
12356 * target.c (update_current_target): Update.
12357 * remote.c (remote_trace_find): Add 'self' argument.
12358 * ctf.c (ctf_trace_find): Add 'self' argument.
12359
12360 2014-02-19 Tom Tromey <tromey@redhat.com>
12361
12362 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12363 (target_trace_stop): Add argument.
12364 * target.c (update_current_target): Update.
12365 * remote.c (remote_trace_stop): Add 'self' argument.
12366
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12368
12369 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12370 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12371 argument.
12372 (target_get_tracepoint_status): Add argument.
12373 * target.c (update_current_target): Update.
12374 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12375
12376 2014-02-19 Tom Tromey <tromey@redhat.com>
12377
12378 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12379 * target.h (struct target_ops) <to_get_trace_status>: Add
12380 argument.
12381 (target_get_trace_status): Add argument.
12382 * target.c (update_current_target): Update.
12383 * remote.c (remote_get_trace_status): Add 'self' argument.
12384 (remote_start_remote, remote_can_download_tracepoint): Update.
12385 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12386
12387 2014-02-19 Tom Tromey <tromey@redhat.com>
12388
12389 * target.h (struct target_ops) <to_trace_start>: Add argument.
12390 (target_trace_start): Add argument.
12391 * target.c (update_current_target): Update.
12392 * remote.c (remote_trace_start): Add 'self' argument.
12393
12394 2014-02-19 Tom Tromey <tromey@redhat.com>
12395
12396 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12397 Add argument.
12398 (target_trace_set_readonly_regions): Add argument.
12399 * target.c (update_current_target): Update.
12400 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12401 argument.
12402
12403 2014-02-19 Tom Tromey <tromey@redhat.com>
12404
12405 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12406 argument.
12407 (target_disable_tracepoint): Add argument.
12408 * target.c (update_current_target): Update.
12409 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12410
12411 2014-02-19 Tom Tromey <tromey@redhat.com>
12412
12413 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12414 argument.
12415 (target_enable_tracepoint): Add argument.
12416 * target.c (update_current_target): Update.
12417 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12418
12419 2014-02-19 Tom Tromey <tromey@redhat.com>
12420
12421 * target.h (struct target_ops) <to_download_trace_state_variable>:
12422 Add argument.
12423 (target_download_trace_state_variable): Add argument.
12424 * target.c (update_current_target): Update.
12425 * remote.c (remote_download_trace_state_variable): Add 'self'
12426 argument.
12427
12428 2014-02-19 Tom Tromey <tromey@redhat.com>
12429
12430 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12431 argument.
12432 (target_can_download_tracepoint): Add argument.
12433 * target.c (update_current_target): Update.
12434 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12435
12436 2014-02-19 Tom Tromey <tromey@redhat.com>
12437
12438 * target.h (struct target_ops) <to_download_tracepoint>: Add
12439 argument.
12440 (target_download_tracepoint): Add argument.
12441 * target.c (update_current_target): Update.
12442 * remote.c (remote_download_tracepoint): Add 'self' argument.
12443
12444 2014-02-19 Tom Tromey <tromey@redhat.com>
12445
12446 * target.h (struct target_ops) <to_trace_init>: Add argument.
12447 (target_trace_init): Add argument.
12448 * target.c (update_current_target): Update.
12449 * remote.c (remote_trace_init): Add 'self' argument.
12450
12451 2014-02-19 Tom Tromey <tromey@redhat.com>
12452
12453 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12454 * target.c (target_fileio_readlink): Add argument.
12455 * remote.c (remote_hostio_readlink): Add 'self' argument.
12456 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12457
12458 2014-02-19 Tom Tromey <tromey@redhat.com>
12459
12460 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12461 * target.c (target_fileio_unlink): Add argument.
12462 * remote.c (remote_hostio_unlink): Add 'self' argument.
12463 (remote_file_delete): Update.
12464 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12465
12466 2014-02-19 Tom Tromey <tromey@redhat.com>
12467
12468 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12469 * target.c (target_fileio_close): Add argument.
12470 * remote.c (remote_hostio_close): Add 'self' argument.
12471 (remote_hostio_close_cleanup): Update.
12472 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12473 Update.
12474 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12475
12476 2014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12479 * target.c (target_fileio_pread): Add argument.
12480 * remote.c (remote_hostio_pread): Add 'self' argument.
12481 (remote_bfd_iovec_pread, remote_file_get): Update.
12482 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12483
12484 2014-02-19 Tom Tromey <tromey@redhat.com>
12485
12486 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12487 * target.c (target_fileio_pwrite): Add argument.
12488 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12489 (remote_file_put): Update.
12490 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12491
12492 2014-02-19 Tom Tromey <tromey@redhat.com>
12493
12494 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12495 * target.c (target_fileio_open): Add argument.
12496 * remote.c (remote_hostio_open): Add 'self' argument.
12497 (remote_bfd_iovec_open): Add 'self' argument.
12498 (remote_file_put): Add 'self' argument.
12499 (remote_file_get): Add 'self' argument.
12500 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12501
12502 2014-02-19 Tom Tromey <tromey@redhat.com>
12503
12504 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12505 Add argument.
12506 (target_can_run_breakpoint_commands): Add argument.
12507 * target.c (update_current_target): Update.
12508 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12509 argument.
12510 (remote_insert_breakpoint): Add 'self' argument.
12511 (remote_insert_hw_breakpoint): Add 'self' argument.
12512 (remote_can_run_breakpoint_commands): Add 'self' argument.
12513
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops)
12517 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12518 (target_supports_evaluation_of_breakpoint_conditions): Add
12519 argument.
12520 * target.c (update_current_target): Update.
12521 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12522 argument.
12523 (remote_insert_breakpoint): Add 'self' argument.
12524 (remote_insert_hw_breakpoint): Add 'self' argument.
12525 (remote_supports_cond_breakpoints): Add 'self' argument.
12526
12527 2014-02-19 Tom Tromey <tromey@redhat.com>
12528
12529 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12530 argument.
12531 (target_supports_string_tracing): Add argument.
12532 * target.c (update_current_target): Update.
12533 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12534
12535 2014-02-19 Tom Tromey <tromey@redhat.com>
12536
12537 * target.h (struct target_ops)
12538 <to_supports_disable_randomization>: Add argument.
12539 * target.c (find_default_supports_disable_randomization): Add
12540 argument.
12541 (target_supports_disable_randomization): Add argument.
12542 (find_default_supports_disable_randomization): Add 'self'
12543 argument.
12544 * remote.c (extended_remote_supports_disable_randomization): Add
12545 'self' argument.
12546 (remote_supports_disable_randomization): Add 'self' argument.
12547 (extended_remote_create_inferior): Update.
12548 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12549 'self' argument.
12550
12551 2014-02-19 Tom Tromey <tromey@redhat.com>
12552
12553 * target.h (struct target_ops)
12554 <to_supports_enable_disable_tracepoint>: Add argument.
12555 (target_supports_enable_disable_tracepoint): Add argument.
12556 * target.c (update_current_target): Update.
12557 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12558 argument.
12559
12560 2014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target.h (struct target_ops) <to_supports_multi_process>: Add
12563 argument.
12564 (target_supports_multi_process): Add argument.
12565 * target.c (update_current_target): Update.
12566 * remote.c (remote_supports_multi_process): Add 'self' argument.
12567 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12568 argument.
12569 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12570 argument.
12571
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12573
12574 * target.h (struct target_ops) <to_execution_direction>: Add
12575 argument.
12576 (target_execution_direction): Add argument.
12577 * target.c (default_execution_direction): Add 'self' argument.
12578 * record-full.c (record_full_execution_direction): Add 'self'
12579 argument.
12580
12581 2014-02-19 Tom Tromey <tromey@redhat.com>
12582
12583 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12584 argument.
12585 (target_can_execute_reverse): Add argument.
12586 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12587 * record-full.c (record_full_can_execute_reverse): Add 'self'
12588 argument.
12589 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12590 argument.
12591
12592 2014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12595 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12596 argument.
12597 (target_get_ada_task_ptid): Add argument.
12598 * target.c (update_current_target): Update.
12599 (default_get_ada_task_ptid): Add 'self' argument.
12600 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12601 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12602 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12603 argument.
12604 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12605 argument.
12606 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12607 argument.
12608 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12609 argument.
12610 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12611 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12612 argument.
12613
12614 2014-02-19 Tom Tromey <tromey@redhat.com>
12615
12616 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12617 (target_goto_bookmark): Add argument.
12618 * target.c (dummy_goto_bookmark): Add 'self' argument.
12619 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12620
12621 2014-02-19 Tom Tromey <tromey@redhat.com>
12622
12623 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12624 (target_get_bookmark): Add argument.
12625 * target.c (dummy_get_bookmark): Add 'self' argument.
12626 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12627
12628 2014-02-19 Tom Tromey <tromey@redhat.com>
12629
12630 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12631 argument.
12632 (target_make_corefile_notes): Add argument.
12633 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12634 * procfs.c (procfs_make_note_section): Add 'self' argument.
12635 (procfs_make_note_section): Add 'self' argument.
12636 (procfs_make_note_section): Add 'self' argument.
12637 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12638 argument.
12639 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12640 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12641 * exec.c (exec_make_note_section): Add 'self' argument.
12642 (exec_make_note_section): Add 'self' argument.
12643
12644 2014-02-19 Tom Tromey <tromey@redhat.com>
12645
12646 * target.h (struct target_ops) <to_find_memory_regions>: Add
12647 argument.
12648 (target_find_memory_regions): Add argument.
12649 * target.c (dummy_find_memory_regions): Add 'self' argument.
12650 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12651 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12652 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12653 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12654 * exec. (exec_do_find_memory_regions): New global.
12655 (exec_set_find_memory_regions): Rewrite.
12656 (exec_find_memory_regions): New function.
12657 (init_exec_ops): Use exec_find_memory_regions.
12658
12659 2014-02-19 Tom Tromey <tromey@redhat.com>
12660
12661 * target.h (struct target_ops) <to_supports_non_stop>: Add
12662 argument.
12663 * target.c (find_default_supports_non_stop): Add argument.
12664 (target_supports_non_stop): Add argument.
12665 (find_default_supports_non_stop): Add 'self' argument.
12666 * remote.c (remote_supports_non_stop): Add 'self' argument.
12667 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12668
12669 2014-02-19 Tom Tromey <tromey@redhat.com>
12670
12671 * target.h (struct target_ops) <to_log_command>: Add argument.
12672 (target_log_command): Add argument.
12673 * serial.h (serial_log_command): Add 'self' argument.
12674 * serial.c (serial_log_command): Add 'self' argument.
12675
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12679 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12680 argument.
12681 (target_pid_to_exec_file): Add argument.
12682 * target.c (debug_to_pid_to_exec_file): Add argument.
12683 (update_current_target): Update.
12684 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12685 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12686 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12687 (linux_handle_extended_wait): Update.
12688 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12689 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12690 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12691 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12692
12693 2014-02-19 Tom Tromey <tromey@redhat.com>
12694
12695 * target.h (struct target_ops) <to_rcmd>: Add argument.
12696 (target_rcmd): Add argument.
12697 * target.c (debug_to_rcmd): Add argument.
12698 (update_current_target, do_monitor_command): Update.
12699 * remote.c (remote_rcmd): Add 'self' argument.
12700 * monitor.c (monitor_rcmd): Add 'self' argument.
12701
12702 2014-02-19 Tom Tromey <tromey@redhat.com>
12703
12704 * windows-nat.c (windows_stop): Add 'self' argument.
12705 * target.h (struct target_ops) <to_stop>: Add argument.
12706 * target.c (target_stop): Add argument.
12707 (debug_to_stop): Add argument.
12708 (update_current_target): Update.
12709 * remote.c (remote_stop): Add 'self' argument.
12710 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12711 (gdbsim_cntrl_c): Update.
12712 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12713 * procfs.c (procfs_stop): Add 'self' argument.
12714 * nto-procfs.c (procfs_stop): Add 'self' argument.
12715 * monitor.c (monitor_stop): Add 'self' argument.
12716 (monitor_open): Update.
12717 * linux-nat.c (linux_nat_stop): Add argument.
12718 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12719 * gnu-nat.c (gnu_stop): Add 'self' argument.
12720 * darwin-nat.c (darwin_stop): Add 'self' argument.
12721
12722 2014-02-19 Tom Tromey <tromey@redhat.com>
12723
12724 * target.h (struct target_ops) <to_thread_name>: Add argument.
12725 * target.c (target_thread_name): Add argument.
12726 (update_current_target): Update.
12727 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12728
12729 2014-02-19 Tom Tromey <tromey@redhat.com>
12730
12731 * target.h (struct target_ops) <to_extra_thread_info>: Add
12732 argument.
12733 (target_extra_thread_info): Add argument.
12734 * target.c (update_current_target): Update.
12735 * remote.c (remote_threads_extra_info): Add 'self' argument.
12736 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12737 argument.
12738 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12739 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12740 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12741 argument.
12742 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12743 argument.
12744 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12745 argument.
12746 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12747 argument.
12748
12749 2014-02-19 Tom Tromey <tromey@redhat.com>
12750
12751 * target.h (struct target_ops) <to_program_signals>: Add argument.
12752 * target.c (target_program_signals): Add argument.
12753 * remote.c (remote_program_signals): Add 'self' argument.
12754
12755 2014-02-19 Tom Tromey <tromey@redhat.com>
12756
12757 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12758 * target.c (target_pass_signals): Add argument.
12759 * remote.c (remote_pass_signals): Add 'self' argument.
12760 (remote_start_remote): Update.
12761 * procfs.c (procfs_pass_signals): Add 'self' argument.
12762 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12763 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12764 (linux_nat_create_inferior, linux_nat_attach): Update.
12765
12766 2014-02-19 Tom Tromey <tromey@redhat.com>
12767
12768 * windows-nat.c (windows_can_run): Add 'self' argument.
12769 * target.h (struct target_ops) <to_can_run>: Add argument.
12770 (target_can_run): Add argument.
12771 * target.c (debug_to_can_run): Add argument.
12772 (update_current_target): Update.
12773 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12774 * inf-child.c (inf_child_can_run): Add 'self' argument.
12775 * go32-nat.c (go32_can_run): Add 'self' argument.
12776
12777 2014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target.h (struct target_ops) <to_has_exited>: Add argument.
12780 (target_has_exited): Add argument.
12781 * target.c (debug_to_has_exited): Add argument.
12782 (update_current_target): Update.
12783
12784 2014-02-19 Tom Tromey <tromey@redhat.com>
12785
12786 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12787 argument.
12788 (target_set_syscall_catchpoint): Add argument.
12789 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12790 argument.
12791 * target.c (update_current_target): Update.
12792
12793 2014-02-19 Tom Tromey <tromey@redhat.com>
12794
12795 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12796 argument.
12797 (target_remove_exec_catchpoint): Add argument.
12798 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12799 (update_current_target): Update.
12800 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12801 argument.
12802
12803 2014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12806 argument.
12807 (target_insert_exec_catchpoint): Add argument.
12808 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12809 (update_current_target): Update.
12810 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12811 argument.
12812
12813 2014-02-19 Tom Tromey <tromey@redhat.com>
12814
12815 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12816 argument.
12817 (target_remove_vfork_catchpoint): Add argument.
12818 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12819 (update_current_target): Update.
12820 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12821 argument.
12822
12823 2014-02-19 Tom Tromey <tromey@redhat.com>
12824
12825 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12826 argument.
12827 (target_insert_vfork_catchpoint): Add argument.
12828 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12829 (update_current_target): Update.
12830 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12831 argument.
12832
12833 2014-02-19 Tom Tromey <tromey@redhat.com>
12834
12835 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12836 argument.
12837 (target_remove_fork_catchpoint): Add argument.
12838 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12839 (update_current_target): Update.
12840 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12841 argument.
12842
12843 2014-02-19 Tom Tromey <tromey@redhat.com>
12844
12845 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12846 argument.
12847 (target_insert_fork_catchpoint): Add argument.
12848 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12849 (update_current_target): Update.
12850 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12851 argument.
12852
12853 2014-02-19 Tom Tromey <tromey@redhat.com>
12854
12855 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12856 argument.
12857 (target_post_startup_inferior): Add argument.
12858 * target.c (debug_to_post_startup_inferior): Add argument.
12859 (update_current_target): Update.
12860 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12861 argument.
12862 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12863 argument.
12864 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12865 argument.
12866 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12867 argument.
12868 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12869 'self' argument.
12870 (super_post_startup_inferior): Likewise.
12871 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12872 'self' argument.
12873 (super_post_startup_inferior): Likewise.
12874 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12875 Add 'self' argument.
12876 (super_post_startup_inferior): Likewise.
12877
12878 2014-02-19 Tom Tromey <tromey@redhat.com>
12879
12880 * target.h (struct target_ops) <to_load>: Add argument.
12881 * target.c (target_load): Add argument.
12882 (debug_to_load): Add argument.
12883 (update_current_target): Update.
12884 * remote.c (remote_load): Add 'self' argument.
12885 * remote-sim.c (gdbsim_load): Add 'self' argument.
12886 * remote-mips.c (mips_load): Add 'self' argument.
12887 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12888 * monitor.c (monitor_load): Add 'self' argument.
12889 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12890
12891 2014-02-19 Tom Tromey <tromey@redhat.com>
12892
12893 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12894 (target_terminal_info): Add argument.
12895 * target.c (debug_to_terminal_info): Add argument.
12896 (default_terminal_info): Likewise.
12897 * inflow.c (child_terminal_info): Add 'self' argument.
12898 * inferior.h (child_terminal_info): Add 'self' argument.
12899 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12900
12901 2014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12904 argument.
12905 (target_terminal_save_ours): Add argument.
12906 * target.c (debug_to_terminal_save_ours): Add argument.
12907 (update_current_target): Update.
12908 * inflow.c (terminal_save_ours): Add 'self' argument.
12909 * inferior.h (terminal_save_ours): Add 'self' argument.
12910
12911 2014-02-19 Tom Tromey <tromey@redhat.com>
12912
12913 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12914 (target_terminal_ours): Add argument.
12915 * target.c (debug_to_terminal_ours): Add argument.
12916 (update_current_target): Update.
12917 * remote.c (remote_terminal_ours): Add 'self' argument.
12918 (remote_close): Update.
12919 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12920 * inflow.c (terminal_ours): Add 'self' argument.
12921 * inferior.h (terminal_ours): Add 'self' argument.
12922 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12923
12924 2014-02-19 Pedro Alves <palves@redhat.com>
12925 Tom Tromey <tromey@redhat.com>
12926
12927 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12928 argument.
12929 (target_terminal_ours_for_output): Add argument.
12930 * target.c (debug_to_terminal_ours_for_output): Add argument.
12931 (update_current_target): Update.
12932 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12933 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12934 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12935
12936 2014-02-19 Tom Tromey <tromey@redhat.com>
12937
12938 * target.h (struct target_ops) <to_terminal_inferior>: Add
12939 argument.
12940 * target.c (target_terminal_inferior): Add argument.
12941 (update_current_target): Update.
12942 * remote.c (remote_terminal_inferior): Add 'self' argument.
12943 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12944 * inflow.c (terminal_inferior): Add 'self' argument.
12945 * inferior.h (terminal_inferior): Add 'self' argument.
12946 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12947 (go32_terminal_inferior): Add 'self' argument.
12948
12949 2014-02-19 Tom Tromey <tromey@redhat.com>
12950
12951 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12952 (target_terminal_init): Add argument.
12953 * target.c (debug_to_terminal_init): Add argument.
12954 (update_current_target): Update.
12955 * inflow.c (terminal_init_inferior): Add 'self' argument.
12956 * inferior.h (terminal_init_inferior): Add 'self' argument.
12957 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12958 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12959
12960 2014-02-19 Tom Tromey <tromey@redhat.com>
12961
12962 * target.h (struct target_ops)
12963 <to_can_accel_watchpoint_condition>: Add argument.
12964 (target_can_accel_watchpoint_condition): Add argument.
12965 * target.c (debug_to_can_accel_watchpoint_condition): Add
12966 argument.
12967 (update_current_target): Update.
12968 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12969 'self' argument.
12970
12971 2014-02-19 Tom Tromey <tromey@redhat.com>
12972
12973 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12974 Add argument.
12975 (target_region_ok_for_hw_watchpoint): Add argument.
12976 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12977 (default_region_ok_for_hw_watchpoint): Add argument.
12978 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12979 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12980 argument.
12981 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12982 argument.
12983 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12984 argument.
12985 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12986 'self' argument.
12987 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12988 'self' argument.
12989 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12990 'self' argument.
12991 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12992 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12993 'self' argument.
12994 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12995 Add 'self' argument.
12996
12997 2014-02-19 Tom Tromey <tromey@redhat.com>
12998
12999 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13000 argument.
13001 (target_insert_watchpoint): Add argument.
13002 * target.c (debug_to_insert_watchpoint): Add argument.
13003 (update_current_target): Update.
13004 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13005 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13006 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13007 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13008 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13009 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13010 argument.
13011 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13012 (procfs_insert_hw_watchpoint): Add 'self' argument.
13013 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13014 argument.
13015 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13016 argument.
13017 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13018 argument.
13019 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13020 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13021 argument.
13022 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13023 'self' argument.
13024
13025 2014-02-19 Tom Tromey <tromey@redhat.com>
13026
13027 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13028 argument.
13029 (target_remove_watchpoint): Add argument.
13030 * target.c (debug_to_remove_watchpoint): Add argument.
13031 (update_current_target): Update.
13032 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13033 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13034 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13035 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13036 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13037 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13038 argument.
13039 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13040 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13041 argument.
13042 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13043 argument.
13044 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13045 argument.
13046 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13047 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13048 argument.
13049 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13050 'self' argument.
13051
13052 2014-02-19 Tom Tromey <tromey@redhat.com>
13053
13054 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13055 argument.
13056 (target_remove_hw_breakpoint): Add argument.
13057 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13058 (update_current_target): Update.
13059 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13060 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13061 argument.
13062 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13063 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13064 argument.
13065 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13066 'self' argument.
13067
13068 2014-02-19 Tom Tromey <tromey@redhat.com>
13069
13070 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13071 argument.
13072 (target_insert_hw_breakpoint): Add argument.
13073 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13074 (update_current_target): Update.
13075 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13076 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13077 argument.
13078 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13079 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13080 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13081 argument.
13082 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13083 'self' argument.
13084
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13086
13087 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13088 argument.
13089 (target_can_use_hardware_watchpoint): Add argument.
13090 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13091 (update_current_target): Update.
13092 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13093 argument.
13094 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13095 argument.
13096 * remote.c (remote_check_watch_resources): Add 'self' argument.
13097 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13098 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13099 argument.
13100 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13101 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13102 argument.
13103 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13104 argument.
13105 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13106 argument.
13107 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13108 argument.
13109 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13110 argument.
13111 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13112 argument.
13113 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13114 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13115 argument.
13116 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13117 'self' argument.
13118
13119 2014-02-19 Tom Tromey <tromey@redhat.com>
13120
13121 * target.h (struct target_ops) <to_post_attach>: Add argument.
13122 (target_post_attach): Add argument.
13123 * target.c (debug_to_post_attach): Add argument.
13124 (update_current_target): Update.
13125 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13126 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13127 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13128 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13129 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13130
13131 2014-02-19 Tom Tromey <tromey@redhat.com>
13132
13133 * windows-nat.c (windows_close): Add 'self' argument.
13134 * tracepoint.c (tfile_close): Add 'self' argument.
13135 * target.h (struct target_ops) <to_close>: Add argument.
13136 * target.c (target_close): Add argument.
13137 (update_current_target): Update.
13138 * remote.c (remote_close): Add 'self' argument.
13139 * remote-sim.c (gdbsim_close): Add 'self' argument.
13140 * remote-mips.c (mips_close): Add 'self' argument.
13141 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13142 * record-full.c (record_full_close): Add 'self' argument.
13143 * record-btrace.c (record_btrace_close): Add 'self' argument.
13144 * monitor.h (monitor_close): Add 'self' argument.
13145 * monitor.c (monitor_close): Add 'self' argument.
13146 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13147 * linux-nat.c (linux_nat_close): Add argument.
13148 * go32-nat.c (go32_close): Add 'self' argument.
13149 * exec.c (exec_close_1): Add 'self' argument.
13150 * ctf.c (ctf_close): Add 'self' argument.
13151 * corelow.c (core_close): Add 'self' argument.
13152 (core_close_cleanup): Update.
13153 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13154 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13155
13156 2014-02-19 Tom Tromey <tromey@redhat.com>
13157
13158 * remote.c (remote_load): New function.
13159 (init_remote_ops): Use it.
13160
13161 2014-02-19 Tom Tromey <tromey@redhat.com>
13162
13163 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13164 argument.
13165 * common/linux-btrace.h (linux_supports_btrace): Update.
13166 * remote.c (remote_supports_btrace): Add "self" argument.
13167 * target-delegates.c: Rebuild.
13168 * target.c (target_supports_btrace): Remove.
13169 * target.h (struct target_ops) <to_supports_btrace>: Add
13170 target_ops argument.
13171 (target_supports_btrace): New define.
13172
13173 2014-02-19 Tom Tromey <tromey@redhat.com>
13174
13175 * record-full.c (record_full_beneath_to_resume_ops)
13176 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13177 (record_full_beneath_to_wait)
13178 (record_full_beneath_to_store_registers_ops)
13179 (record_full_beneath_to_store_registers)
13180 (record_full_beneath_to_xfer_partial_ops)
13181 (record_full_beneath_to_xfer_partial)
13182 (record_full_beneath_to_insert_breakpoint_ops)
13183 (record_full_beneath_to_insert_breakpoint)
13184 (record_full_beneath_to_remove_breakpoint_ops)
13185 (record_full_beneath_to_remove_breakpoint)
13186 (record_full_beneath_to_stopped_by_watchpoint)
13187 (record_full_beneath_to_stopped_data_address)
13188 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13189 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13190 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13191 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13192 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13193 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13194 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13195 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13196 (record_full_resume, record_full_wait_1)
13197 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13198 (record_full_store_registers, record_full_xfer_partial)
13199 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13200 (record_full_async, record_full_core_xfer_partial): Use target
13201 delegation.
13202 * target-delegates.c: Rebuild.
13203 * target.c (current_xfer_partial): Remove.
13204 (update_current_target): Do not INHERIT or de_fault
13205 to_insert_breakpoint, to_remove_breakpoint,
13206 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13207 to_is_async_p, to_async. Do not set to_xfer_partial field.
13208 (default_xfer_partial): Simplify.
13209 (current_xfer_partial): Remove.
13210 (target_wait, target_resume): Simplify.
13211 (find_default_can_async_p, find_default_is_async_p): Update.
13212 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13213 to_xfer_partial, to_stopped_by_watchpoint,
13214 to_stopped_data_address.
13215 (target_store_registers): Simplify.
13216 (forward_target_remove_breakpoint)
13217 (forward_target_insert_breakpoint): Remove.
13218 (target_remove_breakpoint, target_insert_breakpoint)
13219 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13220 * target.h (struct target_ops) <to_resume, to_wait,
13221 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13222 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13223 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13224 markup.
13225 (forward_target_remove_breakpoint)
13226 (forward_target_insert_breakpoint): Remove.
13227 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13228 directly.
13229 (record_btrace_insert_breakpoint): Delegate directly.
13230
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 PR build/7701:
13234 * target-delegates.c: New file.
13235 * target.c: Include target-delegates.c.
13236 (init_dummy_target): Call install_dummy_methods.
13237 (complete_target_initialization): Call install_delegators.
13238 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13239 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13240 * make-target-delegates: New file.
13241
13242 2014-02-19 Tom Tromey <tromey@redhat.com>
13243
13244 * record.c (find_record_target): Use find_target_at.
13245 * target.c (find_target_at): New function.
13246 * target.h (find_target_at): Declare.
13247
13248 2014-02-19 Tom Tromey <tromey@redhat.com>
13249
13250 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13251 Add 'ops' argument.
13252 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13253 'ops' argument.
13254 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13255 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13256 'ops' argument.
13257 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13258 argument.
13259 * linux-nat.c (save_sigtrap): Update.
13260 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13261 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13262 (linux_nat_close): Update.
13263 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13264 argument.
13265 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13266 argument.
13267 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13268 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13269 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13270 (tmp_to_async): Add 'ops' argument.
13271 (record_full_stopped_by_watchpoint, record_full_async)
13272 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13273 argument.
13274 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13275 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13276 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13277 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13278 (remote_is_async_p, remote_async): Add 'ops' argument.
13279 (remote_stopped_data_address): Update.
13280 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13281 * target.c (update_current_target)
13282 (find_default_can_async_p, find_default_is_async_p): Update.
13283 (init_dummy_target): Update.
13284 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13285 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13286 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13287 (target_can_async_p, target_is_async_p, target_async)
13288 (target_stopped_by_watchpoint): Update.
13289
13290 2014-02-19 Yao Qi <yao@codesourcery.com>
13291
13292 PR gdb/16220
13293 * gdbarch.sh: Remove startup_gdbarch.
13294 * gdbarch.c: Regenerated.
13295 * gdbarch.h: Likewise.
13296
13297 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13298
13299 * rl78-tdep.c (rl78_g10_register_name): New function.
13300 (rl78_return_value): Add g10 support.
13301 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13302 g10.
13303
13304 2014-02-17 Doug Evans <xdje42@gmail.com>
13305
13306 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13307 (SUBDIR_GUILE_SRCS): Ditto.
13308 (scm-gsmob.o): Ditto.
13309
13310 2014-02-17 Yao Qi <yao@codesourcery.com>
13311
13312 * gnu-nat.c (ILL_RPC): Declare defined function.
13313
13314 2014-02-17 Yao Qi <yao@codesourcery.com>
13315
13316 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13317 mach_msg_type_number_t.
13318 (gnu_write_inferior): Likewise.
13319
13320 2014-02-17 Yao Qi <yao@codesourcery.com>
13321
13322 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13323 in format string.
13324 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13325 (inf_validate_procs, inf_signal): Likewise.
13326 (S_exception_raise_request): Likewise.
13327 (do_mach_notify_dead_name): Likewise.
13328 (steal_exc_port): Likewise.
13329 (gnu_read_inferior): Change 'copy_count''s type to
13330 mach_msg_type_number_t.
13331 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13332 format string.
13333
13334 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13335
13336 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13337 flag. Adjust all users; in particular...
13338 (gnu_wait): ..., don't decrement its value in here...
13339 (gnu_create_inferior): ..., and instead set the flag in here,
13340 around the startup_inferior call, and call that one with
13341 START_INFERIOR_TRAPS_EXPECTED.
13342
13343 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13344 (ILL_RPC): ... new macro.
13345 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13346 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13347 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13348 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13349 functions with ILL_RPC macro.
13350 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13351 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13352 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13353 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13354 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13355 (S_proc_getlogin_reply, S_proc_getsid_reply)
13356 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13357 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13358 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13359 (S_proc_getnports_reply, S_proc_is_important_reply)
13360 (S_proc_get_code_reply): New stub functions, generated with
13361 ILL_RPC macro.
13362
13363 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13364 collected the type check structures.
13365
13366 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13367
13368 2014-02-14 Doug Evans <dje@google.com>
13369
13370 * target.c (target_write_partial): Fix result type.
13371
13372 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13373
13374 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13375 the proper offsets to access fpregset_t.
13376
13377 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13378
13379 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13380 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13381 * h8300-tdep.c (setmachinelist): Remove global.
13382 * hppa-tdep.c (hppa_sigtramp): Remove global.
13383 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13384 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13385 * ravenscar-thread.c (update_target_observer): Remove global.
13386 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13387
13388 2014-02-12 Tom Tromey <tromey@redhat.com>
13389
13390 * common/rsp-low.c: Update comments.
13391 * common/rsp-low.h: Update comments.
13392
13393 2014-02-12 Tom Tromey <tromey@redhat.com>
13394
13395 * common/rsp-low.c (convert_ascii_to_int): Remove.
13396 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13397
13398 2014-02-12 Tom Tromey <tromey@redhat.com>
13399
13400 * common/rsp-low.h (unhexify): Don't declare.
13401 * common/rsp-low.c (unhexify): Remove.
13402
13403 2014-02-12 Tom Tromey <tromey@redhat.com>
13404
13405 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13406 * common/rsp-low.c (convert_int_to_ascii): Remove.
13407
13408 2014-02-12 Tom Tromey <tromey@redhat.com>
13409
13410 * common/rsp-low.h (hexify): Don't declare.
13411 * common/rsp-low.c (hexify): Remove.
13412
13413 2014-02-12 Tom Tromey <tromey@redhat.com>
13414
13415 * common/rsp-low.c (hexify): Never take strlen of argument.
13416
13417 2014-02-12 Tom Tromey <tromey@redhat.com>
13418
13419 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13420 * remote.c (extended_remote_run, remote_rcmd)
13421 (remote_download_trace_state_variable, remote_save_trace_data)
13422 (remote_set_trace_notes): Update.
13423 * tracepoint.c (encode_source_string, tfile_write_status)
13424 (tfile_write_uploaded_tsv): Update.
13425
13426 2014-02-12 Tom Tromey <tromey@redhat.com>
13427
13428 * tracepoint.c: Include rsp-low.h.
13429 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13430 * remote.c: Include rsp-low.h.
13431 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13432 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13433 (remote_unescape_input): Move to common/rsp-low.c.
13434 * common/rsp-low.h: New file.
13435 * common/rsp-low.c: New file.
13436 * Makefile.in (SFILES): Add common/rsp-low.c.
13437 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13438 (COMMON_OBS): Add rsp-low.o.
13439 (rsp-low.o): New target.
13440
13441 2014-02-12 Tom Tromey <tromey@redhat.com>
13442
13443 * utils.h: Include print-utils.h.
13444 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13445 (int_string, core_addr_to_string, core_addr_to_string_nz)
13446 (hex_string, hex_string_custom): Don't declare.
13447 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13448 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13449 (hex_string_custom, int_string, core_addr_to_string)
13450 (core_addr_to_string_nz, host_address_to_string): Move to
13451 common/print-utils.c.
13452 * common/print-utils.h: New file.
13453 * common/print-utils.c: New file
13454 * Makefile.in (SFILES): Add common/print-utils.c.
13455 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13456 (COMMON_OBS): Add print-utils.o.
13457 (print-utils.o): New target.
13458
13459 2014-02-12 Tom Tromey <tromey@redhat.com>
13460
13461 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13462
13463 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13464
13465 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13466
13467 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13468
13469 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13470 if a PT_IO ptrace request returns sucessfully but indicates that 0
13471 bytes were transferred.
13472
13473 2014-02-12 Pedro Alves <palves@redhat.com>
13474 Kevin Buettner <kevinb@redhat.com>
13475
13476 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13477 TYPE_INSTANCE_FLAG_CODE_SPACE.
13478
13479 2014-02-12 Pedro Alves <palves@redhat.com>
13480
13481 * h8300-tdep.c (pseudo_from_raw_register)
13482 (raw_from_pseudo_register): New functions.
13483 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13484 them.
13485
13486 2014-02-12 Pedro Alves <palves@redhat.com>
13487
13488 * h8300-tdep.c (h8300_register_sim_regno): New function.
13489 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13490 gdbarch_register_sim_regno hook.
13491
13492 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13493
13494 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13495
13496 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13497
13498 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13499
13500 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13501
13502 * obsd-tdep.h (obsd_init_abi): New prototype.
13503 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13504 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13505 (obsd_init_abi): New functions.
13506 * i386obsd-tdep.c: Include "obsd-tdep.h".
13507 (i386obsd_init_abi): Call obsd_init_abi.
13508 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13509 (amd64obsd_init_abi): Call obsd_init_abi.
13510 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13511 obsd-tdep.c to gdb_target_obs.
13512
13513 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13514
13515 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13516 double float arguments to 16-byte in the argument slots.
13517
13518 2014-02-11 Doug Evans <xdje42@gmail.com>
13519
13520 * configure.ac: Don't crash if pkg-config is not found and guile
13521 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13522 in guile checks.
13523 * configure: Regenerate.
13524
13525 2014-02-11 Yao Qi <yao@codesourcery.com>
13526
13527 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13528 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13529 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13530 * gnu-nat.c (gnu_xfer_memory): Likewise.
13531 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13532 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13533 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13534 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13535
13536 2014-02-11 Yao Qi <yao@codesourcery.com>
13537
13538 * target.h (enum target_xfer_error): Rename to ...
13539 (enum target_xfer_status): ... it. New. All users updated.
13540 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13541 New.
13542 (TARGET_XFER_STATUS_ERROR_P): New macro.
13543 (target_xfer_error_to_string): Remove declaration.
13544 (target_xfer_status_to_string): Declare.
13545 (target_xfer_partial_ftype): Adjust it.
13546 (struct target_ops) <to_xfer_partial>: Return
13547 target_xfer_status. Add argument xfered_len. Update
13548 comments.
13549 * target.c (target_xfer_error_to_string): Rename to ...
13550 (target_xfer_status_to_string): ... it. New. All callers
13551 updated.
13552 (target_read_live_memory): Likewise. Call target_xfer_partial
13553 instead of target_read.
13554 (memory_xfer_live_readonly_partial): Return
13555 target_xfer_status. Add argument xfered_len.
13556 (raw_memory_xfer_partial): Likewise.
13557 (memory_xfer_partial_1): Likewise.
13558 (memory_xfer_partial): Likewise.
13559 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13560 properly. Update debug message.
13561 (default_xfer_partial, current_xfer_partial): Likewise.
13562 (target_write_partial): Likewise.
13563 (target_read_partial): Likewise. All callers updated.
13564 (read_whatever_is_readable): Likewise.
13565 (target_write_with_progress): Likewise.
13566 (target_read_alloc_1): Likewise.
13567
13568 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13569 * auxv.c (procfs_xfer_auxv): Likewise.
13570 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13571 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13572 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13573 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13574 * corefile.c (read_memory): Adjust.
13575 * corelow.c (core_xfer_partial): Likewise.
13576 * ctf.c (ctf_xfer_partial): Likewise.
13577 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13578 updated.
13579 (darwin_xfer_partial): Likewise.
13580 * exec.c (section_table_xfer_memory_partial): Likewise. All
13581 callers updated.
13582 (exec_xfer_partial): Likewise.
13583 * exec.h (section_table_xfer_memory_partial): Update
13584 declaration.
13585 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13586 negative.
13587 (gnu_xfer_partial): Likewise.
13588 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13589 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13590 (ia64_hpux_xfer_solib_got): Likewise.
13591 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13592 type of 'partial_len' to ULONGEST.
13593 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13594 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13595 (linux_nat_xfer_partial): Likewise.
13596 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13597 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13598 * monitor.c (monitor_xfer_memory): Likewise.
13599 (monitor_xfer_partial): Likewise.
13600 * procfs.c (procfs_xfer_partial): Likewise.
13601 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13602 * record-full.c (record_full_xfer_partial): Likewise.
13603 (record_full_core_xfer_partial): Likewise.
13604 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13605 (gdbsim_xfer_partial): Likewise.
13606 * remote.c (remote_write_bytes_aux): Likewise. All callers
13607 updated.
13608 (remote_write_bytes, remote_read_bytes): Likewise. All
13609 callers updated.
13610 (remote_flash_erase): Likewise. All callers updated.
13611 (remote_write_qxfer): Likewise. All callers updated.
13612 (remote_read_qxfer): Likewise. All callers updated.
13613 (remote_xfer_partial): Likewise.
13614 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13615 (rs6000_xfer_shared_libraries): Likewise.
13616 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13617 (sol_thread_xfer_partial): Likewise.
13618 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13619 (sparc_xfer_partial): Likewise.
13620 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13621 updated.
13622 (spu_xfer_partial): Likewise.
13623 * spu-multiarch.c (spu_xfer_partial): Likewise.
13624 * tracepoint.c (tfile_xfer_partial): Likewise.
13625 * windows-nat.c (windows_xfer_memory): Likewise.
13626 (windows_xfer_shared_libraries): Likewise.
13627 (windows_xfer_partial): Likewise.
13628 * valprint.c: Replace 'target_xfer_error' with
13629 'target_xfer_status' in comments.
13630
13631 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13632
13633 Checked in by Joel Brobecker <brobecker@adacore.com>.
13634 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13635
13636 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13637
13638 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13639 function parameters.
13640
13641 2014-02-10 Will Newton <will.newton@linaro.org>
13642
13643 * elfread.c (elf_rel_plt_read): Look for a .got section if
13644 looking up .got.plt fails.
13645 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13646 on address passed to elf_gnu_ifunc_record_cache.
13647 (elf_gnu_ifunc_resolve_addr): Likewise.
13648 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13649
13650 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13651
13652 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13653 (X_RETTURN): New macro.
13654 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13655
13656 * sparc64-tdep.c (sparc64_init_abi): Hook
13657 sparc_in_function_epilogue_p.
13658
13659 2014-02-10 Gary Benson <gbenson@redhat.com>
13660
13661 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13662 Rename name_matcher to symbol_matcher.
13663
13664 2014-02-10 Gary Benson <gbenson@redhat.com>
13665
13666 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13667 Use expand_symtabs_file_matcher_ftype and
13668 expand_symtabs_symbol_matcher_ftype.
13669
13670 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13671
13672 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13673 (struct ada_symbol_cache): New.
13674 (ada_free_symbol_cache): Forward declare.
13675 (struct ada_pspace_data): New.
13676 (ada_pspace_data_handle): New static global.
13677 (get_ada_pspace_data, ada_pspace_data_cleanup)
13678 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13679 (cache_space, cache): Delete, now folded inside struct
13680 ada_pspace_data.
13681 (ada_get_symbol_cache): New function.
13682 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13683 implementation.
13684 (_initialize_ada_language): Remove initialization of cache_space.
13685 Move call to observer_attach_inferior_exit up, grouping it
13686 with the other observer registrations inside this function.
13687 Rename command to be more general. Add call to
13688 register_program_space_data_with_cleanup.
13689
13690 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13691
13692 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13693 ada_new_objfile_observer.
13694 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13695 (_initialize_tasks): Update uses of ada_new_objfile_observer
13696 and ada_tasks_normal_stop_observer.
13697
13698 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13699
13700 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13701 returned by the 'Length attribute to integer.
13702
13703 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13704
13705 * ada-lang.c (_initialize_ada_language): Initialize
13706 cache_space obstack.
13707
13708 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13709
13710 * ada-lang.c (HASH_SIZE): New macro.
13711 (struct cache_entry): New type.
13712 (cache_space, cache): New static globals.
13713 (ada_clear_symbol_cache, find_entry): New functions.
13714 (lookup_cached_symbol, cache_symbol): Implement.
13715 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13716 (_initialize_ada_language): Attach ada_new_objfile_observer
13717 and ada_free_objfile_observer.
13718
13719 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13720
13721 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13722 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13723 struct block * parameter.
13724 (ada_lookup_symbol_list_worker): Constify local variable "block".
13725 Remove cast which is no longer necessary.
13726
13727 2014-02-10 Doug Evans <xdje42@gmail.com>
13728
13729 Add Guile as an extension language.
13730 * NEWS: Mention Guile scripting.
13731 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13732 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13733 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13734 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13735 (CLIBS): Add GUILE_LIBS.
13736 (install-guile): New rule.
13737 (guile.o): New rule.
13738 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13739 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13740 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13741 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13742 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13743 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13744 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13745 * configure.ac: New option --with-guile.
13746 * configure: Regenerate.
13747 * config.in: Regenerate.
13748 * auto-load.c: Remove #include "python/python.h". Add #include
13749 "gdb/section-scripts.h".
13750 (source_section_scripts): Handle Guile scripts.
13751 (_initialize_auto_load): Add name of Guile objfile script to
13752 scripts-directory help text.
13753 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13754 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13755 (struct breakpoint): New member scm_bp_object.
13756 * defs.h (enum command_control_type): New value guile_control.
13757 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13758 "extension.h".
13759 (show_user): Update comment.
13760 (_initialize_cli_cmds): Update help text for "show user". Update help
13761 text for max-user-call-depth.
13762 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13763 "extension.h".
13764 (multi_line_command_p): Add guile_control.
13765 (print_command_lines): Handle guile_control.
13766 (execute_control_command, recurse_read_control_structure): Ditto.
13767 (process_next_line): Recognize "guile" commands.
13768 * disasm.c (gdb_disassemble_info): Make non-static.
13769 * disasm.h: #include "dis-asm.h".
13770 (struct gdbarch): Add forward decl.
13771 (gdb_disassemble_info): Declare.
13772 * extension.c: #include "guile/guile.h".
13773 (extension_languages): Add guile.
13774 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13775 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13776 * gdbtypes.c (get_unsigned_type_max): New function.
13777 (get_signed_type_minmax): New function.
13778 * gdbtypes.h (get_unsigned_type_max): Declare.
13779 (get_signed_type_minmax): Declare.
13780 * guile/README: New file.
13781 * guile/guile-internal.h: New file.
13782 * guile/guile.c: New file.
13783 * guile/guile.h: New file.
13784 * guile/scm-arch.c: New file.
13785 * guile/scm-auto-load.c: New file.
13786 * guile/scm-block.c: New file.
13787 * guile/scm-breakpoint.c: New file.
13788 * guile/scm-disasm.c: New file.
13789 * guile/scm-exception.c: New file.
13790 * guile/scm-frame.c: New file.
13791 * guile/scm-gsmob.c: New file.
13792 * guile/scm-iterator.c: New file.
13793 * guile/scm-lazy-string.c: New file.
13794 * guile/scm-math.c: New file.
13795 * guile/scm-objfile.c: New file.
13796 * guile/scm-ports.c: New file.
13797 * guile/scm-pretty-print.c: New file.
13798 * guile/scm-safe-call.c: New file.
13799 * guile/scm-string.c: New file.
13800 * guile/scm-symbol.c: New file.
13801 * guile/scm-symtab.c: New file.
13802 * guile/scm-type.c: New file.
13803 * guile/scm-utils.c: New file.
13804 * guile/scm-value.c: New file.
13805 * guile/lib/gdb.scm: New file.
13806 * guile/lib/gdb/boot.scm: New file.
13807 * guile/lib/gdb/experimental.scm: New file.
13808 * guile/lib/gdb/init.scm: New file.
13809 * guile/lib/gdb/iterator.scm: New file.
13810 * guile/lib/gdb/printing.scm: New file.
13811 * guile/lib/gdb/types.scm: New file.
13812 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13813 (VPATH): Add $(GUILE_SRCDIR).
13814 (GUILE_DIR): New variable.
13815 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13816 (all): Add stamp-guile dependency.
13817 (stamp-guile): New rule.
13818 (clean-guile, install-guile, uninstall-guile): New rules.
13819 (install-only): Add install-guile dependency.
13820 (uninstall): Add uninstall-guile dependency.
13821 (clean): Add clean-guile dependency.
13822
13823 2014-02-09 Doug Evans <xdje42@gmail.com>
13824
13825 Revert this patch (which I approved, mea culpa).
13826
13827 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13828
13829 * Makefile.in (all-lib): Remove.
13830 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13831
13832 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13833
13834 Fix Python stack corruption.
13835 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13836 gdb_py_longest.
13837
13838 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13839
13840 * Makefile.in (all-lib): Remove.
13841 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13842
13843 2014-02-07 Doug Evans <dje@google.com>
13844
13845 * extension-priv.h (extension_language_script_ops): Add comment.
13846 (extension_language_ops): Add comment.
13847 (active_ext_lang_state): Fix typo in comment.
13848
13849 2014-02-07 Pedro Alves <palves@redhat.com>
13850
13851 PR breakpoints/16292
13852 * infrun.c (handle_signal_stop) <signal arrives while stepping
13853 over a breakpoint>: Switch back to the stepping thread.
13854
13855 2014-02-07 Yao Qi <yao@codesourcery.com>
13856
13857 * target.c (target_xfer_partial): Return zero if LEN is zero.
13858
13859 2014-02-07 Yao Qi <yao@codesourcery.com>
13860
13861 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13862 (ld_so_xfer_auxv): Likewise.
13863 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13864 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13865 * corelow.c (core_xfer_partial): Likewise.
13866 * ctf.c (ctf_xfer_partial): Likewise.
13867 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13868 (darwin_xfer_partial): Likewise.
13869 * exec.c (exec_xfer_partial): Likewise.
13870 * gnu-nat.c (gnu_xfer_partial): Likewise.
13871 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13872 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13873 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13874 * linux-nat.c (linux_xfer_siginfo): Likewise.
13875 (linux_proc_xfer_spu): Likewise.
13876 * procfs.c (procfs_xfer_partial): Likewise.
13877 * record-full.c (record_full_xfer_partial): Likewise.
13878 (record_full_core_xfer_partial): Likewise.
13879 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13880 * remote.c (remote_write_qxfer): Likewise.
13881 (remote_write_qxfer, remote_read_qxfer): Likewise.
13882 (remote_xfer_partial): Likewise.
13883 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13884 (rs6000_xfer_shared_libraries): Likewise.
13885 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13886 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13887 (spu_xfer_partial): Likewise.
13888 * target.c (memory_xfer_partial_1): Likewise.
13889 * tracepoint.c (tfile_xfer_partial): Likewise.
13890 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13891 (windows_xfer_partial): Likewise.
13892
13893 2014-02-07 Yao Qi <yao@codesourcery.com>
13894
13895 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13896 comments.
13897 (core_xfer_shared_libraries_aix): Likewise.
13898 * gdbarch.c, gdbarch.h: Regenerated.
13899 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13900 ULONGEST. Change 'len_avail' type to ULONGEST.
13901 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13902 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13903 declaration.
13904 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13905
13906 2014-02-07 Yao Qi <yao@codesourcery.com>
13907
13908 * corefile.c (memory_error): Get 'exception' from ERR and pass
13909 'exception' to throw_error.
13910
13911 2014-02-06 Doug Evans <xdje42@gmail.com>
13912
13913 * configure.ac (libpython checking): Remove all but python.o from
13914 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13915 * configure: Regenerate.
13916
13917 * Makefile.in (SFILES): Add extension.c.
13918 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13919 (COMMON_OBS): Add extension.o.
13920 * extension.h: New file.
13921 * extension-priv.h: New file.
13922 * extension.c: New file.
13923
13924 * python/python-internal.h: #include "extension.h".
13925 (gdbpy_auto_load_enabled): Declare.
13926 (gdbpy_apply_val_pretty_printer): Declare.
13927 (gdbpy_apply_frame_filter): Declare.
13928 (gdbpy_preserve_values): Declare.
13929 (gdbpy_breakpoint_cond_says_stop): Declare.
13930 (gdbpy_breakpoint_has_cond): Declare.
13931 (void source_python_script_for_objfile): Delete.
13932 * python/python.c: #include "extension-priv.h".
13933 Delete inclusion of "observer.h".
13934 (extension_language_python): Moved here and renamed from
13935 script_language_python in py-auto-load.c.
13936 Redefined to be of type extension_language_defn.
13937 (python_extension_script_ops): New global.
13938 (python_extension_ops): New global.
13939 (struct python_env): New member previous_active.
13940 (restore_python_env): Call restore_active_ext_lang.
13941 (ensure_python_env): Call set_active_ext_lang.
13942 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13943 New arg extlang.
13944 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13945 New arg extlang.
13946 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13947 New arg extlang.
13948 (gdbpy_eval_from_control_command): Renamed from
13949 eval_python_from_control_command, made static. New arg extlang.
13950 (gdbpy_source_script) Renamed from source_python_script, made static.
13951 New arg extlang.
13952 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13953 result to int. New arg extlang.
13954 (gdbpy_source_objfile_script): Renamed from
13955 source_python_script_for_objfile, made static. New arg extlang.
13956 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13957 static. New args extlang, extlang_printers. Change result type to
13958 "void".
13959 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13960 static. New arg extlang. Rename arg printers to extlang_printers
13961 and change type to ext_lang_type_printers *.
13962 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13963 static. Replace argument arg with extlang, extlang_printers.
13964 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13965 (!HAVE_PYTHON, source_python_script): Delete.
13966 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13967 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13968 (!HAVE_PYTHON, start_type_printers): Delete.
13969 (!HAVE_PYTHON, apply_type_printers): Delete.
13970 (!HAVE_PYTHON, free_type_printers): Delete.
13971 (_initialize_python): Delete call to observer_attach_before_prompt.
13972 (finalize_python): Set/restore active extension language.
13973 (gdbpy_finish_initialization) Renamed from
13974 finish_python_initialization, made static. New arg extlang.
13975 (gdbpy_initialized): New function.
13976 * python/python.h: #include "extension.h". Delete #include
13977 "value.h", "mi/mi-cmds.h".
13978 (extension_language_python): Declare.
13979 (GDBPY_AUTO_FILE_NAME): Delete.
13980 (enum py_bt_status): Moved to extension.h and renamed to
13981 ext_lang_bt_status.
13982 (enum frame_filter_flags): Moved to extension.h.
13983 (enum py_frame_args): Moved to extension.h and renamed to
13984 ext_lang_frame_args.
13985 (finish_python_initialization): Delete.
13986 (eval_python_from_control_command): Delete.
13987 (source_python_script): Delete.
13988 (apply_val_pretty_printer): Delete.
13989 (apply_frame_filter): Delete.
13990 (preserve_python_values): Delete.
13991 (gdbpy_script_language_defn): Delete.
13992 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13993 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13994
13995 * auto-load.c: #include "extension.h".
13996 (GDB_AUTO_FILE_NAME): Delete.
13997 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13998 (script_language_gdb): Delete, moved to extension.c and renamed to
13999 extension_language_gdb.
14000 (source_gdb_script_for_objfile): Delete.
14001 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14002 (loaded_script): Change type of language member to
14003 struct extension_language_defn *.
14004 (init_loaded_scripts_info): Initialize
14005 unsupported_script_warning_printed.
14006 (maybe_add_script): Make static. Change type of language arg to
14007 struct extension_language_defn *.
14008 (clear_section_scripts): Reset unsupported_script_warning_printed.
14009 (auto_load_objfile_script_1): Rewrite to use extension language API.
14010 (auto_load_objfile_script): Make public. Remove support-compiled-in
14011 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14012 (source_section_scripts): Rewrite to use extension language API.
14013 (load_auto_scripts_for_objfile): Rewrite to use
14014 auto_load_scripts_for_objfile.
14015 (collect_matching_scripts_data): Change type of language member to
14016 struct extension_language_defn *.
14017 (auto_load_info_scripts): Change type of language arg to
14018 struct extension_language_defn *.
14019 (unsupported_script_warning_print): New function.
14020 (script_not_found_warning_print): Make static.
14021 (_initialize_auto_load): Rewrite construction of scripts-directory
14022 help.
14023 * auto-load.h (struct objfile): Add forward decl.
14024 (struct script_language): Delete.
14025 (struct auto_load_pspace_info): Add forward decl.
14026 (struct extension_language_defn): Add forward decl.
14027 (maybe_add_script): Delete.
14028 (auto_load_objfile_script): Declare.
14029 (script_not_found_warning_print): Delete.
14030 (auto_load_info_scripts): Update prototype.
14031 (auto_load_gdb_scripts_enabled): Declare.
14032 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14033 auto_load_python_scripts_enabled and made public.
14034 (script_language_python): Delete, moved to python.c.
14035 (gdbpy_script_language_defn): Delete.
14036 (info_auto_load_python_scripts): Update to use
14037 extension_language_python.
14038
14039 * breakpoint.c (condition_command): Replace call to
14040 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14041 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14042 with call to breakpoint_ext_lang_cond_says_stop.
14043 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14044 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14045 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14046 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14047 New arg slang.
14048 (local_setattro): Print name of extension language with existing
14049 stop condition.
14050
14051 * valprint.c (val_print, value_print): Update to call
14052 apply_ext_lang_val_pretty_printer.
14053 * cp-valprint.c (cp_print_value): Update call to
14054 apply_ext_lang_val_pretty_printer.
14055 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14056 (gdbpy_apply_val_pretty_printer): Renamed from
14057 apply_val_pretty_printer. New arg extlang.
14058 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14059
14060 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14061 extension language API.
14062 * cli/cli-script.c (execute_control_command): Update to call
14063 eval_ext_lang_from_control_command.
14064
14065 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14066 enum ext_lang_bt_status values. Update call to
14067 apply_ext_lang_frame_filter.
14068 (mi_cmd_stack_list_locals): Ditto.
14069 (mi_cmd_stack_list_args): Ditto.
14070 (mi_cmd_stack_list_variables): Ditto.
14071 * mi/mi-main.c: Delete #include "python/python-internal.h".
14072 Add #include "extension.h".
14073 (mi_cmd_list_features): Replace reference to python internal variable
14074 gdb_python_initialized with call to ext_lang_initialized_p.
14075
14076 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14077 Update to use enum ext_lang_frame_args. Update to call
14078 apply_ext_lang_frame_filter.
14079 * python/py-framefilter.c (extract_sym): Update to use enum
14080 ext_lang_bt_status.
14081 (extract_value, py_print_type, py_print_value): Ditto.
14082 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14083 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14084 (py_print_frame): Ditto.
14085 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14086 New arg extlang. Update to use enum ext_lang_bt_status.
14087
14088 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14089 finish_python_initialization. Replace with call to
14090 finish_ext_lang_initialization.
14091
14092 * typeprint.c (do_free_global_table): Update to call
14093 free_ext_lang_type_printers.
14094 (create_global_typedef_table): Update to call
14095 start_ext_lang_type_printers.
14096 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14097 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14098 (type_print_options): Change type of global_printers from "void *"
14099 to "struct ext_lang_type_printers *".
14100
14101 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14102 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14103 (gdbpy_preserve_values): Renamed from preserve_python_values.
14104 New arg extlang.
14105 (!HAVE_PYTHON, preserve_python_values): Delete.
14106
14107 * utils.c (quit_flag): Delete, moved to extension.c.
14108 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14109 extension.c.
14110
14111 * eval.c: Delete #include "python/python.h".
14112 * main.c: Delete #include "python/python.h".
14113
14114 * defs.h: Update comment.
14115
14116 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14117
14118 GDB 7.7 released.
14119
14120 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14121
14122 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14123 defined.
14124
14125 2014-02-05 Yao Qi <yao@codesourcery.com>
14126
14127 * remote.c (remote_pass_signals): Remove local 'buf' and use
14128 rs->buf.
14129 (remote_program_signals): Likewise.
14130
14131 2014-02-05 Yao Qi <yao@codesourcery.com>
14132
14133 * ctf.c: Include "inferior.h" and "gdbthread.h".
14134 (CTF_PID): A new macro.
14135 (ctf_open): Call inferior_appeared and add_thread_silent.
14136 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14137 (ctf_thread_alive): New function.
14138 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14139
14140 2014-02-05 Yao Qi <yao@codesourcery.com>
14141
14142 Revert this patch:
14143
14144 2013-05-24 Yao Qi <yao@codesourcery.com>
14145
14146 * tracepoint.c (TFILE_PID): Remove.
14147 (tfile_open): Don't add thread and inferior.
14148 (tfile_close): Don't set 'inferior_ptid'. Don't call
14149 exit_inferior_silent.
14150 (tfile_thread_alive): Remove.
14151 (init_tfile_ops): Don't set field 'to_thread_alive' of
14152 tfile_ops.
14153
14154 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14155
14156 * remote.c (remote_start_remote): Call remote_check_symbols even
14157 if only symbol-file (not file) has been given.
14158
14159 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14160
14161 * gdbarch.sh (skip_entrypoint): New callback.
14162 * gdbarch.c, gdbarch.h: Regenerate.
14163 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14164 * infrun.c (fill_in_stop_func): Likewise.
14165 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14166 (ppc_elfv2_elf_make_msymbol_special): New function.
14167 (ppc_elfv2_skip_entrypoint): Likewise.
14168 (ppc_linux_init_abi): Install them for ELFv2.
14169
14170 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14171
14172 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14173 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14174 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14175 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14176 structures returned in GPRs.
14177
14178 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14179
14180 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14181 offset to the stack parameter list for the ELFv2 ABI.
14182
14183 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14184
14185 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14186 set_gdbarch_convert_from_func_ptr_addr and
14187 set_gdbarch_elf_make_msymbol_special for ELFv1.
14188 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14189 function descriptors on ELFv1.
14190 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14191 set up r12 at function entry.
14192
14193 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14194
14195 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14196 (struct gdbarch_tdep): New member elf_abi.
14197
14198 * rs6000-tdep.c: Include "elf/ppc64.h".
14199 (rs6000_gdbarch_init): Detect ELF ABI version.
14200
14201 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14202
14203 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14204 within a register pair holding a DFP 128-bit value on little-endian.
14205 (ppc64_sysv_abi_return_value_base): Likewise.
14206 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14207 (dfp_pseudo_register_write): Likewise.
14208
14209 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14210
14211 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14212 offset on little-endian when passing _Decimal32.
14213 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14214
14215 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14216
14217 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14218 of the overlapped FP register within the VSX register on little-
14219 endian platforms.
14220 (efpr_pseudo_register_write): Likewise.
14221
14222 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14223
14224 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14225 offset on little-endian when passing small structures.
14226
14227 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14228
14229 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14230 (struct ppc64_sysv_argpos): New data structure.
14231 (ppc64_sysv_abi_push_float): Remove.
14232 (ppc64_sysv_abi_push_val): New function.
14233 (ppc64_sysv_abi_push_integer): Likewise.
14234 (ppc64_sysv_abi_push_freg): Likewise.
14235 (ppc64_sysv_abi_push_vreg): Likewise.
14236 (ppc64_sysv_abi_push_param): Likewise.
14237 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14238 (ppc64_sysv_abi_return_value_base): New function.
14239 (ppc64_sysv_abi_return_value): Refactor to use it.
14240
14241 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14242
14243 * NEWS: Document new target powerpc64le-*-linux*.
14244
14245 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14246
14247 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14248 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14249 core dumps.
14250 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14251 register set used in ELF core dumps. Add floating-point register set.
14252
14253 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14254
14255 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14256 dwarf2_to_gdb[] table using symbolic constants. Adjust
14257 penultimate entry from number representing the PC register
14258 to symbolic constant representing the MDR register. Add
14259 constant for the PC register to the end of the table.
14260
14261 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14262
14263 * bsd-kvm.c: Include <sys/param.h>
14264
14265 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14266
14267 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14268
14269 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14270
14271 * ada-lang.h (clear_ada_sym_cache): Delete.
14272
14273 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14274
14275 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14276
14277 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14278
14279 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14280 the sigreturn register save area only if the syscall is
14281 sigreturn.
14282
14283 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14284
14285 * valops.c (value_slice): Minor reformatting.
14286
14287 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14288
14289 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14290
14291 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14292
14293 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14294 New static globals.
14295 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14296 (ada_ignore_descriptive_types_p): New static global.
14297 (find_parallel_type_by_descriptive_type): Return immediately
14298 if ada_ignore_descriptive_types_p is set.
14299 (_initialize_ada_language): Register new commands "maintenance
14300 set ada", "maintenance show ada", "maintenance set ada
14301 ignore-descriptive-types" and "maintenance show ada
14302 ignore-descriptive-types".
14303 * NEWS: Add entry for new "maint ada set/show
14304 ignore-descriptive-types" commands.
14305
14306 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14307
14308 * record-btrace.c (record_btrace_close): Call btrace_teardown
14309 for all threads.
14310
14311 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14312
14313 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14314 "ui-out.h".
14315
14316 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14317
14318 * ada-typeprint (type_is_full_subrange_of_target_type):
14319 New function.
14320 (print_range): Add parameter bounds_prefered_p. If not set,
14321 try printing range types using the name of their base type.
14322 (print_range_type): Add parameter bounds_prefered_p.
14323 Use it in call to print_range.
14324 (print_array_type, ada_print_type): Update calls to print_range
14325 and print_range_type.
14326
14327 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14328
14329 * ada-typeprint.c (print_array_type, print_choices, print_range)
14330 (print_range_bound, print_dynamic_range_bound, print_range_type):
14331 Remove declaration.
14332
14333 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14334
14335 * ada-typeprint.c (print_range): Add missing empty line
14336 after local declaration.
14337
14338 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14339
14340 * ada-valprint.c (print_optional_low_bound): Get index_type's
14341 target type for as long as it is a TYPE_CODE_RANGE.
14342
14343 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14344
14345 * procfs.c (procfs_make_note_section): Remove assertion and
14346 associated comment.
14347
14348 2014-01-24 Yao Qi <yao@codesourcery.com>
14349
14350 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14351 * corelow.c (get_core_siginfo): Likewise.
14352
14353 2014-01-24 Yao Qi <yao@codesourcery.com>
14354
14355 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14356 ULONGEST. Don't check 'len' is negative.
14357 (remote_write_bytes): Change type of 'len' to ULONGEST.
14358
14359 2014-01-23 Tom Tromey <tromey@redhat.com>
14360
14361 PR python/16485:
14362 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14363 Handle exception from frame.block.
14364 (FrameVars.fetch_frame_locals): Likewise.
14365
14366 2014-01-23 Tom Tromey <tromey@redhat.com>
14367
14368 PR python/16487:
14369 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14370 on a NULL pointer. Move "goto error" to correct place.
14371
14372 2014-01-23 Tom Tromey <tromey@redhat.com>
14373
14374 PR python/16491:
14375 * python/py-framefilter.c (apply_frame_filter): Call
14376 ensure_python_env after computing gdbarch.
14377
14378 2014-01-23 Yao Qi <yao@codesourcery.com>
14379
14380 * target.c (raw_memory_xfer_partial): Change argument type
14381 from void * to gdb_byte *.
14382 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14383
14384 2014-01-22 Doug Evans <dje@google.com>
14385
14386 New gdbserver option --debug-format=timestamp.
14387 * NEWS: Mention it.
14388
14389 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14390
14391 * syscalls/s390x-linux.xml: New file.
14392 * syscalls/s390-linux.xml: New file.
14393 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14394 (XML_SYSCALL_FILENAME_S390X): Likewise.
14395 (op_svc): New enum value for SVC opcode.
14396 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14397 (s390_linux_get_syscall_number): New function.
14398 (s390_gdbarch_init): Register '*get_syscall_number' and the
14399 syscall xml file name.
14400 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14401 "s390-linux.xml" and "s390x-linux.xml".
14402 * NEWS: Announce new feature.
14403
14404 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14405
14406 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14407
14408 2014-01-22 Pedro Alves <palves@redhat.com>
14409
14410 * xtensa-config.c: Include defs.h.
14411
14412 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14413
14414 * common/common-utils.h: Add "ARI:" comment beside __func__
14415 reference.
14416
14417 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14418
14419 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14420 documentation a bit.
14421
14422 2014-01-21 Roland McGrath <mcgrathr@google.com>
14423
14424 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14425 * configure: Regenerate.
14426 * aclocal.m4: Regenerate.
14427 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14428 New substituted variables.
14429 (install-strip): New target.
14430 (INSTALL_SCRIPT): New substituted variable.
14431 (FLAGS_TO_PASS): Add it.
14432 (install-only): Use $(INSTALL_SCRIPT) rather than
14433 $(INSTALL_PROGRAM) for gcore.
14434
14435 2014-01-20 Tom Tromey <tromey@redhat.com>
14436
14437 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14438 together.
14439
14440 2014-01-20 Tom Tromey <tromey@redhat.com>
14441
14442 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14443 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14444 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14445 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14446 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14447 (struct cmd_list_element) <flags>: Remove.
14448 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14449 doc_allocated>: New fields.
14450 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14451 bitfields.
14452 * maint.c (maintenance_do_deprecate): Update.
14453 * top.c (execute_command): Update.
14454
14455 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14456
14457 * xtensa-linux-nat.c: Include asm/ptrace.h.
14458
14459 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14460
14461 * Makefile.in (SFILES): Add d-support.c.
14462 (COMMON_OBS): Add d-support.o.
14463 * d-lang.h (d_parse_symbol): Add comment, now defined in
14464 d-support.c.
14465 * d-lang.c (parse_call_convention)
14466 (parse_attributes, parse_function_types)
14467 (parse_function_args, parse_type, parse_identifier)
14468 (call_convention_p, d_parse_symbol): Move functions to ...
14469 * d-support.c: ... New file.
14470
14471 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14472
14473 * d-lang.h (d_parse_symbol): Add declaration.
14474 * d-lang.c (extract_identifiers)
14475 (extract_type_info): Remove functions.
14476 (parse_call_convention, parse_attributes)
14477 (parse_function_types, parse_function_args)
14478 (parse_type, parse_identifier, call_convention_p)
14479 (d_parse_symbol): New functions.
14480 (d_demangle): Use d_parse_symbol to demangle D symbols.
14481
14482 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14483
14484 * d-lang.h (struct builtin_d_type): New data type.
14485 (builtin_d_type): Add declaration.
14486 * d-lang.c (d_language_arch_info, build_d_types)
14487 (builtin_d_type): New functions.
14488 (enum d_primitive_types): New data type.
14489 (d_language_defn): Change c_language_arch_info to
14490 d_language_arch_info.
14491 (d_type_data): New static variable.
14492 (_initialize_d_language): Initialize d_type_data.
14493
14494 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14495
14496 * d-lang.h (d_main_name): Add declaration.
14497 * d-lang.c (d_main_name): New function.
14498 * symtab.c (find_main_name): Add call to d_main_name.
14499
14500 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14501
14502 * d-lang.c (d_language_defn): Change macro_expansion_c to
14503 macro_expansion_no.
14504
14505 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14506
14507 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14508
14509 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14510
14511 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14512 gdb_exception" declaration.
14513 * remote.c (getpkt_or_notif_sane): Likewise.
14514
14515 2014-01-17 Doug Evans <dje@google.com>
14516
14517 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14518 function, contents of dirnames_to_char_ptr_vec_append moved here.
14519 (delim_string_to_char_ptr_vec): New function.
14520 (dirnames_to_char_ptr_vec_append): Rewrite.
14521 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14522
14523 2014-01-17 Doug Evans <dje@google.com>
14524
14525 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14526 and moved here ...
14527 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14528 #include "common-utils.h".
14529 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14530 * common/vec.h (VEC_ASSERT_PASS): Update.
14531 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14532 (MACH_CHECK_ERROR): Update.
14533
14534 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14535
14536 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14537 comments.
14538 * gdbarch.h: Regenerate.
14539
14540 2014-01-16 Tom Tromey <tromey@redhat.com>
14541
14542 * value.c (struct value) <regnum>: Move earlier.
14543
14544 2014-01-16 Tom Tromey <tromey@redhat.com>
14545
14546 * remote.c (extended_remote_create_inferior): Rename from
14547 extended_remote_create_inferior_1. Add "ops" argument. Remove
14548 old implementation.
14549
14550 2014-01-16 Pedro Alves <palves@redhat.com>
14551
14552 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14553 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14554 the backchain.
14555
14556 2014-01-16 Doug Evans <dje@google.com>
14557
14558 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14559
14560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14561
14562 * btrace.h (btrace_thread_flag): New.
14563 (struct btrace_thread_info) <flags>: New.
14564 * record-btrace.c (record_btrace_resume_thread)
14565 (record_btrace_find_thread_to_move, btrace_step_no_history)
14566 (btrace_step_stopped, record_btrace_start_replaying)
14567 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14568 (record_btrace_find_resume_thread): New.
14569 (record_btrace_resume, record_btrace_wait): Extend.
14570 (record_btrace_can_execute_reverse): New.
14571 (record_btrace_open): Fail in non-stop mode.
14572 (record_btrace_set_replay): Split into this, ...
14573 (record_btrace_stop_replaying): ... this, ...
14574 (record_btrace_clear_histories): ... and this.
14575 (init_record_btrace_ops): Init to_can_execute_reverse.
14576 * NEWS: Announce it.
14577
14578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14579
14580 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14581 (forward_target_decr_pc_after_break)
14582 (target_decr_pc_after_break): New.
14583 * target.c (forward_target_decr_pc_after_break)
14584 (target_decr_pc_after_break): New.
14585 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14586 instead of gdbarch_decr_pc_after_break.
14587 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14588 instead of gdbarch_decr_pc_after_break.
14589 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14590 instead of gdbarch_decr_pc_after_break.
14591 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14592 instead of gdbarch_decr_pc_after_break.
14593 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14594 instead of gdbarch_decr_pc_after_break.
14595 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14596 instead of gdbarch_decr_pc_after_break.
14597
14598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14599
14600 * btrace.c: Include regcache.h.
14601 (btrace_add_pc): New.
14602 (btrace_enable): Call btrace_add_pc.
14603 (btrace_is_empty): New.
14604 * btrace.h (btrace_is_empty): New.
14605 * record-btrace.c (require_btrace, record_btrace_info): Call
14606 btrace_is_empty.
14607
14608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14609
14610 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14611 Support delta reads.
14612 (linux_disable_btrace): Change return type.
14613 * common/linux-btrace.h (linux_read_btrace): Change parameters
14614 and return type to allow error reporting. Update users.
14615 (linux_disable_btrace): Change return type. Update users.
14616 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14617 New.
14618 (btrace_error): New.
14619 (btrace_block) <begin>: Comment on BEGIN == 0.
14620 * btrace.c (btrace_compute_ftrace): Start from the end of
14621 the current trace.
14622 (btrace_stitch_trace, btrace_clear_history): New.
14623 (btrace_fetch): Read delta trace, return if replaying.
14624 (btrace_clear): Move clear history code to btrace_clear_history.
14625 (parse_xml_btrace): Throw an error if parsing failed.
14626 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14627 and return type to allow error reporting.
14628 (target_read_btrace): Change parameters and return type to allow
14629 error reporting.
14630 * target.c (target_read_btrace): Update.
14631 * remote.c (remote_read_btrace): Support delta reads. Pass
14632 errors on.
14633 * NEWS: Announce it.
14634
14635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14636
14637 * record.h (record_btrace_frame_unwind)
14638 (record_btrace_tailcall_frame_unwind): New declarations.
14639 * dwarf2-frame: Include record.h
14640 (dwarf2_frame_cfa): Throw an error for btrace frames.
14641 * record-btrace.c: Include hashtab.h.
14642 (btrace_get_bfun_name): New.
14643 (btrace_call_history): Call btrace_get_bfun_name.
14644 (struct btrace_frame_cache): New.
14645 (bfcache): New.
14646 (bfcache_hash, bfcache_eq, bfcache_new): New.
14647 (btrace_get_frame_function): New.
14648 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14649 (record_btrace_frame_this_id): Compute own id.
14650 (record_btrace_frame_prev_register): Provide PC, throw_error
14651 for all other registers.
14652 (record_btrace_frame_sniffer): Detect btrace frames.
14653 (record_btrace_tailcall_frame_sniffer): New.
14654 (record_btrace_frame_dealloc_cache): New.
14655 (record_btrace_frame_unwind): Add new functions.
14656 (record_btrace_tailcall_frame_unwind): New.
14657 (_initialize_record_btrace): Allocate cache.
14658 * btrace.c (btrace_clear): Call reinit_frame_cache.
14659 * NEWS: Announce it.
14660
14661 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14662
14663 * record-btrace.c (record_btrace_set_replay)
14664 (record_btrace_goto_begin, record_btrace_goto_end)
14665 (record_btrace_goto): New.
14666 (init_record_btrace_ops): Initialize them.
14667 * NEWS: Announce it.
14668
14669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14670
14671 * record-btrace.c (record_btrace_find_new_threads)
14672 (record_btrace_thread_alive): New.
14673 (init_record_btrace_ops): Initialize to_find_new_threads and
14674 to_thread_alive.
14675
14676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14677
14678 * record-btrace.c (record_btrace_resume): New.
14679 (record_btrace_wait): New.
14680 (init_record_btrace_ops): Initialize to_wait and to_resume.
14681
14682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14683
14684 * record-btrace.c (record_btrace_xfer_partial)
14685 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14686 (record_btrace_allow_memory_access): New.
14687 (init_record_btrace_ops): Initialize new methods.
14688 * target.c (raw_memory_xfer_partial): Bail out if target reports
14689 that this memory is not available.
14690
14691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14692
14693 * target.h (target_ops) <to_insert_breakpoint>
14694 <to_remove_breakpoint>: Add target_ops parameter.
14695 (forward_target_insert_breakpoint): New.
14696 (forward_target_remove_breakpoint): New.
14697 (memory_remove_breakpoint, memory_insert_breakpoint):
14698 Add target_ops parameter.
14699 * target.c (target_insert_breakpoint): Split into this and ...
14700 (forward_target_insert_breakpoint): ... this.
14701 (target_remove_breakpoint): Split into this and ...
14702 (forward_target_remove_breakpoint): ... this.
14703 (debug_to_insert_breakpoint): Add target_ops parameter.
14704 Call forward_target_insert_breakpoint.
14705 (debug_to_remove_breakpoint): Add target_ops parameter.
14706 Call forward_target_remove_breakpoint.
14707 (update_current_target): Do not inherit or default to_insert_breakpoint
14708 and to_remove_breakpoint.
14709 * corelow.c (ignore): Add target_ops parameter.
14710 * exec.c (ignore): Add target_ops parameter.
14711 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14712 Add target_ops parameter.
14713 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14714 Add target_ops parameter.
14715 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14716 Add target_ops parameter.
14717 * record-full.c (record_full_beneath_to_insert_breakpoint)
14718 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14719 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14720 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14721 (record_full_core_remove_breakpoint): Add target_ops parameter.
14722 Update users.
14723 (record_full_beneath_to_insert_breakpoint_ops)
14724 (record_full_beneath_to_remove_breakpoint_ops)
14725 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14726 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14727 tmp_to_remove_breakpoint_ops,
14728 record_full_beneath_to_insert_breakpoint_ops, and
14729 record_full_beneath_to_remove_breakpoint_ops.
14730 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14731 (m32r_remove_breakpoint): Add target_ops parameter.
14732 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14733 Add target_ops parameter.
14734 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14735 Add target_ops parameter.
14736
14737 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14738 Markus Metzger <markus.t.metzger@intel.com>
14739
14740 * record-btrace.c: Include frame-unwind.h.
14741 (record_btrace_frame_unwind_stop_reason)
14742 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14743 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14744 New.
14745 (init_record_btrace_ops): Install it.
14746
14747 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14748
14749 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14750 get_prev_frame_1.
14751
14752 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14753
14754 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14755 earlier.
14756
14757 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14758
14759 * frame-unwind.c: Include target.h.
14760 (frame_unwind_try_unwinder): New function with code from ...
14761 (frame_unwind_find_by_frame): ... here. New variable
14762 unwinder_from_target, call also target_get_unwinder)
14763 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14764 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14765 * target.h (struct target_ops): New fields to_get_unwinder and
14766 to_get_tailcall_unwinder.
14767 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14768
14769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14770
14771 * record-btrace.c (record_btrace_fetch_registers)
14772 (record_btrace_store_registers)
14773 (record_btrace_to_prepare_to_store): New.
14774 (init_record_btrace_ops): Add the above.
14775
14776 2014-01-16 Tom Tromey <tromey@redhat.com>
14777
14778 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14779 * target.h (struct target_ops) <to_prepare_to_store>: Add
14780 argument.
14781 (target_prepare_to_store): Add argument.
14782 * target.c (debug_to_prepare_to_store): Add argument.
14783 (update_current_target): Update.
14784 * remote.c (remote_prepare_to_store): Add 'self' argument.
14785 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14786 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14787 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14788 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14789 argument.
14790 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14791 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14792 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14793 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14794 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14795
14796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14797
14798 * btrace.h (replay) <replay>: New.
14799 (btrace_is_replaying): New.
14800 * btrace.c (btrace_clear): Free replay iterator.
14801 (btrace_is_replaying): New.
14802 * record-btrace.c (record_btrace_is_replaying): New.
14803 (record_btrace_info): Print insn number if replaying.
14804 (record_btrace_insn_history): Start at replay position.
14805 (record_btrace_call_history): Start at replay position.
14806 (init_record_btrace_ops): Init to_record_is_replaying.
14807
14808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14809
14810 * record-btrace.c (record_btrace_insn_history_range): Include
14811 end.
14812 (record_btrace_insn_history_from): Adjust range.
14813 (record_btrace_call_history_range): Include
14814 end.
14815 (record_btrace_call_history_from): Adjust range.
14816 * NEWS: Announce changes.
14817
14818 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14819
14820 * record.h (enum record_print_flag)
14821 <record_print_indent_calls>: New.
14822 * record.c (get_call_history_modifiers): Recognize /c modifier.
14823 (_initialize_record): Document /c modifier.
14824 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14825 Reorder fields. Optionally indent the function name. Update
14826 all users.
14827 * NEWS: Announce changes.
14828
14829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14830
14831 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14832
14833 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14834
14835 * btrace.c (ftrace_new_function): Start counting at one.
14836 * record-btrace.c (record_btrace_info): Adjust number of calls
14837 and insns.
14838 * NEWS: Announce it.
14839
14840 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14841
14842 * record-btrace.c (btrace_call_history_insn_range): Print
14843 insn range as [begin, end].
14844
14845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14846
14847 * btrace.h (struct btrace_func_link): New.
14848 (enum btrace_function_flag): New.
14849 (struct btrace_inst): Rename to ...
14850 (struct btrace_insn): ...this. Update all users.
14851 (struct btrace_func) <ibegin, iend>: Remove.
14852 (struct btrace_func_link): New.
14853 (struct btrace_func): Rename to ...
14854 (struct btrace_function): ...this. Update all users.
14855 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14856 (number, level, flags>: New.
14857 (struct btrace_insn_iterator): Rename to ...
14858 (struct btrace_insn_history): ...this.
14859 Update all users.
14860 (struct btrace_insn_iterator, btrace_call_iterator): New.
14861 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14862 (struct btrace_target_info) <begin, end, level>
14863 <insn_history, call_history>: New.
14864 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14865 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14866 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14867 (btrace_call_number, btrace_call_begin, btrace_call_end)
14868 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14869 (btrace_find_function_by_number, btrace_set_insn_history)
14870 (btrace_set_call_history): New.
14871 * btrace.c (btrace_init_insn_iterator)
14872 (btrace_init_func_iterator, compute_itrace): Remove.
14873 (ftrace_print_function_name, ftrace_print_filename)
14874 (ftrace_skip_file): Change
14875 parameter to const.
14876 (ftrace_init_func): Remove.
14877 (ftrace_debug): Use new btrace_function fields.
14878 (ftrace_function_switched): Also consider gaining and
14879 losing symbol information).
14880 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14881 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14882 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14883 New.
14884 (ftrace_new_function): Move. Remove debug print.
14885 (ftrace_update_lines, ftrace_update_insns): New.
14886 (ftrace_update_function): Check for call, ret, and jump.
14887 (compute_ftrace): Renamed to ...
14888 (btrace_compute_ftrace): ...this. Rewritten to compute call
14889 stack.
14890 (btrace_fetch, btrace_clear): Updated.
14891 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14892 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14893 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14894 (btrace_call_number, btrace_call_begin, btrace_call_end)
14895 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14896 (btrace_find_function_by_number, btrace_set_insn_history)
14897 (btrace_set_call_history): New.
14898 * record-btrace.c (require_btrace): Use new btrace thread
14899 info fields.
14900 (record_btrace_info, btrace_insn_history)
14901 (record_btrace_insn_history, record_btrace_insn_history_range):
14902 Use new btrace thread info fields and new iterator.
14903 (btrace_func_history_src_line): Rename to ...
14904 (btrace_call_history_src_line): ...this. Use new btrace
14905 thread info fields.
14906 (btrace_func_history): Rename to ...
14907 (btrace_call_history): ...this. Use new btrace thread info
14908 fields and new iterator.
14909 (record_btrace_call_history, record_btrace_call_history_range):
14910 Use new btrace thread info fields and new iterator.
14911
14912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14913
14914 * frame.h (frame_id_build_unavailable_stack_special): New.
14915 * frame.c (frame_id_build_unavailable_stack_special): New.
14916
14917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14918
14919 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14920 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14921 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14922 to gdbarch.
14923 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14924 (i386_insn_is_jump, i386_jmp_p): New.
14925 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14926 insn_is_jump to gdbarch.
14927 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14928 * gdbarch.h: Regenerated.
14929 * gdbarch.c: Regenerated.
14930 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14931 (default_insn_is_jump): New.
14932 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14933 (default_insn_is_jump): New.
14934
14935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14936
14937 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14938 Change to ...
14939 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14940 (btrace_read_type) <btrace_read_new>: Change to ...
14941 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14942
14943 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14944
14945 * common/linux-btrace.c (linux_read_btrace): Free trace from
14946 previous iteration.
14947
14948 2014-01-15 Doug Evans <dje@google.com>
14949
14950 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14951 uint32_t.
14952
14953 2014-01-15 Tom Tromey <tromey@redhat.com>
14954
14955 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14956 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14957 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14958 (set_objfile_main_name): New function.
14959 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14960 language_of_main>: New fields.
14961 (set_objfile_main_name): Declare.
14962 * symtab.c (find_main_name): Loop over objfiles to find the main
14963 name and language.
14964 (set_main_name): Now static.
14965 (get_main_info): Add comment.
14966 * symtab.h (set_main_name): Don't declare.
14967
14968 2014-01-15 Tom Tromey <tromey@redhat.com>
14969
14970 * symtab.c (main_progspace_key): New global.
14971 (struct main_info): New.
14972 (name_of_main, language_of_main): Remove.
14973 (get_main_info, main_info_cleanup): New function.
14974 (set_main_name, main_name, main_language): Use get_main_info.
14975 (_initialize_symtab): Initialize main_progspace_key.
14976
14977 2014-01-15 Tom Tromey <tromey@redhat.com>
14978
14979 * dbxread.c (process_one_symbol): Update.
14980 * dwarf2read.c (read_partial_die): Update.
14981 * symfile.c (set_initial_language): Call main_language.
14982 * symtab.c (language_of_main): Now static.
14983 (set_main_name): Add 'lang' parameter.
14984 (find_main_name): Update.
14985 (main_language): New function.
14986 (symtab_observer_executable_changed): Update.
14987 * symtab.h (set_main_name): Update.
14988 (language_of_main): Remove.
14989 (main_language): Declare.
14990
14991 2014-01-15 Tom Tromey <tromey@redhat.com>
14992
14993 * symfile.c (init_entry_point_info): Use new "initialized" field.
14994 Update.
14995 * objfiles.h (struct entry_point) <initialized>: New field.
14996 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14997 (struct objfile) <ei>: ...here. Remove.
14998 * objfiles.c (entry_point_address_query): Update.
14999
15000 2014-01-15 Tom Tromey <tromey@redhat.com>
15001
15002 * objfiles.c (entry_point_address_query): Relocate entry point
15003 address.
15004 (objfile_relocate1): Do not relocate entry point address.
15005 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15006 <the_bfd_section_index>: New field.
15007 * symfile.c (init_entry_point_info): Find the entry point's
15008 section.
15009
15010 2014-01-15 Tom Tromey <tromey@redhat.com>
15011
15012 * solib-frv.c (enable_break): Use entry_point_address_query.
15013
15014 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15015
15016 * NEWS: Add note on improved process record-replay on
15017 arm*-linux* targets.
15018
15019 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15020
15021 * arm-tdep.c (enum arm_record_result): New enum.
15022 (arm_record_unsupported_insn): New function.
15023 (arm_record_coproc_data_proc): Removed.
15024 (thumb2_record_ld_st_multiple): New function.
15025 (thumb2_record_ld_st_dual_ex_tbb): New function.
15026 (thumb2_record_data_proc_sreg_mimm): New function.
15027 (thumb2_record_ps_dest_generic): New function.
15028 (thumb2_record_branch_misc_cntrl): New function.
15029 (thumb2_record_str_single_data): New function.
15030 (thumb2_record_ld_mem_hints): New function.
15031 (thumb2_record_ld_word): New function.
15032 (thumb2_record_lmul_lmla_div): New function.
15033 (thumb2_record_decode_insn_handler): New function.
15034 (decode_insn): Add thumb32 instruction handlers.
15035
15036 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15037
15038 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15039 (struct arm_linux_record_tdep): Declare.
15040 (arm_canonicalize_syscall): New function.
15041 (arm_all_but_pc_registers_record): New function.
15042 (arm_linux_syscall_record): New function.
15043 (arm_linux_init_abi): Add syscall recording constructs.
15044 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15045 decoding. (arm_record_coproc_data_proc): Update arm syscall
15046 decoding.
15047 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15048 <arm_syscall_record>: New field.
15049 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15050 gdb_target_obs.
15051
15052 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15053
15054 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15055 register for push instruction recording.
15056
15057 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15058
15059 * arm-tdep.c (thumb_record_misc): Update to correct logical
15060 error while recording ldm, ldmia and pop instructions.
15061
15062 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15063
15064 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15065
15066 2014-01-15 Pedro Alves <palves@redhat.com>
15067
15068 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15069 (go32_resume, go32_fetch_registers, store_register)
15070 (go32_store_registers, go32_prepare_to_store)
15071 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15072 (go32_create_inferior, go32_can_run, go32_terminal_init)
15073 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15074 declarations.
15075
15076 2014-01-15 Tom Tromey <tromey@redhat.com>
15077
15078 * target.h (async_callback_ftype): New typedef.
15079 (struct target_ops) <to_async>: Use it.
15080
15081 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15082
15083 * python/py-value.c (get_field_type): Remove unnecessary curly
15084 braces for single-statement if block.
15085
15086 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15087
15088 * python/py-type.c (convert_field): Add missing empty line
15089 after declarations.
15090
15091 2014-01-14 Doug Evans <dje@google.com>
15092
15093 * symfile.h (expand_symtabs_matching): Renamed from
15094 expand_partial_symbol_names. Update prototype.
15095 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15096 * symfile.c (expand_symtabs_matching): Renamed from
15097 expand_partial_symbol_names. New args file_matcher, kind.
15098 Rename arg fun to symbol_matcher.
15099 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15100 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15101 ada_expand_partial_symbol_name.
15102 (ada_make_symbol_completion_list): Update to call
15103 expand_symtabs_matching.
15104 (ada_add_global_exceptions): Call expand_symtabs_matching.
15105 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15106 call map_symbol_filenames.
15107 * symtab.c (sources_info): Update to call map_symbol_filenames.
15108 (search_symbols): Call expand_symtabs_matching.
15109 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15110 (default_make_symbol_completion_list_break_on): Update to call
15111 expand_symtabs_matching.
15112 (make_source_files_completion_list): Update to call
15113 map_symbol_filenames.
15114
15115 2014-01-14 Doug Evans <dje@google.com>
15116
15117 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15118 (expand_symtabs_symbol_matcher_ftype): New typedef.
15119 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15120 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15121 * symfile.c (expand_partial_symbol_names): Update to use
15122 expand_symtabs_symbol_matcher_ftype.
15123 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15124 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15125 Arg name_matcher renamed to symbol_matcher.
15126 * psymtab.c (recursively_search_psymtabs): Update to use
15127 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15128 sym_matcher.
15129 (expand_symtabs_matching_via_partial): Update to use
15130 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15131 Arg name_matcher renamed to symbol_matcher.
15132
15133 2014-01-14 Doug Evans <dje@google.com>
15134
15135 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15136 (map_partial_symbol_filenames): Ditto.
15137 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15138 (map_partial_symbol_filenames): Ditto.
15139 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15140 (map_partial_symbol_filenames): Ditto.
15141 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15142 (map_partial_symbol_filenames): Ditto.
15143 * symtab.c: Delete #include "psymtab.h".
15144
15145 2014-01-14 Pedro Alves <palves@redhat.com>
15146 Tom Tromey <tromey@redhat.com>
15147
15148 * infrun.c (use_displaced_stepping): Use find_record_target
15149 instead of RECORD_IS_USED.
15150 (adjust_pc_after_break): Use record_full_is_used instead of
15151 RECORD_IS_USED.
15152 * record-btrace.c (record_btrace_open): Call record_preopen
15153 instead of checking RECORD_IS_USED.
15154 * record-full.c (record_full_shortname)
15155 (record_full_core_shortname): New globals.
15156 (record_full_is_used): New function.
15157 (find_full_open): Call record_preopen instead of checking
15158 RECORD_IS_USED.
15159 (init_record_full_ops): Set the target's shortname to
15160 record_full_shortname.
15161 (init_record_full_core_ops): Set the target's shortname to
15162 record_full_core_shortname.
15163 * record-full.h (record_full_is_used): Declare.
15164 * record.c (find_record_target): Make extern.
15165 (record_preopen): New function.
15166 * record.h (RECORD_IS_USED): Delete macro.
15167 (find_record_target, record_preopen): Declare functions.
15168
15169 2014-01-14 Yao Qi <yao@codesourcery.com>
15170
15171 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15172 'len''s type to ULONGEST.
15173 (core_xfer_shared_libraries_aix): Likewise.
15174 * gdbarch.c, gdbarch.h: Regenerated.
15175 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15176 Change type of 'len' to ULONGEST.
15177 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15178 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15179
15180 2014-01-14 Yao Qi <yao@codesourcery.com>
15181
15182 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15183 type of 'len' to ULONGEST.
15184 (linux_xfer_osdata_processgroups): Likewise.
15185 (linux_xfer_osdata_threads): Likewise.
15186 (linux_xfer_osdata_fds): Likewise.
15187 (linux_xfer_osdata_isockets): Likewise.
15188 (linux_xfer_osdata_shm): Likewise.
15189 (linux_xfer_osdata_sem): Likewise.
15190 (linux_xfer_osdata_msg): Likewise.
15191 (linux_common_xfer_osdata): Likewise.
15192 (struct osdata_type) <getter>: Likewise.
15193 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15194 the declaration.
15195
15196 2014-01-14 Yao Qi <yao@codesourcery.com>
15197
15198 * target.h (target_xfer_partial_ftype): Update.
15199 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15200 ULONGEST.
15201 * aix-thread.c (aix_thread_xfer_partial): Change type of
15202 argument 'len' to ULONGEST.
15203 * auxv.c (procfs_xfer_auxv): Likewise.
15204 (ld_so_xfer_auxv): Likewise.
15205 (memory_xfer_auxv): Likewise.
15206 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15207 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15208 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15209 * corelow.c (core_xfer_partial): Likewise.
15210 * ctf.c (ctf_xfer_partial): Likewise.
15211 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15212 '%u'.
15213 (darwin_read_dyld_info): Likewise.
15214 (darwin_xfer_partial): Likewise.
15215 * exec.c (section_table_xfer_memory_partial): Likewise.
15216 (exec_xfer_partial): Likewise.
15217 * exec.h (section_table_xfer_memory_partial): Update
15218 declaration.
15219 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15220 instead of plongest.
15221 (gnu_xfer_partial): Likewise.
15222 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15223 (ia64_hpux_xfer_solib_got): Likewise.
15224 (ia64_hpux_xfer_partial): Likewise.
15225 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15226 * inf-ptrace.c (inf_ptrace_xfer_partial):
15227 * inf-ttrace.c (inf_ttrace_xfer_partial):
15228 * linux-nat.c (linux_xfer_siginfo): Likewise.
15229 (linux_nat_xfer_partial): Likewise.
15230 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15231 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15232 * monitor.c (monitor_xfer_memory): Likewise.
15233 (monitor_xfer_partial): Likewise.
15234 * procfs.c (procfs_xfer_partial): Likewise.
15235 * record-full.c (record_full_xfer_partial): Likewise.
15236 (record_full_core_xfer_partial): Likewise.
15237 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15238 instead of plongest.
15239 (gdbsim_xfer_partial): Likewise.
15240 * remote.c (remote_xfer_partial): Likewise.
15241 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15242 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15243 declaration.
15244 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15245 (rs6000_xfer_shared_libraries): Likewise.
15246 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15247 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15248 (sparc_xfer_partial): Likewise.
15249 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15250 (spu_xfer_partial): Likewise.
15251 * spu-multiarch.c (spu_xfer_partial): Likewise.
15252 * target.c (target_read_live_memory): Likewise.
15253 (memory_xfer_live_readonly_partial): Likewise.
15254 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15255 (target_xfer_partial, default_xfer_partial): Likewise.
15256 (current_xfer_partial): Likewise.
15257 * tracepoint.c (tfile_xfer_partial): Likewise.
15258 * windows-nat.c (windows_xfer_memory): Likewise. Call
15259 pulongest instead of plongest.
15260 (windows_xfer_partial): Likewise.
15261 (windows_xfer_shared_libraries): Likewise.
15262
15263 2014-01-14 Yao Qi <yao@codesourcery.com>
15264
15265 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15266 target_xfer_partial_ftype.
15267
15268 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15269
15270 PR python/15464
15271 PR python/16113
15272 * valops.c (value_struct_elt_bitpos): New function
15273 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15274 object to 'None' if the field name is an empty string ("").
15275 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15276 attribute to look for a field when 'name' is 'None'.
15277 (get_field_type): New function
15278
15279 2014-01-13 Doug Evans <dje@google.com>
15280
15281 PR symtab/16426
15282 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15283 (try_open_dwop_file): Ditto.
15284 * gdb_bfd.c: #include "vec.h".
15285 (bfdp): New typedef.
15286 (struct gdb_bfd_data): New member included_bfds.
15287 (gdb_bfd_unref): Unref all included bfds.
15288 (gdb_bfd_record_inclusion): New function.
15289 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15290
15291 2014-01-13 Tom Tromey <tromey@redhat.com>
15292
15293 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15294
15295 2014-01-13 Tom Tromey <tromey@redhat.com>
15296
15297 * defs.h (use_windows): Remove.
15298 * gdb.c (main): Update.
15299 * main.c (captured_main, gdb_main): Update.
15300 * main.h (struct captured_main_args) <use_windows>: Remove.
15301 * top.c (use_windows): Remove.
15302
15303 2014-01-13 Tom Tromey <tromey@redhat.com>
15304
15305 * defs.h (deprecated_flush_hook): Remove.
15306
15307 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15308
15309 PR threads/16216
15310 * linux-thread-db.c (try_thread_db_load): Add parameter
15311 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15312 (try_thread_db_load_from_pdir_1): Move it there from here.
15313 (try_thread_db_load_from_sdir): Update caller.
15314 (try_thread_db_load_from_dir): Move it there from here.
15315
15316 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15317
15318 * regformats/regdat.sh: Always rewrite the register file.
15319
15320 2014-01-13 Pedro Alves <palves@redhat.com>
15321
15322 * Makefile.in (CHECK_HEADERS): New variable.
15323 (check-headers:): New rule.
15324
15325 2014-01-13 Tom Tromey <tromey@redhat.com>
15326
15327 * cli/cli-setshow.c (do_set_command): Update.
15328 * defs.h (deprecated_set_hook): Remove.
15329 * top.c (deprecated_set_hook): Remove.
15330
15331 2014-01-13 Pedro Alves <palves@redhat.com>
15332
15333 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15334 the tracepoint if the PC is a pseudo-register.
15335
15336 2014-01-13 Tom Tromey <tromey@redhat.com>
15337
15338 * defs.h (XCALLOC): Remove.
15339 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15340 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15341 * dwarf2loc.c (allocate_piece_closure): Likewise.
15342 * elfread.c (elf_symfile_segments): Likewise.
15343 (elf_symfile_segments): Likewise.
15344 * gdbtypes.c (copy_type_recursive): Likewise.
15345 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15346 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15347 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15348 XCALLOC.
15349 * mt-tdep.c (mt_gdbarch_init): Likewise.
15350 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15351 XCALLOC.
15352 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15353 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15354 * registry.c (registry_alloc_data): Likewise.
15355 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15356 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15357 * serial.c (serial_fdopen_ops): Likewise.
15358 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15359 XCALLOC.
15360 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15361 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15362 not XCALLOC.
15363
15364 2014-01-13 Tom Tromey <tromey@redhat.com>
15365
15366 * defs.h (XMALLOC): Remove.
15367 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15368 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15369 * cli-out.c (struct ui_out *): Likewise.
15370 * cli/cli-dump.c (add_dump_command): Likewise.
15371 (add_dump_command): Likewise.
15372 * complaints.c (get_complaints): Likewise.
15373 (find_complaint): Likewise.
15374 * dwarf2-frame.c (execute_cfa_program): Likewise.
15375 * dwarf2read.c (abbrev_table_read_table): Likewise.
15376 * gdbarch.sh: Likewise.
15377 * gdbarch.c: Rebuild.
15378 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15379 * interps.c (interp_new): Likewise.
15380 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15381 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15382 * mi/mi-console.c (mi_console_file_new): Likewise.
15383 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15384 * mi/mi-out.c (mi_out_new): Likewise.
15385 * mi/mi-parse.c (mi_parse): Likewise.
15386 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15387 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15388 * observer.c (xalloc_observer_list_node): Likewise.
15389 * regcache.c (regcache_xmalloc_1): Likewise.
15390 * reggroups.c (reggroup_new): Likewise.
15391 (_initialize_reggroup): Likewise.
15392 * registry.c (register_data_with_cleanup): Likewise.
15393 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15394 * ser-base.c (serial_ttystate): Likewise.
15395 * ser-mingw.c (make_pipe_state): Likewise.
15396 * ser-pipe.c (pipe_open): Likewise.
15397 * serial.c (serial_open): Likewise.
15398 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15399 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15400 (tui_alloc_win_info): Likewise.
15401 (tui_add_content_elements): Likewise.
15402 * tui/tui-file.c (tui_file_new): Likewise.
15403 * tui/tui-out.c (tui_out_new): Likewise.
15404 * ui-file.c (mem_file_new): Likewise.
15405 * ui-out.c (push_level): Likewise.
15406 (make_cleanup_ui_out_end): Likewise.
15407 (append_header_to_list): Likewise.
15408 (ui_out_new): Likewise.
15409 * user-regs.c (user_reg_add_builtin): Likewise.
15410
15411 2014-01-13 Tom Tromey <tromey@redhat.com>
15412
15413 * defs.h (XZALLOC): Remove.
15414 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15415 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15416 (get_ada_tasks_inferior_data): Likewise.
15417 * auto-load.c (get_auto_load_pspace_data): Likewise.
15418 * auxv.c (get_auxv_inferior_data): Likewise.
15419 * bfd-target.c (target_bfd_reopen): Likewise.
15420 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15421 (deprecated_insert_raw_breakpoint): Likewise.
15422 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15423 * corelow.c (core_open): Likewise.
15424 * darwin-nat.c (darwin_check_new_threads): Likewise.
15425 (darwin_attach_pid): Likewise.
15426 * dummy-frame.c (dummy_frame_push): Likewise.
15427 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15428 * dwarf2loc.c (allocate_piece_closure): Likewise.
15429 * elfread.c (elf_symfile_segments): Likewise.
15430 * eval.c (ptrmath_type_p): Likewise.
15431 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15432 * gdbtypes.c (alloc_type_arch): Likewise.
15433 (alloc_type_instance): Likewise.
15434 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15435 * inf-child.c (inf_child_can_use_agent): Likewise.
15436 * inflow.c (get_inflow_inferior_data): Likewise.
15437 * infrun.c (save_infcall_suspend_state): Likewise.
15438 * jit.c (jit_reader_load): Likewise.
15439 (get_jit_objfile_data): Likewise.
15440 (get_jit_program_space_data): Likewise.
15441 (jit_object_open_impl): Likewise.
15442 (jit_symtab_open_impl): Likewise.
15443 (jit_block_open_impl): Likewise.
15444 (jit_frame_sniffer): Likewise.
15445 * linux-fork.c (add_fork): Likewise.
15446 * maint.c (make_command_stats_cleanup): Likewise.
15447 * objfiles.c (get_objfile_pspace_data): Likewise.
15448 * opencl-lang.c (struct lval_closure): Likewise.
15449 * osdata.c (osdata_start_osdata): Likewise.
15450 * progspace.c (new_address_space): Likewise.
15451 (add_program_space): Likewise.
15452 * remote-sim.c (get_sim_inferior_data): Likewise.
15453 * sh-tdep.c (sh_gdbarch_init): Likewise.
15454 * skip.c (Ignore): Likewise.
15455 (skip_delete_command): Likewise.
15456 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15457 (library_list_start_library): Likewise.
15458 (solib_aix_current_sos): Likewise.
15459 * solib-darwin.c (get_darwin_info): Likewise.
15460 (darwin_current_sos): Likewise.
15461 * solib-dsbt.c (get_dsbt_info): Likewise.
15462 * solib-ia64-hpux.c (new_so_list): Likewise.
15463 (ia64_hpux_get_solib_linkage_addr): Likewise.
15464 * solib-spu.c (append_ocl_sos): Likewise.
15465 (spu_current_sos): Likewise.
15466 * solib-svr4.c (get_svr4_info): Likewise.
15467 (svr4_keep_data_in_core): Likewise.
15468 (library_list_start_library): Likewise.
15469 (svr4_default_sos): Likewise.
15470 (svr4_read_so_list): Likewise.
15471 * solib-target.c (library_list_start_library): Likewise.
15472 (solib_target_current_sos): Likewise.
15473 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15474 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15475 * symfile.c (default_symfile_segments): Likewise.
15476 * target-descriptions.c (tdesc_data_init): Likewise.
15477 (tdesc_create_reg): Likewise.
15478 (struct tdesc_type *): Likewise.
15479 (tdesc_create_vector): Likewise.
15480 (tdesc_set_struct_size): Likewise.
15481 (struct tdesc_type *): Likewise.
15482 (tdesc_free_feature): Likewise.
15483 (tdesc_create_feature): Likewise.
15484 * windows-nat.c (windows_add_thread): Likewise.
15485 (windows_make_so): Likewise.
15486 * xml-support.c (gdb_xml_body_text): Likewise.
15487 (gdb_xml_create_parser_and_cleanup): Likewise.
15488 (xml_process_xincludes): Likewise.
15489 * xml-syscall.c (allocate_syscalls_info): Likewise.
15490 (syscall_create_syscall_desc): Likewise.
15491
15492 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15493
15494 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15495 function, with code from i386_stap_parse_special_token.
15496 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15497 (i386_stap_parse_special_token): Move code to the two functions
15498 above; simplify it.
15499
15500 2014-01-09 Pedro Alves <palves@redhat.com>
15501 Hui Zhu <hui@codesourcery.com>
15502
15503 PR gdb/16101
15504 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15505 bp_err_string. Don't mark the location shlib_disabled if the
15506 error thrown wasn't a generic or memory error. Catch errors
15507 thrown while inserting breakpoints in overlayed code. Output
15508 error message of software breakpoints.
15509 * remote.c (remote_insert_breakpoint): If this breakpoint has
15510 target-side commands but this stub doesn't support Z0 packets,
15511 throw NOT_SUPPORTED_ERROR error.
15512 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15513 * target.h (target_insert_breakpoint): Extend comment.
15514 (target_insert_hw_breakpoint): Add comment.
15515
15516 2014-01-08 Pedro Alves <palves@redhat.com>
15517
15518 * remote.c (remote_add_thread): Add threads silently if starting
15519 up.
15520 (remote_notice_new_inferior): If in all-stop, and starting up,
15521 don't call notice_new_inferior.
15522 (get_current_thread): New function, factored out from ...
15523 (add_current_inferior_and_thread): ... this. Adjust.
15524 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15525 found any thread, then select the remote's current thread as GDB's
15526 current thread too.
15527
15528 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15529
15530 * NEWS: Create a new section for the next release branch.
15531 Rename the section of the current branch, now that it has
15532 been cut.
15533
15534 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15535
15536 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15537 * version.in: Bump version to 7.7.50.DATE-cvs.
15538
15539 2014-01-08 Yao Qi <yao@codesourcery.com>
15540
15541 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15542 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15543 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15544
15545 2014-01-08 Yao Qi <yao@codesourcery.com>
15546
15547 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15548 return value of bfd_get_filename to symbol_file_add_from_bfd.
15549
15550 2014-01-08 Pierre Muller <muller@sourceware.org>
15551
15552 Fix PR16201.
15553 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15554 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15555 to prim_record_mininal_symbol_and_info.
15556 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15557 in call to prim_record_minimal_symbol_and_info.
15558 (read_pe_exported_syms): Set index field of section_data.
15559
15560 2014-01-07 Andrew Pinski <apinski@cavium.com>
15561
15562 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15563 * features/aarch64.c: Regenerate.
15564
15565 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15566
15567 * target.c (return_null): Define.
15568 (update_current_target): Use it instead of return_zero for
15569 functions that return a pointer.
15570
15571 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15572
15573 * source.c (add_path): Fix check for duplicated paths in the previously
15574 included paths.
15575
15576 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15577
15578 * ada-lang.c: Remove duplicated include statements.
15579 * alphabsd-nat.c: Ditto.
15580 * amd64-darwin-tdep.c: Ditto.
15581 * amd64fbsd-nat.c: Ditto.
15582 * auto-load.c: Ditto.
15583 * ax-gdb.c: Ditto.
15584 * breakpoint.c: Ditto.
15585 * dbxread.c: Ditto.
15586 * fork-child.c: Ditto.
15587 * gdb_usleep.c: Ditto.
15588 * i386-darwin-tdep.c: Ditto.
15589 * i386fbsd-nat.c: Ditto.
15590 * infcmd.c: Ditto.
15591 * inferior.c: Ditto.
15592 * jv-lang.c: Ditto.
15593 * linux-nat.c: Ditto.
15594 * linux-tdep.c: Ditto.
15595 * m68kbsd-nat.c: Ditto.
15596 * m68klinux-nat.c: Ditto.
15597 * microblaze-tdep.c: Ditto.
15598 * mips-linux-tdep.c: Ditto.
15599 * mn10300-tdep.c: Ditto.
15600 * nto-tdep.c: Ditto.
15601 * opencl-lang.c: Ditto.
15602 * osdata.c: Ditto.
15603 * printcmd.c: Ditto.
15604 * regcache.c: Ditto.
15605 * remote-m32r-sdi.c: Ditto.
15606 * remote.c: Ditto.
15607 * symfile.c: Ditto.
15608 * symtab.c: Ditto.
15609 * tilegx-linux-nat.c: Ditto.
15610 * tilegx-tdep.c: Ditto.
15611 * tracepoint.c: Ditto.
15612 * valops.c: Ditto.
15613 * vaxbsd-nat.c: Ditto.
15614 * windows-nat.c: Ditto.
15615 * xtensa-tdep.c: Ditto.
15616
15617 2014-01-07 Yao Qi <yao@codesourcery.com>
15618
15619 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15620
15621 2014-01-07 Yao Qi <yao@codesourcery.com>
15622 Joel Brobecker <brobecker@adacore.com>
15623
15624 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15625 (pdc_write_regs): Likewise.
15626 (fetch_regs_kernel_thread): Likewise.
15627 (store_regs_kernel_thread): Likewise.
15628
15629 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15630
15631 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15632 tagged type objects to their actual type.
15633
15634 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15635
15636 * ada-valprint.c (print_field_values): Add "language" parameter.
15637 Update calls to print_field_values and print_variant_part.
15638 Pass new parameter "language" in call to val_print instead
15639 of "current_language". Replace call to ada_val_print by call
15640 to val_print.
15641 (print_variant_part): Add "language" parameter.
15642 (ada_val_print_struct_union): Update call to print_field_values.
15643
15644 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15645
15646 * ada-valprint.c (ui_memcpy): Delete.
15647 (ada_print_floating): Update documentation. Add empty line
15648 between between function documentation and implementation.
15649 Delete variable "buffer". Use ui_file_xstrdup in place of
15650 ui_file_put. Minor adjustments following this change.
15651
15652 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15653
15654 * ada-valprint.c (ada_val_print_string): New function,
15655 extracted from ada_val_print_array.
15656 (ada_val_print_array): Replace extracted code by call
15657 to ada_val_print_string followed by a return. Move
15658 "else" branch to the function's top block.
15659
15660 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15661
15662 * ada-valprint.c (ada_val_print_array): Move implementation
15663 down. Rename parameter "offset" and "val" into "offset_aligned"
15664 and "original_value" respectively. Add parameter "offset".
15665
15666 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15667
15668 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15669 re-organizing the code. Change the "???" message printed
15670 when target type is a TYPE_CODE_UNDEF into
15671 "<ref to undefined type>".
15672
15673 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15674
15675 * ada-valprint.c (print_record): Delete, implementation inlined...
15676 (ada_val_print_struct_union): ... here. Remove call to
15677 ada_check_typedef in inlined implementation.
15678
15679 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15680
15681 * ada-valprint.c (ada_val_print_gnat_array): New function,
15682 extracted from ada_val_print_1;
15683 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15684 (ada_val_print_flt, ada_val_print_struct_union)
15685 (ada_val_print_ref): Likewise.
15686 (ada_val_print_1): Delete variables i and elttype.
15687 Replace extracted-out code by call to corresponding
15688 new functions.
15689
15690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15691
15692 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15693
15694 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15695
15696 * ada-valprint.c (ada_val_print_1): Replace calls to
15697 ada_val_print_1 by calls to val_print.
15698
15699 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15700
15701 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15702 Update calls to self accordingly. Replace calls to c_val_print
15703 by calls to val_print.
15704
15705 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15706
15707 * ada-valprint.c (print_record): Delete declaration.
15708 (adjust_type_signedness, ada_val_print_1): Likewise.
15709 (ada_val_print): Move function implementation down.
15710 (print_variant_part, print_field_values, print_record):
15711 Move function implementation up.
15712
15713 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15714
15715 * python/py-type.c (typy_get_name): New function.
15716 (type_object_getset): Add entry for attribute "name".
15717 * NEWS: Add entry mentioning this new attribute.
15718
15719 2014-01-07 Yao Qi <yao@codesourcery.com>
15720
15721 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15722 statement.
15723
15724 2014-01-07 Yao Qi <yao@codesourcery.com>
15725
15726 * gnu-nat.c (info_port_rights): Add qualifier const to
15727 argument args.
15728
15729 2014-01-07 Yao Qi <yao@codesourcery.com>
15730
15731 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15732
15733 2014-01-07 Yao Qi <yao@codesourcery.com>
15734
15735 * gnu-nat.c (make_inf) Update declaration.
15736 (make_inf): Make it static.
15737 (inf_set_traced): Likewise.
15738 (inf_port_to_thread, inf_task_died_status): Likewise.
15739
15740 2014-01-07 Yao Qi <yao@codesourcery.com>
15741
15742 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15743
15744 2014-01-07 Yao Qi <yao@codesourcery.com>
15745
15746 * gnu-nat.c (_initialize_gnu_nat): Declare.
15747
15748 2014-01-07 Yao Qi <yao@codesourcery.com>
15749
15750 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15751 'enum bfd_endian'.
15752 (struct gdbarch_info) <byte_order>: Change type to
15753 'enum bfd_endian'.
15754 <byte_order_for_code>: Likewise.
15755 * gdbarch.c, gdbarch.h: Regenerated.
15756
15757 2014-01-06 Sasha Smundak <asmundak@google.com>
15758
15759 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15760
15761 2014-01-06 Tom Tromey <tromey@redhat.com>
15762
15763 * doublest.c (convert_doublest_to_floatformat): Use const, not
15764 CONST.
15765 * somread.c (som_symtab_read): Likewise.
15766
15767 2014-01-07 Hui Zhu <hui@codesourcery.com>
15768
15769 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15770 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15771 (gdb_bfd_fopen): Ditto.
15772 (gdb_bfd_openr): Ditto.
15773 (gdb_bfd_openw): Ditto.
15774 (gdb_bfd_openr_iovec): Ditto.
15775 (gdb_bfd_fdopenr): Ditto.
15776 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15777 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15778 with xstrdup.
15779 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15780 with xstrdup.
15781 * symfile-mem.c (symbol_file_add_from_memory): Removed
15782 gdb_bfd_stash_filename.
15783
15784 2014-01-03 Doug Evans <dje@google.com>
15785
15786 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15787 output.
15788
15789 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15790
15791 Update year range in copyright notice of all files.
15792
15793 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15794
15795 * top.c (print_gdb_version): Set copyright year to 2014.
15796
15797 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15798
15799 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15800
15801 For older changes see ChangeLog-2013.
15802 \f
15803 Local Variables:
15804 mode: change-log
15805 left-margin: 8
15806 fill-column: 74
15807 version-control: never
15808 coding: utf-8
15809 End:
This page took 0.464276 seconds and 4 git commands to generate.