New python attribute gdb.Objfile.build_id.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-04 Doug Evans <dje@google.com>
2
3 * NEWS: Mention gdb.Objfile.build_id.
4 * build-id.c (build_id_bfd_get): Make non-static.
5 * build-id.h (build_id_bfd_get): Add declaration.
6 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
7 (OBJFPY_REQUIRE_VALID): New macro.
8 (objfpy_get_build_id): New function.
9 (objfile_getset): Add "build_id".
10 * utils.c (make_hex_string): New function.
11 * utils.h (make_hex_string): Add declaration.
12
13 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
14
15 * block.c (block_lookup_symbol_primary): New function.
16 * block.h (block_lookup_symbol_primary): New declaration.
17 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
18 Call block_lookup_symbol_primary.
19
20 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
21
22 * tramp-frame.h (tramp_frame): Add `validate' member.
23 * tramp-frame.c (tramp_frame_start): Validate trampoline before
24 scanning.
25 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
26 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
27 (mips_linux_o32_sigframe): Initialize `validate' member.
28 (mips_linux_o32_rt_sigframe): Likewise.
29 (mips_linux_n32_rt_sigframe): Likewise.
30 (mips_linux_n64_rt_sigframe): Likewise.
31 (micromips_linux_o32_sigframe): New variable.
32 (micromips_linux_o32_rt_sigframe): Likewise.
33 (micromips_linux_n32_rt_sigframe): Likewise.
34 (micromips_linux_n64_rt_sigframe): Likewise.
35 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
36 (mips_linux_n32n64_sigframe_init): Likewise.
37 (mips_linux_sigframe_validate): New function.
38 (micromips_linux_sigframe_validate): Likewise.
39 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
40
41 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
42
43 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
44 * sparc-sol2-tdep.c: Include "regset.h".
45 (sparc32_sol2_supply_core_gregset): New function.
46 (sparc32_sol2_collect_core_gregset): Likewise.
47 (sparc32_sol2_supply_core_fpregset): Likewise.
48 (sparc32_sol2_collect_core_fpregset): Likewise.
49 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
50 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
51 tdep->fpregset/sizeof_fpregset.
52 * sparc64-sol2-tdep.c: Include "regset.h".
53 (sparc64_sol2_supply_core_gregset): New function.
54 (sparc64_sol2_collect_core_gregset): Likewise.
55 (sparc64_sol2_supply_core_fpregset): Likewise.
56 (sparc64_sol2_collect_core_fpregset): Likewise.
57 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
58 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
59 tdep->fpregset/sizeof_fpregset.
60
61 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
62
63 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
64 type.
65
66 2014-12-02 Doug Evans <dje@google.com>
67
68 * symtab.c (symbol_init_cplus_specific): Delete.
69 (symbol_set_demangled_name): Remove special c++ support.
70 (symbol_get_demangled_name, symbol_set_language): Ditto.
71 * symtab.h (struct cplus_specific): Delete.
72 (struct general_symbol_info) <language_specific>: Remove
73 cplus_specific.
74
75 2014-12-02 Doug Evans <dje@google.com>
76
77 PR symtab/17602
78 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
79
80 2014-12-02 Doug Evans <dje@google.com>
81
82 PR symtab/17591
83 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
84 to strip parameters.
85
86 2014-12-02 Doug Evans <dje@google.com>
87
88 * dwarf2read.c (peek_die_abbrev): Improve error message text.
89
90 2014-12-02 Doug Evans <dje@google.com>
91
92 * valops.c (do_search_struct_field): Remove remnant of Chill support.
93 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
94
95 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
96
97 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
98
99 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
100
101 * NEWS: Mention new Python events.
102 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
103 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
104 (py-infevents.o): New rule.
105 * doc/observer.texi (inferior_call_pre, inferior_call_post)
106 (memory_changed, register_changed): New observers.
107 * infcall.c (call_function_by_hand): Notify observer before and
108 after inferior call.
109 * python/py-event.h (inferior_call_kind): New enum.
110 (emit_inferior_call_event): New prototype.
111 (emit_register_changed_event): New prototype.
112 (emit_memory_changed_event): New prototype.
113 * python/py-events.h (events_object): New registries
114 inferior_call, memory_changed and register_changed.
115 * python/py-evts.c (gdbpy_initialize_py_events): Add the
116 inferior_call, memory_changed and register_changed registries.
117 * python/py-infevents.c: New.
118 * python/py-inferior.c (python_on_inferior_call_pre)
119 (python_on_inferior_call_post, python_on_register_change)
120 (python_on_memory_change): New functions.
121 (gdbpy_initialize_inferior): Attach python handler to new
122 observers.
123 * python/py-infthread.c(gdbpy_create_ptid_object): New.
124 (thpy_get_ptid) Use gdbpy_create_ptid_object.
125 * python/python-internal.h:
126 (gdbpy_create_ptid_object)
127 (gdbpy_initialize_inferior_call_pre_event)
128 (gdbpy_initialize_inferior_call_post_event)
129 (gdbpy_initialize_register_changed_event)
130 (gdbpy_initialize_memory_changed_event): New prototypes.
131 * python/python.c (_initialize_python): Initialize new events.
132 * valops.c (value_assign): Notify register_changed observer.
133
134 2014-12-02 Doug Evans <dje@google.com>
135
136 * python/py-infthread.c: Whitespace fixes.
137
138 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
139
140 * features/Makefile (s390-te-linux64-expedite): Replace
141 non-existant r14 and r15 by r14l and r15l, respectively.
142 * regformats/s390-te-linux64.dat: Regenerate.
143
144 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
145
146 * objfiles.c (allocate_objfile): Remove duplicate comment.
147
148 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
149
150 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
151 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
152 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
153 (supply_gregset, supply_fpregset): Remove.
154 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
155 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
156 and sizeof_gregset.
157
158 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
159
160 Add add-auto-load-scripts-directory.
161 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
162 * auto-load.c (add_auto_load_dir): New function.
163 (_initialize_auto_load): Install it.
164
165 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
166
167 Pushed by Joel Brobecker <brobecker@adacore.com>.
168 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
169
170 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
171
172 * eval.c (evaluate_subexp): Check that the thread stack temporaries
173 are not already enabled before enabling them.
174
175 2014-11-29 Yao Qi <yao@codesourcery.com>
176
177 * arm-tdep.c (arm_analyze_prologue): Move local variables
178 'framereg' and 'framesize' to inner block. Move code to
179 inner block too.
180
181 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
182
183 * eval.c: Include gdbthread.h.
184 (evaluate_subexp): Enable thread stack temporaries before
185 evaluating a complete expression and clean them up after the
186 evaluation is complete.
187 * gdbthread.h: Include common/vec.h.
188 (value_ptr): New typedef.
189 (VEC (value_ptr)): New vector type.
190 (value_vec): New typedef.
191 (struct thread_info): Add new fields stack_temporaries_enabled
192 and stack_temporaries.
193 (enable_thread_stack_temporaries)
194 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
195 (get_last_thread_stack_temporary)
196 (value_in_thread_stack_temporaries): Declare.
197 * gdbtypes.c (class_or_union_p): New function.
198 * gdbtypes.h (class_or_union_p): Declare.
199 * infcall.c (call_function_by_hand): Store return values of class
200 type as temporaries on stack.
201 * thread.c (enable_thread_stack_temporaries): New function.
202 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
203 (get_last_thread_stack_temporary): Likewise.
204 (value_in_thread_stack_temporaries): Likewise.
205 * value.c (value_force_lval): New function.
206 * value.h (value_force_lval): Declare.
207
208 2014-11-28 Pierre Muller <muller@sourceware.org>
209
210 Pushed by Joel Brobecker <brobecker@adacore.com>.
211 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
212 registers.
213
214 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
215
216 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
217 * config/sparc/linux.mh (NATDEPFILES): Likewise.
218 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
219 * m68klinux-nat.c (fetch_core_registers): Remove.
220 (linux_elf_core_fns): Remove.
221 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
222
223 2014-11-28 Joel Brobecker <brobecker@adacore.com>
224
225 * utils.c (gdb_realpath): Rework comment about handling on
226 Windows.
227
228 2014-11-28 Yao Qi <yao@codesourcery.com>
229
230 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
231 rename.
232 * gnulib/aclocal.m4: Re-generated.
233 * gnulib/config.in: Re-generated.
234 * gnulib/configure: Re-generated.
235 * gnulib/import/Makefile.am: Re-generated.
236 * gnulib/import/Makefile.in: Re-generated.
237 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
238 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
239 * import/basename-lgpl.c: New file.
240 * import/dirname-lgpl.c: New file.
241 * import/dirname.h: New file.
242 * import/m4/dirname.m4: New file.
243 * import/m4/malloc.m4: New file.
244 * import/m4/rename.m4: New file.
245 * import/m4/rmdir.m4: New file.
246 * import/m4/stdio_h.m4: New file.
247 * import/malloc.c: New file.
248 * import/rename.c: New file.
249 * import/rmdir.c: New file.
250 * import/same-inode.h: New file.
251 * import/stdio.c: New file.
252 * import/stdio.in.h: New file.
253 * import/stripslash.c: New file.
254
255 2014-11-28 Yao Qi <yao@codesourcery.com>
256
257 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
258 and realpath.
259 * config.in: Re-generated.
260 * configure: Re-generated.
261 * utils.c (gdb_realpath): Remove code calling realpath,
262 canonicalize_file_name and pathconf.
263 [!_WIN32]: Call canonicalize_file_name.
264
265 2014-11-28 Yao Qi <yao@codesourcery.com>
266
267 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
268 canonicalize-lgpl.
269 * aclocal.m4: Re-generated.
270 * config.in: Re-generated.
271 * configure: Re-generated.
272 * import/Makefile.am: Re-generated.
273 * import/Makefile.in: Re-generated.
274 * import/m4/gnulib-cache.m4: Re-generated.
275 * import/m4/gnulib-comp.m4: Re-generated.
276 * import/canonicalize-lgpl.c: New file.
277 * import/extra/snippet/_Noreturn.h: New file.
278 * import/m4/canonicalize.m4: New file.
279 * import/m4/double-slash-root.m4: New file.
280 * import/m4/eealloc.m4: New file.
281 * import/m4/malloca.m4: New file.
282 * import/m4/nocrash.m4: New file.
283 * import/m4/stdlib_h.m4: New file.
284 * import/malloca.c: New file.
285 * import/malloca.h: New file.
286 * import/malloca.valgrind: New file.
287
288 2014-11-28 Yao Qi <yao@codesourcery.com>
289
290 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
291 * config.in, configure: Regenerate.
292 * symfile.c (find_separate_debug_file_by_debuglink): Remove
293 code checking HAVE_LSTAT is defined.
294
295 2014-11-28 Yao Qi <yao@codesourcery.com>
296
297 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
298 lstat.
299 * gnulib/aclocal.m4: Re-generated.
300 * gnulib/config.in: Re-generated.
301 * gnulib/configure: Re-generated.
302 * gnulib/import/Makefile.am: Re-generated.
303 * gnulib/import/Makefile.in: Re-generated.
304 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
305 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
306 * gnulib/import/lstat.c: New file.
307 * gnulib/import/m4/lstat.m4: New file.
308
309 2014-11-28 Yao Qi <yao@codesourcery.com>
310
311 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
312 * config.in, configure: Re-generate.
313 * inf-child.c (inf_child_fileio_readlink): Don't check
314 HAVE_READLINK is defined.
315
316 2014-11-28 Yao Qi <yao@codesourcery.com>
317
318 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
319 * gnulib/aclocal.m4: Re-generated.
320 * gnulib/config.in: Likewise.
321 * gnulib/configure: Likewise.
322 * gnulib/import/Makefile.am: Likewise.
323 * gnulib/import/Makefile.in: Likewise.
324 * gnulib/import/m4/gnulib-cache.m4: Likewise.
325 * gnulib/import/m4/gnulib-comp.m4: Likewise.
326 * gnulib/import/dosname.h: New file
327 * gnulib/import/m4/largefile.m4: New file.
328 * gnulib/import/m4/readlink.m4: New file.
329 * gnulib/import/m4/stat.m4: New file.
330 * gnulib/import/readlink.c: New file.
331 * gnulib/import/stat.c: New file.
332
333 2014-11-26 Mark Wielaard <mjw@redhat.com>
334
335 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
336 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
337
338 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
339
340 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
341 that there can be only one stack adjustment in the prologue
342 with tests to detect specific disallowed stack adjustments.
343
344 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
345
346 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
347 adjustments.
348
349 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
350
351 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
352 the instruction as well as reading it from memory.
353 (nios2_match_add): New.
354 (nios2_match_sub): New.
355 (nios2_match_addi): New.
356 (nios2_match_orhi): New.
357 (nios2_match_stw): New.
358 (nios2_match_ldw): New.
359 (nios2_match_rdctl): New.
360 (enum branch_condition): New.
361 (nios2_match_branch): New.
362 (nios2_match_jmpi): New.
363 (nios2_match_calli): New.
364 (nios2_match_jmpr): New.
365 (nios2_match_callr): New.
366 (nios2_match_break): New.
367 (nios2_match_trap): New.
368 (nios2_in_epilogue_p): Rewrite to use new functions.
369 (nios2_analyze_prologue): Likewise.
370 (nios2_skip_prologue): Delete unused local limit_pc.
371 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
372 (nios2_get_next_pc): Rewrite to use new functions.
373
374 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
375
376 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
377
378 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
379
380 Pushed by Joel Brobecker <brobecker@adacore.com>
381 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
382 elements pi_len by the size of the elements before calling
383 vm_deallocate.
384 (inf_validate_task_sc): Likewise, and properly deallocate the
385 noise array.
386
387 2014-11-23 Doug Evans <xdje42@gmail.com>
388
389 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
390 number and name if present. All callers updated.
391 (dump_fn_fieldlists): Fix indentation of args.
392
393 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
394
395 * MAINTAINERS (Write After Approval): Add myself.
396
397 2014-11-23 Joel Brobecker <brobecker@adacore.com>
398
399 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
400 to a bp_call_dummy breakpoint type.
401
402 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
403
404 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
405 registering the signal handler.
406
407 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
408
409 * event-top.h (call_stdin_event_handler_again_p): Declare.
410 * event-top.c (call_stdin_event_handler_again_p): Define.
411 (stdin_event_handler): Use it.
412 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
413 handler again if there is pending input following a
414 start sequence.
415
416 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
417
418 Pushed by Joel Brobecker <brobecker@adacore.com>
419 * linux-fork.c (checkpoint_command): Print index of new
420 checkpoint in response message.
421
422 2014-11-23 Yao Qi <yao@codesourcery.com>
423
424 * valprint.c (read_string): Move local variables 'found_nul',
425 'chunksize' and 'limit' to inner scope. Update comments.
426
427 2014-11-22 Doug Evans <xdje42@gmail.com>
428
429 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
430 function comment.
431 (search_symbols): Fix comments and whitespace.
432
433 2014-11-22 Doug Evans <xdje42@gmail.com>
434
435 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
436
437 2014-11-21 Doug Evans <dje@google.com>
438
439 * psymtab.c (psymtab_search_name): Fix whitespace.
440
441 2014-11-21 Yao Qi <yao@codesourcery.com>
442
443 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
444 errno.
445 * gnulib/import/Makefile.am: Re-generated.
446 * gnulib/import/Makefile.in: Likewise.
447 * gnulib/import/m4/gnulib-cache.m4: Likewise.
448
449 2014-11-21 Yao Qi <yao@codesourcery.com>
450
451 * gdb_wchar.h: Include wchar.h and wctype.h.
452 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
453 include wchar.h and wctype.h.
454 Don't check HAVE_WCHAR_H.
455
456 2014-11-21 Yao Qi <yao@codesourcery.com>
457
458 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
459 and wctype-h.
460 * gnulib/import/Makefile.am: Re-generated.
461 * gnulib/import/Makefile.in: Likewise.
462 * gnulib/import/m4/gnulib-cache.m4: Likewise.
463
464 2014-11-21 Yao Qi <yao@codesourcery.com>
465
466 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
467 memchr.
468 * gnulib/import/Makefile.am: Re-generated.
469 * gnulib/import/Makefile.in: Likewise.
470 * gnulib/import/m4/gnulib-cache.m4: Likewise.
471
472 2014-11-21 Yao Qi <yao@codesourcery.com>
473
474 * common/common-defs.h: Include alloca.h
475 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
476 * configure: Re-generated.
477 * defs.h: Remove code handling alloca.
478 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
479 or not.
480
481 2014-11-21 Yao Qi <yao@codesourcery.com>
482
483 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
484 alloca.
485 * gnulib/import/Makefile.am: Re-generated.
486 * gnulib/import/Makefile.in: Likewise..
487 * gnulib/import/m4/gnulib-cache.m4: Likewise.
488
489 2014-11-21 Yao Qi <yao@codesourcery.com>
490
491 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
492 alphabetical order.
493
494 2014-11-21 Joel Brobecker <brobecker@adacore.com>
495
496 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
497 flag_unsigned if HIGH_BOUND is constant and negative.
498
499 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
500
501 PR breakpoints/10737
502 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
503 modifier from "struct gdbarch" when compiling without Expat (XML)
504 support.
505 (get_syscall_by_number): Likewise.
506 (get_syscall_by_name): Likewise.
507 (get_syscall_names): Likewise.
508
509 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
510
511 PR breakpoints/10737
512 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
513 set_xml_syscall_file_name to provide gdbarch.
514 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
515 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
516 * breakpoint.c (print_it_catch_syscall): Adjust call to
517 get_syscall_by_number to provide gdbarch.
518 (print_one_catch_syscall): Likewise.
519 (print_mention_catch_syscall): Likewise.
520 (print_recreate_catch_syscall): Likewise.
521 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
522 and get_syscall_by_name to provide gdbarch.
523 (catch_syscall_completer): Adjust call to get_syscall_names to
524 provide gdbarch.
525 * gdbarch.c: Regenerate.
526 * gdbarch.h: Likewise.
527 * gdbarch.sh: Forward declare "struct syscalls_info".
528 (xml_syscall_file): New variable.
529 (syscalls_info): Likewise.
530 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
531 set_xml_syscall_file_name to provide gdbarch.
532 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
533 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
534 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
535 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
536 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
537 * xml-syscall.c: Include gdbarch.h.
538 (set_xml_syscall_file_name): Accept gdbarch parameter.
539 (get_syscall_by_number): Likewise.
540 (get_syscall_by_name): Likewise.
541 (get_syscall_names): Likewise.
542 (my_gdb_datadir): Delete global variable.
543 (struct syscalls_info) <my_gdb_datadir>: New variable.
544 (struct syscalls_info) <sysinfo>: Rename variable to
545 "syscalls_info".
546 (sysinfo): Delete global variable.
547 (have_initialized_sysinfo): Likewise.
548 (xml_syscall_file): Likewise.
549 (sysinfo_free_syscalls_desc): Rename to...
550 (syscalls_info_free_syscalls_desc): ... this.
551 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
552 code to the new layout of "struct syscalls_info".
553 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
554 "syscalls_info".
555 (syscall_create_syscall_desc): Likewise.
556 (syscall_start_syscall): Likewise.
557 (syscall_parse_xml): Likewise.
558 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
559 (init_sysinfo): Rename to...
560 (init_syscalls_info): ...this. Add gdbarch as a parameter.
561 Adjust function to deal with gdbarch.
562 (xml_get_syscall_number): Delete parameter sysinfo. Accept
563 gdbarch as a parameter. Adjust code.
564 (xml_get_syscall_name): Likewise.
565 (xml_list_of_syscalls): Likewise.
566 (set_xml_syscall_file_name): Accept gdbarch as parameter.
567 (get_syscall_by_number): Likewise.
568 (get_syscall_by_name): Likewise.
569 (get_syscall_names): Likewise.
570 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
571 (get_syscall_by_number): Likewise.
572 (get_syscall_by_name): Likewise.
573 (get_syscall_names): Likewise.
574
575 2014-11-20 Doug Evans <xdje42@gmail.com>
576
577 Split struct symtab into two: struct symtab and compunit_symtab.
578 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
579 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
580 to "struct compunit_symtab *". All callers updated.
581 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
582 "struct symtab *" argument to "struct compunit_symtab *".
583 All callers updated.
584 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
585 result to "struct compunit_symtab *". All callers updated.
586 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
587 Change result to "struct compunit_symtab *". All callers updated.
588 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
589 hange type to "struct compunit_symtab *". All uses updated.
590 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
591 Change type to "struct compunit_symtab *". All uses updated.
592 * buildsym.c (struct buildsym_compunit): New struct.
593 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
594 (buildsym_compunit): New static global.
595 (finish_block_internal): Update to fetch objfile from
596 buildsym_compunit.
597 (make_blockvector): Delete objfile argument.
598 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
599 debugformat, producer.
600 (start_buildsym_compunit): New function.
601 (free_buildsym_compunit): Renamed from free_subfiles_list.
602 All callers updated.
603 (patch_subfile_names): Rewrite to use buildsym_compunit.
604 (get_compunit_symtab): New function.
605 (get_macro_table): Delete argument comp_dir. All callers updated.
606 (start_symtab): Change result to "struct compunit_symtab *".
607 All callers updated. Create the subfile of the main source file.
608 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
609 (reset_symtab_globals): Update.
610 (end_symtab_get_static_block): Update to use buildsym_compunit.
611 (end_symtab_without_blockvector): Rewrite.
612 (end_symtab_with_blockvector): Change result to
613 "struct compunit_symtab *". All callers updated.
614 Update to use buildsym_compunit. Don't set symtab->dirname,
615 instead set it in the compunit.
616 Explicitly make sure main symtab is first in its list.
617 Set debugformat, producer, blockvector, block_line_section, and
618 macrotable in the compunit.
619 (end_symtab_from_static_block): Change result to
620 "struct compunit_symtab *". All callers updated.
621 (end_symtab, end_expandable_symtab): Ditto.
622 (set_missing_symtab): Change symtab argument to
623 "struct compunit_symtab *". All callers updated.
624 (augment_type_symtab): Ditto.
625 (record_debugformat): Update to use buildsym_compunit.
626 (record_producer): Update to use buildsym_compunit.
627 * buildsym.h (struct subfile) <dirname>: Delete.
628 <producer, debugformat>: Delete.
629 <buildsym_compunit>: New member.
630 (get_compunit_symtab): Declare.
631 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
632 from primary_symtab. Change type to "struct compunit_symtab *".
633 All uses updated.
634 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
635 All callers updated.
636 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
637 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
638 symtab. Change type to "struct compunit_symtab *". All uses updated.
639 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
640 All callers updated.
641 (dw2_find_last_source_symtab): Ditto.
642 (dw2_lookup_symbol): Ditto.
643 (recursively_find_pc_sect_compunit_symtab): Renamed from
644 recursively_find_pc_sect_symtab. Change result to
645 "struct compunit_symtab *". All callers updated.
646 (dw2_find_pc_sect_compunit_symtab): Renamed from
647 dw2_find_pc_sect_symtab. Change result to
648 "struct compunit_symtab *". All callers updated.
649 (get_compunit_symtab): Renamed from get_symtab. Change result to
650 "struct compunit_symtab *". All callers updated.
651 (recursively_compute_inclusions): Change type of immediate_parent
652 argument to "struct compunit_symtab *". All callers updated.
653 (compute_compunit_symtab_includes): Renamed from
654 compute_symtab_includes. All callers updated. Rewrite to compute
655 includes of compunit_symtabs and not symtabs.
656 (process_full_comp_unit): Update to work with struct compunit_symtab.
657 (process_full_type_unit): Ditto.
658 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
659 (dwarf_decode_lines): Remove special case handling of main subfile.
660 (macro_start_file): Delete argument comp_dir. All callers updated.
661 (dwarf_decode_macro_bytes): Ditto.
662 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
663 use struct compunit_symtab.
664 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
665 * jit.c (finalize_symtab): Build compunit_symtab.
666 * jv-lang.c (get_java_class_symtab): Change result to
667 "struct compunit_symtab *". All callers updated.
668 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
669 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
670 comp_dir. Change type to "struct compunit_symtab *".
671 All uses updated.
672 (new_macro_table): Change comp_dir argument to cust,
673 "struct compunit_symtab *". All callers updated.
674 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
675 nr_primary_symtabs. All uses updated.
676 (count_symtabs_and_blocks): Update to handle compunits.
677 (report_command_stats): Update output, "primary symtabs" renamed to
678 "compunits".
679 * mdebugread.c (new_symtab): Change result to
680 "struct compunit_symtab *". All callers updated.
681 (parse_procedure): Change type of search_symtab argument to
682 "struct compunit_symtab *". All callers updated.
683 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
684 separate loop.
685 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
686 symtabs. Change type to "struct compunit_symtab *". All uses updated.
687 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
688 All uses updated.
689 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
690 All uses updated.
691 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
692 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
693 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
694 symtab. Change type to "struct compunit_symtab *". All uses updated.
695 * psymtab.c (psymtab_to_symtab): Change result type to
696 "struct compunit_symtab *". All callers updated.
697 (find_pc_sect_compunit_symtab_from_partial): Renamed from
698 find_pc_sect_symtab_from_partial. Change result type to
699 "struct compunit_symtab *". All callers updated.
700 (lookup_symbol_aux_psymtabs): Change result type to
701 "struct compunit_symtab *". All callers updated.
702 (find_last_source_symtab_from_partial): Ditto.
703 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
704 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
705 and macro_table from compunit.
706 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
707 type to "struct compunit_symtab *". All callers updated.
708 (debug_qf_lookup_symbol): Ditto.
709 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
710 debug_qf_find_pc_sect_symtab, change result type to
711 "struct compunit_symtab *". All callers updated.
712 * symfile.c (allocate_symtab): Delete objfile argument.
713 New argument cust.
714 (allocate_compunit_symtab): New function.
715 (add_compunit_symtab_to_objfile): New function.
716 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
717 Change result type to "struct compunit_symtab *". All uses updated.
718 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
719 Change result type to "struct compunit_symtab *". All uses updated.
720 * symmisc.c (print_objfile_statistics): Compute blockvector count in
721 separate loop.
722 (dump_symtab_1): Update test for primary source symtab.
723 (maintenance_info_symtabs): Update to handle compunit symtabs.
724 (maintenance_check_symtabs): Ditto.
725 * symtab.c (set_primary_symtab): Delete.
726 (compunit_primary_filetab): New function.
727 (compunit_language): New function.
728 (iterate_over_some_symtabs): Change type of arguments "first",
729 "after_last" to "struct compunit_symtab *". All callers updated.
730 Update to loop over symtabs in each compunit.
731 (error_in_psymtab_expansion): Rename symtab argument to cust,
732 and change type to "struct compunit_symtab *". All callers updated.
733 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
734 Change result type to "struct compunit_symtab *". All callers updated.
735 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
736 Change result type to "struct compunit_symtab *". All callers updated.
737 (find_pc_sect_line): Only loop over symtabs within selected compunit
738 instead of all symtabs in the objfile.
739 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
740 <compunit_symtab> New member.
741 <block_line_section>: Moved to compunit_symtab.
742 <locations_valid>: Ditto.
743 <epilogue_unwind_valid>: Ditto.
744 <macro_table>: Ditto.
745 <dirname>: Ditto.
746 <debugformat>: Ditto.
747 <producer>: Ditto.
748 <objfile>: Ditto.
749 <call_site_htab>: Ditto.
750 <includes>: Ditto.
751 <user>: Ditto.
752 <primary>: Delete
753 (SYMTAB_COMPUNIT): New macro.
754 (SYMTAB_BLOCKVECTOR): Update definition.
755 (SYMTAB_OBJFILE): Update definition.
756 (SYMTAB_DIRNAME): Update definition.
757 (struct compunit_symtab): New type. Common members among all source
758 symtabs within a compilation unit moved here. All uses updated.
759 (COMPUNIT_OBJFILE): New macro.
760 (COMPUNIT_FILETABS): New macro.
761 (COMPUNIT_DEBUGFORMAT): New macro.
762 (COMPUNIT_PRODUCER): New macro.
763 (COMPUNIT_DIRNAME): New macro.
764 (COMPUNIT_BLOCKVECTOR): New macro.
765 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
766 (COMPUNIT_LOCATIONS_VALID): New macro.
767 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
768 (COMPUNIT_CALL_SITE_HTAB): New macro.
769 (COMPUNIT_MACRO_TABLE): New macro.
770 (ALL_COMPUNIT_FILETABS): New macro.
771 (compunit_symtab_ptr): New typedef.
772 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
773
774 2014-11-20 Joel Brobecker <brobecker@adacore.com>
775
776 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
777 if the TYPE_CODE of range_type's base type does not match
778 the TYPE_CODE of encoding_type's base type.
779
780 2014-11-19 Joel Brobecker <brobecker@adacore.com>
781
782 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
783 it starts with '<'.
784
785 2014-11-19 Joel Brobecker <brobecker@adacore.com>
786
787 * ada-lang.c (ada_is_redundant_range_encoding): New function.
788 (ada_is_redundant_index_type_desc): New function.
789 (to_fixed_array_type): Ignore parallel XA type if redundant.
790
791 2014-11-19 Joel Brobecker <brobecker@adacore.com>
792
793 * ada-lang.c (constrained_packed_array_type): Set the length
794 of the return array as if both bounds where zero if that
795 returned array's index type is dynamic.
796
797 2014-11-19 Yao Qi <yao@codesourcery.com>
798
799 * config/i386/go32.mh (CC): Remove.
800
801 2014-11-18 Doug Evans <xdje42@gmail.com>
802
803 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
804 updated.
805
806 2014-11-18 Doug Evans <xdje42@gmail.com>
807
808 * buildsym.c (buildsym_objfile): New static global.
809 (buildsym_comp_dir): New static global.
810 (finish_block_internal): Delete arg objfile. All callers updated.
811 (finish_block): Delete arg objfile. All callers updated.
812 (start_subfile): Delete arg dirname. All callers updated.
813 (patch_subfile_names): Update buildsym_comp_dir.
814 (get_macro_table): Delete arg objfile. All callers updated.
815 (start_symtab): New arg objfile. All callers updated.
816 Rename arg dirname to comp_dir.
817 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
818 (end_symtab_get_static_block): Delete arg objfile. All callers
819 updated.
820 (end_symtab_without_blockvector): Ditto.
821 (end_symtab_with_blockvector): Ditto.
822 (end_symtab_from_static_block): Ditto.
823 (end_symtab): Ditto.
824 (end_expandable_symtab): Ditto.
825 (augment_type_symtab): Ditto.
826 * coffread.c (coff_start_symtab): New arg objfile. All callers
827 updated.
828
829 2014-11-18 Doug Evans <xdje42@gmail.com>
830
831 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
832 updated.
833
834 2014-11-18 Doug Evans <xdje42@gmail.com>
835
836 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
837 symtab.dirname updated to use it.
838
839 2014-11-18 Doug Evans <xdje42@gmail.com>
840
841 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
842 symtab.objfile updated to use it.
843
844 2014-11-18 Doug Evans <xdje42@gmail.com>
845
846 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
847
848 2014-11-18 Doug Evans <xdje42@gmail.com>
849
850 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
851 SYMBOL_OBJFILE.
852 * findvar.c (default_read_var_value): Ditto.
853 * jv-lang.c (add_class_symtab_symbol): Ditto.
854 * parse.c (operator_check_standard): Ditto.
855 * printcmd.c (address_info): Ditto.
856 * symtab.c (fixup_symbol_section): Ditto.
857 (skip_prologue_sal): Ditto.
858 * tracepoint.c (scope_info): Ditto.
859 * valops.c (find_function_in_inferior): Ditto.
860 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
861 * python/py-symbol.c (set_symbol): Ditto.
862
863 2014-11-18 Doug Evans <xdje42@gmail.com>
864
865 * buildsym.c (main_subfile): New static global.
866 (free_subfiles_list): New function.
867 (start_symtab): Set main_subfile.
868 (restart_symtab): Replace init of subfiles, current_subfile with
869 call to free_subfiles_list.
870 (watch_main_source_file_lossage): Use main_subfile.
871 (reset_symtab_globals): Replace init of current_subfile with call
872 to free_subfiles_list.
873 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
874 functions, split out from ...
875 (end_symtab_from_static_block): ... here. Rewrite to call them.
876
877 2014-11-18 Doug Evans <xdje42@gmail.com>
878
879 The result of symtab expansion is always a primary symtab.
880 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
881 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
882 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
883 (psymtab_to_symtab): Add comment and assert.
884 (map_matching_symbols_psymtab): Remove unnecessary test for
885 non-primary symtab.
886
887 2014-11-15 Doug Evans <xdje42@gmail.com>
888
889 PR symtab/17559
890 * symtab.c (find_pc_line_symtab): New function.
891 * symtab.h (find_pc_line_symtab): Declare.
892 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
893 find_pc_symtab.
894 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
895 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
896 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
897 * tui/tui-win.c (make_visible_with_new_height): Ditto.
898 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
899 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
900
901 2014-11-15 Doug Evans <xdje42@gmail.com>
902
903 * symtab.c (expand_symtab_containing_pc): Renamed from
904 find_pc_sect_symtab_via_partial. All callers updated.
905
906 2014-11-15 Yao Qi <yao@codesourcery.com>
907
908 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
909
910 2014-11-14 Joel Brobecker <brobecker@adacore.com>
911
912 * common/common-defs.h: Move <stdarg.h> #include ahead of
913 <stdio.h> #include.
914
915 2014-11-14 Pedro Alves <palves@redhat.com>
916
917 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
918 [!PHONY_ICONV] (gdb_iconv): New function.
919 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
920
921 2014-11-13 Doug Evans <dje@google.com>
922
923 PR symtab/17591
924 * dwarf2read.c (find_slot_in_mapped_hash): Handle
925 "(anonymous namespace)".
926
927 2014-11-13 Doug Evans <dje@google.com>
928
929 * dwarf2read.c (update_enumeration_type_from_children): Avoid
930 infinite loop.
931
932 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
933
934 * NEWS (maint set target-async): Fix typo.
935
936 2014-11-12 Pedro Alves <palves@redhat.com>
937
938 * infrun.c (enum infwait_states, infwait_state): Delete.
939
940 2014-11-12 Pedro Alves <palves@redhat.com>
941
942 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
943 Rewrite stepping over a permanent breakpoint.
944 (thread_still_needs_step_over, proceed): Don't set
945 stepping_over_breakpoint for permanent breakpoints.
946 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
947 single-step breakpoints out of the target on hardware step
948 targets.
949 (process_event_stop_test): If stepping a permanent breakpoint
950 doesn't hit the step-resume breakpoint, delete the step-resume
951 breakpoint.
952 (switch_back_to_stepped_thread): Also check if the stepped thread
953 has advanced already on hardware step targets.
954 (currently_stepping): Return true if the thread stepped a
955 breakpoint.
956
957 2014-11-12 Pedro Alves <palves@redhat.com>
958
959 Mark locations as permanent, not the whole breakpoint.
960 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
961 (mark_breakpoints_out): Don't mark permanent breakpoints as
962 uninserted.
963 (breakpoint_init_inferior): Use mark_breakpoints_out.
964 (breakpoint_here_p): Adjust.
965 (bpstat_stop_status, describe_other_breakpoints): Remove handling
966 of permanent breakpoints.
967 (make_breakpoint_permanent): Mark each location as permanent,
968 instead of marking the breakpoint.
969 (add_location_to_breakpoint): If the location is permanent, mark
970 it as such, and as inserted.
971 (init_breakpoint_sal): Don't make the breakpoint permanent here.
972 (bp_location_compare, update_global_location_list): Adjust.
973 (update_breakpoint_locations): Don't make the breakpoint permanent
974 here.
975 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
976 breakpoints.
977 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
978 (struct bp_location) <permanent>: New field.
979 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
980 reference to bp_permanent.
981
982 2014-11-12 Pedro Alves <palves@redhat.com>
983
984 * arch-utils.c (default_skip_permanent_breakpoint): New function.
985 * arch-utils.h (default_skip_permanent_breakpoint): New
986 declaration.
987 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
988 Install default_skip_permanent_breakpoint as default method.
989 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
990 (i386_gdbarch_init): Don't install it.
991 * infrun.c (resume): Assume there's always a
992 gdbarch_skip_permanent_breakpoint implementation.
993 * gdbarch.h, gdbarch.c: Regenerate.
994
995 2014-11-11 Daniel Colascione <dancol@dancol.org>
996
997 Warn about cross-PID-namespace debugging.
998 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
999 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1000 * linux-thread-db.c (check_pid_namespace_match): New function.
1001 (thread_db_inferior_created): Call it.
1002
1003 2014-11-10 Doug Evans <xdje42@gmail.com>
1004
1005 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1006 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1007
1008 2014-11-10 Doug Evans <xdje42@gmail.com>
1009
1010 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1011
1012 2014-11-10 Doug Evans <xdje42@gmail.com>
1013
1014 PR symtab/17564
1015 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1016 (lookup_static_symbol): Move definition to new location and rewrite.
1017 (lookup_symbol_in_objfile): New function.
1018 (lookup_symbol_global_iterator_cb): Call it.
1019
1020 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1021
1022 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1023
1024 2014-11-07 Pedro Alves <palves@redhat.com>
1025
1026 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1027 check if we did a "nexti" inside a prologue.
1028 * symtab.c (in_prologue): Delete function.
1029 * symtab.h (in_prologue): Delete declaration.
1030
1031 2014-11-06 Doug Evans <xdje42@gmail.com>
1032
1033 * symtab.h (lookup_global_symbol): Improve function comment.
1034
1035 2014-11-06 Doug Evans <xdje42@gmail.com>
1036
1037 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1038 All callers updated.
1039 * symtab.h (lookup_global_symbol): Update decl.
1040 (lookup_static_symbol): Move decl to better location.
1041
1042 2014-11-06 Doug Evans <xdje42@gmail.com>
1043
1044 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1045
1046 2014-11-06 Doug Evans <xdje42@gmail.com>
1047
1048 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1049 All callers updated.
1050 (lookup_symbol_in_all_objfiles): Renamed from
1051 lookup_symbol_aux_symtabs. All callers updated.
1052 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1053 All callers updated.
1054 (lookup_symbol_in_objfile_symtabs): Renamed from
1055 lookup_symbol_aux_objfile. All callers updated.
1056
1057 2014-11-06 Doug Evans <xdje42@gmail.com>
1058
1059 * symtab.c (lookup_symbol_in_block): Renamed from
1060 lookup_symbol_aux_block. All callers updated.
1061
1062 2014-11-06 Doug Evans <xdje42@gmail.com>
1063
1064 * symtab.c (lookup_static_symbol): Renamed from
1065 lookup_static_symbol_aux. All callers updated.
1066 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1067 All callers updated.
1068
1069 2014-11-06 Doug Evans <xdje42@gmail.com>
1070
1071 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1072 * block.c (block_lookup_symbol): Use it.
1073 * cp-support.c (make_symbol_overload_list_block): Use it.
1074 * symtab.c (iterate_over_symbols): Use it.
1075
1076 2014-11-06 Doug Evans <xdje42@gmail.com>
1077
1078 * symtab.c (lookup_block_symbol): Moved to ...
1079 * block.c (block_lookup_symbol): ... here and renamed.
1080 All callers updated.
1081 * block.h (block_lookup_symbol): Declare.
1082 * symtab.h (lookup_block_symbol): Delete.
1083
1084 2014-11-06 Doug Evans <xdje42@gmail.com>
1085
1086 * ada-lang.c (ada_make_symbol_completion_list): Use
1087 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1088 * symtab.c (lookup_objfile_from_block): Ditto.
1089
1090 2014-11-06 Doug Evans <xdje42@gmail.com>
1091
1092 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1093 TYPE_CODE_STRUCT.
1094
1095 2014-11-06 Doug Evans <xdje42@gmail.com>
1096
1097 * objfiles.c (get_objfile_arch): Constify.
1098 * objfiles.h (get_objfile_arch): Update prototype.
1099 * solib.c (solib_global_lookup): Fetch arch from objfile,
1100 not target_gdbarch.
1101
1102 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1103
1104 * nios2-tdep.c (wild_insn): Delete.
1105 (profiler_insn, irqentry_insn): Delete.
1106 (nios2_match_sequence): Delete.
1107 (nios2_analyze_prologue): Update comments. Remove matching
1108 of obsolete profiler_insn and irqentry_insn sequences.
1109
1110 2014-11-05 Alan Modra <amodra@gmail.com>
1111
1112 * charset.c (convert_between_encodings): Shrink obstack using
1113 obstack_blank_fast.
1114 * minsyms.c (install_minimal_symbols): Likewise.
1115 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1116 to char* before doing pointer arithmetic.
1117
1118 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1119
1120 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1121
1122 2014-11-04 Pedro Alves <palves@redhat.com>
1123
1124 * breakpoint.c (breakpoint_thread_match): Delete function.
1125 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1126
1127 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1128
1129 PR c++/17494
1130 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1131 the method args also under EVAL_SKIP when evaluating method
1132 calls under EVAL_SKIP.
1133
1134 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1135
1136 * dwarf2loc.c (read_pieced_value): Do big endian
1137 processing only if gdb_regnum is not -1.
1138 (write_pieced_value): Ditto.
1139
1140 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1141
1142 * arm-linux-tdep.c (arm_linux_init_abi): Use
1143 info.byte_order_for_code to choose endianity of breakpoint
1144 instructions snippets.
1145
1146 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1147
1148 * arm-tdep.c (extract_arm_insn): Use
1149 gdbarch_byte_order_for_code to read arm instruction.
1150
1151 2014-11-02 Doug Evans <xdje42@gmail.com>
1152
1153 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1154
1155 2014-11-02 Doug Evans <xdje42@gmail.com>
1156
1157 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1158 main_subfile before returning.
1159
1160 2014-10-31 Doug Evans <xdje42@gmail.com>
1161
1162 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1163 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1164
1165 2014-10-31 Doug Evans <xdje42@gmail.com>
1166
1167 * valops.c (value_cast_pointers): Fix whitespace.
1168 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1169 Ditto.
1170
1171 2014-10-30 Doug Evans <dje@google.com>
1172
1173 * NEWS: Mention ability add attributes to gdb.Objfile and
1174 gdb.Progspace objects.
1175 * python/py-objfile.c (objfile_object): New member dict.
1176 (objfpy_dealloc): Py_XDECREF dict.
1177 (objfpy_initialize): Initialize dict.
1178 (objfile_getset): Add __dict__.
1179 (objfile_object_type): Set tp_dictoffset member.
1180 * python/py-progspace.c (progspace_object): New member dict.
1181 (pspy_dealloc): Py_XDECREF dict.
1182 (pspy_initialize): Initialize dict.
1183 (pspace_getset): Add __dict__.
1184 (pspace_object_type): Set tp_dictoffset member.
1185
1186 2014-10-30 Yao Qi <yao@codesourcery.com>
1187
1188 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1189 replace '\\' with '\\\\'.
1190
1191 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1192
1193 GDB 7.8.1 released.
1194
1195 2014-10-29 Pedro Alves <palves@redhat.com>
1196
1197 PR gdb/17408
1198 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1199 instead of assuming a thread with a stepping range is always
1200 stepping.
1201
1202 2014-10-29 Pedro Alves <palves@redhat.com>
1203
1204 PR python/17372
1205 * event-top.c (change_line_handler): Call
1206 gdb_rl_callback_handler_remove instead of
1207 rl_callback_handler_remove.
1208 (callback_handler_installed): New global.
1209 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1210 (gdb_rl_callback_handler_reinstall): New functions.
1211 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1212 gdb_rl_callback_handler_install instead of
1213 rl_callback_handler_remove and rl_callback_handler_install.
1214 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1215 instead of rl_callback_handler_remove.
1216 * event-top.h (gdb_rl_callback_handler_remove)
1217 (gdb_rl_callback_handler_install)
1218 (gdb_rl_callback_handler_reinstall): New declarations.
1219 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1220 cleanup function.
1221 (fetch_inferior_event): Install it.
1222 * top.c (gdb_readline_wrapper_line) Call
1223 gdb_rl_callback_handler_remove instead of
1224 rl_callback_handler_remove.
1225 (gdb_readline_wrapper_cleanup): Don't call
1226 rl_callback_handler_install.
1227
1228 2014-10-29 Pedro Alves <palves@redhat.com>
1229
1230 * event-top.c (command_line_handler): Clear the first byte of
1231 linebuffer, when it is first allocated.
1232
1233 2014-10-29 Pedro Alves <palves@redhat.com>
1234
1235 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1236 TRY_CATCH.
1237
1238 2014-10-29 Pedro Alves <palves@redhat.com>
1239
1240 PR tui/16138
1241 PR tui/17519
1242 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1243 (tui_allowed_p): Delete function.
1244 * tui/tui.c: Include "interps.h".
1245 (tui_enable): Don't use tui_allowed_p. Error out here with
1246 detailed error messages if the TUI is the top level interpreter,
1247 or if output is not a terminal. Use newterm instead of initscr,
1248 and error out if initializing the terminal fails. Also error out if
1249 the terminal doesn't support cursor addressing.
1250 * tui/tui.h (tui_allowed_p): Delete declaration.
1251
1252 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1253
1254 * arm-tdep.c (arm_skip_stack_protector): Return early if
1255 address loaded by first "ldr" instruction does not have
1256 a corresponding minimal symbol. Update comment.
1257
1258 2014-10-29 Yao Qi <yao@codesourcery.com>
1259
1260 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1261 loaded address correctly of ldr instruction.
1262
1263 2014-10-28 Pedro Alves <palves@redhat.com>
1264
1265 PR gdb/12623
1266 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1267 field.
1268 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1269 thread's stepped_breakpoint field. Skip if reverse debugging.
1270 Add comment.
1271 (init_thread_stepping_state, handle_signal_stop): Clear the
1272 thread's stepped_breakpoint field.
1273
1274 2014-10-27 Pedro Alves <palves@redhat.com>
1275
1276 * remote.c (remote_thread_alive): New, factored out from ...
1277 (remote_thread_alive): ... this.
1278 (remote_update_thread_list): Bail out before deleting threads if
1279 the target returned an empty list, and, the current thread has a
1280 magic/fake ptid.
1281
1282 2014-10-27 Pedro Alves <palves@redhat.com>
1283
1284 * infrun.c (handle_signal_stop): Also skip handlers when a random
1285 signal arrives while handling a "stepi" or a "nexti". Set the
1286 thread's 'step_after_step_resume_breakpoint' flag.
1287
1288 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1289
1290 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1291 (arm_record_ld_st_imm_offset): Reimplement to cover all
1292 load/store cases for ARM opcode 010.
1293 (arm_record_ld_st_multiple): Reimplement to cover all
1294 load/store cases for ARM opcode 100.
1295
1296 2014-10-26 Doug Evans <xdje42@gmail.com>
1297
1298 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1299
1300 2014-10-26 Doug Evans <xdje42@gmail.com>
1301
1302 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1303 parameter "kind" to "block_index".
1304 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1305 "block_index".
1306 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1307
1308 2014-10-26 Doug Evans <xdje42@gmail.com>
1309
1310 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1311
1312 2014-10-26 Doug Evans <xdje42@gmail.com>
1313
1314 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1315 obstack_alloc.
1316
1317 2014-10-26 Doug Evans <xdje42@gmail.com>
1318
1319 * parser-defs.h (block_found): Move decl from here ...
1320 * symtab.h (block_found): ... to here.
1321
1322 2014-10-26 Doug Evans <xdje42@gmail.com>
1323
1324 * symtab.h (struct field_of_this_result): Fix typo in comment.
1325 (lookup_symbol_in_language): Move function comment here.
1326 (lookup_symbol): Improve function comment.
1327 (basic_lookup_symbol_nonlocal): Ditto.
1328 (lookup_symbol_static, lookup_symbol_global): Ditto.
1329 (lookup_symbol_aux_block): Ditto.
1330 (lookup_language_this): Add function comment.
1331 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1332 function comment.
1333 (lookup_block_symbol): Improve function comment.
1334 (lookup_struct): Fix capitalization in function comment.
1335 (lookup_transparent_type): Add function comment.
1336 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1337 Improve function comment.
1338 (lookup_objfile_from_block): Add function comment.
1339 * symtab.c (lookup_symbol_in_language): Update function comment.
1340 (lookup_symbol, lookup_language_this): Ditto.
1341 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1342 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1343 (basic_lookup_symbol_nonlocal): Ditto.
1344 (lookup_symbol_static, lookup_symbol_global): Ditto.
1345 (lookup_transparent_type, lookup_block_symbol): Ditto.
1346
1347 2014-10-25 Doug Evans <xdje42@gmail.com>
1348
1349 * symtab.c (types_info): Delete forward decl.
1350 (functions_info, variables_info, sources_info): Ditto.
1351 (_initialize_symtab): Rewrite forward decl to use
1352 initialize_file_ftype.
1353
1354 2014-10-25 Doug Evans <xdje42@gmail.com>
1355
1356 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1357
1358 2014-10-25 Doug Evans <xdje42@gmail.com>
1359
1360 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1361 of local var child_die.
1362
1363 2014-10-24 Don Breazeal <donb@codesourcery.com>
1364
1365 * infrun.c (follow_fork_inferior): Update fork message printing
1366 to use target_terminal_ours_for_output instead of
1367 target_terminal_ours, to use _() for all format strings, to print
1368 "vfork" instead of "fork" for vforks, and to add a detach message.
1369 (handle_vfork_child_exec_or_exit): Update message printing to use
1370 target_terminal_ours_for_output instead of target_terminal_ours, to
1371 use _() for all format strings, and to fix some formatting.
1372
1373 2014-10-24 Pedro Alves <palves@redhat.com>
1374
1375 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1376 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1377 * config/vax/vax.mh: Delete.
1378 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1379 obsolete configurations section.
1380 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1381 * vax-nat.c: Delete file.
1382
1383 2014-10-24 Pedro Alves <palves@redhat.com>
1384
1385 * NEWS (Removed targets): Add OS/arch column.
1386
1387 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1388
1389 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1390 on the arg type of a constructor only if it is of reference type.
1391
1392 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1393
1394 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1395 accessors and constants from nios2 opcodes update.
1396 (nios2_get_next_pc): Likewise.
1397
1398 2014-10-19 Doug Evans <xdje42@gmail.com>
1399
1400 * gdbthread.h (set_running): Fix comment.
1401 (set_executing, finish_thread_state): Fix comment.
1402
1403 2014-10-18 Doug Evans <xdje42@gmail.com>
1404
1405 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1406
1407 2014-10-17 Doug Evans <dje@google.com>
1408
1409 * NEWS: Mention new event gdb.clear_objfiles.
1410 * python/py-event.h (emit_clear_objfiles_event): Clear
1411 * python/py-events.h (events_object): New member clear_objfiles.
1412 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1413 event.
1414 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1415 emit clear_objfiles event.
1416 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1417 function.
1418 (emit_clear_objfiles_event): New function.
1419 (clear_objfiles): New event.
1420 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1421 Declare.
1422 * python/python.c (_initialize_python): Call
1423 gdbpy_initialize_clear_objfiles_event.
1424
1425 2014-10-17 Doug Evans <dje@google.com>
1426
1427 * NEWS: Mention new gdb.Objfile.progspace attribute.
1428 * python/py-objfile.c (objfpy_get_progspace): New function.
1429 (objfile_getset): New entry for "progspace".
1430
1431 2014-10-17 Pedro Alves <palves@redhat.com>
1432
1433 PR gdb/17471
1434 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1435 returns a copy of the input.
1436 (run_command_1, continue_command, step_1, jump_command)
1437 (signal_command, until_command, advance_command, finish_command)
1438 (attach_command): Adjust and install a cleanup to free the
1439 stripped args.
1440
1441 2014-10-17 Pedro Alves <palves@redhat.com>
1442
1443 PR gdb/17300
1444 * infcmd.c (continue_1): If continuing all threads in the
1445 foreground, make sure the inferior's terminal settings are put in
1446 effect.
1447
1448 2014-10-17 Pedro Alves <palves@redhat.com>
1449
1450 PR gdb/17472
1451 * annotate.c (annotate_breakpoints_invalid): Use
1452 target_terminal_our_for_output instead of target_terminal_ours.
1453 Give back the terminal to the target.
1454 (annotate_frames_invalid): Likewise.
1455
1456 2014-10-17 Pedro Alves <palves@redhat.com>
1457
1458 * target.c (enum terminal_state): New enum.
1459 (terminal_state): New global.
1460 (target_terminal_init): New function.
1461 (target_terminal_inferior): Skip if inferior already owns the
1462 terminal.
1463 (target_terminal_ours, target_terminal_ours_for_output): New
1464 functions.
1465 * target.h (target_terminal_init): Convert to function prototype.
1466 (target_terminal_ours_for_output): Convert to function prototype
1467 and tweak comment.
1468 (target_terminal_ours): Convert to function prototype and tweak
1469 comment.
1470 * windows-nat.c (do_initial_windows_stuff): Call
1471 target_terminal_init instead of child_terminal_init_with_pgrp.
1472
1473 2014-10-17 Pedro Alves <palves@redhat.com>
1474
1475 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1476 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1477 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1478 solib-osf.c.
1479 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1480 * ada-lang.h [__alpha__ && __osf__]
1481 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1482 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1483 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1484 GDB_OSABI_OSF1.
1485 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1486 files.
1487 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1488 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1489 * configure: Regenerate.
1490 * configure.ac: Remove references to osf.
1491 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1492 section. Remove all other references to osf.
1493 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1494 Remove all other references to osf.
1495 * dec-thread.c: Delete file.
1496 * defs.h (GDB_OSABI_OSF1): Delete.
1497 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1498 defined.
1499 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1500 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1501 Delete code.
1502 (unconditionally_kill_inferior)
1503 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1504 * solib-osf.c: Delete file.
1505
1506 2014-10-17 Pedro Alves <palves@redhat.com>
1507
1508 * remote.c (clear_threads_listing_context): Move higher up, out of
1509 the HAVE_LIBEXPAT guard.
1510
1511 2014-10-16 Tristan Gingold <gingold@adacore.com>
1512
1513 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1514 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1515 on amd64.
1516
1517 2014-10-15 Pedro Alves <palves@redhat.com>
1518
1519 * dec-thread.c (dec_thread_count_gdb_threads)
1520 (dec_thread_add_gdb_thread): Delete.
1521 (dec_thread_update_thread_list): Delete.
1522 (dec_thread_find_new_threads): Rename to ...
1523 (dec_thread_update_thread_list): ... this. Delete GDB-size
1524 threads that are no longer found in dec_thread_list.
1525 (resync_thread_list): Delete.
1526 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1527 resync_thread_list.
1528
1529 2014-10-15 Pedro Alves <palves@redhat.com>
1530
1531 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1532 * remote.c (remote_update_thread_list): Skip calling prune_threads
1533 if any thread listing method is supported, and instead walk over
1534 the set of remote threads listed, deleting those that are not
1535 found in GDB's thread list.
1536
1537 2014-10-15 Pedro Alves <palves@redhat.com>
1538
1539 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1540 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1541 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1542 (bsd_uthread_target): Adjust.
1543 * corelow.c (core_open): Adjust.
1544 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1545 (dec_thread_update_thread_list): New function.
1546 (init_dec_thread_ops): Adjust.
1547 * gdbthread.h (prune_threads): New declaration.
1548 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1549 (thread_db_update_thread_list): ... this. Call prune_threads.
1550 (init_thread_db_ops): Adjust.
1551 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1552 (procfs_update_thread_list): ... this. Call prune_threads.
1553 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1554 Adjust.
1555 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1556 (obsd_update_thread_list): ... this. Call prune_threads.
1557 (obsd_add_target): Adjust.
1558 * procfs.c (procfs_target): Adjust.
1559 (procfs_notice_thread): Update comment.
1560 (procfs_find_new_threads): Rename to ...
1561 (procfs_update_thread_list): ... this. Call prune_threads.
1562 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1563 comment.
1564 (ravenscar_wait): Adjust.
1565 (ravenscar_find_new_threads): Rename to ...
1566 (ravenscar_update_thread_list): ... this. Call prune_threads.
1567 (init_ravenscar_thread_ops): Adjust.
1568 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1569 (record_btrace_update_thread_list): ... this. Adjust comment.
1570 (init_record_btrace_ops): Adjust.
1571 * remote.c (remote_threads_info): Rename to ...
1572 (remote_update_thread_list): ... this. Call prune_threads.
1573 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1574 Adjust.
1575 * sol-thread.c (check_for_thread_db): Adjust.
1576 (sol_find_new_threads_callback): Rename to ...
1577 (sol_update_thread_list_callback): ... this.
1578 (sol_find_new_threads): Rename to ...
1579 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1580 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1581 * target-delegates.c: Regenerate.
1582 * target.c (target_find_new_threads): Rename to ...
1583 (target_update_thread_list): ... this.
1584 * target.h (struct target_ops): Rename to_find_new_threads field
1585 to to_update_thread_list.
1586 (target_find_new_threads): Rename to ...
1587 (target_update_thread_list): ... this.
1588 * thread.c (prune_threads): Make extern.
1589 (update_thread_list): Adjust.
1590
1591 2014-10-15 Pedro Alves <palves@redhat.com>
1592
1593 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1594 Add describing comment. Return -1 if the qL packet is not
1595 supported.
1596 (struct thread_item, thread_item_t): Move higher up in
1597 the file. Add comments.
1598 (struct threads_parsing_context): Move higher up in
1599 the file, add comments, and remote to ...
1600 (struct threads_listing_context): ... this.
1601 (remote_newthread_step): Don't add the thread to GDB's thread
1602 database here. Instead push it to the thread_listing_context
1603 list.
1604 (remote_find_new_threads): Rename to ...
1605 (remote_get_threads_with_ql): ... this. Add target_ops and
1606 targets_listing_context parameters. Pass down context.
1607 (start_thread): Adjust.
1608 (clear_threads_parsing_context): Rename to ...
1609 (clear_threads_listing_context): ... this.
1610 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1611 remote_threads_info.
1612 (remote_get_threads_with_qthreadinfo): Ditto.
1613 (remote_threads_info): Reimplement.
1614
1615 2014-10-15 Pedro Alves <palves@redhat.com>
1616
1617 * infrun.c (resume): Don't force displaced-stepping for all
1618 single-steps on software single-stepping archs.
1619
1620 2014-10-15 Pedro Alves <palves@redhat.com>
1621
1622 * breakpoint.c (single_step_breakpoints): Delete global.
1623 (insert_single_step_breakpoint): Adjust to store the breakpoint
1624 pointer in the current thread.
1625 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1626 (cancel_single_step_breakpoints): Delete functions.
1627 (breakpoint_has_location_inserted_here): Make extern.
1628 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1629 breakpoint list.
1630 * breakpoint.h (breakpoint_has_location_inserted_here): New
1631 declaration.
1632 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1633 (cancel_single_step_breakpoints): Remove declarations.
1634 * gdbthread.h (struct thread_control_state)
1635 <single_step_breakpoints>: New field.
1636 (delete_single_step_breakpoints)
1637 (thread_has_single_step_breakpoints_set)
1638 (thread_has_single_step_breakpoint_here): New declarations.
1639 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1640 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1641 (singlestep_pc): Delete globals.
1642 (infrun_thread_ptid_changed): Remove references to removed
1643 globals.
1644 (resume_cleanups): Delete the current thread's single-step
1645 breakpoints.
1646 (maybe_software_singlestep): Remove references to removed globals.
1647 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1648 delete_single_step_breakpoints.
1649 (init_wait_for_inferior): Remove references to removed globals.
1650 (delete_thread_infrun_breakpoints): Delete the thread's
1651 single-step breakpoints too.
1652 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1653 single-step breakpoints here.
1654 (delete_stopped_threads_single_step_breakpoints): New function.
1655 (adjust_pc_after_break): Adjust to use
1656 thread_has_single_step_breakpoints_set.
1657 (handle_inferior_event): Remove references to removed globals.
1658 Use delete_stopped_threads_single_step_breakpoints.
1659 (handle_signal_stop): Adjust to per-thread single-step
1660 breakpoints. Swap test order to do cheaper tests first.
1661 (switch_back_to_stepped_thread): Extend debug output. Remove
1662 references to removed globals.
1663 * record-full.c (record_full_wait_1): Adjust to per-thread
1664 single-step breakpoints.
1665 * thread.c (delete_single_step_breakpoints)
1666 (thread_has_single_step_breakpoints_set)
1667 (thread_has_single_step_breakpoint_here): New functions.
1668 (clear_thread_inferior_resources): Also delete the thread's
1669 single-step breakpoints.
1670
1671 2014-10-15 Pedro Alves <palves@redhat.com>
1672
1673 * thread.c (delete_thread_breakpoint): New function.
1674 (delete_step_resume_breakpoint)
1675 (delete_exception_resume_breakpoint): Use it.
1676 (delete_at_next_stop): New function.
1677 (clear_thread_inferior_resources): Use delete_at_next_stop.
1678
1679 2014-10-15 Pedro Alves <palves@redhat.com>
1680
1681 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1682 (breakpoint_inserted_here_p): ... here. Remove special case for
1683 software single-step breakpoints.
1684 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1685 (software_breakpoint_inserted_here_p): ... here. Remove special
1686 case for software single-step breakpoints.
1687 (bp_target_info_copy_insertion_state)
1688 (deprecated_insert_raw_breakpoint)
1689 (deprecated_remove_raw_breakpoint): Delete functions.
1690 * breakpoint.h (deprecated_insert_raw_breakpoint)
1691 (deprecated_remove_raw_breakpoint): Remove declarations.
1692
1693 2014-10-15 Pedro Alves <palves@redhat.com>
1694
1695 PR breakpoints/9649
1696 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1697 Delete array globals.
1698 (single_step_breakpoints): New global.
1699 (breakpoint_xfer_memory): Remove special handling for single-step
1700 breakpoints.
1701 (update_breakpoints_after_exec): Delete bp_single_step
1702 breakpoints.
1703 (detach_breakpoints): Remove special handling for single-step
1704 breakpoints.
1705 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1706 (bpstat_stop_status): Add comment.
1707 (bpstat_what, bptype_string, print_one_breakpoint_location)
1708 (adjust_breakpoint_address, init_bp_location): Handle
1709 bp_single_step.
1710 (new_single_step_breakpoint): New function.
1711 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1712 handling for single-step breakpoints.
1713 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1714 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1715 Rewrite.
1716 (detach_single_step_breakpoints, find_single_step_breakpoint):
1717 Delete functions.
1718 (breakpoint_has_location_inserted_here): New function.
1719 (single_step_breakpoint_inserted_here_p): Rewrite.
1720 * breakpoint.h: Remove FIXME.
1721 (enum bptype) <bp_single_step>: New enum value.
1722 (insert_single_step_breakpoint): Update comment.
1723 * infrun.c (resume_cleanups)
1724 (delete_step_thread_step_resume_breakpoint): Remove single-step
1725 breakpoints.
1726 (fetch_inferior_event): Install a cleanup that removes infrun
1727 breakpoints.
1728 (switch_back_to_stepped_thread) <expect thread advanced also>:
1729 Clear step-over info.
1730
1731 2014-10-15 Pedro Alves <palves@redhat.com>
1732
1733 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1734 (delete_thread_infrun_breakpoints): New function, with parts
1735 salvaged from delete_step_resume_breakpoint_callback.
1736 (delete_step_thread_step_resume_breakpoint): Delete.
1737 (for_each_just_stopped_thread_callback_func): New typedef.
1738 (for_each_just_stopped_thread): New function.
1739 (delete_just_stopped_threads_infrun_breakpoints): New function.
1740 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1741 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1742 ... this. Adjust.
1743 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1744
1745 2014-10-15 Pedro Alves <palves@redhat.com>
1746
1747 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1748 trying to step past a non-steppable watchpoint.
1749 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1750 field.
1751 * infrun.c (struct step_over_info): Add new field
1752 'nonsteppable_watchpoint_p' and adjust comments.
1753 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1754 Adjust.
1755 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1756 (stepping_past_nonsteppable_watchpoint): New function.
1757 (step_over_info_valid_p): Also return true if stepping past a
1758 nonsteppable watchpoint.
1759 (proceed): Adjust call to set_step_over_info. Remove reference to
1760 init_infwait_state.
1761 (init_wait_for_inferior): Remove reference to init_infwait_state.
1762 (waiton_ptid): Delete global.
1763 (struct execution_control_state)
1764 <stepped_after_stopped_by_watchpoint>: Delete field.
1765 (wait_for_inferior, fetch_inferior_event): Always pass
1766 minus_one_ptid to target_wait.
1767 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1768 field.
1769 (init_infwait_state): Delete function.
1770 (handle_inferior_event): Remove infwait_state handling.
1771 (handle_signal_stop) <watchpoints handling>: Adjust after
1772 stepped_after_stopped_by_watchpoint removal. Don't remove
1773 breakpoints here nor set infwait_state. Set the thread's
1774 stepping_over_watchpoint flag, and call keep_going instead.
1775 (keep_going): Handle stepping_over_watchpoint. Adjust
1776 set_step_over_info calls.
1777 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1778 function.
1779
1780 2014-10-15 Pedro Alves <palves@redhat.com>
1781
1782 * infrun.c (step_over_info_valid_p): New function.
1783 (resume): Use step_over_info_valid_p instead of checking the
1784 threads's trap_expected flag.
1785
1786 2014-10-15 Doug Evans <dje@google.com>
1787 Walfred Tedeschi <walfred.tedeschi@intel.com>
1788
1789 PR python/17364
1790 * python/lib/gdb/__init__.py (packages): Add "printer".
1791 * python/lib/gdb/command/bound_registers.py: Moved to ...
1792 * python/lib/gdb/printer/bound_registers.py: ... here.
1793 Add printer to global set of builtin printers. Rename printer from
1794 "bound" to "mpx_bound128".
1795 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1796 registered as global "builtin" printer.
1797 (add_builtin_pretty_printer): New function.
1798 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1799 gdb/printer/__init__.py.
1800
1801 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1802
1803 * Makefile.in (SFILES): Remove d-support.c.
1804 (COMMON_OBS): Remove d-support.o.
1805 * d-lang.h (d_parse_symbol): Remove declaration.
1806 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1807 * d-support.c: Remove file.
1808
1809 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1810
1811 * gdb/infrun.c (process_event_stop_test): Apply
1812 gdbarch_addr_bits_remove to longjmp resume address.
1813
1814 2014-10-15 Pedro Alves <palves@redhat.com>
1815
1816 * regformats/microblaze.dat: Delete file.
1817
1818 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1819
1820 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1821 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1822
1823 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1824
1825 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1826 as non-trivial.
1827
1828 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1829
1830 PR c++/13403
1831 PR c++/15154
1832 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1833 with qualified args.
1834
1835 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1836
1837 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1838 of the case where the second operand is a pointer.
1839 <BINOP_SUB>: Likewise.
1840
1841 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1842
1843 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1844 only if it is not NULL.
1845 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1846 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1847 (struct probe_ops) <clear_semaphore>: Likewise.
1848 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1849 not NULL.
1850 (stop_tracing): Likewise, for clear_semaphore.
1851
1852 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1853
1854 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1855 using language_c, instead of current_language.
1856
1857 2014-10-13 Doug Evans <dje@google.com>
1858
1859 * python/py-objfile.c (objfpy_initialize): New function.
1860 (objfpy_new, objfile_to_objfile_object): Call it.
1861 * python/py-progspace.c (pspy_initialize): New function.
1862 (pspy_new, pspace_to_pspace_object): Call it.
1863
1864 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1865 Jan Kratochvil <jan.kratochvil@redhat.com>
1866
1867 Fix "save breakpoints" for "catch" command.
1868 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1869 newline.
1870
1871 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1872
1873 Fix "save breakpoints" for "disable $bpnum" command.
1874 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1875
1876 2014-10-10 Pedro Alves <palves@redhat.com>
1877
1878 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1879 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1880 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1881 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1882 and been removed.
1883 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1884 * configure.ac: Remove references to IRIX.
1885 * configure.host: Add *-*-irix* to the obsolete hosts section.
1886 Remove all other references to irix.
1887 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1888 Delete files.
1889
1890 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1891
1892 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1893 isn't valid, release the tdesc arch data and return NULL.
1894
1895 2014-10-10 Pedro Alves <palves@redhat.com>
1896
1897 * linux-tdep.c: Include observer.h.
1898 (linux_inferior_data): New global.
1899 (struct linux_info): New structure.
1900 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1901 (get_linux_inferior_data): New functions.
1902 (linux_vsyscall_range): Rename to ...
1903 (linux_vsyscall_range_raw): ... this.
1904 (linux_vsyscall_range): New function; handles caching.
1905 (_initialize_linux_tdep): Register linux_inferior_data. Install
1906 inferior_exit and inferior_appeared observers.
1907
1908 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1909 Pedro Alves <palves@redhat.com>
1910
1911 PR symtab/14466
1912 * solib-svr4.c (svr4_read_so_list): Rename to ...
1913 (svr4_current_sos_1): ... this and change the function comment.
1914 (svr4_current_sos): New function.
1915
1916 2014-10-10 Pedro Alves <palves@redhat.com>
1917
1918 * arch-utils.c (default_vsyscall_range): New function.
1919 * arch-utils.h (default_vsyscall_range): New declaration.
1920 * gdbarch.sh (vsyscall_range): New hook.
1921 * gdbarch.h, gdbarch.c: Regenerate.
1922 * linux-tdep.c (linux_vsyscall_range): New function.
1923 (linux_init_abi): Install linux_vsyscall_range as
1924 vsyscall_range gdbarch hook.
1925 * memrange.c (address_in_mem_range): New function.
1926 * memrange.h (address_in_mem_range): New declaration.
1927 * symfile-mem.c (find_vdso_size): Delete function.
1928 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1929
1930 2014-10-10 Pedro Alves <palves@redhat.com>
1931
1932 * infrun.c (normal_stop): Fix typo in comment.
1933
1934 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1935
1936 PR tdep/9390
1937 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1938 typo when using logical AND to determine instruction type.
1939
1940 2014-10-09 Yao Qi <yao@codesourcery.com>
1941
1942 * infrun.c (handle_signal_stop): Remove local variable
1943 'printed'.
1944
1945 2014-10-08 Stan Shebs <stan@codesourcery.com>
1946
1947 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1948
1949 2014-10-08 Gary Benson <gbenson@redhat.com>
1950
1951 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1952
1953 2014-10-08 Gary Benson <gbenson@redhat.com>
1954
1955 * common/common-defs.h: Include common-exceptions.h.
1956 * exceptions.h: Do not include common-exceptions.h.
1957
1958 2014-10-08 Gary Benson <gbenson@redhat.com>
1959
1960 * common/common-defs.h: Include cleanups.h.
1961 * common/common-exceptions.c: Do not include cleanups.h.
1962 * utils.h: Likewise.
1963
1964 2014-10-08 Gary Benson <gbenson@redhat.com>
1965
1966 * ada-lang.c: Do not include exceptions.h.
1967 * ada-valprint.c: Likewise.
1968 * amd64-tdep.c: Likewise.
1969 * auto-load.c: Likewise.
1970 * block.c: Likewise.
1971 * break-catch-throw.c: Likewise.
1972 * breakpoint.c: Likewise.
1973 * btrace.c: Likewise.
1974 * c-lang.c: Likewise.
1975 * cli/cli-cmds.c: Likewise.
1976 * cli/cli-interp.c: Likewise.
1977 * cli/cli-script.c: Likewise.
1978 * completer.c: Likewise.
1979 * corefile.c: Likewise.
1980 * corelow.c: Likewise.
1981 * cp-abi.c: Likewise.
1982 * cp-support.c: Likewise.
1983 * cp-valprint.c: Likewise.
1984 * darwin-nat.c: Likewise.
1985 * dwarf2-frame-tailcall.c: Likewise.
1986 * dwarf2-frame.c: Likewise.
1987 * dwarf2loc.c: Likewise.
1988 * dwarf2read.c: Likewise.
1989 * eval.c: Likewise.
1990 * event-loop.c: Likewise.
1991 * event-top.c: Likewise.
1992 * f-valprint.c: Likewise.
1993 * frame-unwind.c: Likewise.
1994 * frame.c: Likewise.
1995 * gdbtypes.c: Likewise.
1996 * gnu-v2-abi.c: Likewise.
1997 * gnu-v3-abi.c: Likewise.
1998 * guile/scm-auto-load.c: Likewise.
1999 * guile/scm-breakpoint.c: Likewise.
2000 * guile/scm-cmd.c: Likewise.
2001 * guile/scm-frame.c: Likewise.
2002 * guile/scm-lazy-string.c: Likewise.
2003 * guile/scm-param.c: Likewise.
2004 * guile/scm-symbol.c: Likewise.
2005 * guile/scm-type.c: Likewise.
2006 * hppa-hpux-tdep.c: Likewise.
2007 * i386-tdep.c: Likewise.
2008 * inf-loop.c: Likewise.
2009 * infcall.c: Likewise.
2010 * infcmd.c: Likewise.
2011 * infrun.c: Likewise.
2012 * interps.c: Likewise.
2013 * interps.h: Likewise.
2014 * jit.c: Likewise.
2015 * linespec.c: Likewise.
2016 * linux-nat.c: Likewise.
2017 * linux-thread-db.c: Likewise.
2018 * m32r-rom.c: Likewise.
2019 * main.c: Likewise.
2020 * memory-map.c: Likewise.
2021 * mi/mi-cmd-break.c: Likewise.
2022 * mi/mi-cmd-stack.c: Likewise.
2023 * mi/mi-interp.c: Likewise.
2024 * mi/mi-main.c: Likewise.
2025 * monitor.c: Likewise.
2026 * nto-procfs.c: Likewise.
2027 * objc-lang.c: Likewise.
2028 * p-valprint.c: Likewise.
2029 * parse.c: Likewise.
2030 * ppc-linux-tdep.c: Likewise.
2031 * printcmd.c: Likewise.
2032 * probe.c: Likewise.
2033 * python/py-auto-load.c: Likewise.
2034 * python/py-breakpoint.c: Likewise.
2035 * python/py-cmd.c: Likewise.
2036 * python/py-finishbreakpoint.c: Likewise.
2037 * python/py-frame.c: Likewise.
2038 * python/py-framefilter.c: Likewise.
2039 * python/py-function.c: Likewise.
2040 * python/py-gdb-readline.c: Likewise.
2041 * python/py-inferior.c: Likewise.
2042 * python/py-infthread.c: Likewise.
2043 * python/py-lazy-string.c: Likewise.
2044 * python/py-linetable.c: Likewise.
2045 * python/py-param.c: Likewise.
2046 * python/py-prettyprint.c: Likewise.
2047 * python/py-symbol.c: Likewise.
2048 * python/py-type.c: Likewise.
2049 * python/py-value.c: Likewise.
2050 * python/python-internal.h: Likewise.
2051 * python/python.c: Likewise.
2052 * record-btrace.c: Likewise.
2053 * record-full.c: Likewise.
2054 * regcache.c: Likewise.
2055 * remote-fileio.c: Likewise.
2056 * remote-mips.c: Likewise.
2057 * remote.c: Likewise.
2058 * rs6000-aix-tdep.c: Likewise.
2059 * rs6000-nat.c: Likewise.
2060 * skip.c: Likewise.
2061 * solib-darwin.c: Likewise.
2062 * solib-dsbt.c: Likewise.
2063 * solib-frv.c: Likewise.
2064 * solib-ia64-hpux.c: Likewise.
2065 * solib-spu.c: Likewise.
2066 * solib-svr4.c: Likewise.
2067 * solib.c: Likewise.
2068 * spu-tdep.c: Likewise.
2069 * stack.c: Likewise.
2070 * stap-probe.c: Likewise.
2071 * symfile-mem.c: Likewise.
2072 * symmisc.c: Likewise.
2073 * target.c: Likewise.
2074 * thread.c: Likewise.
2075 * top.c: Likewise.
2076 * tracepoint.c: Likewise.
2077 * tui/tui-interp.c: Likewise.
2078 * typeprint.c: Likewise.
2079 * utils.c: Likewise.
2080 * valarith.c: Likewise.
2081 * valops.c: Likewise.
2082 * valprint.c: Likewise.
2083 * value.c: Likewise.
2084 * varobj.c: Likewise.
2085 * windows-nat.c: Likewise.
2086 * xml-support.c: Likewise.
2087
2088 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2089
2090 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2091 name implies.
2092 (extended_mips16_next_pc): Update accordingly.
2093
2094 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2095
2096 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2097 function.
2098 (micromips_instruction_is_compact_branch): Likewise.
2099 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2100 or a compact jump, reaching a jump delay slot, or seeing a
2101 second non-prologue instruction.
2102 (micromips_scan_prologue): Also terminate scanning upon seeing a
2103 compact branch or jump, or reaching a branch or jump delay slot.
2104 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2105 or jump delay slot, or seeing a second non-prologue instruction.
2106 (mips32_instruction_has_delay_slot): Retain instruction
2107 examination code only, update arguments accordingly and move
2108 instruction fetch pieces to...
2109 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2110 (micromips_instruction_has_delay_slot): Likewise and to...
2111 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2112 (mips16_instruction_has_delay_slot): Likewise and to...
2113 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2114 (mips_single_step_through_delay): Update accordingly.
2115 (mips_adjust_breakpoint_address): Likewise.
2116
2117 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2118
2119 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2120 !mustbe32 also return 1 for 32-bit instructions.
2121 (mips16_instruction_has_delay_slot): Likewise. Add an
2122 explanatory comment.
2123
2124 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2125
2126 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2127 symbols special.
2128
2129 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2130
2131 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2132 update comments.
2133 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2134 for the breakpoint's address. Don't preinitialize `placed_size'.
2135 (insert_bp_location): Set `reqstd_address' rather than
2136 `placed_address'.
2137 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2138 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2139 address.
2140 (bkpt_remove_location): Likewise.
2141 (deprecated_insert_raw_breakpoint): Likewise.
2142 (deprecated_remove_raw_breakpoint): Likewise.
2143 (find_single_step_breakpoint): Likewise.
2144 * mem-break.c (default_memory_insert_breakpoint): Use
2145 `reqstd_address' for the breakpoint's address. Don't set
2146 `placed_address' or `placed_size' if breakpoint contents couldn't
2147 have been determined.
2148 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2149 the breakpoint's address.
2150 (remote_insert_hw_breakpoint): Likewise. Don't set
2151 `placed_address' or `placed_size' if breakpoint couldn't have been
2152 set.
2153 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2154 `reqstd_address' for the breakpoint's address.
2155 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2156 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2157 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2158 * microblaze-linux-tdep.c
2159 (microblaze_linux_memory_remove_breakpoint): Likewise.
2160 * monitor.c (monitor_insert_breakpoint): Likewise.
2161 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2162 (procfs_insert_hw_breakpoint): Likewise.
2163 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2164 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2165 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2166 * remote-mips.c (mips_insert_breakpoint): Likewise.
2167 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2168
2169 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2170
2171 * valops.c (value_assign): Check for bit field assignments
2172 before calling architecture-specific register value
2173 conversion functions.
2174
2175 2014-10-03 Pierre Muller <muller@sourceware.org>
2176
2177 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2178
2179 2014-10-02 Pedro Alves <palves@redhat.com>
2180
2181 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2182 threads_are_executing.
2183 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2184 describing comment.
2185 * gdbthread.h (threads_are_executing): Declare.
2186 (handle_signal_stop) <random signals>: Don't print about the
2187 signal here if stopping.
2188 (end_stepping_range): Don't notify observers here.
2189 (normal_stop): Update the thread list. If stopped by a random
2190 signal or a stepping range ended, notify observers.
2191 * thread.c (threads_executing): New global.
2192 (init_thread_list): Clear 'threads_executing'.
2193 (set_executing): Set or clear 'threads_executing'.
2194 (threads_are_executing): New function.
2195 (update_threads_executing): New function.
2196 (update_thread_list): Use it.
2197
2198 2014-10-02 Pedro Alves <palves@redhat.com>
2199
2200 PR breakpoints/17431
2201 * breakpoint.c (update_breakpoints_after_exec): Don't create
2202 overlay, longjmp, std terminate nor exception breakpoints here.
2203
2204 2014-10-02 Pedro Alves <palves@redhat.com>
2205
2206 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2207 Adjust comments.
2208 * inferior.c (find_inferior_for_program_space): Give preference to
2209 the current inferior.
2210 * inferior.h (find_inferior_for_program_space): Update comment.
2211 * progspace.c (switch_to_program_space_and_thread): Prefer the
2212 current inferior if it's bound to the program space requested. If
2213 the inferior found doesn't have a PID yet, don't bother looking up
2214 a thread.
2215 * progspace.h (switch_to_program_space_and_thread): Adjust
2216 comment.
2217 * thread.c (any_thread_of_process, any_live_thread_of_process):
2218 Give preference to the current thread.
2219
2220 2014-10-01 Pedro Alves <palves@redhat.com>
2221
2222 * breakpoint.c (insert_bp_location): Error out if inserting a
2223 software breakpoint at a read-only address.
2224 * target.c (memory_xfer_check_region): New function, factored out
2225 from ...
2226 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2227 ULONGEST.
2228 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2229 against the memory region attributes.
2230
2231 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2232
2233 * NEWS: Announce new exit-code field in -list-thread-groups
2234 output.
2235 * inferior.c (exit_inferior_1): Don't clear exit code.
2236 (inferior_appeared): Clear exit code.
2237 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2238 code.
2239
2240 2014-10-01 Pedro Alves <palves@redhat.com>
2241
2242 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2243 GENERATED" along with emacs/vi read-only markers.
2244 * regformats/aarch64.dat: Regenerate.
2245 * regformats/arm-with-iwmmxt.dat: Regenerate.
2246 * regformats/arm-with-neon.dat: Regenerate.
2247 * regformats/arm-with-vfpv2.dat: Regenerate.
2248 * regformats/arm-with-vfpv3.dat: Regenerate.
2249 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2250 * regformats/i386/amd64-avx.dat: Regenerate.
2251 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2252 * regformats/i386/amd64-avx512.dat: Regenerate.
2253 * regformats/i386/amd64-linux.dat: Regenerate.
2254 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2255 * regformats/i386/amd64-mpx.dat: Regenerate.
2256 * regformats/i386/amd64.dat: Regenerate.
2257 * regformats/i386/i386-avx-linux.dat: Regenerate.
2258 * regformats/i386/i386-avx.dat: Regenerate.
2259 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2260 * regformats/i386/i386-avx512.dat: Regenerate.
2261 * regformats/i386/i386-linux.dat: Regenerate.
2262 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2263 * regformats/i386/i386-mmx.dat: Regenerate.
2264 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2265 * regformats/i386/i386-mpx.dat: Regenerate.
2266 * regformats/i386/i386.dat: Regenerate.
2267 * regformats/i386/x32-avx-linux.dat: Regenerate.
2268 * regformats/i386/x32-avx.dat: Regenerate.
2269 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2270 * regformats/i386/x32-avx512.dat: Regenerate.
2271 * regformats/i386/x32-linux.dat: Regenerate.
2272 * regformats/i386/x32.dat: Regenerate.
2273 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2274 * regformats/mips-dsp-linux.dat: Regenerate.
2275 * regformats/mips-linux.dat: Regenerate.
2276 * regformats/mips64-dsp-linux.dat: Regenerate.
2277 * regformats/mips64-linux.dat: Regenerate.
2278 * regformats/nios2-linux.dat: Regenerate.
2279 * regformats/rs6000/powerpc-32.dat: Regenerate.
2280 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2281 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2282 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2283 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2284 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2285 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2286 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2287 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2288 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2289 * regformats/s390-linux32.dat: Regenerate.
2290 * regformats/s390-linux32v1.dat: Regenerate.
2291 * regformats/s390-linux32v2.dat: Regenerate.
2292 * regformats/s390-linux64.dat: Regenerate.
2293 * regformats/s390-linux64v1.dat: Regenerate.
2294 * regformats/s390-linux64v2.dat: Regenerate.
2295 * regformats/s390-te-linux64.dat: Regenerate.
2296 * regformats/s390x-linux64.dat: Regenerate.
2297 * regformats/s390x-linux64v1.dat: Regenerate.
2298 * regformats/s390x-linux64v2.dat: Regenerate.
2299 * regformats/s390x-te-linux64.dat: Regenerate.
2300 * regformats/tic6x-c62x-linux.dat: Regenerate.
2301 * regformats/tic6x-c62x.dat: Regenerate.
2302 * regformats/tic6x-c64x-linux.dat: Regenerate.
2303 * regformats/tic6x-c64x.dat: Regenerate.
2304 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2305 * regformats/tic6x-c64xp.dat: Regenerate.
2306
2307 2014-10-01 Pedro Alves <palves@redhat.com>
2308
2309 * features/Makefile: Update comments.
2310 (XMLTOC): List all xml files we build C files from.
2311 (clean-cfiles): New rule.
2312
2313 2014-10-01 Pedro Alves <palves@redhat.com>
2314
2315 * features/i386/amd64-avx512-linux.c: Regenerate.
2316 * features/i386/amd64-avx512.c: Regenerate.
2317 * features/i386/x32-avx512-linux.c: Regenerate.
2318 * features/i386/x32-avx512.c: Regenerate.
2319
2320 2014-10-01 Pedro Alves <palves@redhat.com>
2321
2322 * features/Makefile (WHICH): Remove arm-with-m,
2323 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2324
2325 2014-10-01 Pedro Alves <palves@redhat.com>
2326
2327 * features/Makefile (clean): New rule.
2328
2329 2014-10-01 Pedro Alves <palves@redhat.com>
2330
2331 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2332 (zmm14h): Add missing end quotes.
2333
2334 2014-10-01 Pedro Alves <palves@redhat.com>
2335
2336 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2337 * features/aarch64.c: Regenerate.
2338
2339 2014-09-30 Don Breazeal <donb@codesourcery.com>
2340
2341 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2342 code so as to work with follow_fork_inferior.
2343 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2344 (inf_ttrace_create_inferior): Remove reference to
2345 inf_ttrace_vfork_ppid.
2346 (inf_ttrace_attach): Ditto.
2347 (inf_ttrace_detach): Ditto.
2348 (inf_ttrace_kill): Use current_inferior instead of
2349 inf_ttrace_vfork_ppid.
2350 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2351 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2352 inferior away from the parent.
2353 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2354 target_follow_fork.
2355 (follow_fork_inferior): New function.
2356 (follow_inferior_reset_breakpoints): Make function static.
2357 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2358 * linux-nat.c (linux_child_follow_fork): Move target-independent
2359 code to infrun.c:follow_fork_inferior.
2360
2361 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2362
2363 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2364 * gdbarch.c: Regenerate.
2365 * gdbarch.h: Likewise.
2366 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2367 gdbarch method 'regset_from_core_section'.
2368 (get_core_register_section): Remove handling for the case that
2369 regset == NULL and regset_from_core_section is defined.
2370 (get_core_registers): Drop check for deleted method.
2371 * procfs.c (procfs_do_thread_registers): Adjust comment.
2372
2373 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2374
2375 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2376 (linux_nat_make_corefile_notes): Remove.
2377 (linux_target_install_ops): Do not set target method
2378 'make_corefile_notes'.
2379 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2380 Remove field.
2381 (linux_corefile_thread_callback): Instead of args->collect, call
2382 linux_collect_thread_registers.
2383 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2384 NULL unless there is a regset iterator.
2385 (linux_make_corefile_notes_1): Remove.
2386 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2387 by linux_make_corefile_notes.
2388 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2389
2390 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2391
2392 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2393 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2394 Remove.
2395 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2396
2397 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2398
2399 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2400 (xtensa_iterate_over_regset_sections): New.
2401 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2402
2403 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2404
2405 * vax-tdep.c (vax_regset_from_core_section): Remove.
2406 (vax_iterate_over_regset_sections): New.
2407 (vax_gdbarch_init): Adjust gdbarch initialization.
2408
2409 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2410
2411 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2412 (tilegx_regset_from_core_section): Remove.
2413 (tilegx_iterate_over_regset_sections): New.
2414 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2415
2416 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2417
2418 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2419 (sparc_iterate_over_regset_sections): New.
2420 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2421 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2422 targets.
2423 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2424 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2425 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2426 target method 'make_corefile_notes'.
2427
2428 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2429
2430 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2431 'sizeof_gregset' and 'sizeof_fpregset'.
2432 * sh-tdep.c (sh_regset_from_core_section): Remove.
2433 (sh_iterate_over_regset_sections): New.
2434 (sh_gdbarch_init): Adjust gdbarch initialization.
2435 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2436 sizeof_fpregset.
2437 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2438 'sizeof_gregset'.
2439
2440 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2441
2442 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2443 (score7_linux_iterate_over_regset_sections): New.
2444 (score_gdbarch_init): Adjust gdbarch initialization.
2445
2446 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2447
2448 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2449 FreeBSD targets.
2450 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2451 method 'make_corefile_notes'.
2452 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2453 (ppcfbsd_regset_from_core_section): Remove.
2454 (ppcfbsd_iterate_over_regset_sections): New.
2455 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2456 initialization.
2457 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2458 (ppcnbsd_iterate_over_regset_sections): New.
2459 (ppcnbsd_init_abi): Adjust.
2460 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2461 (ppcobsd_iterate_over_regset_sections): New.
2462 (ppcobsd_init_abi): Adjust.
2463 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2464 (rs6000_aix_iterate_over_regset_sections): New.
2465 (rs6000_aix_init_osabi): Adjust.
2466
2467 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2468
2469 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2470 (nios2_regset_from_core_section): Remove.
2471 (nios2_iterate_over_regset_sections): New.
2472 (nios2_linux_init_abi): Adjust gdbarch initialization.
2473
2474 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2475
2476 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2477 (am33_iterate_over_regset_sections): New.
2478 (am33_linux_init_osabi): Adjust gdbarch initialization.
2479
2480 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2481
2482 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2483 (mips_linux_iterate_over_regset_sections): New.
2484 (mips_linux_init_abi): Adjust gdbarch initialization.
2485 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2486 (mips64obsd_iterate_over_regset_sections): New.
2487 (mips64obsd_init_abi): Adjust.
2488 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2489 (mipsnbsd_iterate_over_regset_sections): New.
2490 (mipsnbsd_init_abi): Adjust.
2491
2492 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2493
2494 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2495 (m88k_iterate_over_regset_sections): New.
2496 (m88k_gdbarch_init): Adjust gdbarch initialization.
2497
2498 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2499
2500 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2501 (ia64_linux_iterate_over_regset_sections): New.
2502 (ia64_linux_init_abi): Adjust gdbarch initialization.
2503
2504 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2505
2506 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2507 (m68kbsd_iterate_over_regset_sections): New.
2508 (m68kbsd_init_abi): Adjust gdbarch initialization.
2509 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2510 (m68k_linux_iterate_over_regset_sections): New.
2511 (m68k_linux_init_abi): Adjust gdbarch initialization.
2512
2513 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2514
2515 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2516 (m32r_linux_regset_from_core_section): Remove.
2517 (m32r_linux_iterate_over_regset_sections): New.
2518 (m32r_linux_init_abi): Adjust gdbarch initialization.
2519
2520 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2521
2522 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2523 (amd64obsd_iterate_over_regset_sections): New.
2524 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2525 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2526 Remove.
2527 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2528 regset_from_core_section initialization.
2529 * i386-tdep.c (i386_regset_from_core_section): Remove.
2530 (i386_iterate_over_regset_sections): New.
2531 (i386_gdbarch_init): Adjust gdbarch initialization.
2532 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2533 (i386_iterate_over_regset_sections): New prototype.
2534 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2535 Remove.
2536 (i386obsd_aout_iterate_over_regset_sections): New.
2537 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2538 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2539 targets.
2540 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2541 (amd64fbsd_init_abi): Call fbsd_init_abi.
2542 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2543 (i386fbsd4_init_abi): Call fbsd_init_abi.
2544 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2545 target method 'make_corefile_notes'.
2546 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2547
2548 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2549
2550 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2551 (hppa_hpux_iterate_over_regset_sections): New.
2552 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2553 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2554 (hppa_linux_iterate_over_regset_sections): New.
2555 (hppa_linux_init_abi): Adjust.
2556 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2557 (hppanbsd_iterate_over_regset_sections): New.
2558 (hppanbsd_init_abi): Adjust.
2559 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2560 (hppaobsd_iterate_over_regset_sections): New.
2561 (hppaobsd_init_abi): Adjust.
2562
2563 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2564
2565 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2566 (frv_linux_iterate_over_regset_sections): New.
2567 (frv_linux_init_abi): Adjust gdbarch initialization.
2568
2569 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2570
2571 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2572 (armbsd_iterate_over_regset_sections): New prototype.
2573 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2574 (armbsd_iterate_over_regset_sections): New.
2575 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2576 initialization.
2577
2578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2579
2580 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2581 (alpha_linux_iterate_over_regset_sections): New.
2582 (alpha_linux_init_abi): Adjust gdbarch initialization.
2583 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2584 prototype.
2585 (alphanbsd_iterate_over_regset_sections): New prototype.
2586
2587 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2588
2589 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2590 Remove.
2591 (aarch64_linux_iterate_over_regset_sections): New.
2592 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2593
2594 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2595
2596 * fbsd-tdep.c: New file.
2597 * fbsd-tdep.h: New file.
2598 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2599 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2600 (ALLDEPFILES): Add fbsd-tdep.c.
2601
2602 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2603
2604 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2605 parameter.
2606 * gdbarch.h: Regenerate.
2607 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2608 iterator.
2609 (get_core_register_section): Add parameter 'regset' and use it, if
2610 set. Add parameter 'min_size' and verify the bfd section size
2611 against it.
2612 (get_core_registers_cb): Add parameter 'regset' and pass it to
2613 get_core_register section. For the "standard" register sections
2614 ".reg" and ".reg2", set an appropriate default for human_name.
2615 (get_core_registers): Don't abort when the gdbarch has an iterator
2616 but no regset_from_core_section. Add NULL/0 for parameters
2617 'regset'/'min_size' in calls to get_core_register_section.
2618 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2619 'regset' and use it instead of calling the
2620 regset_from_core_section gdbarch method.
2621 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2622 * i386-tdep.c (i386_supply_xstateregset)
2623 (i386_collect_xstateregset, i386_xstateregset): Moved to
2624 i386-linux-tdep.c.
2625 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2626 .reg-xstate.
2627 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2628 core file support only if the regset iterator hasn't been set.
2629 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2630 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2631 Moved from i386-tdep.c and renamed to *_linux*.
2632 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2633 each callback invocation. Allow any .reg-xstate size when reading
2634 from a core file.
2635 * amd64-tdep.c (amd64_supply_xstateregset)
2636 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2637 amd64-linux-tdep.c.
2638 (amd64_regset_from_core_section): Remove.
2639 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2640 install an amd64-specific regset_from_core_section gdbarch method.
2641 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2642 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2643 Moved from amd64-tdep.c and renamed to *_linux*.
2644 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2645 to each callback invocation. Allow any .reg-xstate size when
2646 reading from a core file.
2647 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2648 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2649 each callback invocation.
2650 (arm_linux_init_abi): No longer set the regset_from_core_section
2651 gdbarch method.
2652 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2653 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2654 each callback invocation.
2655 (ppc_linux_init_abi): No longer set the regset_from_core_section
2656 gdbarch method.
2657 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2658 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2659 (s390_regset_from_core_section): Remove.
2660 (s390_iterate_over_regset_sections): Add regset parameter to each
2661 callback invocation.
2662 (s390_gdbarch_init): No longer set the regset_from_core_section
2663 gdbarch method. Drop initialization of deleted tdep fields.
2664
2665 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2666
2667 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2668 (amd64_linux_iterate_over_regset_sections): New.
2669 (amd64_linux_init_abi_common): Don't install the regset section
2670 list, but the new iterator in gdbarch.
2671 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2672 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2673 (arm_linux_iterate_over_regset_sections): ...here. New function.
2674 (arm_linux_init_abi): Set iterator instead of section list.
2675 * corelow.c (get_core_registers_cb): New function, logic moved
2676 from...
2677 (get_core_registers): ...loop body here. Use new iterator method
2678 instead of walking through the regset section list.
2679 * gdbarch.sh: Remove 'core_regset_sections'. New method
2680 'iterate_over_regset_sections'. New typedef
2681 'iterate_over_regset_sections_cb'.
2682 * gdbarch.c: Regenerate.
2683 * gdbarch.h: Likewise.
2684 * i386-linux-tdep.c (i386_linux_regset_sections)
2685 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2686 Remove.
2687 (i386_linux_iterate_over_regset_sections): New.
2688 (i386_linux_init_abi): Don't choose a regset section list, but
2689 install new iterator in gdbarch.
2690 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2691 (linux_collect_regset_section_cb): New function, logic moved
2692 from...
2693 (linux_collect_thread_registers): ...loop body here. Use iterator
2694 method instead of walking through list.
2695 (linux_make_corefile_notes_1): Check for presence of iterator
2696 method instead of regset section list.
2697 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2698 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2699 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2700 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2701 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2702 (ppc_linux_init_abi): Don't choose from above regset section
2703 lists, but install new iterator in gdbarch.
2704 * regset.h (struct core_regset_section): Remove.
2705 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2706 have_linux_v1, have_linux_v2, and have_tdb.
2707 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2708 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2709 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2710 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2711 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2712 (s390_iterate_over_regset_sections): ...here. New function. Use
2713 new tdep fields.
2714 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2715 regset section lists, but install new iterator.
2716
2717 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2718
2719 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2720
2721 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2722
2723 * progspace.c (print_program_space): Don't prune program spaces
2724 before printing them.
2725
2726 2014-09-25 Pedro Alves <palves@redhat.com>
2727
2728 * infrun.c (user_visible_resume_ptid): Don't check
2729 singlestep_breakpoints_inserted_p.
2730
2731 2014-09-25 Pedro Alves <palves@redhat.com>
2732
2733 * breakpoint.c (should_be_inserted): Add debug output.
2734
2735 2014-09-25 Pedro Alves <palves@redhat.com>
2736
2737 * infrun.c (stepping_past_instruction_at)
2738 (clear_exit_convenience_vars): Point at infrun.h instead of
2739 inferior.h.
2740 (handle_signal_stop): Fix typo.
2741
2742 2014-09-24 Yao Qi <yao@codesourcery.com>
2743
2744 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2745 bitmask.
2746
2747 2014-09-22 Gary Benson <gbenson@redhat.com>
2748
2749 * target.c (target_stop): Updated comment.
2750
2751 2014-09-22 Gary Benson <gbenson@redhat.com>
2752
2753 * target/target.h (target_stop_ptid): Renamed as...
2754 (target_stop_and_wait): New function. Updated comment.
2755 All uses updated.
2756 (target_continue_ptid): Renamed as...
2757 (target_continue_no_signal): New function. Updated comment.
2758 All uses updated.
2759
2760 2014-09-22 Pedro Alves <palves@redhat.com>
2761
2762 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2763 and "auto" merged.
2764 * breakpoint.c (enum ugll_insert_mode): New enum.
2765 (always_inserted_mode): Now a plain boolean.
2766 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2767 (breakpoints_always_inserted_mode): Delete.
2768 (breakpoints_should_be_inserted_now): New function.
2769 (insert_breakpoints): Pass UGLL_INSERT to
2770 update_global_location_list instead of calling
2771 insert_breakpoint_locations manually.
2772 (create_solib_event_breakpoint_1): New, factored out from ...
2773 (create_solib_event_breakpoint): ... this.
2774 (create_and_insert_solib_event_breakpoint): Use
2775 create_solib_event_breakpoint_1 instead of calling
2776 insert_breakpoint_locations manually.
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 (update_global_location_list_nothrow): Change parameter type from
2781 boolean to enum ugll_insert_mode.
2782 (_initialize_breakpoint): "breakpoint always-inserted" option is
2783 now a boolean command. Update help text.
2784 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2785 (breakpoints_should_be_inserted_now): New declaration.
2786 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2787 Remove breakpoints_always_inserted_mode check.
2788 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2789 * remote.c (remote_start_remote): Likewise.
2790
2791 2014-09-22 Pedro Alves <palves@redhat.com>
2792
2793 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2794 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2795 Instead, pass UGLL_INSERT to update_global_location_list.
2796 (update_global_location_list): Change parameter type from boolean
2797 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2798 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2799 (create_solib_event_breakpoint_1): New, factored out from ...
2800 (create_solib_event_breakpoint): ... this.
2801 (create_and_insert_solib_event_breakpoint): Use
2802 create_solib_event_breakpoint_1 instead of calling
2803 insert_breakpoint_locations manually.
2804 (update_global_location_list): Handle UGLL_INSERT.
2805
2806 2014-09-22 Pedro Alves <palves@redhat.com>
2807
2808 * breakpoint.c (enum ugll_insert_mode): New enum.
2809 (update_global_location_list)
2810 (update_global_location_list_nothrow): Change parameter type from
2811 boolean to enum ugll_insert_mode. All callers adjusted.
2812
2813 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2814
2815 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2816 SystemTap support in GDB.
2817
2818 2014-09-19 Don Breazeal <donb@codesourcery.com>
2819
2820 * linux-nat.c (linux_handle_extended_wait): Call
2821 linux_ptrace_get_extended_event.
2822 (wait_lwp): Call linux_is_extended_waitstatus.
2823 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2824 and linux_is_extended_waitstatus.
2825 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2826 linux_ptrace_get_extended_event.
2827 (linux_ptrace_get_extended_event): New function.
2828 (linux_is_extended_waitstatus): New function.
2829 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2830 (linux_is_extended_waitstatus): New declarations.
2831
2832 2014-09-19 Yao Qi <yao@codesourcery.com>
2833
2834 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2835 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2836 comments. Callers update.
2837 (dwarf_decode_lines): Likewise.
2838 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2839 comments. Skip the line table if 'lowpc' is greater than
2840 'address'. Don't check
2841 dwarf2_per_objfile->has_section_at_zero.
2842
2843 2014-09-18 Doug Evans <dje@google.com>
2844
2845 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2846 * python/py-symtab.c (stpy_get_producer): New function.
2847 (symtab_object_getset): Add "producer" attribute.
2848
2849 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2850
2851 PR gdb/17384
2852 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2853 (do_captured_read_memory_integer): Remove.
2854 (safe_read_memory_integer): Use target_read_memory directly instead
2855 of catching errors in do_captured_read_memory_integer.
2856
2857 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2858
2859 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2860 not gdb/doc.
2861
2862 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2863
2864 * objc-lang.c (find_implementation_from_class): Remove dead code.
2865
2866 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2867
2868 PR cli/7233
2869 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2870 "fprintf_unfiltered (gdb_stdlog...)".
2871
2872 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2873
2874 PR breakpoints/12526
2875 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2876 val_bitsize.
2877 * breakpoint.c (watch_command_1): Use these fields to retain
2878 bitfield information.
2879 (extract_bitfield_from_watchpoint_value): New function.
2880 (watchpoint_check): Use it.
2881 (update_watchpoint): Use it. Optimize the address and length of a
2882 HW watchpoint pointing to a bitfield.
2883 * value.h (unpack_value_bitfield): New prototype.
2884 * value.c (unpack_value_bitfield): Make extern.
2885
2886 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2887
2888 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2889 x86-dregs.o.
2890 * gnu-nat.c (inf_threads): New function.
2891 * gnu-nat.h (inf_threads_ftype): New typedef.
2892 (inf_threads): New declaration.
2893 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2894 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2895 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2896 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2897 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2898 (i386_gnu_dr_get_control): New functions.
2899 (reg_addr): New structure.
2900 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2901 i386 debugging register hooks.
2902 * NEWS: Mention this.
2903
2904 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2905
2906 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2907 vector data transfer instructions.
2908 (arm_record_coproc_data_proc): Updated.
2909
2910 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2911
2912 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2913 arm_record_exreg_ld_st_insn.
2914 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2915 load/store insns.
2916
2917 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2918
2919 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2920 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2921 processing instructions.
2922
2923 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2924
2925 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2926 for advance SIMD struct ld/st insn.
2927 (thumb2_record_decode_insn_handler): Replace stub handler with
2928 thumb2_record_asimd_struct_ld_st.
2929
2930 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2931
2932 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2933 for asimd, vfp and coprocessor insns.
2934 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2935 and coprocessor insns.
2936 (thumb2_record_coproc_insn): New function.
2937 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2938 handlers.
2939 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2940 opcode 110 insns.
2941
2942 2014-09-13 Doug Evans <xdje42@gmail.com>
2943
2944 * NEWS: Mention new "queue-signal" command.
2945 * infcmd.c (queue_signal_command): New function.
2946 (_initialize_infcmd): Add new queue-signal command.
2947
2948 2014-09-13 Doug Evans <xdje42@gmail.com>
2949
2950 * linux-nat.c (wait_lwp): Add debugging printf.
2951 (linux_nat_wait_1): Ditto.
2952
2953 2014-09-12 Pedro Alves <palves@redhat.com>
2954
2955 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2956 (create_and_insert_solib_event_breakpoint): New functions.
2957 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2958 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2959 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2960 (remove_dbx_link_breakpoint): Delete function.
2961 (insert_dbx_link_bpt_in_file): Use
2962 create_and_insert_solib_event_breakpoint instead of
2963 deprecated_insert_raw_breakpoint.
2964 (procfs_wait): Don't check whether we hit __dbx_link here.
2965 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2966 here.
2967 * solib-irix.c (base_breakpoint): Delete global.
2968 (disable_break): Delete function.
2969 (enable_break): Use create_solib_event_breakpoint
2970 instead of deprecated_insert_raw_breakpoint.
2971 (irix_solib_handle_event): New function.
2972 (irix_solib_create_inferior_hook): Don't run the target or disable
2973 the mapping-complete breakpoint here.
2974 (_initialize_irix_solib): Install irix_solib_handle_event as
2975 so_ops->handle_event hook.
2976
2977 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2978 Ulrich Weigand  <uweigand@de.ibm.com>
2979
2980 PR tdep/17379
2981 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2982 instead of read_memory_unsigned_integer.
2983
2984 2014-09-12 Gary Benson <gbenson@redhat.com>
2985
2986 * nat/linux-waitpid.c: Include common-defs.h.
2987 [GDBSERVER]: Add FIXME comment.
2988 [!GDBSERVER]: Don't include defs.h or signal.h.
2989 (linux_debug) [!GDBSERVER]: Remove empty block.
2990
2991 2014-09-12 Gary Benson <gbenson@redhat.com>
2992
2993 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2994 Don't include defs.h or server.h.
2995
2996 2014-09-12 Gary Benson <gbenson@redhat.com>
2997
2998 * nat/linux-btrace.c: Include common-defs.h.
2999 Don't include defs.h, server.h or gdbthread.h.
3000 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3001
3002 2014-09-12 Gary Benson <gbenson@redhat.com>
3003
3004 * common/agent.c: Include common-defs.h.
3005 Don't include defs.h or server.h.
3006 * common/buffer.c: Likewise.
3007 * common/common-debug.c: Likewise.
3008 * common/common-utils.c: Likewise.
3009 * common/errors.c: Likewise.
3010 * common/filestuff.c: Likewise.
3011 * common/format.c: Likewise.
3012 * common/gdb_vecs.c: Likewise.
3013 * common/print-utils.c: Likewise.
3014 * common/ptid.c: Likewise.
3015 * common/rsp-low.c: Likewise.
3016 * common/signals.c: Likewise.
3017 * common/vec.c: Likewise.
3018 * common/xml-utils.c: Likewise.
3019 * nat/linux-osdata.c: Likewise.
3020 * nat/linux-procfs.c: Likewise.
3021 * nat/linux-ptrace.c: Likewise.
3022 * nat/mips-linux-watch.c: Likewise.
3023 * target/waitstatus.c: Likewise.
3024
3025 2014-09-12 Tom Tromey <tromey@redhat.com>
3026 Gary Benson <gbenson@redhat.com>
3027
3028 * common/common-regcache.h: New file.
3029 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3030 * regcache.h: Include common-regcache.h.
3031 (regcache_read_pc): Don't declare.
3032 * regcache.c (get_thread_regcache_for_ptid): New function.
3033 * nat/linux-btrace.c: Don't include regcache.h.
3034 Include common-regcache.h.
3035 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3036
3037 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3038
3039 * regcache.h (struct regset): Declare.
3040
3041 2014-09-11 Pedro Alves <palves@redhat.com>
3042
3043 PR gdb/17347
3044 * main.c: Include "infrun.h".
3045 (catch_command_errors, catch_command_errors_const): Wait for the
3046 foreground command to complete.
3047 * top.c (maybe_wait_sync_command_done): New function, factored out
3048 from ...
3049 (maybe_wait_sync_command_done): ... here.
3050 * top.h (maybe_wait_sync_command_done): New declaration.
3051
3052 2014-09-11 Tom Tromey <tromey@redhat.com>
3053 Gary Benson <gbenson@redhat.com>
3054
3055 * common/symbol.h: New file.
3056 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3057 * minsyms.c (find_minimal_symbol_address): New function.
3058 * common/agent.c: Include common/symbol.h.
3059 [!GDBSERVER]: Don't include objfiles.h.
3060 (agent_look_up_symbols): Use find_minimal_symbol_address.
3061
3062 2014-09-11 Gary Benson <gbenson@redhat.com>
3063
3064 * target/target.h (target_stop_ptid, target_continue_ptid):
3065 Declare.
3066 * target.c (target_stop_ptid, target_continue_ptid): New
3067 functions.
3068 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3069 (agent_run_command): Always use target_stop_ptid and
3070 target_continue_ptid.
3071
3072 2014-09-11 Tom Tromey <tromey@redhat.com>
3073 Gary Benson <gbenson@redhat.com>
3074
3075 * target/target.h: New file.
3076 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3077 * target.h: Include target/target.h.
3078 (target_read_memory, target_write_memory): Don't declare.
3079 * target.c (target_read_uint32): New function.
3080 * common/agent.c: Include target/target.h.
3081 [!GDBSERVER]: Don't include target.h.
3082 (helper_thread_id): Type changed to uint32_t.
3083 (agent_get_helper_thread_id): Use target_read_uint32.
3084 (agent_run_command): Always use target_read_memory and
3085 target_write_memory.
3086 (agent_capability): Type changed to uint32_t.
3087 (agent_capability_check): Use target_read_uint32.
3088
3089 2014-09-11 Gary Benson <gbenson@redhat.com>
3090
3091 * common/common-debug.h (show_debug_regs): Declare.
3092 * common/common-debug.c (show_debug_regs): Define.
3093 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3094 all uses with show_debug_regs. Replace all uses that considered
3095 debug_hw_points as a multi-value integer with straight boolean
3096 uses.
3097 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3098 with show_debug_regs.
3099 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3100 all uses with show_debug_regs.
3101 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3102 uses with show_debug_regs.
3103
3104 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3105
3106 * findvar.c (address_from_register): Handle targets requiring
3107 a special conversion routine even for plain pointer types.
3108
3109 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3110
3111 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3112 (store_register): Do not call exec_one_dummy_insn.
3113
3114 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3115
3116 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3117 dereference it first. Use value_enclosing_type instead of
3118 value_type.
3119 (ada_array_length): Likewise.
3120
3121 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3122
3123 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3124 Adjust function implementation and documentation accordingly.
3125 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3126 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3127 Update call to ada_value_ptr_subscript.
3128
3129 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3130
3131 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3132 instead of VAL's type.
3133
3134 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3135
3136 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3137
3138 2014-09-09 Doug Evans <xdje42@gmail.com>
3139
3140 PR guile/17367
3141 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3142 last parameter to pkg-config, not first.
3143 * configure.ac: Pass --with-guile provided pkg-config path to
3144 GDB_GUILE_PROGRAM_NAMES.
3145 * configure: Regenerate.
3146
3147 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3148
3149 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3150 Bertazi".
3151
3152 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3153
3154 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3155 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3156 the list of sections determining GDB_OSABI_IRIX.
3157
3158 2014-09-09 James Hogan <james.hogan@imgtec.com>
3159
3160 * MAINTAINERS (Write After Approval): Add "James Hogan".
3161
3162 2014-09-09 James Hogan <james.hogan@imgtec.com>
3163
3164 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3165
3166 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3167
3168 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3169
3170 2014-09-08 Doug Evans <xdje42@gmail.com>
3171
3172 PR 17247
3173 * guile.c: #include <signal.h>.
3174 (_initialize_guile): Block SIGCHLD while initializing Guile.
3175
3176 Replaces the following, which is reverted.
3177
3178 2014-07-26 Doug Evans <xdje42@gmail.com>
3179
3180 PR 17185
3181 * configure.ac: Add check for header gc/gc.h.
3182 Add check for function setenv.
3183 * configure: Regenerate.
3184 * config.in: Regenerate.
3185 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3186
3187 2014-09-08 Doug Evans <xdje42@gmail.com>
3188
3189 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3190 with named constant. Fix style of pointer comparison.
3191 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3192
3193 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3194
3195 PR gdb/17035
3196 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3197 decide whether we display the command on "show user".
3198 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3199 printing command name.
3200 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3201 * cli/cli-decode.c (cli_user_command_p): Create helper function
3202 to verify whether cmd_list_element is a user-defined command.
3203
3204 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3205
3206 PR python/17355
3207 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3208 Fix goto out of TRY_CATCH.
3209
3210 2014-09-06 Doug Evans <xdje42@gmail.com>
3211 Tom Tromey <tromey@redhat.com>
3212
3213 PR 15276
3214 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3215 $_any_caller_matches.
3216 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3217 * python/lib/gdb/function/caller_is.py: New file.
3218
3219 2014-09-06 Doug Evans <xdje42@gmail.com>
3220
3221 * infcmd.c (program_info): Fix typo.
3222
3223 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3224
3225 PR gdb/17235
3226 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3227 'number'. New variable 'has_digit'. Rewrite code to deal with
3228 subexpressions on SDT probes.
3229
3230 2014-09-04 Pedro Alves <palves@redhat.com>
3231
3232 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3233 the input is only one character long.
3234
3235 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3236
3237 PR fortran/17237
3238 * f-valprint.c (f_val_print): Specify the correct print option to
3239 use when printing integer values.
3240
3241 2014-09-04 Gary Benson <gbenson@redhat.com>
3242
3243 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3244 Remove code to cope with LWPs wrapped as PIDs.
3245 Add assertions to ensure no wrapped LWPs are passed.
3246
3247 2014-09-04 Pedro Alves <palves@redhat.com>
3248
3249 * value.c (value_ranges_copy_adjusted): New function, factored out
3250 from ...
3251 (value_contents_copy_raw): ... here.
3252 (unpack_value_bits_as_long_1): Rename back to ...
3253 (unpack_bits_as_long): ... this. Remove 'original_value' and
3254 'result' parameters. Change return type to LONGEST.
3255 (unpack_value_bits_as_long): Delete.
3256 (unpack_value_field_as_long_1): Delete.
3257 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3258 (unpack_value_bitfield): New function.
3259 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3260 (value_fetch_lazy): Use unpack_value_bitfield.
3261 * value.h (unpack_value_bits_as_long): Delete declaration.
3262
3263 2014-09-03 Sasha Smundak <asmundak@google.com>
3264
3265 * python/py-frame.c (frapy_read_register): New function.
3266
3267 2014-09-03 James Hogan <james.hogan@imgtec.com>
3268
3269 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3270 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3271
3272 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3273
3274 PR python/16699
3275 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3276 function.
3277 (add_cmd): Set "completer_handle_brkchars" to NULL.
3278 * cli/cli-decode.h (struct cmd_list_element)
3279 <completer_handle_brkchars>: New field.
3280 * command.h (completer_ftype_void): New typedef.
3281 (set_cmd_completer_handle_brkchars): New prototype.
3282 * completer.c (set_gdb_completion_word_break_characters): New
3283 function.
3284 (complete_line_internal): Call "completer_handle_brkchars"
3285 callback from command.
3286 * completer.h: Include "command.h".
3287 (set_gdb_completion_word_break_characters): New prototype.
3288 * python/py-cmd.c (cmdpy_completer_helper): New function.
3289 (cmdpy_completer_handle_brkchars): New function.
3290 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3291 (cmdpy_init): Set completer_handle_brkchars to
3292 cmdpy_completer_handle_brkchars.
3293
3294 2014-09-03 Gary Benson <gbenson@redhat.com>
3295
3296 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3297 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3298 Loop conditions changed to equivalent form.
3299 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3300 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3301 ALL_DEBUG_ADDRESS_REGISTERS.
3302
3303 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3304
3305 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3306 description fix.
3307
3308 2014-09-02 Doug Evans <dje@google.com>
3309
3310 * typeprint.c (find_global_typedef): Fix comment.
3311
3312 2014-09-02 Gary Benson <gbenson@redhat.com>
3313
3314 * i386-nat.h: Renamed as...
3315 * x86-nat.h: New file. All type, function and variable name
3316 prefixes changed from "i386_" to "x86_". All references updated.
3317 * i386-nat.c: Renamed as...
3318 * x86-nat.c: New file. All type, function and variable name
3319 prefixes changed from "i386_" to "x86_". All references updated.
3320 * common/i386-xstate.h: Renamed as...
3321 * common/x86-xstate.h: New file. All type, function and variable
3322 name prefixes changed from "i386_" to "x86_". All references
3323 updated.
3324 * nat/i386-cpuid.h: Renamed as...
3325 * nat/x86-cpuid.h: New file. All type, function and variable name
3326 prefixes changed from "i386_" to "x86_". All references updated.
3327 * nat/i386-gcc-cpuid.h: Renamed as...
3328 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3329 name prefixes changed from "i386_" to "x86_". All references
3330 updated.
3331 * nat/i386-dregs.h: Renamed as...
3332 * nat/x86-dregs.h: New file. All type, function and variable name
3333 prefixes changed from "i386_" to "x86_". All references updated.
3334 * nat/i386-dregs.c: Renamed as...
3335 * nat/x86-dregs.c: New file. All type, function and variable name
3336 prefixes changed from "i386_" to "x86_". All references updated.
3337
3338 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3339
3340 * varobj.c (_initialize_varobj): Move to the end of file.
3341
3342 2014-08-29 Gary Benson <gbenson@redhat.com>
3343
3344 * common/common-exceptions.h: New file.
3345 * common/common-exceptions.c: Likewise.
3346 * Makefile.in (SFILES): Add common/common-exceptions.c.
3347 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3348 (COMMON_OBS): Add common-exceptions.o.
3349 (common-exceptions.o): New rule.
3350 * exceptions.h (common-exceptions.h): Include.
3351 (gdb_setjmp.h): Do not include.
3352 (return_reason): Moved to common-exceptions.h.
3353 (enum return_reason): Likewise.
3354 (RETURN_MASK): Likewise.
3355 (typedef return_mask): Likewise.
3356 (enum errors): Likewise.
3357 (struct gdb_exception): Likewise.
3358 (exceptions_state_mc_init): Likewise.
3359 (exceptions_state_mc_action_iter): Likewise.
3360 (exceptions_state_mc_action_iter_1): Likewise.
3361 (TRY_CATCH): Likewise.
3362 (throw_exception): Likewise.
3363 (throw_verror): Likewise.
3364 (throw_vquit): Likewise.
3365 (throw_error): Likewise.
3366 (throw_quit): Likewise.
3367 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3368 (enum catcher_action): Likewise.
3369 (struct catcher): Likewise.
3370 (current_catcher): Likewise.
3371 (catcher_list_size): Likewise.
3372 (exceptions_state_mc_init): Likewise.
3373 (catcher_pop): Likewise.
3374 (exceptions_state_mc): Likewise.
3375 (exceptions_state_mc_action_iter): Likewise.
3376 (exceptions_state_mc_action_iter_1): Likewise.
3377 (throw_exception): Likewise.
3378 (exception_messages): Likewise.
3379 (exception_messages_size): Likewise.
3380 (throw_it): Likewise.
3381 (throw_verror): Likewise.
3382 (throw_vquit): Likewise.
3383 (throw_error): Likewise.
3384 (throw_quit): Likewise.
3385 (prepare_to_throw_exception): New function.
3386
3387 2014-08-29 Gary Benson <gbenson@redhat.com>
3388
3389 * common/gdb_setjmp.h: New file.
3390 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3391 * configure.ac: Move sigsetjmp check...
3392 * common/common.m4: ...here.
3393 * configure: Regenerate.
3394 * cp-support.c (SIGJMP_BUF): Delete.
3395 (SIGSETJMP): Likewise.
3396 (SIGLONGJMP): Likewise.
3397 * exceptions.h (gdb_setjmp.h): Include.
3398 (setjmp.h): Do not include.
3399 (EXCEPTIONS_SIGJMP_BUF): Delete.
3400 (EXCEPTIONS_SIGSETJMP): Likewise.
3401 (EXCEPTIONS_SIGLONGJMP): Likewise.
3402 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3403 from gdb_setjmp.h.
3404 * exceptions.c: Likewise.
3405
3406 2014-08-29 Gary Benson <gbenson@redhat.com>
3407
3408 * cleanups.h: Moved to...
3409 * common/cleanups.h: New file.
3410 * cleanups.c: Moved to...
3411 * common/cleanups.c: New file. Include common-defs.h and
3412 cleanups.h. Do not include defs.h.
3413 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3414 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3415 (cleanups.o): New rule.
3416
3417 2014-08-29 Gary Benson <gbenson@redhat.com>
3418
3419 * common/errors.h (internal_warning): New declaration.
3420 (internal_vwarning): Likewise.
3421 * common/errors.c (internal_warning): New function.
3422 * utils.h (internal_warning): Don't declare.
3423 (internal_vwarning): Likewise.
3424 * utils.c (internal_warning): Removed.
3425
3426 2014-08-29 Gary Benson <gbenson@redhat.com>
3427
3428 * main.c (captured_main): Use warning during startup.
3429 Prefix startup warning messages with command name.
3430
3431 2014-08-29 Gary Benson <gbenson@redhat.com>
3432
3433 * main.c (captured_main): Handle usage errors with error.
3434
3435 2014-08-29 Gary Benson <gbenson@redhat.com>
3436
3437 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3438 exit pair with a call to error. Wrap the message with _().
3439
3440 2014-08-29 Gary Benson <gbenson@redhat.com>
3441
3442 * main.c (captured_main): Replace a fprintf/exit
3443 pair with a call to error. Wrap the message with _().
3444
3445 2014-08-29 Gary Benson <gbenson@redhat.com>
3446
3447 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3448 pairs with calls to error. Wrap the message with _().
3449
3450 2014-08-29 Gary Benson <gbenson@redhat.com>
3451
3452 * utils.c (vwarning): Protect calls to target_terminal_ours
3453 and wrap_here.
3454
3455 2014-08-29 Gary Benson <gbenson@redhat.com>
3456
3457 * exceptions.c (print_flush): Protect calls to
3458 target_terminal_ours and wrap_here.
3459
3460 2014-08-29 Gary Benson <gbenson@redhat.com>
3461
3462 * utils.h (filtered_printing_initialized): New declaration.
3463 * utils.c (abort_with_message): New function.
3464 (internal_vproblem): Use abort_with_message for first level
3465 recursive internal problems, and if gdb_stderr is not set up.
3466 Protect calls to target_terminal_ours, begin_line and query.
3467
3468 2014-08-28 Doug Evans <dje@google.com>
3469
3470 * symtab.c (in_prologue): Move definition to better spot.
3471 (skip_prologue_using_sal): Ditto.
3472
3473 2014-08-28 Doug Evans <dje@google.com>
3474
3475 * symtab.c (find_function_start_sal): Move definition to better spot.
3476
3477 2014-08-28 Yao Qi <yao@codesourcery.com>
3478
3479 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3480 found_stack_adjust in forward scan. Remove condition check
3481 on found_stack_adjust which is always true. Indent the code.
3482
3483 2014-08-28 Yao Qi <yao@codesourcery.com>
3484
3485 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3486 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3487 (dwarf_decode_lines): Remove argument
3488 want_line_info. Remove condition check on want_line_info.
3489 Callers update.
3490
3491 2014-08-27 Doug Evans <dje@google.com>
3492
3493 * dwarf2read.c (dwarf_record_line): Fix typo.
3494
3495 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3496
3497 * target.h (struct target_ops::to_terminal_save_ours): Remove
3498 declaration.
3499 (target_terminal_save_ours): Remove macro.
3500 * target-delegates.c: Regenerate.
3501 * inf-child.c (inf_child_target): Don't set the nonexistent
3502 field to_terminal_save_ours.
3503 * inferior.h (child_terminal_save_ours): Remove declaration.
3504 * terminal.h (gdb_save_tty_state): New declaration.
3505 * inflow.c (child_terminal_save_ours): Rename to ...
3506 (gdb_save_tty_state): ... this.
3507 * tui/tui.c: Include terminal.h.
3508 (tui_enable): Use gdb_save_tty_state instead of
3509 target_terminal_save_ours.
3510 (tui_disable): Likewise.
3511
3512 2014-08-25 Doug Evans <dje@google.com>
3513
3514 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3515 Pass NULL instead of 0 for context pointer.
3516
3517 2014-08-25 Yao Qi <yao@codesourcery.com>
3518
3519 * dwarf2read.c: Fix grammatical error.
3520
3521 2014-08-24 Yao Qi <yao@codesourcery.com>
3522
3523 * dwarf2read.c (scan_partial_symbols): Update comments.
3524 Rename argument 'need_pc' with 'set_addrmap'.
3525 (add_partial_namespace): Rename argument 'need_pc' with
3526 'set_addrmap'.
3527 (add_partial_module): Likewise.
3528 (add_partial_subprogram): Likewise. Update comments.
3529 (dwarf2_name): Fix typo.
3530
3531 2014-08-22 Doug Evans <dje@google.com>
3532
3533 PR 17276
3534 * dwarf2read.c (dwarf_record_line_p): New function.
3535 (dwarf_decode_lines_1): Ignore subsequent line number entries
3536 for the same line if any entry had a non-zero discriminator.
3537
3538 2014-08-22 Doug Evans <dje@google.com>
3539
3540 * buildsym.h (record_line_ftype): New typedef.
3541 (record_line): Use it.
3542 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3543 (dwarf_decode_lines_1): Call them.
3544
3545 2014-08-22 Yao Qi <yao@codesourcery.com>
3546
3547 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3548 (ctf_end): Remove code.
3549
3550 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3551
3552 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3553 (linux_make_corefile_notes): call update_thread_list, protected against
3554 exceptions.
3555
3556 2014-08-21 Pedro Alves <palves@redhat.com>
3557
3558 * infcmd.c (attach_command): Remove comment.
3559
3560 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3561
3562 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3563 unsigned LONGEST to ULONGEST.
3564
3565 2014-08-20 Pedro Alves <palves@redhat.com>
3566
3567 * Makefile.in (check-read1): New rule.
3568
3569 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3570
3571 * value.c (value_from_contents_and_address): Strip resolved_type's
3572 typedef layers before checking its TYPE_DATA_LOCATION.
3573
3574 2014-08-20 Pedro Alves <palves@redhat.com>
3575
3576 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3577
3578 2014-08-20 Yao Qi <yao@codesourcery.com>
3579
3580 * amd64-tdep.c (amd64_classify): Add a blank line after the
3581 example. Move "*/" to a new line.
3582 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3583 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3584 * dwarf2read.c (psymtab_include_file_name): Likewise.
3585
3586 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3587 Pedro Alves <palves@redhat.com>
3588
3589 PR symtab/14604
3590 PR symtab/14605
3591 * ada-lang.c (coerce_unspec_val_to_type): Use
3592 value_contents_copy_raw.
3593 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3594 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3595 * cp-valprint.c (cp_print_value_fields): Let the common printing
3596 code handle optimized out values.
3597 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3598 * d-valprint.c (dynamic_array_type): Use
3599 value_bits_any_optimized_out.
3600 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3601 check_any_valid fields.
3602 (check_pieced_value_bits): Delete and inline ...
3603 (check_pieced_synthetic_pointer): ... here.
3604 (check_pieced_value_validity): Delete.
3605 (check_pieced_value_invalid): Delete.
3606 (pieced_value_funcs): Remove check_validity and check_any_valid
3607 fields.
3608 (read_pieced_value): Use mark_value_bits_optimized_out.
3609 (write_pieced_value): Switch to use
3610 mark_value_bytes_optimized_out.
3611 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3612 of assuming the whole value is optimized out.
3613 * findvar.c (read_frame_register_value): Remove special handling
3614 of optimized out registers.
3615 (value_from_register): Use mark_value_bytes_optimized_out.
3616 * frame-unwind.c (frame_unwind_got_optimized): Use
3617 mark_value_bytes_optimized_out.
3618 * jv-valprint.c (java_value_print): Adjust.
3619 (java_print_value_fields): Let the common printing code handle
3620 optimized out values.
3621 * mips-tdep.c (mips_print_register): Remove special handling of
3622 optimized out registers.
3623 * opencl-lang.c (lval_func_check_validity): Delete.
3624 (lval_func_check_any_valid): Delete.
3625 (opencl_value_funcs): Remove check_validity and check_any_valid
3626 fields.
3627 * p-valprint.c (pascal_object_print_value_fields): Let the common
3628 printing code handle optimized out values.
3629 * stack.c (read_frame_arg): Remove special handling of optimized
3630 out values. Fetch both VAL and ENTRYVAL before comparing
3631 contents. Adjust to value_available_contents_eq rename.
3632 * valprint.c (valprint_check_validity)
3633 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3634 (val_print_array_elements): Adjust.
3635 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3636 (value_bits_any_optimized_out): New function.
3637 (value_entirely_covered_by_range_vector): New function, factored
3638 out from value_entirely_unavailable.
3639 (value_entirely_unavailable): Reimplement.
3640 (value_entirely_optimized_out): New function.
3641 (insert_into_bit_range_vector): New function, factored out from
3642 mark_value_bits_unavailable.
3643 (mark_value_bits_unavailable): Reimplement.
3644 (struct ranges_and_idx): New struct.
3645 (find_first_range_overlap_and_match): New function, factored out
3646 from value_available_contents_bits_eq.
3647 (value_available_contents_bits_eq): Rename to ...
3648 (value_contents_bits_eq): ... this. Check both unavailable
3649 contents and optimized out contents.
3650 (value_available_contents_eq): Rename to ...
3651 (value_contents_eq): ... this.
3652 (allocate_value_lazy): Remove reference to the old optimized_out
3653 boolean.
3654 (allocate_optimized_out_value): Use
3655 mark_value_bytes_optimized_out.
3656 (require_not_optimized_out): Adjust to check whether the
3657 optimized_out vec is empty.
3658 (ranges_copy_adjusted): New function, factored out from
3659 value_contents_copy_raw.
3660 (value_contents_copy_raw): Also copy the optimized out ranges.
3661 Assert the destination ranges aren't optimized out.
3662 (value_contents_copy): Update comment, remove call to
3663 require_not_optimized_out.
3664 (value_contents_equal): Adjust to check whether the optimized_out
3665 vec is empty.
3666 (set_value_optimized_out, value_optimized_out_const): Delete.
3667 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3668 New functions.
3669 (value_entirely_optimized_out, value_bits_valid): Delete.
3670 (value_copy): Take a VEC copy of the 'optimized_out' field.
3671 (value_primitive_field): Remove special handling of optimized out.
3672 (value_fetch_lazy): Assert that lazy values have no unavailable
3673 regions. Use value_bits_any_optimized_out. Remove some special
3674 handling for optimized out values.
3675 * value.h: Add intro comment about <optimized out> and
3676 <unavailable>.
3677 (struct lval_funcs): Remove check_validity and check_any_valid
3678 fields.
3679 (set_value_optimized_out, value_optimized_out_const): Remove.
3680 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3681 New declarations.
3682 (value_bits_any_optimized_out): New declaration.
3683 (value_bits_valid): Delete declaration.
3684 (value_available_contents_eq): Rename to ...
3685 (value_contents_eq): ... this, and extend comments.
3686
3687 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3688
3689 Fix -fsanitize=address on unreadable inferior strings.
3690 * valprint.c (val_print_string): Fix access before BUFFER.
3691
3692 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3693
3694 * target.c (target_struct_size): Remove.
3695 (target_struct_allocsize): Remove.
3696 (DEFAULT_ALLOCSIZE): Remove.
3697 (target_ops_p): New typedef.
3698 (DEF_VEC_P (target_ops_p)): New vector type.
3699 (target_structs): Change type to VEC (target_ops_p).
3700 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3701 (find_default_run_target): Rewrite for loop following changes to
3702 target_structs.
3703
3704 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3705
3706 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3707 Adjust code accordingly. Adjust function description comment.
3708
3709 2014-08-19 Yao Qi <yao@codesourcery.com>
3710
3711 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3712 types.
3713
3714 2014-08-19 Alan Modra <amodra@gmail.com>
3715
3716 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3717 * config.in: Regenerate.
3718 * configure: Regenerate.
3719
3720 2014-08-19 Tom Tromey <tromey@redhat.com>
3721 Gary Benson <gbenson@redhat.com>
3722
3723 * common/common-debug.h: New file.
3724 * common/common-debug.c: Likewise.
3725 * debug.c: Likewise.
3726 * Makefile.in (SFILES): Add common/common-debug.c.
3727 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3728 (COMMON_OBS): Add common-debug.o and debug.o.
3729 (common-debug.o): New rule.
3730 * common/common-defs.h: Include common-debug.h.
3731 * common/agent.c (debug_agent_printf): New function.
3732 (DEBUG_AGENT): Redefine.
3733 * nat/i386-dregs.c (debug_printf): Undefine.
3734
3735 2014-08-19 Gary Benson <gbenson@redhat.com>
3736
3737 * common/common-defs.h: Include print-utils.h.
3738 * utils.h: Do not include print-utils.h.
3739
3740 2014-08-19 Tom Tromey <tromey@redhat.com>
3741 Gary Benson <gbenson@redhat.com>
3742
3743 * common/common-types.h: New file.
3744 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3745 * common/common-defs.h: Include common-types.h.
3746 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3747 (ULONGEST): Remove.
3748
3749 2014-08-19 Tom Tromey <tromey@redhat.com>
3750 Gary Benson <gbenson@redhat.com>
3751
3752 * common/errors.h: New file.
3753 * common/errors.c: Likewise.
3754 * Makefile.in (SFILES): Add common/errors.c.
3755 (HFILES_NO_SRCDIR): Add common/errors.h.
3756 (COMMON_OBS): Add errors.o.
3757 (errors.o): New rule.
3758 * common/common-defs.h: Include errors.h.
3759 * utils.h (perror_with_name, error, verror, warning, vwarning):
3760 Don't declare.
3761 * common/common-utils.h: (malloc_failure, internal_error):
3762 Likewise.
3763
3764 2014-08-19 Gary Benson <gbenson@redhat.com>
3765
3766 * utils.c (internal_vproblem): Always print the message.
3767
3768 2014-08-18 Doug Evans <dje@google.com>
3769
3770 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3771
3772 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3773
3774 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3775 Return 0 if TYPE is dynamic.
3776 (print_range): Add handling of dynamic ranges.
3777
3778 2014-08-18 Keven Boell <keven.boell@intel.com>
3779 Joel Brobecker <brobecker@adacore.com>
3780
3781 * gdbtypes.h (struct main_type): Add field "data_location".
3782 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3783 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3784 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3785 a dynamic data location.
3786 (resolve_dynamic_type): Add DW_AT_data_location handling.
3787 (copy_recursive, copy_type): Copy the data_location information
3788 when present.
3789 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3790 * value.c (value_from_contents_and_address): Add
3791 DW_AT_data_location handling.
3792
3793 2014-08-18 Keven Boell <keven.boell@intel.com>
3794 Joel Brobecker <brobecker@adacore.com>
3795
3796 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3797 field "get_object_address".
3798 * dwarf2expr.c (execute_stack_op): Add handling for
3799 DW_OP_push_object_address.
3800 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3801 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3802 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3803 (dwarf_expr_get_obj_addr): New function.
3804 (dwarf_expr_ctx_funcs): Add get_object_address field.
3805 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3806 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3807 (dwarf2_evaluate_property): Add parameter "address". Use it.
3808 (needs_get_obj_addr): New function.
3809 (needs_frame_ctx_funcs): Add get_object_address field.
3810 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3811 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3812 (resolve_dynamic_array): Likewise.
3813
3814 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3815
3816 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3817 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3818 fixed value for records and unions for which some GNAT encodings
3819 are present.
3820
3821 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3822
3823 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3824 rewrite to avoid "else if" and "else" constructs. Should be
3825 a no-op in practice.
3826
3827 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3828
3829 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3830 of lexical block.
3831
3832 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3833
3834 PR c++/17132
3835 * eval.c: Update all calls to find_overload_match.
3836 * valarith.c: Likewise.
3837 (value_user_defined_cpp_op, value_user_defined_op): New
3838 argument NOSIDE. Update all callers.
3839 * valops.c (find_overload_match): New argument NOSIDE.
3840 * value.h (find_overload_match): Update signature.
3841
3842 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3843
3844 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3845 'items' methods instead of 'iteritems' method on dictionaries.
3846
3847 2014-08-15 Doug Evans <dje@google.com>
3848
3849 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3850 closer to use.
3851
3852 2014-08-15 Doug Evans <dje@google.com>
3853
3854 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3855
3856 2014-08-15 Doug Evans <dje@google.com>
3857
3858 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3859
3860 2014-08-15 Doug Evans <dje@google.com>
3861
3862 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3863 unused.
3864
3865 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3866
3867 * dcache.h: Include target.h, to avoid compile time warnings.
3868
3869 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3870
3871 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3872 frame_info" partial declaration.
3873 * gdbarch.h: Regenerate.
3874
3875 2014-08-15 Yao Qi <yao@codesourcery.com>
3876
3877 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3878 Add parameter 'decode_for_pst_p'. Callers update.
3879
3880 2014-08-13 Yao Qi <yao@codesourcery.com>
3881
3882 PR build/17104
3883 * configure.ac: Use local variable 'pos'.
3884 * configure: Regenerated.
3885
3886 2014-08-11 Doug Evans <dje@google.com>
3887
3888 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3889 message, it is redundant with "Reading symbols from ..." message.
3890
3891 2014-08-10 Doug Evans <xdje42@gmail.com>
3892
3893 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3894
3895 2014-08-09 Yao Qi <yao@codesourcery.com>
3896
3897 PR remote/9053
3898 * remote.c (remote_xfer_partial): Remove dead code.
3899
3900 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3901
3902 * ia64-linux-tdep.c: Include "regset.h".
3903 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3904 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3905 (ia64_linux_supply_fpregset): New function.
3906 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3907 (ia64_linux_regset_from_core_section): New function.
3908 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3909 method.
3910
3911 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3912
3913 * m68klinux-tdep.c: Include "regset.h".
3914 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3915 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3916 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3917 (m68k_linux_regset_from_core_section): New function.
3918 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3919 method.
3920
3921 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3922
3923 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3924 function. Move logic to...
3925 (tilegx_linux_regmap): ... this new register map.
3926 (tilegx_linux_regset): Refer to register map, replace supply
3927 method by regcache_supply_regset, and add collect method.
3928 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3929 TILEGX_FIRST_EASY_REGNUM.
3930
3931 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3932
3933 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3934 that calls regcache_supply_regset and handles the EPC register
3935 separately. Move main logic to...
3936 (score7_linux_gregmap): ... this new register map.
3937 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3938 (score7_linux_gregset): Refer to register map. Add collect method.
3939 (score7_linux_regset_from_core_section): Replace
3940 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3941 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3942 (struct regset): Delete unused forward declaraction.
3943 (struct pt_regs): Delete structure definition.
3944 (elf_gregset_t): Delete typedef.
3945
3946 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3947
3948 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3949 (nios2_core_regset): Add collect method.
3950
3951 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3952
3953 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3954 platform-independent and don't write to read-only input buffer.
3955 (m32r_linux_collect_gregset): New function.
3956 (m32r_linux_gregset): Add collect method.
3957
3958 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3959
3960 * hppa-linux-tdep.c (greg_map): Rename to...
3961 (hppa_linux_gregmap): ... this. Also convert to
3962 regcache_map_entry format.
3963 (hppa_linux_supply_regset): Delete function.
3964 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3965 (hppa_linux_fpregmap): ... this new register map.
3966 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3967 register map, replace supply method by regcache_supply_regset, and
3968 add collect method regcache_collect_regset.
3969
3970 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3971
3972 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3973 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3974 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3975 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3976 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3977 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3978 (frv_linux_supply_gregset): Replace main logic by call to
3979 regcache_supply_regset, but keep clearing gr32-gr63.
3980 (frv_linux_supply_fpregset): Delete function.
3981 (frv_linux_gregset): Refer to appropriate register map and add
3982 regcache_collect_regset as the collect method.
3983 (frv_linux_fpregset): Likewise. Also exchange the supply method
3984 by regcache_supply_regset.
3985
3986 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3987
3988 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3989 by call to alpha_supply_int_regs.
3990 (alpha_linux_collect_gregset): New function.
3991 (alpha_linux_supply_fpregset): Replace logic by call to
3992 alpha_supply_fp_regs.
3993 (alpha_linux_collect_fpregset): New function.
3994 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3995
3996 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3997
3998 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3999 by call to regcache_collect_regset.
4000 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4001 instead of aarch64_linux_supply_gregset/_fpregset.
4002 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4003 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4004 header file instead.
4005 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4006 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4007 functions. Move logic to ...
4008 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4009 register maps.
4010 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4011 refer to new register maps, replace *_regset_from_core by
4012 regcache_supply_regset, and also use regcache_collect_regset.
4013 * aarch64-linux-tdep.h: Include "regset.h".
4014 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4015 Delete prototypes.
4016 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4017 macros, moved from C source file.
4018 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4019 variable declarations.
4020
4021 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4022
4023 * s390-linux-nat.c: Include "regset.h".
4024 (regmap_gregset): Delete macro.
4025 (s390_64_regmap_gregset): New register map for
4026 regcache_supply/_collect_regset.
4027 (s390_64_gregset): New regset.
4028 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4029 (regmap_fpregset): Delete macro.
4030 (s390_native_supply, s390_native_collect): Delete functions.
4031 (supply_gregset, fill_gregset): Replace s390-specific regmap
4032 handling by a call to regcache_supply/_collect_regset.
4033 (supply_fpregset, fill_fpregset): Call regcache_supply/
4034 _collect_regset instead of s390_native_supply/_collect.
4035 (fetch_regset, store_regset): Likewise. Also change the last
4036 parameter to a regset instead of a regmap.
4037 (s390_linux_fetch_inferior_registers)
4038 (390_linux_store_inferior_registers): Adjust last parameter in
4039 calls to fetch_regset and store_regset.
4040 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4041 (s390_gregmap): ... this. Also make static const and convert to
4042 regcache_map_entry format.
4043 (s390x_regmap_gregset): Delete.
4044 (s390_regmap_fpregset): Rename to...
4045 (s390_fpregmap): ... this. Make static const and convert to
4046 regcache_map_entry format.
4047 (s390_regmap_upper, s390_regmap_last_break)
4048 (s390x_regmap_last_break, s390_regmap_system_call)
4049 (s390_regmap_tdb): Likewise.
4050 (s390_supply_regset, s390_collect_regset): Remove functions.
4051 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4052 s390_supply_regset.
4053 (s390_gregset, s390_fpregset, s390_upper_regset)
4054 (s390_last_break_regset, s390x_last_break_regset)
4055 (s390_system_call_regset, s390_tdb_regset): Make global and
4056 replace s390_supply/_collect_regset by regcache_supply/
4057 _collect_regset.
4058 (s390x_gregset): Delete.
4059 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4060 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4061 (s390_regmap_fpregset, s390_regmap_last_break)
4062 (s390x_regmap_last_break, s390_regmap_system_call)
4063 (s390_regmap_tdb): Delete global variable declarations.
4064 (s390_gregset, s390_fpregset, s390_last_break_regset)
4065 (s390x_last_break_regset, s390_system_call_regset)
4066 (s390_tdb_regset): New global variable declarations.
4067
4068 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4069
4070 * regcache.c: Include "regset.h".
4071 (regcache_transfer_regset): New local function.
4072 (regcache_supply_regset, regcache_collect_regset): New functions.
4073 * regcache.h (struct regcache_map_entry): New structure.
4074 (REGCACHE_MAP_SKIP): New enum value.
4075 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4076
4077 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4078
4079 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4080 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4081 (ppc_linux_collect_gregset ): Likewise.
4082 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4083 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4084 (ppc_collect_vrregset): Likewise.
4085 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4086 Likewise.
4087
4088 2014-08-07 Yao Qi <yao@codesourcery.com>
4089
4090 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4091 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4092 * remote.c (remote_read_bytes): Likewise.
4093
4094 2014-08-07 Yao Qi <yao@codesourcery.com>
4095
4096 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4097
4098 2014-08-07 Yao Qi <yao@codesourcery.com>
4099
4100 PR remote/17230
4101 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4102 TARGET_XFER_OK instead of 0.
4103
4104 2014-08-07 Gary Benson <gbenson@redhat.com>
4105
4106 * common/common-defs.h: Include errno.h.
4107 * defs.h: Do not include errno.h.
4108 * ada-typeprint.c: Likewise.
4109 * c-typeprint.c: Likewise.
4110 * core-regset.c: Likewise.
4111 * corefile.c: Likewise.
4112 * corelow.c: Likewise.
4113 * event-loop.c: Likewise.
4114 * f-typeprint.c: Likewise.
4115 * gnu-nat.c: Likewise.
4116 * go32-nat.c: Likewise.
4117 * i386gnu-nat.c: Likewise.
4118 * m2-typeprint.c: Likewise.
4119 * nat/linux-btrace.c: Likewise.
4120 * p-typeprint.c: Likewise.
4121 * procfs.c: Likewise.
4122 * remote-sim.c: Likewise.
4123 * rs6000-nat.c: Likewise.
4124 * target.c: Likewise.
4125 * typeprint.c: Likewise.
4126 * ui-file.c: Likewise.
4127 * valops.c: Likewise.
4128 * valprint.c: Likewise.
4129
4130 2014-08-07 Gary Benson <gbenson@redhat.com>
4131
4132 * common/common-defs.h: Include string.h.
4133 * aarch64-tdep.c: Do not include string.h.
4134 * ada-exp.y: Likewise.
4135 * ada-lang.c: Likewise.
4136 * ada-lex.l: Likewise.
4137 * ada-typeprint.c: Likewise.
4138 * ada-valprint.c: Likewise.
4139 * aix-thread.c: Likewise.
4140 * alpha-linux-tdep.c: Likewise.
4141 * alpha-mdebug-tdep.c: Likewise.
4142 * alpha-nat.c: Likewise.
4143 * alpha-osf1-tdep.c: Likewise.
4144 * alpha-tdep.c: Likewise.
4145 * alphanbsd-tdep.c: Likewise.
4146 * amd64-dicos-tdep.c: Likewise.
4147 * amd64-linux-tdep.c: Likewise.
4148 * amd64-nat.c: Likewise.
4149 * amd64-sol2-tdep.c: Likewise.
4150 * amd64fbsd-tdep.c: Likewise.
4151 * amd64obsd-tdep.c: Likewise.
4152 * arch-utils.c: Likewise.
4153 * arm-linux-nat.c: Likewise.
4154 * arm-linux-tdep.c: Likewise.
4155 * arm-tdep.c: Likewise.
4156 * arm-wince-tdep.c: Likewise.
4157 * armbsd-tdep.c: Likewise.
4158 * armnbsd-nat.c: Likewise.
4159 * armnbsd-tdep.c: Likewise.
4160 * armobsd-tdep.c: Likewise.
4161 * avr-tdep.c: Likewise.
4162 * ax-gdb.c: Likewise.
4163 * ax-general.c: Likewise.
4164 * bcache.c: Likewise.
4165 * bfin-tdep.c: Likewise.
4166 * breakpoint.c: Likewise.
4167 * build-id.c: Likewise.
4168 * buildsym.c: Likewise.
4169 * c-exp.y: Likewise.
4170 * c-lang.c: Likewise.
4171 * c-typeprint.c: Likewise.
4172 * c-valprint.c: Likewise.
4173 * charset.c: Likewise.
4174 * cli-out.c: Likewise.
4175 * cli/cli-cmds.c: Likewise.
4176 * cli/cli-decode.c: Likewise.
4177 * cli/cli-dump.c: Likewise.
4178 * cli/cli-interp.c: Likewise.
4179 * cli/cli-logging.c: Likewise.
4180 * cli/cli-script.c: Likewise.
4181 * cli/cli-setshow.c: Likewise.
4182 * cli/cli-utils.c: Likewise.
4183 * coffread.c: Likewise.
4184 * common/agent.c: Likewise.
4185 * common/buffer.c: Likewise.
4186 * common/buffer.h: Likewise.
4187 * common/common-utils.c: Likewise.
4188 * common/filestuff.c: Likewise.
4189 * common/filestuff.c: Likewise.
4190 * common/format.c: Likewise.
4191 * common/print-utils.c: Likewise.
4192 * common/rsp-low.c: Likewise.
4193 * common/signals.c: Likewise.
4194 * common/vec.h: Likewise.
4195 * common/xml-utils.c: Likewise.
4196 * core-regset.c: Likewise.
4197 * corefile.c: Likewise.
4198 * corelow.c: Likewise.
4199 * cp-abi.c: Likewise.
4200 * cp-name-parser.y: Likewise.
4201 * cp-support.c: Likewise.
4202 * cp-valprint.c: Likewise.
4203 * cris-tdep.c: Likewise.
4204 * d-exp.y: Likewise.
4205 * darwin-nat.c: Likewise.
4206 * dbxread.c: Likewise.
4207 * dcache.c: Likewise.
4208 * demangle.c: Likewise.
4209 * dicos-tdep.c: Likewise.
4210 * disasm.c: Likewise.
4211 * doublest.c: Likewise.
4212 * dsrec.c: Likewise.
4213 * dummy-frame.c: Likewise.
4214 * dwarf2-frame.c: Likewise.
4215 * dwarf2loc.c: Likewise.
4216 * dwarf2read.c: Likewise.
4217 * elfread.c: Likewise.
4218 * environ.c: Likewise.
4219 * eval.c: Likewise.
4220 * event-loop.c: Likewise.
4221 * exceptions.c: Likewise.
4222 * exec.c: Likewise.
4223 * expprint.c: Likewise.
4224 * f-exp.y: Likewise.
4225 * f-lang.c: Likewise.
4226 * f-typeprint.c: Likewise.
4227 * f-valprint.c: Likewise.
4228 * fbsd-nat.c: Likewise.
4229 * findcmd.c: Likewise.
4230 * findvar.c: Likewise.
4231 * fork-child.c: Likewise.
4232 * frame.c: Likewise.
4233 * frv-linux-tdep.c: Likewise.
4234 * frv-tdep.c: Likewise.
4235 * gdb.c: Likewise.
4236 * gdb_bfd.c: Likewise.
4237 * gdbarch.c: Likewise.
4238 * gdbarch.sh: Likewise.
4239 * gdbtypes.c: Likewise.
4240 * gnu-nat.c: Likewise.
4241 * gnu-v2-abi.c: Likewise.
4242 * gnu-v3-abi.c: Likewise.
4243 * go-exp.y: Likewise.
4244 * go-lang.c: Likewise.
4245 * go32-nat.c: Likewise.
4246 * guile/guile.c: Likewise.
4247 * guile/scm-auto-load.c: Likewise.
4248 * hppa-hpux-tdep.c: Likewise.
4249 * hppa-linux-nat.c: Likewise.
4250 * hppanbsd-tdep.c: Likewise.
4251 * hppaobsd-tdep.c: Likewise.
4252 * i386-cygwin-tdep.c: Likewise.
4253 * i386-dicos-tdep.c: Likewise.
4254 * i386-linux-tdep.c: Likewise.
4255 * i386-nto-tdep.c: Likewise.
4256 * i386-sol2-tdep.c: Likewise.
4257 * i386-tdep.c: Likewise.
4258 * i386bsd-tdep.c: Likewise.
4259 * i386gnu-nat.c: Likewise.
4260 * i386nbsd-tdep.c: Likewise.
4261 * i386obsd-tdep.c: Likewise.
4262 * i387-tdep.c: Likewise.
4263 * ia64-libunwind-tdep.c: Likewise.
4264 * ia64-linux-nat.c: Likewise.
4265 * inf-child.c: Likewise.
4266 * inf-ptrace.c: Likewise.
4267 * inf-ttrace.c: Likewise.
4268 * infcall.c: Likewise.
4269 * infcmd.c: Likewise.
4270 * inflow.c: Likewise.
4271 * infrun.c: Likewise.
4272 * interps.c: Likewise.
4273 * iq2000-tdep.c: Likewise.
4274 * irix5-nat.c: Likewise.
4275 * jv-exp.y: Likewise.
4276 * jv-lang.c: Likewise.
4277 * jv-typeprint.c: Likewise.
4278 * jv-valprint.c: Likewise.
4279 * language.c: Likewise.
4280 * linux-fork.c: Likewise.
4281 * linux-nat.c: Likewise.
4282 * lm32-tdep.c: Likewise.
4283 * m2-exp.y: Likewise.
4284 * m2-typeprint.c: Likewise.
4285 * m32c-tdep.c: Likewise.
4286 * m32r-linux-nat.c: Likewise.
4287 * m32r-linux-tdep.c: Likewise.
4288 * m32r-rom.c: Likewise.
4289 * m32r-tdep.c: Likewise.
4290 * m68hc11-tdep.c: Likewise.
4291 * m68k-tdep.c: Likewise.
4292 * m68kbsd-tdep.c: Likewise.
4293 * m68klinux-nat.c: Likewise.
4294 * m68klinux-tdep.c: Likewise.
4295 * m88k-tdep.c: Likewise.
4296 * machoread.c: Likewise.
4297 * macrocmd.c: Likewise.
4298 * main.c: Likewise.
4299 * mdebugread.c: Likewise.
4300 * mem-break.c: Likewise.
4301 * memattr.c: Likewise.
4302 * memory-map.c: Likewise.
4303 * mep-tdep.c: Likewise.
4304 * mi/mi-cmd-break.c: Likewise.
4305 * mi/mi-cmd-disas.c: Likewise.
4306 * mi/mi-cmd-env.c: Likewise.
4307 * mi/mi-cmd-stack.c: Likewise.
4308 * mi/mi-cmd-var.c: Likewise.
4309 * mi/mi-cmds.c: Likewise.
4310 * mi/mi-console.c: Likewise.
4311 * mi/mi-getopt.c: Likewise.
4312 * mi/mi-interp.c: Likewise.
4313 * mi/mi-main.c: Likewise.
4314 * mi/mi-parse.c: Likewise.
4315 * microblaze-rom.c: Likewise.
4316 * microblaze-tdep.c: Likewise.
4317 * mingw-hdep.c: Likewise.
4318 * minidebug.c: Likewise.
4319 * minsyms.c: Likewise.
4320 * mips-irix-tdep.c: Likewise.
4321 * mips-linux-tdep.c: Likewise.
4322 * mips-tdep.c: Likewise.
4323 * mips64obsd-tdep.c: Likewise.
4324 * mipsnbsd-tdep.c: Likewise.
4325 * mipsread.c: Likewise.
4326 * mn10300-linux-tdep.c: Likewise.
4327 * mn10300-tdep.c: Likewise.
4328 * monitor.c: Likewise.
4329 * moxie-tdep.c: Likewise.
4330 * mt-tdep.c: Likewise.
4331 * nat/linux-btrace.c: Likewise.
4332 * nat/linux-osdata.c: Likewise.
4333 * nat/linux-procfs.c: Likewise.
4334 * nat/linux-ptrace.c: Likewise.
4335 * nat/linux-waitpid.c: Likewise.
4336 * nbsd-tdep.c: Likewise.
4337 * nios2-linux-tdep.c: Likewise.
4338 * nto-procfs.c: Likewise.
4339 * nto-tdep.c: Likewise.
4340 * objc-lang.c: Likewise.
4341 * objfiles.c: Likewise.
4342 * opencl-lang.c: Likewise.
4343 * osabi.c: Likewise.
4344 * osdata.c: Likewise.
4345 * p-exp.y: Likewise.
4346 * p-lang.c: Likewise.
4347 * p-typeprint.c: Likewise.
4348 * parse.c: Likewise.
4349 * posix-hdep.c: Likewise.
4350 * ppc-linux-nat.c: Likewise.
4351 * ppc-sysv-tdep.c: Likewise.
4352 * ppcfbsd-tdep.c: Likewise.
4353 * ppcnbsd-tdep.c: Likewise.
4354 * ppcobsd-tdep.c: Likewise.
4355 * printcmd.c: Likewise.
4356 * procfs.c: Likewise.
4357 * prologue-value.c: Likewise.
4358 * python/py-auto-load.c: Likewise.
4359 * python/py-gdb-readline.c: Likewise.
4360 * ravenscar-thread.c: Likewise.
4361 * regcache.c: Likewise.
4362 * registry.c: Likewise.
4363 * remote-fileio.c: Likewise.
4364 * remote-m32r-sdi.c: Likewise.
4365 * remote-mips.c: Likewise.
4366 * remote-notif.c: Likewise.
4367 * remote-sim.c: Likewise.
4368 * remote.c: Likewise.
4369 * reverse.c: Likewise.
4370 * rs6000-aix-tdep.c: Likewise.
4371 * ser-base.c: Likewise.
4372 * ser-go32.c: Likewise.
4373 * ser-mingw.c: Likewise.
4374 * ser-pipe.c: Likewise.
4375 * ser-tcp.c: Likewise.
4376 * ser-unix.c: Likewise.
4377 * serial.c: Likewise.
4378 * sh-tdep.c: Likewise.
4379 * sh64-tdep.c: Likewise.
4380 * shnbsd-tdep.c: Likewise.
4381 * skip.c: Likewise.
4382 * sol-thread.c: Likewise.
4383 * solib-dsbt.c: Likewise.
4384 * solib-frv.c: Likewise.
4385 * solib-osf.c: Likewise.
4386 * solib-som.c: Likewise.
4387 * solib-spu.c: Likewise.
4388 * solib-target.c: Likewise.
4389 * solib.c: Likewise.
4390 * somread.c: Likewise.
4391 * source.c: Likewise.
4392 * sparc-nat.c: Likewise.
4393 * sparc-sol2-tdep.c: Likewise.
4394 * sparc-tdep.c: Likewise.
4395 * sparc64-tdep.c: Likewise.
4396 * sparc64fbsd-tdep.c: Likewise.
4397 * sparc64nbsd-tdep.c: Likewise.
4398 * sparcnbsd-tdep.c: Likewise.
4399 * spu-linux-nat.c: Likewise.
4400 * spu-multiarch.c: Likewise.
4401 * spu-tdep.c: Likewise.
4402 * stabsread.c: Likewise.
4403 * stack.c: Likewise.
4404 * std-regs.c: Likewise.
4405 * symfile.c: Likewise.
4406 * symmisc.c: Likewise.
4407 * symtab.c: Likewise.
4408 * target.c: Likewise.
4409 * thread.c: Likewise.
4410 * tilegx-linux-nat.c: Likewise.
4411 * tilegx-tdep.c: Likewise.
4412 * top.c: Likewise.
4413 * tracepoint.c: Likewise.
4414 * tui/tui-command.c: Likewise.
4415 * tui/tui-data.c: Likewise.
4416 * tui/tui-disasm.c: Likewise.
4417 * tui/tui-file.c: Likewise.
4418 * tui/tui-layout.c: Likewise.
4419 * tui/tui-out.c: Likewise.
4420 * tui/tui-regs.c: Likewise.
4421 * tui/tui-source.c: Likewise.
4422 * tui/tui-stack.c: Likewise.
4423 * tui/tui-win.c: Likewise.
4424 * tui/tui-windata.c: Likewise.
4425 * tui/tui-winsource.c: Likewise.
4426 * typeprint.c: Likewise.
4427 * ui-file.c: Likewise.
4428 * ui-out.c: Likewise.
4429 * user-regs.c: Likewise.
4430 * utils.c: Likewise.
4431 * v850-tdep.c: Likewise.
4432 * valarith.c: Likewise.
4433 * valops.c: Likewise.
4434 * valprint.c: Likewise.
4435 * value.c: Likewise.
4436 * varobj.c: Likewise.
4437 * vax-tdep.c: Likewise.
4438 * vaxnbsd-tdep.c: Likewise.
4439 * vaxobsd-tdep.c: Likewise.
4440 * windows-nat.c: Likewise.
4441 * xcoffread.c: Likewise.
4442 * xml-support.c: Likewise.
4443 * xstormy16-tdep.c: Likewise.
4444 * xtensa-linux-nat.c: Likewise.
4445
4446 2014-08-07 Gary Benson <gbenson@redhat.com>
4447
4448 * common/common-defs.h: Include gdb_assert.h.
4449 * aarch64-tdep.c: Do not include gdb_assert.h.
4450 * addrmap.c: Likewise.
4451 * aix-thread.c: Likewise.
4452 * alpha-linux-tdep.c: Likewise.
4453 * alpha-mdebug-tdep.c: Likewise.
4454 * alphanbsd-tdep.c: Likewise.
4455 * amd64-nat.c: Likewise.
4456 * amd64-tdep.c: Likewise.
4457 * amd64bsd-nat.c: Likewise.
4458 * amd64fbsd-nat.c: Likewise.
4459 * amd64fbsd-tdep.c: Likewise.
4460 * amd64nbsd-nat.c: Likewise.
4461 * amd64nbsd-tdep.c: Likewise.
4462 * amd64obsd-nat.c: Likewise.
4463 * amd64obsd-tdep.c: Likewise.
4464 * arch-utils.c: Likewise.
4465 * arm-tdep.c: Likewise.
4466 * armbsd-tdep.c: Likewise.
4467 * auxv.c: Likewise.
4468 * bcache.c: Likewise.
4469 * bfin-tdep.c: Likewise.
4470 * blockframe.c: Likewise.
4471 * breakpoint.c: Likewise.
4472 * bsd-kvm.c: Likewise.
4473 * bsd-uthread.c: Likewise.
4474 * buildsym.c: Likewise.
4475 * c-exp.y: Likewise.
4476 * c-lang.c: Likewise.
4477 * charset.c: Likewise.
4478 * cleanups.c: Likewise.
4479 * cli-out.c: Likewise.
4480 * cli/cli-decode.c: Likewise.
4481 * cli/cli-dump.c: Likewise.
4482 * cli/cli-logging.c: Likewise.
4483 * cli/cli-script.c: Likewise.
4484 * cli/cli-utils.c: Likewise.
4485 * coffread.c: Likewise.
4486 * common/common-utils.c: Likewise.
4487 * common/queue.h: Likewise.
4488 * common/signals.c: Likewise.
4489 * common/vec.h: Likewise.
4490 * complaints.c: Likewise.
4491 * completer.c: Likewise.
4492 * corelow.c: Likewise.
4493 * cp-abi.c: Likewise.
4494 * cp-name-parser.y: Likewise.
4495 * cp-namespace.c: Likewise.
4496 * cp-support.c: Likewise.
4497 * cris-tdep.c: Likewise.
4498 * dbxread.c: Likewise.
4499 * dictionary.c: Likewise.
4500 * doublest.c: Likewise.
4501 * dsrec.c: Likewise.
4502 * dummy-frame.c: Likewise.
4503 * dwarf2-frame-tailcall.c: Likewise.
4504 * dwarf2-frame.c: Likewise.
4505 * dwarf2expr.c: Likewise.
4506 * dwarf2loc.c: Likewise.
4507 * dwarf2read.c: Likewise.
4508 * eval.c: Likewise.
4509 * event-loop.c: Likewise.
4510 * exceptions.c: Likewise.
4511 * expprint.c: Likewise.
4512 * f-valprint.c: Likewise.
4513 * fbsd-nat.c: Likewise.
4514 * findvar.c: Likewise.
4515 * frame-unwind.c: Likewise.
4516 * frame.c: Likewise.
4517 * frv-tdep.c: Likewise.
4518 * gcore.c: Likewise.
4519 * gdb-dlfcn.c: Likewise.
4520 * gdb_bfd.c: Likewise.
4521 * gdbarch.c: Likewise.
4522 * gdbarch.sh: Likewise.
4523 * gdbtypes.c: Likewise.
4524 * gnu-nat.c: Likewise.
4525 * gnu-v3-abi.c: Likewise.
4526 * go-lang.c: Likewise.
4527 * guile/scm-exception.c: Likewise.
4528 * guile/scm-gsmob.c: Likewise.
4529 * guile/scm-lazy-string.c: Likewise.
4530 * guile/scm-math.c: Likewise.
4531 * guile/scm-pretty-print.c: Likewise.
4532 * guile/scm-safe-call.c: Likewise.
4533 * guile/scm-utils.c: Likewise.
4534 * guile/scm-value.c: Likewise.
4535 * h8300-tdep.c: Likewise.
4536 * hppa-hpux-nat.c: Likewise.
4537 * hppa-tdep.c: Likewise.
4538 * hppanbsd-tdep.c: Likewise.
4539 * hppaobsd-tdep.c: Likewise.
4540 * i386-darwin-nat.c: Likewise.
4541 * i386-darwin-tdep.c: Likewise.
4542 * i386-nto-tdep.c: Likewise.
4543 * i386-tdep.c: Likewise.
4544 * i386bsd-nat.c: Likewise.
4545 * i386fbsd-tdep.c: Likewise.
4546 * i386gnu-nat.c: Likewise.
4547 * i386nbsd-tdep.c: Likewise.
4548 * i386obsd-tdep.c: Likewise.
4549 * i387-tdep.c: Likewise.
4550 * ia64-libunwind-tdep.c: Likewise.
4551 * ia64-tdep.c: Likewise.
4552 * inf-ptrace.c: Likewise.
4553 * inf-ttrace.c: Likewise.
4554 * infcall.c: Likewise.
4555 * infcmd.c: Likewise.
4556 * infrun.c: Likewise.
4557 * inline-frame.c: Likewise.
4558 * interps.c: Likewise.
4559 * jv-lang.c: Likewise.
4560 * jv-typeprint.c: Likewise.
4561 * linux-fork.c: Likewise.
4562 * linux-nat.c: Likewise.
4563 * linux-thread-db.c: Likewise.
4564 * m32c-tdep.c: Likewise.
4565 * m32r-linux-nat.c: Likewise.
4566 * m32r-tdep.c: Likewise.
4567 * m68k-tdep.c: Likewise.
4568 * m68kbsd-nat.c: Likewise.
4569 * m68kbsd-tdep.c: Likewise.
4570 * m88k-tdep.c: Likewise.
4571 * machoread.c: Likewise.
4572 * macroexp.c: Likewise.
4573 * macrotab.c: Likewise.
4574 * maint.c: Likewise.
4575 * mdebugread.c: Likewise.
4576 * memory-map.c: Likewise.
4577 * mep-tdep.c: Likewise.
4578 * mi/mi-common.c: Likewise.
4579 * microblaze-tdep.c: Likewise.
4580 * mingw-hdep.c: Likewise.
4581 * mips-linux-nat.c: Likewise.
4582 * mips-linux-tdep.c: Likewise.
4583 * mips-tdep.c: Likewise.
4584 * mips64obsd-tdep.c: Likewise.
4585 * mipsnbsd-tdep.c: Likewise.
4586 * mn10300-linux-tdep.c: Likewise.
4587 * mn10300-tdep.c: Likewise.
4588 * moxie-tdep.c: Likewise.
4589 * mt-tdep.c: Likewise.
4590 * nat/linux-btrace.c: Likewise.
4591 * nat/linux-osdata.c: Likewise.
4592 * nat/linux-ptrace.c: Likewise.
4593 * nat/mips-linux-watch.c: Likewise.
4594 * nios2-linux-tdep.c: Likewise.
4595 * nios2-tdep.c: Likewise.
4596 * objc-lang.c: Likewise.
4597 * objfiles.c: Likewise.
4598 * obsd-nat.c: Likewise.
4599 * opencl-lang.c: Likewise.
4600 * osabi.c: Likewise.
4601 * parse.c: Likewise.
4602 * ppc-linux-nat.c: Likewise.
4603 * ppc-sysv-tdep.c: Likewise.
4604 * ppcfbsd-nat.c: Likewise.
4605 * ppcfbsd-tdep.c: Likewise.
4606 * ppcnbsd-nat.c: Likewise.
4607 * ppcnbsd-tdep.c: Likewise.
4608 * ppcobsd-nat.c: Likewise.
4609 * ppcobsd-tdep.c: Likewise.
4610 * printcmd.c: Likewise.
4611 * procfs.c: Likewise.
4612 * prologue-value.c: Likewise.
4613 * psymtab.c: Likewise.
4614 * python/py-lazy-string.c: Likewise.
4615 * python/py-value.c: Likewise.
4616 * regcache.c: Likewise.
4617 * reggroups.c: Likewise.
4618 * registry.c: Likewise.
4619 * remote-sim.c: Likewise.
4620 * remote.c: Likewise.
4621 * rs6000-aix-tdep.c: Likewise.
4622 * rs6000-tdep.c: Likewise.
4623 * s390-linux-tdep.c: Likewise.
4624 * score-tdep.c: Likewise.
4625 * ser-base.c: Likewise.
4626 * ser-mingw.c: Likewise.
4627 * sh-tdep.c: Likewise.
4628 * sh64-tdep.c: Likewise.
4629 * solib-darwin.c: Likewise.
4630 * solib-spu.c: Likewise.
4631 * solib-svr4.c: Likewise.
4632 * source.c: Likewise.
4633 * sparc-nat.c: Likewise.
4634 * sparc-sol2-tdep.c: Likewise.
4635 * sparc-tdep.c: Likewise.
4636 * sparc64-sol2-tdep.c: Likewise.
4637 * sparc64-tdep.c: Likewise.
4638 * sparc64fbsd-tdep.c: Likewise.
4639 * sparc64nbsd-tdep.c: Likewise.
4640 * sparc64obsd-tdep.c: Likewise.
4641 * sparcnbsd-tdep.c: Likewise.
4642 * sparcobsd-tdep.c: Likewise.
4643 * spu-multiarch.c: Likewise.
4644 * spu-tdep.c: Likewise.
4645 * stabsread.c: Likewise.
4646 * stack.c: Likewise.
4647 * symfile.c: Likewise.
4648 * symtab.c: Likewise.
4649 * target-descriptions.c: Likewise.
4650 * target-memory.c: Likewise.
4651 * target.c: Likewise.
4652 * tic6x-linux-tdep.c: Likewise.
4653 * tic6x-tdep.c: Likewise.
4654 * tilegx-linux-nat.c: Likewise.
4655 * tilegx-tdep.c: Likewise.
4656 * top.c: Likewise.
4657 * tramp-frame.c: Likewise.
4658 * tui/tui-out.c: Likewise.
4659 * tui/tui-winsource.c: Likewise.
4660 * ui-out.c: Likewise.
4661 * user-regs.c: Likewise.
4662 * utils.c: Likewise.
4663 * v850-tdep.c: Likewise.
4664 * valops.c: Likewise.
4665 * value.c: Likewise.
4666 * varobj.c: Likewise.
4667 * vax-nat.c: Likewise.
4668 * xml-syscall.c: Likewise.
4669 * xml-tdesc.c: Likewise.
4670 * xstormy16-tdep.c: Likewise.
4671 * xtensa-linux-nat.c: Likewise.
4672 * xtensa-tdep.c: Likewise.
4673
4674 2014-08-07 Gary Benson <gbenson@redhat.com>
4675
4676 * common/common-defs.h: Include common-utils.h.
4677 * defs.h: Do not include common-utils.h.
4678 * common/gdb_assert.h: Likewise.
4679 * darwin-nat.h: Likewise.
4680 * nat/linux-btrace.c: Likewise.
4681 * target/waitstatus.h: Likewise.
4682
4683 2014-08-07 Gary Benson <gbenson@redhat.com>
4684
4685 * common/common-defs.h: Include ptid.h.
4686 * defs.h: Do not include ptid.h.
4687 * inferior.h: Likewise.
4688 * infrun.h: Likewise.
4689 * nat/linux-btrace.h: Likewise.
4690 * nat/linux-osdata.h: Likewise.
4691 * target/waitstatus.h: Likewise.
4692
4693 2014-08-07 Gary Benson <gbenson@redhat.com>
4694
4695 * common/common-defs.h: Include gdb_locale.h.
4696 * defs.h: Do not include gdb_locale.h.
4697
4698 2014-08-07 Gary Benson <gbenson@redhat.com>
4699
4700 * common/common-defs.h: Include gdb/signals.h.
4701 * defs.h: Do not include gdb/signals.h.
4702
4703 2014-08-07 Gary Benson <gbenson@redhat.com>
4704
4705 * common/common-defs.h: Include pathmax.h.
4706 * defs.h: Do not include pathmax.h.
4707
4708 2014-08-07 Gary Benson <gbenson@redhat.com>
4709
4710 * common/common-defs.h: Include libiberty.h.
4711 * defs.h: Do not include libiberty.h.
4712 * common/queue.h: Likewise.
4713 * cp-name-parser.y: Likewise.
4714 * mi/mi-cmd-catch.c: Likewise.
4715 * python/python.c: Likewise.
4716
4717 2014-08-07 Gary Benson <gbenson@redhat.com>
4718
4719 * common/common-defs.h: Include ansidecl.h.
4720 * defs.h: Do not include ansidecl.h.
4721 * common/buffer.h: Likewise.
4722 * common/common-utils.h: Likewise.
4723
4724 2014-08-07 Gary Benson <gbenson@redhat.com>
4725
4726 * common/common-defs.h: Include stddef.h.
4727 * defs.h: Do not include stddef.h.
4728 * common/common-utils.h: Likewise.
4729 * amd64fbsd-nat.c: Likewise.
4730 * bcache.c: Likewise.
4731 * charset.c: Likewise.
4732 * common/buffer.h: Likewise.
4733 * common/vec.h: Likewise.
4734 * i386bsd-nat.c: Likewise.
4735 * nat/linux-btrace.h: Likewise.
4736 * ppcfbsd-nat.c: Likewise.
4737 * ppcnbsd-tdep.h: Likewise.
4738 * ppcobsd-nat.c: Likewise.
4739 * ppcobsd-tdep.h: Likewise.
4740 * python/py-gdb-readline.c: Likewise.
4741
4742 2014-08-07 Gary Benson <gbenson@redhat.com>
4743
4744 * common/common-defs.h: Include stdarg.h.
4745 * defs.h: Do not include stdarg.h.
4746 * ada-lang.c: Likewise.
4747 * common/common-utils.h: Likewise.
4748 * guile/scm-string.c: Likewise.
4749 * guile/scm-utils.c: Likewise.
4750 * m32c-tdep.c: Likewise.
4751
4752 2014-08-07 Gary Benson <gbenson@redhat.com>
4753
4754 * common/common-defs.h: Include stdlib.h.
4755 * defs.h: Do not include stdlib.h.
4756 * addrmap.c: Likewise.
4757 * bcache.c: Likewise.
4758 * common/buffer.c: Likewise.
4759 * common/common-utils.c: Likewise.
4760 * cp-name-parser.y: Likewise.
4761 * go32-nat.c: Likewise.
4762 * mn10300-linux-tdep.c: Likewise.
4763 * nat/linux-osdata.c: Likewise.
4764 * tui/tui.c: Likewise.
4765 * windows-nat.c: Likewise.
4766
4767 2014-08-07 Gary Benson <gbenson@redhat.com>
4768
4769 * common/common-defs.h: Include stdio.h.
4770 * defs.h: Do not include stdio.h.
4771 * ada-lang.c: Likewise.
4772 * common/buffer.c: Likewise.
4773 * common/common-utils.c: Likewise.
4774 * cp-name-parser.y: Likewise.
4775 * gnu-nat.c: Likewise.
4776 * go32-nat.c: Likewise.
4777 * i386gnu-nat.c: Likewise.
4778 * proc-api.c: Likewise.
4779 * proc-events.c: Likewise.
4780 * proc-flags.c: Likewise.
4781 * proc-why.c: Likewise.
4782 * python/python-internal.h: Likewise.
4783 * target-memory.c: Likewise.
4784 * tui/tui-io.c: Likewise.
4785 * tui/tui.c: Likewise.
4786
4787 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4788
4789 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4790 (scan_dyntag_auxv): Same.
4791
4792 2014-08-06 Yao Qi <yao@codesourcery.com>
4793
4794 * amd64-linux-nat.c: Remove duplicated include
4795 "x86-linux-nat.h".
4796 * i386-linux-nat.c: Likewise.
4797
4798 2014-08-06 Yao Qi <yao@codesourcery.com>
4799
4800 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4801 operand" with "Special opcode" in comments.
4802
4803 2014-08-05 Gary Benson <gbenson@redhat.com>
4804
4805 * interps.c (initialize_interps): Remove prototype.
4806 (interpreter_initialized): Remove static global.
4807 (interp_add): Do not call initialize_interps.
4808 (initialize_interps): Remove function.
4809
4810 2014-08-05 Gary Benson <gbenson@redhat.com>
4811
4812 * utils.c (vwarning): Remove spurious va_end.
4813
4814 2014-08-05 Alan Modra <amodra@gmail.com>
4815
4816 * charset.c (convert_between_encodings): Cast result of obstack_base.
4817 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4818 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4819 (read_unwind_info): Use size_t for some locals.
4820 * jit.c (finalize_symtab): Likewise.
4821 * utils.c (hashtab_obstack_allocate): Likewise.
4822 * symmisc.c (print_objfile_statistics): Update format strings.
4823
4824 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4825
4826 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4827 (Changes in GDB 7.8): ... here.
4828
4829 2014-08-04 Tom Tromey <tromey@redhat.com>
4830
4831 * target.c (set_targetdebug): New function.
4832 (initialize_targets): Pass set_targetdebug when creating "set
4833 debug target".
4834
4835 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4836
4837 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4838 if detecting a variable-sized field that is not the last field.
4839 Fix struct type length computation.
4840
4841 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4842
4843 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4844 Add debug trace.
4845
4846 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4847
4848 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4849 Remove "+ 8" offset in computation of CHAIN_VMA.
4850
4851 2014-07-31 Doug Evans <dje@google.com>
4852
4853 * inflow.c (child_terminal_inferior): Add comment.
4854 (child_terminal_ours_for_output): Add comment.
4855 (child_terminal_ours): Add comment.
4856 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4857 (linux_nat_terminal_ours): Add comment.
4858
4859 2014-07-31 Gary Benson <gbenson@redhat.com>
4860
4861 * common/btrace-common.h: Do not include defs.h or server.h.
4862 * nat/mips-linux-watch.h: Likewise.
4863 * gdb-dlfcn.h: Do not include defs.h.
4864 * tracefile.h: Likewise.
4865
4866 2014-07-30 Roland McGrath <mcgrathr@google.com>
4867
4868 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4869
4870 2014-07-30 Tom Tromey <tromey@redhat.com>
4871
4872 * bsd-kvm.c (bsd_kvm_open): Constify.
4873 * corelow.c (core_open): Constify.
4874 * ctf.c (ctf_open): Constify.
4875 * dbug-rom.c (dbug_open): Constify.
4876 * exec.c (exec_open): Constify.
4877 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4878 * microblaze-rom.c (picobug_open): Constify.
4879 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4880 Constify.
4881 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4882 * record-btrace.c (record_btrace_open): Constify.
4883 * record-full.c (record_full_core_open_1, record_full_open_1)
4884 (record_full_open): Constify.
4885 * remote-m32r-sdi.c (m32r_open): Constify.
4886 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4887 (rockhopper_open, lsi_open): Constify.
4888 * remote-sim.c (gdbsim_open): Constify.
4889 * remote.c (remote_open, extended_remote_open, remote_open_1):
4890 Constify.
4891 * target.h (struct target_ops) <to_open>: Make "arg" const.
4892 * tracefile-tfile.c (tfile_open): Constify.
4893
4894 2014-07-30 Tom Tromey <tromey@redhat.com>
4895
4896 * breakpoint.c (map_breakpoint_numbers): Update.
4897 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4898 (get_number_const): New function.
4899 (get_number): Rewrite using get_number_const.
4900 (init_number_or_range): Make "string" const.
4901 (number_is_in_list): Make "list" const.
4902 * cli/cli-utils.h (get_number_const): Declare.
4903 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4904 (init_number_or_range, number_is_in_list): Update.
4905 * printcmd.c (map_display_numbers): Update.
4906 * value.c (value_from_history_ref): Constify.
4907 * value.h (value_from_history_ref): Update.
4908
4909 2014-07-30 Tom Tromey <tromey@redhat.com>
4910
4911 * corefile.c (hook_type, call_extra_exec_file_hooks)
4912 (specify_exec_file_hook): Constify.
4913 * exec.c (exec_file_attach): Make "filename" const.
4914 * gdbcore.h (deprecated_exec_file_display_hook)
4915 (specify_exec_file_hook, exec_file_attach): Constify.
4916 * main.c (captured_main): Use catch_command_errors_const.
4917
4918 2014-07-30 Tom Tromey <tromey@redhat.com>
4919
4920 * target.c (open_target): New function.
4921 (add_target_with_completer, add_deprecated_target_alias): Use
4922 set_cmd_sfunc, set_cmd_context.
4923 (debug_to_open): Remove.
4924 (setup_target_debug): Update.
4925
4926 2014-07-30 Yao Qi <yao@codesourcery.com>
4927
4928 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4929 comments.
4930 * parse.c (exp_iterate): Update comments.
4931
4932 2014-07-30 Gary Benson <gbenson@redhat.com>
4933
4934 * common/common-defs.h: New file.
4935 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4936 * defs.h: Include common-defs.h.
4937 Do not include config.h or build-gnulib/config.h.
4938
4939 2014-07-30 Gary Benson <gbenson@redhat.com>
4940
4941 * common/common-utils.h: Do not include config.h.
4942 * nat/linux-btrace.h: Likewise.
4943
4944 2014-07-30 Gary Benson <gbenson@redhat.com>
4945
4946 * btrace.c: Include defs.h.
4947 * common/ptid.c: Include defs.h or server.h as appropriate.
4948 * nat/mips-linux-watch.c: Likewise.
4949
4950 2014-07-29 Tom Tromey <tromey@redhat.com>
4951
4952 * target.c (target_is_pushed): Simplify.
4953
4954 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4955
4956 GDB 7.8 released.
4957
4958 2014-07-29 Yao Qi <yao@codesourcery.com>
4959
4960 PR gdb/17206
4961 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4962
4963 2014-07-28 Doug Evans <xdje42@gmail.com>
4964
4965 PR guile/17203
4966 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4967 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4968 parameters.
4969
4970 2014-07-28 Will Newton <will.newton@linaro.org>
4971
4972 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4973 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4974 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4975 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4976 (THUMB2_EABI_SYSCALL): Likewise.
4977 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4978 struct tramp_frame.
4979 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4980 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4981
4982 2014-07-27 Doug Evans <xdje42@gmail.com>
4983
4984 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4985
4986 2014-07-27 Doug Evans <xdje42@gmail.com>
4987
4988 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4989
4990 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4991 Doug Evans <xdje42@gmail.com>
4992
4993 PR guile/17146
4994 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4995 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4996 * configure.ac: Try to use guild to compile an scm file, if it fails
4997 then disable guile support.
4998 * configure: Regenerate.
4999 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5000 GUILE_FILE_LIST.
5001 (GUILE_COMPILED_FILES): New variable.
5002 (GUILE_FILES) Update.
5003 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5004 (stamp-guile): Compile scm files.
5005 * guile/guile.c (boot_guile_support): New function.
5006 (standard_throw_args_p): New function.
5007 (print_standard_throw_error, print_throw_error): New functions.
5008 (handle_boot_error): New function.
5009 (initialize_scheme_side): Rewrite to call boot_guile_support.
5010 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5011 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5012
5013 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5014 Doug Evans <xdje42@gmail.com>
5015
5016 PR guile/17146
5017 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5018 * guile/lib/gdb/support.scm: New file.
5019 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5020 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5021 All uses updated.
5022 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5023 All uses updated.
5024 (%assert-type): Ditto, and renamed to assert-type.
5025 (%exception-print-style): Delete.
5026
5027 2014-07-26 Doug Evans <xdje42@gmail.com>
5028
5029 PR build/17105
5030 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5031 * configure: Regenerate.
5032 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5033 PYTHON_FILES.
5034 (PYTHON_FILES): New variable.
5035 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5036 (GUILE_FILES): New variable.
5037 (stamp-python, install-python, uninstall-python): Handle empty
5038 file list.
5039 (stamp-guile, install-guile, uninstall-guile): Ditto.
5040
5041 2014-07-26 Doug Evans <xdje42@gmail.com>
5042
5043 PR guile/17177
5044 * guile/lib/gdb.scm (pretty-printers): Export.
5045 (set-pretty-printers!): Export.
5046 * guile/lib/gdb/printing.scm (gdb module): Update.
5047 (prepend-pretty-printer!, append-pretty-printer!): Update.
5048 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5049 (pretty_printer_list_var): Delete.
5050 (pretty_printer_list): New static global.
5051 (gdbscm_pretty_printers): New function.
5052 (gdbscm_set_pretty_printers_x): New function.
5053 (ppscm_find_pretty_printer_from_gdb): Update.
5054 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5055 (gdbscm_initialize_pretty_printers): Update.
5056
5057 2014-07-26 Doug Evans <xdje42@gmail.com>
5058
5059 PR 17185
5060 * configure.ac: Add check for header gc/gc.h.
5061 Add check for function setenv.
5062 * configure: Regenerate.
5063 * config.in: Regenerate.
5064 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5065
5066 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5067
5068 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5069 variation in gdbarch matching.
5070
5071 2014-07-25 Tom Tromey <tromey@redhat.com>
5072
5073 * exec.c (using_exec_ops): Remove.
5074 (exec_close_1): Update. Remove extraneous block, reindent.
5075 (add_target_sections): Use target_is_pushed.
5076
5077 2014-07-25 Pedro Alves <palves@redhat.com>
5078
5079 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5080 * monitor.c (monitor_create_inferior): Likewise.
5081 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5082 * remote-sim.c (gdbsim_create_inferior): Likewise.
5083 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5084 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5085 * windows-nat.c (do_initial_windows_stuff): Likewise.
5086
5087 2014-07-25 Pedro Alves <palves@redhat.com>
5088
5089 * NEWS: Mention signal passing and "signal" command changes.
5090 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5091 comment.
5092 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5093 call.
5094 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5095 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5096 (jump_command): Adjust clear_proceed_status call.
5097 (signal_command): Warn if other thread that are resumed have
5098 signals that will be delivered. Adjust clear_proceed_status call.
5099 (until_next_command, finish_command)
5100 (proceed_after_attach_callback, attach_command_post_wait)
5101 (attach_command): Adjust clear_proceed_status call.
5102 * infrun.c (proceed_after_vfork_done): Likewise.
5103 (proceed_after_attach_callback): Adjust comment.
5104 (clear_proceed_status_thread): Clear stop_signal if not in pass
5105 state.
5106 (clear_proceed_status_callback): Delete.
5107 (clear_proceed_status): New 'step' parameter. Only clear the
5108 proceed status of threads the command being prepared is about to
5109 resume.
5110 (proceed): If passed in an explicit signal, override stop_signal
5111 with it. Don't pass the last stop signal to the thread we're
5112 resuming.
5113 (init_wait_for_inferior): Adjust clear_proceed_status call.
5114 (switch_back_to_stepped_thread): Clear the signal if it should not
5115 be passed.
5116 * infrun.h (clear_proceed_status): New 'step' parameter.
5117 (user_visible_resume_ptid): Add comment.
5118 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5119 signal is in pass state.
5120 * remote.c (append_pending_thread_resumptions): Likewise.
5121 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5122
5123 2014-07-25 Tom Tromey <tromey@redhat.com>
5124
5125 * target.h (target_stopped_data_address)
5126 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5127 parentheses.
5128
5129 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5130
5131 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5132 comments.
5133 (avr_pointer_to_address): Likewise.
5134
5135 2014-07-24 Tom Tromey <tromey@redhat.com>
5136
5137 * monitor.c (compile_pattern): Update.
5138 * target.h (struct target_ops) <to_shortname, to_longname,
5139 to_doc>: Now const.
5140
5141 2014-07-24 Tom Tromey <tromey@redhat.com>
5142
5143 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5144 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5145 (add_info_alias, add_com): Make "doc" const.
5146 (print_doc_line): Make "str" const.
5147 (delete_cmd): Update.
5148 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5149 (print_doc_line): Update.
5150 * cli/cli-script.c (document_command): Update.
5151 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5152 (add_com, add_info, add_info_alias): Update.
5153 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5154 * python/py-cmd.c (cmdpy_destroyer): Update.
5155
5156 2014-07-24 Tom Tromey <tromey@redhat.com>
5157
5158 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5159 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5160 (help_cmd_list): Constify.
5161 (lookup_cmd): Update.
5162 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5163 const.
5164 (help_cmd_list, apropos_cmd): Update.
5165 * cli/cli-script.c (show_user): Update.
5166 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5167 * cli/cli-setshow.h (cmd_show_list): Update.
5168 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5169 (cmd_show_list): Update.
5170 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5171 * python/py-cmd.c (cmdpy_destroyer): Update.
5172
5173 2014-07-24 Tom Tromey <tromey@redhat.com>
5174
5175 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5176 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5177 const.
5178 * command.h (deprecate_cmd): Update.
5179 * maint.c (maintenance_do_deprecate): Add casts.
5180
5181 2014-07-24 Tom Tromey <tromey@redhat.com>
5182
5183 * cli/cli-decode.c (help_cmd): Make parameter "const".
5184 * cli/cli-decode.h (help_cmd): Update.
5185
5186 2014-07-24 Tom Tromey <tromey@redhat.com>
5187
5188 * stack.c (up_silently_base, down_silently_base): Make argument
5189 const.
5190
5191 2014-07-24 Tom Tromey <tromey@redhat.com>
5192
5193 * solib.c (solib_add): Make "pattern" const.
5194 * solib.h (solib_add): Update.
5195
5196 2014-07-24 Tom Tromey <tromey@redhat.com>
5197
5198 * remote.c (remote_serial_open, print_packet, putpkt)
5199 (putpkt_binary): Constify.
5200 * remote.h (putpkt): Update.
5201
5202 2014-07-24 Tom Tromey <tromey@redhat.com>
5203
5204 * monitor.c (monitor_open): Make "args" const.
5205 * monitor.h (monitor_open): Update.
5206
5207 2014-07-24 Tom Tromey <tromey@redhat.com>
5208
5209 * maint.c (match_bfd_flags): Make "string" const.
5210 (print_bfd_section_info): Remove casts.
5211 (print_objfile_section_info): Make "string" const.
5212
5213 2014-07-24 Tom Tromey <tromey@redhat.com>
5214
5215 * inf-child.c (inf_child_open_target): Make "arg" const.
5216 * inf-child.h (inf_child_open_target): Update.
5217
5218 2014-07-24 Tom Tromey <tromey@redhat.com>
5219
5220 * environ.c (unset_in_environ): Make "var" const.
5221 * environ.h (unset_in_environ): Update.
5222
5223 2014-07-24 Tom Tromey <tromey@redhat.com>
5224
5225 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5226 Make "cmd" const.
5227 (scan_filename_with_cleanup): Likewise.
5228 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5229 Make arguments const.
5230 (restore_command): Update.
5231
5232 2014-07-24 Pedro Alves <palves@redhat.com>
5233
5234 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5235
5236 2014-07-24 Tom Tromey <tromey@redhat.com>
5237 Gary Benson <gbenson@redhat.com>
5238
5239 * nat/linux-ptrace.c (additional_flags): New global.
5240 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5241 additional_flags; don't check GDBSERVER.
5242 (linux_ptrace_set_additional_flags): New function.
5243 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5244 Declare.
5245 * linux-nat.c (_initialize_linux_nat): Call
5246 linux_ptrace_set_additional_flags.
5247
5248 2014-07-24 Tom Tromey <tromey@redhat.com>
5249
5250 * make-target-delegates (munge_type, write_debugmethod): New
5251 functions.
5252 (debug_names): New global.
5253 ($TARGET_DEBUG_PRINTER): New global.
5254 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5255 name.
5256 Write debug methods. Generate init_debug_target.
5257 * target-debug.h: New file.
5258 * target-delegates.c: Rebuild.
5259 * target.c: Include target-debug.h.
5260 (debug_target): Hoist definition.
5261 (target_kill, target_get_section_table, target_memory_map)
5262 (target_flash_erase, target_flash_done, target_detach)
5263 (target_disconnect, target_wait, target_resume)
5264 (target_pass_signals, target_program_signals, target_follow_fork)
5265 (target_mourn_inferior, target_search_memory)
5266 (target_thread_address_space, target_close)
5267 (target_find_new_threads, target_core_of_thread)
5268 (target_verify_memory, target_insert_mask_watchpoint)
5269 (target_remove_mask_watchpoint): Remove targetdebug code.
5270 (debug_to_post_attach, debug_to_prepare_to_store)
5271 (debug_to_files_info, debug_to_insert_breakpoint)
5272 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5273 (debug_to_region_ok_for_hw_watchpoint)
5274 (debug_to_can_accel_watchpoint_condition)
5275 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5276 (debug_to_watchpoint_addr_within_range)
5277 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5278 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5279 (debug_to_terminal_init, debug_to_terminal_inferior)
5280 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5281 (debug_to_terminal_save_ours, debug_to_terminal_info)
5282 (debug_to_load, debug_to_post_startup_inferior)
5283 (debug_to_insert_fork_catchpoint)
5284 (debug_to_remove_fork_catchpoint)
5285 (debug_to_insert_vfork_catchpoint)
5286 (debug_to_remove_vfork_catchpoint)
5287 (debug_to_insert_exec_catchpoint)
5288 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5289 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5290 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5291 (setup_target_debug): Call init_debug_target.
5292 * target.h (TARGET_DEBUG_PRINTER): New macro.
5293 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5294 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5295
5296 2014-07-24 Gary Benson <gbenson@redhat.com>
5297
5298 * exceptions.h (throw_vfatal): Renamed to...
5299 (throw_vquit): New declaration.
5300 (throw_quit): Likewise.
5301 * exceptions.c (throw_vfatal): Renamed to...
5302 (throw_vquit): New function.
5303 (throw_quit): Likewise.
5304 (throw_error): Call throw_verror rather than throw_it.
5305 * utils.h (vfatal): Removed.
5306 (fatal): Likewise.
5307 * utils.c (vfatal): Removed.
5308 (fatal): Likewise.
5309 (internal_verror): Replaced call to fatal with call to throw_quit.
5310 (quit): Replaced calls to fatal with calls to throw_quit.
5311
5312 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5313
5314 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5315 target_read_code.
5316
5317 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5318
5319 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5320 less than zero in conditional expression.
5321
5322 2014-07-23 Tom Tromey <tromey@redhat.com>
5323
5324 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5325 ($INTRO_PART): Don't match whitespace.
5326 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5327 argument matching.
5328 ($METHOD): Add $METHOD_TRAILER.
5329 (trim): Rewrite.
5330 (scan_target_h): New sub.
5331 Change main loop not to collect state.
5332 * target-delegates.c: Rebuild.
5333
5334 2014-07-23 Gary Benson <gbenson@redhat.com>
5335
5336 * cp-support.c (gdb_demangle): Fix build on systems without
5337 sigaltstack.
5338
5339 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5340
5341 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5342 for reference entry value target data value.
5343
5344 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5345
5346 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5347 value_available_contents_eq.
5348
5349 2014-07-22 Pedro Alves <palves@redhat.com>
5350
5351 * value.c (allocate_optimized_out_value): Don't mark value as
5352 non-lazy.
5353
5354 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5355
5356 * MAINTAINERS (Write After Approval): Update my email address.
5357
5358 2014-07-20 Doug Evans <dje@google.com>
5359
5360 PR server/17147
5361 * remote.c (putpkt_binary): Add text to error message.
5362
5363 2014-07-20 Yao Qi <yao@codesourcery.com>
5364
5365 * eval.c: Remove "Chill" from comments.
5366 * gdbtypes.h: Likewise.
5367 * symtab.h: Likewise.
5368
5369 2014-07-20 Yao Qi <yao@codesourcery.com>
5370
5371 * std-operator.def: Update comments to TERNOP_SLICE.
5372
5373 2014-07-20 Yao Qi <yao@codesourcery.com>
5374
5375 * std-operator.def: Remove BINOP_RANGE.
5376 * breakpoint.c (watchpoint_exp_is_const): Update.
5377 * expprint.c (dump_subexp_body_standard): Likewise.
5378 * eval.c (init_array_element): Remove dead code.
5379 (evaluate_subexp_standard): Likewise.
5380
5381 2014-07-20 Yao Qi <yao@codesourcery.com>
5382
5383 * std-operator.def: Remove BINOP_IN.
5384 * breakpoint.c (watchpoint_exp_is_const): Update.
5385 * eval.c (evaluate_subexp_standard): Likewise.
5386 * expprint.c (dump_subexp_body_standard): Likewise.
5387
5388 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5389
5390 * microblaze-tdep.c (microblaze_register_names): Add
5391 the rshr and rslr register names.
5392 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5393 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5394 Use of tdesc_numbered_register. Use of
5395 microblaze_register_g_packet_guesses. Use of
5396 tdesc_use_registers. Use of set_gdbarch_register_type.
5397 (microblaze_register_g_packet_guesses): New.
5398 * microblaze-tdep.h (microblaze_reg_num): Add
5399 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5400 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5401 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5402 * features/microblaze-core.xml: New file.
5403 * features/microblaze-stack-protect.xml: New file.
5404 * features/microblaze-with-stack-protect.c: New file.
5405 * features/microblaze-with-stack-protect.xml: New file.
5406 * features/microblaze.xml: New file.
5407 * features/microblaze.c: New file.
5408 * features/Makefile (microblaze-with-stack-protect): Add
5409 microblaze-with-stack-protect microblaze and microblaze-expedite.
5410 * regformats/microblaze-with-stack-protect.dat: New file.
5411 * regformats/microblaze.dat: New file.
5412 * doc/gdb.texinfo (MicroBlaze Features): Added.
5413
5414 2014-07-18 Tom Tromey <tromey@redhat.com>
5415
5416 * exec.c (exec_ops): Now static.
5417 * exec.h (exec_ops): Don't declare.
5418
5419 2014-07-18 Tom Tromey <tromey@redhat.com>
5420
5421 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5422 to find_target_beneath.
5423 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5424 find_target_beneath.
5425 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5426
5427 2014-07-18 Tom Tromey <tromey@redhat.com>
5428
5429 PR gdb/17130:
5430 * utils.c (quit): Use target_supports_terminal_ours.
5431 * target.h (target_supports_terminal_ours): Declare.
5432 * target.c (target_supports_delete_record): Don't check
5433 to_delete_record against NULL.
5434 (target_supports_terminal_ours): New function.
5435
5436 2014-07-18 Tom Tromey <tromey@redhat.com>
5437
5438 PR gdb/17130:
5439 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5440 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5441 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5442 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5443 * windows-nat.c (windows_xfer_partial): Always delegate.
5444 * record-btrace.c (record_btrace_xfer_partial): Simplify
5445 delegation.
5446 (record_btrace_fetch_registers, record_btrace_store_registers)
5447 (record_btrace_prepare_to_store, record_btrace_resume)
5448 (record_btrace_wait, record_btrace_find_new_threads)
5449 (record_btrace_thread_alive): Likewise.
5450 * procfs.c (procfs_xfer_partial): Always delegate.
5451 * corelow.c (core_xfer_partial): Always delegate.
5452 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5453
5454 2014-07-18 Tom Tromey <tromey@redhat.com>
5455
5456 * exec.c (exec_make_note_section): Move earlier.
5457
5458 2014-07-17 Doug Evans <dje@google.com>
5459
5460 PR gdb/17170
5461 * maint.c (count_symtabs_and_blocks): Handle NULL
5462 current_program_space.
5463 (report_command_stats): Check global enabled flag in addition to
5464 recorded enabled flag.
5465 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5466
5467 2014-07-16 Pedro Alves <palves@redhat.com>
5468
5469 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5470
5471 2014-07-16 Tom Tromey <tromey@redhat.com>
5472
5473 * target.h (struct target_ops) <to_delete_record>: Reformat
5474 comment.
5475
5476 2014-07-16 Tom Tromey <tromey@redhat.com>
5477
5478 * target-delegates.c: Rebuild.
5479
5480 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5481
5482 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5483 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5484 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5485 (avr_pointer_to_address): Likewise.
5486 (avr_address_class_type_flags): New function.
5487 (avr_address_class_type_flags_to_name): Likewise.
5488 (avr_address_class_name_to_type_flags): Likewise.
5489 (avr_gdbarch_init): Set address_class_type_flags,
5490 address_class_type_flags_to_name and
5491 address_class_name_to_type_flags.
5492
5493 2014-07-15 Pedro Alves <palves@redhat.com>
5494
5495 * linux-nat.c (kill_callback): Save errno and work with saved
5496 copy.
5497
5498 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5499
5500 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5501
5502 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5503
5504 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5505 breakpoint support correctly.
5506
5507 2014-07-14 Pedro Alves <palves@redhat.com>
5508
5509 * utils.c (prompt_for_continue): Call target_terminal_ours.
5510
5511 2014-07-14 Pedro Alves <palves@redhat.com>
5512
5513 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5514 catch_errors. Don't re-enable stdin or notify observers where,
5515 and rethrow error.
5516 (fetch_inferior_event_wrapper): Delete.
5517
5518 2014-07-14 Pedro Alves <palves@redhat.com>
5519
5520 PR gdb/17072
5521 * top.c: Include "inf-loop.h".
5522 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5523 field.
5524 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5525 was async before.
5526 (gdb_readline_wrapper): Store whether the target is async, and
5527 make it sync.
5528
5529 2014-07-14 Pedro Alves <palves@redhat.com>
5530
5531 PR gdb/17072
5532 * top.c (gdb_readline_wrapper_line): Tweak comment.
5533 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5534 the input handler callback.
5535
5536 2014-07-14 Pedro Alves <palves@redhat.com>
5537
5538 PR gdb/17072
5539 * main.c: Include event-top.h.
5540 (handle_command_errors): New function.
5541 (catch_command_errors, catch_command_errors_const): Use it.
5542
5543 2014-07-14 Pedro Alves <palves@redhat.com>
5544
5545 * exceptions.c (catch_command_errors, catch_command_errors_const):
5546 Moved to main.c.
5547 * exceptions.h (catch_command_errors_ftype)
5548 (catch_command_errors_const_ftype): Moved to main.c.
5549 (catch_command_errors, catch_command_errors_const): Delete
5550 declarations.
5551 * main.c (catch_command_errors_ftype)
5552 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5553 (catch_command_errors, catch_command_errors_const)): Moved here
5554 from exceptions.c and make static.
5555
5556 2014-07-14 Pedro Alves <palves@redhat.com>
5557
5558 * exceptions.c (print_any_exception): Delete.
5559 (catch_exceptions_with_msg): Use exception_print instead of
5560 print_any_exception.
5561 (catch_errors): Use exception_fprintf instead of
5562 print_any_exception.
5563 (catch_command_errors, catch_command_errors_const): Use
5564 exception_print instead of print_any_exception.
5565
5566 2014-07-14 Pedro Alves <palves@redhat.com>
5567
5568 * infcall.c (run_inferior_call): Set 'sync_execution' while
5569 running the inferior call.
5570
5571 2014-07-14 Pedro Alves <palves@redhat.com>
5572
5573 * value.c (value_contents_equal): Delete function.
5574 * value.h (value_contents_equal): Delete declaration.
5575
5576 2014-07-14 Tom Tromey <tromey@redhat.com>
5577
5578 PR exp/17106:
5579 * gdbtypes.c (is_dynamic_type_internal): New function, from
5580 is_dynamic_type.
5581 (is_dynamic_type): Rewrite.
5582 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5583 (resolve_dynamic_struct): Likewise.
5584 (resolve_dynamic_type_internal): New function, from
5585 resolve_dynamic_type.
5586 (resolve_dynamic_type): Rewrite.
5587
5588 2014-07-14 Tom Tromey <tromey@redhat.com>
5589
5590 * target.c (target_require_runnable): Also check record_stratum.
5591 Update comment.
5592
5593 2014-07-11 Yao Qi <yao@codesourcery.com>
5594
5595 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5596 thumb_instruction_restores_sp return true.
5597
5598 2014-07-11 Yao Qi <yao@codesourcery.com>
5599
5600 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5601 (thumb_in_function_epilogue_p): Call
5602 thumb_instruction_restores_sp.
5603
5604 2014-07-11 Yao Qi <yao@codesourcery.com>
5605
5606 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5607 'add sp, #imm'.
5608 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5609
5610 2014-07-11 Gary Benson <gbenson@redhat.com>
5611
5612 * amd64-linux-nat.c (gdbcore.h): Remove include.
5613 (regset.h): Likewise.
5614 (nat/linux-btrace.h): Likewise.
5615 (btrace.h): Likewise.
5616 (gdb_assert.h): Likewise.
5617 (string.h): Likewise.
5618 (sys/uio.h): Likewise.
5619 (sys/debugreg.h): Likewise.
5620 (sys/syscall.h): Likewise.
5621 (sys/procfs.h): Likewise.
5622 (sys/user.h): Likewise.
5623 (asm/ptrace.h): Likewise.
5624 (i386-nat.h): Likewise.
5625 * i386-linux-nat.c (i386-nat.h): Likewise.
5626 (regset.h): Likewise.
5627 (target.h): Likewise.
5628 (linux-nat.h): Likewise.
5629 (nat/linux-btrace.h): Likewise.
5630 (btrace.h): Likewise.
5631 (gdb_assert.h): Likewise.
5632 (string.h): Likewise.
5633 (sys/uio.h): Likewise.
5634 (sys/user.h): Likewise.
5635 (sys/procfs.h): Likewise.
5636 (sys/reg.h): Likewise.
5637 (sys/debugreg.h): Likewise.
5638 (ORIG_EAX): Remove definition.
5639
5640 2014-07-11 Gary Benson <gbenson@redhat.com>
5641
5642 * i386-linux-nat.h: New file.
5643 * x86-linux-nat.h: Likewise.
5644 * x86-linux-nat.c: Likewise.
5645 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5646 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5647 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5648 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5649 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5650 (PTRACE_SETREGSET): Likewise.
5651 (arch_lwp_info): Now in x86-linux-nat.c.
5652 (have_ptrace_getregset): Now in x86-linux-nat.h.
5653 (x86_linux_dr_get): Now in x86-linux-nat.c.
5654 (x86_linux_dr_set): Likewise.
5655 (x86_linux_dr_get_addr): Likewise.
5656 (x86_linux_dr_get_control): Likewise.
5657 (x86_linux_dr_get_status): Likewise.
5658 (update_debug_registers_callback): Likewise.
5659 (x86_linux_dr_set_control): Likewise.
5660 (x86_linux_dr_set_addr): Likewise.
5661 (x86_linux_prepare_to_resume): Likewise.
5662 (x86_linux_new_thread): Likewise.
5663 (x86_linux_new_fork): Likewise.
5664 (x86_linux_get_thread_area): Likewise.
5665 (super_post_startup_inferior): Likewise.
5666 (x86_linux_child_post_startup_inferior): Likewise.
5667 (AMD64_LINUX_USER64_CS): Likewise.
5668 (AMD64_LINUX_X32_DS): Likewise.
5669 (x86_linux_read_description): Likewise.
5670 (x86_linux_enable_btrace): Likewise.
5671 (x86_linux_disable_btrace): Likewise.
5672 (x86_linux_teardown_btrace): Likewise.
5673 (x86_linux_read_btrace): Likewise.
5674 (x86_linux_create_target): Likewise.
5675 (x86_linux_add_target): Likewise.
5676 * i386-linux-nat.c (x86-linux-nat.h): New include.
5677 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5678 (PTRACE_SETREGSET): Likewise.
5679 (arch_lwp_info): Now in x86-linux-nat.c.
5680 (have_ptrace_getregset): Now in x86-linux-nat.h.
5681 (x86_linux_dr_get): Now in x86-linux-nat.c.
5682 (x86_linux_dr_set): Likewise.
5683 (x86_linux_dr_get_addr): Likewise.
5684 (x86_linux_dr_get_control): Likewise.
5685 (x86_linux_dr_get_status): Likewise.
5686 (update_debug_registers_callback): Likewise.
5687 (x86_linux_dr_set_control): Likewise.
5688 (x86_linux_dr_set_addr): Likewise.
5689 (x86_linux_prepare_to_resume): Likewise.
5690 (x86_linux_new_thread): Likewise.
5691 (x86_linux_new_fork): Likewise.
5692 (x86_linux_get_thread_area): Likewise.
5693 (super_post_startup_inferior): Likewise.
5694 (x86_linux_child_post_startup_inferior): Likewise.
5695 (AMD64_LINUX_USER64_CS): Likewise.
5696 (AMD64_LINUX_X32_DS): Likewise.
5697 (x86_linux_read_description): Likewise.
5698 (x86_linux_enable_btrace): Likewise.
5699 (x86_linux_disable_btrace): Likewise.
5700 (x86_linux_teardown_btrace): Likewise.
5701 (x86_linux_read_btrace): Likewise.
5702 (x86_linux_create_target): Likewise.
5703 (x86_linux_add_target): Likewise.
5704
5705 2014-07-11 Gary Benson <gbenson@redhat.com>
5706
5707 * amd64-linux-nat.c: Comment and whitespace changes.
5708 * i386-linux-nat.c: Comment and whitespace changes.
5709
5710 2014-07-11 Gary Benson <gbenson@redhat.com>
5711
5712 * amd64-linux-nat.c (x86_linux_create_target): New function.
5713 (x86_linux_add_target): Likewise.
5714 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5715 * i386-linux-nat.c (x86_linux_create_target): New function.
5716 (x86_linux_add_target): Likewise.
5717 (_initialize_i386_linux_nat): Delegate to the above new functions.
5718
5719 2014-07-11 Gary Benson <gbenson@redhat.com>
5720
5721 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5722 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5723 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5724 (ps_get_thread_area): Delegate to the above.
5725
5726 2014-07-11 Gary Benson <gbenson@redhat.com>
5727
5728 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5729 x86_linux_read_description. All uses updated. amd64-specific
5730 code conditionalized. Conditionalized i386-specific code added.
5731 Redundant cast removed.
5732 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5733 x86_linux_read_description. All uses updated. i386-specific
5734 code conditionalized. Conditionalized amd64-specific code added.
5735 One sizeof replaced with the actual type it is describing.
5736
5737 2014-07-11 Gary Benson <gbenson@redhat.com>
5738
5739 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5740 x86_linux_dr_get. All uses updated.
5741 (amd64_linux_dr_set): Renamed to
5742 x86_linux_dr_set. All uses updated.
5743 (amd64_linux_dr_get_addr): Renamed to
5744 x86_linux_dr_get_addr. All uses updated.
5745 (amd64_linux_dr_get_control): Renamed to
5746 x86_linux_dr_get_control. All uses updated.
5747 (amd64_linux_dr_get_status): Renamed to
5748 x86_linux_dr_get_status. All uses updated.
5749 (amd64_linux_dr_set_control): Renamed to
5750 x86_linux_dr_set_control. All uses updated.
5751 (amd64_linux_dr_set_addr): Renamed to
5752 x86_linux_dr_set_addr. All uses updated.
5753 (amd64_linux_prepare_to_resume): Renamed to
5754 x86_linux_prepare_to_resume. All uses updated.
5755 (amd64_linux_new_thread): Renamed to
5756 x86_linux_new_thread. All uses updated.
5757 (amd64_linux_new_fork): Renamed to
5758 x86_linux_new_fork. All uses updated.
5759 (amd64_linux_child_post_startup_inferior): Renamed to
5760 x86_linux_child_post_startup_inferior. All uses updated.
5761 (amd64_linux_enable_btrace): Renamed to
5762 x86_linux_enable_btrace. All uses updated.
5763 (amd64_linux_disable_btrace): Renamed to
5764 x86_linux_disable_btrace. All uses updated.
5765 (amd64_linux_teardown_btrace): Renamed to
5766 x86_linux_teardown_btrace. All uses updated.
5767 (amd64_linux_read_btrace): Renamed to
5768 x86_linux_read_btrace. All uses updated.
5769 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5770 x86_linux_dr_get. All uses updated.
5771 (i386_linux_dr_set): Renamed to
5772 x86_linux_dr_set. All uses updated.
5773 (i386_linux_dr_get_addr): Renamed to
5774 x86_linux_dr_get_addr. All uses updated.
5775 (i386_linux_dr_get_control): Renamed to
5776 x86_linux_dr_get_control. All uses updated.
5777 (i386_linux_dr_get_status): Renamed to
5778 x86_linux_dr_get_status. All uses updated.
5779 (i386_linux_dr_set_control): Renamed to
5780 x86_linux_dr_set_control. All uses updated.
5781 (i386_linux_dr_set_addr): Renamed to
5782 x86_linux_dr_set_addr. All uses updated.
5783 (i386_linux_prepare_to_resume): Renamed to
5784 x86_linux_prepare_to_resume. All uses updated.
5785 (i386_linux_new_thread): Renamed to
5786 x86_linux_new_thread. All uses updated.
5787 (i386_linux_new_fork): Renamed to
5788 x86_linux_new_fork. All uses updated.
5789 (i386_linux_child_post_startup_inferior): Renamed to
5790 x86_linux_child_post_startup_inferior. All uses updated.
5791 (i386_linux_enable_btrace): Renamed to
5792 x86_linux_enable_btrace. All uses updated.
5793 (i386_linux_disable_btrace): Renamed to
5794 x86_linux_disable_btrace. All uses updated.
5795 (i386_linux_teardown_btrace): Renamed to
5796 x86_linux_teardown_btrace. All uses updated.
5797 (i386_linux_read_btrace): Renamed to
5798 x86_linux_read_btrace. All uses updated.
5799
5800 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5801
5802 * remote.c (extended_remote_post_attach): New function.
5803 (init_extended_remote_ops): Install it as to_post_attach method.
5804
5805 2014-07-09 Pedro Alves <palves@redhat.com>
5806
5807 * infcmd.c (attach_command_post_wait): Don't call
5808 target_terminal_inferior here.
5809 (attach_command): Call it here instead.
5810
5811 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5812
5813 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5814 field.
5815 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5816 from varobj.c, with additional checks.
5817 (c_varobj_ops): Fill in is_path_expr_parent field.
5818 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5819 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5820 field.
5821 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5822 ops method.
5823 (varobj_default_is_path_expr_parent): New function.
5824 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5825 (varobj_default_is_path_expr_parent): Declare new function.
5826
5827 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5828
5829 * infcmd.c (finish_backward): Turn internal error into normal error.
5830
5831 2014-07-07 Pedro Alves <palves@redhat.com>
5832
5833 PR gdb/17096
5834 * remote.c (async_handle_remote_sigint)
5835 (async_handle_remote_sigint_twice): Call
5836 gdb_call_async_signal_handler instead of
5837 mark_async_signal_handler.
5838
5839 2014-07-07 Tom Tromey <tromey@redhat.com>
5840
5841 * target-delegates.c: Rebuild.
5842 * target.c (target_info_record): Remove.
5843 * record.c (info_record_command): Unconditionally call
5844 to_info_record.
5845 * target.h (struct target_ops) <to_info_record>: Use
5846 TARGET_DEFAULT_IGNORE.
5847 (target_info_record): Remove.
5848
5849 2014-07-07 Tom Tromey <tromey@redhat.com>
5850
5851 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5852 TARGET_DEFAULT_NORETURN.
5853 * target.c (generic_tls_error): New function.
5854 (target_translate_tls_address): Don't search target stack.
5855 * target-delegates.c: Rebuild.
5856 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5857 stack.
5858 * linux-thread-db.c (thread_db_get_thread_local_address):
5859 Unconditionally call beneath target.
5860
5861 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5862
5863 * cli/cli-logging.c (pop_output_files): Assign targerr to
5864 gdb_stdtargerr.
5865
5866 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5867
5868 * MAINTAINERS (Write After Approval): Update my email address.
5869
5870 2014-07-02 Gary Benson <gbenson@redhat.com>
5871
5872 * proc-service.c (ps_xfer_memory): Update comment.
5873 (ps_pstop): Remove unused function.
5874 (ps_pcontinue): Likewise.
5875 (ps_lstop): Likewise.
5876 (ps_lcontinue): Likewise.
5877 (ps_lgetxregsize): Likewise.
5878 (ps_lgetxregs): Likewise.
5879 (ps_lsetxregs): Likewise.
5880 (ps_plog): Likewise.
5881 (ps_ptread): Likewise.
5882 (ps_ptwrite): Likewise.
5883
5884 2014-07-01 Mark Wielaard <mjw@redhat.com>
5885
5886 * dwarf2read.c (add_array_cv_type): New function.
5887 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5888 (read_tag_volatile_type): Likewise.
5889
5890 2014-07-01 Tom Tromey <tromey@redhat.com>
5891
5892 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5893 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5894 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5895 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5896 * command.h (cmd_cfunc_ftype): Move earlier.
5897 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5898 (add_com, add_info): Use cmd_cfunc_ftype.
5899
5900 2014-06-30 Tom Tromey <tromey@redhat.com>
5901
5902 * symtab.c (operator_chars): Make parameters and return type
5903 const.
5904 (file_matches): Make "files" const.
5905 (struct search_symbols_data) <files>: Now const.
5906 (search_symbols): Make "regexp" and "files" parameters const.
5907 Update.
5908 (symtab_symbol_info): Remove cast.
5909 (rbreak_command): Update.
5910 * symtab.h (search_symbols): Update.
5911
5912 2014-06-27 Yao Qi <yao@codesourcery.com>
5913
5914 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5915 Change parameter type to 'struct thread_info *'. Caller
5916 updated.
5917 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5918 Update declaration.
5919 * dummy-frame.c (struct dummy_frame_id): New.
5920 (dummy_frame_id_eq): New function.
5921 (struct dummy_frame) <id>: Change its type to 'struct
5922 dummy_frame_id'.
5923 (dummy_frame_push): Add parameter ptid and save it in
5924 dummy_frame_id.
5925 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5926 inferior_ptid.
5927 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5928 to inferior_ptid.
5929 (lookup_dummy_frame): Change parameter type to 'struct
5930 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5931 instead of frame_id_eq.
5932 (dummy_frame_pop): Add parameter ptid. Callers updated.
5933 Update comments. Compose dummy_frame_id and pass it to
5934 lookup_dummy_frame.
5935 (dummy_frame_discard): Add parameter ptid.
5936 (dummy_frame_sniffer): Compose dummy_frame_id and call
5937 dummy_frame_id_eq instead of frame_id_eq.
5938 (fprint_dummy_frames): Print ptid.
5939 * dummy-frame.h: Remove comments.
5940 (dummy_frame_push): Add ptid in declaration.
5941 (dummy_frame_pop, dummy_frame_discard): Likewise.
5942
5943 2014-06-26 Tom Tromey <tromey@redhat.com>
5944
5945 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5946 * command.h (error_no_arg): Update.
5947
5948 2014-06-26 Tom Tromey <tromey@redhat.com>
5949
5950 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5951 (do_show_command): Make "arg" const.
5952 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5953
5954 2014-06-26 Tom Tromey <tromey@redhat.com>
5955
5956 * record-full.c (record_full_get_bookmark): Make "args" const.
5957 (record_full_goto_bookmark): Make "raw_bookmark" const.
5958 * record.c (record_goto): New function.
5959 (cmd_record_goto): Use it. Now static.
5960 * record.h (record_goto): Declare.
5961 (cmd_record_goto): Remove declaration.
5962 * target-delegates.c: Rebuild.
5963 * target.h (struct target_ops) <to_get_bookmark,
5964 to_goto_bookmark>: Make parameter const.
5965
5966 2014-06-26 Tom Tromey <tromey@redhat.com>
5967
5968 * defs.h (generic_load): Update.
5969 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5970 * monitor.c (monitor_load): Make "args" const.
5971 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5972 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5973 const.
5974 (mips_load): Make "file" const.
5975 * remote-sim.c (gdbsim_load): Make "args" const.
5976 * remote.c (remote_load): Make "name" const.
5977 * symfile.c (generic_load): Make "args" const.
5978 * target-delegates.c: Rebuild.
5979 * target.c (target_load): Make "arg" const.
5980 (debug_to_load): Make "args" const.
5981 * target.h (struct target_ops) <to_load>: Make parameter const.
5982 (target_load): Update.
5983
5984 2014-06-26 Tom Tromey <tromey@redhat.com>
5985
5986 PR symtab/16902:
5987 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5988 (dwarf2_physname, read_partial_die)
5989 (guess_partial_die_structure_name, fixup_partial_die)
5990 (guess_full_die_structure_name, anonymous_struct_prefix)
5991 (dwarf2_name): Use per-BFD obstack.
5992
5993 2014-06-26 Yao Qi <yao@codesourcery.com>
5994
5995 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5996 dummyframe and this_id into inner block below.
5997
5998 2014-06-26 Yao Qi <yao@codesourcery.com>
5999
6000 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6001 with "signal_pass[0]" in the initialization of signal_pass.
6002
6003 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6004
6005 * record-btrace.c (record_btrace_generating_corefile)
6006 (record_btrace_prepare_to_generate_core)
6007 (record_btrace_done_generating_core): New.
6008 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6009 (record_btrace_store_registers, record_btrace_prepare_to_store):
6010 Forward request when generating a core file.
6011 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6012 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6013 to_done_generating_core.
6014
6015 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6016
6017 * target.h (target_ops) <to_prepare_to_generate_core>
6018 <to_done_generating_core>: New.
6019 (target_prepare_to_generate_core, target_done_generating_core): New.
6020 * target.c (target_prepare_to_generate_core)
6021 (target_done_generating_core): New.
6022 * target-delegates.c: Regenerate.
6023 * gcore.c: (write_gcore_file): Rename to ...
6024 (write_gcore_file_1): ...this.
6025 (write_gcore_file): Call target_prepare_to_generate_core
6026 and target_done_generating_core.
6027
6028 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6029
6030 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6031 * gcore.c (write_gcore_file): Free memory returned from
6032 make_corefile_notes.
6033 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6034 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6035
6036 2014-06-24 Yao Qi <yao@codesourcery.com>
6037
6038 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6039 (arm_linux_init_abi): Set skip_trampoline_code with
6040 gdbarch_skip_trampoline_code instead of
6041 find_solib_trampoline_target.
6042
6043 2014-06-24 Yao Qi <yao@codesourcery.com>
6044
6045 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6046 arm_skip_bx_reg returns non-zero.
6047
6048 2014-06-24 Yao Qi <yao@codesourcery.com>
6049
6050 * arm-tdep.c (arm_skip_bx_reg): New function.
6051 (arm_skip_stub): Call arm_skip_bx_reg.
6052
6053 2014-06-23 Don Breazeal <donb@codesourcery.com>
6054
6055 * MAINTAINERS: Add myself as write-after-approval maintainer.
6056
6057 2014-06-23 Pedro Alves <palves@redhat.com>
6058
6059 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6060 DR_CONTROL before setting DR0..DR3.
6061 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6062 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6063 bits of DR_CONTROL related to the debug register slot being
6064 disabled. If all slots are vacant, clear local slowdown as well,
6065 and assert DR_CONTROL is 0.
6066
6067 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6068
6069 * python/lib/gdb/command/xmethods.py
6070 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6071 current progspace only if the string "progspace" matches LOCUS_RE.
6072
6073 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6074
6075 Fix --with-system-readline with readline-6.3 patch 5.
6076 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6077 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6078 types.
6079
6080 2014-06-20 Tom Tromey <tromey@redhat.com>
6081
6082 * dwarf2read.c (dw2_get_real_path): Use correct type in
6083 OBSTACK_CALLOC.
6084 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6085
6086 2014-06-20 Gary Benson <gbenson@redhat.com>
6087
6088 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6089 * common/glibc_thread_db.h: Likewise.
6090 * common/i386-cpuid.h: Likewise.
6091 * common/i386-gcc-cpuid.h: Likewise.
6092 * common/linux-btrace.h: Likewise.
6093 * common/linux-osdata.h: Likewise.
6094 * common/linux-procfs.h: Likewise.
6095 * common/linux-ptrace.h: Likewise.
6096 * common/mips-linux-watch.h: Likewise.
6097 * common/linux-btrace.c: Moved to nat.
6098 * common/linux-osdata.c: Likewise.
6099 * common/linux-procfs.c: Likewise.
6100 * common/linux-ptrace.c: Likewise.
6101 * common/mips-linux-watch.c: Likewise.
6102 * nat/gdb_thread_db.h: Moved from common.
6103 * nat/glibc_thread_db.h: Likewise.
6104 * nat/i386-cpuid.h: Likewise.
6105 * nat/i386-gcc-cpuid.h: Likewise.
6106 * nat/linux-btrace.c: Likewise.
6107 * nat/linux-btrace.h: Likewise.
6108 * nat/linux-osdata.c: Likewise.
6109 * nat/linux-osdata.h: Likewise.
6110 * nat/linux-procfs.c: Likewise.
6111 * nat/linux-procfs.h: Likewise.
6112 * nat/linux-ptrace.c: Likewise.
6113 * nat/linux-ptrace.h: Likewise.
6114 * nat/mips-linux-watch.c: Likewise.
6115 * nat/mips-linux-watch.h: Likewise.
6116 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6117 (object file files): Reordered.
6118 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6119 of glibc_thread_db.h.
6120
6121 2014-06-20 Gary Benson <gbenson@redhat.com>
6122
6123 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6124 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6125 (i386_dr_low): Likewise.
6126 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6127 (i386_dr_low_set_addr): Likewise.
6128 (i386_dr_low_get_addr): Likewise.
6129 (i386_dr_low_can_set_control): Likewise.
6130 (i386_dr_low_set_control): Likewise.
6131 (i386_dr_low_get_control): Likewise.
6132 (i386_dr_low_get_status): Likewise.
6133 (i386_get_debug_register_length): Likewise.
6134 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6135 (i386_dr_low): Likewise.
6136 * nat/i386-dregs.c (i386-low.h): Remove include.
6137 (i386-nat.h): Likewise.
6138 (nat/i386-dregs.h): New include.
6139 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6140 (i386_dr_low_set_addr): Likewise.
6141 (i386_dr_low_get_addr): Likewise.
6142 (i386_dr_low_can_set_control): Likewise.
6143 (i386_dr_low_set_control): Likewise.
6144 (i386_dr_low_get_control): Likewise.
6145 (i386_dr_low_get_status): Likewise.
6146 (i386_get_debug_register_length): Likewise.
6147 (debug_hw_points): Likewise.
6148
6149 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6150
6151 * Makefile.in (SFILES): Add d-exp.y.
6152 (YYFILES): Add d-exp.c.
6153 (YYOBJ): Add d-exp.o.
6154 (local-maintainer-clean): Delete d-exp.c.
6155 * d-exp.y: New file.
6156 * d-lang.h (d_parse): New declaration.
6157 (d_error): New declaration.
6158 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6159 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6160 PREC_ORDER operators.
6161 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6162
6163 2014-06-19 Yao Qi <yao@codesourcery.com>
6164
6165 * gdbthread.h (any_running): Remove the declaration.
6166 * thread.c (any_running): Remove.
6167
6168 2014-06-19 Yao Qi <yao@codesourcery.com>
6169
6170 * gdbthread.h (struct thread_info) <state>: Change its type to
6171 'enum thread_state'. Update comments.
6172
6173 2014-06-19 Pedro Alves <palves@redhat.com>
6174
6175 * gdbthread.h (ALL_THREADS): Delete.
6176 (ALL_NON_EXITED_THREADS): New macro.
6177 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6178 instead of ALL_THREADS.
6179 * infrun.c (find_thread_needs_step_over)
6180 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6181 instead of ALL_THREADS.
6182 * record-btrace.c (record_btrace_open)
6183 (record_btrace_stop_recording, record_btrace_close)
6184 (record_btrace_is_replaying, record_btrace_resume)
6185 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6186 * remote.c (append_pending_thread_resumptions): Likewise.
6187 * thread.c (thread_apply_all_command): Likewise.
6188
6189 2014-06-19 Gary Benson <gbenson@redhat.com>
6190
6191 * i386-nat.c (i386_stopped_by_watchpoint):
6192 Use i386_dr_stopped_by_watchpoint.
6193 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6194 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6195
6196 2014-06-19 Gary Benson <gbenson@redhat.com>
6197
6198 * nat/i386-dregs.c: New file.
6199 * Makefile.in (i386-dregs.o): New rule.
6200 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6201 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6202 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6203 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6204 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6205 * config/i386/go32.mh (NATDEPFILES): Likewise.
6206 * config/i386/linux.mh (NATDEPFILES): Likewise.
6207 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6208 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6209 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6210 * i386-nat.h (debug_hw_points): New declaration.
6211 * i386-nat.c (breakpoint.h): Remove include.
6212 (command.h): Likewise.
6213 (target.h): Likewise.
6214 (gdb_assert.h): Likewise.
6215 (debug_hw_points): Made nonstatic.
6216 (debug_printf): Now in i386-dregs.c.
6217 (TARGET_HAS_DR_LEN_8): Likewise.
6218 (DR_CONTROL_SHIFT): Likewise.
6219 (DR_CONTROL_SIZE): Likewise.
6220 (DR_RW_EXECUTE): Likewise.
6221 (DR_RW_WRITE): Likewise.
6222 (DR_RW_READ): Likewise.
6223 (DR_RW_IORW): Likewise.
6224 (DR_LEN_1): Likewise.
6225 (DR_LEN_2): Likewise.
6226 (DR_LEN_4): Likewise.
6227 (DR_LEN_8): Likewise.
6228 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6229 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6230 (DR_ENABLE_SIZE): Likewise.
6231 (DR_LOCAL_SLOWDOWN): Likewise.
6232 (DR_GLOBAL_SLOWDOWN): Likewise.
6233 (DR_CONTROL_RESERVED): Likewise.
6234 (I386_DR_CONTROL_MASK): Likewise.
6235 (I386_DR_VACANT): Likewise.
6236 (I386_DR_LOCAL_ENABLE): Likewise.
6237 (I386_DR_GLOBAL_ENABLE): Likewise.
6238 (I386_DR_DISABLE): Likewise.
6239 (I386_DR_SET_RW_LEN): Likewise.
6240 (I386_DR_GET_RW_LEN): Likewise.
6241 (I386_DR_WATCH_HIT): Likewise.
6242 (i386_wp_op_t): Likewise.
6243 (i386_show_dr): Likewise.
6244 (i386_length_and_rw_bits): Likewise.
6245 (i386_insert_aligned_watchpoint): Likewise.
6246 (i386_remove_aligned_watchpoint): Likewise.
6247 (i386_handle_nonaligned_watchpoint): Likewise.
6248 (i386_update_inferior_debug_regs): Likewise.
6249 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6250 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6251 (i386_region_ok_for_watchpoint):
6252 Use i386_dr_region_ok_for_watchpoint.
6253 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6254
6255 2014-06-19 Gary Benson <gbenson@redhat.com>
6256
6257 * i386-nat.c (i386_insert_hw_breakpoint): Use
6258 i386_insert_watchpoint.
6259 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6260
6261 2014-06-19 Gary Benson <gbenson@redhat.com>
6262
6263 * i386-nat.c (i386_dr_show): Renamed to
6264 i386_show_dr and made static. All uses updated.
6265 (i386_dr_length_and_rw_bits): Renamed to
6266 i386_length_and_rw_bits and made static.
6267 All uses updated.
6268 (i386_dr_insert_aligned_watchpoint): Renamed to
6269 i386_insert_aligned_watchpoint and made static.
6270 All uses updated.
6271 (i386_dr_remove_aligned_watchpoint): Renamed to
6272 i386_remove_aligned_watchpoint and made static.
6273 All uses updated.
6274 (i386_dr_update_inferior_debug_regs): Renamed to
6275 i386_update_inferior_debug_regs and made static.
6276 All uses updated.
6277 * nat/i386-dregs.h (i386_dr_show): Removed.
6278 (i386_dr_length_and_rw_bits): Likewise.
6279 (i386_dr_insert_aligned_watchpoint): Likewise.
6280 (i386_dr_remove_aligned_watchpoint): Likewise.
6281 (i386_dr_update_inferior_debug_regs): Likewise.
6282
6283 2014-06-19 Gary Benson <gbenson@redhat.com>
6284
6285 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6286 * configure: Regenerate.
6287 * config.in: Likewise.
6288 * main.c (signal.h): New include.
6289 (setup_alternate_signal_stack): New function.
6290 (captured_main): Call the above.
6291 * cp-support.c (signal.h): New include.
6292 (catch_demangler_crashes): New flag.
6293 (SIGJMP_BUF): New define.
6294 (SIGSETJMP): Likewise.
6295 (SIGLONGJMP): Likewise.
6296 (gdb_demangle_jmp_buf): New static global.
6297 (gdb_demangle_attempt_core_dump): Likewise.
6298 (gdb_demangle_signal_handler): New function.
6299 (gdb_demangle): If catch_demangler_crashes is set, install the
6300 above signal handler before calling bfd_demangle, and restore
6301 the original signal handler afterwards. Display the offending
6302 symbol and call demangler_warning the first time a segmentation
6303 fault is caught.
6304 (_initialize_cp_support): New maint set/show command.
6305
6306 2014-06-19 Gary Benson <gbenson@redhat.com>
6307
6308 * utils.h (resource_limit_kind): New enum.
6309 (can_dump_core): New declaration.
6310 (warn_cant_dump_core): Likewise.
6311 (dump_core): Likewise.
6312 * utils.c (dump_core): Made nonstatic. Added new
6313 parameter "limit_kind".
6314 (can_dump_core): Made nonstatic. Moved printing code to...
6315 (warn_cant_dump_core): New function.
6316 (can_dump_core_warn): Likewise.
6317 (internal_vproblem): Replace calls to can_dump_core with
6318 calls to can_dump_core_warn. Supply new argument to each.
6319
6320 2014-06-19 Gary Benson <gbenson@redhat.com>
6321
6322 * utils.h (demangler_vwarning): New declaration.
6323 (demangler_warning): Likewise.
6324 * utils.c (struct internal_problem)
6325 <user_settable_should_quit>: New field.
6326 <user_settable_should_dump_core>: Likewise
6327 (internal_error_problem): Add values for above new fields.
6328 (internal_warning_problem): Likewise.
6329 (demangler_warning_problem): New static global.
6330 (demangler_vwarning): New function.
6331 (demangler_warning): Likewise.
6332 (add_internal_problem_command): Selectively add commands.
6333 (_initialize_utils): New internal problem command.
6334 * maint.c (maintenance_demangler_warning): New function.
6335 (_initialize_maint_cmds): New command.
6336
6337 2014-06-18 Tom Tromey <tromey@redhat.com>
6338
6339 * f-valprint.c (info_common_command_for_block): Update.
6340 * symtab.h (struct general_symbol_info) <common_block>: Now
6341 const.
6342
6343 2014-06-18 Tom Tromey <tromey@redhat.com>
6344
6345 * symtab.h (struct symtab) <blockvector>: Now const.
6346 * ada-lang.c (ada_add_global_exceptions): Update.
6347 * buildsym.c (augment_type_symtab): Update.
6348 * dwarf2read.c (dw2_lookup_symbol): Update.
6349 * jit.c (finalize_symtab): Update.
6350 * jv-lang.c (add_class_symtab_symbol): Update.
6351 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6352 Update.
6353 * objfiles.c (objfile_relocate1): Update.
6354 * psymtab.c (lookup_symbol_aux_psymtabs)
6355 (maintenance_check_psymtabs): Update.
6356 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6357 Update.
6358 * spu-tdep.c (spu_catch_start): Update.
6359 * symmisc.c (dump_symtab_1): Update.
6360 * symtab.c (lookup_global_symbol_from_objfile)
6361 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6362 (basic_lookup_transparent_type_quick)
6363 (basic_lookup_transparent_type, find_pc_sect_symtab)
6364 (find_pc_sect_line, search_symbols): Update.
6365 * block.c (find_block_in_blockvector): Make "bl" const.
6366 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6367 const.
6368 (blockvector_contains_pc): Make "bv" const.
6369 (block_for_pc_sect): Update.
6370 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6371 (blockvector_contains_pc): Update.
6372 * breakpoint.c (resolve_sal_pc): Update.
6373 * inline-frame.c (block_starting_point_at): Update.
6374
6375 2014-06-18 Tom Tromey <tromey@redhat.com>
6376
6377 * completer.c (complete_line): Make "line_buffer" const.
6378 * completer.h (complete_line): Update.
6379
6380 2014-06-18 Tom Tromey <tromey@redhat.com>
6381
6382 * symtab.c (add_macro_name): Remove unneeded cast.
6383
6384 2014-06-18 Tom Tromey <tromey@redhat.com>
6385
6386 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6387 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6388
6389 2014-06-18 Tom Tromey <tromey@redhat.com>
6390
6391 * probe.c (info_probes_for_ops): Make "arg" const.
6392 * probe.h (info_probes_for_ops): Update.
6393
6394 2014-06-18 Tom Tromey <tromey@redhat.com>
6395
6396 * varobj.c (varobj_create): Update.
6397 * valops.c (value_of_this): Update.
6398 * tracepoint.c (add_local_symbols, scope_info): Update.
6399 * symtab.h (struct general_symbol_info) <block>: Now const.
6400 * symtab.c (skip_prologue_sal)
6401 (default_make_symbol_completion_list_break_on)
6402 (skip_prologue_using_sal): Update.
6403 * stack.h (iterate_over_block_locals)
6404 (iterate_over_block_local_vars): Update.
6405 * stack.c (print_frame_args): Update.
6406 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6407 parameter const.
6408 (get_selected_block): Make return type const.
6409 * python/py-frame.c (frapy_block): Update.
6410 * python/py-block.c (gdbpy_block_for_pc): Update.
6411 * p-exp.y (%union) <bval>: Now const.
6412 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6413 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6414 * m2-exp.y (%union) <bval>: Now const.
6415 * linespec.c (get_current_search_block): Make return type const.
6416 (create_sals_line_offset, find_label_symbols): Update.
6417 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6418 Update.
6419 (block_starting_point_at): Make "block" const.
6420 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6421 (check_exception_resume): Update.
6422 * guile/scm-frame.c (gdbscm_frame_block): Update.
6423 * guile/scm-block.c (gdbscm_lookup_block): Update.
6424 * frame.h (get_frame_block): Update.
6425 (get_selected_block): Make return type const.
6426 * frame.c (frame_id_inner): Update.
6427 * f-valprint.c (info_common_command_for_block)
6428 (info_common_command): Update.
6429 * dwarf2loc.c (dwarf2_find_location_expression)
6430 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6431 (locexpr_describe_location_piece): Update.
6432 * c-exp.y (%union) <bval>: Now const.
6433 * breakpoint.c (resolve_sal_pc): Update.
6434 * blockframe.c (get_frame_block):Make return type const.
6435 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6436 (block_innermost_frame): Update.
6437 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6438 (block_for_pc, block_for_pc_sect): Update.
6439 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6440 'pblock' const.
6441 (block_for_pc_sect, block_for_pc): Make return type const.
6442 * ax-gdb.c (gen_expr): Update.
6443 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6444 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6445 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6446 (ada_read_var_value): Update.
6447 * ada-exp.y (struct name_info) <block>: Now const.
6448 (%union): Likewise.
6449 (block_lookup): Constify.
6450
6451 2014-06-18 Gary Benson <gbenson@redhat.com>
6452
6453 * nat/i386-dregs.h: New file.
6454 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6455 * i386-nat.h (i386-dregs.h): New include.
6456 (DR_FIRSTADDR): Now in i386-dregs.h.
6457 (DR_LASTADDR): Likewise.
6458 (DR_NADDR): Likewise.
6459 (DR_STATUS): Likewise.
6460 (DR_CONTROL): Likewise.
6461 (i386_debug_reg_state): Likewise.
6462 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6463
6464 2014-06-18 Don Breazeal <donb@codesourcery.com>
6465
6466 * breakpoint.c (set_longjmp_breakpoint): Call
6467 momentary_breakpoint_from_master with additional argument.
6468 (set_longjmp_breakpoint_for_call_dummy): Call
6469 momentary_breakpoint_from_master with additional argument.
6470 (set_std_terminate_breakpoint): Call
6471 momentary_breakpoint_from_master with additional argument.
6472 (momentary_breakpoint_from_master): Add argument to function
6473 definition and use it to initialize structure member flag.
6474 (clone_momentary_breakpoint): Call
6475 momentary_breakpoint_from_master with additional argument.
6476 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6477 member flags set in momentary_breakpoint_from_master.
6478
6479 2014-06-18 Gary Benson <gbenson@redhat.com>
6480
6481 * i386-nat.c (i386_show_dr): Renamed to
6482 i386_dr_show and made nonstatic. All uses updated.
6483 (i386_length_and_rw_bits): Renamed to
6484 i386_dr_length_and_rw_bits and made nonstatic.
6485 All uses updated.
6486 (i386_insert_aligned_watchpoint): Renamed to
6487 i386_dr_insert_aligned_watchpoint and made nonstatic.
6488 All uses updated.
6489 (i386_remove_aligned_watchpoint): Renamed to
6490 i386_dr_remove_aligned_watchpoint and made nonstatic.
6491 All uses updated.
6492 (i386_update_inferior_debug_regs): Renamed to
6493 i386_dr_update_inferior_debug_regs and made nonstatic.
6494 All uses updated.
6495
6496 2014-06-18 Gary Benson <gbenson@redhat.com>
6497
6498 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6499 (i386_dr_low_can_set_control): Likewise.
6500 (i386_dr_low_set_addr): Likewise.
6501 (i386_dr_low_set_control): Likewise.
6502 (i386_dr_low_get_addr): Likewise.
6503 (i386_dr_low_get_status): Likewise.
6504 (i386_dr_low_get_control): Likewise.
6505 (i386_insert_aligned_watchpoint): Use new macros.
6506 (i386_update_inferior_debug_regs): Likewise.
6507 (i386_stopped_data_address): Likewise.
6508
6509 2014-06-18 Gary Benson <gbenson@redhat.com>
6510
6511 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6512 New parameter. All uses updated.
6513
6514 2014-06-18 Gary Benson <gbenson@redhat.com>
6515
6516 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6517 All uses updated.
6518
6519 2014-06-18 Gary Benson <gbenson@redhat.com>
6520
6521 * i386-nat.c (debug_printf): New macro.
6522 (i386_get_debug_register_length): Likewise.
6523 (TARGET_HAS_DR_LEN_8): Use above macro.
6524 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6525 and printf_unfiltered. Use phex to format values.
6526
6527 2014-06-18 Gary Benson <gbenson@redhat.com>
6528
6529 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6530 Make const.
6531
6532 2014-06-18 Gary Benson <gbenson@redhat.com>
6533
6534 * i386-nat.c: Comment changes.
6535
6536 2014-06-18 Gary Benson <gbenson@redhat.com>
6537
6538 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6539
6540 2014-06-18 Gary Benson <gbenson@redhat.com>
6541
6542 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6543 (i386_insert_aligned_watchpoint): Likewise.
6544 (i386_remove_aligned_watchpoint): Likewise.
6545 (i386_handle_nonaligned_watchpoint): Likewise.
6546
6547 2014-06-18 Gary Benson <gbenson@redhat.com>
6548
6549 * i386-nat.c: Whitespace changes.
6550
6551 2014-06-17 Samuel Bronson <naesten@gmail.com>
6552
6553 * MAINTAINERS: Update Roland McGrath's email address.
6554 Thanks to Sergio Durigan Junior for pointing out that he left
6555 Red Hat a while ago, and giving me a current address.
6556
6557 2014-06-17 Tom Tromey <tromey@redhat.com>
6558
6559 * utils.h (savestring): Remove declaration.
6560
6561 2014-06-17 Tom Tromey <tromey@redhat.com>
6562
6563 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6564
6565 2014-06-16 Keith Seitz <keiths@redhat.com>
6566
6567 PR mi/15863
6568 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6569 to update the varobj if inferior_ptid is null_ptid.
6570
6571 2014-06-16 Tom Tromey <tromey@redhat.com>
6572
6573 * target.h (struct target_ops) <to_info_proc>: Make parameter
6574 const.
6575 (target_info_proc): Update.
6576 * target.c (target_info_proc): Make "args" const.
6577 * procfs.c (procfs_info_proc): Update.
6578 * linux-tdep.c (linux_info_proc): Update.
6579 (linux_core_info_proc_mappings): Make "args" const.
6580 (linux_core_info_proc): Update.
6581 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6582 * gdbarch.c: Rebuild.
6583 * gdbarch.h: Rebuild.
6584 * corelow.c (core_info_proc): Update.
6585
6586 2014-06-16 Tom Tromey <tromey@redhat.com>
6587
6588 * target.h (struct target_ops) <to_disconnect>: Make parameter
6589 const.
6590 (target_disconnect): Update.
6591 * target.c (target_disconnect): Make "args" const.
6592 * target-delegates.c: Rebuild.
6593 * remote.c (remote_disconnect): Update.
6594 * record.h (record_disconnect): Update.
6595 * record.c (record_disconnect): Update.
6596 * inf-child.c (inf_child_disconnect): Update.
6597
6598 2014-06-16 Tom Tromey <tromey@redhat.com>
6599
6600 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6601 * target.c (debug_to_rcmd, default_rcmd): Update.
6602 * target-delegates.c: Rebuild.
6603 * remote.c (remote_rcmd): Update.
6604 * monitor.c (monitor_rcmd): Update.
6605
6606 2014-06-16 Pedro Alves <palves@redhat.com>
6607
6608 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6609 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6610 have OBJF_SHARED set.
6611 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6612 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6613 instead of OBJF_USERLOADED.
6614 * objfiles.h (OBJF_SHARED): Update comment.
6615 (userloaded_objfile_contains_address_p): Rename to ...
6616 (shared_objfile_contains_address_p): ... this, and update
6617 comments.
6618 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6619 new objfile.
6620 (remove_symbol_file_command): Skip objfiles that don't have
6621 OBJF_SHARED set.
6622
6623 2014-06-16 Tom Tromey <tromey@redhat.com>
6624
6625 * minsyms.h (prim_record_minimal_symbol)
6626 (prim_record_minimal_symbol_and_info): Update comments.
6627
6628 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6629
6630 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6631 or --without-guile, according to how GDB was built.
6632
6633 2014-06-13 Tom Tromey <tromey@redhat.com>
6634
6635 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6636 to help_list.
6637 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6638 to help_list.
6639 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6640 help_list.
6641 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6642 help_list.Pass all_commands, not -1, to help_list.
6643 * cli/cli-dump.c (dump_command, append_command)
6644 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6645 (binary_dump_command, binary_append_command): Pass all_commands,
6646 not -1, to help_list.
6647 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6648 -1, to help_list.
6649 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6650 -1, to help_list.
6651 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6652 help_list.
6653 * top.c (set_history): Pass all_commands, not -1, to help_list.
6654 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6655 all_commands, not -1, to help_list.
6656 * symfile.c (overlay_command): Pass all_commands, not -1, to
6657 help_list.
6658 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6659 help_list.
6660 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6661 help_list.
6662 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6663 -1, to help_list.
6664 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6665 not -1, to help_list.
6666 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6667 not -1, to help_list.
6668 * maint.c (maintenance_command, maintenance_info_command)
6669 (maintenance_print_command, maintenance_set_cmd): Pass
6670 all_commands, not -1, to help_list.
6671 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6672 help_list.
6673 * language.c (set_check): Pass all_commands, not -1, to help_list.
6674 * infcmd.c (unset_command): Pass all_commands, not -1, to
6675 help_list.
6676 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6677 help_list.
6678 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6679 help_list.
6680 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6681 help_list.
6682 * breakpoint.c (save_command): Pass all_commands, not -1, to
6683 help_list.
6684 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6685 all_commands, not -1, to help_list.
6686
6687 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6688
6689 * regcache.c (struct register_to_invalidate): New structure.
6690 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6691 functions.
6692 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6693
6694 2014-06-12 Yao Qi <yao@codesourcery.com>
6695
6696 * varobj.c (varobj_get_num_children): Call
6697 varobj_is_dynamic_p.
6698 (varobj_list_children): Likewise.
6699 (varobj_update): Likewise. Update comments.
6700
6701 2014-06-12 Yao Qi <yao@codesourcery.com>
6702
6703 * varobj.c (varobj_pretty_printed_p): Rename to ...
6704 (varobj_is_dynamic_p): ... this. New function.
6705 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6706 (varobj_is_dynamic_p): Declare.
6707 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6708 (mi_print_value_p, varobj_update_one): Likewise.
6709
6710 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6711 Yao Qi <yao@codesourcery.com>
6712
6713 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6714 (varobj_get_iterator): Wrap up code for pretty-printer by
6715 "#if HAVE_PYTHON" and "#endif".
6716 (update_dynamic_varobj_children): Likewise.
6717
6718 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6719 Yao Qi <yao@codesourcery.com>
6720
6721 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6722 gdb_python_initialized is false. Move some code from varobj.c.
6723 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6724 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6725 (struct varobj_item): Moved to varobj-iter.h".
6726 (varobj_clear_saved_item): New function.
6727 (update_dynamic_varobj_children): Move python-related code to
6728 py-varobj.c.
6729 (free_variable): Call varobj_clear_saved_item and
6730 varobj_iter_delete.
6731
6732 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6733 Yao Qi <yao@codesourcery.com>
6734
6735 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6736 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6737 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6738 (py-varobj.o): New rule.
6739 * python/py-varobj.c: New file.
6740 * python/python-internal.h (py_varobj_get_iterator): Declare.
6741 * varobj-iter.h: New file.
6742 * varobj.c: Include "varobj-iter.h"
6743 (struct varobj) <child_iter>: Change its type from "PyObject *"
6744 to "struct varobj_iter *".
6745 <saved_item>: Likewise.
6746 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6747 [HAVE_PYTHON] (varobj_get_iterator): New function.
6748 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6749 python-specific code to python/py-varobj.c.
6750 (install_visualizer): Call varobj_iter_delete instead of
6751 Py_XDECREF.
6752 * varobj.h (varobj_ensure_python_env): Declare.
6753
6754 2014-06-12 Yao Qi <yao@codesourcery.com>
6755
6756 * varobj.c (struct varobj_item): New structure.
6757 (create_child_with_value): Update declaration.
6758 (varobj_add_child): Replace arguments 'name' and 'value' with
6759 'item'. All callers updated.
6760 (install_dynamic_child): Likewise.
6761 (update_dynamic_varobj_children): Likewise.
6762 (varobj_add_child): Likewise.
6763 (create_child_with_value): Likewise.
6764
6765 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6766
6767 * NEWS: Create a new section for the next release branch.
6768 Rename the section of the current branch, now that it has
6769 been cut.
6770
6771 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6772
6773 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6774 * version.in: Bump version to 7.8.50.DATE-cvs.
6775
6776 2014-06-11 Pedro Alves <palves@redhat.com>
6777
6778 PR remote/17028
6779 * ser-mingw.c (net_windows_socket_check_pending): New function.
6780 (net_windows_select_thread): Ignore spurious wakeups. Use
6781 net_windows_socket_check_pending.
6782 (net_windows_wait_handle): Check for pending events with
6783 ioctlsocket, through net_windows_socket_check_pending, instead of
6784 checking the socket's event.
6785
6786 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6787
6788 * python/python-internal.h (gdb_PyObject_GetAttrString)
6789 (gdb_PyObject_HasAttrString): New inline function definitions.
6790 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6791 char * of the second argument to PyObject_GetAttrString.
6792
6793 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6794
6795 * serial.c (serial_write): Fix index of character to be printed
6796 in call to serial_logchar when serial debug traces are enabled.
6797
6798 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6799
6800 * gdbtypes (resolve_dynamic_range): Add function description.
6801
6802 2014-06-09 Pedro Alves <palves@redhat.com>
6803
6804 * linux-nat.c (linux_child_follow_fork): Initialize status with
6805 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6806 inner block. Only pass the signal to PTRACE_DETACH if in pass
6807 state.
6808
6809 2014-06-09 Gary Benson <gbenson@redhat.com>
6810
6811 * common/signals.c (gdb_signal_from_host): Reorder to separate
6812 the always-available ANSI-standard signals from the signals that
6813 require checking.
6814 (do_gdb_signal_to_host): Likewise.
6815 * proc-events.c (signal_table): Likewise.
6816
6817 2014-06-08 Hui Zhu <hui@codesourcery.com>
6818
6819 * common/linux-ptrace.c (linux_disable_event_reporting): New
6820 function.
6821 * common/linux-ptrace.h (linux_disable_event_reporting): New
6822 declaration.
6823 * linux-nat.c (linux_child_follow_fork): Do a single step before
6824 detach.
6825
6826 2014-06-07 Keith Seitz <keiths@redhat.com>
6827
6828 Revert:
6829 PR c++/16253
6830 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6831 from symbol_matches_domain in symtab.c. All local callers
6832 of symbol_matches_domain updated.
6833 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6834 search STRUCT_DOMAIN.
6835 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6836 independently. standard_lookup will do that automatically.
6837 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6838 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6839 (cp_lookup_symbol_in_namespace): Likewise.
6840 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6841 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6842 may return a STRUCT_DOMAIN match.
6843 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6844 * cp-support.c: Include language.h.
6845 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6846 VAR_DOMAIN.
6847 * psymtab.c (match_partial_symbol): Compare the requested
6848 domain with the symbol's domain directly.
6849 (lookup_partial_symbol): Likewise.
6850 * symtab.c (lookup_symbol_in_language): Explain when/why
6851 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6852 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6853 appropriate languages.
6854 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6855 and moved to ada-lang.c
6856 (lookup_block_symbol): Explain that this function only returns
6857 symbol matching the requested DOMAIN.
6858 Compare the requested domain with the symbol's domain directly.
6859 (iterate_over_symbols): Compare the requested domain with the
6860 symbol's domain directly.
6861 * symtab.h (symbol_matches_domain): Remove.
6862
6863 2014-06-06 Doug Evans <xdje42@gmail.com>
6864
6865 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6866 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6867 (gdbscm_guile_version_is_at_least): Declare.
6868 (gdbscm_scm_string_to_int): Declare.
6869 * guile/guile.c (gdbscm_guile_major_version): New global.
6870 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6871 (guile_datadir): New static global.
6872 (gdbscm_guile_data_directory): New function.
6873 (initialize_scheme_side): Update.
6874 (misc_guile_functions): Add guile-data-directory.
6875 (initialize_gdb_module): Fetch guile version number.
6876 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6877 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6878 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6879 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6880 comments.
6881 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6882 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6883 * guile/scm-value.c (gdbscm_value_to_string): Only call
6884 scm_port_conversion_strategy if Guile version >= 2.0.6.
6885
6886 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6887
6888 * main.c (print_gdb_help): Add -q and --silent.
6889
6890 2014-06-06 Gary Benson <gbenson@redhat.com>
6891
6892 * common/signals.c: Remove preprocessor conditionals for
6893 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6894 SIGSEGV and SIGTERM.
6895 * proc-events.c: Likewise.
6896
6897 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6898
6899 * symfile.c (symfile_free_objfile): Remove restriction to
6900 OBJF_USERLOADED.
6901 * symfile-mem.c (symbol_file_add_from_memory): Call
6902 add_target_sections_of_objfile.
6903
6904 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6905
6906 * guile/scm-value.c (gdbscm_history_append_x): Use
6907 'vlscm_get_value_smob_arg_unsafe' instead of
6908 'vlscm_scm_to_value'.
6909
6910 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6911
6912 PR mi/15806
6913 * utils.c (printchar): Don't escape at all if quoter is NUL.
6914 Update function documentation to clarify effect of parameter
6915 QUOTER.
6916 * remote.c (escape_buffer): Pass '\\' as the quoter to
6917 fputstrn_unfiltered.
6918 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6919 generate the output.
6920 (mi_solib_unloaded): Same.
6921
6922 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6923
6924 * development.sh: Delete.
6925 * Makefile.in (config.status): Adjust dependency on development.sh.
6926 * configure.ac: Adjust development.sh source call.
6927 * configure: Regenerate.
6928
6929 2014-06-04 Doug Evans <xdje42@gmail.com>
6930
6931 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6932 is_scheme_bkpt, spec.
6933 (bpscm_make_breakpoint_smob): Initialize new members.
6934 (gdbscm_create_breakpoint_x): Split into two ...
6935 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6936 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6937 (scheme_function breakpoint_functions): Update.
6938 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6939 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6940 register-breakpoint!.
6941
6942 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6943
6944 PR server/17023
6945 * mem-break.c (z_type_supported): Return zero if
6946 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6947
6948 2014-06-04 Tom Tromey <tromey@redhat.com>
6949
6950 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6951 value_from_contents_and_address_unresolved.
6952 (ada_template_to_fixed_record_type_1): Likewise.
6953 (ada_which_variant_applies): Likewise.
6954 * value.h (value_from_contents_and_address_unresolved): Declare.
6955 * value.c (value_from_contents_and_address_unresolved): New
6956 function.
6957 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6958 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6959 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6960
6961 2014-06-04 Tom Tromey <tromey@redhat.com>
6962
6963 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6964
6965 2014-06-04 Tom Tromey <tromey@redhat.com>
6966
6967 * procfs.c (procfs_attach): Make "args" const.
6968 * windows-nat.c (windows_attach): Make "args" const.
6969 * nto-procfs.c (procfs_attach): Make "args" const.
6970 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6971 * go32-nat.c (go32_attach): Make "args" const.
6972 * gnu-nat.c (gnu_attach): Make "args" const.
6973 * darwin-nat.c (darwin_attach): Make "args" const.
6974 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6975 * linux-nat.c (linux_nat_attach): Make "args" const.
6976 * remote.c (extended_remote_attach_1, extended_remote_attach):
6977 Make "args" const.
6978 * target.h (struct target_ops) <to_attach>: Make "args" const.
6979 (find_default_attach): Likewise.
6980 * utils.c (parse_pid_to_attach): Make "args" const.
6981 * utils.h (parse_pid_to_attach): Update.
6982
6983 2014-06-04 Tom Tromey <tromey@redhat.com>
6984
6985 * target-delegates.c: Rebuild.
6986 * target.c (default_thread_address_space): New function.
6987 (target_thread_address_space): Simplify.
6988 * target.h (struct target_ops) <to_thread_address_space>: Add
6989 TARGET_DEFAULT_FUNC.
6990
6991 2014-06-04 Doug Evans <xdje42@gmail.com>
6992
6993 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6994
6995 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6996
6997 * record-btrace.c: Include event-loop.h and inf-loop.h.
6998 (record_btrace_resume_exec_dir)
6999 (record_btrace_async_inferior_event_handler)
7000 (record_btrace_handle_async_inferior_event): New.
7001 (record_btrace_open): Create async event handler.
7002 (record_btrace_close): Delete async event handler.
7003 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7004 Mark async event handler.
7005 (record_btrace_execution_direction): New.
7006 (init_record_btrace_ops): Initialize to_execution_direction.
7007
7008 2014-06-03 Doug Evans <xdje42@gmail.com>
7009
7010 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7011 (gdbscm_make_parameter): Ditto.
7012
7013 2014-06-03 Doug Evans <dje@google.com>
7014
7015 * exec.c (exec_close_1): Call clear_section_table instead of
7016 resize_section_table.
7017 (clear_section_table): New function.
7018 (resize_section_table): Make static. Rename arg num_added to
7019 adjustment.
7020 * exec.h (clear_section_table): Declare.
7021 (resize_section_table): Delete.
7022 * progspace.c (release_program_space): Call clear_section_table
7023 instead of resize_section_table.
7024
7025 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7026
7027 * NEWS (Python Scripting): Add entry about the new xmethods
7028 feature.
7029
7030 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7031
7032 * python/py-xmethods.c: New file.
7033 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7034 (objfpy_dealloc): XDECREF on the new xmethods field.
7035 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7036 field.
7037 (objfpy_get_xmethods): New function.
7038 (objfile_getset): New entry 'xmethods'.
7039 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7040 (pspy_dealloc): XDECREF on the new xmethods field.
7041 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7042 field.
7043 (pspy_get_xmethods): New function.
7044 (pspace_getset): New entry 'xmethods'.
7045 * python/python-internal.h: Add declarations for new functions.
7046 * python/python.c (_initialize_python): Invoke
7047 gdbpy_initialize_xmethods.
7048 * python/lib/gdb/__init__.py (xmethods): New
7049 attribute.
7050 * python/lib/gdb/xmethod.py: New file.
7051 * python/lib/gdb/command/xmethods.py: New file.
7052
7053 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7054
7055 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7056 best match method returned by find_overload_match is an xmethod.
7057 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7058 the best matching operator returned by find_overload_match is an
7059 xmethod.
7060 * valops.c: #include "extension.h".
7061 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7062 Return void. The list of matching source methods is returned in
7063 "fn_list" and a vector of matching debug method workers is
7064 returned in "xm_worker_vec". Update all callers.
7065 (value_find_oload_method_list): Likewise.
7066 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7067 non-NULL, then the index of the best matching method in this
7068 vector is returned. Update all callers.
7069 (find_overload_match): Include xmethods while performing overload
7070 resolution.
7071
7072 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7073
7074 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7075 * extension-priv.h (struct extension_language_ops): Add the
7076 xmethod interface.
7077 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7078 get_matching_xmethod_workers, get_xmethod_argtypes,
7079 invoke_xmethod, free_xmethod_worker,
7080 free_xmethod_worker_vec): New functions.
7081 * extension.h: #include "common/vec.h".
7082 New function declarations.
7083 (struct xmethod_worker): New struct.
7084 (VEC (xmethod_worker_ptr)): New vector type.
7085 (xmethod_worker_ptr): New typedef.
7086 (xmethod_worker_vec): Likewise.
7087 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7088 builtin_type.
7089 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7090 (struct builtin_type): New field "xmethod".
7091 * valarith.c (value_ptradd): Assert that the value argument is not
7092 lval_xcallable.
7093 * valops.c (value_must_coerce_to_target): Return 0 for
7094 lval_xcallable values.
7095 * value.c (struct value): New field XM_WORKER in the field
7096 LOCATION.
7097 (value_address, value_raw_address): Return 0 for lval_xcallable
7098 values.
7099 (set_value_address): Assert that the value is not an
7100 lval_xcallable.
7101 (value_free): Free the associated xmethod worker when freeing
7102 lval_xcallable values.
7103 (set_value_component_location): Assert that the WHOLE value is not
7104 lval_xcallable.
7105 (value_of_xmethod, call_xmethod): New functions.
7106 * value.h: Declare "struct xmethod_worker".
7107 Declare new functions value_of_xmethod, call_xmethod.
7108
7109 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7110 Pedro Alves <palves@redhat.com>
7111
7112 PR breakpoints/17000
7113 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7114 New function, extracted from software_breakpoint_inserted_here_p.
7115 (software_breakpoint_inserted_here_p): Replace factored out code
7116 by call to find_non_raw_software_breakpoint_inserted_here.
7117 (bp_target_info_copy_insertion_state): New function.
7118 (bkpt_insert_location): Handle the case of a single-step
7119 breakpoint already inserted at the same address.
7120 (bkpt_remove_location): Handle the case of a single-step
7121 breakpoint still inserted at the same address.
7122 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7123 breakpoint already inserted at the same address.
7124 (deprecated_remove_raw_breakpoint): Handle the case of a
7125 non-raw breakpoint still inserted at the same address.
7126 (find_single_step_breakpoint): New function, extracted from
7127 single_step_breakpoint_inserted_here_p.
7128 (find_single_step_breakpoint): New function,
7129 factored out from single_step_breakpoint_inserted_here_p.
7130 (single_step_breakpoint_inserted_here_p): Reimplement.
7131
7132 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7133
7134 Pushed by Joel Brobecker <brobecker@adacore.com>
7135 * source.c (show_substitute_path_command): Fix display of matching
7136 substitution rules.
7137
7138 2014-06-03 Gary Benson <gbenson@redhat.com>
7139
7140 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7141
7142 2014-06-02 Doug Evans <xdje42@gmail.com>
7143
7144 Add parameter support for Guile.
7145 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7146 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7147 (scm-param.o): New rule.
7148 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7149 (gdbscm_misc_error): Declare.
7150 (gdbscm_canonicalize_command_name): Declare.
7151 (gdbscm_scm_to_host_string): Declare.
7152 (gdbscm_scm_from_host_string): Declare.
7153 (gdbscm_initialize_parameters): Declare.
7154 * guile/guile.c (initialize_gdb_module): Call
7155 gdbscm_initialize_parameters.
7156 * guile/lib/gdb.scm: Export parameter symbols.
7157 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7158 cmdscm_canonicalize_name and made public. All callers updated.
7159 * guile/scm-exception.c (gdbscm_misc_error): New function.
7160 * guile/scm-param.c: New file.
7161 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7162 (gdbscm_scm_to_host_string): New function.
7163 (gdbscm_scm_from_host_string): New function.
7164 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7165
7166 2014-06-02 Doug Evans <xdje42@gmail.com>
7167
7168 Add command support for Guile.
7169 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7170 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7171 (scm-cmd.o): New rule.
7172 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7173 (gdbscm_user_error_p): Declare.
7174 (gdbscm_parse_command_name): Declare.
7175 (gdbscm_valid_command_class_p): Declare.
7176 (gdbscm_initialize_commands): Declare.
7177 * guile/guile.c (initialize_gdb_module): Call
7178 gdbscm_initialize_commands.
7179 * guile/lib/gdb.scm: Export command symbols.
7180 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7181 (throw-user-error): New function.
7182 * guile/scm-cmd.c: New file.
7183 * guile/scm-exception.c (user_error_symbol): New static global.
7184 (gdbscm_user_error_p): New function.
7185 (gdbscm_initialize_exceptions): Set user_error_symbol.
7186 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7187
7188 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7189
7190 * top.c (command_loop): Handle comments here...
7191 (command_line_input): ... not here.
7192
7193 2014-06-02 Doug Evans <xdje42@gmail.com>
7194
7195 Add progspace support for Guile.
7196 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7197 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7198 (scm-progspace.o): New rule.
7199 * guile/guile-internal.h (pspace_smob): New typedef.
7200 (psscm_pspace_smob_pretty_printers): Declare.
7201 (psscm_pspace_smob_from_pspace): Declare.
7202 (psscm_scm_from_pspace): Declare.
7203 * guile/guile.c (initialize_gdb_module): Call
7204 gdbscm_initialize_pspaces.
7205 * guile/lib/gdb.scm: Export progspace symbols.
7206 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7207 support.
7208 (append-pretty-printer!): Ditto.
7209 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7210 Implement.
7211 * guile/scm-progspace.c: New file.
7212
7213 2014-06-03 Alan Modra <amodra@gmail.com>
7214
7215 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7216 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7217
7218 2014-06-02 Doug Evans <dje@google.com>
7219
7220 Add support for skeletonless type units.
7221 * dwarf2read.c (struct dwarf2_per_objfile): New member
7222 n_allocated_type_units.
7223 (struct dwarf2_per_objfile) <tu_stats>: New member
7224 nr_all_type_units_reallocs.
7225 (create_signatured_type_table_from_index): Initialize
7226 n_allocated_type_units
7227 (create_all_type_units): Ditto.
7228 (add_type_unit): Move up in file. New arg slot.
7229 All callers updated. Increase space for all_type_units more
7230 efficiently.
7231 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7232 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7233 (lookup_dwp_signatured_type): Ditto.
7234 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7235 All callers updated.
7236 (build_type_psymtabs_1): Leave type_unit_groups as
7237 NULL if no TUs present.
7238 (print_tu_stats): New function.
7239 (process_skeletonless_type_unit): New function.
7240 (process_dwo_file_for_skeletonless_type_units): New
7241 function.
7242 (process_skeletonless_type_units): New function.
7243 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7244 Call print tu_stats if debugging enabled.
7245
7246 2014-06-02 Pedro Alves <palves@redhat.com>
7247
7248 * breakpoint.c (build_target_command_list): Don't build a command
7249 list if we have any duplicate location that isn't a dprintf.
7250
7251 2014-06-02 Pedro Alves <palves@redhat.com>
7252
7253 * breakpoint.c (dprintf_breakpoint_hit): New function.
7254 (initialize_breakpoint_ops): Install it as dprintf's
7255 breakpoint_hit method.
7256
7257 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7258
7259 * source.c (substitute_path_rule_matches): Simplify using
7260 filename_ncmp instead of FILENAME_CMP.
7261
7262 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7263
7264 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7265
7266 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7267
7268 * configure.ac: When Guile is available, check for the
7269 availability of 'scm_new_smob'.
7270 * configure, config.h.in: Regenerate.
7271 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7272 function.
7273
7274 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7275
7276 * frame.c (struct frame_info): Add stop_string field.
7277 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7278 (get_prev_frame_always): Old content moved into
7279 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7280 TRY_CATCH, handle MEMORY_ERROR exceptions.
7281 (frame_stop_reason_string): New function definition.
7282 * frame.h (unwind_stop_reason_to_string): Extend comment to
7283 mention frame_stop_reason_string.
7284 (frame_stop_reason_string): New function declaration.
7285 * stack.c (frame_info): Switch to frame_stop_reason_string.
7286 (backtrace_command_1): Switch to frame_stop_reason_string.
7287 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7288 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7289 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7290
7291 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7292
7293 * frame.c (frame_stop_reason_string): Rename to ...
7294 (unwind_stop_reason_to_string): this.
7295 * frame.h (frame_stop_reason_string): Rename to ...
7296 (unwind_stop_reason_to_string): this.
7297 * stack.c (frame_info): Update call to frame_stop_reason_string.
7298 (backtrace_command_1): Likewise.
7299 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7300 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7301
7302 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7303
7304 * frame.c (remove_prev_frame): New function.
7305 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7306 remove_prev_frame.
7307
7308 2014-05-29 Pedro Alves <palves@redhat.com>
7309
7310 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7311 and make it const. When a single-step decays to a continue,
7312 clear 'step', not 'hw_step'. Pass whether the caller wanted
7313 to step to user_visible_resume_ptid, not what we ask the
7314 target to do.
7315
7316 2014-05-29 Pedro Alves <palves@redhat.com>
7317
7318 * infrun.c (process_event_stop_test, handle_step_into_function)
7319 (handle_step_into_function_backward): Adjust.
7320 Don't set the even thread's stop_step and call stop_waiting before
7321 calling end_stepping_range. Instead do that ...
7322 (end_stepping_range): ... here. Take an ecs pointer parameter.
7323
7324 2014-05-29 Pedro Alves <palves@redhat.com>
7325
7326 * infrun.c (stop_stepping): Rename to ...
7327 (stop_waiting): ... this.
7328 (proceed): Update comment.
7329 (process_event_stop_test, handle_inferior_event)
7330 (handle_signal_stop, handle_step_into_function)
7331 (handle_step_into_function_backward): Update.
7332
7333 2014-05-29 Pedro Alves <palves@redhat.com>
7334
7335 * infcall.c (run_inferior_call): Don't check whether the current
7336 thread is running after the proceed call.
7337
7338 2014-05-29 Pedro Alves <palves@redhat.com>
7339 Tom Tromey <tromey@redhat.com>
7340
7341 * NEWS: Mention "maint set target-async", "set mi-async", and that
7342 background execution commands are now always available.
7343 * target.h (target_async_permitted): Update comment.
7344 * target.c (target_async_permitted, target_async_permitted_1):
7345 Default to 1.
7346 (set_target_async_command): Rename to ...
7347 (maint_set_target_async_command): ... this.
7348 (show_target_async_command): Rename to ...
7349 (maint_show_target_async_command): ... this.
7350 (_initialize_target): Adjust.
7351 * infcmd.c (prepare_execution_command): Make extern.
7352 * inferior.h (prepare_execution_command): Declare.
7353 * infrun.c (set_observer_mode): Leave target async alone.
7354 * mi/mi-interp.c (mi_interpreter_init): Install
7355 mi_on_sync_execution_done as sync_execution_done observer.
7356 (mi_on_sync_execution_done): New function.
7357 (mi_execute_command_input_handler): Don't print the prompt if we
7358 just started a synchronous command with an async target.
7359 (mi_on_resume): Check sync_execution before printing prompt.
7360 * mi/mi-main.h (mi_async_p): Declare.
7361 * mi/mi-main.c: Include gdbcmd.h.
7362 (mi_async_p): New function.
7363 (mi_async, mi_async_1): New globals.
7364 (set_mi_async_command, show_mi_async_command, mi_async): New
7365 functions.
7366 (exec_continue): Call prepare_execution_command.
7367 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7368 (mi_execute_async_cli_command): Use mi_async_p.
7369 (_initialize_mi_main): Install "set mi-async". Make
7370 "target-async" a deprecated alias.
7371
7372 2014-05-29 Pedro Alves <palves@redhat.com>
7373
7374 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7375 (_initialize_cli_interp): Adjust.
7376 * event-loop.c: Include "observer.h".
7377 (start_event_loop): Notify 'command_error' observers instead of
7378 calling display_gdb_prompt. Remove FIXME comment.
7379 * event-top.c (display_gdb_prompt): Remove call into the
7380 interpreters.
7381 * inf-loop.c: Include "observer.h".
7382 (inferior_event_handler): Notify 'command_error' observers instead
7383 of calling display_gdb_prompt.
7384 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7385 observers instead of calling display_gdb_prompt.
7386 * interps.c (interp_set): Don't call display_gdb_prompt.
7387 (current_interp_display_prompt_p): Delete.
7388 * interps.h (interp_prompt_p): Delete declaration.
7389 (interp_prompt_p_ftype): Delete.
7390 (struct interp_procs) <prompt_proc_p>: Delete field.
7391 (current_interp_display_prompt_p): Delete declaration.
7392 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7393 (_initialize_mi_interp): Adjust.
7394 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7395 'command_error' observers.
7396 (tui_on_sync_execution_done, tui_on_command_error): New
7397 functions.
7398 (tui_display_prompt_p): Delete.
7399 (_initialize_tui_interp): Adjust.
7400
7401 2014-05-29 Pedro Alves <palves@redhat.com>
7402
7403 PR gdb/13860
7404 * cli/cli-interp.c: Include infrun.h and observer.h.
7405 (cli_uiout, cli_interp): New globals.
7406 (cli_on_signal_received, cli_on_end_stepping_range)
7407 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7408 functions.
7409 (cli_interpreter_init): Install them as 'end_stepping_range',
7410 'signal_received' 'signal_exited', 'exited' and 'no_history'
7411 observers.
7412 (_initialize_cli_interp): Remove cli_interp local.
7413 * infrun.c (handle_inferior_event): Call the several stop reason
7414 observers instead of printing the stop reason directly.
7415 (end_stepping_range): New function.
7416 (print_end_stepping_range_reason, print_signal_exited_reason)
7417 (print_exited_reason, print_signal_received_reason)
7418 (print_no_history_reason): Make static, and add an uiout
7419 parameter. Print to that instead of to CURRENT_UIOUT.
7420 * infrun.h (print_end_stepping_range_reason)
7421 (print_signal_exited_reason, print_exited_reason)
7422 (print_signal_received_reason print_no_history_reason): New
7423 declarations.
7424 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7425 'mi_uiout'.
7426 <cli_uiout>: New field.
7427 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7428 uiout for CLI output. Install 'signal_received',
7429 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7430 observers.
7431 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7432 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7433 (mi_on_no_history): New functions.
7434 (ui_out_free_cleanup): Delete function.
7435 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7436 instead use the one already stored in the MI interpreter data.
7437 (mi_ui_out): Adjust.
7438 * tui/tui-interp.c: Include infrun.h and observer.h.
7439 (tui_interp): New global.
7440 (tui_on_signal_received, tui_on_end_stepping_range)
7441 (tui_on_signal_exited, tui_on_exited)
7442 (tui_on_no_history): New functions.
7443 (tui_init): Install them as 'end_stepping_range',
7444 'signal_received' 'signal_exited', 'exited' and 'no_history'
7445 observers.
7446 (_initialize_tui_interp): Delete tui_interp local.
7447
7448 2014-05-29 Pedro Alves <palves@redhat.com>
7449
7450 PR gdb/15713
7451 * linux-nat.c (linux_nat_resume_callback): Rename the second
7452 parameter to 'except'. Skip LP if it points to EXCEPT.
7453 (linux_nat_resume): Don't mark the event lwp as not stopped
7454 before resuming sibling lwps. Instead ask
7455 linux_nat_resume_callback to skip the event lwp. Mark it as not
7456 stopped after actually resuming it.
7457 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7458 resuming it.
7459 (wait_lwp): Mark the lwp as stopped here.
7460 (stop_wait_callback): Mark the lwp as not stopped right after
7461 resuming it. Don't mark lwps as stopped here.
7462 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7463 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7464
7465 2014-05-29 Pedro Alves <palves@redhat.com>
7466
7467 PR PR15693
7468 * infrun.c (resume): Determine how much to resume depending on
7469 whether the caller wanted a step, not whether we can hardware step
7470 the target. Mark all threads that we intend to run as running,
7471 unless we're calling an inferior function.
7472 (normal_stop): If the thread is running an infcall, don't finish
7473 thread state.
7474 * target.c (target_resume): Don't mark threads as running here.
7475
7476 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7477
7478 * serial.c (_initialize_serial): Remove support for
7479 the "set remotebaud" and "show remotebaud" commands.
7480 * NEWS: Add entry documenting the removal of that command.
7481
7482 2014-05-28 Yao Qi <yao@codesourcery.com>
7483
7484 * charset.c: Fix typo in comments.
7485
7486 2014-05-27 Gary Benson <gbenson@redhat.com>
7487
7488 * utils.c (internal_vproblem): Prompt for a bug report.
7489
7490 2014-05-26 Andy Wingo <wingo@igalia.com>
7491
7492 * guile/scm-arch.c (arscm_mark_arch_smob):
7493 * guile/scm-block.c (bkscm_mark_block_smob)
7494 (bkscm_mark_block_syms_progress_smob):
7495 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7496 * guile/scm-exception.c (exscm_mark_exception_smob):
7497 * guile/scm-frame.c (frscm_mark_frame_smob):
7498 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7499 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7500 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7501 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7502 (ppscm_mark_pretty_printer_worker_smob):
7503 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7504 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7505 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7506 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7507 mark functions.
7508 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7509 function.
7510
7511 2014-05-26 Andy Wingo <wingo@igalia.com>
7512 Doug Evans <xdje42@gmail.com>
7513
7514 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7515 empty_base_class. All uses updated.
7516 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7517 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7518 Adapt all callers.
7519 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7520 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7521 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7522 (gdbscm_gsmob_has_property_p, add_property_name)
7523 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7524 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7525 (gdb-object-has-property?, gdb-object-properties): Remove.
7526 (gdb-object-kind): Renamed from gsmob-kind.
7527
7528 2014-05-26 Andy Wingo <wingo@igalia.com>
7529
7530 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7531 * configure: Regenerate.
7532
7533 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7534
7535 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7536
7537 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7538
7539 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7540 (replay_memory_access_read_only, replay_memory_access_read_write)
7541 (replay_memory_access_types, replay_memory_access)
7542 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7543 (cmd_set_record_btrace, cmd_show_record_btrace)
7544 (cmd_show_replay_memory_access): New.
7545 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7546 (record_btrace_remove_breakpoint): Replace
7547 record_btrace_allow_memory_access with replay_memory_access.
7548 (_initialize_record_btrace): Add commands.
7549 * NEWS: Announce it.
7550
7551 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7552
7553 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7554
7555 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7556
7557 * MAINTAINERS (Write After Approval): Move self back from
7558 paper trail.
7559
7560 2014-05-22 Pedro Alves <palves@redhat.com>
7561
7562 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7563 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7564 (disable_randomization, enum exec_direction_kind)
7565 (execution_direction, stop_registers, start_remote)
7566 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7567 (wait_for_inferior, normal_stop, get_last_target_status)
7568 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7569 (insert_step_resume_breakpoint_at_sal)
7570 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7571 (set_step_info, print_stop_event, signal_stop_state)
7572 (signal_print_state, signal_pass_state, signal_stop_update)
7573 (signal_print_update, signal_pass_update)
7574 (update_signals_program_target, clear_exit_convenience_vars)
7575 (displaced_step_dump_bytes, update_observer_mode)
7576 (signal_catch_update, gdb_signal_from_command): Move
7577 declarations ...
7578 * infrun.h: ... to this new file.
7579 * amd64-tdep.c: Include infrun.h.
7580 * annotate.c: Include infrun.h.
7581 * arch-utils.c: Include infrun.h.
7582 * arm-linux-tdep.c: Include infrun.h.
7583 * arm-tdep.c: Include infrun.h.
7584 * break-catch-sig.c: Include infrun.h.
7585 * breakpoint.c: Include infrun.h.
7586 * common/agent.c: Include infrun.h instead of inferior.h.
7587 * corelow.c: Include infrun.h.
7588 * event-top.c: Include infrun.h.
7589 * go32-nat.c: Include infrun.h.
7590 * i386-tdep.c: Include infrun.h.
7591 * inf-loop.c: Include infrun.h.
7592 * infcall.c: Include infrun.h.
7593 * infcmd.c: Include infrun.h.
7594 * infrun.c: Include infrun.h.
7595 * linux-fork.c: Include infrun.h.
7596 * linux-nat.c: Include infrun.h.
7597 * linux-thread-db.c: Include infrun.h.
7598 * monitor.c: Include infrun.h.
7599 * nto-tdep.c: Include infrun.h.
7600 * procfs.c: Include infrun.h.
7601 * record-btrace.c: Include infrun.h.
7602 * record-full.c: Include infrun.h.
7603 * remote-m32r-sdi.c: Include infrun.h.
7604 * remote-mips.c: Include infrun.h.
7605 * remote-notif.c: Include infrun.h.
7606 * remote-sim.c: Include infrun.h.
7607 * remote.c: Include infrun.h.
7608 * reverse.c: Include infrun.h.
7609 * rs6000-tdep.c: Include infrun.h.
7610 * s390-linux-tdep.c: Include infrun.h.
7611 * solib-irix.c: Include infrun.h.
7612 * solib-osf.c: Include infrun.h.
7613 * solib-svr4.c: Include infrun.h.
7614 * target.c: Include infrun.h.
7615 * top.c: Include infrun.h.
7616 * windows-nat.c: Include infrun.h.
7617 * mi/mi-interp.c: Include infrun.h.
7618 * mi/mi-main.c: Include infrun.h.
7619 * python/py-threadevent.c: Include infrun.h.
7620
7621 2014-05-22 Pedro Alves <palves@redhat.com>
7622
7623 * infrun.c (handle_inferior_event): Store the exit code for
7624 --return-child-result here, instead of ...
7625 (print_exited_reason): ... here.
7626
7627 2014-05-21 Pedro Alves <palves@redhat.com>
7628
7629 PR gdb/13860
7630 * gdbthread.h (struct thread_control_state): New field
7631 `command_interp'.
7632 * infrun.c (follow_fork): Copy the new thread control field to the
7633 child fork thread.
7634 (clear_proceed_status_thread): Clear the new thread control field.
7635 (proceed): Set the new thread control field.
7636 * interps.h (command_interp): Declare.
7637 * interps.c (command_interpreter): New global.
7638 (command_interp): New function.
7639 (interp_exec): Set `command_interpreter' while here.
7640 * cli-out.c (cli_uiout_dtor): New function.
7641 (cli_ui_out_impl): Install it.
7642 * mi/mi-interp.c: Include cli-out.h.
7643 (mi_cmd_interpreter_exec): Add comment.
7644 (restore_current_uiout_cleanup): New function.
7645 (ui_out_free_cleanup): New function.
7646 (mi_on_normal_stop): If finishing an execution command started by
7647 a CLI command, or any kind of breakpoint-like event triggered,
7648 print the stop event to the output (CLI) stream.
7649 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7650
7651 2014-05-21 Pedro Alves <palves@redhat.com>
7652
7653 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7654 current source line having changed.
7655 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7656 * infrun.c (normal_stop): Adjust call to
7657 set_current_sal_from_frame.
7658 * source.c (clear_lines_listed_range): New function.
7659 (set_current_source_symtab_and_line, identify_source_line): Clear
7660 the lines listed range.
7661 (line_info): Handle the first "info line" after the current source
7662 line having changed.
7663 * stack.c (print_stack_frame): Remove center handling.
7664 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7665 center sal.line.
7666
7667 2014-05-21 Pedro Alves <palves@redhat.com>
7668
7669 * inf-child.c (inf_child_mourn_inferior): New function.
7670 * inf-child.h (inf_child_mourn_inferior): New declaration.
7671 * darwin-nat.c (darwin_mourn_inferior): Use
7672 inf_child_mourn_inferior.
7673 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7674 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7675 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7676 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7677 * windows-nat.c (windows_mourn_inferior): Likewise.
7678
7679 2014-05-21 Doug Evans <xdje42@gmail.com>
7680
7681 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7682
7683 2014-05-21 Doug Evans <xdje42@gmail.com>
7684
7685 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7686 (gdbscm_out_of_range_error): Ditto.
7687 (gdbscm_memory_error): Ditto.
7688 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7689 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7690 (gdbscm_out_of_range_error): Update.
7691 (gdbscm_memory_error): Update.
7692 (gdbscm_scm_to_target_string_unsafe): Delete.
7693
7694 2014-05-21 Pedro Alves <palves@redhat.com>
7695
7696 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7697 globals.
7698 (inf_child_open_target): New function.
7699 (inf_child_open): Use inf_child_open_target to push the target
7700 instead of erroring out.
7701 (inf_child_disconnect, inf_child_close)
7702 (inf_child_maybe_unpush_target): New functions.
7703 (inf_child_target): Install inf_child_disconnect and
7704 inf_child_close. Store a pointer to the returned object.
7705 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7706 declarations.
7707 * target.c (auto_connect_native_target): New global.
7708 (show_default_run_target): New function.
7709 (find_default_run_target): Return NULL if automatically connecting
7710 to the native target is disabled.
7711 (_initialize_target): Install set/show auto-connect-native-target.
7712 * NEWS: Mention "set auto-connect-native-target", and "target
7713 native".
7714 * linux-nat.c (super_close): New global.
7715 (linux_nat_close): Call super_close.
7716 (linux_nat_add_target): Store a pointer to the base class's
7717 to_close method.
7718 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7719 inf_child_maybe_unpush.
7720 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7721 already pushed.
7722 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7723 the inferior. Use inf_child_maybe_unpush_target.
7724 (inf_ttrace_attach): Don't push the target if it is already
7725 pushed.
7726 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7727 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7728 after mourning the inferior. Use inf_child_maybe_unpush_target.
7729 (darwin_attach_pid): Don't push the target if it is already
7730 pushed.
7731 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7732 mourning the inferior. Use inf_child_maybe_unpush_target.
7733 (gnu_detach): Use inf_child_maybe_unpush_target.
7734 * go32-nat.c (go32_create_inferior): Don't push the target if it
7735 is already pushed.
7736 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7737 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7738 (procfs_open): Rename to ...
7739 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7740 comments. Can target_preopen before changing node. Call
7741 inf_child_open_target to push the target explicitly.
7742 (procfs_attach): Don't push the target if it is already pushed.
7743 (procfs_detach): Use inf_child_maybe_unpush_target.
7744 (procfs_create_inferior): Don't push the target if it is already
7745 pushed.
7746 (nto_native_ops): New global.
7747 (procfs_open): Reimplement.
7748 (procfs_native_open): New function.
7749 (init_procfs_targets): Install procfs_native_open as to_open of
7750 "target native". Store a pointer to the "native" target in
7751 nto_native_ops.
7752 * procfs.c (procfs_attach): Don't push the target if it is already
7753 pushed.
7754 (procfs_detach): Use inf_child_maybe_unpush_target.
7755 (procfs_mourn_inferior): Only unpush the target after mourning the
7756 inferior. Use inf_child_maybe_unpush_target.
7757 (procfs_init_inferior): Don't push the target if it is already
7758 pushed.
7759 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7760 if it is already pushed.
7761
7762 2014-05-21 Pedro Alves <palves@redhat.com>
7763
7764 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7765 and "procfs" targets are now called "native" instead.
7766
7767 2014-05-21 Pedro Alves <palves@redhat.com>
7768
7769 * go32-nat.c (go32_open): Delete.
7770 (go32_target): Don't override the to_open method.
7771
7772 2014-05-21 Pedro Alves <palves@redhat.com>
7773
7774 * nto-procfs.c (procfs_can_run): New function.
7775 (nto_procfs_ops): New global.
7776 (init_procfs_targets): New, based on procfs_target. Install
7777 "target native" in addition to "target procfs".
7778 (_initialize_procfs): Call init_procfs_targets instead of adding
7779 the target here.
7780
7781 2014-05-21 Pedro Alves <palves@redhat.com>
7782
7783 * windows-nat.c (windows_target): Don't override to_shortname,
7784 to_longname or to_doc.
7785
7786 2014-05-21 Pedro Alves <palves@redhat.com>
7787
7788 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7789 to_doc.
7790
7791 2014-05-21 Pedro Alves <palves@redhat.com>
7792
7793 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7794 to_shortname, to_longname or to_doc.
7795
7796 2014-05-21 Pedro Alves <palves@redhat.com>
7797
7798 * go32-nat.c (go32_target): Don't override to_shortname,
7799 to_longname or to_doc.
7800
7801 2014-05-21 Pedro Alves <palves@redhat.com>
7802
7803 * inf-child.c (inf_child_open): Remove mention of "child".
7804 (inf_child_target): Rename target to "native" instead of "child".
7805
7806 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7807
7808 * Makefile.in (SFILES): Delete "regset.c".
7809 (COMMON_OBS): Delete "regset.o".
7810 * regset.c: Remove.
7811 * regset.h (regset_alloc): Delete prototype.
7812
7813 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7814
7815 * sparc-linux-tdep.c (sparc32_linux_gregset)
7816 (sparc32_linux_fpregset): New static regset structures.
7817 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7818 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7819 'fpregset' fields.
7820 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7821 (sparc64_linux_fpregset): New static regset structures.
7822 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7823 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7824 New static regset structures.
7825 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7826 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7827 New static regset structures.
7828 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7829 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7830 New static regset structures.
7831 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7832 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7833 New static regset structures.
7834 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7835
7836 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7837
7838 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7839 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7840 register maps ("regmaps") from "*regset" to "*regmap". Do this
7841 for all regmap types and variables.
7842 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7843 (sparc32_linux_supply_core_gregset)
7844 (sparc32_linux_collect_core_gregset)
7845 (sparc32_linux_supply_core_fpregset)
7846 (sparc32_linux_collect_core_fpregset): Likewise.
7847 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7848 (sparc_gregmap, sparc_fpregmap): ... these.
7849 (sparc_supply_gregset, sparc_collect_gregset)
7850 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7851 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7852 (_initialize_sparc_nat): Rename regmaps.
7853 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7854 (sparc_gregmap, sparc_fpregmap): ... these.
7855 (sparc_supply_gregset, sparc_collect_gregset)
7856 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7857 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7858 Rename macros to...
7859 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7860 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7861 Likewise.
7862 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7863 Rename to...
7864 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7865 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7866 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7867 regmaps.
7868 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7869 (sparc32_bsd_fpregset): Rename to...
7870 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7871 (sparc32_bsd_fpregmap): ... these.
7872 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7873 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7874 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7875 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7876 (struct sparc_gregmap, struct sparc_fpregmap)
7877 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7878 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7879 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7880 (sparc32_supply_regset, sparc32_collect_gregset)
7881 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7882 prototypes.
7883 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7884 (sparc64_linux_ptrace_gregmap): ... this.
7885 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7886 (_initialize_sparc64_linux_nat): Rename regmaps.
7887 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7888 (sparc64_linux_core_gregmap): ... this.
7889 (sparc64_linux_supply_core_gregset)
7890 (sparc64_linux_collect_core_gregset)
7891 (sparc64_linux_supply_core_fpregset)
7892 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7893 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7894 (sparc64_sol2_fpregset): Rename to...
7895 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7896 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7897 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7898 regmaps.
7899 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7900 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7901 (sparc64_bsd_fpregset): Rename to...
7902 (struct sparc_gregmap, sparc64_sol2_gregmap)
7903 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7904 (sparc64_bsd_fpregmap): ... these.
7905 (sparc64_supply_gregset, sparc64_collect_gregset)
7906 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7907 prototypes.
7908 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7909 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7910 (sparc64fbsd_gregmap): ... this.
7911 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7912 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7913 Rename regmaps.
7914 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7915 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7916 (sparc64nbsd_collect_fpregset): Likewise.
7917 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7918 (sparc64nbsd_gregmap): ... this.
7919 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7920 regmaps.
7921 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7922 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7923 (sparc64obsd_gregmap): ... this.
7924 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7925 regmaps.
7926 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7927 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7928 (sparc32nbsd_gregmap): ... this.
7929 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7930 regmaps.
7931
7932 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7933
7934 * score-tdep.c (score7_linux_gregset): New static regset
7935 structure.
7936 (score7_linux_regset_from_core_section): Remove dynamic regset
7937 allocation.
7938 (score_gdbarch_init): Drop allocation of tdep structure.
7939 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7940
7941 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7942
7943 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7944 regset structures.
7945 (am33_regset_from_core_section): Remove dynamic regset
7946 allocations.
7947
7948 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7949
7950 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7951 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7952 structures.
7953 (mips_linux_regset_from_core_section): Remove dynamic regset
7954 allocations.
7955 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7956 'gregset64', 'fpregset', and 'fpregset64'.
7957 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7958 deleted tdep fields.
7959
7960 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7961
7962 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7963 regset structures.
7964 (amd64_regset_from_core_section): Remove dynamic regset
7965 allocations.
7966 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7967 structure.
7968 (amd64obsd_regset_from_core_section): Remove dynamic regset
7969 allocation.
7970 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7971 Likewise.
7972 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7973 x86-common regset supply function.
7974 * i386-tdep.c (i386_collect_gregset): Make static.
7975 (i386_gregset): New global regset structure.
7976 (i386_fpregset, i386_xstateregset): New static regset structures.
7977 (i386_regset_from_core_section): Remove dynamic regset
7978 allocations.
7979 (i386_gdbarch_init): Remove initialization of tdep fields
7980 'gregset', 'fpregset', and 'xstateregset'.
7981 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7982 'fpregset', and 'xstateregset'.
7983 (i386_collect_gregset): Remove prototype.
7984 (i386_gregset): New declaration.
7985 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7986 structure.
7987 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7988 allocation.
7989
7990 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7991
7992 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7993 (arm_linux_vfpregset): New static regset structures.
7994 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7995 regset structures.
7996 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7997 and 'vfpregset' fields.
7998
7999 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8000
8001 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8002 (aarch64_linux_fpregset): New static regset structures.
8003 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8004 of regset structures.
8005 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8006 'fpregset' fields.
8007
8008 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8009
8010 * regset.h (struct regset): Remove gdbarch field.
8011 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8012 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8013 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8014 Likewise.
8015 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8016 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8017 (ppc32_linux_vsxregset): Likewise.
8018 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8019 via the regcache instead of the regset.
8020 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8021 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8022 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8023 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8024 Likewise.
8025
8026 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8027
8028 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8029 Constify structures.
8030 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8031 (alphanbsd_aout_gregset): Likewise.
8032 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8033 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8034 Likewise.
8035 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8036 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8037 Likewise.
8038 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8039 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8040 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8041 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8042 * m88k-tdep.c (m88k_gregset): Likewise.
8043 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8044 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8045 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8046 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8047 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8048 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8049 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8050 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8051 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8052 Likewise.
8053 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8054 * sh-tdep.h (sh_corefile_gregset): Likewise.
8055 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8056 * vax-tdep.c (vax_gregset): Likewise.
8057
8058 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8059
8060 Fix TLS access for -static -pthread.
8061 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8062 (try_thread_db_load_1): Initialize it.
8063 (thread_db_get_thread_local_address): Call it if LM is zero.
8064 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8065 * target.h (struct target_ops) (to_get_thread_local_address): Add
8066 load_module_addr comment.
8067
8068 2014-05-21 Pedro Alves <palves@redhat.com>
8069
8070 * dcache.c (dcache_read_memory_partial): If reading the cache line
8071 fails, fallback to reading just the memory the caller wanted.
8072
8073 2014-05-20 Doug Evans <dje@google.com>
8074
8075 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8076 instead of get_current_arch.
8077
8078 2014-05-20 Pedro Alves <palves@redhat.com>
8079
8080 * NEWS: Mention that compare-sections now works with all targets.
8081
8082 * remote.c (PACKET_qCRC): New enum value.
8083 (remote_verify_memory): Don't send qCRC if the target has no
8084 execution. Use packet_support/packet_ok. If the target doesn't
8085 support the qCRC packet, fallback to a deep memory copy.
8086 (compare_sections_command): Say "target image" instead of "remote
8087 executable".
8088 (_initialize_remote): Add PACKET_qCRC to the list of config
8089 packets that have no associated command. Extend comment.
8090 * target.c (simple_verify_memory, default_verify_memory): New
8091 function.
8092 * target.h (struct target_ops) <to_verify_memory>: Default to
8093 default_verify_memory.
8094 (simple_verify_memory): New declaration.
8095 * target-delegates.c: Regenerate.
8096
8097 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8098
8099 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8100
8101 2014-05-20 Hui Zhu <hui@codesourcery.com>
8102 Yao Qi <yao@codesourcery.com>
8103
8104 PR backtrace/16558
8105 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8106 and change address of sp and pc.
8107
8108 2014-05-19 Tom Tromey <tromey@redhat.com>
8109
8110 * gdbtypes.c (rank_function): Use XNEWVEC.
8111 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8112
8113 2014-05-19 Doug Evans <dje@google.com>
8114
8115 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8116 build_type_unit_groups and moved closer to only caller. Remove
8117 arguments. All references updated. Remove outdated .gdb_index
8118 comment.
8119 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8120 build_type_psymtabs_1.
8121
8122 2014-05-19 Doug Evans <dje@google.com>
8123
8124 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8125 n_type_unit_groups, all_type_unit_groups. All uses removed.
8126 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8127 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8128 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8129 (add_type_unit_group_to_table): Delete.
8130
8131 2014-05-19 Doug Evans <dje@google.com>
8132
8133 * eval.c (evaluate_subexp_standard): Add some comments.
8134
8135 2014-05-17 Doug Evans <xdje42@gmail.com>
8136
8137 * progspace.c (remove_program_space): Delete, unused.
8138 * progspace.h (remove_program_space): Ditto.
8139
8140 2014-05-17 Doug Evans <xdje42@gmail.com>
8141
8142 * inferior.c (prune_inferiors): Fix comment.
8143 (remove_inferior_command): Call prune_program_spaces.
8144
8145 2014-05-16 Doug Evans <dje@google.com>
8146
8147 New command line option -D.
8148 * NEWS: Mention it.
8149 * main.c (set_gdb_data_directory): New function.
8150 (captured_main): Recognize -D. Flag error for --data-directory "".
8151 Call set_gdb_data_directory.
8152 (print_gdb_help): Print --data-directory, -D.
8153 * main.h (set_gdb_data_directory): Declare.
8154 * top.c (staged_gdb_datadir): New static global.
8155 (set_gdb_datadir): Call set_gdb_data_directory
8156 (show_gdb_datadir): New function.
8157 (init_main): Update init of data-directory parameter.
8158
8159 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8160
8161 Import the "dirfd" gnulib module.
8162 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8163 * gnulib/aclocal.m4: Update.
8164 * gnulib/config.in: Update.
8165 * gnulib/configure: Update.
8166 * gnulib/import/Makefile.am: Update.
8167 * gnulib/import/Makefile.in: Update.
8168 * gnulib/import/dirfd.c: New.
8169 * gnulib/import/m4/dirfd.m4: New.
8170 * gnulib/import/m4/gnulib-cache.m4: Update.
8171 * gnulib/import/m4/gnulib-comp.m4: Update.
8172
8173 2014-05-16 Pierre Muller <muller@sourceware.org>
8174 Yao Qi <yao@codesourcery.com>
8175
8176 * valprint.c (print_wchar): Move the code on checking whether
8177 W is a printable wide char to the default branch of switch
8178 statement below. Call wchar_printable instead of gdb_iswprint.
8179
8180 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8181
8182 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8183 ldr.w and ldrd instructions.
8184
8185 2014-05-15 Doug Evans <dje@google.com>
8186
8187 * dwarf2read.c (read_structure_type): Delete outdated comments.
8188
8189 2014-05-14 Tom Tromey <tromey@redhat.com>
8190
8191 * macrocmd.c (print_macro_definition): Reindent.
8192
8193 2014-05-13 Doug Evans <xdje42@gmail.com>
8194
8195 * python/py-cmd.c (cmdpy_completer): Add comment.
8196 (completers): Make const.
8197
8198 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8199
8200 * infrun.c (resume): Remove should_resume (unused). Move up
8201 declaration of resume_ptid.
8202
8203 2014-05-13 Tom Tromey <tromey@redhat.com>
8204
8205 * language.h (unop_type_check): Remove.
8206 (binop_type_check): Don't declare.
8207
8208 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8209
8210 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8211 call to regcache_raw_collect.
8212
8213 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8214
8215 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8216 mi_console->quote as the quoting character.
8217
8218 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8219
8220 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8221
8222 2014-04-29 Tom Tromey <tromey@redhat.com>
8223
8224 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8225 "show debug varobj".
8226
8227 2014-05-07 Kyle McMartin <kyle@redhat.com>
8228
8229 Pushed by Joel Brobecker <brobecker@adacore.com>.
8230 * aarch64-tdep.c (aarch64_software_single_step): New function.
8231 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8232 with aarch64_software_single_step.
8233
8234 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8235
8236 GDB 7.7.1 released.
8237
8238 2014-05-05 Keith Seitz <keiths@redhat.com>
8239
8240 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8241 variable or history value is successfully parsed.
8242
8243 2014-05-05 Yao Qi <yao@codesourcery.com>
8244 Pedro Alves <palves@redhat.com>
8245
8246 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8247 address of blocks that intersects the requested range. Trim
8248 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8249 sections.
8250 * ctf.c (ctf_xfer_partial): Likewise.
8251
8252 2014-05-05 Yao Qi <yao@codesourcery.com>
8253
8254 * printcmd.c (display_command): Remove the check to
8255 target_has_execution.
8256
8257 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8258
8259 * ppcobsd-nat.c: Include "obsd-nat.h".
8260 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8261 add_target.
8262 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8263
8264 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8265
8266 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8267 and 16-bit signed and unsigned arguments. Update comment.
8268 (stap_parse_probe_arguments): Extend code to handle such
8269 arguments. Use warning instead of complaint to notify about
8270 unrecognized bitness.
8271
8272 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8273
8274 PR breakpoints/16889
8275 * stap-probe.c (stap_parse_probe_arguments): Simplify
8276 check for non-prefixed probes (i.e., probes whose
8277 arguments do not start with "N@"). Always set the
8278 argument type to a sane value.
8279
8280 2014-05-01 David Taylor <dtaylor@emc.com>
8281
8282 * remote.c (compare_sections_command): Add -r option to compare
8283 all loadable read-only sections.
8284
8285 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8286
8287 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8288 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8289 Update all callers.
8290 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8291 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8292 Remove unused CORE_ADDR argument. Update all callers.
8293
8294 2014-04-29 Pedro Alves <palves@redhat.com>
8295
8296 * remote.c (struct packet_config) <detect>: Extend comment.
8297 (add_packet_config_cmd): Don't set the config's detect or support
8298 fields here.
8299 (init_all_packet_configs): Also initialize the config's 'detect'
8300 field.
8301 (reset_all_packet_configs_support): New function.
8302 (remote_open_1): Call reset_all_packet_configs_support instead of
8303 init_all_packet_configs.
8304 (_initialize_remote): Initialize all packet configs. Assert that
8305 all packets have an associated command, except a few known
8306 outliers.
8307
8308 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8309
8310 * dwarf2read.c (read_subrange_type): Handle dynamic
8311 DW_AT_lower_bound attributes.
8312
8313 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8314
8315 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8316 dynamic bounds before computing its upper bound.
8317 (ada_discrete_type_low_bound): Same as above with the lower bound.
8318
8319 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8320
8321 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8322 range types. Adjust the array handling implementation to
8323 take advantage of this change.
8324 (resolve_dynamic_range): New function, mostly extracted from
8325 resolve_dynamic_bounds.
8326 (resolve_dynamic_array): New function, mostly extracted from
8327 resolve_dynamic_bounds.
8328 (resolve_dynamic_bounds): Delete.
8329 (resolve_dynamic_type): Reimplement. Add handling of
8330 TYPE_CODE_RANGE types.
8331
8332 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8333
8334 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8335 handling of parallel ___XA types.
8336
8337 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8338
8339 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8340 unnecessary second call to static_unwrap_type.
8341
8342 2014-04-27 Hui Zhu <hui@codesourcery.com>
8343
8344 * stack.c (print_frame_info): Call do_gdb_disassembly with
8345 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8346
8347 2014-04-26 Doug Evans <xdje42@gmail.com>
8348
8349 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8350
8351 2014-04-25 Pedro Alves <palves@redhat.com>
8352
8353 PR server/16255
8354 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8355 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8356 and newline from built string.
8357 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8358 (linux_ptrace_attach_fail_reason): ... this.
8359 * linux-nat.c (linux_nat_attach): Adjust to use
8360 linux_ptrace_attach_fail_reason.
8361
8362 2014-04-25 Pedro Alves <palves@redhat.com>
8363
8364 * remote.c (struct remote_state): Remove multi_process_aware,
8365 non_stop_aware, cond_tracepoints, cond_breakpoints,
8366 breakpoint_commands, fast_tracepoints, static_tracepoints,
8367 install_in_trace, disconnected_tracing,
8368 enable_disable_tracepoints, string_tracing, and
8369 augmented_libraries_svr4_read fields.
8370 (remote_multi_process_p): Move further below in the file.
8371 (struct packet_config): Add comments.
8372 (update_packet_config): Delete function.
8373 (show_packet_config_cmd): Use packet_config_support.
8374 (add_packet_config_cmd): Use NULL as set callback.
8375 (packet_ok): "set remote foo-packet"-style commands no longer
8376 change config->supported -- adjust.
8377 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8378 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8379 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8380 (PACKET_QNonStop, PACKET_multiprocess_feature)
8381 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8382 (PACKET_DisconnectedTracing_feature)
8383 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8384 (set_remote_protocol_packet_cmd): Delete function.
8385 (packet_config_support, packet_support): New functions.
8386 (set_remote_protocol_Z_packet_cmd): Don't call
8387 update_packet_config.
8388 (remote_query_attached, remote_pass_signals)
8389 (remote_program_signals, remote_threads_info)
8390 (remote_threads_extra_info, remote_start_remote): Use
8391 packet_support.
8392 (remote_start_remote): Use packet_config_support and
8393 packet_support.
8394 (init_all_packet_configs): Set all packets to unknown support,
8395 instead of calling update_packet_config.
8396 (remote_check_symbols): Use packet_support.
8397 (remote_supported_packet): Unconditionally set the packet config's
8398 support status.
8399 (remote_multi_process_feature, remote_non_stop_feature)
8400 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8401 (remote_breakpoint_commands_feature)
8402 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8403 (remote_install_in_trace_feature)
8404 (remote_disconnected_tracing_feature)
8405 (remote_enable_disable_tracepoint_feature)
8406 (remote_string_tracing_feature)
8407 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8408 (remote_protocol_features): Adjust to use remote_supported_packet
8409 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8410 "ConditionalTracepoints", "ConditionalBreakpoints",
8411 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8412 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8413 "EnableDisableTracepoints", and "tracenz".
8414 (remote_query_supported): Use packet_support.
8415 (remote_open_1): Adjust.
8416 (extended_remote_attach_1): Use packet_support. Switch on the
8417 result of packet_ok instead of checking whether the packet ended
8418 up disabled.
8419 (remote_vcont_resume): Use packet_support.
8420 (remote_resume, remote_stop_ns, fetch_register_using_p)
8421 (remote_prepare_to_store, store_register_using_P)
8422 (check_binary_download, remote_write_bytes): Use packet_support.
8423 (remote_vkill): Use packet_support. Switch on the result of
8424 packet_ok instead of checking whether the packet ended up
8425 disabled.
8426 (extended_remote_supports_disable_randomization): Use
8427 packet_support.
8428 (extended_remote_run): Switch on the result of packet_ok instead
8429 of checking whether the packet ended up disabled.
8430 (remote_insert_breakpoint, remote_remove_breakpoint)
8431 (remote_insert_watchpoint, remote_remove_watchpoint)
8432 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8433 packet_support.
8434 (remote_search_memory): Use packet_config_support.
8435 (remote_get_thread_local_address, remote_get_tib_address)
8436 (remote_hostio_send_command, remote_can_execute_reverse): Use
8437 packet_support.
8438 (remote_supports_cond_tracepoints)
8439 (remote_supports_cond_breakpoints)
8440 (remote_supports_fast_tracepoints)
8441 (remote_supports_static_tracepoints)
8442 (remote_supports_install_in_trace)
8443 (remote_supports_enable_disable_tracepoint)
8444 (remote_supports_string_tracing)
8445 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8446 the packet config says the feature is enabled or disabled.
8447 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8448 (remote_get_trace_status): Use packet_support.
8449 (remote_set_disconnected_tracing): Adjust to check whether the
8450 feature is enabled with packet_support.
8451 (remote_set_trace_buffer_size, remote_use_agent)
8452 (remote_can_use_agent, remote_supports_btrace): Use
8453 packet_support.
8454 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8455 Use packet_config_support.
8456 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8457 the packet config says the feature is enabled or disabled.
8458 (set_range_stepping): Use packet_support.
8459
8460 2014-04-25 Tom Tromey <tromey@redhat.com>
8461
8462 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8463 argument.
8464
8465 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8466
8467 * NEWS: Mention support for C99 variable length arrays.
8468
8469 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8470
8471 * ada-lang.c (standard_exc): Expand introductory comment.
8472
8473 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8474 Walfred Tedeschi <walfred.tedeschi@intel.com>
8475
8476 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8477 AVX512 registers.
8478 (amd64_linux_read_description): Add code to handle AVX512 xstate
8479 mask and return respective tdesc.
8480 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8481 and features/i386/x32-avx512-linux.c.
8482 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8483 (amd64_linux_core_read_description): Add code to handle AVX512
8484 xstate mask and return respective tdesc.
8485 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8486 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8487 calculation.
8488 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8489 (tdesc_amd64_avx512_linux): New prototype.
8490 (tdesc_x32_avx512_linux): Likewise.
8491 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8492 features/i386/x32-avx512.c.
8493 (amd64_ymm_avx512_names): New register names for pseudo
8494 registers YMM16-31.
8495 (amd64_ymmh_avx512_names): New register names for raw registers
8496 YMMH16-31.
8497 (amd64_k_names): New register names for K registers.
8498 (amd64_zmmh_names): New register names for ZMM raw registers.
8499 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8500 (amd64_xmm_avx512_names): New register names for XMM16-31
8501 registers.
8502 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8503 registers.
8504 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8505 if feature is present.
8506 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8507 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8508 (AMD64_NUM_REGS): Adjust to new number of registers.
8509 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8510 registers supplied via XSTATE by AVX512 registers.
8511 (i386_linux_read_description): Add case for AVX512.
8512 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8513 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8514 (i386_linux_core_read_description): Add case for AVX512.
8515 (i386_linux_init_abi): Install supported register note section
8516 for AVX512.
8517 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8518 AVX512.
8519 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8520 registers to be number of zmm7h + 1.
8521 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8522 * i386-tdep.c: Include features/i386/i386-avx512.c.
8523 (i386_zmm_names): Add ZMM pseudo register names array.
8524 (i386_zmmh_names): Add ZMM raw register names array.
8525 (i386_k_names): Add K raw register names array.
8526 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8527 registers. AVX512 has 16 more ZMM registers than there are YMM
8528 registers.
8529 (i386_zmmh_regnum_p): Add function to look up register number of
8530 ZMM raw registers.
8531 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8532 (i386_k_regnum_p): Likewise for K raw registers.
8533 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8534 registers added by AVX512.
8535 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8536 registers added by AVX512.
8537 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8538 added by AVX512.
8539 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8540 (i386_pseudo_register_name): Add ZMM pseudo registers.
8541 (i386_zmm_type): Construct and return vector registers type for ZMM
8542 registers.
8543 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8544 ZMM0-31 pseudo registers and K registers.
8545 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8546 and YMM16-31 registers from register cache.
8547 (i386_pseudo_register_write): Add code to write K, ZMM and
8548 YMM16-31 registers.
8549 (i386_register_reggroup_p): Add code to include/exclude AVX512
8550 registers in/from respective register groups.
8551 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8552 registers if feature is present in xcr0.
8553 (i386_gdbarch_init): Add code to initialize AVX512 feature
8554 variables in tdep structure, wire in pseudo registers and call
8555 initialize_tdesc_i386_avx512.
8556 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8557 variables.
8558 (i386_regnum): Add AVX512 registers.
8559 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8560 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8561 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8562 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8563 512 bits wide.
8564 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8565 (i386_ymm_avx512_regnum_p): Likewise.
8566 (i386_k_regnum_p): Likewise.
8567 (i386_zmm_regnum_p): Likewise.
8568 (i386_zmmh_regnum_p): Likewise.
8569 * i387-tdep.c : Update year in copyright notice.
8570 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8571 XSAVE buffer.
8572 (XSAVE_YMM_AVX512_ADDR): New macro.
8573 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8574 XSAVE buffer.
8575 (XSAVE_XMM_AVX512_ADDR): New macro.
8576 (xsave_avx512_k_offset): New table for K register offsets in
8577 XSAVE buffer.
8578 (XSAVE_AVX512_K_ADDR): New macro.
8579 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8580 in XSAVE buffer.
8581 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8582 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8583 buffer.
8584 (i387_collect_xsave): Add code to collect AVX512 registers from
8585 XSAVE buffer.
8586 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8587 of XMM16-31 registers.
8588 (I387_NUM_K_REGS): New define for number of K registers.
8589 (I387_K0_REGNUM): New define for K0 register number.
8590 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8591 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8592 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8593 registers.
8594 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8595 (I387_XMM16_REGNUM): New define for XMM16 register number.
8596 (I387_YMM0_REGNUM): New define for YMM0 register number.
8597 (I387_KEND_REGNUM): New define for last K register number.
8598 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8599 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8600 number.
8601 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8602 number.
8603 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8604 size.
8605 * features/Makefile: Add AVX512 related files.
8606 * features/i386/32bit-avx512.xml: New file.
8607 * features/i386/64bit-avx512.xml: Likewise.
8608 * features/i386/amd64-avx512-linux.c: Likewise.
8609 * features/i386/amd64-avx512-linux.xml: Likewise.
8610 * features/i386/amd64-avx512.c: Likewise.
8611 * features/i386/amd64-avx512.xml: Likewise.
8612 * features/i386/i386-avx512-linux.c: Likewise.
8613 * features/i386/i386-avx512-linux.xml: Likewise.
8614 * features/i386/i386-avx512.c: Likewise.
8615 * features/i386/i386-avx512.xml: Likewise.
8616 * features/i386/x32-avx512-linux.c: Likewise.
8617 * features/i386/x32-avx512-linux.xml: Likewise.
8618 * features/i386/x32-avx512.c: Likewise.
8619 * features/i386/x32-avx512.xml: Likewise.
8620 * regformats/i386/amd64-avx512-linux.dat: New file.
8621 * regformats/i386/amd64-avx512.dat: Likewise.
8622 * regformats/i386/i386-avx512-linux.dat: Likewise.
8623 * regformats/i386/i386-avx512.dat: Likewise.
8624 * regformats/i386/x32-avx512-linux.dat: Likewise.
8625 * regformats/i386/x32-avx512.dat: Likewise.
8626 * NEWS: Add note about new support for AVX512.
8627
8628
8629 2014-04-23 Pedro Alves <palves@redhat.com>
8630
8631 * breakpoint.c (insert_bp_location): Tolerate errors if the
8632 breakpoint is set in a user-loaded objfile.
8633 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8634 location is marked shlib_disabled. If the breakpoint is set in a
8635 user-loaded objfile is a GDB-side memory breakpoint, validate it
8636 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8637 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8638 flag.
8639 * mem-break.c (memory_validate_breakpoint): New function.
8640 * objfiles.c (userloaded_objfile_contains_address_p): New
8641 function.
8642 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8643 * target.h (memory_validate_breakpoint): New declaration.
8644
8645 2014-04-23 Pedro Alves <palves@redhat.com>
8646
8647 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8648 the breakpoint is set in a shared library, only suppress
8649 errors for software breakpoints, not hardware breakpoints.
8650
8651 2014-04-22 Pedro Alves <palves@redhat.com>
8652
8653 * infrun.c (schedlock_applies): New function, factored out from
8654 find_thread_needs_step_over.
8655 (find_thread_needs_step_over): Use it.
8656 (switch_back_to_stepped_thread): Always clear trap_expected if the
8657 step over is finished. Return early if scheduler locking applies.
8658 Look for the stepping thread and a potential step-over thread with
8659 a single loop.
8660 (currently_stepping_or_nexting_callback): Delete.
8661
8662 2014-04-22 Nick Clifton <nickc@redhat.com>
8663
8664 * NEWS: Mention that ARM sim now supports tracing.
8665
8666 2014-04-22 Yao Qi <yao@codesourcery.com>
8667
8668 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8669 to ...
8670 * tracefile.c (tracefile_fetch_registers): ... it. New
8671 function.
8672 * tracefile.h (tracefile_fetch_registers): Declare.
8673 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8674 tracefile_fetch_registers.
8675
8676 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8677
8678 PR gdb/14018
8679 * windows-nat.c (thread_rec): Don't display a warning when
8680 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8681 fails for any reason, set th->suspended to -1, so that we don't
8682 try to resume such a thread. Also, don't return NULL in these
8683 cases, to avoid completely ruin the session due to "PC register is
8684 not available" error.
8685 (do_windows_fetch_inferior_registers): Check errors in
8686 GetThreadContext call.
8687 (windows_continue): Accept an additional argument KILLED; if not
8688 zero, ignore errors in the SetThreadContext call, since the
8689 inferior was killed and is shutting down.
8690 (windows_resume, get_windows_debug_event)
8691 (windows_create_inferior, windows_mourn_inferior)
8692 (windows_kill_inferior): All callers of windows_continue changed
8693 to adjust to its new calling sequence.
8694
8695 2014-04-19 Yao Qi <yao@codesourcery.com>
8696
8697 * ctf.c (ctf_open): Call post_create_inferior.
8698
8699 2014-04-19 Yao Qi <yao@codesourcery.com>
8700
8701 * ctf.c (handle_id): New static variable.
8702 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8703 value. Get the declaration of event "register" and get length
8704 of field "contents".
8705
8706 2014-04-19 Yao Qi <yao@codesourcery.com>
8707
8708 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8709
8710 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8711
8712 * valops.c (oload_method_static): Remove unnecessary argument
8713 METHOD. Update all callers.
8714
8715 2014-04-18 Pedro alves <palves@redhat.com>
8716 Tom Tromey <tromey@redhat.com>
8717
8718 PR backtrace/15558
8719 * frame.c (get_prev_frame_1): Rename to ...
8720 (get_prev_frame_always): ... this, and make extern. Adjust.
8721 (skip_artificial_frames): Use get_prev_frame_always.
8722 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8723 (get_frame_unwind_stop_reason): Adjust to rename.
8724 * frame.h (get_prev_frame_always): Declare.
8725 * inline-frame.c: Include frame.h.
8726 (inline_frame_this_id): Use get_prev_frame_always.
8727
8728 2014-04-18 Tristan Gingold <gingold@adacore.com>
8729
8730 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8731 code by using bfd_mach_o_get_base_address.
8732
8733 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8734
8735 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8736 (spu_ax_pseudo_register_collect): New function.
8737 (spu_ax_pseudo_register_push_stack): Likewise.
8738 (spu_dwarf_reg_to_regnum): Likewise.
8739 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8740
8741 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8742
8743 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8744 Replace FRAME argument with FRAME_ID.
8745 * gdbarch.c, gdbarch.h: Regenerate.
8746 * findvar.c (default_value_from_register): Add GDBARCH argument;
8747 replace FRAME by FRAME_ID. No longer call get_frame_id.
8748 (value_from_register): Update call to gdbarch_value_from_register.
8749 * value.h (default_value_from_register): Update prototype.
8750 * s390-linux-tdep.c (s390_value_from_register): Update interface
8751 and call to default_value_from_register.
8752 * spu-tdep.c (spu_value_from_register): Likewise.
8753
8754 * findvar.c (address_from_register): Remove TYPE argument.
8755 Do not call value_from_register; use gdbarch_value_from_register
8756 with null_frame_id instead.
8757 * value.h (address_from_register): Update prototype.
8758 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8759 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8760 address_from_register interface change.
8761
8762 2014-04-17 Yao Qi <yao@codesourcery.com>
8763
8764 * gdbtypes.h: Update comments to link to types and macros'
8765 definitions.
8766
8767 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8768
8769 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8770
8771 2014-04-16 Keith Seitz <keiths@redhat.com>
8772
8773 PR gdb/15827
8774 * dwarf2read.c (skip_one_die): Check that all relative-offset
8775 sibling DIEs fall within range of the current reader's buffer.
8776 (read_partial_die): Likewise.
8777
8778 2014-04-16 Keith Seitz <keiths@redhat.com>
8779
8780 PR c++/16597
8781 * cp-namespace.c (lookup_symbol_file): If the type name of
8782 `this' is NULL, return immediately.
8783
8784 2014-04-14 Keith Seitz <keiths@redhat.com>
8785
8786 PR c++/16253
8787 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8788 from symbol_matches_domain in symtab.c. All local callers
8789 of symbol_matches_domain updated.
8790 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8791 search STRUCT_DOMAIN.
8792 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8793 independently. standard_lookup will do that automatically.
8794 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8795 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8796 (cp_lookup_symbol_in_namespace): Likewise.
8797 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8798 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8799 may return a STRUCT_DOMAIN match.
8800 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8801 * cp-support.c: Include language.h.
8802 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8803 VAR_DOMAIN.
8804 * psymtab.c (match_partial_symbol): Compare the requested
8805 domain with the symbol's domain directly.
8806 (lookup_partial_symbol): Likewise.
8807 * symtab.c (lookup_symbol_in_language): Explain when/why
8808 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8809 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8810 appropriate languages.
8811 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8812 and moved to ada-lang.c
8813 (lookup_block_symbol): Explain that this function only returns
8814 symbol matching the requested DOMAIN.
8815 Compare the requested domain with the symbol's domain directly.
8816 (iterate_over_symbols): Compare the requested domain with the
8817 symbol's domain directly.
8818 * symtab.h (symbol_matches_domain): Remove.
8819
8820 2014-04-14 Tom Tromey <tromey@redhat.com>
8821
8822 PR c++/15246:
8823 * c-exp.y (type_aggregate_p): New function.
8824 (qualified_name, classify_inner_name): Use it.
8825 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8826 and TYPE_TARGET_TYPE of an enum type.
8827 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8828 an enum type.
8829 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8830 handle TYPE_DECLARED_CLASS.
8831 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8832 types.
8833 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8834 * valops.c (enum_constant_from_type): New function.
8835 (value_aggregate_elt): Use it.
8836 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8837 TYPE_CODE_ENUM.
8838
8839 2014-04-14 Tom Tromey <tromey@redhat.com>
8840
8841 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8842 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8843 const.
8844 * value.h (value_aggregate_elt): Update.
8845
8846 2014-04-14 Tom Tromey <tromey@redhat.com>
8847
8848 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8849
8850 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8851
8852 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8853 (evaluate_subexp_standard): Pass noside argument.
8854 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8855 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8856 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8857 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8858 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8859
8860 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8861
8862 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8863 points to a constant blob.
8864
8865 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8866
8867 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8868 property and store it as the high bound and flag the range accordingly.
8869 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8870 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8871 * gdbtypes.h (enum range_flags): New enum.
8872 (struct range_bounds): Add flags member.
8873
8874 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8875
8876 * c-typeprint.c (c_type_print_varspec_suffix): Added
8877 check for not yet resolved high bound. If unresolved, print
8878 "variable length" string to the console instead of random
8879 length.
8880
8881 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8882
8883 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8884 value.
8885 (ada_template_to_fixed_record_type_1): Likewise.
8886 (ada_to_fixed_type_1): Likewise.
8887 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8888 (cp_print_value): Likewise.
8889 * d-valprint.c (dynamic_array_type): Likewise.
8890 * findvar.c (address_of_variable): Likewise.
8891 * jv-valprint.c (java_value_print): Likewise.
8892 * valops.c (value_ind): Likewise.
8893 * value.c (coerce_ref): Likewise.
8894
8895 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8896
8897 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8898 value and retrieve the dynamic type size.
8899
8900 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8901
8902 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8903 passed to sizeof is dynamic evaluate the argument to compute the length.
8904
8905 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8906 Joel Brobecker <brobecker@adacore.com>
8907
8908 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8909 (dwarf2_evaluate_property): New function.
8910 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8911 * dwarf2read.c (attr_to_dynamic_prop): New function.
8912 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8913 attribute.
8914 * gdbtypes.c: Include dwarf2loc.h.
8915 (is_dynamic_type): New function.
8916 (resolve_dynamic_type): New function.
8917 (resolve_dynamic_bounds): New function.
8918 (get_type_length): New function.
8919 (check_typedef): Use get_type_length to compute type length.
8920 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8921 (TYPE_LOW_BOUND_KIND): New macro.
8922 (is_dynamic_type): New function prototype.
8923 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8924 to resolve dynamic properties of the type. Update comment.
8925 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8926
8927 2014-04-14 Richard Henderson <rth@redhat.com>
8928
8929 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8930
8931 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8932 Doug Evans <xdje42@gmail.com>
8933
8934 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8935 dereference TYPE_CODE_REF values.
8936
8937 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8938
8939 Revert the following changes due to regressions:
8940
8941 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8942 (dwarf2_evaluate_property): New function.
8943 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8944 * dwarf2read.c (attr_to_dynamic_prop): New function.
8945 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8946 attribute.
8947 * gdbtypes.c: Include dwarf2loc.h.
8948 (is_dynamic_type): New function.
8949 (resolve_dynamic_type): New function.
8950 (resolve_dynamic_bounds): New function.
8951 (get_type_length): New function.
8952 (check_typedef): Use get_type_length to compute type length.
8953 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8954 (TYPE_LOW_BOUND_KIND): New macro.
8955 (is_dynamic_type): New function prototype.
8956 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8957 to resolve dynamic properties of the type. Update comment.
8958 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8959
8960 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8961 passed to sizeof is dynamic evaluate the argument to compute the length.
8962
8963 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8964 value and retrieve the dynamic type size.
8965
8966 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8967 (ada_template_to_fixed_record_type_1): Likewise.
8968 (ada_to_fixed_type_1): Likewise.
8969 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8970 (cp_print_value): Likewise.
8971 * d-valprint.c (dynamic_array_type): Likewise.
8972 * eval.c (evaluate_subexp_with_coercion): Likewise.
8973 * findvar.c (address_of_variable): Likewise.
8974 * jv-valprint.c (java_value_print): Likewise.
8975 * valops.c (value_ind): Likewise.
8976 * value.c (coerce_ref): Likewise.
8977
8978 * c-typeprint.c (c_type_print_varspec_suffix): Added
8979 check for not yet resolved high bound. If unresolved, print
8980 "variable length" string to the console instead of random
8981 length.
8982
8983 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8984 property and store it as the high bound and flag the range accordingly.
8985 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8986 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8987 * gdbtypes.h (enum range_flags): New enum.
8988 (struct range_bounds): Add flags member.
8989
8990 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8991 points to a constant blob.
8992
8993 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8994 (evaluate_subexp_standard): Pass noside argument.
8995 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8996 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8997 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8998 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8999 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9000
9001 2014-04-11 Keith Seitz <keiths@redhat.com>
9002
9003 PR c++/16675
9004 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9005 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9006 reference types.
9007
9008 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9009
9010 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9011 (evaluate_subexp_standard): Pass noside argument.
9012 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9013 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9014 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9015 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9016 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9017
9018 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9019
9020 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9021 points to a constant blob.
9022
9023 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9024
9025 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9026 property and store it as the high bound and flag the range accordingly.
9027 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9028 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9029 * gdbtypes.h (enum range_flags): New enum.
9030 (struct range_bounds): Add flags member.
9031
9032 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9033
9034 * c-typeprint.c (c_type_print_varspec_suffix): Added
9035 check for not yet resolved high bound. If unresolved, print
9036 "variable length" string to the console instead of random
9037 length.
9038
9039 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9040
9041 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9042 (ada_template_to_fixed_record_type_1): Likewise.
9043 (ada_to_fixed_type_1): Likewise.
9044 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9045 (cp_print_value): Likewise.
9046 * d-valprint.c (dynamic_array_type): Likewise.
9047 * eval.c (evaluate_subexp_with_coercion): Likewise.
9048 * findvar.c (address_of_variable): Likewise.
9049 * jv-valprint.c (java_value_print): Likewise.
9050 * valops.c (value_ind): Likewise.
9051 * value.c (coerce_ref): Likewise.
9052
9053 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9054
9055 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9056 value and retrieve the dynamic type size.
9057
9058 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9059
9060 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9061 passed to sizeof is dynamic evaluate the argument to compute the length.
9062
9063 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9064
9065 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9066 (dwarf2_evaluate_property): New function.
9067 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9068 * dwarf2read.c (attr_to_dynamic_prop): New function.
9069 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9070 attribute.
9071 * gdbtypes.c: Include dwarf2loc.h.
9072 (is_dynamic_type): New function.
9073 (resolve_dynamic_type): New function.
9074 (resolve_dynamic_bounds): New function.
9075 (get_type_length): New function.
9076 (check_typedef): Use get_type_length to compute type length.
9077 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9078 (TYPE_LOW_BOUND_KIND): New macro.
9079 (is_dynamic_type): New function prototype.
9080 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9081 to resolve dynamic properties of the type. Update comment.
9082 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9083
9084 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9085
9086 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9087 declaring high/low bounds and change uses accordingly. Call
9088 create_range_type instead of create_static_range_type.
9089 * gdbtypes.c (create_range_type): New function.
9090 (create_range_type): Convert bounds into struct bound_prop and pass
9091 them to create_range_type.
9092 * gdbtypes.h (struct bound_prop): New struct.
9093 (create_range_type): New function prototype.
9094 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9095 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9096 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9097 part of the bound.
9098 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9099
9100 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9101
9102 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9103 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9104 * ada-lang.c: All uses of create_range_type updated.
9105 * coffread.c: All uses of create_range_type updated.
9106 * dwarf2read.c: All uses of create_range_type updated.
9107 * f-exp.y: All uses of create_range_type updated.
9108 * m2-valprint.c: All uses of create_range_type updated.
9109 * mdebugread.c: All uses of create_range_type updated.
9110 * stabsread.c: All uses of create_range_type updated.
9111 * valops.c: All uses of create_range_type updated.
9112 * valprint.c: All uses of create_range_type updated.
9113
9114 2014-04-10 Pedro Alves <palves@redhat.com>
9115
9116 * breakpoint.c (single_step_breakpoints)
9117 (single_step_gdbarch): Move up in the file.
9118 (one_breakpoint_xfer_memory): New function, factored out from ...
9119 (breakpoint_xfer_memory): ... here. Also process single-step
9120 breakpoints.
9121
9122 2014-04-09 Tristan Gingold <gingold@adacore.com>
9123
9124 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9125 comments.
9126 (darwin_decode_exception_message): Free port only after use.
9127
9128 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9129
9130 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9131 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9132 when setting the size of call_length.
9133
9134 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9135
9136 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9137 dereference TYPE_CODE_REF values.
9138
9139 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9140
9141 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9142 end of warning message.
9143
9144 2014-04-03 Doug Evans <dje@google.com>
9145
9146 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9147 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9148
9149 2014-04-02 Alan Modra <amodra@gmail.com>
9150
9151 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9152 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9153 (struct symbol_file_add_from_memory_args): Add size field.
9154 (find_vdso_size): New function.
9155 (add_vsyscall_page): Attempt to find vdso size.
9156
9157 2014-04-01 Doug Evans <dje@google.com>
9158
9159 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9160
9161 2014-04-01 Tristan Gingold <gingold@adacore.com>
9162
9163 * darwin-nat.c (darwin_encode_reply): Add prototype.
9164 (darwin_decode_exception_message): Reply to unknown inferiors.
9165 (darwin_decode_message): Handle message by id. Ignore message
9166 to unknown inferior.
9167 (darwin_wait): Discard unknown messages, add debug trace.
9168
9169 2014-03-31 Doug Evans <dje@google.com>
9170
9171 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9172 comp_dir_string.
9173
9174 2014-03-31 Doug Evans <dje@google.com>
9175
9176 New option "set print symbol-loading".
9177 * NEWS: Mention it.
9178 * solib.c (solib_read_symbols): Only print symbol loading messages
9179 if requested.
9180 (solib_add): If symbol loading is in "brief" mode, notify user
9181 symbols are being loaded.
9182 (reload_shared_libraries_1): Ditto.
9183 * symfile.c (print_symbol_loading_off): New static global.
9184 (print_symbol_loading_brief): New static global.
9185 (print_symbol_loading_full): New static global.
9186 (print_symbol_loading_enums): New static global.
9187 (print_symbol_loading): New static global.
9188 (print_symbol_loading_p): New function.
9189 (symbol_file_add_with_addrs): Only print symbol loading messages
9190 if requested.
9191 (_initialize_symfile): Register "print symbol-loading" set/show
9192 command.
9193 * symfile.h (print_symbol_loading_p): Declare.
9194
9195 2014-03-30 Doug Evans <xdje42@gmail.com>
9196
9197 * infrun.c (set_last_target_status): New function.
9198 (handle_inferior_event): Call it.
9199
9200 2014-03-30 Doug Evans <xdje42@gmail.com>
9201
9202 * inferior.h (enum stop_kind): Improve comment.
9203
9204 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9205
9206 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9207 a reference, strip the reference layer before calling
9208 the lang_ops value_has_mutated callback.
9209
9210 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9211
9212 Remove some globals from our parser.
9213 * language.c (unk_lang_parser): Add "struct parser_state"
9214 argument.
9215 * language.h (struct language_defn) <la_parser>: Likewise.
9216 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9217 (initialize_expout): Add "struct parser_state" argument.
9218 Rewrite function to use the parser state.
9219 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9220 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9221 write_exp_elt_longcst, write_exp_elt_dblcst,
9222 write_exp_elt_decfloatcst, write_exp_elt_type,
9223 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9224 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9225 write_dollar_variable): Likewise.
9226 (parse_exp_in_context_1): Use parser state.
9227 (insert_type_address_space): Add "struct parser_state" argument.
9228 Use parser state.
9229 (increase_expout_size): New function.
9230 * parser-defs.h: Forward declare "struct language_defn" and
9231 "struct parser_state".
9232 (expout, expout_size, expout_ptr): Remove extern declarations.
9233 (parse_gdbarch, parse_language): Rewrite macro declarations to
9234 accept the parser state.
9235 (struct parser_state): New struct.
9236 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9237 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9238 write_exp_elt_decfloatcst, write_exp_elt_type,
9239 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9240 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9241 write_exp_msymbol, write_dollar_variable,
9242 mark_struct_expression, insert_type_address_space): Add "struct
9243 parser_state" argument.
9244 (increase_expout_size): New function.
9245 * utils.c (do_clear_parser_state): New function.
9246 (make_cleanup_clear_parser_state): Likewise.
9247 * utils.h (make_cleanup_clear_parser_state): New function
9248 prototype.
9249 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9250 Update calls to write_exp* in order to pass the parser state.
9251 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9252 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9253 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9254 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9255 * stap-probe.c (stap_parse_register_operand): Likewise.
9256 (stap_parse_single_operand): Likewise.
9257 (stap_parse_argument_1): Likewise.
9258 (stap_parse_argument): Use parser state.
9259 * stap-probe.h: Include "parser-defs.h".
9260 (struct stap_parse_info) <pstate>: New field.
9261 * c-exp.y (parse_type): Rewrite to use parser state.
9262 (yyparse): Redefine to c_parse_internal.
9263 (pstate): New global variable.
9264 (parse_number): Add "struct parser_state" argument.
9265 (write_destructor_name): Likewise.
9266 (type_exp): Update calls to write_exp* and similars in order to
9267 use parser state.
9268 (exp1, exp, variable, qualified_name, space_identifier,
9269 typename, typebase): Likewise.
9270 (write_destructor_name, parse_number, lex_one_token,
9271 classify_name, classify_inner_name, c_parse): Add "struct
9272 parser_state" argument. Update function to use parser state.
9273 * c-lang.h: Forward declare "struct parser_state".
9274 (c_parse): Add "struct parser_state" argument.
9275 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9276 (yyparse): Redefine macro to ada_parse_internal.
9277 (pstate): New variable.
9278 (write_int, write_object_renaming, write_var_or_type,
9279 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9280 type_int, type_long, type_long_long, type_float, type_double,
9281 type_long_double, type_char, type_boolean, type_system_address):
9282 Add "struct parser_state" argument.
9283 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9284 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9285 var_or_type, aggregate, aggregate_component_list,
9286 positional_list, others, component_group,
9287 component_associations): Update calls to write_exp* and similar
9288 functions in order to use parser state.
9289 (ada_parse, write_var_from_sym, write_int,
9290 write_exp_op_with_string, write_object_renaming,
9291 find_primitive_type, write_selectors, write_ambiguous_var,
9292 write_var_or_type, write_name_assoc, type_int, type_long,
9293 type_long_long, type_float, type_double, type_long_double,
9294 type_char, type_boolean, type_system_address): Add "struct
9295 parser_state" argument. Adjust function to use parser state.
9296 * ada-lang.c (parse): Likewise.
9297 * ada-lang.h: Forward declare "struct parser_state".
9298 (ada_parse): Add "struct parser_state" argument.
9299 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9300 calls to both functions.
9301 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9302 parser state.
9303 (yyparse): Redefine macro to f_parse_internal.
9304 (pstate): New variable.
9305 (parse_number): Add "struct parser_state" argument.
9306 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9307 and similars in order to use parser state.
9308 (parse_number): Adjust code to use parser state.
9309 (yylex): Likewise.
9310 (f_parse): New function.
9311 * f-lang.h: Forward declare "struct parser_state".
9312 (f_parse): Add "struct parser_state" argument.
9313 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9314 parser state.
9315 (yyparse): Redefine macro for java_parse_internal.
9316 (pstate): New variable.
9317 (push_expression_name, push_expression_name, insert_exp): Add
9318 "struct parser_state" argument.
9319 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9320 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9321 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9322 PostIncrementExpression, PostDecrementExpression,
9323 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9324 UnaryExpressionNotPlusMinus, CastExpression,
9325 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9326 RelationalExpression, EqualityExpression, AndExpression,
9327 ExclusiveOrExpression, InclusiveOrExpression,
9328 ConditionalAndExpression, ConditionalOrExpression,
9329 ConditionalExpression, Assignment, LeftHandSide): Update
9330 calls to write_exp* and similars in order to use parser state.
9331 (parse_number): Ajust code to use parser state.
9332 (yylex): Likewise.
9333 (java_parse): New function.
9334 (push_variable): Add "struct parser_state" argument. Adjust
9335 code to user parser state.
9336 (push_fieldnames, push_qualified_expression_name,
9337 push_expression_name, insert_exp): Likewise.
9338 * jv-lang.h: Forward declare "struct parser_state".
9339 (java_parse): Add "struct parser_state" argument.
9340 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9341 parser state.
9342 (yyparse): Redefine macro to m2_parse_internal.
9343 (pstate): New variable.
9344 (type_exp, exp, fblock, variable, type): Update calls to
9345 write_exp* and similars to use parser state.
9346 (yylex): Likewise.
9347 (m2_parse): New function.
9348 * m2-lang.h: Forward declare "struct parser_state".
9349 (m2_parse): Add "struct parser_state" argument.
9350 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9351 * objc-lang.h: Forward declare "struct parser_state".
9352 (end_msglist): Add "struct parser_state" argument.
9353 * p-exp.y (parse_type): Rewrite macro to use parser state.
9354 (yyparse): Redefine macro to pascal_parse_internal.
9355 (pstate): New variable.
9356 (parse_number): Add "struct parser_state" argument.
9357 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9358 write_exp* and similars in order to use parser state.
9359 (parse_number, yylex): Adjust code to use parser state.
9360 (pascal_parse): New function.
9361 * p-lang.h: Forward declare "struct parser_state".
9362 (pascal_parse): Add "struct parser_state" argument.
9363 * go-exp.y (parse_type): Rewrite macro to use parser state.
9364 (yyparse): Redefine macro to go_parse_internal.
9365 (pstate): New variable.
9366 (parse_number): Add "struct parser_state" argument.
9367 (type_exp, exp1, exp, variable, type): Update calls to
9368 write_exp* and similars in order to use parser state.
9369 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9370 to use parser state.
9371 (go_parse): Likewise.
9372 * go-lang.h: Forward declare "struct parser_state".
9373 (go_parse): Add "struct parser_state" argument.
9374
9375 2014-03-27 Doug Evans <dje@google.com>
9376
9377 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9378
9379 2014-03-27 Doug Evans <dje@google.com>
9380
9381 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9382 Remove argument abbrev_section. All callers updated.
9383
9384 2014-03-27 Doug Evans <dje@google.com>
9385
9386 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9387 addr_base, ranges_base.
9388
9389 2014-03-26 Keith Seitz <keiths@redhat.com>
9390
9391 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9392 types, not VAR_DOMAIN.
9393
9394 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9395
9396 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9397 "ra" registers.
9398 * features/nios2-linux.c: Regenerated.
9399 * features/nios2.c: Regenerated.
9400
9401 2014-03-25 Pedro Alves <palves@redhat.com>
9402
9403 * cli/cli-script.c (script_from_file): Force the interpreter to
9404 sync mode.
9405
9406 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9407
9408 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9409 small stack allocation.
9410
9411 2014-03-24 Tristan Gingold <gingold@adacore.com>
9412
9413 * darwin-nat.c (exc_server): Remove unused prototype.
9414 (darwin_dump_message): Correctly display data on x86_64.
9415 (darwin_encode_reply): Fix style.
9416 Add comments and fix indentation.
9417
9418 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9419
9420 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9421
9422 2014-03-22 Doug Evans <xdje42@gmail.com>
9423
9424 * infcmd.c: Whitespace fixes.
9425 (interrupt_command): Merge two function comments into one.
9426
9427 2014-03-22 Doug Evans <xdje42@gmail.com>
9428
9429 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9430 All uses updated.
9431
9432 2014-03-22 Yao Qi <yao@codesourcery.com>
9433
9434 * remote.c (target_read_live_memory): Remove.
9435 (memory_xfer_live_readonly_partial): Rename it to
9436 remote_xfer_live_readonly_partial. Remove argument 'object'.
9437 All callers updated. Call remote_read_bytes_1
9438 instead of target_read_live_memory.
9439 * tracepoint.c (set_traceframe_number): Remove.
9440 (make_cleanup_restore_traceframe_number): Likewise .
9441 * tracepoint.h (set_traceframe_number): Remove declaration.
9442 (make_cleanup_restore_traceframe_number): Likewise.
9443
9444 2014-03-22 Yao Qi <yao@codesourcery.com>
9445
9446 * remote.c (remote_read_bytes): Move code on reading from the
9447 remote stub to ...
9448 (remote_read_bytes_1): ... here. New function.
9449
9450 2014-03-22 Yao Qi <yao@codesourcery.com>
9451
9452 * ctf.c (ctf_xfer_partial): Check the return value of
9453 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9454 return TARGET_XFER_UNAVAILABLE.
9455 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9456 * target.c (target_read_live_memory): Move it to remote.c.
9457 (memory_xfer_live_readonly_partial): Likewise.
9458 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9459 * remote.c (target_read_live_memory): Moved from target.c.
9460 (memory_xfer_live_readonly_partial): Likewise.
9461 (remote_read_bytes): Factored out from
9462 memory_xfer_partial_1.
9463
9464 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9465
9466 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9467 NULL pointer.
9468
9469 2014-03-21 Pedro Alves <palves@redhat.com>
9470
9471 * infrun.c (normal_stop): Extend comment.
9472
9473 2014-03-21 Hui Zhu <hui@codesourcery.com>
9474 Pedro Alves <palves@redhat.com>
9475
9476 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9477 static buffer.
9478 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9479 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9480 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9481
9482 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9483
9484 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9485 `z' formatted output modifier.
9486
9487 2014-03-20 Tom Tromey <tromey@redhat.com>
9488 Sergio Durigan Junior <sergiodj@redhat.com>
9489
9490 * probe.c (parse_probes): Turn assert into an ordinary error.
9491 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9492 exceptions when parsing probes. Rearrange the code for clarity.
9493
9494 2014-03-20 Tom Tromey <tromey@redhat.com>
9495
9496 PR gdb/14135
9497 * top.c (execute_command): Only dispatch events if the command
9498 started the target.
9499
9500 2014-03-20 Tom Tromey <tromey@redhat.com>
9501
9502 PR cli/15718
9503 * infcall.c: Include event-top.h.
9504 (run_inferior_call): Call async_disable_stdin if needed.
9505
9506 2014-03-20 Pedro Alves <palves@redhat.com>
9507
9508 * infrun.c (prepare_to_proceed): Delete.
9509 (thread_still_needs_step_over): New function.
9510 (find_thread_needs_step_over): New function.
9511 (proceed): If the current thread needs a step-over, set its
9512 steping_over_breakpoint flag. Adjust to use
9513 find_thread_needs_step_over instead of prepare_to_proceed.
9514 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9515 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9516 breakpoint.
9517 (switch_back_to_stepped_thread): Step over breakpoints of all
9518 threads not the stepping thread, before switching back to the
9519 stepping thread.
9520
9521 2014-03-20 Pedro Alves <palves@redhat.com>
9522
9523 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9524 extern.
9525 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9526 * infrun.c (saved_singlestep_ptid)
9527 (stepping_past_singlestep_breakpoint): Delete.
9528 (resume): Remove stepping_past_singlestep_breakpoint handling.
9529 (proceed): Store the prev_pc of the stepping thread too.
9530 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9531 singlestep_pc.
9532 (enum infwait_states): Delete infwait_thread_hop_state.
9533 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9534 field.
9535 (handle_inferior_event): Adjust.
9536 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9537 handling and the thread-hop code. Before removing single-step
9538 breakpoints, check whether the thread hit a single-step breakpoint
9539 of another thread. If it did, the trap is not a random signal.
9540 (switch_back_to_stepped_thread): If the event thread hit a
9541 single-step breakpoint, unblock it before switching to the
9542 stepping thread. Handle the case of the stepped thread having
9543 advanced already.
9544 (keep_going): Handle the case of the current thread moving past a
9545 single-step breakpoint.
9546
9547 2014-03-20 Pedro Alves <palves@redhat.com>
9548
9549 PR breakpoints/7143
9550 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9551 are being stepped over.
9552 (breakpoint_address_match): Make extern.
9553 * breakpoint.h (breakpoint_address_match): New declaration.
9554 * inferior.h (stepping_past_instruction_at): New declaration.
9555 * infrun.c (struct step_over_info): New type.
9556 (step_over_info): New global.
9557 (set_step_over_info, clear_step_over_info)
9558 (stepping_past_instruction_at): New functions.
9559 (handle_inferior_event): Clear the step-over info when
9560 trap_expected is cleared.
9561 (resume): Remove now stale comment.
9562 (clear_proceed_status): Clear step-over info.
9563 (proceed): Adjust step-over handling to set or clear the step-over
9564 info instead of removing all breakpoints.
9565 (handle_signal_stop): When setting up a thread-hop, don't remove
9566 breakpoints here.
9567 (stop_stepping): Clear step-over info.
9568 (keep_going): Adjust step-over handling to set or clear step-over
9569 info and then always inserting breakpoints, instead of removing
9570 all breakpoints when stepping over one.
9571
9572 2014-03-20 Pedro Alves <palves@redhat.com>
9573
9574 * infrun.c (previous_inferior_ptid): Adjust comment.
9575 (deferred_step_ptid): Delete.
9576 (infrun_thread_ptid_changed, prepare_to_proceed)
9577 (init_wait_for_inferior): Adjust.
9578 (handle_signal_stop): Delete deferred_step_ptid handling.
9579
9580 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9581
9582 PR gdb/15358
9583 * defs.h (sync_quit_force_run): New declaration.
9584 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9585 * event-top.c (async_sigterm_handler): New declaration.
9586 (async_sigterm_token): New variable.
9587 (async_init_signals): Create also async_sigterm_token.
9588 (async_sigterm_handler): New function.
9589 (sync_quit_force_run): New variable.
9590 (handle_sigterm): Replace quit_force call by other calls.
9591 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9592
9593 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9594
9595 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9596 offset into SPE pseudo registers.
9597
9598 2014-03-18 Pedro Alves <palves@redhat.com>
9599
9600 PR gdb/13860
9601 * inferior.h (print_stop_event): Declare.
9602 * infrun.c (print_stop_event): New, factored out from ...
9603 (normal_stop): ... this.
9604 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9605 of bpstat_print/print_stack_frame.
9606
9607 2014-03-17 Tom Tromey <tromey@redhat.com>
9608
9609 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9610
9611 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9612
9613 * ada-lang.c (decode_constrained_packed_array): Perform a
9614 minimal coercion for reference with coerce_ref instead of
9615 ada_coerce_ref.
9616
9617 2014-03-17 Tristan Gingold <gingold@adacore.com>
9618
9619 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9620 (darwin_solib_create_inferior_hook): Emit a warning if version
9621 is unhandled.
9622
9623 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9624
9625 * python/py-value.c (get_field_flag): Cast flag_name argument to
9626 PyObject_GetAttrString to support Python 2.4.
9627
9628 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9629
9630 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9631 (Global Maintainers): Remove Jan Kratochvil.
9632
9633 2014-03-14 Pedro Alves <palves@redhat.com>
9634
9635 * inferior.h (terminal_ours_for_output): Rename to ...
9636 (child_terminal_ours_for_output): ... this.
9637 (terminal_save_ours): Rename to ...
9638 (child_terminal_save_ours): ... this.
9639 (terminal_ours): Rename to ...
9640 (child_terminal_ours): ... this.
9641 (terminal_inferior): Rename to ...
9642 (child_terminal_inferior): ... this.
9643 (terminal_init_inferior): Rename to ...
9644 (child_terminal_init_inferior): ... this.
9645 (terminal_init_inferior_with_pgrp): Rename to ...
9646 (child_terminal_init_inferior_with_pgrp): ... this.
9647 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9648 (child_terminal_init_with_pgrp): ... this.
9649 (terminal_save_ours): Rename to ...
9650 (child_terminal_save_ours): ... this.
9651 (terminal_init_inferior): Rename to ...
9652 (child_terminal_init): ... this. Adjust.
9653 (terminal_inferior): Rename to ...
9654 (child_terminal_inferior): ... this.
9655 (terminal_ours_for_output): Rename to ...
9656 (child_terminal_ours_for_output): ... this. Adjust.
9657 (terminal_ours): Rename to ...
9658 (child_terminal_ours): ... this.
9659 (terminal_ours_1): Rename to ...
9660 (child_terminal_ours_1): ... this. Adjust.
9661 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9662 * windows-nat.c (do_initial_windows_stuff): Adjust.
9663 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9664 (gnu_terminal_init): ... this. Adjust.
9665 (gnu_target): Adjust.
9666 * inf-child.c (inf_child_target): Adjust.
9667
9668 2014-03-13 Doug Evans <xdje42@gmail.com>
9669
9670 PR guile/16612
9671 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9672 new eq?-hashtab.
9673
9674 2014-03-13 Doug Evans <xdje42@gmail.com>
9675
9676 * value.c (record_latest_value): Call release_value_or_incref
9677 instead of release_value.
9678
9679 2014-03-13 Pedro Alves <palves@redhat.com>
9680
9681 * procfs.c (procfs_target): Don't override to_shortname,
9682 to_longname or to_doc.
9683
9684 2014-03-13 Pedro Alves <palves@redhat.com>
9685
9686 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9687 Unix in user visible strings.
9688
9689 2014-03-12 Stan Shebs <stan@codesourcery.com>
9690
9691 * gdbtypes.h: Annotate comments for Doxygen, add a page
9692 block comment with some general info.
9693
9694 2014-03-12 Pedro Alves <palves@redhat.com>
9695
9696 * infcmd.c (prepare_execution_command): New function, factored out
9697 from several execution commands.
9698 (run_command_1, continue_command, step_1, jump_command)
9699 (signal_command, until_command, advance_command, finish_command)
9700 (attach_command): Use prepare_execution_command.
9701
9702 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9703
9704 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9705 (MAX_BPTS): Define.
9706 (MAX_WPTS): Define.
9707 (struct arm_linux_thread_points): Removed.
9708 (struct arm_linux_process_info): New.
9709 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9710 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9711 (arm_linux_find_breakpoints_by_tid): Removed.
9712 (struct arch_lwp_info): New.
9713 (arm_linux_find_process_pid): New functions.
9714 (arm_linux_add_process): New functions.
9715 (arm_linux_process_info_get): New functions.
9716 (arm_linux_forget_process): New function.
9717 (arm_linux_get_debug_reg_state): New function.
9718 (struct update_registers_data): New.
9719 (update_registers_callback): New function.
9720 (arm_linux_insert_hw_breakpoint1): Updated.
9721 (arm_linux_remove_hw_breakpoint1): Updated.
9722 (arm_linux_insert_hw_breakpoint): Updated.
9723 (arm_linux_remove_hw_breakpoint): Updated.
9724 (arm_linux_insert_watchpoint): Updated.
9725 (arm_linux_remove_watchpoint): Updated.
9726 (arm_linux_new_thread): Updated.
9727 (arm_linux_prepare_to_resume): New function.
9728 (arm_linux_new_fork): New function.
9729 (_initialize_arm_linux_nat): Updated.
9730
9731 2014-03-12 Pedro Alves <palves@redhat.com>
9732
9733 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9734
9735 2014-03-12 Tom Tromey <tromey@redhat.com>
9736
9737 * inf-child.c (return_zero): New function.
9738 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9739 * aix-thread.c (aix_thread_inferior_created): New function.
9740 (aix_thread_attach): Remove.
9741 (init_aix_thread_ops): Don't set to_attach.
9742 (_initialize_aix_thread): Register inferior_created observer.
9743 * corelow.c (init_core_ops): Don't set to_attach or
9744 to_create_inferior.
9745 * exec.c (init_exec_ops): Don't set to_attach or
9746 to_create_inferior.
9747 * infcmd.c (run_command_1): Use find_run_target. Make direct
9748 target calls.
9749 (attach_command): Use find_attach_target. Make direct target
9750 calls.
9751 * record-btrace.c (init_record_btrace_ops): Don't set
9752 to_create_inferior.
9753 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9754 Remove.
9755 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9756 set to_create_inferior.
9757 * target.c (complete_target_initialization): Add assertion.
9758 (target_create_inferior): Remove.
9759 (find_default_attach, find_default_create_inferior): Remove.
9760 (find_attach_target, find_run_target): New functions.
9761 (find_default_is_async_p, find_default_can_async_p)
9762 (target_supports_non_stop, target_attach): Remove.
9763 (init_dummy_target): Don't set to_create_inferior or
9764 to_supports_non_stop.
9765 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9766 TARGET_DEFAULT_FUNC.
9767 <to_create_inferior>: Add comment.
9768 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9769 TARGET_DEFAULT_RETURN.
9770 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9771 (find_attach_target, find_run_target): Declare.
9772 (target_create_inferior): Remove.
9773 (target_has_execution_1): Update comment.
9774 (target_supports_non_stop): Remove.
9775 * target-delegates.c: Rebuild.
9776
9777 2014-03-12 Pedro Alves <palves@redhat.com>
9778
9779 * inf-child.h: Update comment to not mention Unix.
9780
9781 2014-03-12 Pedro Alves <palves@redhat.com>
9782
9783 * inf-child.c: Update top comment to not mention Unix. Add
9784 generic comment describing how this target is meant to be used.
9785 (inf_child_post_attach, inf_child_post_startup_inferior)
9786 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9787 Unix in comment.
9788
9789 2014-03-12 Pedro Alves <palves@redhat.com>
9790
9791 * nto-procfs.c: Include inf-child.h.
9792 (procfs_ops): Delete global.
9793 (procfs_can_run): Delete method.
9794 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9795 target pointer instead of referencing procfs_ops.
9796 (procfs_prepare_to_store): Delete.
9797 (init_procfs_ops): Delete function.
9798 (procfs_target): New function, based on init_procfs_ops, but
9799 inherit inf_child_target.
9800 (_initialize_procfs): Use procfs_target.
9801
9802 2014-03-12 Pedro Alves <palves@redhat.com>
9803
9804 * windows-nat.c: Include inf-child.h.
9805 (windows_ops): Delete global.
9806 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9807 methods.
9808 (init_windows_ops): Delete function.
9809 (windows_target): New function, based on init_windows_ops, but
9810 inherit inf_child_target.
9811 (_initialize_windows_nat): Use windows_target. Install x86
9812 specific target methods here.
9813
9814 2014-03-10 Doug Evans <xdje42@gmail.com>
9815
9816 * guile/guile.c (call_initialize_gdb_module): New function.
9817 (initialize_guile): Replace call to scm_init_guile with call to
9818 scm_with_guile.
9819
9820 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9821
9822 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9823 in call to TYPE_CODE macro.
9824
9825 2014-03-10 Jerome Guitton <guitton@adacore.com>
9826
9827 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9828 Resolve tagged types to full view.
9829
9830 2014-03-10 Hui Zhu <hui@codesourcery.com>
9831
9832 * target.h (target_insert_breakpoint): Remove "hardware" from its
9833 comments.
9834
9835 2014-03-07 Doug Evans <dje@google.com>
9836
9837 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9838
9839 2014-03-07 Doug Evans <dje@google.com>
9840
9841 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9842 Remove unused local comp_dir_attr. Assert exactly one of
9843 stub_comp_unit_die, stub_comp_dir is non-NULL.
9844
9845 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9846
9847 * target.h (complete_target_initialization, add_target):
9848 Add comment.
9849
9850 2014-03-07 Pedro Alves <palves@redhat.com>
9851
9852 * go32-nat.c: Include inf-child.h.
9853 (go32_ops): Delete global.
9854 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9855 Delete methods.
9856 (go32_create_inferior): Push the passed in target pointer instead
9857 of referencing go32_ops.
9858 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9859 (go32_target): New function, based on init_go32_ops, but inherit
9860 inf_child_target.
9861 (_initialize_go32_nat): Use go32_target. Move parts of
9862 init_go32_ops here.
9863
9864 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9865
9866 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9867 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9868 SYMBOL_VALUE_ADDRESS.
9869 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9870
9871 2014-03-06 Yao Qi <yao@codesourcery.com>
9872
9873 * breakpoint.c (get_tracepoint_by_number): Remove argument
9874 optional_p. All callers updated. Adjust comments. Update
9875 output message.
9876 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9877
9878 2014-03-06 Yao Qi <yao@codesourcery.com>
9879
9880 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9881 early if get_number returns zero. Use 'p' instead of 'args'.
9882
9883 2014-03-06 Yao Qi <yao@codesourcery.com>
9884
9885 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9886 message.
9887
9888 2014-03-06 Yao Qi <yao@codesourcery.com>
9889
9890 PR breakpoints/16508
9891 * tracepoint.c (check_trace_running): New function.
9892 (trace_find_command): Move code to check_trace_running and
9893 call check_trace_running.
9894 (trace_find_pc_command): Likewise.
9895 (trace_find_tracepoint_command): Likewise.
9896 (trace_find_line_command): Likewise.
9897 (trace_find_range_command): Likewise.
9898 * tracepoint.h (check_trace_running): Likewise.
9899 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9900
9901 2014-03-06 Yao Qi <yao@codesourcery.com>
9902
9903 * target.h (struct target_ops) <to_traceframe_info>: Use
9904 TARGET_DEFAULT_NORETURN (tcomplain ()).
9905 * target-delegates.c: Regenerated.
9906
9907 2014-03-05 Pedro Alves <palves@redhat.com>
9908
9909 PR gdb/16575
9910 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9911 void. Update comment.
9912 (dcache_xfer_memory): Delete.
9913 (dcache_read_memory_partial): New, based on the read bits of
9914 dcache_xfer_memory.
9915 (dcache_update): Add status parameter. Use ULONGEST for len, and
9916 adjust. Discard cache lines if the reason for the update was
9917 error.
9918 * dcache.h (dcache_xfer_memory): Delete declaration.
9919 (dcache_read_memory_partial): New declaration.
9920 (dcache_update): Update prototype.
9921 * target.c (raw_memory_xfer_partial): Update the dcache here.
9922 (memory_xfer_partial_1): Don't handle dcache writes here.
9923
9924 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9925
9926 * remote-sim.c (gdbsim_load): Add const to prog.
9927
9928 2014-03-03 Tom Tromey <tromey@redhat.com>
9929
9930 * elfread.c (probe_key): Change to bfd_data.
9931 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9932 now per-BFD, not per-objfile.
9933 * stap-probe.c (stap_probe_destroy): Update comment.
9934 (handle_stap_probe): Allocate on the per-BFD obstack.
9935
9936 2014-03-03 Tom Tromey <tromey@redhat.com>
9937
9938 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9939 * breakpoint.c (create_longjmp_master_breakpoint): Use
9940 get_probe_address.
9941 (add_location_to_breakpoint, bkpt_probe_insert_location)
9942 (bkpt_probe_remove_location): Update.
9943 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9944 * elfread.c (elf_symfile_relocate_probe): Remove.
9945 (elf_probe_fns): Update.
9946 (insert_exception_resume_breakpoint): Change type of "probe"
9947 parameter to bound_probe.
9948 (check_exception_resume): Update.
9949 * objfiles.c (objfile_relocate1): Don't relocate probes.
9950 * probe.c (bound_probe_s): New typedef.
9951 (parse_probes): Use get_probe_address. Set sal's objfile.
9952 (find_probe_by_pc): Return a bound_probe.
9953 (collect_probes): Return a VEC(bound_probe_s).
9954 (compare_probes): Update.
9955 (gen_ui_out_table_header_info): Change type of "probes"
9956 parameter. Update.
9957 (info_probes_for_ops): Update.
9958 (get_probe_address): New function.
9959 (probe_safe_evaluate_at_pc): Update.
9960 * probe.h (struct probe_ops) <get_probe_address>: New field.
9961 <set_semaphore, clear_semaphore>: Add objfile parameter.
9962 (struct probe) <objfile>: Remove field.
9963 <arch>: New field.
9964 <address>: Update comment.
9965 (struct bound_probe): New.
9966 (find_probe_by_pc): Return a bound_probe.
9967 (get_probe_address): Declare.
9968 * solib-svr4.c (struct probe_and_action) <address>: New field.
9969 (hash_probe_and_action, equal_probe_and_action): Update.
9970 (register_solib_event_probe): Add address parameter.
9971 (solib_event_probe_at): Update.
9972 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9973 get_probe_address.
9974 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9975 (stap_get_probe_address): New function.
9976 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9977 (compile_probe_arg): Update.
9978 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9979 address.
9980 (handle_stap_probe): Don't relocate the probe.
9981 (stap_relocate): Remove.
9982 (stap_gen_info_probes_table_values): Update.
9983 (stap_probe_ops): Remove stap_relocate.
9984 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9985 (debug_sym_probe_fns): Update.
9986 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9987 * symtab.c (init_sal): Use memset.
9988 * symtab.h (struct symtab_and_line) <objfile>: New field.
9989 * tracepoint.c (start_tracing, stop_tracing): Update.
9990
9991 2014-03-03 Tom Tromey <tromey@redhat.com>
9992
9993 * probe.h (parse_probes, find_probe_by_pc)
9994 (find_probes_in_objfile): Fix comments.
9995
9996 2014-03-02 Doug Evans <xdje42@gmail.com>
9997
9998 * infrun.c (handle_signal_stop): Replace test for
9999 TARGET_WAITKIND_STOPPED with an assert.
10000
10001 2014-03-02 Doug Evans <xdje42@gmail.com>
10002
10003 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10004
10005 2014-03-02 Doug Evans <xdje42@gmail.com>
10006
10007 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10008
10009 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10010
10011 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10012
10013 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10014
10015 * i386obsd-nat.c: Include "obsd-nat.h".
10016 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10017 add_target.
10018 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10019
10020 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10021
10022 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10023
10024 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10025
10026 * mips64obsd-nat.c: Include "obsd-nath".
10027 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10028 add_target
10029 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10030
10031 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10032
10033 * amd64obsd-nat.c: Include "obsd-nat,h.
10034 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10035 add_target.
10036 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10037
10038 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10039
10040 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10041 (find_overload_match): Update call to find_oload_champ.
10042 (find_oload_champ_namespace_loop): Likewise
10043
10044 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10045
10046 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10047
10048 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10049 * config/sparc/obsd64.mh: New file.
10050 * sparc64obsd-nat.c: New file.
10051
10052 * obsd-nat.h: New file.
10053 * obsd-nat.c: New file.
10054 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10055 (ALLDEPFILES): Add obsd-nat.c.
10056
10057 2014-02-28 Tom Tromey <tromey@redhat.com>
10058
10059 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10060 * cli-out.h (cli_ui_out_impl): Now const.
10061 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10062 * ui-out.c (struct ui_out) <impl>: Now const.
10063 (default_ui_out_impl): Now const.
10064 (ui_out_new): Make 'impl' parameter const.
10065 * ui-out.h (ui_out_new): Update.
10066
10067 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10068
10069 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10070
10071 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10072
10073 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10074
10075 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10076
10077 Additional PR 8882 fix.
10078 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10079
10080 2014-02-27 Pedro Alves <palves@redhat.com>
10081
10082 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10083 isn't set.
10084
10085 2014-02-27 Pedro Alves <palves@redhat.com>
10086
10087 PR 12702
10088 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10089 * nat/linux-waitpid.c: Include string.h.
10090 (status_to_str): Moved here and made extern.
10091 * nat/linux-waitpid.h (status_to_str): New declaration.
10092
10093 2014-02-27 Hui Zhu <hui@codesourcery.com>
10094
10095 PR 12702
10096 * infrun.c (ptid_match): Move ...
10097 * common/ptid.c (ptid_match): ... here.
10098 * inferior.h (ptid_match): Move ...
10099 * common/ptid.h (ptid_match): ... here.
10100
10101 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10102
10103 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10104 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10105 gdb_target_obs.
10106
10107 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10108
10109 * obsd-tdep.c (obsd_auxv_parse): New function.
10110 (obsd_init_abi): Set auxv_parse.
10111
10112 * gdbarch.sh (auxv_parse): New.
10113 * gdbarch.h: Regenerated.
10114 * gdbarch.c: Regenerated.
10115 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10116
10117 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10118
10119 * guile/scm-value.c (gdbscm_history_append_x): New function.
10120 (value_functions): Add it.
10121
10122 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10123
10124 * dwarf2read.c (attr_value_as_address): New function.
10125 (dwarf2_find_base_address, read_call_site_scope): Use
10126 attr_value_as_address in place of DW_ADDR.
10127 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10128 the low and high addresses. Slight rework of the handling
10129 of the high pc being a constant form, and limit it to
10130 DWARF verson 4 or higher.
10131 (dwarf2_record_block_ranges): Likewise.
10132 (read_partial_die): Likewise.
10133 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10134
10135 2014-02-26 Tom Tromey <tromey@redhat.com>
10136
10137 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10138
10139 2014-02-26 Tom Tromey <tromey@redhat.com>
10140
10141 * elfread.c (elf_read_minimal_symbols): Return early if
10142 minimal symbols have already been read. Add "ei" parameter.
10143 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10144 * minsyms.c (prim_record_minimal_symbol_full): Update.
10145 * objfiles.h (struct objstats) <n_minsyms>: Move...
10146 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10147 * symmisc.c (print_objfile_statistics): Update.
10148
10149 2014-02-26 Tom Tromey <tromey@redhat.com>
10150
10151 * elfread.c (elf_read_minimal_symbols): New function, from
10152 elf_symfile_read.
10153 (elf_symfile_read): Call it.
10154
10155 2014-02-26 Tom Tromey <tromey@redhat.com>
10156
10157 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10158 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10159 (lookup_minimal_symbol_solib_trampoline)
10160 (lookup_minimal_symbol_by_pc_section_1)
10161 (lookup_minimal_symbol_and_objfile): Update.
10162 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10163 Don't allocate a minimal symbol if minsyms have already been read.
10164 (build_minimal_symbol_hash_tables): Update.
10165 (install_minimal_symbols): Do nothing if minsyms already read.
10166 Use the per-BFD obstack.
10167 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10168 * objfiles.c (allocate_objfile): Call
10169 terminate_minimal_symbol_table later.
10170 (have_minimal_symbols): Update.
10171 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10172 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10173 Move from struct objfile.
10174 <minsyms_read>: New field.
10175 (struct objfile) <msymbols, minimal_symbol_count,
10176 msymbol_hash, msymbol_demangled_hash>: Move.
10177 (ALL_OBJFILE_MSYMBOLS): Update.
10178 * symfile.c (read_symbols): Set minsyms_read.
10179 (reread_symbols): Update.
10180 * symmisc.c (dump_objfile, dump_msymbols): Update.
10181
10182 2014-02-26 Tom Tromey <tromey@redhat.com>
10183
10184 * minsyms.c (msymbols_sort): Remove.
10185 * minsyms.h (msymbols_sort): Remove.
10186 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10187 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10188 * elfread.c (elf_symtab_read): Don't add section offsets.
10189 * xcoffread.c (record_minimal_symbol): Don't add section offset
10190 to minimal symbol address.
10191 * somread.c (text_offset, data_offset): Remove.
10192 (som_symtab_read): Don't add section offsets to minimal symbol
10193 addresses.
10194 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10195 Don't add section offsets to minimal symbols.
10196 * coffread.c (coff_symtab_read): Don't add section offsets
10197 to minimal symbol addresses.
10198 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10199 to minimal symbol addresses.
10200 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10201 section offset to minimal symbol addresses.
10202 * mdebugread.c (parse_partial_symbols): Don't add section
10203 offset to minimal symbol addresses.
10204 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10205 offset to minimal symbol addresses.
10206
10207 2014-02-26 Tom Tromey <tromey@redhat.com>
10208
10209 * ada-lang.c (ada_main_name): Update.
10210 (ada_add_standard_exceptions): Update.
10211 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10212 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10213 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10214 * auxv.c (ld_so_xfer_auxv): Update.
10215 * avr-tdep.c (avr_scan_prologue): Update.
10216 * ax-gdb.c (gen_var_ref): Update.
10217 * blockframe.c (get_pc_function_start)
10218 (find_pc_partial_function_gnu_ifunc): Update.
10219 * breakpoint.c (create_overlay_event_breakpoint)
10220 (create_longjmp_master_breakpoint)
10221 (create_std_terminate_master_breakpoint)
10222 (create_exception_master_breakpoint): Update.
10223 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10224 * c-valprint.c (c_val_print): Update.
10225 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10226 * common/agent.c (agent_look_up_symbols): Update.
10227 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10228 * dwarf2loc.c (call_site_to_target_addr): Update.
10229 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10230 * elfread.c (elf_gnu_ifunc_record_cache)
10231 (elf_gnu_ifunc_resolve_by_got): Update.
10232 * findvar.c (default_read_var_value): Update.
10233 * frame.c (inside_main_func): Update.
10234 * frv-tdep.c (frv_frame_this_id): Update.
10235 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10236 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10237 Update.
10238 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10239 (hppa_hpux_find_dummy_bpaddr): Update.
10240 * hppa-tdep.c (hppa_symbol_address): Update.
10241 * infcmd.c (until_next_command): Update.
10242 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10243 Update.
10244 * linespec.c (minsym_found, add_minsym): Update.
10245 * linux-nat.c (get_signo): Update.
10246 * linux-thread-db.c (inferior_has_bug): Update.
10247 * m32c-tdep.c (m32c_return_value)
10248 (m32c_m16c_address_to_pointer): Update.
10249 * m32r-tdep.c (m32r_frame_this_id): Update.
10250 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10251 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10252 * maint.c (maintenance_translate_address): Update.
10253 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10254 (frob_address): New function.
10255 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10256 frob_address. Rename parameter to "pc_in".
10257 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10258 addresses.
10259 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10260 Update.
10261 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10262 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10263 * objc-lang.c (find_objc_msgsend): Update.
10264 * objfiles.c (objfile_relocate1): Update.
10265 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10266 * p-valprint.c (pascal_val_print): Update.
10267 * parse.c (write_exp_msymbol): Update.
10268 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10269 (ppc_elfv2_skip_entrypoint): Update.
10270 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10271 * printcmd.c (build_address_symbolic, msym_info)
10272 (address_info): Update.
10273 * proc-service.c (ps_pglobal_lookup): Update.
10274 * psymtab.c (find_pc_sect_psymtab_closer)
10275 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10276 Change msymbol parameter to bound_minimal_symbol.
10277 * ravenscar-thread.c (get_running_thread_id): Update.
10278 * remote.c (remote_check_symbols): Update.
10279 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10280 address.
10281 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10282 * solib-dsbt.c (lm_base): Update.
10283 * solib-frv.c (lm_base, main_got): Update.
10284 * solib-irix.c (locate_base): Update.
10285 * solib-som.c (som_solib_create_inferior_hook)
10286 (link_map_start): Update.
10287 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10288 * solib-svr4.c (elf_locate_base, enable_break): Update.
10289 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10290 (flush_ea_cache): Update.
10291 * stabsread.c (define_symbol, scan_file_globals): Update.
10292 * stack.c (find_frame_funname): Update.
10293 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10294 (debug_qf_find_pc_sect_symtab): Update.
10295 * symfile.c (simple_read_overlay_table)
10296 (simple_overlay_update): Update.
10297 * symfile.h (struct quick_symbol_functions)
10298 <find_pc_sect_symtab>: Change type of msymbol to
10299 bound_minimal_symbol.
10300 * symmisc.c (dump_msymbols): Update.
10301 * symtab.c (find_pc_sect_symtab_via_partial)
10302 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10303 (search_symbols, print_msymbol_info): Update.
10304 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10305 (MSYMBOL_VALUE_ADDRESS): Redefine.
10306 (BMSYMBOL_VALUE_ADDRESS): New macro.
10307 * tracepoint.c (scope_info): Update.
10308 * tui/tui-disasm.c (tui_find_disassembly_address)
10309 (tui_get_begin_asm_address): Update.
10310 * valops.c (find_function_in_inferior): Update.
10311 * value.c (value_static_field, value_fn_field): Update.
10312
10313 2014-02-26 Tom Tromey <tromey@redhat.com>
10314
10315 * ada-lang.c (ada_update_initial_language): Update.
10316 (ada_main_name, ada_has_this_exception_support): Update.
10317 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10318 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10319 * arm-tdep.c (arm_skip_stub): Update.
10320 * auxv.c (ld_so_xfer_auxv): Update.
10321 * avr-tdep.c (avr_scan_prologue): Update.
10322 * ax-gdb.c (gen_var_ref): Update.
10323 * breakpoint.c (struct breakpoint_objfile_data)
10324 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10325 type to bound_minimal_symbol.
10326 (create_overlay_event_breakpoint)
10327 (create_longjmp_master_breakpoint)
10328 (create_std_terminate_master_breakpoint)
10329 (create_exception_master_breakpoint): Update.
10330 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10331 * c-exp.y (classify_name): Update.
10332 * coffread.c (coff_symfile_read): Update.
10333 * common/agent.c (agent_look_up_symbols): Update.
10334 * d-lang.c (d_main_name): Update.
10335 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10336 * dec-thread.c (enable_dec_thread): Update.
10337 * dwarf2loc.c (call_site_to_target_addr): Update.
10338 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10339 * eval.c (evaluate_subexp_standard): Update.
10340 * findvar.c (struct minsym_lookup_data) <result>: Change type
10341 to bound_minimal_symbol.
10342 <objfile>: Remove.
10343 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10344 * frame.c (inside_main_func): Update.
10345 * frv-tdep.c (frv_frame_this_id): Update.
10346 * gcore.c (call_target_sbrk): Update.
10347 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10348 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10349 Update.
10350 * go-lang.c (go_main_name): Update.
10351 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10352 (hppa_hpux_find_import_stub_for_addr): Update.
10353 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10354 Update. Change return type.
10355 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10356 type.
10357 * jit.c (jit_breakpoint_re_set_internal): Update.
10358 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10359 Update.
10360 * linux-nat.c (get_signo): Update.
10361 * linux-thread-db.c (inferior_has_bug): Update
10362 * m32c-tdep.c (m32c_return_value)
10363 (m32c_m16c_address_to_pointer): Update.
10364 * m32r-tdep.c (m32r_frame_this_id): Update.
10365 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10366 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10367 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10368 lookup_minimal_symbol. Change return type.
10369 (lookup_minimal_symbol): Remove.
10370 (lookup_bound_minimal_symbol): Update.
10371 (lookup_minimal_symbol_text): Change return type.
10372 (lookup_minimal_symbol_solib_trampoline): Change return type.
10373 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10374 (lookup_minimal_symbol_solib_trampoline): Change return type.
10375 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10376 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10377 (value_nsstring, find_imps): Update.
10378 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10379 * p-lang.c (pascal_main_name): Update.
10380 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10381 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10382 * proc-service.c (ps_pglobal_lookup): Update.
10383 * ravenscar-thread.c (get_running_thread_msymbol): Change
10384 return type.
10385 (has_ravenscar_runtime, get_running_thread_id): Update.
10386 * remote.c (remote_check_symbols): Update.
10387 * sol-thread.c (ps_pglobal_lookup): Update.
10388 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10389 * solib-dsbt.c (lm_base): Update.
10390 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10391 Update.
10392 * solib-irix.c (locate_base): Update.
10393 * solib-som.c (som_solib_create_inferior_hook)
10394 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10395 Update.
10396 * solib-spu.c (spu_enable_break): Update.
10397 * solib-svr4.c (elf_locate_base, enable_break): Update.
10398 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10399 (flush_ea_cache): Update.
10400 * stabsread.c (define_symbol): Update.
10401 * symfile.c (simple_read_overlay_table): Update.
10402 * symtab.c (find_pc_sect_line): Update.
10403 * tracepoint.c (scope_info): Update.
10404 * tui-disasm.c (tui_get_begin_asm_address): Update.
10405 * value.c (value_static_field): Update.
10406
10407 2014-02-26 Tom Tromey <tromey@redhat.com>
10408
10409 * minsyms.c (prim_record_minimal_symbol_full): Use
10410 SET_MSYMBOL_VALUE_ADDRESS.
10411 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10412 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10413 SET_MSYMBOL_VALUE_ADDRESS.
10414 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10415 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10416
10417 2014-02-26 Tom Tromey <tromey@redhat.com>
10418
10419 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10420 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10421 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10422 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10423 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10424 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10425 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10426 * ada-lang.c (ada_main_name): Update.
10427 (ada_lookup_simple_minsym): Update.
10428 (ada_make_symbol_completion_list): Update.
10429 (ada_add_standard_exceptions): Update.
10430 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10431 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10432 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10433 * arm-tdep.c (skip_prologue_function): Update.
10434 (arm_skip_stack_protector, arm_skip_stub): Update.
10435 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10436 (arm_wince_skip_main_prologue): Update.
10437 * auxv.c (ld_so_xfer_auxv): Update.
10438 * avr-tdep.c (avr_scan_prologue): Update.
10439 * ax-gdb.c (gen_var_ref): Update.
10440 * block.c (call_site_for_pc): Update.
10441 * blockframe.c (get_pc_function_start): Update.
10442 (find_pc_partial_function_gnu_ifunc): Update.
10443 * breakpoint.c (create_overlay_event_breakpoint): Update.
10444 (create_longjmp_master_breakpoint): Update.
10445 (create_std_terminate_master_breakpoint): Update.
10446 (create_exception_master_breakpoint): Update.
10447 (resolve_sal_pc): Update.
10448 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10449 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10450 Update.
10451 * c-valprint.c (c_val_print): Update.
10452 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10453 * coffread.c (coff_symfile_read): Update.
10454 * common/agent.c (agent_look_up_symbols): Update.
10455 * dbxread.c (find_stab_function_addr): Update.
10456 (end_psymtab): Update.
10457 * dwarf2loc.c (call_site_to_target_addr): Update.
10458 (func_verify_no_selftailcall): Update.
10459 (tailcall_dump): Update.
10460 (call_site_find_chain_1): Update.
10461 (dwarf_expr_reg_to_entry_parameter): Update.
10462 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10463 (elf_gnu_ifunc_resolve_by_got): Update.
10464 * f-valprint.c (info_common_command): Update.
10465 * findvar.c (read_var_value): Update.
10466 * frame.c (get_prev_frame_1): Update.
10467 (inside_main_func): Update.
10468 * frv-tdep.c (frv_skip_main_prologue): Update.
10469 (frv_frame_this_id): Update.
10470 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10471 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10472 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10473 (gnuv3_skip_trampoline): Update.
10474 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10475 (hppa64_hpux_in_solib_call_trampoline): Update.
10476 (hppa_hpux_skip_trampoline_code): Update.
10477 (hppa64_hpux_search_dummy_call_sequence): Update.
10478 (hppa_hpux_find_import_stub_for_addr): Update.
10479 (hppa_hpux_find_dummy_bpaddr): Update.
10480 * hppa-tdep.c (hppa_symbol_address)
10481 (hppa_lookup_stub_minimal_symbol): Update.
10482 * i386-tdep.c (i386_skip_main_prologue): Update.
10483 (i386_pe_skip_trampoline_code): Update.
10484 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10485 * infcall.c (get_function_name): Update.
10486 * infcmd.c (until_next_command): Update.
10487 * jit.c (jit_breakpoint_re_set_internal): Update.
10488 (jit_inferior_init): Update.
10489 * linespec.c (minsym_found): Update.
10490 (add_minsym): Update.
10491 * linux-fork.c (info_checkpoints_command): Update.
10492 * linux-nat.c (get_signo): Update.
10493 * linux-thread-db.c (inferior_has_bug): Update.
10494 * m32c-tdep.c (m32c_return_value): Update.
10495 (m32c_m16c_address_to_pointer): Update.
10496 (m32c_m16c_pointer_to_address): Update.
10497 * m32r-tdep.c (m32r_frame_this_id): Update.
10498 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10499 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10500 * maint.c (maintenance_translate_address): Update.
10501 * minsyms.c (add_minsym_to_hash_table): Update.
10502 (add_minsym_to_demangled_hash_table): Update.
10503 (msymbol_objfile): Update.
10504 (lookup_minimal_symbol): Update.
10505 (iterate_over_minimal_symbols): Update.
10506 (lookup_minimal_symbol_text): Update.
10507 (lookup_minimal_symbol_by_pc_name): Update.
10508 (lookup_minimal_symbol_solib_trampoline): Update.
10509 (lookup_minimal_symbol_by_pc_section_1): Update.
10510 (lookup_minimal_symbol_and_objfile): Update.
10511 (prim_record_minimal_symbol_full): Update.
10512 (compare_minimal_symbols): Update.
10513 (compact_minimal_symbols): Update.
10514 (build_minimal_symbol_hash_tables): Update.
10515 (install_minimal_symbols): Update.
10516 (terminate_minimal_symbol_table): Update.
10517 (find_solib_trampoline_target): Update.
10518 (minimal_symbol_upper_bound): Update.
10519 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10520 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10521 (mips_skip_pic_trampoline_code): Update.
10522 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10523 * objc-lang.c (selectors_info): Update.
10524 (classes_info): Update.
10525 (find_methods): Update.
10526 (find_imps): Update.
10527 (find_objc_msgsend): Update.
10528 * objfiles.c (objfile_relocate1): Update.
10529 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10530 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10531 * p-valprint.c (pascal_val_print): Update.
10532 * parse.c (write_exp_msymbol): Update.
10533 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10534 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10535 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10536 * printcmd.c (build_address_symbolic): Update.
10537 (sym_info): Update.
10538 (address_info): Update.
10539 * proc-service.c (ps_pglobal_lookup): Update.
10540 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10541 (find_pc_sect_psymtab): Update.
10542 * python/py-framefilter.c (py_print_frame): Update.
10543 * ravenscar-thread.c (get_running_thread_id): Update.
10544 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10545 Update.
10546 * remote.c (remote_check_symbols): Update.
10547 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10548 (rs6000_skip_trampoline_code): Update.
10549 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10550 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10551 * solib-dsbt.c (lm_base): Update.
10552 * solib-frv.c (lm_base): Update.
10553 (main_got): Update.
10554 * solib-irix.c (locate_base): Update.
10555 * solib-som.c (som_solib_create_inferior_hook): Update.
10556 (som_solib_desire_dynamic_linker_symbols): Update.
10557 (link_map_start): Update.
10558 * solib-spu.c (spu_enable_break): Update.
10559 (ocl_enable_break): Update.
10560 * solib-svr4.c (elf_locate_base): Update.
10561 (enable_break): Update.
10562 * spu-tdep.c (spu_get_overlay_table): Update.
10563 (spu_catch_start): Update.
10564 (flush_ea_cache): Update.
10565 * stabsread.c (define_symbol): Update.
10566 (scan_file_globals): Update.
10567 * stack.c (find_frame_funname): Update.
10568 (frame_info): Update.
10569 * symfile.c (simple_read_overlay_table): Update.
10570 (simple_overlay_update): Update.
10571 * symmisc.c (dump_msymbols): Update.
10572 * symtab.c (fixup_section): Update.
10573 (find_pc_sect_line): Update.
10574 (skip_prologue_sal): Update.
10575 (search_symbols): Update.
10576 (print_msymbol_info): Update.
10577 (rbreak_command): Update.
10578 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10579 (completion_list_objc_symbol): Update.
10580 (default_make_symbol_completion_list_break_on): Update.
10581 * tracepoint.c (scope_info): Update.
10582 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10583 (tui_get_begin_asm_address): Update.
10584 * valops.c (find_function_in_inferior): Update.
10585 * value.c (value_static_field): Update.
10586 (value_fn_field): Update.
10587
10588 2014-02-26 Tom Tromey <tromey@redhat.com>
10589
10590 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10591 bound minimal symbols. Move code that knows about minsym
10592 table layout...
10593 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10594 function.
10595 * minsyms.h (minimal_symbol_upper_bound): Declare.
10596 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10597 minimal_symbol_upper_bound.
10598
10599 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10600
10601 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10602 Use the type's name if its basic type does not have a tag.
10603
10604 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10605
10606 * dwarf2read.c (read_subrange_type): Add comment.
10607
10608 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10609
10610 * dwarf2read.c (update_enumeration_type_from_children): New
10611 function, mostly extracted from process_structure_scope.
10612 (read_enumeration_type): Call update_enumeration_type_from_children.
10613 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10614 and flag_flag_enum fields.
10615
10616 2014-02-26 Pedro Alves <palves@redhat.com>
10617
10618 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10619 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10620 to_xfer_partial method.
10621
10622 2014-02-26 Pedro Alves <palves@redhat.com>
10623
10624 * target.c (complete_target_initialization): Don't install
10625 default_xfer_partial as to_xfer_partial hook.
10626 (nomemory): Delete.
10627 (update_current_target): Don't INHERIT nor de_fault
10628 deprecated_xfer_memory. Delete de_fault macro.
10629 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10630 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10631 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10632 field.
10633
10634 2014-02-26 Pedro Alves <palves@redhat.com>
10635
10636 * go32-nat.c (my_write_child): New function.
10637 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10638 (go32_xfer_partial): New function.
10639 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10640 Instead install a to_xfer_partial hook.
10641
10642 2014-02-26 Pedro Alves <palves@redhat.com>
10643
10644 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10645 to_xfer_partial helper. Rewrite.
10646 (procfs_xfer_partial): New function.
10647 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10648 Install a to_xfer_partial hook.
10649
10650 2014-02-26 Pedro Alves <palves@redhat.com>
10651
10652 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10653 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10654 (m32r_xfer_partial): New function.
10655 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10656 Install a to_xfer_partial hook.
10657
10658 2014-02-26 Pedro Alves <palves@redhat.com>
10659
10660 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10661 helper.
10662 (mips_xfer_partial): New function.
10663 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10664 hook. Install a to_xfer_partial hook.
10665
10666 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10667
10668 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10669 * gdbtypes.c (create_array_type_with_stride): New function,
10670 renaming create_array_type, but with an added parameter
10671 called "bit_stride".
10672 (create_array_type): Re-implement using
10673 create_array_type_with_stride.
10674 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10675 and DW_AT_bit_stride attributes.
10676
10677 2014-02-26 Pedro Alves <palves@redhat.com>
10678
10679 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10680 task-specific breakpoints.
10681
10682 2014-02-25 Pedro Alves <palves@redhat.com>
10683
10684 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10685 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10686
10687 2014-02-25 Stan Shebs <stan@codesourcery.com>
10688
10689 * defs.h: Annotate comments for Doxygen.
10690
10691 2014-02-25 Tom Tromey <tromey@redhat.com>
10692
10693 * target.h (target_ignore): Don't declare.
10694 * target.c (target_ignore): Remove.
10695
10696 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10697
10698 PR gdb/16626
10699 * auto-load.c (auto_load_objfile_script_1): Change filename to
10700 debugfile.
10701
10702 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10703
10704 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10705 documentation. Adjust prototype to match the target_ops
10706 to_xfer_partial method. Adjust implementation accordingly.
10707
10708 2014-02-25 Hui Zhu <hui@codesourcery.com>
10709
10710 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10711 to_traceframe_info.
10712
10713 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10714
10715 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10716 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10717 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10718 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10719 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10720 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10721 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10722 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10723 New constants.
10724 (rl78_register_type): Use a data pointer type for SP and
10725 new pseudo registers mentioned above. Use a 16 bit integer
10726 type for all other register pairs.
10727 (rl78_register_name, rl78_g10_register_name): Update for
10728 new pseudo registers.
10729 (rl78_pseudo_register_read): Likewise.
10730 (rl78_pseudo_register_write): Likewise.
10731 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10732 to the newly added pseudo registers.
10733
10734 2014-02-24 Doug Evans <dje@google.com>
10735
10736 * value.c (record_latest_value): Fix comment.
10737 * printcmd.c (print_command_1): Remove code to handle -1 return from
10738 record_latest_value.
10739
10740 2014-02-24 Pedro Alves <palves@redhat.com>
10741
10742 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10743 deprecated_xfer_memory hook.
10744 (procfs_xfer_partial): Call procfs_xfer_memory instead
10745 of the deprecated_xfer_memory target hook.
10746 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10747 helper.
10748
10749 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10750
10751 * windows-nat.c (windows_xfer_shared_libraries): Return
10752 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10753 requested object is TARGET_OBJECT_LIBRARIES.
10754
10755 2014-02-24 Yao Qi <yao@codesourcery.com>
10756
10757 * target.h (enum target_xfer_status)
10758 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10759 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10760 explicitly. New.
10761 * corefile.c (memory_error_message): User updated.
10762 * exec.c (section_table_read_available_memory): Likewise.
10763 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10764 * target.c (target_xfer_status_to_string): Likewise.
10765 (raw_memory_xfer_partial): Likewise.
10766 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10767 * valops.c (read_value_memory): Likewise.
10768 * exec.h: Update comments.
10769
10770 2014-02-24 Yao Qi <yao@codesourcery.com>
10771
10772 * target.c (target_xfer_status_to_string): Rename argument err
10773 to status.
10774 * target.h (target_xfer_status_to_string): Update declaration.
10775 Replace target_xfer_error_to_string with
10776 target_xfer_status_to_string in comment.
10777
10778 2014-02-24 Yao Qi <yao@codesourcery.com>
10779
10780 * mips-linux-nat.c (super_close): Update its type.
10781 (mips_linux_close): Pass 'self' to super_close.
10782
10783 2014-02-24 Yao Qi <yao@codesourcery.com>
10784
10785 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10786 * corefile.c (read_memory): Adjusted.
10787 * target.c (target_write_with_progress): Adjusted.
10788
10789 2014-02-23 Yao Qi <yao@codesourcery.com>
10790
10791 Revert two patches:
10792
10793 2013-10-25 Yao Qi <yao@codesourcery.com>
10794
10795 * remote.c (remote_traceframe_info): Return early if
10796 traceframe is not selected.
10797
10798 2013-07-19 Yao Qi <yao@codesourcery.com>
10799
10800 * target.c (update_current_target): Change the default action
10801 of 'to_traceframe_info' from tcomplain to return_zero.
10802 * target.h (struct target_ops) <to_traceframe_info>: Add more
10803 comments.
10804
10805 2014-02-23 Yao Qi <yao@codesourcery.com>
10806
10807 * valops.c (read_value_memory): Rewrite it. Call
10808 target_xfer_partial in a loop.
10809 * exec.h (section_table_available_memory): Remove declaration.
10810 Move comments to ...
10811 * exec.c (section_table_available_memory): ... here. Make it
10812 static.
10813
10814 2014-02-23 Yao Qi <yao@codesourcery.com>
10815
10816 * exec.c (section_table_read_available_memory): New function.
10817 * exec.h (section_table_read_available_memory): Declare.
10818 * ctf.c (ctf_xfer_partial): Call
10819 section_table_read_available_memory.
10820 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10821
10822 2014-02-23 Yao Qi <yao@codesourcery.com>
10823
10824 * ctf.c (ctf_xfer_partial): Move code to ...
10825 * exec.c (exec_read_partial_read_only): ... it. New function.
10826 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10827 * tracefile.c: Include "exec.h".
10828 * exec.h (exec_read_partial_read_only): Declare.
10829
10830 2014-02-23 Yao Qi <yao@codesourcery.com>
10831
10832 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10833 (tfile_has_memory): Remove.
10834 (init_tfile_ops): Don't set fields to_has_all_memory and
10835 to_has_memory of tfile_ops.
10836 * tracefile.c (tracefile_has_all_memory): New function.
10837 (tracefile_has_memory): New function.
10838 (init_tracefile_ops): Initialize fields to_has_all_memory and
10839 to_has_memory of 'ops'.
10840
10841 2014-02-23 Yao Qi <yao@codesourcery.com>
10842
10843 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10844 (ctf_thread_alive, ctf_get_trace_status): Remove.
10845 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10846 init_tracefile_ops.
10847 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10848 (tfile_has_stack, tfile_has_registers): Remove.
10849 (tfile_thread_alive): Remove.
10850 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10851 init_tracefile_ops.
10852 * tracefile.c (tracefile_has_stack): New function.
10853 (tracefile_has_registers): New function.
10854 (tracefile_thread_alive): New function.
10855 (tracefile_get_trace_status): New function.
10856 (init_tracefile_ops): New function.
10857 * tracefile.h (init_tracefile_ops): Declare.
10858
10859 2014-02-23 Yao Qi <yao@codesourcery.com>
10860
10861 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10862 (O_LARGEFILE): Likewise.
10863 (tfile_ops): Likewise.
10864 (TRACE_HEADER_SIZE): Likewise.
10865 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10866 (cur_data_size): Likewise.
10867 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10868 (tfile_close, tfile_files_info): Likewise.
10869 (tfile_get_trace_status): Likewise.
10870 (tfile_get_tracepoint_status): Likewise.
10871 (tfile_get_traceframe_address): Likewise.
10872 (tfile_trace_find, match_blocktype): Likewise.
10873 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10874 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10875 (tfile_get_trace_state_variable_value): Likewise.
10876 (tfile_has_all_memory, tfile_has_memory): Likewise.
10877 (tfile_has_stack, tfile_has_registers): Likewise.
10878 (tfile_thread_alive, build_traceframe_info): Likewise.
10879 (tfile_traceframe_info, init_tfile_ops): Likewise.
10880 (_initialize_tracepoint): Don't call init_tfile_ops
10881 and add_target_with_completer.
10882 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10883 exec.h, completer.h and filenames.h.
10884 (_initialize_tracefile_tfile): New function.
10885
10886 2014-02-23 Yao Qi <yao@codesourcery.com>
10887
10888 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10889 tracefile-tfile.o.
10890 (HFILES_NO_SRCDIR): Add tracefile.h.
10891 * ctf.c: Include "tracefile.h".
10892 * tracefile.h: New file.
10893 * tracefile.c: New file
10894 * tracefile-tfile.c: New file.
10895 * tracepoint.c: Include "tracefile.h".
10896 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10897 (stop_reason_names): Add const.
10898 (trace_file_writer_xfree): Move it to tracefile.c.
10899 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10900 (trace_save_ctf): Likewise.
10901 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10902 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10903 (tfile_write_header, tfile_write_regblock_type): Likewise.
10904 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10905 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10906 (tfile_write_raw_data, tfile_end): Likewise.
10907 (tfile_trace_file_writer_new): Likewise.
10908 (free_uploaded_tp): Make it extern.
10909 (free_uploaded_tsv): Make it extern.
10910 (_initialize_tracepoint): Move code to register command 'tsave'
10911 to tracefile.c.
10912 * tracepoint.h (stop_reason_names): Declare.
10913 (struct trace_frame_write_ops): Move it to tracefile.h.
10914 (struct trace_file_write_ops): Likewise.
10915 (struct trace_file_writer): Likewise.
10916 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10917
10918 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10919
10920 PR gdb/16594
10921 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10922 process name.
10923 (get_cores_used_by_process): New parameter num_cores, use it.
10924 (linux_xfer_osdata_processes): Pass num_cores to it.
10925 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10926 process name.
10927
10928 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10929
10930 * target.c (memory_xfer_partial): Fix length arg in call to
10931 breakpoint_xfer_memory.
10932
10933 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10934
10935 PR tdep/16397
10936 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10937 number comes after the + or - signs. Adjust length of register
10938 name to be extracted.
10939
10940 2014-02-20 Tom Tromey <tromey@redhat.com>
10941
10942 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10943 (ada_varobj_ops): Mark "extern".
10944
10945 2014-02-20 Tom Tromey <tromey@redhat.com>
10946
10947 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10948
10949 2014-02-20 Doug Evans <xdje42@gmail.com>
10950
10951 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10952 All callers updated.
10953 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10954 All callers updated.
10955 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10956 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10957
10958 2014-02-20 lin zuojian <manjian2006@gmail.com>
10959 Joel Brobecker <brobecker@adacore.com>
10960 Doug Evans <xdje42@gmail.com>
10961
10962 PR symtab/16581
10963 * dwarf2read.c (struct die_info): New member in_process.
10964 (reset_die_in_process): New function.
10965 (process_die): Set it at the start, reset when returning.
10966 (inherit_abstract_dies): Only call process_die if origin_child_die
10967 not already being processed.
10968
10969 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10970
10971 * windows-nat.c (handle_unload_dll): Add function documentation.
10972 (do_initial_windows_stuff): Add comment explaining why we wait
10973 until after inferior initialization has finished before
10974 processing all DLLs.
10975
10976 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10977
10978 * windows-nat.c (get_module_name): Delete.
10979 (windows_get_exec_module_filename): New function, mostly
10980 inspired from get_module_name.
10981 (windows_pid_to_exec_file): Replace call to get_module_name
10982 by call to windows_get_exec_module_filename.
10983
10984 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10985
10986 * windows-nat.c (handle_load_dll): Rewrite this function's
10987 introductory comment. Remove code using get_module_name
10988 to get the DLL's name.
10989
10990 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10991
10992 * windows-nat.c (get_windows_debug_event): Ignore
10993 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10994 if windows_initialization_done == 0.
10995 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10996 Adjust implementation to always load all DLLs.
10997 (do_initial_windows_stuff): Replace call to
10998 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10999
11000 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11001
11002 * windows-nat.c (_initialize_windows_nat): Deprecate the
11003 "dll-symbols" command. Turn the "add-shared-symbol-files"
11004 and "assf" aliases into commands, and deprecate them as well.
11005 * NEWS: Add entry explaining that "dll-symbols" and its two
11006 aliases are now deprecated.
11007
11008 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11009
11010 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11011 new-line in debug string. Remove trailing spaces.
11012
11013 2014-02-19 Stan Shebs <stan@codesourcery.com>
11014
11015 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11016
11017 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11018
11019 * NEWS: Add entry for the new feature
11020 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11021 and class values.
11022
11023 2014-02-19 Stan Shebs <stan@codesourcery.com>
11024
11025 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11026
11027 2014-02-19 Pedro Alves <palves@redhat.com>
11028
11029 * common/ptid.h (struct ptid): Mention that process_stratum
11030 targets should prefer ptid.lwp.
11031
11032 2014-02-19 Pedro Alves <palves@redhat.com>
11033
11034 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11035 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11036 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11037 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11038 store remote thread ids rather than ptid.tid.
11039 (_initialize_remote): Adjust.
11040
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target.c (target_get_unwinder): Rewrite.
11044 (target_get_tailcall_unwinder): Rewrite.
11045 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11046 (record_btrace_to_get_tailcall_unwinder): New function.
11047 (init_record_btrace_ops): Update.
11048 * target.h (struct target_ops) <to_get_unwinder,
11049 to_get_tailcall_unwinder>: Now function pointers. Use
11050 TARGET_DEFAULT_RETURN.
11051
11052 2014-02-19 Tom Tromey <tromey@redhat.com>
11053
11054 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11055 argument.
11056 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11057
11058 2014-02-19 Tom Tromey <tromey@redhat.com>
11059
11060 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11061 directly.
11062 * target-delegates.c: Rebuild.
11063 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11064 TARGET_DEFAULT_FUNC.
11065 * target.c (default_target_decr_pc_after_break): Rename from
11066 forward_target_decr_pc_after_break. Simplify.
11067 (target_decr_pc_after_break): Rely on delegation.
11068
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11070
11071 * target.c (update_current_target): Do not INHERIT to_doc or
11072 to_magic. Do not de_fault to_open or to_close.
11073
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11075
11076 * gcore.h (objfile_find_memory_regions): Declare.
11077 * gcore.c (objfile_find_memory_regions): No longer static. Add
11078 "self" argument.
11079 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11080 * exec.c: Include gcore.h.
11081 (exec_set_find_memory_regions): Remove.
11082 (exec_find_memory_regions): Remove.
11083 (exec_do_find_memory_regions): Remove.
11084 (init_exec_ops): Update.
11085 * defs.h (exec_set_find_memory_regions): Remove.
11086
11087 2014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target-delegates.c: Rebuild.
11090 * target.h (struct target_ops) <to_extra_thread_info,
11091 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11092 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11093 not 0, in TARGET_DEFAULT_RETURN.
11094
11095 2014-02-19 Tom Tromey <tromey@redhat.com>
11096
11097 * target.c (complete_target_initialization): Remove casts. Use
11098 return_zero_has_execution.
11099 (return_zero): Add "ignore" argument.
11100 (return_zero_has_execution): New function.
11101 (init_dummy_target): Remove casts. Use
11102 return_zero_has_execution.
11103
11104 2014-02-19 Tom Tromey <tromey@redhat.com>
11105
11106 * target.c (update_current_target): Update comments. Do not
11107 INHERIT to_stratum.
11108
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11110
11111 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11112 needed.
11113 * corelow.c (core_read_description): Delegate when needed.
11114 * remote.c (remote_read_description): Delegate when needed.
11115 * target-delegates.c: Rebuild.
11116 * target.c (target_read_description): Rewrite.
11117 * target.h (struct target_ops) <to_read_description>: Update
11118 comment. Use TARGET_DEFAULT_RETURN.
11119
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11121
11122 * target-delegates.c: Rebuild.
11123 * target.c (update_current_target): Don't inherit or default
11124 to_can_run.
11125 (find_default_run_target): Check against delegate_can_run.
11126 * target.h (struct target_ops) <to_can_run>: Use
11127 TARGET_DEFAULT_RETURN.
11128
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * target-delegates.c: Rebuild.
11132 * target.c (target_disconnect): Unconditionally delegate.
11133 * target.h (struct target_ops) <to_disconnect>: Use
11134 TARGET_DEFAULT_NORETURN.
11135
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11137
11138 * record.c (record_stop): Unconditionally delegate.
11139 * target-delegates.c: Rebuild.
11140 * target.c (target_stop_recording): Unconditionally delegate.
11141 * target.h (struct target_ops) <to_stop_recording>: Use
11142 TARGET_DEFAULT_IGNORE.
11143
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11145
11146 * target-delegates.c: Rebuild.
11147 * target.c (target_enable_btrace): Unconditionally delegate.
11148 * target.h (struct target_ops) <to_enable_btrace>: Use
11149 TARGET_DEFAULT_NORETURN.
11150
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11152
11153 * target-delegates.c: Rebuild.
11154 * target.c (target_read_btrace): Unconditionally delegate.
11155 * target.h (struct target_ops) <to_read_btrace>: Use
11156 TARGET_DEFAULT_NORETURN.
11157
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11159
11160 * target-delegates.c: Rebuild.
11161 * target.c (target_teardown_btrace): Unconditionally delegate.
11162 * target.h (struct target_ops) <to_teardown_btrace>: Use
11163 TARGET_DEFAULT_NORETURN.
11164
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11166
11167 * target-delegates.c: Rebuild.
11168 * target.c (target_disable_btrace): Unconditionally delegate.
11169 * target.h (struct target_ops) <to_disable_btrace>: Use
11170 TARGET_DEFAULT_NORETURN.
11171
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target-delegates.c: Rebuild.
11175 * target.c (default_search_memory): New function.
11176 (simple_search_memory): Update comment.
11177 (target_search_memory): Unconditionally delegate.
11178 * target.h (struct target_ops) <to_search_memory>: Use
11179 TARGET_DEFAULT_FUNC.
11180
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * auxv.c (default_auxv_parse): No longer static.
11184 (target_auxv_parse): Unconditionally delegate.
11185 * auxv.h (default_auxv_parse): Declare.
11186 * target-delegates.c: Rebuild.
11187 * target.c: Include auxv.h.
11188 * target.h (struct target_ops) <to_auxv_parse>: Use
11189 TARGET_DEFAULT_FUNC.
11190
11191 2014-02-19 Tom Tromey <tromey@redhat.com>
11192
11193 * target-delegates.c: Rebuild.
11194 * target.c (target_memory_map): Unconditionally delegate.
11195 * target.h (struct target_ops) <to_memory_map>: Use
11196 TARGET_DEFAULT_RETURN.
11197
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target-delegates.c: Rebuild.
11201 * target.c (target_thread_alive): Unconditionally delegate.
11202 * target.h (struct target_ops) <to_thread_alive>: Use
11203 TARGET_DEFAULT_RETURN.
11204
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * target-delegates.c: Rebuild.
11208 * target.c (target_save_record): Unconditionally delegate.
11209 * target.h (struct target_ops) <to_save_record>: Use
11210 TARGET_DEFAULT_NORETURN.
11211
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target-delegates.c: Rebuild.
11215 * target.c (target_delete_record): Unconditionally delegate.
11216 * target.h (struct target_ops) <to_delete_record>: Use
11217 TARGET_DEFAULT_NORETURN.
11218
11219 2014-02-19 Tom Tromey <tromey@redhat.com>
11220
11221 * target-delegates.c: Rebuild.
11222 * target.c (target_record_is_replaying): Unconditionally
11223 delegate.
11224 * target.h (struct target_ops) <to_record_is_replaying>: Use
11225 TARGET_DEFAULT_RETURN.
11226
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11228
11229 * target-delegates.c: Rebuild.
11230 * target.c (target_goto_record_begin): Unconditionally delegate.
11231 * target.h (struct target_ops) <to_goto_record_begin>: Use
11232 TARGET_DEFAULT_NORETURN.
11233
11234 2014-02-19 Tom Tromey <tromey@redhat.com>
11235
11236 * target-delegates.c: Rebuild.
11237 * target.c (target_goto_record_end): Unconditionally delegate.
11238 * target.h (struct target_ops) <to_goto_record_end>: Use
11239 TARGET_DEFAULT_NORETURN.
11240
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11242
11243 * target-delegates.c: Rebuild.
11244 * target.c (target_goto_record): Unconditionally delegate.
11245 * target.h (struct target_ops) <to_goto_record>: Use
11246 TARGET_DEFAULT_NORETURN.
11247
11248 2014-02-19 Tom Tromey <tromey@redhat.com>
11249
11250 * target-delegates.c: Rebuild.
11251 * target.c (target_insn_history): Unconditionally delegate.
11252 * target.h (struct target_ops) <to_insn_history>: Use
11253 TARGET_DEFAULT_NORETURN.
11254
11255 2014-02-19 Tom Tromey <tromey@redhat.com>
11256
11257 * target-delegates.c: Rebuild.
11258 * target.c (target_insn_history_from): Unconditionally delegate.
11259 * target.h (struct target_ops) <to_insn_history_from>: Use
11260 TARGET_DEFAULT_NORETURN.
11261
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11263
11264 * target-delegates.c: Rebuild.
11265 * target.c (target_insn_history_range): Unconditionally delegate.
11266 * target.h (struct target_ops) <to_insn_history_range>: Use
11267 TARGET_DEFAULT_NORETURN.
11268
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target-delegates.c: Rebuild.
11272 * target.c (target_call_history): Unconditionally delegate.
11273 * target.h (struct target_ops) <to_call_history>: Use
11274 TARGET_DEFAULT_NORETURN.
11275
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target-delegates.c: Rebuild.
11279 * target.c (target_call_history_from): Unconditionally delegate.
11280 * target.h (struct target_ops) <to_call_history_from>: Use
11281 TARGET_DEFAULT_NORETURN.
11282
11283 2014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target-delegates.c: Rebuild.
11286 * target.c (target_call_history_range): Unconditionally delegate.
11287 * target.h (struct target_ops) <to_call_history_range>: Use
11288 TARGET_DEFAULT_NORETURN.
11289
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11291
11292 * target-delegates.c: Rebuild.
11293 * target.c (target_verify_memory): Unconditionally delegate.
11294 * target.h (struct target_ops) <to_verify_memory>: Use
11295 TARGET_DEFAULT_NORETURN.
11296
11297 2014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * target-delegates.c: Rebuild.
11300 * target.c (target_core_of_thread): Unconditionally delegate.
11301 * target.h (struct target_ops) <to_core_of_thread>: Use
11302 TARGET_DEFAULT_RETURN.
11303
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target-delegates.c: Rebuild.
11307 * target.c (target_flash_done): Unconditionally delegate.
11308 * target.h (struct target_ops) <to_flash_done>: Use
11309 TARGET_DEFAULT_NORETURN.
11310
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11312
11313 * target-delegates.c: Rebuild.
11314 * target.c (target_flash_erase): Unconditionally delegate.
11315 * target.h (struct target_ops) <to_flash_erase>: Use
11316 TARGET_DEFAULT_NORETURN.
11317
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target-delegates.c: Rebuild.
11321 * target.c (target_get_section_table): Unconditionally delegate.
11322 * target.h (struct target_ops) <to_get_section_table>: Use
11323 TARGET_DEFAULT_RETURN.
11324
11325 2014-02-19 Tom Tromey <tromey@redhat.com>
11326
11327 * target-delegates.c: Rebuild.
11328 * target.c (target_pid_to_str): Unconditionally delegate.
11329 (init_dummy_target): Don't initialize to_pid_to_str.
11330 (default_pid_to_str): Rename from dummy_pid_to_str.
11331 * target.h (struct target_ops) <to_pid_to_str>: Use
11332 TARGET_DEFAULT_FUNC.
11333
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target-delegates.c: Rebuild.
11337 * target.c (target_find_new_threads): Unconditionally delegate.
11338 * target.h (struct target_ops) <to_find_new_threads>: Use
11339 TARGET_DEFAULT_RETURN.
11340
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target-delegates.c: Rebuild.
11344 * target.c (target_program_signals): Unconditionally delegate.
11345 * target.h (struct target_ops) <to_program_signals>: Use
11346 TARGET_DEFAULT_IGNORE.
11347
11348 2014-02-19 Tom Tromey <tromey@redhat.com>
11349
11350 * target-delegates.c: Rebuild.
11351 * target.c (target_pass_signals): Unconditionally delegate.
11352 * target.h (struct target_ops) <to_pass_signals>: Use
11353 TARGET_DEFAULT_IGNORE.
11354
11355 2014-02-19 Tom Tromey <tromey@redhat.com>
11356
11357 * target-delegates.c: Rebuild.
11358 * target.c (default_mourn_inferior): New function.
11359 (target_mourn_inferior): Unconditionally delegate.
11360 * target.h (struct target_ops) <to_mourn_inferior>: Use
11361 TARGET_DEFAULT_FUNC.
11362
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * target-delegates.c: Rebuild.
11366 * target.c (default_follow_fork): New function.
11367 (target_follow_fork): Unconditionally delegate.
11368 * target.h (struct target_ops) <to_follow_fork>: Use
11369 TARGET_DEFAULT_FUNC.
11370
11371 2014-02-19 Tom Tromey <tromey@redhat.com>
11372
11373 * target-delegates.c: Rebuild.
11374 * target.c (target_kill): Unconditionally delegate.
11375 * target.h (struct target_ops) <to_kill>: Use
11376 TARGET_DEFAULT_NORETURN.
11377
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * target-delegates.c: Rebuild.
11381 * target.c (target_masked_watch_num_registers): Unconditionally
11382 delegate.
11383 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11384 Use TARGET_DEFAULT_RETURN.
11385
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11387
11388 * target-delegates.c: Rebuild.
11389 * target.c (target_remove_mask_watchpoint): Unconditionally
11390 delegate.
11391 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11392 TARGET_DEFAULT_RETURN.
11393
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target-delegates.c: Rebuild.
11397 * target.c (target_insert_mask_watchpoint): Unconditionally
11398 delegate.
11399 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11400 TARGET_DEFAULT_RETURN.
11401
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target-delegates.c: Rebuild.
11405 * target.c (target_ranged_break_num_registers): Unconditionally
11406 delegate.
11407 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11408 Use TARGET_DEFAULT_RETURN.
11409
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target-delegates.c: Rebuild.
11413 * target.c (target_fetch_registers): Unconditionally delegate.
11414 * target.h (struct target_ops) <to_fetch_registers>: Use
11415 TARGET_DEFAULT_NORETURN.
11416
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target-delegates.c: Rebuild.
11420 * target.c (update_current_target): Don't inherit or default
11421 to_stop.
11422 * target.h (struct target_ops) <to_stop>: Use
11423 TARGET_DEFAULT_IGNORE.
11424
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target-delegates.c: Rebuild.
11428 * target.c (update_current_target): Don't inherit or default
11429 to_can_run_breakpoint_commands.
11430 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11431 Use TARGET_DEFAULT_RETURN.
11432
11433 2014-02-19 Tom Tromey <tromey@redhat.com>
11434
11435 * target-delegates.c: Rebuild.
11436 * target.c (update_current_target): Don't inherit or default
11437 to_supports_evaluation_of_breakpoint_conditions.
11438 * target.h (struct target_ops)
11439 <to_supports_evaluation_of_breakpoint_conditions>: Use
11440 TARGET_DEFAULT_RETURN.
11441
11442 2014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target-delegates.c: Rebuild.
11445 * target.c (update_current_target): Don't inherit or default
11446 to_augmented_libraries_svr4_read.
11447 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11448 Use TARGET_DEFAULT_RETURN.
11449
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target-delegates.c: Rebuild.
11453 * target.c (update_current_target): Don't inherit or default
11454 to_can_use_agent.
11455 * target.h (struct target_ops) <to_can_use_agent>: Use
11456 TARGET_DEFAULT_RETURN.
11457
11458 2014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target-delegates.c: Rebuild.
11461 * target.c (update_current_target): Don't inherit or default
11462 to_use_agent.
11463 * target.h (struct target_ops) <to_use_agent>: Use
11464 TARGET_DEFAULT_NORETURN.
11465
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target-delegates.c: Rebuild.
11469 * target.c (update_current_target): Don't inherit or default
11470 to_traceframe_info.
11471 (return_null): Remove.
11472 * target.h (struct target_ops) <to_traceframe_info>: Use
11473 TARGET_DEFAULT_RETURN.
11474
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (update_current_target): Don't inherit or default
11479 to_static_tracepoint_markers_by_strid.
11480 * target.h (struct target_ops)
11481 <to_static_tracepoint_markers_by_strid>: Use
11482 TARGET_DEFAULT_NORETURN.
11483
11484 2014-02-19 Tom Tromey <tromey@redhat.com>
11485
11486 * target-delegates.c: Rebuild.
11487 * target.c (update_current_target): Don't inherit or default
11488 to_static_tracepoint_marker_at.
11489 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11490 Use TARGET_DEFAULT_RETURN.
11491
11492 2014-02-19 Tom Tromey <tromey@redhat.com>
11493
11494 * target-delegates.c: Rebuild.
11495 * target.c (update_current_target): Don't inherit or default
11496 to_set_permissions.
11497 * target.h (struct target_ops) <to_set_permissions>: Use
11498 TARGET_DEFAULT_IGNORE.
11499
11500 2014-02-19 Tom Tromey <tromey@redhat.com>
11501
11502 * target-delegates.c: Rebuild.
11503 * target.c (update_current_target): Don't inherit or default
11504 to_get_tib_address.
11505 * target.h (struct target_ops) <to_get_tib_address>: Use
11506 TARGET_DEFAULT_NORETURN.
11507
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target-delegates.c: Rebuild.
11511 * target.c (update_current_target): Don't inherit or default
11512 to_set_trace_notes.
11513 * target.h (struct target_ops) <to_set_trace_notes>: Use
11514 TARGET_DEFAULT_RETURN.
11515
11516 2014-02-19 Tom Tromey <tromey@redhat.com>
11517
11518 * target-delegates.c: Rebuild.
11519 * target.c (update_current_target): Don't initialize
11520 to_set_trace_buffer_size.
11521 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11522 TARGET_DEFAULT_IGNORE.
11523
11524 2014-02-19 Tom Tromey <tromey@redhat.com>
11525
11526 * target-delegates.c: Rebuild.
11527 * target.c (update_current_target): Don't inherit or default
11528 to_set_circular_trace_buffer.
11529 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11530 TARGET_DEFAULT_IGNORE.
11531
11532 2014-02-19 Tom Tromey <tromey@redhat.com>
11533
11534 * target-delegates.c: Rebuild.
11535 * target.c (update_current_target): Don't inherit or default
11536 to_set_disconnected_tracing.
11537 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11538 TARGET_DEFAULT_IGNORE.
11539
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11541
11542 * target-delegates.c: Rebuild.
11543 * target.c (update_current_target): Don't inherit or default
11544 to_get_min_fast_tracepoint_insn_len.
11545 (return_minus_one): Remove.
11546 * target.h (struct target_ops)
11547 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11548
11549 2014-02-19 Tom Tromey <tromey@redhat.com>
11550
11551 * target-delegates.c: Rebuild.
11552 * target.c (update_current_target): Don't inherit or default
11553 to_get_raw_trace_data.
11554 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11555 TARGET_DEFAULT_NORETURN.
11556
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11558
11559 * target-delegates.c: Rebuild.
11560 * target.c (update_current_target): Don't inherit or default
11561 to_upload_trace_state_variables.
11562 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11563 Use TARGET_DEFAULT_RETURN.
11564
11565 2014-02-19 Tom Tromey <tromey@redhat.com>
11566
11567 * target-delegates.c: Rebuild.
11568 * target.c (update_current_target): Don't inherit or default
11569 to_upload_tracepoints.
11570 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11571 TARGET_DEFAULT_RETURN.
11572
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target-delegates.c: Rebuild.
11576 * target.c (update_current_target): Don't inherit or default
11577 to_save_trace_data.
11578 * target.h (struct target_ops) <to_save_trace_data>: Use
11579 TARGET_DEFAULT_NORETURN.
11580
11581 2014-02-19 Tom Tromey <tromey@redhat.com>
11582
11583 * target-delegates.c: Rebuild.
11584 * target.c (update_current_target): Don't inherit or default
11585 to_get_trace_state_variable_value.
11586 * target.h (struct target_ops)
11587 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11588
11589 2014-02-19 Tom Tromey <tromey@redhat.com>
11590
11591 * target-delegates.c: Rebuild.
11592 * target.c (update_current_target): Don't inherit or default
11593 to_trace_find.
11594 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11595
11596 2014-02-19 Tom Tromey <tromey@redhat.com>
11597
11598 * target-delegates.c: Rebuild.
11599 * target.c (update_current_target): Don't inherit or default
11600 to_trace_stop.
11601 * target.h (struct target_ops) <to_trace_stop>: Use
11602 TARGET_DEFAULT_NORETURN.
11603
11604 2014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target-delegates.c: Rebuild.
11607 * target.c (update_current_target): Don't inherit or default
11608 to_get_tracepoint_status.
11609 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11610 TARGET_DEFAULT_NORETURN.
11611
11612 2014-02-19 Tom Tromey <tromey@redhat.com>
11613
11614 * target-delegates.c: Rebuild.
11615 * target.c (update_current_target): Don't inherit or default
11616 to_get_trace_status.
11617 * target.h (struct target_ops) <to_get_trace_status>: Use
11618 TARGET_DEFAULT_RETURN.
11619
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11621
11622 * target-delegates.c: Rebuild.
11623 * target.c (update_current_target): Don't inherit or default
11624 to_trace_start.
11625 * target.h (struct target_ops) <to_trace_start>: Use
11626 TARGET_DEFAULT_NORETURN.
11627
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target-delegates.c: Rebuild.
11631 * target.c (update_current_target): Don't inherit or default
11632 to_trace_set_readonly_regions.
11633 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11634 Use TARGET_DEFAULT_NORETURN.
11635
11636 2014-02-19 Tom Tromey <tromey@redhat.com>
11637
11638 * target-delegates.c: Rebuild.
11639 * target.c (update_current_target): Don't inherit or default
11640 to_disable_tracepoint.
11641 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11642 TARGET_DEFAULT_NORETURN.
11643
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target-delegates.c: Rebuild.
11647 * target.c (update_current_target): Don't inherit or default
11648 to_enable_tracepoint.
11649 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11650 TARGET_DEFAULT_NORETURN.
11651
11652 2014-02-19 Tom Tromey <tromey@redhat.com>
11653
11654 * target-delegates.c: Rebuild.
11655 * target.c (update_current_target): Don't inherit or default
11656 to_download_trace_state_variable.
11657 * target.h (struct target_ops) <to_download_trace_state_variable>:
11658 Use TARGET_DEFAULT_NORETURN.
11659
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11661
11662 * target-delegates.c: Rebuild.
11663 * target.c (update_current_target): Don't inherit or default
11664 to_can_download_tracepoint.
11665 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11666 TARGET_DEFAULT_RETURN.
11667
11668 2014-02-19 Tom Tromey <tromey@redhat.com>
11669
11670 * target-delegates.c: Rebuild.
11671 * target.c (update_current_target): Don't inherit or default
11672 to_download_tracepoint.
11673 * target.h (struct target_ops) <to_download_tracepoint>: Use
11674 TARGET_DEFAULT_NORETURN.
11675
11676 2014-02-19 Tom Tromey <tromey@redhat.com>
11677
11678 * target-delegates.c: Rebuild.
11679 * target.c (update_current_target): Don't inherit or default
11680 to_trace_init.
11681 * target.h (struct target_ops) <to_trace_init>: Use
11682 TARGET_DEFAULT_RETURN.
11683
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target-delegates.c: Rebuild.
11687 * target.c (update_current_target): Don't inherit or default
11688 to_supports_string_tracing.
11689 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11690 TARGET_DEFAULT_RETURN.
11691
11692 2014-02-19 Tom Tromey <tromey@redhat.com>
11693
11694 * target-delegates.c: Rebuild.
11695 * target.c (update_current_target): Don't inherit or default
11696 to_supports_enable_disable_tracepoint.
11697 * target.h (struct target_ops)
11698 <to_supports_enable_disable_tracepoint>: Use
11699 TARGET_DEFAULT_RETURN.
11700
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11702
11703 * target-delegates.c: Rebuild.
11704 * target.c (update_current_target): Don't inherit or default
11705 to_supports_multi_process.
11706 * target.h (struct target_ops) <to_supports_multi_process>: Use
11707 TARGET_DEFAULT_RETURN.
11708
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11710
11711 * target-delegates.c: Rebuild.
11712 * target.c (update_current_target): Don't inherit or default
11713 to_get_ada_task_ptid.
11714 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11715 TARGET_DEFAULT_FUNC.
11716
11717 2014-02-19 Tom Tromey <tromey@redhat.com>
11718
11719 * target-delegates.c: Rebuild.
11720 * target.c (update_current_target): Don't inherit or default
11721 to_thread_architecture.
11722 * target.h (struct target_ops) <to_thread_architecture>: Use
11723 TARGET_DEFAULT_FUNC.
11724
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11726
11727 * target-delegates.c: Rebuild.
11728 * target.c (update_current_target): Don't inherit or default
11729 to_execution_direction.
11730 * target.h (struct target_ops) <to_execution_direction>: Use
11731 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
11738 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11739 TARGET_DEFAULT_RETURN.
11740 (target_can_execute_reverse): Unconditionally delegate.
11741
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11743
11744 * target-delegates.c: Rebuild.
11745 * target.c (update_current_target): Don't inherit or default
11746 to_goto_bookmark.
11747 (dummy_goto_bookmark): Remove.
11748 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11749 * target.h (struct target_ops) <to_goto_bookmark>: Use
11750 TARGET_DEFAULT_NORETURN.
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_get_bookmark.
11757 (dummy_get_bookmark): Remove.
11758 (init_dummy_target): Don't inherit or default to_get_bookmark.
11759 * target.h (struct target_ops) <to_get_bookmark>: Use
11760 TARGET_DEFAULT_NORETURN
11761
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11766 to_make_corefile_notes.
11767 (init_dummy_target): Don't initialize to_make_corefile_notes.
11768 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11769 TARGET_DEFAULT_FUNC.
11770
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target-delegates.c: Rebuild.
11774 * target.c (update_current_target): Don't inherit or default
11775 to_find_memory_regions.
11776 (init_dummy_target): Don't initialize to_find_memory_regions.
11777 * target.h (struct target_ops) <to_find_memory_regions>: Use
11778 TARGET_DEFAULT_FUNC.
11779
11780 2014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target-delegates.c: Rebuild.
11783 * target.c (update_current_target): Don't inherit or default
11784 to_log_command.
11785 * target.h (struct target_ops) <to_log_command>: Use
11786 TARGET_DEFAULT_IGNORE.
11787 (target_log_command): Unconditionally delegate.
11788
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target-delegates.c: Rebuild.
11792 * target.c (update_current_target): Don't inherit or default
11793 to_pid_to_exec_file.
11794 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11795 TARGET_DEFAULT_RETURN.
11796
11797 2014-02-19 Tom Tromey <tromey@redhat.com>
11798
11799 * target-delegates.c: Rebuild.
11800 * target.c (update_current_target): Don't inherit or default
11801 to_thread_name.
11802 (target_thread_name): Unconditionally delegate.
11803 * target.h (struct target_ops) <to_thread_name>: Use
11804 TARGET_DEFAULT_RETURN.
11805
11806 2014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * target-delegates.c: Rebuild.
11809 * target.c (update_current_target): Don't inherit or default
11810 to_extra_thread_info.
11811 * target.h (struct target_ops) <to_extra_thread_info>: Use
11812 TARGET_DEFAULT_RETURN.
11813
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target-delegates.c: Rebuild.
11817 * target.c (update_current_target): Don't inherit or default
11818 to_has_exited.
11819 * target.h (struct target_ops) <to_has_exited>: Use
11820 TARGET_DEFAULT_RETURN..
11821
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * target-delegates.c: Rebuild.
11825 * target.c (update_current_target): Don't inherit or default
11826 to_set_syscall_catchpoint.
11827 (return_one): Remove.
11828 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11829 TARGET_DEFAULT_RETURN.
11830
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target-delegates.c: Rebuild.
11834 * target.c (update_current_target): Don't inherit or default
11835 to_insert_exec_catchpoint.
11836 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11837 TARGET_DEFAULT_RETURN.
11838
11839 2014-01-08 Tom Tromey <tromey@redhat.com>
11840
11841 * target-delegates.c: Rebuild.
11842 * target.c (update_current_target): Don't inherit or default
11843 to_insert_exec_catchpoint.
11844 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11845 TARGET_DEFAULT_RETURN.
11846
11847 2014-02-19 Tom Tromey <tromey@redhat.com>
11848
11849 * target-delegates.c: Rebuild.
11850 * target.c (update_current_target): Don't inherit or default
11851 to_remove_vfork_catchpoint.
11852 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11853 TARGET_DEFAULT_RETURN.
11854
11855 2014-02-19 Tom Tromey <tromey@redhat.com>
11856
11857 * target-delegates.c: Rebuild.
11858 * target.c (update_current_target): Don't inherit or default
11859 to_insert_vfork_catchpoint.
11860 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11861 TARGET_DEFAULT_RETURN.
11862
11863 2014-02-19 Tom Tromey <tromey@redhat.com>
11864
11865 * target-delegates.c: Rebuild.
11866 * target.c (update_current_target): Don't inherit or default
11867 to_remove_fork_catchpoint.
11868 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11869 TARGET_DEFAULT_RETURN.
11870
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target-delegates.c: Rebuild.
11874 * target.c (update_current_target): Don't inherit or default
11875 to_insert_fork_catchpoint.
11876 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11877 TARGET_DEFAULT_RETURN.
11878
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target-delegates.c: Rebuild.
11882 * target.c (update_current_target): Don't inherit or default
11883 to_post_startup_inferior.
11884 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11885 TARGET_DEFAULT_IGNORE.
11886
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target-delegates.c: Rebuild.
11890 * target.c (update_current_target): Don't inherit or default
11891 to_load.
11892 * target.h (struct target_ops) <to_load>: Use
11893 TARGET_DEFAULT_NORETURN.
11894
11895 2014-02-19 Tom Tromey <tromey@redhat.com>
11896
11897 * target-delegates.c: Rebuild.
11898 * target.c (update_current_target): Don't inherit or default
11899 to_terminal_info.
11900 * target.h (struct target_ops) <to_terminal_info>: Use
11901 TARGET_DEFAULT_FUNC.
11902
11903 2014-02-19 Tom Tromey <tromey@redhat.com>
11904
11905 * target-delegates.c: Rebuild.
11906 * target.c (update_current_target): Don't inherit or default
11907 to_terminal_save_ours.
11908 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11909 TARGET_DEFAULT_IGNORE.
11910
11911 2014-02-19 Tom Tromey <tromey@redhat.com>
11912
11913 * target-delegates.c: Rebuild.
11914 * target.c (update_current_target): Don't inherit or default
11915 to_terminal_ours.
11916 * target.h (struct target_ops) <to_terminal_ours>: Use
11917 TARGET_DEFAULT_IGNORE.
11918
11919 2014-02-19 Tom Tromey <tromey@redhat.com>
11920
11921 * target-delegates.c: Rebuild.
11922 * target.c (update_current_target): Don't inherit or default
11923 to_terminal_ours_for_output.
11924 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11925 TARGET_DEFAULT_IGNORE.
11926
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * target-delegates.c: Rebuild.
11930 * target.c (update_current_target): Don't inherit or default
11931 to_terminal_inferior.
11932 * target.h (struct target_ops) <to_terminal_inferior>: Use
11933 TARGET_DEFAULT_IGNORE.
11934
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target-delegates.c: Rebuild.
11938 * target.c (update_current_target): Don't inherit or default
11939 to_terminal_init.
11940 * target.h (struct target_ops) <to_terminal_init>: Use
11941 TARGET_DEFAULT_IGNORE.
11942
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * target-delegates.c: Rebuild.
11946 * target.c (update_current_target): Don't inherit or default
11947 to_can_accel_watchpoint_condition.
11948 * target.h (struct target_ops)
11949 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11950
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target-delegates.c: Rebuild.
11954 * target.c (update_current_target): Don't inherit or default
11955 to_region_ok_for_hw_watchpoint.
11956 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11957 Use TARGET_DEFAULT_FUNC.
11958
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target-delegates.c: Rebuild.
11962 * target.c (update_current_target): Don't inherit or default
11963 to_watchpoint_addr_within_range.
11964 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11965 Use TARGET_DEFAULT_FUNC.
11966
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target-delegates.c: Rebuild.
11970 * target.c (update_current_target): Don't inherit or default
11971 to_remove_watchpoint.
11972 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11973 TARGET_DEFAULT_NORETURN.
11974
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target-delegates.c: Rebuild.
11978 * target.c (update_current_target): Don't inherit or default
11979 to_insert_watchpoint.
11980 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11981 TARGET_DEFAULT_RETURN.
11982
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target-delegates.c: Rebuild.
11986 * target.c (update_current_target): Don't inherit or default
11987 to_remove_hw_breakpoint.
11988 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11989 TARGET_DEFAULT_RETURN.
11990
11991 2014-02-19 Tom Tromey <tromey@redhat.com>
11992
11993 * target-delegates.c: Rebuild.
11994 * target.c (update_current_target): Don't inherit or default
11995 to_insert_hw_breakpoint.
11996 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11997 TARGET_DEFAULT_RETURN.
11998
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * target-delegates.c: Rebuild.
12002 * target.c (update_current_target): Don't inherit or default
12003 to_can_use_hw_breakpoint.
12004 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12005 TARGET_DEFAULT_RETURN.
12006
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target-delegates.c: Rebuild.
12010 * target.c (update_current_target): Don't inherit or default
12011 to_files_info.
12012 * target.h (struct target_ops) <to_files_info>: Use
12013 TARGET_DEFAULT_IGNORE.
12014
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target-delegates.c: Rebuild.
12018 * target.c (update_current_target): Don't inherit or default
12019 to_store.
12020 * target.h (struct target_ops) <to_store>: Use
12021 TARGET_DEFAULT_NORETURN.
12022
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target-delegates.c: Rebuild.
12026 * target.c (update_current_target): Don't inherit or default
12027 to_post_attach.
12028 * target.h (struct target_ops) <to_post_attach>: Use
12029 TARGET_DEFAULT_IGNORE.
12030
12031 2014-02-19 Tom Tromey <tromey@redhat.com>
12032
12033 * target-delegates.c: Rebuild.
12034 * target.c (update_current_target): Don't inherit or default
12035 to_rcmd.
12036 (default_rcmd): New function.
12037 (do_monitor_command): Unconditionally delegate.
12038 * target.h (struct target_ops) <to_rmcd>: Use
12039 TARGET_DEFAULT_FUNC.
12040
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12042
12043 * target-delegates.c: Rebuild.
12044 * target.c (init_dummy_target): Don't initialize to_attach.
12045 (target_attach): Unconditionally delegate.
12046 * target.h (struct target_ops) <to_attach>: Use
12047 TARGET_DEFAULT_FUNC.
12048
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target-delegates.c: Rebuild.
12052 * target.c (target_detach): Unconditionally delegate.
12053 (init_dummy_target): Don't initialize to_detach.
12054 * target.h (struct target_ops) <to_detach>: Use
12055 TARGET_DEFAULT_IGNORE.
12056
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12058
12059 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12060 Add argument.
12061 (target_augmented_libraries_svr4_read): Add argument.
12062 * target.c (update_current_target): Update.
12063 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12064 argument.
12065
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * target.h (struct target_ops) <to_call_history_range>: Add
12069 argument.
12070 * target.c (target_call_history_range): Add argument.
12071 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12072 argument.
12073 (record_btrace_call_history_from): Update.
12074
12075 2014-02-19 Tom Tromey <tromey@redhat.com>
12076
12077 * target.h (struct target_ops) <to_call_history_from>: Add
12078 argument.
12079 * target.c (target_call_history_from): Add argument.
12080 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12081 argument.
12082
12083 2014-02-19 Tom Tromey <tromey@redhat.com>
12084
12085 * target.h (struct target_ops) <to_call_history>: Add argument.
12086 * target.c (target_call_history): Add argument.
12087 * record-btrace.c (record_btrace_call_history): Add 'self'
12088 argument.
12089
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target.h (struct target_ops) <to_insn_history_range>: Add
12093 argument.
12094 * target.c (target_insn_history_range): Add argument.
12095 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12096 argument.
12097 (record_btrace_insn_history_from): Update.
12098
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target.h (struct target_ops) <to_insn_history_from>: Add
12102 argument.
12103 * target.c (target_insn_history_from): Add argument.
12104 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12105 argument.
12106
12107 2014-02-19 Tom Tromey <tromey@redhat.com>
12108
12109 * target.h (struct target_ops) <to_insn_history>: Add argument.
12110 * target.c (target_insn_history): Add argument.
12111 * record-btrace.c (record_btrace_insn_history): Add 'self'
12112 argument.
12113
12114 2014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target.h (struct target_ops) <to_goto_record>: Add argument.
12117 * target.c (target_goto_record): Add argument.
12118 * record-full.c (record_full_goto): Add 'self' argument.
12119 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12120
12121 2014-02-19 Tom Tromey <tromey@redhat.com>
12122
12123 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12124 * target.c (target_goto_record_end): Add argument.
12125 * record-full.c (record_full_goto_end): Add 'self' argument.
12126 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12127
12128 2014-02-19 Tom Tromey <tromey@redhat.com>
12129
12130 * target.h (struct target_ops) <to_goto_record_begin>: Add
12131 argument.
12132 * target.c (target_goto_record_begin): Add argument.
12133 * record-full.c (record_full_goto_begin): Add 'self' argument.
12134 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12135 argument.
12136
12137 2014-02-19 Tom Tromey <tromey@redhat.com>
12138
12139 * target.h (struct target_ops) <to_record_is_replaying>: Add
12140 argument.
12141 * target.c (target_record_is_replaying): Add argument.
12142 * record-full.c (record_full_is_replaying): Add 'self' argument.
12143 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12144 argument.
12145 (record_btrace_xfer_partial, record_btrace_store_registers)
12146 (record_btrace_prepare_to_store, record_btrace_resume)
12147 (record_btrace_wait, record_btrace_decr_pc_after_break)
12148 (record_btrace_find_new_threads, record_btrace_thread_alive):
12149 Update.
12150
12151 2014-02-19 Tom Tromey <tromey@redhat.com>
12152
12153 * target.h (struct target_ops) <to_delete_record>: Add argument.
12154 * target.c (target_delete_record): Add argument.
12155 * record-full.c (record_full_delete): Add 'self' argument.
12156
12157 2014-02-19 Tom Tromey <tromey@redhat.com>
12158
12159 * target.h (struct target_ops) <to_save_record>: Add argument.
12160 * target.c (target_save_record): Add argument.
12161 * record-full.c (record_full_save): Add 'self' argument.
12162 (record_full_save): Add 'self' argument.
12163
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * target.h (struct target_ops) <to_info_record>: Add argument.
12167 * target.c (target_info_record): Add argument.
12168 * record.c (info_record_command): Add argument.
12169 * record-full.c (record_full_info): Add 'self' argument.
12170 * record-btrace.c (record_btrace_info): Add 'self' argument.
12171
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12175 * target.c (target_stop_recording): Add argument.
12176 * record.c (record_stop): Add argument.
12177 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12178 argument.
12179
12180 2014-02-19 Tom Tromey <tromey@redhat.com>
12181
12182 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12183 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12184 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12185 argument.
12186 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12187 (_initialize_amd64_linux_nat): Use it.
12188 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12189 (_initialize_i386_linux_nat): Use it.
12190
12191 2014-02-19 Tom Tromey <tromey@redhat.com>
12192
12193 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12194 * target.c (target_teardown_btrace): Add argument.
12195 * remote.c (remote_teardown_btrace): Add 'self' argument.
12196 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12197 argument.
12198 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12199 argument.
12200
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12204 * target.c (target_disable_btrace): Add argument.
12205 * remote.c (remote_disable_btrace): Add 'self' argument.
12206 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12207 argument.
12208 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12209 argument.
12210
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12214 * target.c (target_enable_btrace): Add argument.
12215 * remote.c (remote_enable_btrace): Add 'self' argument.
12216 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12217 argument.
12218 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12219 argument.
12220
12221 2014-02-19 Tom Tromey <tromey@redhat.com>
12222
12223 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12224 (target_can_use_agent): Add argument.
12225 * target.c (update_current_target): Update.
12226 * remote.c (remote_can_use_agent): Add 'self' argument.
12227 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12228
12229 2014-02-19 Tom Tromey <tromey@redhat.com>
12230
12231 * target.h (struct target_ops) <to_use_agent>: Add argument.
12232 (target_use_agent): Add argument.
12233 * target.c (update_current_target): Update.
12234 * remote.c (remote_use_agent): Add 'self' argument.
12235 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12236
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12238
12239 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12240 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12241 (target_traceframe_info): Add argument.
12242 * target.c (update_current_target): Update.
12243 * remote.c (remote_traceframe_info): Add 'self' argument.
12244 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12245
12246 2014-02-19 Tom Tromey <tromey@redhat.com>
12247
12248 * target.h (target_static_tracepoint_markers_by_strid): Add
12249 argument.
12250 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12251 'self' argument.
12252 * target.c (update_current_target): Update.
12253 * remote.c (struct target_ops)
12254 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12255 * linux-nat.c (struct target_ops)
12256 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12257
12258 2014-02-19 Tom Tromey <tromey@redhat.com>
12259
12260 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12261 Add argument.
12262 (target_static_tracepoint_marker_at): Add argument.
12263 * target.c (update_current_target): Update.
12264 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12265 argument.
12266
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12270 (target_set_permissions): Add argument.
12271 * target.c (update_current_target): Update.
12272 * remote.c (remote_set_permissions): Add 'self' argument.
12273 (remote_start_remote): Update.
12274
12275 2014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12278 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12279 (target_get_tib_address): Add argument.
12280 * target.c (update_current_target): Update.
12281 * remote.c (remote_get_tib_address): Add 'self' argument.
12282
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12284
12285 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12286 (target_set_trace_notes): Add argument.
12287 * target.c (update_current_target): Update.
12288 * remote.c (remote_set_trace_notes): Add 'self' argument.
12289
12290 2014-02-19 Tom Tromey <tromey@redhat.com>
12291
12292 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12293 argument.
12294 (target_set_trace_buffer_size): Add argument.
12295 * target.c (update_current_target): Update.
12296 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12297
12298 2014-02-19 Tom Tromey <tromey@redhat.com>
12299
12300 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12301 argument.
12302 (target_set_circular_trace_buffer): Add argument.
12303 * target.c (update_current_target): Update.
12304 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12305 argument.
12306
12307 2014-02-19 Tom Tromey <tromey@redhat.com>
12308
12309 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12310 argument.
12311 (target_set_disconnected_tracing): Add argument.
12312 * target.c (update_current_target): Update.
12313 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12314
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12316
12317 * target.h (struct target_ops)
12318 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12319 (target_get_min_fast_tracepoint_insn_len): Add argument.
12320 * target.c (update_current_target): Update.
12321 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12322 argument.
12323
12324 2014-02-19 Tom Tromey <tromey@redhat.com>
12325
12326 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12327 argument.
12328 (target_get_raw_trace_data): Add argument.
12329 * target.c (update_current_target): Update.
12330 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12331
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12335 Add argument.
12336 (target_upload_trace_state_variables): Add argument.
12337 * target.c (update_current_target): Update.
12338 * remote.c (remote_upload_trace_state_variables): Add 'self'
12339 argument.
12340 (remote_start_remote): Update.
12341
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12343
12344 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12345 argument.
12346 (target_upload_tracepoints): Add argument.
12347 * target.c (update_current_target): Update.
12348 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12349 (remote_start_remote): Update.
12350
12351 2014-02-19 Tom Tromey <tromey@redhat.com>
12352
12353 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12354 (target_save_trace_data): Add argument.
12355 * target.c (update_current_target): Update.
12356 * remote.c (remote_save_trace_data): Add 'self' argument.
12357
12358 2014-02-19 Tom Tromey <tromey@redhat.com>
12359
12360 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12361 argument.
12362 * target.h (struct target_ops)
12363 <to_get_trace_state_variable_value>: Add argument.
12364 (target_get_trace_state_variable_value): Add argument.
12365 * target.c (update_current_target): Update.
12366 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12367 argument.
12368 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12369
12370 2014-02-19 Tom Tromey <tromey@redhat.com>
12371
12372 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12373 * target.h (struct target_ops) <to_trace_find>: Add argument.
12374 (target_trace_find): Add argument.
12375 * target.c (update_current_target): Update.
12376 * remote.c (remote_trace_find): Add 'self' argument.
12377 * ctf.c (ctf_trace_find): Add 'self' argument.
12378
12379 2014-02-19 Tom Tromey <tromey@redhat.com>
12380
12381 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12382 (target_trace_stop): Add argument.
12383 * target.c (update_current_target): Update.
12384 * remote.c (remote_trace_stop): Add 'self' argument.
12385
12386 2014-02-19 Tom Tromey <tromey@redhat.com>
12387
12388 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12389 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12390 argument.
12391 (target_get_tracepoint_status): Add argument.
12392 * target.c (update_current_target): Update.
12393 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12394
12395 2014-02-19 Tom Tromey <tromey@redhat.com>
12396
12397 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12398 * target.h (struct target_ops) <to_get_trace_status>: Add
12399 argument.
12400 (target_get_trace_status): Add argument.
12401 * target.c (update_current_target): Update.
12402 * remote.c (remote_get_trace_status): Add 'self' argument.
12403 (remote_start_remote, remote_can_download_tracepoint): Update.
12404 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12405
12406 2014-02-19 Tom Tromey <tromey@redhat.com>
12407
12408 * target.h (struct target_ops) <to_trace_start>: Add argument.
12409 (target_trace_start): Add argument.
12410 * target.c (update_current_target): Update.
12411 * remote.c (remote_trace_start): Add 'self' argument.
12412
12413 2014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12416 Add argument.
12417 (target_trace_set_readonly_regions): Add argument.
12418 * target.c (update_current_target): Update.
12419 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12420 argument.
12421
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12423
12424 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12425 argument.
12426 (target_disable_tracepoint): Add argument.
12427 * target.c (update_current_target): Update.
12428 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12429
12430 2014-02-19 Tom Tromey <tromey@redhat.com>
12431
12432 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12433 argument.
12434 (target_enable_tracepoint): Add argument.
12435 * target.c (update_current_target): Update.
12436 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12437
12438 2014-02-19 Tom Tromey <tromey@redhat.com>
12439
12440 * target.h (struct target_ops) <to_download_trace_state_variable>:
12441 Add argument.
12442 (target_download_trace_state_variable): Add argument.
12443 * target.c (update_current_target): Update.
12444 * remote.c (remote_download_trace_state_variable): Add 'self'
12445 argument.
12446
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12448
12449 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12450 argument.
12451 (target_can_download_tracepoint): Add argument.
12452 * target.c (update_current_target): Update.
12453 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12454
12455 2014-02-19 Tom Tromey <tromey@redhat.com>
12456
12457 * target.h (struct target_ops) <to_download_tracepoint>: Add
12458 argument.
12459 (target_download_tracepoint): Add argument.
12460 * target.c (update_current_target): Update.
12461 * remote.c (remote_download_tracepoint): Add 'self' argument.
12462
12463 2014-02-19 Tom Tromey <tromey@redhat.com>
12464
12465 * target.h (struct target_ops) <to_trace_init>: Add argument.
12466 (target_trace_init): Add argument.
12467 * target.c (update_current_target): Update.
12468 * remote.c (remote_trace_init): Add 'self' argument.
12469
12470 2014-02-19 Tom Tromey <tromey@redhat.com>
12471
12472 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12473 * target.c (target_fileio_readlink): Add argument.
12474 * remote.c (remote_hostio_readlink): Add 'self' argument.
12475 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12476
12477 2014-02-19 Tom Tromey <tromey@redhat.com>
12478
12479 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12480 * target.c (target_fileio_unlink): Add argument.
12481 * remote.c (remote_hostio_unlink): Add 'self' argument.
12482 (remote_file_delete): Update.
12483 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12484
12485 2014-02-19 Tom Tromey <tromey@redhat.com>
12486
12487 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12488 * target.c (target_fileio_close): Add argument.
12489 * remote.c (remote_hostio_close): Add 'self' argument.
12490 (remote_hostio_close_cleanup): Update.
12491 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12492 Update.
12493 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12494
12495 2014-02-19 Tom Tromey <tromey@redhat.com>
12496
12497 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12498 * target.c (target_fileio_pread): Add argument.
12499 * remote.c (remote_hostio_pread): Add 'self' argument.
12500 (remote_bfd_iovec_pread, remote_file_get): Update.
12501 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12502
12503 2014-02-19 Tom Tromey <tromey@redhat.com>
12504
12505 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12506 * target.c (target_fileio_pwrite): Add argument.
12507 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12508 (remote_file_put): Update.
12509 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12510
12511 2014-02-19 Tom Tromey <tromey@redhat.com>
12512
12513 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12514 * target.c (target_fileio_open): Add argument.
12515 * remote.c (remote_hostio_open): Add 'self' argument.
12516 (remote_bfd_iovec_open): Add 'self' argument.
12517 (remote_file_put): Add 'self' argument.
12518 (remote_file_get): Add 'self' argument.
12519 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12520
12521 2014-02-19 Tom Tromey <tromey@redhat.com>
12522
12523 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12524 Add argument.
12525 (target_can_run_breakpoint_commands): Add argument.
12526 * target.c (update_current_target): Update.
12527 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12528 argument.
12529 (remote_insert_breakpoint): Add 'self' argument.
12530 (remote_insert_hw_breakpoint): Add 'self' argument.
12531 (remote_can_run_breakpoint_commands): Add 'self' argument.
12532
12533 2014-02-19 Tom Tromey <tromey@redhat.com>
12534
12535 * target.h (struct target_ops)
12536 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12537 (target_supports_evaluation_of_breakpoint_conditions): Add
12538 argument.
12539 * target.c (update_current_target): Update.
12540 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12541 argument.
12542 (remote_insert_breakpoint): Add 'self' argument.
12543 (remote_insert_hw_breakpoint): Add 'self' argument.
12544 (remote_supports_cond_breakpoints): Add 'self' argument.
12545
12546 2014-02-19 Tom Tromey <tromey@redhat.com>
12547
12548 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12549 argument.
12550 (target_supports_string_tracing): Add argument.
12551 * target.c (update_current_target): Update.
12552 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12553
12554 2014-02-19 Tom Tromey <tromey@redhat.com>
12555
12556 * target.h (struct target_ops)
12557 <to_supports_disable_randomization>: Add argument.
12558 * target.c (find_default_supports_disable_randomization): Add
12559 argument.
12560 (target_supports_disable_randomization): Add argument.
12561 (find_default_supports_disable_randomization): Add 'self'
12562 argument.
12563 * remote.c (extended_remote_supports_disable_randomization): Add
12564 'self' argument.
12565 (remote_supports_disable_randomization): Add 'self' argument.
12566 (extended_remote_create_inferior): Update.
12567 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12568 'self' argument.
12569
12570 2014-02-19 Tom Tromey <tromey@redhat.com>
12571
12572 * target.h (struct target_ops)
12573 <to_supports_enable_disable_tracepoint>: Add argument.
12574 (target_supports_enable_disable_tracepoint): Add argument.
12575 * target.c (update_current_target): Update.
12576 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12577 argument.
12578
12579 2014-02-19 Tom Tromey <tromey@redhat.com>
12580
12581 * target.h (struct target_ops) <to_supports_multi_process>: Add
12582 argument.
12583 (target_supports_multi_process): Add argument.
12584 * target.c (update_current_target): Update.
12585 * remote.c (remote_supports_multi_process): Add 'self' argument.
12586 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12587 argument.
12588 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12589 argument.
12590
12591 2014-02-19 Tom Tromey <tromey@redhat.com>
12592
12593 * target.h (struct target_ops) <to_execution_direction>: Add
12594 argument.
12595 (target_execution_direction): Add argument.
12596 * target.c (default_execution_direction): Add 'self' argument.
12597 * record-full.c (record_full_execution_direction): Add 'self'
12598 argument.
12599
12600 2014-02-19 Tom Tromey <tromey@redhat.com>
12601
12602 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12603 argument.
12604 (target_can_execute_reverse): Add argument.
12605 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12606 * record-full.c (record_full_can_execute_reverse): Add 'self'
12607 argument.
12608 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12609 argument.
12610
12611 2014-02-19 Tom Tromey <tromey@redhat.com>
12612
12613 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12614 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12615 argument.
12616 (target_get_ada_task_ptid): Add argument.
12617 * target.c (update_current_target): Update.
12618 (default_get_ada_task_ptid): Add 'self' argument.
12619 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12620 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12621 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12622 argument.
12623 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12624 argument.
12625 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12626 argument.
12627 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12628 argument.
12629 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12630 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12631 argument.
12632
12633 2014-02-19 Tom Tromey <tromey@redhat.com>
12634
12635 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12636 (target_goto_bookmark): Add argument.
12637 * target.c (dummy_goto_bookmark): Add 'self' argument.
12638 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12639
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12641
12642 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12643 (target_get_bookmark): Add argument.
12644 * target.c (dummy_get_bookmark): Add 'self' argument.
12645 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12646
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12650 argument.
12651 (target_make_corefile_notes): Add argument.
12652 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12653 * procfs.c (procfs_make_note_section): Add 'self' argument.
12654 (procfs_make_note_section): Add 'self' argument.
12655 (procfs_make_note_section): Add 'self' argument.
12656 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12657 argument.
12658 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12659 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12660 * exec.c (exec_make_note_section): Add 'self' argument.
12661 (exec_make_note_section): Add 'self' argument.
12662
12663 2014-02-19 Tom Tromey <tromey@redhat.com>
12664
12665 * target.h (struct target_ops) <to_find_memory_regions>: Add
12666 argument.
12667 (target_find_memory_regions): Add argument.
12668 * target.c (dummy_find_memory_regions): Add 'self' argument.
12669 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12670 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12671 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12672 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12673 * exec. (exec_do_find_memory_regions): New global.
12674 (exec_set_find_memory_regions): Rewrite.
12675 (exec_find_memory_regions): New function.
12676 (init_exec_ops): Use exec_find_memory_regions.
12677
12678 2014-02-19 Tom Tromey <tromey@redhat.com>
12679
12680 * target.h (struct target_ops) <to_supports_non_stop>: Add
12681 argument.
12682 * target.c (find_default_supports_non_stop): Add argument.
12683 (target_supports_non_stop): Add argument.
12684 (find_default_supports_non_stop): Add 'self' argument.
12685 * remote.c (remote_supports_non_stop): Add 'self' argument.
12686 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12687
12688 2014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * target.h (struct target_ops) <to_log_command>: Add argument.
12691 (target_log_command): Add argument.
12692 * serial.h (serial_log_command): Add 'self' argument.
12693 * serial.c (serial_log_command): Add 'self' argument.
12694
12695 2014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12698 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12699 argument.
12700 (target_pid_to_exec_file): Add argument.
12701 * target.c (debug_to_pid_to_exec_file): Add argument.
12702 (update_current_target): Update.
12703 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12704 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12705 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12706 (linux_handle_extended_wait): Update.
12707 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12708 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12709 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12710 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12711
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12713
12714 * target.h (struct target_ops) <to_rcmd>: Add argument.
12715 (target_rcmd): Add argument.
12716 * target.c (debug_to_rcmd): Add argument.
12717 (update_current_target, do_monitor_command): Update.
12718 * remote.c (remote_rcmd): Add 'self' argument.
12719 * monitor.c (monitor_rcmd): Add 'self' argument.
12720
12721 2014-02-19 Tom Tromey <tromey@redhat.com>
12722
12723 * windows-nat.c (windows_stop): Add 'self' argument.
12724 * target.h (struct target_ops) <to_stop>: Add argument.
12725 * target.c (target_stop): Add argument.
12726 (debug_to_stop): Add argument.
12727 (update_current_target): Update.
12728 * remote.c (remote_stop): Add 'self' argument.
12729 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12730 (gdbsim_cntrl_c): Update.
12731 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12732 * procfs.c (procfs_stop): Add 'self' argument.
12733 * nto-procfs.c (procfs_stop): Add 'self' argument.
12734 * monitor.c (monitor_stop): Add 'self' argument.
12735 (monitor_open): Update.
12736 * linux-nat.c (linux_nat_stop): Add argument.
12737 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12738 * gnu-nat.c (gnu_stop): Add 'self' argument.
12739 * darwin-nat.c (darwin_stop): Add 'self' argument.
12740
12741 2014-02-19 Tom Tromey <tromey@redhat.com>
12742
12743 * target.h (struct target_ops) <to_thread_name>: Add argument.
12744 * target.c (target_thread_name): Add argument.
12745 (update_current_target): Update.
12746 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12747
12748 2014-02-19 Tom Tromey <tromey@redhat.com>
12749
12750 * target.h (struct target_ops) <to_extra_thread_info>: Add
12751 argument.
12752 (target_extra_thread_info): Add argument.
12753 * target.c (update_current_target): Update.
12754 * remote.c (remote_threads_extra_info): Add 'self' argument.
12755 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12756 argument.
12757 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12758 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12759 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12760 argument.
12761 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12762 argument.
12763 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12764 argument.
12765 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12766 argument.
12767
12768 2014-02-19 Tom Tromey <tromey@redhat.com>
12769
12770 * target.h (struct target_ops) <to_program_signals>: Add argument.
12771 * target.c (target_program_signals): Add argument.
12772 * remote.c (remote_program_signals): Add 'self' argument.
12773
12774 2014-02-19 Tom Tromey <tromey@redhat.com>
12775
12776 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12777 * target.c (target_pass_signals): Add argument.
12778 * remote.c (remote_pass_signals): Add 'self' argument.
12779 (remote_start_remote): Update.
12780 * procfs.c (procfs_pass_signals): Add 'self' argument.
12781 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12782 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12783 (linux_nat_create_inferior, linux_nat_attach): Update.
12784
12785 2014-02-19 Tom Tromey <tromey@redhat.com>
12786
12787 * windows-nat.c (windows_can_run): Add 'self' argument.
12788 * target.h (struct target_ops) <to_can_run>: Add argument.
12789 (target_can_run): Add argument.
12790 * target.c (debug_to_can_run): Add argument.
12791 (update_current_target): Update.
12792 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12793 * inf-child.c (inf_child_can_run): Add 'self' argument.
12794 * go32-nat.c (go32_can_run): Add 'self' argument.
12795
12796 2014-02-19 Tom Tromey <tromey@redhat.com>
12797
12798 * target.h (struct target_ops) <to_has_exited>: Add argument.
12799 (target_has_exited): Add argument.
12800 * target.c (debug_to_has_exited): Add argument.
12801 (update_current_target): Update.
12802
12803 2014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12806 argument.
12807 (target_set_syscall_catchpoint): Add argument.
12808 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12809 argument.
12810 * target.c (update_current_target): Update.
12811
12812 2014-02-19 Tom Tromey <tromey@redhat.com>
12813
12814 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12815 argument.
12816 (target_remove_exec_catchpoint): Add argument.
12817 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12818 (update_current_target): Update.
12819 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12820 argument.
12821
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12823
12824 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12825 argument.
12826 (target_insert_exec_catchpoint): Add argument.
12827 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12828 (update_current_target): Update.
12829 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12830 argument.
12831
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12835 argument.
12836 (target_remove_vfork_catchpoint): Add argument.
12837 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12838 (update_current_target): Update.
12839 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12840 argument.
12841
12842 2014-02-19 Tom Tromey <tromey@redhat.com>
12843
12844 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12845 argument.
12846 (target_insert_vfork_catchpoint): Add argument.
12847 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12848 (update_current_target): Update.
12849 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12850 argument.
12851
12852 2014-02-19 Tom Tromey <tromey@redhat.com>
12853
12854 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12855 argument.
12856 (target_remove_fork_catchpoint): Add argument.
12857 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12858 (update_current_target): Update.
12859 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12860 argument.
12861
12862 2014-02-19 Tom Tromey <tromey@redhat.com>
12863
12864 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12865 argument.
12866 (target_insert_fork_catchpoint): Add argument.
12867 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12868 (update_current_target): Update.
12869 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12870 argument.
12871
12872 2014-02-19 Tom Tromey <tromey@redhat.com>
12873
12874 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12875 argument.
12876 (target_post_startup_inferior): Add argument.
12877 * target.c (debug_to_post_startup_inferior): Add argument.
12878 (update_current_target): Update.
12879 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12880 argument.
12881 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12882 argument.
12883 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12884 argument.
12885 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12886 argument.
12887 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12888 'self' argument.
12889 (super_post_startup_inferior): Likewise.
12890 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12891 'self' argument.
12892 (super_post_startup_inferior): Likewise.
12893 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12894 Add 'self' argument.
12895 (super_post_startup_inferior): Likewise.
12896
12897 2014-02-19 Tom Tromey <tromey@redhat.com>
12898
12899 * target.h (struct target_ops) <to_load>: Add argument.
12900 * target.c (target_load): Add argument.
12901 (debug_to_load): Add argument.
12902 (update_current_target): Update.
12903 * remote.c (remote_load): Add 'self' argument.
12904 * remote-sim.c (gdbsim_load): Add 'self' argument.
12905 * remote-mips.c (mips_load): Add 'self' argument.
12906 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12907 * monitor.c (monitor_load): Add 'self' argument.
12908 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12909
12910 2014-02-19 Tom Tromey <tromey@redhat.com>
12911
12912 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12913 (target_terminal_info): Add argument.
12914 * target.c (debug_to_terminal_info): Add argument.
12915 (default_terminal_info): Likewise.
12916 * inflow.c (child_terminal_info): Add 'self' argument.
12917 * inferior.h (child_terminal_info): Add 'self' argument.
12918 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12919
12920 2014-02-19 Tom Tromey <tromey@redhat.com>
12921
12922 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12923 argument.
12924 (target_terminal_save_ours): Add argument.
12925 * target.c (debug_to_terminal_save_ours): Add argument.
12926 (update_current_target): Update.
12927 * inflow.c (terminal_save_ours): Add 'self' argument.
12928 * inferior.h (terminal_save_ours): Add 'self' argument.
12929
12930 2014-02-19 Tom Tromey <tromey@redhat.com>
12931
12932 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12933 (target_terminal_ours): Add argument.
12934 * target.c (debug_to_terminal_ours): Add argument.
12935 (update_current_target): Update.
12936 * remote.c (remote_terminal_ours): Add 'self' argument.
12937 (remote_close): Update.
12938 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12939 * inflow.c (terminal_ours): Add 'self' argument.
12940 * inferior.h (terminal_ours): Add 'self' argument.
12941 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12942
12943 2014-02-19 Pedro Alves <palves@redhat.com>
12944 Tom Tromey <tromey@redhat.com>
12945
12946 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12947 argument.
12948 (target_terminal_ours_for_output): Add argument.
12949 * target.c (debug_to_terminal_ours_for_output): Add argument.
12950 (update_current_target): Update.
12951 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12952 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12953 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12954
12955 2014-02-19 Tom Tromey <tromey@redhat.com>
12956
12957 * target.h (struct target_ops) <to_terminal_inferior>: Add
12958 argument.
12959 * target.c (target_terminal_inferior): Add argument.
12960 (update_current_target): Update.
12961 * remote.c (remote_terminal_inferior): Add 'self' argument.
12962 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12963 * inflow.c (terminal_inferior): Add 'self' argument.
12964 * inferior.h (terminal_inferior): Add 'self' argument.
12965 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12966 (go32_terminal_inferior): Add 'self' argument.
12967
12968 2014-02-19 Tom Tromey <tromey@redhat.com>
12969
12970 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12971 (target_terminal_init): Add argument.
12972 * target.c (debug_to_terminal_init): Add argument.
12973 (update_current_target): Update.
12974 * inflow.c (terminal_init_inferior): Add 'self' argument.
12975 * inferior.h (terminal_init_inferior): Add 'self' argument.
12976 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12977 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12978
12979 2014-02-19 Tom Tromey <tromey@redhat.com>
12980
12981 * target.h (struct target_ops)
12982 <to_can_accel_watchpoint_condition>: Add argument.
12983 (target_can_accel_watchpoint_condition): Add argument.
12984 * target.c (debug_to_can_accel_watchpoint_condition): Add
12985 argument.
12986 (update_current_target): Update.
12987 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12988 'self' argument.
12989
12990 2014-02-19 Tom Tromey <tromey@redhat.com>
12991
12992 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12993 Add argument.
12994 (target_region_ok_for_hw_watchpoint): Add argument.
12995 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12996 (default_region_ok_for_hw_watchpoint): Add argument.
12997 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12998 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12999 argument.
13000 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13001 argument.
13002 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13003 argument.
13004 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13005 'self' argument.
13006 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13007 'self' argument.
13008 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13009 'self' argument.
13010 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13011 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13012 'self' argument.
13013 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13014 Add 'self' argument.
13015
13016 2014-02-19 Tom Tromey <tromey@redhat.com>
13017
13018 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13019 argument.
13020 (target_insert_watchpoint): Add argument.
13021 * target.c (debug_to_insert_watchpoint): Add argument.
13022 (update_current_target): Update.
13023 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13024 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13025 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13026 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13027 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13028 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13029 argument.
13030 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13031 (procfs_insert_hw_watchpoint): Add 'self' argument.
13032 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13033 argument.
13034 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13035 argument.
13036 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13037 argument.
13038 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13039 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13040 argument.
13041 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13042 'self' argument.
13043
13044 2014-02-19 Tom Tromey <tromey@redhat.com>
13045
13046 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13047 argument.
13048 (target_remove_watchpoint): Add argument.
13049 * target.c (debug_to_remove_watchpoint): Add argument.
13050 (update_current_target): Update.
13051 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13052 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13053 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13054 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13055 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13056 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13057 argument.
13058 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13059 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13060 argument.
13061 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13062 argument.
13063 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13064 argument.
13065 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13066 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13067 argument.
13068 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13069 'self' argument.
13070
13071 2014-02-19 Tom Tromey <tromey@redhat.com>
13072
13073 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13074 argument.
13075 (target_remove_hw_breakpoint): Add argument.
13076 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13077 (update_current_target): Update.
13078 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13079 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13080 argument.
13081 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13082 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13083 argument.
13084 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13085 'self' argument.
13086
13087 2014-02-19 Tom Tromey <tromey@redhat.com>
13088
13089 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13090 argument.
13091 (target_insert_hw_breakpoint): Add argument.
13092 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13093 (update_current_target): Update.
13094 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13095 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13096 argument.
13097 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13098 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13099 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13100 argument.
13101 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13102 'self' argument.
13103
13104 2014-02-19 Tom Tromey <tromey@redhat.com>
13105
13106 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13107 argument.
13108 (target_can_use_hardware_watchpoint): Add argument.
13109 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13110 (update_current_target): Update.
13111 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13112 argument.
13113 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13114 argument.
13115 * remote.c (remote_check_watch_resources): Add 'self' argument.
13116 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13117 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13118 argument.
13119 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13120 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13121 argument.
13122 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13123 argument.
13124 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13125 argument.
13126 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13127 argument.
13128 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13129 argument.
13130 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13131 argument.
13132 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13133 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13134 argument.
13135 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13136 'self' argument.
13137
13138 2014-02-19 Tom Tromey <tromey@redhat.com>
13139
13140 * target.h (struct target_ops) <to_post_attach>: Add argument.
13141 (target_post_attach): Add argument.
13142 * target.c (debug_to_post_attach): Add argument.
13143 (update_current_target): Update.
13144 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13145 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13146 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13147 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13148 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13149
13150 2014-02-19 Tom Tromey <tromey@redhat.com>
13151
13152 * windows-nat.c (windows_close): Add 'self' argument.
13153 * tracepoint.c (tfile_close): Add 'self' argument.
13154 * target.h (struct target_ops) <to_close>: Add argument.
13155 * target.c (target_close): Add argument.
13156 (update_current_target): Update.
13157 * remote.c (remote_close): Add 'self' argument.
13158 * remote-sim.c (gdbsim_close): Add 'self' argument.
13159 * remote-mips.c (mips_close): Add 'self' argument.
13160 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13161 * record-full.c (record_full_close): Add 'self' argument.
13162 * record-btrace.c (record_btrace_close): Add 'self' argument.
13163 * monitor.h (monitor_close): Add 'self' argument.
13164 * monitor.c (monitor_close): Add 'self' argument.
13165 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13166 * linux-nat.c (linux_nat_close): Add argument.
13167 * go32-nat.c (go32_close): Add 'self' argument.
13168 * exec.c (exec_close_1): Add 'self' argument.
13169 * ctf.c (ctf_close): Add 'self' argument.
13170 * corelow.c (core_close): Add 'self' argument.
13171 (core_close_cleanup): Update.
13172 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13173 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13174
13175 2014-02-19 Tom Tromey <tromey@redhat.com>
13176
13177 * remote.c (remote_load): New function.
13178 (init_remote_ops): Use it.
13179
13180 2014-02-19 Tom Tromey <tromey@redhat.com>
13181
13182 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13183 argument.
13184 * common/linux-btrace.h (linux_supports_btrace): Update.
13185 * remote.c (remote_supports_btrace): Add "self" argument.
13186 * target-delegates.c: Rebuild.
13187 * target.c (target_supports_btrace): Remove.
13188 * target.h (struct target_ops) <to_supports_btrace>: Add
13189 target_ops argument.
13190 (target_supports_btrace): New define.
13191
13192 2014-02-19 Tom Tromey <tromey@redhat.com>
13193
13194 * record-full.c (record_full_beneath_to_resume_ops)
13195 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13196 (record_full_beneath_to_wait)
13197 (record_full_beneath_to_store_registers_ops)
13198 (record_full_beneath_to_store_registers)
13199 (record_full_beneath_to_xfer_partial_ops)
13200 (record_full_beneath_to_xfer_partial)
13201 (record_full_beneath_to_insert_breakpoint_ops)
13202 (record_full_beneath_to_insert_breakpoint)
13203 (record_full_beneath_to_remove_breakpoint_ops)
13204 (record_full_beneath_to_remove_breakpoint)
13205 (record_full_beneath_to_stopped_by_watchpoint)
13206 (record_full_beneath_to_stopped_data_address)
13207 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13208 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13209 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13210 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13211 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13212 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13213 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13214 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13215 (record_full_resume, record_full_wait_1)
13216 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13217 (record_full_store_registers, record_full_xfer_partial)
13218 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13219 (record_full_async, record_full_core_xfer_partial): Use target
13220 delegation.
13221 * target-delegates.c: Rebuild.
13222 * target.c (current_xfer_partial): Remove.
13223 (update_current_target): Do not INHERIT or de_fault
13224 to_insert_breakpoint, to_remove_breakpoint,
13225 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13226 to_is_async_p, to_async. Do not set to_xfer_partial field.
13227 (default_xfer_partial): Simplify.
13228 (current_xfer_partial): Remove.
13229 (target_wait, target_resume): Simplify.
13230 (find_default_can_async_p, find_default_is_async_p): Update.
13231 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13232 to_xfer_partial, to_stopped_by_watchpoint,
13233 to_stopped_data_address.
13234 (target_store_registers): Simplify.
13235 (forward_target_remove_breakpoint)
13236 (forward_target_insert_breakpoint): Remove.
13237 (target_remove_breakpoint, target_insert_breakpoint)
13238 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13239 * target.h (struct target_ops) <to_resume, to_wait,
13240 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13241 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13242 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13243 markup.
13244 (forward_target_remove_breakpoint)
13245 (forward_target_insert_breakpoint): Remove.
13246 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13247 directly.
13248 (record_btrace_insert_breakpoint): Delegate directly.
13249
13250 2014-02-19 Tom Tromey <tromey@redhat.com>
13251
13252 PR build/7701:
13253 * target-delegates.c: New file.
13254 * target.c: Include target-delegates.c.
13255 (init_dummy_target): Call install_dummy_methods.
13256 (complete_target_initialization): Call install_delegators.
13257 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13258 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13259 * make-target-delegates: New file.
13260
13261 2014-02-19 Tom Tromey <tromey@redhat.com>
13262
13263 * record.c (find_record_target): Use find_target_at.
13264 * target.c (find_target_at): New function.
13265 * target.h (find_target_at): Declare.
13266
13267 2014-02-19 Tom Tromey <tromey@redhat.com>
13268
13269 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13270 Add 'ops' argument.
13271 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13272 'ops' argument.
13273 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13274 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13275 'ops' argument.
13276 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13277 argument.
13278 * linux-nat.c (save_sigtrap): Update.
13279 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13280 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13281 (linux_nat_close): Update.
13282 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13283 argument.
13284 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13285 argument.
13286 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13287 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13288 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13289 (tmp_to_async): Add 'ops' argument.
13290 (record_full_stopped_by_watchpoint, record_full_async)
13291 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13292 argument.
13293 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13294 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13295 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13296 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13297 (remote_is_async_p, remote_async): Add 'ops' argument.
13298 (remote_stopped_data_address): Update.
13299 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13300 * target.c (update_current_target)
13301 (find_default_can_async_p, find_default_is_async_p): Update.
13302 (init_dummy_target): Update.
13303 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13304 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13305 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13306 (target_can_async_p, target_is_async_p, target_async)
13307 (target_stopped_by_watchpoint): Update.
13308
13309 2014-02-19 Yao Qi <yao@codesourcery.com>
13310
13311 PR gdb/16220
13312 * gdbarch.sh: Remove startup_gdbarch.
13313 * gdbarch.c: Regenerated.
13314 * gdbarch.h: Likewise.
13315
13316 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13317
13318 * rl78-tdep.c (rl78_g10_register_name): New function.
13319 (rl78_return_value): Add g10 support.
13320 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13321 g10.
13322
13323 2014-02-17 Doug Evans <xdje42@gmail.com>
13324
13325 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13326 (SUBDIR_GUILE_SRCS): Ditto.
13327 (scm-gsmob.o): Ditto.
13328
13329 2014-02-17 Yao Qi <yao@codesourcery.com>
13330
13331 * gnu-nat.c (ILL_RPC): Declare defined function.
13332
13333 2014-02-17 Yao Qi <yao@codesourcery.com>
13334
13335 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13336 mach_msg_type_number_t.
13337 (gnu_write_inferior): Likewise.
13338
13339 2014-02-17 Yao Qi <yao@codesourcery.com>
13340
13341 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13342 in format string.
13343 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13344 (inf_validate_procs, inf_signal): Likewise.
13345 (S_exception_raise_request): Likewise.
13346 (do_mach_notify_dead_name): Likewise.
13347 (steal_exc_port): Likewise.
13348 (gnu_read_inferior): Change 'copy_count''s type to
13349 mach_msg_type_number_t.
13350 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13351 format string.
13352
13353 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13354
13355 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13356 flag. Adjust all users; in particular...
13357 (gnu_wait): ..., don't decrement its value in here...
13358 (gnu_create_inferior): ..., and instead set the flag in here,
13359 around the startup_inferior call, and call that one with
13360 START_INFERIOR_TRAPS_EXPECTED.
13361
13362 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13363 (ILL_RPC): ... new macro.
13364 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13365 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13366 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13367 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13368 functions with ILL_RPC macro.
13369 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13370 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13371 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13372 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13373 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13374 (S_proc_getlogin_reply, S_proc_getsid_reply)
13375 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13376 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13377 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13378 (S_proc_getnports_reply, S_proc_is_important_reply)
13379 (S_proc_get_code_reply): New stub functions, generated with
13380 ILL_RPC macro.
13381
13382 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13383 collected the type check structures.
13384
13385 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13386
13387 2014-02-14 Doug Evans <dje@google.com>
13388
13389 * target.c (target_write_partial): Fix result type.
13390
13391 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13392
13393 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13394 the proper offsets to access fpregset_t.
13395
13396 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13397
13398 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13399 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13400 * h8300-tdep.c (setmachinelist): Remove global.
13401 * hppa-tdep.c (hppa_sigtramp): Remove global.
13402 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13403 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13404 * ravenscar-thread.c (update_target_observer): Remove global.
13405 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13406
13407 2014-02-12 Tom Tromey <tromey@redhat.com>
13408
13409 * common/rsp-low.c: Update comments.
13410 * common/rsp-low.h: Update comments.
13411
13412 2014-02-12 Tom Tromey <tromey@redhat.com>
13413
13414 * common/rsp-low.c (convert_ascii_to_int): Remove.
13415 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13416
13417 2014-02-12 Tom Tromey <tromey@redhat.com>
13418
13419 * common/rsp-low.h (unhexify): Don't declare.
13420 * common/rsp-low.c (unhexify): Remove.
13421
13422 2014-02-12 Tom Tromey <tromey@redhat.com>
13423
13424 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13425 * common/rsp-low.c (convert_int_to_ascii): Remove.
13426
13427 2014-02-12 Tom Tromey <tromey@redhat.com>
13428
13429 * common/rsp-low.h (hexify): Don't declare.
13430 * common/rsp-low.c (hexify): Remove.
13431
13432 2014-02-12 Tom Tromey <tromey@redhat.com>
13433
13434 * common/rsp-low.c (hexify): Never take strlen of argument.
13435
13436 2014-02-12 Tom Tromey <tromey@redhat.com>
13437
13438 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13439 * remote.c (extended_remote_run, remote_rcmd)
13440 (remote_download_trace_state_variable, remote_save_trace_data)
13441 (remote_set_trace_notes): Update.
13442 * tracepoint.c (encode_source_string, tfile_write_status)
13443 (tfile_write_uploaded_tsv): Update.
13444
13445 2014-02-12 Tom Tromey <tromey@redhat.com>
13446
13447 * tracepoint.c: Include rsp-low.h.
13448 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13449 * remote.c: Include rsp-low.h.
13450 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13451 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13452 (remote_unescape_input): Move to common/rsp-low.c.
13453 * common/rsp-low.h: New file.
13454 * common/rsp-low.c: New file.
13455 * Makefile.in (SFILES): Add common/rsp-low.c.
13456 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13457 (COMMON_OBS): Add rsp-low.o.
13458 (rsp-low.o): New target.
13459
13460 2014-02-12 Tom Tromey <tromey@redhat.com>
13461
13462 * utils.h: Include print-utils.h.
13463 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13464 (int_string, core_addr_to_string, core_addr_to_string_nz)
13465 (hex_string, hex_string_custom): Don't declare.
13466 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13467 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13468 (hex_string_custom, int_string, core_addr_to_string)
13469 (core_addr_to_string_nz, host_address_to_string): Move to
13470 common/print-utils.c.
13471 * common/print-utils.h: New file.
13472 * common/print-utils.c: New file
13473 * Makefile.in (SFILES): Add common/print-utils.c.
13474 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13475 (COMMON_OBS): Add print-utils.o.
13476 (print-utils.o): New target.
13477
13478 2014-02-12 Tom Tromey <tromey@redhat.com>
13479
13480 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13481
13482 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13483
13484 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13485
13486 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13487
13488 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13489 if a PT_IO ptrace request returns sucessfully but indicates that 0
13490 bytes were transferred.
13491
13492 2014-02-12 Pedro Alves <palves@redhat.com>
13493 Kevin Buettner <kevinb@redhat.com>
13494
13495 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13496 TYPE_INSTANCE_FLAG_CODE_SPACE.
13497
13498 2014-02-12 Pedro Alves <palves@redhat.com>
13499
13500 * h8300-tdep.c (pseudo_from_raw_register)
13501 (raw_from_pseudo_register): New functions.
13502 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13503 them.
13504
13505 2014-02-12 Pedro Alves <palves@redhat.com>
13506
13507 * h8300-tdep.c (h8300_register_sim_regno): New function.
13508 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13509 gdbarch_register_sim_regno hook.
13510
13511 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13512
13513 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13514
13515 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13516
13517 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13518
13519 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13520
13521 * obsd-tdep.h (obsd_init_abi): New prototype.
13522 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13523 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13524 (obsd_init_abi): New functions.
13525 * i386obsd-tdep.c: Include "obsd-tdep.h".
13526 (i386obsd_init_abi): Call obsd_init_abi.
13527 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13528 (amd64obsd_init_abi): Call obsd_init_abi.
13529 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13530 obsd-tdep.c to gdb_target_obs.
13531
13532 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13533
13534 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13535 double float arguments to 16-byte in the argument slots.
13536
13537 2014-02-11 Doug Evans <xdje42@gmail.com>
13538
13539 * configure.ac: Don't crash if pkg-config is not found and guile
13540 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13541 in guile checks.
13542 * configure: Regenerate.
13543
13544 2014-02-11 Yao Qi <yao@codesourcery.com>
13545
13546 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13547 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13548 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13549 * gnu-nat.c (gnu_xfer_memory): Likewise.
13550 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13551 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13552 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13553 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13554
13555 2014-02-11 Yao Qi <yao@codesourcery.com>
13556
13557 * target.h (enum target_xfer_error): Rename to ...
13558 (enum target_xfer_status): ... it. New. All users updated.
13559 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13560 New.
13561 (TARGET_XFER_STATUS_ERROR_P): New macro.
13562 (target_xfer_error_to_string): Remove declaration.
13563 (target_xfer_status_to_string): Declare.
13564 (target_xfer_partial_ftype): Adjust it.
13565 (struct target_ops) <to_xfer_partial>: Return
13566 target_xfer_status. Add argument xfered_len. Update
13567 comments.
13568 * target.c (target_xfer_error_to_string): Rename to ...
13569 (target_xfer_status_to_string): ... it. New. All callers
13570 updated.
13571 (target_read_live_memory): Likewise. Call target_xfer_partial
13572 instead of target_read.
13573 (memory_xfer_live_readonly_partial): Return
13574 target_xfer_status. Add argument xfered_len.
13575 (raw_memory_xfer_partial): Likewise.
13576 (memory_xfer_partial_1): Likewise.
13577 (memory_xfer_partial): Likewise.
13578 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13579 properly. Update debug message.
13580 (default_xfer_partial, current_xfer_partial): Likewise.
13581 (target_write_partial): Likewise.
13582 (target_read_partial): Likewise. All callers updated.
13583 (read_whatever_is_readable): Likewise.
13584 (target_write_with_progress): Likewise.
13585 (target_read_alloc_1): Likewise.
13586
13587 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13588 * auxv.c (procfs_xfer_auxv): Likewise.
13589 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13590 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13591 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13592 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13593 * corefile.c (read_memory): Adjust.
13594 * corelow.c (core_xfer_partial): Likewise.
13595 * ctf.c (ctf_xfer_partial): Likewise.
13596 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13597 updated.
13598 (darwin_xfer_partial): Likewise.
13599 * exec.c (section_table_xfer_memory_partial): Likewise. All
13600 callers updated.
13601 (exec_xfer_partial): Likewise.
13602 * exec.h (section_table_xfer_memory_partial): Update
13603 declaration.
13604 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13605 negative.
13606 (gnu_xfer_partial): Likewise.
13607 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13608 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13609 (ia64_hpux_xfer_solib_got): Likewise.
13610 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13611 type of 'partial_len' to ULONGEST.
13612 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13613 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13614 (linux_nat_xfer_partial): Likewise.
13615 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13616 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13617 * monitor.c (monitor_xfer_memory): Likewise.
13618 (monitor_xfer_partial): Likewise.
13619 * procfs.c (procfs_xfer_partial): Likewise.
13620 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13621 * record-full.c (record_full_xfer_partial): Likewise.
13622 (record_full_core_xfer_partial): Likewise.
13623 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13624 (gdbsim_xfer_partial): Likewise.
13625 * remote.c (remote_write_bytes_aux): Likewise. All callers
13626 updated.
13627 (remote_write_bytes, remote_read_bytes): Likewise. All
13628 callers updated.
13629 (remote_flash_erase): Likewise. All callers updated.
13630 (remote_write_qxfer): Likewise. All callers updated.
13631 (remote_read_qxfer): Likewise. All callers updated.
13632 (remote_xfer_partial): Likewise.
13633 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13634 (rs6000_xfer_shared_libraries): Likewise.
13635 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13636 (sol_thread_xfer_partial): Likewise.
13637 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13638 (sparc_xfer_partial): Likewise.
13639 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13640 updated.
13641 (spu_xfer_partial): Likewise.
13642 * spu-multiarch.c (spu_xfer_partial): Likewise.
13643 * tracepoint.c (tfile_xfer_partial): Likewise.
13644 * windows-nat.c (windows_xfer_memory): Likewise.
13645 (windows_xfer_shared_libraries): Likewise.
13646 (windows_xfer_partial): Likewise.
13647 * valprint.c: Replace 'target_xfer_error' with
13648 'target_xfer_status' in comments.
13649
13650 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13651
13652 Checked in by Joel Brobecker <brobecker@adacore.com>.
13653 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13654
13655 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13656
13657 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13658 function parameters.
13659
13660 2014-02-10 Will Newton <will.newton@linaro.org>
13661
13662 * elfread.c (elf_rel_plt_read): Look for a .got section if
13663 looking up .got.plt fails.
13664 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13665 on address passed to elf_gnu_ifunc_record_cache.
13666 (elf_gnu_ifunc_resolve_addr): Likewise.
13667 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13668
13669 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13670
13671 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13672 (X_RETTURN): New macro.
13673 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13674
13675 * sparc64-tdep.c (sparc64_init_abi): Hook
13676 sparc_in_function_epilogue_p.
13677
13678 2014-02-10 Gary Benson <gbenson@redhat.com>
13679
13680 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13681 Rename name_matcher to symbol_matcher.
13682
13683 2014-02-10 Gary Benson <gbenson@redhat.com>
13684
13685 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13686 Use expand_symtabs_file_matcher_ftype and
13687 expand_symtabs_symbol_matcher_ftype.
13688
13689 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13690
13691 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13692 (struct ada_symbol_cache): New.
13693 (ada_free_symbol_cache): Forward declare.
13694 (struct ada_pspace_data): New.
13695 (ada_pspace_data_handle): New static global.
13696 (get_ada_pspace_data, ada_pspace_data_cleanup)
13697 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13698 (cache_space, cache): Delete, now folded inside struct
13699 ada_pspace_data.
13700 (ada_get_symbol_cache): New function.
13701 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13702 implementation.
13703 (_initialize_ada_language): Remove initialization of cache_space.
13704 Move call to observer_attach_inferior_exit up, grouping it
13705 with the other observer registrations inside this function.
13706 Rename command to be more general. Add call to
13707 register_program_space_data_with_cleanup.
13708
13709 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13710
13711 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13712 ada_new_objfile_observer.
13713 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13714 (_initialize_tasks): Update uses of ada_new_objfile_observer
13715 and ada_tasks_normal_stop_observer.
13716
13717 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13718
13719 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13720 returned by the 'Length attribute to integer.
13721
13722 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13723
13724 * ada-lang.c (_initialize_ada_language): Initialize
13725 cache_space obstack.
13726
13727 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13728
13729 * ada-lang.c (HASH_SIZE): New macro.
13730 (struct cache_entry): New type.
13731 (cache_space, cache): New static globals.
13732 (ada_clear_symbol_cache, find_entry): New functions.
13733 (lookup_cached_symbol, cache_symbol): Implement.
13734 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13735 (_initialize_ada_language): Attach ada_new_objfile_observer
13736 and ada_free_objfile_observer.
13737
13738 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13739
13740 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13741 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13742 struct block * parameter.
13743 (ada_lookup_symbol_list_worker): Constify local variable "block".
13744 Remove cast which is no longer necessary.
13745
13746 2014-02-10 Doug Evans <xdje42@gmail.com>
13747
13748 Add Guile as an extension language.
13749 * NEWS: Mention Guile scripting.
13750 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13751 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13752 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13753 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13754 (CLIBS): Add GUILE_LIBS.
13755 (install-guile): New rule.
13756 (guile.o): New rule.
13757 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13758 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13759 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13760 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13761 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13762 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13763 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13764 * configure.ac: New option --with-guile.
13765 * configure: Regenerate.
13766 * config.in: Regenerate.
13767 * auto-load.c: Remove #include "python/python.h". Add #include
13768 "gdb/section-scripts.h".
13769 (source_section_scripts): Handle Guile scripts.
13770 (_initialize_auto_load): Add name of Guile objfile script to
13771 scripts-directory help text.
13772 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13773 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13774 (struct breakpoint): New member scm_bp_object.
13775 * defs.h (enum command_control_type): New value guile_control.
13776 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13777 "extension.h".
13778 (show_user): Update comment.
13779 (_initialize_cli_cmds): Update help text for "show user". Update help
13780 text for max-user-call-depth.
13781 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13782 "extension.h".
13783 (multi_line_command_p): Add guile_control.
13784 (print_command_lines): Handle guile_control.
13785 (execute_control_command, recurse_read_control_structure): Ditto.
13786 (process_next_line): Recognize "guile" commands.
13787 * disasm.c (gdb_disassemble_info): Make non-static.
13788 * disasm.h: #include "dis-asm.h".
13789 (struct gdbarch): Add forward decl.
13790 (gdb_disassemble_info): Declare.
13791 * extension.c: #include "guile/guile.h".
13792 (extension_languages): Add guile.
13793 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13794 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13795 * gdbtypes.c (get_unsigned_type_max): New function.
13796 (get_signed_type_minmax): New function.
13797 * gdbtypes.h (get_unsigned_type_max): Declare.
13798 (get_signed_type_minmax): Declare.
13799 * guile/README: New file.
13800 * guile/guile-internal.h: New file.
13801 * guile/guile.c: New file.
13802 * guile/guile.h: New file.
13803 * guile/scm-arch.c: New file.
13804 * guile/scm-auto-load.c: New file.
13805 * guile/scm-block.c: New file.
13806 * guile/scm-breakpoint.c: New file.
13807 * guile/scm-disasm.c: New file.
13808 * guile/scm-exception.c: New file.
13809 * guile/scm-frame.c: New file.
13810 * guile/scm-gsmob.c: New file.
13811 * guile/scm-iterator.c: New file.
13812 * guile/scm-lazy-string.c: New file.
13813 * guile/scm-math.c: New file.
13814 * guile/scm-objfile.c: New file.
13815 * guile/scm-ports.c: New file.
13816 * guile/scm-pretty-print.c: New file.
13817 * guile/scm-safe-call.c: New file.
13818 * guile/scm-string.c: New file.
13819 * guile/scm-symbol.c: New file.
13820 * guile/scm-symtab.c: New file.
13821 * guile/scm-type.c: New file.
13822 * guile/scm-utils.c: New file.
13823 * guile/scm-value.c: New file.
13824 * guile/lib/gdb.scm: New file.
13825 * guile/lib/gdb/boot.scm: New file.
13826 * guile/lib/gdb/experimental.scm: New file.
13827 * guile/lib/gdb/init.scm: New file.
13828 * guile/lib/gdb/iterator.scm: New file.
13829 * guile/lib/gdb/printing.scm: New file.
13830 * guile/lib/gdb/types.scm: New file.
13831 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13832 (VPATH): Add $(GUILE_SRCDIR).
13833 (GUILE_DIR): New variable.
13834 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13835 (all): Add stamp-guile dependency.
13836 (stamp-guile): New rule.
13837 (clean-guile, install-guile, uninstall-guile): New rules.
13838 (install-only): Add install-guile dependency.
13839 (uninstall): Add uninstall-guile dependency.
13840 (clean): Add clean-guile dependency.
13841
13842 2014-02-09 Doug Evans <xdje42@gmail.com>
13843
13844 Revert this patch (which I approved, mea culpa).
13845
13846 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13847
13848 * Makefile.in (all-lib): Remove.
13849 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13850
13851 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13852
13853 Fix Python stack corruption.
13854 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13855 gdb_py_longest.
13856
13857 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13858
13859 * Makefile.in (all-lib): Remove.
13860 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13861
13862 2014-02-07 Doug Evans <dje@google.com>
13863
13864 * extension-priv.h (extension_language_script_ops): Add comment.
13865 (extension_language_ops): Add comment.
13866 (active_ext_lang_state): Fix typo in comment.
13867
13868 2014-02-07 Pedro Alves <palves@redhat.com>
13869
13870 PR breakpoints/16292
13871 * infrun.c (handle_signal_stop) <signal arrives while stepping
13872 over a breakpoint>: Switch back to the stepping thread.
13873
13874 2014-02-07 Yao Qi <yao@codesourcery.com>
13875
13876 * target.c (target_xfer_partial): Return zero if LEN is zero.
13877
13878 2014-02-07 Yao Qi <yao@codesourcery.com>
13879
13880 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13881 (ld_so_xfer_auxv): Likewise.
13882 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13883 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13884 * corelow.c (core_xfer_partial): Likewise.
13885 * ctf.c (ctf_xfer_partial): Likewise.
13886 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13887 (darwin_xfer_partial): Likewise.
13888 * exec.c (exec_xfer_partial): Likewise.
13889 * gnu-nat.c (gnu_xfer_partial): Likewise.
13890 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13891 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13892 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13893 * linux-nat.c (linux_xfer_siginfo): Likewise.
13894 (linux_proc_xfer_spu): Likewise.
13895 * procfs.c (procfs_xfer_partial): Likewise.
13896 * record-full.c (record_full_xfer_partial): Likewise.
13897 (record_full_core_xfer_partial): Likewise.
13898 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13899 * remote.c (remote_write_qxfer): Likewise.
13900 (remote_write_qxfer, remote_read_qxfer): Likewise.
13901 (remote_xfer_partial): Likewise.
13902 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13903 (rs6000_xfer_shared_libraries): Likewise.
13904 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13905 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13906 (spu_xfer_partial): Likewise.
13907 * target.c (memory_xfer_partial_1): Likewise.
13908 * tracepoint.c (tfile_xfer_partial): Likewise.
13909 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13910 (windows_xfer_partial): Likewise.
13911
13912 2014-02-07 Yao Qi <yao@codesourcery.com>
13913
13914 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13915 comments.
13916 (core_xfer_shared_libraries_aix): Likewise.
13917 * gdbarch.c, gdbarch.h: Regenerated.
13918 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13919 ULONGEST. Change 'len_avail' type to ULONGEST.
13920 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13921 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13922 declaration.
13923 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13924
13925 2014-02-07 Yao Qi <yao@codesourcery.com>
13926
13927 * corefile.c (memory_error): Get 'exception' from ERR and pass
13928 'exception' to throw_error.
13929
13930 2014-02-06 Doug Evans <xdje42@gmail.com>
13931
13932 * configure.ac (libpython checking): Remove all but python.o from
13933 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13934 * configure: Regenerate.
13935
13936 * Makefile.in (SFILES): Add extension.c.
13937 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13938 (COMMON_OBS): Add extension.o.
13939 * extension.h: New file.
13940 * extension-priv.h: New file.
13941 * extension.c: New file.
13942
13943 * python/python-internal.h: #include "extension.h".
13944 (gdbpy_auto_load_enabled): Declare.
13945 (gdbpy_apply_val_pretty_printer): Declare.
13946 (gdbpy_apply_frame_filter): Declare.
13947 (gdbpy_preserve_values): Declare.
13948 (gdbpy_breakpoint_cond_says_stop): Declare.
13949 (gdbpy_breakpoint_has_cond): Declare.
13950 (void source_python_script_for_objfile): Delete.
13951 * python/python.c: #include "extension-priv.h".
13952 Delete inclusion of "observer.h".
13953 (extension_language_python): Moved here and renamed from
13954 script_language_python in py-auto-load.c.
13955 Redefined to be of type extension_language_defn.
13956 (python_extension_script_ops): New global.
13957 (python_extension_ops): New global.
13958 (struct python_env): New member previous_active.
13959 (restore_python_env): Call restore_active_ext_lang.
13960 (ensure_python_env): Call set_active_ext_lang.
13961 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13962 New arg extlang.
13963 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13964 New arg extlang.
13965 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13966 New arg extlang.
13967 (gdbpy_eval_from_control_command): Renamed from
13968 eval_python_from_control_command, made static. New arg extlang.
13969 (gdbpy_source_script) Renamed from source_python_script, made static.
13970 New arg extlang.
13971 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13972 result to int. New arg extlang.
13973 (gdbpy_source_objfile_script): Renamed from
13974 source_python_script_for_objfile, made static. New arg extlang.
13975 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13976 static. New args extlang, extlang_printers. Change result type to
13977 "void".
13978 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13979 static. New arg extlang. Rename arg printers to extlang_printers
13980 and change type to ext_lang_type_printers *.
13981 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13982 static. Replace argument arg with extlang, extlang_printers.
13983 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13984 (!HAVE_PYTHON, source_python_script): Delete.
13985 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13986 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13987 (!HAVE_PYTHON, start_type_printers): Delete.
13988 (!HAVE_PYTHON, apply_type_printers): Delete.
13989 (!HAVE_PYTHON, free_type_printers): Delete.
13990 (_initialize_python): Delete call to observer_attach_before_prompt.
13991 (finalize_python): Set/restore active extension language.
13992 (gdbpy_finish_initialization) Renamed from
13993 finish_python_initialization, made static. New arg extlang.
13994 (gdbpy_initialized): New function.
13995 * python/python.h: #include "extension.h". Delete #include
13996 "value.h", "mi/mi-cmds.h".
13997 (extension_language_python): Declare.
13998 (GDBPY_AUTO_FILE_NAME): Delete.
13999 (enum py_bt_status): Moved to extension.h and renamed to
14000 ext_lang_bt_status.
14001 (enum frame_filter_flags): Moved to extension.h.
14002 (enum py_frame_args): Moved to extension.h and renamed to
14003 ext_lang_frame_args.
14004 (finish_python_initialization): Delete.
14005 (eval_python_from_control_command): Delete.
14006 (source_python_script): Delete.
14007 (apply_val_pretty_printer): Delete.
14008 (apply_frame_filter): Delete.
14009 (preserve_python_values): Delete.
14010 (gdbpy_script_language_defn): Delete.
14011 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14012 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14013
14014 * auto-load.c: #include "extension.h".
14015 (GDB_AUTO_FILE_NAME): Delete.
14016 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14017 (script_language_gdb): Delete, moved to extension.c and renamed to
14018 extension_language_gdb.
14019 (source_gdb_script_for_objfile): Delete.
14020 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14021 (loaded_script): Change type of language member to
14022 struct extension_language_defn *.
14023 (init_loaded_scripts_info): Initialize
14024 unsupported_script_warning_printed.
14025 (maybe_add_script): Make static. Change type of language arg to
14026 struct extension_language_defn *.
14027 (clear_section_scripts): Reset unsupported_script_warning_printed.
14028 (auto_load_objfile_script_1): Rewrite to use extension language API.
14029 (auto_load_objfile_script): Make public. Remove support-compiled-in
14030 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14031 (source_section_scripts): Rewrite to use extension language API.
14032 (load_auto_scripts_for_objfile): Rewrite to use
14033 auto_load_scripts_for_objfile.
14034 (collect_matching_scripts_data): Change type of language member to
14035 struct extension_language_defn *.
14036 (auto_load_info_scripts): Change type of language arg to
14037 struct extension_language_defn *.
14038 (unsupported_script_warning_print): New function.
14039 (script_not_found_warning_print): Make static.
14040 (_initialize_auto_load): Rewrite construction of scripts-directory
14041 help.
14042 * auto-load.h (struct objfile): Add forward decl.
14043 (struct script_language): Delete.
14044 (struct auto_load_pspace_info): Add forward decl.
14045 (struct extension_language_defn): Add forward decl.
14046 (maybe_add_script): Delete.
14047 (auto_load_objfile_script): Declare.
14048 (script_not_found_warning_print): Delete.
14049 (auto_load_info_scripts): Update prototype.
14050 (auto_load_gdb_scripts_enabled): Declare.
14051 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14052 auto_load_python_scripts_enabled and made public.
14053 (script_language_python): Delete, moved to python.c.
14054 (gdbpy_script_language_defn): Delete.
14055 (info_auto_load_python_scripts): Update to use
14056 extension_language_python.
14057
14058 * breakpoint.c (condition_command): Replace call to
14059 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14060 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14061 with call to breakpoint_ext_lang_cond_says_stop.
14062 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14063 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14064 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14065 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14066 New arg slang.
14067 (local_setattro): Print name of extension language with existing
14068 stop condition.
14069
14070 * valprint.c (val_print, value_print): Update to call
14071 apply_ext_lang_val_pretty_printer.
14072 * cp-valprint.c (cp_print_value): Update call to
14073 apply_ext_lang_val_pretty_printer.
14074 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14075 (gdbpy_apply_val_pretty_printer): Renamed from
14076 apply_val_pretty_printer. New arg extlang.
14077 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14078
14079 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14080 extension language API.
14081 * cli/cli-script.c (execute_control_command): Update to call
14082 eval_ext_lang_from_control_command.
14083
14084 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14085 enum ext_lang_bt_status values. Update call to
14086 apply_ext_lang_frame_filter.
14087 (mi_cmd_stack_list_locals): Ditto.
14088 (mi_cmd_stack_list_args): Ditto.
14089 (mi_cmd_stack_list_variables): Ditto.
14090 * mi/mi-main.c: Delete #include "python/python-internal.h".
14091 Add #include "extension.h".
14092 (mi_cmd_list_features): Replace reference to python internal variable
14093 gdb_python_initialized with call to ext_lang_initialized_p.
14094
14095 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14096 Update to use enum ext_lang_frame_args. Update to call
14097 apply_ext_lang_frame_filter.
14098 * python/py-framefilter.c (extract_sym): Update to use enum
14099 ext_lang_bt_status.
14100 (extract_value, py_print_type, py_print_value): Ditto.
14101 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14102 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14103 (py_print_frame): Ditto.
14104 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14105 New arg extlang. Update to use enum ext_lang_bt_status.
14106
14107 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14108 finish_python_initialization. Replace with call to
14109 finish_ext_lang_initialization.
14110
14111 * typeprint.c (do_free_global_table): Update to call
14112 free_ext_lang_type_printers.
14113 (create_global_typedef_table): Update to call
14114 start_ext_lang_type_printers.
14115 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14116 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14117 (type_print_options): Change type of global_printers from "void *"
14118 to "struct ext_lang_type_printers *".
14119
14120 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14121 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14122 (gdbpy_preserve_values): Renamed from preserve_python_values.
14123 New arg extlang.
14124 (!HAVE_PYTHON, preserve_python_values): Delete.
14125
14126 * utils.c (quit_flag): Delete, moved to extension.c.
14127 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14128 extension.c.
14129
14130 * eval.c: Delete #include "python/python.h".
14131 * main.c: Delete #include "python/python.h".
14132
14133 * defs.h: Update comment.
14134
14135 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14136
14137 GDB 7.7 released.
14138
14139 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14140
14141 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14142 defined.
14143
14144 2014-02-05 Yao Qi <yao@codesourcery.com>
14145
14146 * remote.c (remote_pass_signals): Remove local 'buf' and use
14147 rs->buf.
14148 (remote_program_signals): Likewise.
14149
14150 2014-02-05 Yao Qi <yao@codesourcery.com>
14151
14152 * ctf.c: Include "inferior.h" and "gdbthread.h".
14153 (CTF_PID): A new macro.
14154 (ctf_open): Call inferior_appeared and add_thread_silent.
14155 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14156 (ctf_thread_alive): New function.
14157 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14158
14159 2014-02-05 Yao Qi <yao@codesourcery.com>
14160
14161 Revert this patch:
14162
14163 2013-05-24 Yao Qi <yao@codesourcery.com>
14164
14165 * tracepoint.c (TFILE_PID): Remove.
14166 (tfile_open): Don't add thread and inferior.
14167 (tfile_close): Don't set 'inferior_ptid'. Don't call
14168 exit_inferior_silent.
14169 (tfile_thread_alive): Remove.
14170 (init_tfile_ops): Don't set field 'to_thread_alive' of
14171 tfile_ops.
14172
14173 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14174
14175 * remote.c (remote_start_remote): Call remote_check_symbols even
14176 if only symbol-file (not file) has been given.
14177
14178 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14179
14180 * gdbarch.sh (skip_entrypoint): New callback.
14181 * gdbarch.c, gdbarch.h: Regenerate.
14182 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14183 * infrun.c (fill_in_stop_func): Likewise.
14184 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14185 (ppc_elfv2_elf_make_msymbol_special): New function.
14186 (ppc_elfv2_skip_entrypoint): Likewise.
14187 (ppc_linux_init_abi): Install them for ELFv2.
14188
14189 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14190
14191 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14192 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14193 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14194 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14195 structures returned in GPRs.
14196
14197 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14198
14199 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14200 offset to the stack parameter list for the ELFv2 ABI.
14201
14202 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14203
14204 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14205 set_gdbarch_convert_from_func_ptr_addr and
14206 set_gdbarch_elf_make_msymbol_special for ELFv1.
14207 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14208 function descriptors on ELFv1.
14209 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14210 set up r12 at function entry.
14211
14212 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14213
14214 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14215 (struct gdbarch_tdep): New member elf_abi.
14216
14217 * rs6000-tdep.c: Include "elf/ppc64.h".
14218 (rs6000_gdbarch_init): Detect ELF ABI version.
14219
14220 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14221
14222 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14223 within a register pair holding a DFP 128-bit value on little-endian.
14224 (ppc64_sysv_abi_return_value_base): Likewise.
14225 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14226 (dfp_pseudo_register_write): Likewise.
14227
14228 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14229
14230 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14231 offset on little-endian when passing _Decimal32.
14232 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14233
14234 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14235
14236 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14237 of the overlapped FP register within the VSX register on little-
14238 endian platforms.
14239 (efpr_pseudo_register_write): Likewise.
14240
14241 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14242
14243 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14244 offset on little-endian when passing small structures.
14245
14246 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14247
14248 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14249 (struct ppc64_sysv_argpos): New data structure.
14250 (ppc64_sysv_abi_push_float): Remove.
14251 (ppc64_sysv_abi_push_val): New function.
14252 (ppc64_sysv_abi_push_integer): Likewise.
14253 (ppc64_sysv_abi_push_freg): Likewise.
14254 (ppc64_sysv_abi_push_vreg): Likewise.
14255 (ppc64_sysv_abi_push_param): Likewise.
14256 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14257 (ppc64_sysv_abi_return_value_base): New function.
14258 (ppc64_sysv_abi_return_value): Refactor to use it.
14259
14260 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14261
14262 * NEWS: Document new target powerpc64le-*-linux*.
14263
14264 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14265
14266 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14267 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14268 core dumps.
14269 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14270 register set used in ELF core dumps. Add floating-point register set.
14271
14272 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14273
14274 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14275 dwarf2_to_gdb[] table using symbolic constants. Adjust
14276 penultimate entry from number representing the PC register
14277 to symbolic constant representing the MDR register. Add
14278 constant for the PC register to the end of the table.
14279
14280 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14281
14282 * bsd-kvm.c: Include <sys/param.h>
14283
14284 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14285
14286 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14287
14288 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14289
14290 * ada-lang.h (clear_ada_sym_cache): Delete.
14291
14292 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14293
14294 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14295
14296 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14297
14298 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14299 the sigreturn register save area only if the syscall is
14300 sigreturn.
14301
14302 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14303
14304 * valops.c (value_slice): Minor reformatting.
14305
14306 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14307
14308 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14309
14310 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14311
14312 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14313 New static globals.
14314 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14315 (ada_ignore_descriptive_types_p): New static global.
14316 (find_parallel_type_by_descriptive_type): Return immediately
14317 if ada_ignore_descriptive_types_p is set.
14318 (_initialize_ada_language): Register new commands "maintenance
14319 set ada", "maintenance show ada", "maintenance set ada
14320 ignore-descriptive-types" and "maintenance show ada
14321 ignore-descriptive-types".
14322 * NEWS: Add entry for new "maint ada set/show
14323 ignore-descriptive-types" commands.
14324
14325 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14326
14327 * record-btrace.c (record_btrace_close): Call btrace_teardown
14328 for all threads.
14329
14330 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14331
14332 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14333 "ui-out.h".
14334
14335 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14336
14337 * ada-typeprint (type_is_full_subrange_of_target_type):
14338 New function.
14339 (print_range): Add parameter bounds_prefered_p. If not set,
14340 try printing range types using the name of their base type.
14341 (print_range_type): Add parameter bounds_prefered_p.
14342 Use it in call to print_range.
14343 (print_array_type, ada_print_type): Update calls to print_range
14344 and print_range_type.
14345
14346 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14347
14348 * ada-typeprint.c (print_array_type, print_choices, print_range)
14349 (print_range_bound, print_dynamic_range_bound, print_range_type):
14350 Remove declaration.
14351
14352 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14353
14354 * ada-typeprint.c (print_range): Add missing empty line
14355 after local declaration.
14356
14357 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14358
14359 * ada-valprint.c (print_optional_low_bound): Get index_type's
14360 target type for as long as it is a TYPE_CODE_RANGE.
14361
14362 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14363
14364 * procfs.c (procfs_make_note_section): Remove assertion and
14365 associated comment.
14366
14367 2014-01-24 Yao Qi <yao@codesourcery.com>
14368
14369 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14370 * corelow.c (get_core_siginfo): Likewise.
14371
14372 2014-01-24 Yao Qi <yao@codesourcery.com>
14373
14374 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14375 ULONGEST. Don't check 'len' is negative.
14376 (remote_write_bytes): Change type of 'len' to ULONGEST.
14377
14378 2014-01-23 Tom Tromey <tromey@redhat.com>
14379
14380 PR python/16485:
14381 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14382 Handle exception from frame.block.
14383 (FrameVars.fetch_frame_locals): Likewise.
14384
14385 2014-01-23 Tom Tromey <tromey@redhat.com>
14386
14387 PR python/16487:
14388 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14389 on a NULL pointer. Move "goto error" to correct place.
14390
14391 2014-01-23 Tom Tromey <tromey@redhat.com>
14392
14393 PR python/16491:
14394 * python/py-framefilter.c (apply_frame_filter): Call
14395 ensure_python_env after computing gdbarch.
14396
14397 2014-01-23 Yao Qi <yao@codesourcery.com>
14398
14399 * target.c (raw_memory_xfer_partial): Change argument type
14400 from void * to gdb_byte *.
14401 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14402
14403 2014-01-22 Doug Evans <dje@google.com>
14404
14405 New gdbserver option --debug-format=timestamp.
14406 * NEWS: Mention it.
14407
14408 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14409
14410 * syscalls/s390x-linux.xml: New file.
14411 * syscalls/s390-linux.xml: New file.
14412 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14413 (XML_SYSCALL_FILENAME_S390X): Likewise.
14414 (op_svc): New enum value for SVC opcode.
14415 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14416 (s390_linux_get_syscall_number): New function.
14417 (s390_gdbarch_init): Register '*get_syscall_number' and the
14418 syscall xml file name.
14419 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14420 "s390-linux.xml" and "s390x-linux.xml".
14421 * NEWS: Announce new feature.
14422
14423 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14424
14425 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14426
14427 2014-01-22 Pedro Alves <palves@redhat.com>
14428
14429 * xtensa-config.c: Include defs.h.
14430
14431 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14432
14433 * common/common-utils.h: Add "ARI:" comment beside __func__
14434 reference.
14435
14436 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14437
14438 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14439 documentation a bit.
14440
14441 2014-01-21 Roland McGrath <mcgrathr@google.com>
14442
14443 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14444 * configure: Regenerate.
14445 * aclocal.m4: Regenerate.
14446 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14447 New substituted variables.
14448 (install-strip): New target.
14449 (INSTALL_SCRIPT): New substituted variable.
14450 (FLAGS_TO_PASS): Add it.
14451 (install-only): Use $(INSTALL_SCRIPT) rather than
14452 $(INSTALL_PROGRAM) for gcore.
14453
14454 2014-01-20 Tom Tromey <tromey@redhat.com>
14455
14456 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14457 together.
14458
14459 2014-01-20 Tom Tromey <tromey@redhat.com>
14460
14461 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14462 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14463 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14464 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14465 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14466 (struct cmd_list_element) <flags>: Remove.
14467 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14468 doc_allocated>: New fields.
14469 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14470 bitfields.
14471 * maint.c (maintenance_do_deprecate): Update.
14472 * top.c (execute_command): Update.
14473
14474 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14475
14476 * xtensa-linux-nat.c: Include asm/ptrace.h.
14477
14478 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14479
14480 * Makefile.in (SFILES): Add d-support.c.
14481 (COMMON_OBS): Add d-support.o.
14482 * d-lang.h (d_parse_symbol): Add comment, now defined in
14483 d-support.c.
14484 * d-lang.c (parse_call_convention)
14485 (parse_attributes, parse_function_types)
14486 (parse_function_args, parse_type, parse_identifier)
14487 (call_convention_p, d_parse_symbol): Move functions to ...
14488 * d-support.c: ... New file.
14489
14490 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14491
14492 * d-lang.h (d_parse_symbol): Add declaration.
14493 * d-lang.c (extract_identifiers)
14494 (extract_type_info): Remove functions.
14495 (parse_call_convention, parse_attributes)
14496 (parse_function_types, parse_function_args)
14497 (parse_type, parse_identifier, call_convention_p)
14498 (d_parse_symbol): New functions.
14499 (d_demangle): Use d_parse_symbol to demangle D symbols.
14500
14501 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14502
14503 * d-lang.h (struct builtin_d_type): New data type.
14504 (builtin_d_type): Add declaration.
14505 * d-lang.c (d_language_arch_info, build_d_types)
14506 (builtin_d_type): New functions.
14507 (enum d_primitive_types): New data type.
14508 (d_language_defn): Change c_language_arch_info to
14509 d_language_arch_info.
14510 (d_type_data): New static variable.
14511 (_initialize_d_language): Initialize d_type_data.
14512
14513 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14514
14515 * d-lang.h (d_main_name): Add declaration.
14516 * d-lang.c (d_main_name): New function.
14517 * symtab.c (find_main_name): Add call to d_main_name.
14518
14519 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14520
14521 * d-lang.c (d_language_defn): Change macro_expansion_c to
14522 macro_expansion_no.
14523
14524 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14525
14526 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14527
14528 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14529
14530 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14531 gdb_exception" declaration.
14532 * remote.c (getpkt_or_notif_sane): Likewise.
14533
14534 2014-01-17 Doug Evans <dje@google.com>
14535
14536 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14537 function, contents of dirnames_to_char_ptr_vec_append moved here.
14538 (delim_string_to_char_ptr_vec): New function.
14539 (dirnames_to_char_ptr_vec_append): Rewrite.
14540 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14541
14542 2014-01-17 Doug Evans <dje@google.com>
14543
14544 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14545 and moved here ...
14546 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14547 #include "common-utils.h".
14548 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14549 * common/vec.h (VEC_ASSERT_PASS): Update.
14550 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14551 (MACH_CHECK_ERROR): Update.
14552
14553 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14554
14555 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14556 comments.
14557 * gdbarch.h: Regenerate.
14558
14559 2014-01-16 Tom Tromey <tromey@redhat.com>
14560
14561 * value.c (struct value) <regnum>: Move earlier.
14562
14563 2014-01-16 Tom Tromey <tromey@redhat.com>
14564
14565 * remote.c (extended_remote_create_inferior): Rename from
14566 extended_remote_create_inferior_1. Add "ops" argument. Remove
14567 old implementation.
14568
14569 2014-01-16 Pedro Alves <palves@redhat.com>
14570
14571 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14572 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14573 the backchain.
14574
14575 2014-01-16 Doug Evans <dje@google.com>
14576
14577 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14578
14579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14580
14581 * btrace.h (btrace_thread_flag): New.
14582 (struct btrace_thread_info) <flags>: New.
14583 * record-btrace.c (record_btrace_resume_thread)
14584 (record_btrace_find_thread_to_move, btrace_step_no_history)
14585 (btrace_step_stopped, record_btrace_start_replaying)
14586 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14587 (record_btrace_find_resume_thread): New.
14588 (record_btrace_resume, record_btrace_wait): Extend.
14589 (record_btrace_can_execute_reverse): New.
14590 (record_btrace_open): Fail in non-stop mode.
14591 (record_btrace_set_replay): Split into this, ...
14592 (record_btrace_stop_replaying): ... this, ...
14593 (record_btrace_clear_histories): ... and this.
14594 (init_record_btrace_ops): Init to_can_execute_reverse.
14595 * NEWS: Announce it.
14596
14597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14598
14599 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14600 (forward_target_decr_pc_after_break)
14601 (target_decr_pc_after_break): New.
14602 * target.c (forward_target_decr_pc_after_break)
14603 (target_decr_pc_after_break): New.
14604 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14605 instead of gdbarch_decr_pc_after_break.
14606 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14607 instead of gdbarch_decr_pc_after_break.
14608 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14609 instead of gdbarch_decr_pc_after_break.
14610 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14611 instead of gdbarch_decr_pc_after_break.
14612 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14613 instead of gdbarch_decr_pc_after_break.
14614 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14615 instead of gdbarch_decr_pc_after_break.
14616
14617 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14618
14619 * btrace.c: Include regcache.h.
14620 (btrace_add_pc): New.
14621 (btrace_enable): Call btrace_add_pc.
14622 (btrace_is_empty): New.
14623 * btrace.h (btrace_is_empty): New.
14624 * record-btrace.c (require_btrace, record_btrace_info): Call
14625 btrace_is_empty.
14626
14627 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14628
14629 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14630 Support delta reads.
14631 (linux_disable_btrace): Change return type.
14632 * common/linux-btrace.h (linux_read_btrace): Change parameters
14633 and return type to allow error reporting. Update users.
14634 (linux_disable_btrace): Change return type. Update users.
14635 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14636 New.
14637 (btrace_error): New.
14638 (btrace_block) <begin>: Comment on BEGIN == 0.
14639 * btrace.c (btrace_compute_ftrace): Start from the end of
14640 the current trace.
14641 (btrace_stitch_trace, btrace_clear_history): New.
14642 (btrace_fetch): Read delta trace, return if replaying.
14643 (btrace_clear): Move clear history code to btrace_clear_history.
14644 (parse_xml_btrace): Throw an error if parsing failed.
14645 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14646 and return type to allow error reporting.
14647 (target_read_btrace): Change parameters and return type to allow
14648 error reporting.
14649 * target.c (target_read_btrace): Update.
14650 * remote.c (remote_read_btrace): Support delta reads. Pass
14651 errors on.
14652 * NEWS: Announce it.
14653
14654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14655
14656 * record.h (record_btrace_frame_unwind)
14657 (record_btrace_tailcall_frame_unwind): New declarations.
14658 * dwarf2-frame: Include record.h
14659 (dwarf2_frame_cfa): Throw an error for btrace frames.
14660 * record-btrace.c: Include hashtab.h.
14661 (btrace_get_bfun_name): New.
14662 (btrace_call_history): Call btrace_get_bfun_name.
14663 (struct btrace_frame_cache): New.
14664 (bfcache): New.
14665 (bfcache_hash, bfcache_eq, bfcache_new): New.
14666 (btrace_get_frame_function): New.
14667 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14668 (record_btrace_frame_this_id): Compute own id.
14669 (record_btrace_frame_prev_register): Provide PC, throw_error
14670 for all other registers.
14671 (record_btrace_frame_sniffer): Detect btrace frames.
14672 (record_btrace_tailcall_frame_sniffer): New.
14673 (record_btrace_frame_dealloc_cache): New.
14674 (record_btrace_frame_unwind): Add new functions.
14675 (record_btrace_tailcall_frame_unwind): New.
14676 (_initialize_record_btrace): Allocate cache.
14677 * btrace.c (btrace_clear): Call reinit_frame_cache.
14678 * NEWS: Announce it.
14679
14680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14681
14682 * record-btrace.c (record_btrace_set_replay)
14683 (record_btrace_goto_begin, record_btrace_goto_end)
14684 (record_btrace_goto): New.
14685 (init_record_btrace_ops): Initialize them.
14686 * NEWS: Announce it.
14687
14688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14689
14690 * record-btrace.c (record_btrace_find_new_threads)
14691 (record_btrace_thread_alive): New.
14692 (init_record_btrace_ops): Initialize to_find_new_threads and
14693 to_thread_alive.
14694
14695 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14696
14697 * record-btrace.c (record_btrace_resume): New.
14698 (record_btrace_wait): New.
14699 (init_record_btrace_ops): Initialize to_wait and to_resume.
14700
14701 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14702
14703 * record-btrace.c (record_btrace_xfer_partial)
14704 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14705 (record_btrace_allow_memory_access): New.
14706 (init_record_btrace_ops): Initialize new methods.
14707 * target.c (raw_memory_xfer_partial): Bail out if target reports
14708 that this memory is not available.
14709
14710 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14711
14712 * target.h (target_ops) <to_insert_breakpoint>
14713 <to_remove_breakpoint>: Add target_ops parameter.
14714 (forward_target_insert_breakpoint): New.
14715 (forward_target_remove_breakpoint): New.
14716 (memory_remove_breakpoint, memory_insert_breakpoint):
14717 Add target_ops parameter.
14718 * target.c (target_insert_breakpoint): Split into this and ...
14719 (forward_target_insert_breakpoint): ... this.
14720 (target_remove_breakpoint): Split into this and ...
14721 (forward_target_remove_breakpoint): ... this.
14722 (debug_to_insert_breakpoint): Add target_ops parameter.
14723 Call forward_target_insert_breakpoint.
14724 (debug_to_remove_breakpoint): Add target_ops parameter.
14725 Call forward_target_remove_breakpoint.
14726 (update_current_target): Do not inherit or default to_insert_breakpoint
14727 and to_remove_breakpoint.
14728 * corelow.c (ignore): Add target_ops parameter.
14729 * exec.c (ignore): Add target_ops parameter.
14730 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14731 Add target_ops parameter.
14732 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14733 Add target_ops parameter.
14734 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14735 Add target_ops parameter.
14736 * record-full.c (record_full_beneath_to_insert_breakpoint)
14737 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14738 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14739 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14740 (record_full_core_remove_breakpoint): Add target_ops parameter.
14741 Update users.
14742 (record_full_beneath_to_insert_breakpoint_ops)
14743 (record_full_beneath_to_remove_breakpoint_ops)
14744 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14745 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14746 tmp_to_remove_breakpoint_ops,
14747 record_full_beneath_to_insert_breakpoint_ops, and
14748 record_full_beneath_to_remove_breakpoint_ops.
14749 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14750 (m32r_remove_breakpoint): Add target_ops parameter.
14751 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14752 Add target_ops parameter.
14753 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14754 Add target_ops parameter.
14755
14756 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14757 Markus Metzger <markus.t.metzger@intel.com>
14758
14759 * record-btrace.c: Include frame-unwind.h.
14760 (record_btrace_frame_unwind_stop_reason)
14761 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14762 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14763 New.
14764 (init_record_btrace_ops): Install it.
14765
14766 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14767
14768 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14769 get_prev_frame_1.
14770
14771 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14772
14773 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14774 earlier.
14775
14776 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14777
14778 * frame-unwind.c: Include target.h.
14779 (frame_unwind_try_unwinder): New function with code from ...
14780 (frame_unwind_find_by_frame): ... here. New variable
14781 unwinder_from_target, call also target_get_unwinder)
14782 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14783 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14784 * target.h (struct target_ops): New fields to_get_unwinder and
14785 to_get_tailcall_unwinder.
14786 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14787
14788 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14789
14790 * record-btrace.c (record_btrace_fetch_registers)
14791 (record_btrace_store_registers)
14792 (record_btrace_to_prepare_to_store): New.
14793 (init_record_btrace_ops): Add the above.
14794
14795 2014-01-16 Tom Tromey <tromey@redhat.com>
14796
14797 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14798 * target.h (struct target_ops) <to_prepare_to_store>: Add
14799 argument.
14800 (target_prepare_to_store): Add argument.
14801 * target.c (debug_to_prepare_to_store): Add argument.
14802 (update_current_target): Update.
14803 * remote.c (remote_prepare_to_store): Add 'self' argument.
14804 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14805 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14806 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14807 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14808 argument.
14809 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14810 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14811 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14812 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14813 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14814
14815 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14816
14817 * btrace.h (replay) <replay>: New.
14818 (btrace_is_replaying): New.
14819 * btrace.c (btrace_clear): Free replay iterator.
14820 (btrace_is_replaying): New.
14821 * record-btrace.c (record_btrace_is_replaying): New.
14822 (record_btrace_info): Print insn number if replaying.
14823 (record_btrace_insn_history): Start at replay position.
14824 (record_btrace_call_history): Start at replay position.
14825 (init_record_btrace_ops): Init to_record_is_replaying.
14826
14827 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14828
14829 * record-btrace.c (record_btrace_insn_history_range): Include
14830 end.
14831 (record_btrace_insn_history_from): Adjust range.
14832 (record_btrace_call_history_range): Include
14833 end.
14834 (record_btrace_call_history_from): Adjust range.
14835 * NEWS: Announce changes.
14836
14837 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14838
14839 * record.h (enum record_print_flag)
14840 <record_print_indent_calls>: New.
14841 * record.c (get_call_history_modifiers): Recognize /c modifier.
14842 (_initialize_record): Document /c modifier.
14843 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14844 Reorder fields. Optionally indent the function name. Update
14845 all users.
14846 * NEWS: Announce changes.
14847
14848 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14849
14850 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14851
14852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14853
14854 * btrace.c (ftrace_new_function): Start counting at one.
14855 * record-btrace.c (record_btrace_info): Adjust number of calls
14856 and insns.
14857 * NEWS: Announce it.
14858
14859 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14860
14861 * record-btrace.c (btrace_call_history_insn_range): Print
14862 insn range as [begin, end].
14863
14864 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14865
14866 * btrace.h (struct btrace_func_link): New.
14867 (enum btrace_function_flag): New.
14868 (struct btrace_inst): Rename to ...
14869 (struct btrace_insn): ...this. Update all users.
14870 (struct btrace_func) <ibegin, iend>: Remove.
14871 (struct btrace_func_link): New.
14872 (struct btrace_func): Rename to ...
14873 (struct btrace_function): ...this. Update all users.
14874 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14875 (number, level, flags>: New.
14876 (struct btrace_insn_iterator): Rename to ...
14877 (struct btrace_insn_history): ...this.
14878 Update all users.
14879 (struct btrace_insn_iterator, btrace_call_iterator): New.
14880 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14881 (struct btrace_target_info) <begin, end, level>
14882 <insn_history, call_history>: New.
14883 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14884 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14885 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14886 (btrace_call_number, btrace_call_begin, btrace_call_end)
14887 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14888 (btrace_find_function_by_number, btrace_set_insn_history)
14889 (btrace_set_call_history): New.
14890 * btrace.c (btrace_init_insn_iterator)
14891 (btrace_init_func_iterator, compute_itrace): Remove.
14892 (ftrace_print_function_name, ftrace_print_filename)
14893 (ftrace_skip_file): Change
14894 parameter to const.
14895 (ftrace_init_func): Remove.
14896 (ftrace_debug): Use new btrace_function fields.
14897 (ftrace_function_switched): Also consider gaining and
14898 losing symbol information).
14899 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14900 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14901 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14902 New.
14903 (ftrace_new_function): Move. Remove debug print.
14904 (ftrace_update_lines, ftrace_update_insns): New.
14905 (ftrace_update_function): Check for call, ret, and jump.
14906 (compute_ftrace): Renamed to ...
14907 (btrace_compute_ftrace): ...this. Rewritten to compute call
14908 stack.
14909 (btrace_fetch, btrace_clear): Updated.
14910 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14911 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14912 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14913 (btrace_call_number, btrace_call_begin, btrace_call_end)
14914 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14915 (btrace_find_function_by_number, btrace_set_insn_history)
14916 (btrace_set_call_history): New.
14917 * record-btrace.c (require_btrace): Use new btrace thread
14918 info fields.
14919 (record_btrace_info, btrace_insn_history)
14920 (record_btrace_insn_history, record_btrace_insn_history_range):
14921 Use new btrace thread info fields and new iterator.
14922 (btrace_func_history_src_line): Rename to ...
14923 (btrace_call_history_src_line): ...this. Use new btrace
14924 thread info fields.
14925 (btrace_func_history): Rename to ...
14926 (btrace_call_history): ...this. Use new btrace thread info
14927 fields and new iterator.
14928 (record_btrace_call_history, record_btrace_call_history_range):
14929 Use new btrace thread info fields and new iterator.
14930
14931 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14932
14933 * frame.h (frame_id_build_unavailable_stack_special): New.
14934 * frame.c (frame_id_build_unavailable_stack_special): New.
14935
14936 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14937
14938 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14939 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14940 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14941 to gdbarch.
14942 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14943 (i386_insn_is_jump, i386_jmp_p): New.
14944 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14945 insn_is_jump to gdbarch.
14946 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14947 * gdbarch.h: Regenerated.
14948 * gdbarch.c: Regenerated.
14949 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14950 (default_insn_is_jump): New.
14951 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14952 (default_insn_is_jump): New.
14953
14954 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14955
14956 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14957 Change to ...
14958 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14959 (btrace_read_type) <btrace_read_new>: Change to ...
14960 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14961
14962 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14963
14964 * common/linux-btrace.c (linux_read_btrace): Free trace from
14965 previous iteration.
14966
14967 2014-01-15 Doug Evans <dje@google.com>
14968
14969 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14970 uint32_t.
14971
14972 2014-01-15 Tom Tromey <tromey@redhat.com>
14973
14974 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14975 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14976 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14977 (set_objfile_main_name): New function.
14978 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14979 language_of_main>: New fields.
14980 (set_objfile_main_name): Declare.
14981 * symtab.c (find_main_name): Loop over objfiles to find the main
14982 name and language.
14983 (set_main_name): Now static.
14984 (get_main_info): Add comment.
14985 * symtab.h (set_main_name): Don't declare.
14986
14987 2014-01-15 Tom Tromey <tromey@redhat.com>
14988
14989 * symtab.c (main_progspace_key): New global.
14990 (struct main_info): New.
14991 (name_of_main, language_of_main): Remove.
14992 (get_main_info, main_info_cleanup): New function.
14993 (set_main_name, main_name, main_language): Use get_main_info.
14994 (_initialize_symtab): Initialize main_progspace_key.
14995
14996 2014-01-15 Tom Tromey <tromey@redhat.com>
14997
14998 * dbxread.c (process_one_symbol): Update.
14999 * dwarf2read.c (read_partial_die): Update.
15000 * symfile.c (set_initial_language): Call main_language.
15001 * symtab.c (language_of_main): Now static.
15002 (set_main_name): Add 'lang' parameter.
15003 (find_main_name): Update.
15004 (main_language): New function.
15005 (symtab_observer_executable_changed): Update.
15006 * symtab.h (set_main_name): Update.
15007 (language_of_main): Remove.
15008 (main_language): Declare.
15009
15010 2014-01-15 Tom Tromey <tromey@redhat.com>
15011
15012 * symfile.c (init_entry_point_info): Use new "initialized" field.
15013 Update.
15014 * objfiles.h (struct entry_point) <initialized>: New field.
15015 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15016 (struct objfile) <ei>: ...here. Remove.
15017 * objfiles.c (entry_point_address_query): Update.
15018
15019 2014-01-15 Tom Tromey <tromey@redhat.com>
15020
15021 * objfiles.c (entry_point_address_query): Relocate entry point
15022 address.
15023 (objfile_relocate1): Do not relocate entry point address.
15024 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15025 <the_bfd_section_index>: New field.
15026 * symfile.c (init_entry_point_info): Find the entry point's
15027 section.
15028
15029 2014-01-15 Tom Tromey <tromey@redhat.com>
15030
15031 * solib-frv.c (enable_break): Use entry_point_address_query.
15032
15033 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15034
15035 * NEWS: Add note on improved process record-replay on
15036 arm*-linux* targets.
15037
15038 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15039
15040 * arm-tdep.c (enum arm_record_result): New enum.
15041 (arm_record_unsupported_insn): New function.
15042 (arm_record_coproc_data_proc): Removed.
15043 (thumb2_record_ld_st_multiple): New function.
15044 (thumb2_record_ld_st_dual_ex_tbb): New function.
15045 (thumb2_record_data_proc_sreg_mimm): New function.
15046 (thumb2_record_ps_dest_generic): New function.
15047 (thumb2_record_branch_misc_cntrl): New function.
15048 (thumb2_record_str_single_data): New function.
15049 (thumb2_record_ld_mem_hints): New function.
15050 (thumb2_record_ld_word): New function.
15051 (thumb2_record_lmul_lmla_div): New function.
15052 (thumb2_record_decode_insn_handler): New function.
15053 (decode_insn): Add thumb32 instruction handlers.
15054
15055 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15056
15057 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15058 (struct arm_linux_record_tdep): Declare.
15059 (arm_canonicalize_syscall): New function.
15060 (arm_all_but_pc_registers_record): New function.
15061 (arm_linux_syscall_record): New function.
15062 (arm_linux_init_abi): Add syscall recording constructs.
15063 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15064 decoding. (arm_record_coproc_data_proc): Update arm syscall
15065 decoding.
15066 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15067 <arm_syscall_record>: New field.
15068 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15069 gdb_target_obs.
15070
15071 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15072
15073 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15074 register for push instruction recording.
15075
15076 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15077
15078 * arm-tdep.c (thumb_record_misc): Update to correct logical
15079 error while recording ldm, ldmia and pop instructions.
15080
15081 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15082
15083 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15084
15085 2014-01-15 Pedro Alves <palves@redhat.com>
15086
15087 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15088 (go32_resume, go32_fetch_registers, store_register)
15089 (go32_store_registers, go32_prepare_to_store)
15090 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15091 (go32_create_inferior, go32_can_run, go32_terminal_init)
15092 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15093 declarations.
15094
15095 2014-01-15 Tom Tromey <tromey@redhat.com>
15096
15097 * target.h (async_callback_ftype): New typedef.
15098 (struct target_ops) <to_async>: Use it.
15099
15100 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15101
15102 * python/py-value.c (get_field_type): Remove unnecessary curly
15103 braces for single-statement if block.
15104
15105 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15106
15107 * python/py-type.c (convert_field): Add missing empty line
15108 after declarations.
15109
15110 2014-01-14 Doug Evans <dje@google.com>
15111
15112 * symfile.h (expand_symtabs_matching): Renamed from
15113 expand_partial_symbol_names. Update prototype.
15114 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15115 * symfile.c (expand_symtabs_matching): Renamed from
15116 expand_partial_symbol_names. New args file_matcher, kind.
15117 Rename arg fun to symbol_matcher.
15118 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15119 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15120 ada_expand_partial_symbol_name.
15121 (ada_make_symbol_completion_list): Update to call
15122 expand_symtabs_matching.
15123 (ada_add_global_exceptions): Call expand_symtabs_matching.
15124 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15125 call map_symbol_filenames.
15126 * symtab.c (sources_info): Update to call map_symbol_filenames.
15127 (search_symbols): Call expand_symtabs_matching.
15128 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15129 (default_make_symbol_completion_list_break_on): Update to call
15130 expand_symtabs_matching.
15131 (make_source_files_completion_list): Update to call
15132 map_symbol_filenames.
15133
15134 2014-01-14 Doug Evans <dje@google.com>
15135
15136 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15137 (expand_symtabs_symbol_matcher_ftype): New typedef.
15138 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15139 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15140 * symfile.c (expand_partial_symbol_names): Update to use
15141 expand_symtabs_symbol_matcher_ftype.
15142 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15143 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15144 Arg name_matcher renamed to symbol_matcher.
15145 * psymtab.c (recursively_search_psymtabs): Update to use
15146 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15147 sym_matcher.
15148 (expand_symtabs_matching_via_partial): Update to use
15149 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15150 Arg name_matcher renamed to symbol_matcher.
15151
15152 2014-01-14 Doug Evans <dje@google.com>
15153
15154 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15155 (map_partial_symbol_filenames): Ditto.
15156 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15157 (map_partial_symbol_filenames): Ditto.
15158 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15159 (map_partial_symbol_filenames): Ditto.
15160 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15161 (map_partial_symbol_filenames): Ditto.
15162 * symtab.c: Delete #include "psymtab.h".
15163
15164 2014-01-14 Pedro Alves <palves@redhat.com>
15165 Tom Tromey <tromey@redhat.com>
15166
15167 * infrun.c (use_displaced_stepping): Use find_record_target
15168 instead of RECORD_IS_USED.
15169 (adjust_pc_after_break): Use record_full_is_used instead of
15170 RECORD_IS_USED.
15171 * record-btrace.c (record_btrace_open): Call record_preopen
15172 instead of checking RECORD_IS_USED.
15173 * record-full.c (record_full_shortname)
15174 (record_full_core_shortname): New globals.
15175 (record_full_is_used): New function.
15176 (find_full_open): Call record_preopen instead of checking
15177 RECORD_IS_USED.
15178 (init_record_full_ops): Set the target's shortname to
15179 record_full_shortname.
15180 (init_record_full_core_ops): Set the target's shortname to
15181 record_full_core_shortname.
15182 * record-full.h (record_full_is_used): Declare.
15183 * record.c (find_record_target): Make extern.
15184 (record_preopen): New function.
15185 * record.h (RECORD_IS_USED): Delete macro.
15186 (find_record_target, record_preopen): Declare functions.
15187
15188 2014-01-14 Yao Qi <yao@codesourcery.com>
15189
15190 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15191 'len''s type to ULONGEST.
15192 (core_xfer_shared_libraries_aix): Likewise.
15193 * gdbarch.c, gdbarch.h: Regenerated.
15194 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15195 Change type of 'len' to ULONGEST.
15196 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15197 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15198
15199 2014-01-14 Yao Qi <yao@codesourcery.com>
15200
15201 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15202 type of 'len' to ULONGEST.
15203 (linux_xfer_osdata_processgroups): Likewise.
15204 (linux_xfer_osdata_threads): Likewise.
15205 (linux_xfer_osdata_fds): Likewise.
15206 (linux_xfer_osdata_isockets): Likewise.
15207 (linux_xfer_osdata_shm): Likewise.
15208 (linux_xfer_osdata_sem): Likewise.
15209 (linux_xfer_osdata_msg): Likewise.
15210 (linux_common_xfer_osdata): Likewise.
15211 (struct osdata_type) <getter>: Likewise.
15212 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15213 the declaration.
15214
15215 2014-01-14 Yao Qi <yao@codesourcery.com>
15216
15217 * target.h (target_xfer_partial_ftype): Update.
15218 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15219 ULONGEST.
15220 * aix-thread.c (aix_thread_xfer_partial): Change type of
15221 argument 'len' to ULONGEST.
15222 * auxv.c (procfs_xfer_auxv): Likewise.
15223 (ld_so_xfer_auxv): Likewise.
15224 (memory_xfer_auxv): Likewise.
15225 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15226 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15227 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15228 * corelow.c (core_xfer_partial): Likewise.
15229 * ctf.c (ctf_xfer_partial): Likewise.
15230 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15231 '%u'.
15232 (darwin_read_dyld_info): Likewise.
15233 (darwin_xfer_partial): Likewise.
15234 * exec.c (section_table_xfer_memory_partial): Likewise.
15235 (exec_xfer_partial): Likewise.
15236 * exec.h (section_table_xfer_memory_partial): Update
15237 declaration.
15238 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15239 instead of plongest.
15240 (gnu_xfer_partial): Likewise.
15241 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15242 (ia64_hpux_xfer_solib_got): Likewise.
15243 (ia64_hpux_xfer_partial): Likewise.
15244 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15245 * inf-ptrace.c (inf_ptrace_xfer_partial):
15246 * inf-ttrace.c (inf_ttrace_xfer_partial):
15247 * linux-nat.c (linux_xfer_siginfo): Likewise.
15248 (linux_nat_xfer_partial): Likewise.
15249 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15250 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15251 * monitor.c (monitor_xfer_memory): Likewise.
15252 (monitor_xfer_partial): Likewise.
15253 * procfs.c (procfs_xfer_partial): Likewise.
15254 * record-full.c (record_full_xfer_partial): Likewise.
15255 (record_full_core_xfer_partial): Likewise.
15256 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15257 instead of plongest.
15258 (gdbsim_xfer_partial): Likewise.
15259 * remote.c (remote_xfer_partial): Likewise.
15260 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15261 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15262 declaration.
15263 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15264 (rs6000_xfer_shared_libraries): Likewise.
15265 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15266 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15267 (sparc_xfer_partial): Likewise.
15268 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15269 (spu_xfer_partial): Likewise.
15270 * spu-multiarch.c (spu_xfer_partial): Likewise.
15271 * target.c (target_read_live_memory): Likewise.
15272 (memory_xfer_live_readonly_partial): Likewise.
15273 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15274 (target_xfer_partial, default_xfer_partial): Likewise.
15275 (current_xfer_partial): Likewise.
15276 * tracepoint.c (tfile_xfer_partial): Likewise.
15277 * windows-nat.c (windows_xfer_memory): Likewise. Call
15278 pulongest instead of plongest.
15279 (windows_xfer_partial): Likewise.
15280 (windows_xfer_shared_libraries): Likewise.
15281
15282 2014-01-14 Yao Qi <yao@codesourcery.com>
15283
15284 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15285 target_xfer_partial_ftype.
15286
15287 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15288
15289 PR python/15464
15290 PR python/16113
15291 * valops.c (value_struct_elt_bitpos): New function
15292 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15293 object to 'None' if the field name is an empty string ("").
15294 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15295 attribute to look for a field when 'name' is 'None'.
15296 (get_field_type): New function
15297
15298 2014-01-13 Doug Evans <dje@google.com>
15299
15300 PR symtab/16426
15301 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15302 (try_open_dwop_file): Ditto.
15303 * gdb_bfd.c: #include "vec.h".
15304 (bfdp): New typedef.
15305 (struct gdb_bfd_data): New member included_bfds.
15306 (gdb_bfd_unref): Unref all included bfds.
15307 (gdb_bfd_record_inclusion): New function.
15308 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15309
15310 2014-01-13 Tom Tromey <tromey@redhat.com>
15311
15312 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15313
15314 2014-01-13 Tom Tromey <tromey@redhat.com>
15315
15316 * defs.h (use_windows): Remove.
15317 * gdb.c (main): Update.
15318 * main.c (captured_main, gdb_main): Update.
15319 * main.h (struct captured_main_args) <use_windows>: Remove.
15320 * top.c (use_windows): Remove.
15321
15322 2014-01-13 Tom Tromey <tromey@redhat.com>
15323
15324 * defs.h (deprecated_flush_hook): Remove.
15325
15326 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15327
15328 PR threads/16216
15329 * linux-thread-db.c (try_thread_db_load): Add parameter
15330 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15331 (try_thread_db_load_from_pdir_1): Move it there from here.
15332 (try_thread_db_load_from_sdir): Update caller.
15333 (try_thread_db_load_from_dir): Move it there from here.
15334
15335 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15336
15337 * regformats/regdat.sh: Always rewrite the register file.
15338
15339 2014-01-13 Pedro Alves <palves@redhat.com>
15340
15341 * Makefile.in (CHECK_HEADERS): New variable.
15342 (check-headers:): New rule.
15343
15344 2014-01-13 Tom Tromey <tromey@redhat.com>
15345
15346 * cli/cli-setshow.c (do_set_command): Update.
15347 * defs.h (deprecated_set_hook): Remove.
15348 * top.c (deprecated_set_hook): Remove.
15349
15350 2014-01-13 Pedro Alves <palves@redhat.com>
15351
15352 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15353 the tracepoint if the PC is a pseudo-register.
15354
15355 2014-01-13 Tom Tromey <tromey@redhat.com>
15356
15357 * defs.h (XCALLOC): Remove.
15358 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15359 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15360 * dwarf2loc.c (allocate_piece_closure): Likewise.
15361 * elfread.c (elf_symfile_segments): Likewise.
15362 (elf_symfile_segments): Likewise.
15363 * gdbtypes.c (copy_type_recursive): Likewise.
15364 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15365 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15366 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15367 XCALLOC.
15368 * mt-tdep.c (mt_gdbarch_init): Likewise.
15369 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15370 XCALLOC.
15371 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15372 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15373 * registry.c (registry_alloc_data): Likewise.
15374 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15375 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15376 * serial.c (serial_fdopen_ops): Likewise.
15377 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15378 XCALLOC.
15379 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15380 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15381 not XCALLOC.
15382
15383 2014-01-13 Tom Tromey <tromey@redhat.com>
15384
15385 * defs.h (XMALLOC): Remove.
15386 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15387 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15388 * cli-out.c (struct ui_out *): Likewise.
15389 * cli/cli-dump.c (add_dump_command): Likewise.
15390 (add_dump_command): Likewise.
15391 * complaints.c (get_complaints): Likewise.
15392 (find_complaint): Likewise.
15393 * dwarf2-frame.c (execute_cfa_program): Likewise.
15394 * dwarf2read.c (abbrev_table_read_table): Likewise.
15395 * gdbarch.sh: Likewise.
15396 * gdbarch.c: Rebuild.
15397 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15398 * interps.c (interp_new): Likewise.
15399 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15400 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15401 * mi/mi-console.c (mi_console_file_new): Likewise.
15402 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15403 * mi/mi-out.c (mi_out_new): Likewise.
15404 * mi/mi-parse.c (mi_parse): Likewise.
15405 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15406 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15407 * observer.c (xalloc_observer_list_node): Likewise.
15408 * regcache.c (regcache_xmalloc_1): Likewise.
15409 * reggroups.c (reggroup_new): Likewise.
15410 (_initialize_reggroup): Likewise.
15411 * registry.c (register_data_with_cleanup): Likewise.
15412 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15413 * ser-base.c (serial_ttystate): Likewise.
15414 * ser-mingw.c (make_pipe_state): Likewise.
15415 * ser-pipe.c (pipe_open): Likewise.
15416 * serial.c (serial_open): Likewise.
15417 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15418 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15419 (tui_alloc_win_info): Likewise.
15420 (tui_add_content_elements): Likewise.
15421 * tui/tui-file.c (tui_file_new): Likewise.
15422 * tui/tui-out.c (tui_out_new): Likewise.
15423 * ui-file.c (mem_file_new): Likewise.
15424 * ui-out.c (push_level): Likewise.
15425 (make_cleanup_ui_out_end): Likewise.
15426 (append_header_to_list): Likewise.
15427 (ui_out_new): Likewise.
15428 * user-regs.c (user_reg_add_builtin): Likewise.
15429
15430 2014-01-13 Tom Tromey <tromey@redhat.com>
15431
15432 * defs.h (XZALLOC): Remove.
15433 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15434 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15435 (get_ada_tasks_inferior_data): Likewise.
15436 * auto-load.c (get_auto_load_pspace_data): Likewise.
15437 * auxv.c (get_auxv_inferior_data): Likewise.
15438 * bfd-target.c (target_bfd_reopen): Likewise.
15439 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15440 (deprecated_insert_raw_breakpoint): Likewise.
15441 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15442 * corelow.c (core_open): Likewise.
15443 * darwin-nat.c (darwin_check_new_threads): Likewise.
15444 (darwin_attach_pid): Likewise.
15445 * dummy-frame.c (dummy_frame_push): Likewise.
15446 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15447 * dwarf2loc.c (allocate_piece_closure): Likewise.
15448 * elfread.c (elf_symfile_segments): Likewise.
15449 * eval.c (ptrmath_type_p): Likewise.
15450 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15451 * gdbtypes.c (alloc_type_arch): Likewise.
15452 (alloc_type_instance): Likewise.
15453 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15454 * inf-child.c (inf_child_can_use_agent): Likewise.
15455 * inflow.c (get_inflow_inferior_data): Likewise.
15456 * infrun.c (save_infcall_suspend_state): Likewise.
15457 * jit.c (jit_reader_load): Likewise.
15458 (get_jit_objfile_data): Likewise.
15459 (get_jit_program_space_data): Likewise.
15460 (jit_object_open_impl): Likewise.
15461 (jit_symtab_open_impl): Likewise.
15462 (jit_block_open_impl): Likewise.
15463 (jit_frame_sniffer): Likewise.
15464 * linux-fork.c (add_fork): Likewise.
15465 * maint.c (make_command_stats_cleanup): Likewise.
15466 * objfiles.c (get_objfile_pspace_data): Likewise.
15467 * opencl-lang.c (struct lval_closure): Likewise.
15468 * osdata.c (osdata_start_osdata): Likewise.
15469 * progspace.c (new_address_space): Likewise.
15470 (add_program_space): Likewise.
15471 * remote-sim.c (get_sim_inferior_data): Likewise.
15472 * sh-tdep.c (sh_gdbarch_init): Likewise.
15473 * skip.c (Ignore): Likewise.
15474 (skip_delete_command): Likewise.
15475 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15476 (library_list_start_library): Likewise.
15477 (solib_aix_current_sos): Likewise.
15478 * solib-darwin.c (get_darwin_info): Likewise.
15479 (darwin_current_sos): Likewise.
15480 * solib-dsbt.c (get_dsbt_info): Likewise.
15481 * solib-ia64-hpux.c (new_so_list): Likewise.
15482 (ia64_hpux_get_solib_linkage_addr): Likewise.
15483 * solib-spu.c (append_ocl_sos): Likewise.
15484 (spu_current_sos): Likewise.
15485 * solib-svr4.c (get_svr4_info): Likewise.
15486 (svr4_keep_data_in_core): Likewise.
15487 (library_list_start_library): Likewise.
15488 (svr4_default_sos): Likewise.
15489 (svr4_read_so_list): Likewise.
15490 * solib-target.c (library_list_start_library): Likewise.
15491 (solib_target_current_sos): Likewise.
15492 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15493 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15494 * symfile.c (default_symfile_segments): Likewise.
15495 * target-descriptions.c (tdesc_data_init): Likewise.
15496 (tdesc_create_reg): Likewise.
15497 (struct tdesc_type *): Likewise.
15498 (tdesc_create_vector): Likewise.
15499 (tdesc_set_struct_size): Likewise.
15500 (struct tdesc_type *): Likewise.
15501 (tdesc_free_feature): Likewise.
15502 (tdesc_create_feature): Likewise.
15503 * windows-nat.c (windows_add_thread): Likewise.
15504 (windows_make_so): Likewise.
15505 * xml-support.c (gdb_xml_body_text): Likewise.
15506 (gdb_xml_create_parser_and_cleanup): Likewise.
15507 (xml_process_xincludes): Likewise.
15508 * xml-syscall.c (allocate_syscalls_info): Likewise.
15509 (syscall_create_syscall_desc): Likewise.
15510
15511 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15512
15513 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15514 function, with code from i386_stap_parse_special_token.
15515 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15516 (i386_stap_parse_special_token): Move code to the two functions
15517 above; simplify it.
15518
15519 2014-01-09 Pedro Alves <palves@redhat.com>
15520 Hui Zhu <hui@codesourcery.com>
15521
15522 PR gdb/16101
15523 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15524 bp_err_string. Don't mark the location shlib_disabled if the
15525 error thrown wasn't a generic or memory error. Catch errors
15526 thrown while inserting breakpoints in overlayed code. Output
15527 error message of software breakpoints.
15528 * remote.c (remote_insert_breakpoint): If this breakpoint has
15529 target-side commands but this stub doesn't support Z0 packets,
15530 throw NOT_SUPPORTED_ERROR error.
15531 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15532 * target.h (target_insert_breakpoint): Extend comment.
15533 (target_insert_hw_breakpoint): Add comment.
15534
15535 2014-01-08 Pedro Alves <palves@redhat.com>
15536
15537 * remote.c (remote_add_thread): Add threads silently if starting
15538 up.
15539 (remote_notice_new_inferior): If in all-stop, and starting up,
15540 don't call notice_new_inferior.
15541 (get_current_thread): New function, factored out from ...
15542 (add_current_inferior_and_thread): ... this. Adjust.
15543 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15544 found any thread, then select the remote's current thread as GDB's
15545 current thread too.
15546
15547 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15548
15549 * NEWS: Create a new section for the next release branch.
15550 Rename the section of the current branch, now that it has
15551 been cut.
15552
15553 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15554
15555 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15556 * version.in: Bump version to 7.7.50.DATE-cvs.
15557
15558 2014-01-08 Yao Qi <yao@codesourcery.com>
15559
15560 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15561 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15562 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15563
15564 2014-01-08 Yao Qi <yao@codesourcery.com>
15565
15566 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15567 return value of bfd_get_filename to symbol_file_add_from_bfd.
15568
15569 2014-01-08 Pierre Muller <muller@sourceware.org>
15570
15571 Fix PR16201.
15572 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15573 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15574 to prim_record_mininal_symbol_and_info.
15575 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15576 in call to prim_record_minimal_symbol_and_info.
15577 (read_pe_exported_syms): Set index field of section_data.
15578
15579 2014-01-07 Andrew Pinski <apinski@cavium.com>
15580
15581 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15582 * features/aarch64.c: Regenerate.
15583
15584 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15585
15586 * target.c (return_null): Define.
15587 (update_current_target): Use it instead of return_zero for
15588 functions that return a pointer.
15589
15590 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15591
15592 * source.c (add_path): Fix check for duplicated paths in the previously
15593 included paths.
15594
15595 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15596
15597 * ada-lang.c: Remove duplicated include statements.
15598 * alphabsd-nat.c: Ditto.
15599 * amd64-darwin-tdep.c: Ditto.
15600 * amd64fbsd-nat.c: Ditto.
15601 * auto-load.c: Ditto.
15602 * ax-gdb.c: Ditto.
15603 * breakpoint.c: Ditto.
15604 * dbxread.c: Ditto.
15605 * fork-child.c: Ditto.
15606 * gdb_usleep.c: Ditto.
15607 * i386-darwin-tdep.c: Ditto.
15608 * i386fbsd-nat.c: Ditto.
15609 * infcmd.c: Ditto.
15610 * inferior.c: Ditto.
15611 * jv-lang.c: Ditto.
15612 * linux-nat.c: Ditto.
15613 * linux-tdep.c: Ditto.
15614 * m68kbsd-nat.c: Ditto.
15615 * m68klinux-nat.c: Ditto.
15616 * microblaze-tdep.c: Ditto.
15617 * mips-linux-tdep.c: Ditto.
15618 * mn10300-tdep.c: Ditto.
15619 * nto-tdep.c: Ditto.
15620 * opencl-lang.c: Ditto.
15621 * osdata.c: Ditto.
15622 * printcmd.c: Ditto.
15623 * regcache.c: Ditto.
15624 * remote-m32r-sdi.c: Ditto.
15625 * remote.c: Ditto.
15626 * symfile.c: Ditto.
15627 * symtab.c: Ditto.
15628 * tilegx-linux-nat.c: Ditto.
15629 * tilegx-tdep.c: Ditto.
15630 * tracepoint.c: Ditto.
15631 * valops.c: Ditto.
15632 * vaxbsd-nat.c: Ditto.
15633 * windows-nat.c: Ditto.
15634 * xtensa-tdep.c: Ditto.
15635
15636 2014-01-07 Yao Qi <yao@codesourcery.com>
15637
15638 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15639
15640 2014-01-07 Yao Qi <yao@codesourcery.com>
15641 Joel Brobecker <brobecker@adacore.com>
15642
15643 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15644 (pdc_write_regs): Likewise.
15645 (fetch_regs_kernel_thread): Likewise.
15646 (store_regs_kernel_thread): Likewise.
15647
15648 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15649
15650 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15651 tagged type objects to their actual type.
15652
15653 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15654
15655 * ada-valprint.c (print_field_values): Add "language" parameter.
15656 Update calls to print_field_values and print_variant_part.
15657 Pass new parameter "language" in call to val_print instead
15658 of "current_language". Replace call to ada_val_print by call
15659 to val_print.
15660 (print_variant_part): Add "language" parameter.
15661 (ada_val_print_struct_union): Update call to print_field_values.
15662
15663 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15664
15665 * ada-valprint.c (ui_memcpy): Delete.
15666 (ada_print_floating): Update documentation. Add empty line
15667 between between function documentation and implementation.
15668 Delete variable "buffer". Use ui_file_xstrdup in place of
15669 ui_file_put. Minor adjustments following this change.
15670
15671 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15672
15673 * ada-valprint.c (ada_val_print_string): New function,
15674 extracted from ada_val_print_array.
15675 (ada_val_print_array): Replace extracted code by call
15676 to ada_val_print_string followed by a return. Move
15677 "else" branch to the function's top block.
15678
15679 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15680
15681 * ada-valprint.c (ada_val_print_array): Move implementation
15682 down. Rename parameter "offset" and "val" into "offset_aligned"
15683 and "original_value" respectively. Add parameter "offset".
15684
15685 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15686
15687 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15688 re-organizing the code. Change the "???" message printed
15689 when target type is a TYPE_CODE_UNDEF into
15690 "<ref to undefined type>".
15691
15692 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15693
15694 * ada-valprint.c (print_record): Delete, implementation inlined...
15695 (ada_val_print_struct_union): ... here. Remove call to
15696 ada_check_typedef in inlined implementation.
15697
15698 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15699
15700 * ada-valprint.c (ada_val_print_gnat_array): New function,
15701 extracted from ada_val_print_1;
15702 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15703 (ada_val_print_flt, ada_val_print_struct_union)
15704 (ada_val_print_ref): Likewise.
15705 (ada_val_print_1): Delete variables i and elttype.
15706 Replace extracted-out code by call to corresponding
15707 new functions.
15708
15709 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15710
15711 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15712
15713 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15714
15715 * ada-valprint.c (ada_val_print_1): Replace calls to
15716 ada_val_print_1 by calls to val_print.
15717
15718 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15719
15720 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15721 Update calls to self accordingly. Replace calls to c_val_print
15722 by calls to val_print.
15723
15724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15725
15726 * ada-valprint.c (print_record): Delete declaration.
15727 (adjust_type_signedness, ada_val_print_1): Likewise.
15728 (ada_val_print): Move function implementation down.
15729 (print_variant_part, print_field_values, print_record):
15730 Move function implementation up.
15731
15732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15733
15734 * python/py-type.c (typy_get_name): New function.
15735 (type_object_getset): Add entry for attribute "name".
15736 * NEWS: Add entry mentioning this new attribute.
15737
15738 2014-01-07 Yao Qi <yao@codesourcery.com>
15739
15740 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15741 statement.
15742
15743 2014-01-07 Yao Qi <yao@codesourcery.com>
15744
15745 * gnu-nat.c (info_port_rights): Add qualifier const to
15746 argument args.
15747
15748 2014-01-07 Yao Qi <yao@codesourcery.com>
15749
15750 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15751
15752 2014-01-07 Yao Qi <yao@codesourcery.com>
15753
15754 * gnu-nat.c (make_inf) Update declaration.
15755 (make_inf): Make it static.
15756 (inf_set_traced): Likewise.
15757 (inf_port_to_thread, inf_task_died_status): Likewise.
15758
15759 2014-01-07 Yao Qi <yao@codesourcery.com>
15760
15761 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15762
15763 2014-01-07 Yao Qi <yao@codesourcery.com>
15764
15765 * gnu-nat.c (_initialize_gnu_nat): Declare.
15766
15767 2014-01-07 Yao Qi <yao@codesourcery.com>
15768
15769 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15770 'enum bfd_endian'.
15771 (struct gdbarch_info) <byte_order>: Change type to
15772 'enum bfd_endian'.
15773 <byte_order_for_code>: Likewise.
15774 * gdbarch.c, gdbarch.h: Regenerated.
15775
15776 2014-01-06 Sasha Smundak <asmundak@google.com>
15777
15778 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15779
15780 2014-01-06 Tom Tromey <tromey@redhat.com>
15781
15782 * doublest.c (convert_doublest_to_floatformat): Use const, not
15783 CONST.
15784 * somread.c (som_symtab_read): Likewise.
15785
15786 2014-01-07 Hui Zhu <hui@codesourcery.com>
15787
15788 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15789 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15790 (gdb_bfd_fopen): Ditto.
15791 (gdb_bfd_openr): Ditto.
15792 (gdb_bfd_openw): Ditto.
15793 (gdb_bfd_openr_iovec): Ditto.
15794 (gdb_bfd_fdopenr): Ditto.
15795 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15796 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15797 with xstrdup.
15798 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15799 with xstrdup.
15800 * symfile-mem.c (symbol_file_add_from_memory): Removed
15801 gdb_bfd_stash_filename.
15802
15803 2014-01-03 Doug Evans <dje@google.com>
15804
15805 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15806 output.
15807
15808 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15809
15810 Update year range in copyright notice of all files.
15811
15812 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15813
15814 * top.c (print_gdb_version): Set copyright year to 2014.
15815
15816 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15817
15818 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15819
15820 For older changes see ChangeLog-2013.
15821 \f
15822 Local Variables:
15823 mode: change-log
15824 left-margin: 8
15825 fill-column: 74
15826 version-control: never
15827 coding: utf-8
15828 End:
This page took 0.333283 seconds and 5 git commands to generate.