bf1f80b58b6887a11faabee22f422cba2978f9e7
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-12 Yao Qi <yao@codesourcery.com>
2
3 PR tdep/14261
4 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
5 'skip_pc'. Remove code skipping prologue instructions, use
6 arm_analyze_prologue instead.
7 (arm_analyze_prologue): Stop the scanning for unrecognized
8 instruction when skipping prologue.
9
10 2014-12-12 Yao Qi <yao@codesourcery.com>
11
12 * arm-tdep.c (arm_instruction_restores_sp): New function.
13 (arm_analyze_prologue): Call arm_instruction_restores_sp.
14 (arm_in_function_epilogue_p): Move code to
15 arm_instruction_restores_sp.
16
17 2014-12-11 Doug Evans <xdje42@gmail.com>
18
19 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
20
21 2014-12-11 Doug Evans <xdje42@gmail.com>
22
23 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
24 (symbol *lookup_symbol_via_quick_fns): Ditto.
25 (lookup_symbol_in_objfile): Add forward decl.
26 (lookup_global_symbol_from_objfile): Simplify, call
27 lookup_symbol_in_objfile.
28
29 2014-12-11 Doug Evans <xdje42@gmail.com>
30
31 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
32
33 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
34
35 PR breakpoints/17012
36 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
37 it is marked as persistent.
38
39 2014-12-10 Doug Evans <xdje42@gmail.com>
40
41 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
42 closer to its subroutines.
43
44 2014-12-10 Doug Evans <xdje42@gmail.com>
45
46 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
47
48 2014-12-10 Doug Evans <xdje42@gmail.com>
49
50 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
51 * cp-support.c (cp_lookup_symbol_imports): Delete.
52
53 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
54
55 PR gdb/17627
56 * target.c (cleanup_restore_target_terminal): New function.
57 (make_cleanup_restore_target_terminal): New function.
58 * target.h (make_cleanup_restore_target_terminal): New declaration.
59 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
60
61 2014-12-08 Doug Evans <dje@google.com>
62
63 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
64
65 2014-12-08 Doug Evans <dje@google.com>
66
67 * NEWS: Mention gdb.Objfile.owner.
68 * python/py-objfile.c (objfpy_get_owner): New function.
69 (objfile_getset): Add "owner".
70
71 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
72
73 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
74 (lookup_global_symbol_from_objfile): Call it.
75
76 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
77
78 Remove const from struct objfile *.
79 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
80 symtab.c, symtab.h: In these files.
81
82 2014-12-05 Andreas From <andreas.from@ericsson.com>
83
84 * MAINTAINERS (Write After Approval): Add "Andreas From"
85
86 2014-12-05 Doug Evans <xdje42@gmail.com>
87
88 Revert:
89 PR symtab/17602
90 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
91
92 2014-12-04 Doug Evans <dje@google.com>
93
94 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
95 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
96 (objfile_getset): Add "add_separate_debug_file".
97
98 2014-12-04 Doug Evans <dje@google.com>
99
100 * NEWS: Mention gdb.Objfile.build_id.
101 * build-id.c (build_id_bfd_get): Make non-static.
102 * build-id.h (build_id_bfd_get): Add declaration.
103 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
104 (OBJFPY_REQUIRE_VALID): New macro.
105 (objfpy_get_build_id): New function.
106 (objfile_getset): Add "build_id".
107 * utils.c (make_hex_string): New function.
108 * utils.h (make_hex_string): Add declaration.
109
110 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
111
112 * block.c (block_lookup_symbol_primary): New function.
113 * block.h (block_lookup_symbol_primary): New declaration.
114 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
115 Call block_lookup_symbol_primary.
116
117 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
118
119 * tramp-frame.h (tramp_frame): Add `validate' member.
120 * tramp-frame.c (tramp_frame_start): Validate trampoline before
121 scanning.
122 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
123 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
124 (mips_linux_o32_sigframe): Initialize `validate' member.
125 (mips_linux_o32_rt_sigframe): Likewise.
126 (mips_linux_n32_rt_sigframe): Likewise.
127 (mips_linux_n64_rt_sigframe): Likewise.
128 (micromips_linux_o32_sigframe): New variable.
129 (micromips_linux_o32_rt_sigframe): Likewise.
130 (micromips_linux_n32_rt_sigframe): Likewise.
131 (micromips_linux_n64_rt_sigframe): Likewise.
132 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
133 (mips_linux_n32n64_sigframe_init): Likewise.
134 (mips_linux_sigframe_validate): New function.
135 (micromips_linux_sigframe_validate): Likewise.
136 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
137
138 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
139
140 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
141 * sparc-sol2-tdep.c: Include "regset.h".
142 (sparc32_sol2_supply_core_gregset): New function.
143 (sparc32_sol2_collect_core_gregset): Likewise.
144 (sparc32_sol2_supply_core_fpregset): Likewise.
145 (sparc32_sol2_collect_core_fpregset): Likewise.
146 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
147 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
148 tdep->fpregset/sizeof_fpregset.
149 * sparc64-sol2-tdep.c: Include "regset.h".
150 (sparc64_sol2_supply_core_gregset): New function.
151 (sparc64_sol2_collect_core_gregset): Likewise.
152 (sparc64_sol2_supply_core_fpregset): Likewise.
153 (sparc64_sol2_collect_core_fpregset): Likewise.
154 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
155 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
156 tdep->fpregset/sizeof_fpregset.
157
158 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
159
160 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
161 type.
162
163 2014-12-02 Doug Evans <dje@google.com>
164
165 * symtab.c (symbol_init_cplus_specific): Delete.
166 (symbol_set_demangled_name): Remove special c++ support.
167 (symbol_get_demangled_name, symbol_set_language): Ditto.
168 * symtab.h (struct cplus_specific): Delete.
169 (struct general_symbol_info) <language_specific>: Remove
170 cplus_specific.
171
172 2014-12-02 Doug Evans <dje@google.com>
173
174 PR symtab/17602
175 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
176
177 2014-12-02 Doug Evans <dje@google.com>
178
179 PR symtab/17591
180 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
181 to strip parameters.
182
183 2014-12-02 Doug Evans <dje@google.com>
184
185 * dwarf2read.c (peek_die_abbrev): Improve error message text.
186
187 2014-12-02 Doug Evans <dje@google.com>
188
189 * valops.c (do_search_struct_field): Remove remnant of Chill support.
190 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
191
192 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
193
194 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
195
196 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
197
198 * NEWS: Mention new Python events.
199 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
200 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
201 (py-infevents.o): New rule.
202 * doc/observer.texi (inferior_call_pre, inferior_call_post)
203 (memory_changed, register_changed): New observers.
204 * infcall.c (call_function_by_hand): Notify observer before and
205 after inferior call.
206 * python/py-event.h (inferior_call_kind): New enum.
207 (emit_inferior_call_event): New prototype.
208 (emit_register_changed_event): New prototype.
209 (emit_memory_changed_event): New prototype.
210 * python/py-events.h (events_object): New registries
211 inferior_call, memory_changed and register_changed.
212 * python/py-evts.c (gdbpy_initialize_py_events): Add the
213 inferior_call, memory_changed and register_changed registries.
214 * python/py-infevents.c: New.
215 * python/py-inferior.c (python_on_inferior_call_pre)
216 (python_on_inferior_call_post, python_on_register_change)
217 (python_on_memory_change): New functions.
218 (gdbpy_initialize_inferior): Attach python handler to new
219 observers.
220 * python/py-infthread.c(gdbpy_create_ptid_object): New.
221 (thpy_get_ptid) Use gdbpy_create_ptid_object.
222 * python/python-internal.h:
223 (gdbpy_create_ptid_object)
224 (gdbpy_initialize_inferior_call_pre_event)
225 (gdbpy_initialize_inferior_call_post_event)
226 (gdbpy_initialize_register_changed_event)
227 (gdbpy_initialize_memory_changed_event): New prototypes.
228 * python/python.c (_initialize_python): Initialize new events.
229 * valops.c (value_assign): Notify register_changed observer.
230
231 2014-12-02 Doug Evans <dje@google.com>
232
233 * python/py-infthread.c: Whitespace fixes.
234
235 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
236
237 * features/Makefile (s390-te-linux64-expedite): Replace
238 non-existant r14 and r15 by r14l and r15l, respectively.
239 * regformats/s390-te-linux64.dat: Regenerate.
240
241 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
242
243 * objfiles.c (allocate_objfile): Remove duplicate comment.
244
245 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
246
247 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
248 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
249 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
250 (supply_gregset, supply_fpregset): Remove.
251 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
252 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
253 and sizeof_gregset.
254
255 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
256
257 Add add-auto-load-scripts-directory.
258 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
259 * auto-load.c (add_auto_load_dir): New function.
260 (_initialize_auto_load): Install it.
261
262 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
263
264 Pushed by Joel Brobecker <brobecker@adacore.com>.
265 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
266
267 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
268
269 * eval.c (evaluate_subexp): Check that the thread stack temporaries
270 are not already enabled before enabling them.
271
272 2014-11-29 Yao Qi <yao@codesourcery.com>
273
274 * arm-tdep.c (arm_analyze_prologue): Move local variables
275 'framereg' and 'framesize' to inner block. Move code to
276 inner block too.
277
278 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
279
280 * eval.c: Include gdbthread.h.
281 (evaluate_subexp): Enable thread stack temporaries before
282 evaluating a complete expression and clean them up after the
283 evaluation is complete.
284 * gdbthread.h: Include common/vec.h.
285 (value_ptr): New typedef.
286 (VEC (value_ptr)): New vector type.
287 (value_vec): New typedef.
288 (struct thread_info): Add new fields stack_temporaries_enabled
289 and stack_temporaries.
290 (enable_thread_stack_temporaries)
291 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
292 (get_last_thread_stack_temporary)
293 (value_in_thread_stack_temporaries): Declare.
294 * gdbtypes.c (class_or_union_p): New function.
295 * gdbtypes.h (class_or_union_p): Declare.
296 * infcall.c (call_function_by_hand): Store return values of class
297 type as temporaries on stack.
298 * thread.c (enable_thread_stack_temporaries): New function.
299 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
300 (get_last_thread_stack_temporary): Likewise.
301 (value_in_thread_stack_temporaries): Likewise.
302 * value.c (value_force_lval): New function.
303 * value.h (value_force_lval): Declare.
304
305 2014-11-28 Pierre Muller <muller@sourceware.org>
306
307 Pushed by Joel Brobecker <brobecker@adacore.com>.
308 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
309 registers.
310
311 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
312
313 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
314 * config/sparc/linux.mh (NATDEPFILES): Likewise.
315 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
316 * m68klinux-nat.c (fetch_core_registers): Remove.
317 (linux_elf_core_fns): Remove.
318 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
319
320 2014-11-28 Joel Brobecker <brobecker@adacore.com>
321
322 * utils.c (gdb_realpath): Rework comment about handling on
323 Windows.
324
325 2014-11-28 Yao Qi <yao@codesourcery.com>
326
327 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
328 rename.
329 * gnulib/aclocal.m4: Re-generated.
330 * gnulib/config.in: Re-generated.
331 * gnulib/configure: Re-generated.
332 * gnulib/import/Makefile.am: Re-generated.
333 * gnulib/import/Makefile.in: Re-generated.
334 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
335 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
336 * import/basename-lgpl.c: New file.
337 * import/dirname-lgpl.c: New file.
338 * import/dirname.h: New file.
339 * import/m4/dirname.m4: New file.
340 * import/m4/malloc.m4: New file.
341 * import/m4/rename.m4: New file.
342 * import/m4/rmdir.m4: New file.
343 * import/m4/stdio_h.m4: New file.
344 * import/malloc.c: New file.
345 * import/rename.c: New file.
346 * import/rmdir.c: New file.
347 * import/same-inode.h: New file.
348 * import/stdio.c: New file.
349 * import/stdio.in.h: New file.
350 * import/stripslash.c: New file.
351
352 2014-11-28 Yao Qi <yao@codesourcery.com>
353
354 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
355 and realpath.
356 * config.in: Re-generated.
357 * configure: Re-generated.
358 * utils.c (gdb_realpath): Remove code calling realpath,
359 canonicalize_file_name and pathconf.
360 [!_WIN32]: Call canonicalize_file_name.
361
362 2014-11-28 Yao Qi <yao@codesourcery.com>
363
364 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
365 canonicalize-lgpl.
366 * aclocal.m4: Re-generated.
367 * config.in: Re-generated.
368 * configure: Re-generated.
369 * import/Makefile.am: Re-generated.
370 * import/Makefile.in: Re-generated.
371 * import/m4/gnulib-cache.m4: Re-generated.
372 * import/m4/gnulib-comp.m4: Re-generated.
373 * import/canonicalize-lgpl.c: New file.
374 * import/extra/snippet/_Noreturn.h: New file.
375 * import/m4/canonicalize.m4: New file.
376 * import/m4/double-slash-root.m4: New file.
377 * import/m4/eealloc.m4: New file.
378 * import/m4/malloca.m4: New file.
379 * import/m4/nocrash.m4: New file.
380 * import/m4/stdlib_h.m4: New file.
381 * import/malloca.c: New file.
382 * import/malloca.h: New file.
383 * import/malloca.valgrind: New file.
384
385 2014-11-28 Yao Qi <yao@codesourcery.com>
386
387 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
388 * config.in, configure: Regenerate.
389 * symfile.c (find_separate_debug_file_by_debuglink): Remove
390 code checking HAVE_LSTAT is defined.
391
392 2014-11-28 Yao Qi <yao@codesourcery.com>
393
394 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
395 lstat.
396 * gnulib/aclocal.m4: Re-generated.
397 * gnulib/config.in: Re-generated.
398 * gnulib/configure: Re-generated.
399 * gnulib/import/Makefile.am: Re-generated.
400 * gnulib/import/Makefile.in: Re-generated.
401 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
402 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
403 * gnulib/import/lstat.c: New file.
404 * gnulib/import/m4/lstat.m4: New file.
405
406 2014-11-28 Yao Qi <yao@codesourcery.com>
407
408 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
409 * config.in, configure: Re-generate.
410 * inf-child.c (inf_child_fileio_readlink): Don't check
411 HAVE_READLINK is defined.
412
413 2014-11-28 Yao Qi <yao@codesourcery.com>
414
415 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
416 * gnulib/aclocal.m4: Re-generated.
417 * gnulib/config.in: Likewise.
418 * gnulib/configure: Likewise.
419 * gnulib/import/Makefile.am: Likewise.
420 * gnulib/import/Makefile.in: Likewise.
421 * gnulib/import/m4/gnulib-cache.m4: Likewise.
422 * gnulib/import/m4/gnulib-comp.m4: Likewise.
423 * gnulib/import/dosname.h: New file
424 * gnulib/import/m4/largefile.m4: New file.
425 * gnulib/import/m4/readlink.m4: New file.
426 * gnulib/import/m4/stat.m4: New file.
427 * gnulib/import/readlink.c: New file.
428 * gnulib/import/stat.c: New file.
429
430 2014-11-26 Mark Wielaard <mjw@redhat.com>
431
432 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
433 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
434
435 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
436
437 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
438 that there can be only one stack adjustment in the prologue
439 with tests to detect specific disallowed stack adjustments.
440
441 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
442
443 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
444 adjustments.
445
446 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
447
448 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
449 the instruction as well as reading it from memory.
450 (nios2_match_add): New.
451 (nios2_match_sub): New.
452 (nios2_match_addi): New.
453 (nios2_match_orhi): New.
454 (nios2_match_stw): New.
455 (nios2_match_ldw): New.
456 (nios2_match_rdctl): New.
457 (enum branch_condition): New.
458 (nios2_match_branch): New.
459 (nios2_match_jmpi): New.
460 (nios2_match_calli): New.
461 (nios2_match_jmpr): New.
462 (nios2_match_callr): New.
463 (nios2_match_break): New.
464 (nios2_match_trap): New.
465 (nios2_in_epilogue_p): Rewrite to use new functions.
466 (nios2_analyze_prologue): Likewise.
467 (nios2_skip_prologue): Delete unused local limit_pc.
468 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
469 (nios2_get_next_pc): Rewrite to use new functions.
470
471 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
472
473 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
474
475 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
476
477 Pushed by Joel Brobecker <brobecker@adacore.com>
478 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
479 elements pi_len by the size of the elements before calling
480 vm_deallocate.
481 (inf_validate_task_sc): Likewise, and properly deallocate the
482 noise array.
483
484 2014-11-23 Doug Evans <xdje42@gmail.com>
485
486 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
487 number and name if present. All callers updated.
488 (dump_fn_fieldlists): Fix indentation of args.
489
490 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
491
492 * MAINTAINERS (Write After Approval): Add myself.
493
494 2014-11-23 Joel Brobecker <brobecker@adacore.com>
495
496 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
497 to a bp_call_dummy breakpoint type.
498
499 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
500
501 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
502 registering the signal handler.
503
504 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
505
506 * event-top.h (call_stdin_event_handler_again_p): Declare.
507 * event-top.c (call_stdin_event_handler_again_p): Define.
508 (stdin_event_handler): Use it.
509 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
510 handler again if there is pending input following a
511 start sequence.
512
513 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
514
515 Pushed by Joel Brobecker <brobecker@adacore.com>
516 * linux-fork.c (checkpoint_command): Print index of new
517 checkpoint in response message.
518
519 2014-11-23 Yao Qi <yao@codesourcery.com>
520
521 * valprint.c (read_string): Move local variables 'found_nul',
522 'chunksize' and 'limit' to inner scope. Update comments.
523
524 2014-11-22 Doug Evans <xdje42@gmail.com>
525
526 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
527 function comment.
528 (search_symbols): Fix comments and whitespace.
529
530 2014-11-22 Doug Evans <xdje42@gmail.com>
531
532 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
533
534 2014-11-21 Doug Evans <dje@google.com>
535
536 * psymtab.c (psymtab_search_name): Fix whitespace.
537
538 2014-11-21 Yao Qi <yao@codesourcery.com>
539
540 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
541 errno.
542 * gnulib/import/Makefile.am: Re-generated.
543 * gnulib/import/Makefile.in: Likewise.
544 * gnulib/import/m4/gnulib-cache.m4: Likewise.
545
546 2014-11-21 Yao Qi <yao@codesourcery.com>
547
548 * gdb_wchar.h: Include wchar.h and wctype.h.
549 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
550 include wchar.h and wctype.h.
551 Don't check HAVE_WCHAR_H.
552
553 2014-11-21 Yao Qi <yao@codesourcery.com>
554
555 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
556 and wctype-h.
557 * gnulib/import/Makefile.am: Re-generated.
558 * gnulib/import/Makefile.in: Likewise.
559 * gnulib/import/m4/gnulib-cache.m4: Likewise.
560
561 2014-11-21 Yao Qi <yao@codesourcery.com>
562
563 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
564 memchr.
565 * gnulib/import/Makefile.am: Re-generated.
566 * gnulib/import/Makefile.in: Likewise.
567 * gnulib/import/m4/gnulib-cache.m4: Likewise.
568
569 2014-11-21 Yao Qi <yao@codesourcery.com>
570
571 * common/common-defs.h: Include alloca.h
572 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
573 * configure: Re-generated.
574 * defs.h: Remove code handling alloca.
575 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
576 or not.
577
578 2014-11-21 Yao Qi <yao@codesourcery.com>
579
580 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
581 alloca.
582 * gnulib/import/Makefile.am: Re-generated.
583 * gnulib/import/Makefile.in: Likewise..
584 * gnulib/import/m4/gnulib-cache.m4: Likewise.
585
586 2014-11-21 Yao Qi <yao@codesourcery.com>
587
588 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
589 alphabetical order.
590
591 2014-11-21 Joel Brobecker <brobecker@adacore.com>
592
593 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
594 flag_unsigned if HIGH_BOUND is constant and negative.
595
596 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
597
598 PR breakpoints/10737
599 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
600 modifier from "struct gdbarch" when compiling without Expat (XML)
601 support.
602 (get_syscall_by_number): Likewise.
603 (get_syscall_by_name): Likewise.
604 (get_syscall_names): Likewise.
605
606 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
607
608 PR breakpoints/10737
609 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
610 set_xml_syscall_file_name to provide gdbarch.
611 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
612 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
613 * breakpoint.c (print_it_catch_syscall): Adjust call to
614 get_syscall_by_number to provide gdbarch.
615 (print_one_catch_syscall): Likewise.
616 (print_mention_catch_syscall): Likewise.
617 (print_recreate_catch_syscall): Likewise.
618 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
619 and get_syscall_by_name to provide gdbarch.
620 (catch_syscall_completer): Adjust call to get_syscall_names to
621 provide gdbarch.
622 * gdbarch.c: Regenerate.
623 * gdbarch.h: Likewise.
624 * gdbarch.sh: Forward declare "struct syscalls_info".
625 (xml_syscall_file): New variable.
626 (syscalls_info): Likewise.
627 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
628 set_xml_syscall_file_name to provide gdbarch.
629 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
630 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
631 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
632 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
633 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
634 * xml-syscall.c: Include gdbarch.h.
635 (set_xml_syscall_file_name): Accept gdbarch parameter.
636 (get_syscall_by_number): Likewise.
637 (get_syscall_by_name): Likewise.
638 (get_syscall_names): Likewise.
639 (my_gdb_datadir): Delete global variable.
640 (struct syscalls_info) <my_gdb_datadir>: New variable.
641 (struct syscalls_info) <sysinfo>: Rename variable to
642 "syscalls_info".
643 (sysinfo): Delete global variable.
644 (have_initialized_sysinfo): Likewise.
645 (xml_syscall_file): Likewise.
646 (sysinfo_free_syscalls_desc): Rename to...
647 (syscalls_info_free_syscalls_desc): ... this.
648 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
649 code to the new layout of "struct syscalls_info".
650 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
651 "syscalls_info".
652 (syscall_create_syscall_desc): Likewise.
653 (syscall_start_syscall): Likewise.
654 (syscall_parse_xml): Likewise.
655 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
656 (init_sysinfo): Rename to...
657 (init_syscalls_info): ...this. Add gdbarch as a parameter.
658 Adjust function to deal with gdbarch.
659 (xml_get_syscall_number): Delete parameter sysinfo. Accept
660 gdbarch as a parameter. Adjust code.
661 (xml_get_syscall_name): Likewise.
662 (xml_list_of_syscalls): Likewise.
663 (set_xml_syscall_file_name): Accept gdbarch as parameter.
664 (get_syscall_by_number): Likewise.
665 (get_syscall_by_name): Likewise.
666 (get_syscall_names): Likewise.
667 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
668 (get_syscall_by_number): Likewise.
669 (get_syscall_by_name): Likewise.
670 (get_syscall_names): Likewise.
671
672 2014-11-20 Doug Evans <xdje42@gmail.com>
673
674 Split struct symtab into two: struct symtab and compunit_symtab.
675 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
676 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
677 to "struct compunit_symtab *". All callers updated.
678 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
679 "struct symtab *" argument to "struct compunit_symtab *".
680 All callers updated.
681 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
682 result to "struct compunit_symtab *". All callers updated.
683 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
684 Change result to "struct compunit_symtab *". All callers updated.
685 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
686 hange type to "struct compunit_symtab *". All uses updated.
687 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
688 Change type to "struct compunit_symtab *". All uses updated.
689 * buildsym.c (struct buildsym_compunit): New struct.
690 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
691 (buildsym_compunit): New static global.
692 (finish_block_internal): Update to fetch objfile from
693 buildsym_compunit.
694 (make_blockvector): Delete objfile argument.
695 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
696 debugformat, producer.
697 (start_buildsym_compunit): New function.
698 (free_buildsym_compunit): Renamed from free_subfiles_list.
699 All callers updated.
700 (patch_subfile_names): Rewrite to use buildsym_compunit.
701 (get_compunit_symtab): New function.
702 (get_macro_table): Delete argument comp_dir. All callers updated.
703 (start_symtab): Change result to "struct compunit_symtab *".
704 All callers updated. Create the subfile of the main source file.
705 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
706 (reset_symtab_globals): Update.
707 (end_symtab_get_static_block): Update to use buildsym_compunit.
708 (end_symtab_without_blockvector): Rewrite.
709 (end_symtab_with_blockvector): Change result to
710 "struct compunit_symtab *". All callers updated.
711 Update to use buildsym_compunit. Don't set symtab->dirname,
712 instead set it in the compunit.
713 Explicitly make sure main symtab is first in its list.
714 Set debugformat, producer, blockvector, block_line_section, and
715 macrotable in the compunit.
716 (end_symtab_from_static_block): Change result to
717 "struct compunit_symtab *". All callers updated.
718 (end_symtab, end_expandable_symtab): Ditto.
719 (set_missing_symtab): Change symtab argument to
720 "struct compunit_symtab *". All callers updated.
721 (augment_type_symtab): Ditto.
722 (record_debugformat): Update to use buildsym_compunit.
723 (record_producer): Update to use buildsym_compunit.
724 * buildsym.h (struct subfile) <dirname>: Delete.
725 <producer, debugformat>: Delete.
726 <buildsym_compunit>: New member.
727 (get_compunit_symtab): Declare.
728 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
729 from primary_symtab. Change type to "struct compunit_symtab *".
730 All uses updated.
731 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
732 All callers updated.
733 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
734 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
735 symtab. Change type to "struct compunit_symtab *". All uses updated.
736 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
737 All callers updated.
738 (dw2_find_last_source_symtab): Ditto.
739 (dw2_lookup_symbol): Ditto.
740 (recursively_find_pc_sect_compunit_symtab): Renamed from
741 recursively_find_pc_sect_symtab. Change result to
742 "struct compunit_symtab *". All callers updated.
743 (dw2_find_pc_sect_compunit_symtab): Renamed from
744 dw2_find_pc_sect_symtab. Change result to
745 "struct compunit_symtab *". All callers updated.
746 (get_compunit_symtab): Renamed from get_symtab. Change result to
747 "struct compunit_symtab *". All callers updated.
748 (recursively_compute_inclusions): Change type of immediate_parent
749 argument to "struct compunit_symtab *". All callers updated.
750 (compute_compunit_symtab_includes): Renamed from
751 compute_symtab_includes. All callers updated. Rewrite to compute
752 includes of compunit_symtabs and not symtabs.
753 (process_full_comp_unit): Update to work with struct compunit_symtab.
754 (process_full_type_unit): Ditto.
755 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
756 (dwarf_decode_lines): Remove special case handling of main subfile.
757 (macro_start_file): Delete argument comp_dir. All callers updated.
758 (dwarf_decode_macro_bytes): Ditto.
759 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
760 use struct compunit_symtab.
761 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
762 * jit.c (finalize_symtab): Build compunit_symtab.
763 * jv-lang.c (get_java_class_symtab): Change result to
764 "struct compunit_symtab *". All callers updated.
765 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
766 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
767 comp_dir. Change type to "struct compunit_symtab *".
768 All uses updated.
769 (new_macro_table): Change comp_dir argument to cust,
770 "struct compunit_symtab *". All callers updated.
771 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
772 nr_primary_symtabs. All uses updated.
773 (count_symtabs_and_blocks): Update to handle compunits.
774 (report_command_stats): Update output, "primary symtabs" renamed to
775 "compunits".
776 * mdebugread.c (new_symtab): Change result to
777 "struct compunit_symtab *". All callers updated.
778 (parse_procedure): Change type of search_symtab argument to
779 "struct compunit_symtab *". All callers updated.
780 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
781 separate loop.
782 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
783 symtabs. Change type to "struct compunit_symtab *". All uses updated.
784 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
785 All uses updated.
786 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
787 All uses updated.
788 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
789 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
790 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
791 symtab. Change type to "struct compunit_symtab *". All uses updated.
792 * psymtab.c (psymtab_to_symtab): Change result type to
793 "struct compunit_symtab *". All callers updated.
794 (find_pc_sect_compunit_symtab_from_partial): Renamed from
795 find_pc_sect_symtab_from_partial. Change result type to
796 "struct compunit_symtab *". All callers updated.
797 (lookup_symbol_aux_psymtabs): Change result type to
798 "struct compunit_symtab *". All callers updated.
799 (find_last_source_symtab_from_partial): Ditto.
800 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
801 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
802 and macro_table from compunit.
803 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
804 type to "struct compunit_symtab *". All callers updated.
805 (debug_qf_lookup_symbol): Ditto.
806 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
807 debug_qf_find_pc_sect_symtab, change result type to
808 "struct compunit_symtab *". All callers updated.
809 * symfile.c (allocate_symtab): Delete objfile argument.
810 New argument cust.
811 (allocate_compunit_symtab): New function.
812 (add_compunit_symtab_to_objfile): New function.
813 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
814 Change result type to "struct compunit_symtab *". All uses updated.
815 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
816 Change result type to "struct compunit_symtab *". All uses updated.
817 * symmisc.c (print_objfile_statistics): Compute blockvector count in
818 separate loop.
819 (dump_symtab_1): Update test for primary source symtab.
820 (maintenance_info_symtabs): Update to handle compunit symtabs.
821 (maintenance_check_symtabs): Ditto.
822 * symtab.c (set_primary_symtab): Delete.
823 (compunit_primary_filetab): New function.
824 (compunit_language): New function.
825 (iterate_over_some_symtabs): Change type of arguments "first",
826 "after_last" to "struct compunit_symtab *". All callers updated.
827 Update to loop over symtabs in each compunit.
828 (error_in_psymtab_expansion): Rename symtab argument to cust,
829 and change type to "struct compunit_symtab *". All callers updated.
830 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
831 Change result type to "struct compunit_symtab *". All callers updated.
832 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
833 Change result type to "struct compunit_symtab *". All callers updated.
834 (find_pc_sect_line): Only loop over symtabs within selected compunit
835 instead of all symtabs in the objfile.
836 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
837 <compunit_symtab> New member.
838 <block_line_section>: Moved to compunit_symtab.
839 <locations_valid>: Ditto.
840 <epilogue_unwind_valid>: Ditto.
841 <macro_table>: Ditto.
842 <dirname>: Ditto.
843 <debugformat>: Ditto.
844 <producer>: Ditto.
845 <objfile>: Ditto.
846 <call_site_htab>: Ditto.
847 <includes>: Ditto.
848 <user>: Ditto.
849 <primary>: Delete
850 (SYMTAB_COMPUNIT): New macro.
851 (SYMTAB_BLOCKVECTOR): Update definition.
852 (SYMTAB_OBJFILE): Update definition.
853 (SYMTAB_DIRNAME): Update definition.
854 (struct compunit_symtab): New type. Common members among all source
855 symtabs within a compilation unit moved here. All uses updated.
856 (COMPUNIT_OBJFILE): New macro.
857 (COMPUNIT_FILETABS): New macro.
858 (COMPUNIT_DEBUGFORMAT): New macro.
859 (COMPUNIT_PRODUCER): New macro.
860 (COMPUNIT_DIRNAME): New macro.
861 (COMPUNIT_BLOCKVECTOR): New macro.
862 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
863 (COMPUNIT_LOCATIONS_VALID): New macro.
864 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
865 (COMPUNIT_CALL_SITE_HTAB): New macro.
866 (COMPUNIT_MACRO_TABLE): New macro.
867 (ALL_COMPUNIT_FILETABS): New macro.
868 (compunit_symtab_ptr): New typedef.
869 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
870
871 2014-11-20 Joel Brobecker <brobecker@adacore.com>
872
873 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
874 if the TYPE_CODE of range_type's base type does not match
875 the TYPE_CODE of encoding_type's base type.
876
877 2014-11-19 Joel Brobecker <brobecker@adacore.com>
878
879 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
880 it starts with '<'.
881
882 2014-11-19 Joel Brobecker <brobecker@adacore.com>
883
884 * ada-lang.c (ada_is_redundant_range_encoding): New function.
885 (ada_is_redundant_index_type_desc): New function.
886 (to_fixed_array_type): Ignore parallel XA type if redundant.
887
888 2014-11-19 Joel Brobecker <brobecker@adacore.com>
889
890 * ada-lang.c (constrained_packed_array_type): Set the length
891 of the return array as if both bounds where zero if that
892 returned array's index type is dynamic.
893
894 2014-11-19 Yao Qi <yao@codesourcery.com>
895
896 * config/i386/go32.mh (CC): Remove.
897
898 2014-11-18 Doug Evans <xdje42@gmail.com>
899
900 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
901 updated.
902
903 2014-11-18 Doug Evans <xdje42@gmail.com>
904
905 * buildsym.c (buildsym_objfile): New static global.
906 (buildsym_comp_dir): New static global.
907 (finish_block_internal): Delete arg objfile. All callers updated.
908 (finish_block): Delete arg objfile. All callers updated.
909 (start_subfile): Delete arg dirname. All callers updated.
910 (patch_subfile_names): Update buildsym_comp_dir.
911 (get_macro_table): Delete arg objfile. All callers updated.
912 (start_symtab): New arg objfile. All callers updated.
913 Rename arg dirname to comp_dir.
914 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
915 (end_symtab_get_static_block): Delete arg objfile. All callers
916 updated.
917 (end_symtab_without_blockvector): Ditto.
918 (end_symtab_with_blockvector): Ditto.
919 (end_symtab_from_static_block): Ditto.
920 (end_symtab): Ditto.
921 (end_expandable_symtab): Ditto.
922 (augment_type_symtab): Ditto.
923 * coffread.c (coff_start_symtab): New arg objfile. All callers
924 updated.
925
926 2014-11-18 Doug Evans <xdje42@gmail.com>
927
928 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
929 updated.
930
931 2014-11-18 Doug Evans <xdje42@gmail.com>
932
933 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
934 symtab.dirname updated to use it.
935
936 2014-11-18 Doug Evans <xdje42@gmail.com>
937
938 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
939 symtab.objfile updated to use it.
940
941 2014-11-18 Doug Evans <xdje42@gmail.com>
942
943 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
944
945 2014-11-18 Doug Evans <xdje42@gmail.com>
946
947 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
948 SYMBOL_OBJFILE.
949 * findvar.c (default_read_var_value): Ditto.
950 * jv-lang.c (add_class_symtab_symbol): Ditto.
951 * parse.c (operator_check_standard): Ditto.
952 * printcmd.c (address_info): Ditto.
953 * symtab.c (fixup_symbol_section): Ditto.
954 (skip_prologue_sal): Ditto.
955 * tracepoint.c (scope_info): Ditto.
956 * valops.c (find_function_in_inferior): Ditto.
957 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
958 * python/py-symbol.c (set_symbol): Ditto.
959
960 2014-11-18 Doug Evans <xdje42@gmail.com>
961
962 * buildsym.c (main_subfile): New static global.
963 (free_subfiles_list): New function.
964 (start_symtab): Set main_subfile.
965 (restart_symtab): Replace init of subfiles, current_subfile with
966 call to free_subfiles_list.
967 (watch_main_source_file_lossage): Use main_subfile.
968 (reset_symtab_globals): Replace init of current_subfile with call
969 to free_subfiles_list.
970 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
971 functions, split out from ...
972 (end_symtab_from_static_block): ... here. Rewrite to call them.
973
974 2014-11-18 Doug Evans <xdje42@gmail.com>
975
976 The result of symtab expansion is always a primary symtab.
977 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
978 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
979 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
980 (psymtab_to_symtab): Add comment and assert.
981 (map_matching_symbols_psymtab): Remove unnecessary test for
982 non-primary symtab.
983
984 2014-11-15 Doug Evans <xdje42@gmail.com>
985
986 PR symtab/17559
987 * symtab.c (find_pc_line_symtab): New function.
988 * symtab.h (find_pc_line_symtab): Declare.
989 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
990 find_pc_symtab.
991 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
992 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
993 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
994 * tui/tui-win.c (make_visible_with_new_height): Ditto.
995 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
996 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
997
998 2014-11-15 Doug Evans <xdje42@gmail.com>
999
1000 * symtab.c (expand_symtab_containing_pc): Renamed from
1001 find_pc_sect_symtab_via_partial. All callers updated.
1002
1003 2014-11-15 Yao Qi <yao@codesourcery.com>
1004
1005 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1006
1007 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1008
1009 * common/common-defs.h: Move <stdarg.h> #include ahead of
1010 <stdio.h> #include.
1011
1012 2014-11-14 Pedro Alves <palves@redhat.com>
1013
1014 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1015 [!PHONY_ICONV] (gdb_iconv): New function.
1016 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1017
1018 2014-11-13 Doug Evans <dje@google.com>
1019
1020 PR symtab/17591
1021 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1022 "(anonymous namespace)".
1023
1024 2014-11-13 Doug Evans <dje@google.com>
1025
1026 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1027 infinite loop.
1028
1029 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1030
1031 * NEWS (maint set target-async): Fix typo.
1032
1033 2014-11-12 Pedro Alves <palves@redhat.com>
1034
1035 * infrun.c (enum infwait_states, infwait_state): Delete.
1036
1037 2014-11-12 Pedro Alves <palves@redhat.com>
1038
1039 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1040 Rewrite stepping over a permanent breakpoint.
1041 (thread_still_needs_step_over, proceed): Don't set
1042 stepping_over_breakpoint for permanent breakpoints.
1043 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1044 single-step breakpoints out of the target on hardware step
1045 targets.
1046 (process_event_stop_test): If stepping a permanent breakpoint
1047 doesn't hit the step-resume breakpoint, delete the step-resume
1048 breakpoint.
1049 (switch_back_to_stepped_thread): Also check if the stepped thread
1050 has advanced already on hardware step targets.
1051 (currently_stepping): Return true if the thread stepped a
1052 breakpoint.
1053
1054 2014-11-12 Pedro Alves <palves@redhat.com>
1055
1056 Mark locations as permanent, not the whole breakpoint.
1057 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1058 (mark_breakpoints_out): Don't mark permanent breakpoints as
1059 uninserted.
1060 (breakpoint_init_inferior): Use mark_breakpoints_out.
1061 (breakpoint_here_p): Adjust.
1062 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1063 of permanent breakpoints.
1064 (make_breakpoint_permanent): Mark each location as permanent,
1065 instead of marking the breakpoint.
1066 (add_location_to_breakpoint): If the location is permanent, mark
1067 it as such, and as inserted.
1068 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1069 (bp_location_compare, update_global_location_list): Adjust.
1070 (update_breakpoint_locations): Don't make the breakpoint permanent
1071 here.
1072 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1073 breakpoints.
1074 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1075 (struct bp_location) <permanent>: New field.
1076 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1077 reference to bp_permanent.
1078
1079 2014-11-12 Pedro Alves <palves@redhat.com>
1080
1081 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1082 * arch-utils.h (default_skip_permanent_breakpoint): New
1083 declaration.
1084 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1085 Install default_skip_permanent_breakpoint as default method.
1086 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1087 (i386_gdbarch_init): Don't install it.
1088 * infrun.c (resume): Assume there's always a
1089 gdbarch_skip_permanent_breakpoint implementation.
1090 * gdbarch.h, gdbarch.c: Regenerate.
1091
1092 2014-11-11 Daniel Colascione <dancol@dancol.org>
1093
1094 Warn about cross-PID-namespace debugging.
1095 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1096 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1097 * linux-thread-db.c (check_pid_namespace_match): New function.
1098 (thread_db_inferior_created): Call it.
1099
1100 2014-11-10 Doug Evans <xdje42@gmail.com>
1101
1102 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1103 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1104
1105 2014-11-10 Doug Evans <xdje42@gmail.com>
1106
1107 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1108
1109 2014-11-10 Doug Evans <xdje42@gmail.com>
1110
1111 PR symtab/17564
1112 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1113 (lookup_static_symbol): Move definition to new location and rewrite.
1114 (lookup_symbol_in_objfile): New function.
1115 (lookup_symbol_global_iterator_cb): Call it.
1116
1117 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1118
1119 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1120
1121 2014-11-07 Pedro Alves <palves@redhat.com>
1122
1123 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1124 check if we did a "nexti" inside a prologue.
1125 * symtab.c (in_prologue): Delete function.
1126 * symtab.h (in_prologue): Delete declaration.
1127
1128 2014-11-06 Doug Evans <xdje42@gmail.com>
1129
1130 * symtab.h (lookup_global_symbol): Improve function comment.
1131
1132 2014-11-06 Doug Evans <xdje42@gmail.com>
1133
1134 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1135 All callers updated.
1136 * symtab.h (lookup_global_symbol): Update decl.
1137 (lookup_static_symbol): Move decl to better location.
1138
1139 2014-11-06 Doug Evans <xdje42@gmail.com>
1140
1141 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1142
1143 2014-11-06 Doug Evans <xdje42@gmail.com>
1144
1145 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1146 All callers updated.
1147 (lookup_symbol_in_all_objfiles): Renamed from
1148 lookup_symbol_aux_symtabs. All callers updated.
1149 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1150 All callers updated.
1151 (lookup_symbol_in_objfile_symtabs): Renamed from
1152 lookup_symbol_aux_objfile. All callers updated.
1153
1154 2014-11-06 Doug Evans <xdje42@gmail.com>
1155
1156 * symtab.c (lookup_symbol_in_block): Renamed from
1157 lookup_symbol_aux_block. All callers updated.
1158
1159 2014-11-06 Doug Evans <xdje42@gmail.com>
1160
1161 * symtab.c (lookup_static_symbol): Renamed from
1162 lookup_static_symbol_aux. All callers updated.
1163 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1164 All callers updated.
1165
1166 2014-11-06 Doug Evans <xdje42@gmail.com>
1167
1168 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1169 * block.c (block_lookup_symbol): Use it.
1170 * cp-support.c (make_symbol_overload_list_block): Use it.
1171 * symtab.c (iterate_over_symbols): Use it.
1172
1173 2014-11-06 Doug Evans <xdje42@gmail.com>
1174
1175 * symtab.c (lookup_block_symbol): Moved to ...
1176 * block.c (block_lookup_symbol): ... here and renamed.
1177 All callers updated.
1178 * block.h (block_lookup_symbol): Declare.
1179 * symtab.h (lookup_block_symbol): Delete.
1180
1181 2014-11-06 Doug Evans <xdje42@gmail.com>
1182
1183 * ada-lang.c (ada_make_symbol_completion_list): Use
1184 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1185 * symtab.c (lookup_objfile_from_block): Ditto.
1186
1187 2014-11-06 Doug Evans <xdje42@gmail.com>
1188
1189 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1190 TYPE_CODE_STRUCT.
1191
1192 2014-11-06 Doug Evans <xdje42@gmail.com>
1193
1194 * objfiles.c (get_objfile_arch): Constify.
1195 * objfiles.h (get_objfile_arch): Update prototype.
1196 * solib.c (solib_global_lookup): Fetch arch from objfile,
1197 not target_gdbarch.
1198
1199 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1200
1201 * nios2-tdep.c (wild_insn): Delete.
1202 (profiler_insn, irqentry_insn): Delete.
1203 (nios2_match_sequence): Delete.
1204 (nios2_analyze_prologue): Update comments. Remove matching
1205 of obsolete profiler_insn and irqentry_insn sequences.
1206
1207 2014-11-05 Alan Modra <amodra@gmail.com>
1208
1209 * charset.c (convert_between_encodings): Shrink obstack using
1210 obstack_blank_fast.
1211 * minsyms.c (install_minimal_symbols): Likewise.
1212 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1213 to char* before doing pointer arithmetic.
1214
1215 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1216
1217 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1218
1219 2014-11-04 Pedro Alves <palves@redhat.com>
1220
1221 * breakpoint.c (breakpoint_thread_match): Delete function.
1222 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1223
1224 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1225
1226 PR c++/17494
1227 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1228 the method args also under EVAL_SKIP when evaluating method
1229 calls under EVAL_SKIP.
1230
1231 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1232
1233 * dwarf2loc.c (read_pieced_value): Do big endian
1234 processing only if gdb_regnum is not -1.
1235 (write_pieced_value): Ditto.
1236
1237 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1238
1239 * arm-linux-tdep.c (arm_linux_init_abi): Use
1240 info.byte_order_for_code to choose endianity of breakpoint
1241 instructions snippets.
1242
1243 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1244
1245 * arm-tdep.c (extract_arm_insn): Use
1246 gdbarch_byte_order_for_code to read arm instruction.
1247
1248 2014-11-02 Doug Evans <xdje42@gmail.com>
1249
1250 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1251
1252 2014-11-02 Doug Evans <xdje42@gmail.com>
1253
1254 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1255 main_subfile before returning.
1256
1257 2014-10-31 Doug Evans <xdje42@gmail.com>
1258
1259 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1260 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1261
1262 2014-10-31 Doug Evans <xdje42@gmail.com>
1263
1264 * valops.c (value_cast_pointers): Fix whitespace.
1265 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1266 Ditto.
1267
1268 2014-10-30 Doug Evans <dje@google.com>
1269
1270 * NEWS: Mention ability add attributes to gdb.Objfile and
1271 gdb.Progspace objects.
1272 * python/py-objfile.c (objfile_object): New member dict.
1273 (objfpy_dealloc): Py_XDECREF dict.
1274 (objfpy_initialize): Initialize dict.
1275 (objfile_getset): Add __dict__.
1276 (objfile_object_type): Set tp_dictoffset member.
1277 * python/py-progspace.c (progspace_object): New member dict.
1278 (pspy_dealloc): Py_XDECREF dict.
1279 (pspy_initialize): Initialize dict.
1280 (pspace_getset): Add __dict__.
1281 (pspace_object_type): Set tp_dictoffset member.
1282
1283 2014-10-30 Yao Qi <yao@codesourcery.com>
1284
1285 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1286 replace '\\' with '\\\\'.
1287
1288 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1289
1290 GDB 7.8.1 released.
1291
1292 2014-10-29 Pedro Alves <palves@redhat.com>
1293
1294 PR gdb/17408
1295 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1296 instead of assuming a thread with a stepping range is always
1297 stepping.
1298
1299 2014-10-29 Pedro Alves <palves@redhat.com>
1300
1301 PR python/17372
1302 * event-top.c (change_line_handler): Call
1303 gdb_rl_callback_handler_remove instead of
1304 rl_callback_handler_remove.
1305 (callback_handler_installed): New global.
1306 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1307 (gdb_rl_callback_handler_reinstall): New functions.
1308 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1309 gdb_rl_callback_handler_install instead of
1310 rl_callback_handler_remove and rl_callback_handler_install.
1311 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1312 instead of rl_callback_handler_remove.
1313 * event-top.h (gdb_rl_callback_handler_remove)
1314 (gdb_rl_callback_handler_install)
1315 (gdb_rl_callback_handler_reinstall): New declarations.
1316 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1317 cleanup function.
1318 (fetch_inferior_event): Install it.
1319 * top.c (gdb_readline_wrapper_line) Call
1320 gdb_rl_callback_handler_remove instead of
1321 rl_callback_handler_remove.
1322 (gdb_readline_wrapper_cleanup): Don't call
1323 rl_callback_handler_install.
1324
1325 2014-10-29 Pedro Alves <palves@redhat.com>
1326
1327 * event-top.c (command_line_handler): Clear the first byte of
1328 linebuffer, when it is first allocated.
1329
1330 2014-10-29 Pedro Alves <palves@redhat.com>
1331
1332 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1333 TRY_CATCH.
1334
1335 2014-10-29 Pedro Alves <palves@redhat.com>
1336
1337 PR tui/16138
1338 PR tui/17519
1339 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1340 (tui_allowed_p): Delete function.
1341 * tui/tui.c: Include "interps.h".
1342 (tui_enable): Don't use tui_allowed_p. Error out here with
1343 detailed error messages if the TUI is the top level interpreter,
1344 or if output is not a terminal. Use newterm instead of initscr,
1345 and error out if initializing the terminal fails. Also error out if
1346 the terminal doesn't support cursor addressing.
1347 * tui/tui.h (tui_allowed_p): Delete declaration.
1348
1349 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1350
1351 * arm-tdep.c (arm_skip_stack_protector): Return early if
1352 address loaded by first "ldr" instruction does not have
1353 a corresponding minimal symbol. Update comment.
1354
1355 2014-10-29 Yao Qi <yao@codesourcery.com>
1356
1357 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1358 loaded address correctly of ldr instruction.
1359
1360 2014-10-28 Pedro Alves <palves@redhat.com>
1361
1362 PR gdb/12623
1363 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1364 field.
1365 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1366 thread's stepped_breakpoint field. Skip if reverse debugging.
1367 Add comment.
1368 (init_thread_stepping_state, handle_signal_stop): Clear the
1369 thread's stepped_breakpoint field.
1370
1371 2014-10-27 Pedro Alves <palves@redhat.com>
1372
1373 * remote.c (remote_thread_alive): New, factored out from ...
1374 (remote_thread_alive): ... this.
1375 (remote_update_thread_list): Bail out before deleting threads if
1376 the target returned an empty list, and, the current thread has a
1377 magic/fake ptid.
1378
1379 2014-10-27 Pedro Alves <palves@redhat.com>
1380
1381 * infrun.c (handle_signal_stop): Also skip handlers when a random
1382 signal arrives while handling a "stepi" or a "nexti". Set the
1383 thread's 'step_after_step_resume_breakpoint' flag.
1384
1385 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1386
1387 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1388 (arm_record_ld_st_imm_offset): Reimplement to cover all
1389 load/store cases for ARM opcode 010.
1390 (arm_record_ld_st_multiple): Reimplement to cover all
1391 load/store cases for ARM opcode 100.
1392
1393 2014-10-26 Doug Evans <xdje42@gmail.com>
1394
1395 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1396
1397 2014-10-26 Doug Evans <xdje42@gmail.com>
1398
1399 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1400 parameter "kind" to "block_index".
1401 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1402 "block_index".
1403 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1404
1405 2014-10-26 Doug Evans <xdje42@gmail.com>
1406
1407 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1408
1409 2014-10-26 Doug Evans <xdje42@gmail.com>
1410
1411 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1412 obstack_alloc.
1413
1414 2014-10-26 Doug Evans <xdje42@gmail.com>
1415
1416 * parser-defs.h (block_found): Move decl from here ...
1417 * symtab.h (block_found): ... to here.
1418
1419 2014-10-26 Doug Evans <xdje42@gmail.com>
1420
1421 * symtab.h (struct field_of_this_result): Fix typo in comment.
1422 (lookup_symbol_in_language): Move function comment here.
1423 (lookup_symbol): Improve function comment.
1424 (basic_lookup_symbol_nonlocal): Ditto.
1425 (lookup_symbol_static, lookup_symbol_global): Ditto.
1426 (lookup_symbol_aux_block): Ditto.
1427 (lookup_language_this): Add function comment.
1428 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1429 function comment.
1430 (lookup_block_symbol): Improve function comment.
1431 (lookup_struct): Fix capitalization in function comment.
1432 (lookup_transparent_type): Add function comment.
1433 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1434 Improve function comment.
1435 (lookup_objfile_from_block): Add function comment.
1436 * symtab.c (lookup_symbol_in_language): Update function comment.
1437 (lookup_symbol, lookup_language_this): Ditto.
1438 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1439 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1440 (basic_lookup_symbol_nonlocal): Ditto.
1441 (lookup_symbol_static, lookup_symbol_global): Ditto.
1442 (lookup_transparent_type, lookup_block_symbol): Ditto.
1443
1444 2014-10-25 Doug Evans <xdje42@gmail.com>
1445
1446 * symtab.c (types_info): Delete forward decl.
1447 (functions_info, variables_info, sources_info): Ditto.
1448 (_initialize_symtab): Rewrite forward decl to use
1449 initialize_file_ftype.
1450
1451 2014-10-25 Doug Evans <xdje42@gmail.com>
1452
1453 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1454
1455 2014-10-25 Doug Evans <xdje42@gmail.com>
1456
1457 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1458 of local var child_die.
1459
1460 2014-10-24 Don Breazeal <donb@codesourcery.com>
1461
1462 * infrun.c (follow_fork_inferior): Update fork message printing
1463 to use target_terminal_ours_for_output instead of
1464 target_terminal_ours, to use _() for all format strings, to print
1465 "vfork" instead of "fork" for vforks, and to add a detach message.
1466 (handle_vfork_child_exec_or_exit): Update message printing to use
1467 target_terminal_ours_for_output instead of target_terminal_ours, to
1468 use _() for all format strings, and to fix some formatting.
1469
1470 2014-10-24 Pedro Alves <palves@redhat.com>
1471
1472 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1473 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1474 * config/vax/vax.mh: Delete.
1475 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1476 obsolete configurations section.
1477 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1478 * vax-nat.c: Delete file.
1479
1480 2014-10-24 Pedro Alves <palves@redhat.com>
1481
1482 * NEWS (Removed targets): Add OS/arch column.
1483
1484 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1485
1486 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1487 on the arg type of a constructor only if it is of reference type.
1488
1489 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1490
1491 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1492 accessors and constants from nios2 opcodes update.
1493 (nios2_get_next_pc): Likewise.
1494
1495 2014-10-19 Doug Evans <xdje42@gmail.com>
1496
1497 * gdbthread.h (set_running): Fix comment.
1498 (set_executing, finish_thread_state): Fix comment.
1499
1500 2014-10-18 Doug Evans <xdje42@gmail.com>
1501
1502 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1503
1504 2014-10-17 Doug Evans <dje@google.com>
1505
1506 * NEWS: Mention new event gdb.clear_objfiles.
1507 * python/py-event.h (emit_clear_objfiles_event): Clear
1508 * python/py-events.h (events_object): New member clear_objfiles.
1509 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1510 event.
1511 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1512 emit clear_objfiles event.
1513 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1514 function.
1515 (emit_clear_objfiles_event): New function.
1516 (clear_objfiles): New event.
1517 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1518 Declare.
1519 * python/python.c (_initialize_python): Call
1520 gdbpy_initialize_clear_objfiles_event.
1521
1522 2014-10-17 Doug Evans <dje@google.com>
1523
1524 * NEWS: Mention new gdb.Objfile.progspace attribute.
1525 * python/py-objfile.c (objfpy_get_progspace): New function.
1526 (objfile_getset): New entry for "progspace".
1527
1528 2014-10-17 Pedro Alves <palves@redhat.com>
1529
1530 PR gdb/17471
1531 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1532 returns a copy of the input.
1533 (run_command_1, continue_command, step_1, jump_command)
1534 (signal_command, until_command, advance_command, finish_command)
1535 (attach_command): Adjust and install a cleanup to free the
1536 stripped args.
1537
1538 2014-10-17 Pedro Alves <palves@redhat.com>
1539
1540 PR gdb/17300
1541 * infcmd.c (continue_1): If continuing all threads in the
1542 foreground, make sure the inferior's terminal settings are put in
1543 effect.
1544
1545 2014-10-17 Pedro Alves <palves@redhat.com>
1546
1547 PR gdb/17472
1548 * annotate.c (annotate_breakpoints_invalid): Use
1549 target_terminal_our_for_output instead of target_terminal_ours.
1550 Give back the terminal to the target.
1551 (annotate_frames_invalid): Likewise.
1552
1553 2014-10-17 Pedro Alves <palves@redhat.com>
1554
1555 * target.c (enum terminal_state): New enum.
1556 (terminal_state): New global.
1557 (target_terminal_init): New function.
1558 (target_terminal_inferior): Skip if inferior already owns the
1559 terminal.
1560 (target_terminal_ours, target_terminal_ours_for_output): New
1561 functions.
1562 * target.h (target_terminal_init): Convert to function prototype.
1563 (target_terminal_ours_for_output): Convert to function prototype
1564 and tweak comment.
1565 (target_terminal_ours): Convert to function prototype and tweak
1566 comment.
1567 * windows-nat.c (do_initial_windows_stuff): Call
1568 target_terminal_init instead of child_terminal_init_with_pgrp.
1569
1570 2014-10-17 Pedro Alves <palves@redhat.com>
1571
1572 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1573 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1574 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1575 solib-osf.c.
1576 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1577 * ada-lang.h [__alpha__ && __osf__]
1578 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1579 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1580 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1581 GDB_OSABI_OSF1.
1582 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1583 files.
1584 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1585 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1586 * configure: Regenerate.
1587 * configure.ac: Remove references to osf.
1588 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1589 section. Remove all other references to osf.
1590 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1591 Remove all other references to osf.
1592 * dec-thread.c: Delete file.
1593 * defs.h (GDB_OSABI_OSF1): Delete.
1594 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1595 defined.
1596 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1597 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1598 Delete code.
1599 (unconditionally_kill_inferior)
1600 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1601 * solib-osf.c: Delete file.
1602
1603 2014-10-17 Pedro Alves <palves@redhat.com>
1604
1605 * remote.c (clear_threads_listing_context): Move higher up, out of
1606 the HAVE_LIBEXPAT guard.
1607
1608 2014-10-16 Tristan Gingold <gingold@adacore.com>
1609
1610 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1611 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1612 on amd64.
1613
1614 2014-10-15 Pedro Alves <palves@redhat.com>
1615
1616 * dec-thread.c (dec_thread_count_gdb_threads)
1617 (dec_thread_add_gdb_thread): Delete.
1618 (dec_thread_update_thread_list): Delete.
1619 (dec_thread_find_new_threads): Rename to ...
1620 (dec_thread_update_thread_list): ... this. Delete GDB-size
1621 threads that are no longer found in dec_thread_list.
1622 (resync_thread_list): Delete.
1623 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1624 resync_thread_list.
1625
1626 2014-10-15 Pedro Alves <palves@redhat.com>
1627
1628 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1629 * remote.c (remote_update_thread_list): Skip calling prune_threads
1630 if any thread listing method is supported, and instead walk over
1631 the set of remote threads listed, deleting those that are not
1632 found in GDB's thread list.
1633
1634 2014-10-15 Pedro Alves <palves@redhat.com>
1635
1636 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1637 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1638 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1639 (bsd_uthread_target): Adjust.
1640 * corelow.c (core_open): Adjust.
1641 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1642 (dec_thread_update_thread_list): New function.
1643 (init_dec_thread_ops): Adjust.
1644 * gdbthread.h (prune_threads): New declaration.
1645 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1646 (thread_db_update_thread_list): ... this. Call prune_threads.
1647 (init_thread_db_ops): Adjust.
1648 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1649 (procfs_update_thread_list): ... this. Call prune_threads.
1650 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1651 Adjust.
1652 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1653 (obsd_update_thread_list): ... this. Call prune_threads.
1654 (obsd_add_target): Adjust.
1655 * procfs.c (procfs_target): Adjust.
1656 (procfs_notice_thread): Update comment.
1657 (procfs_find_new_threads): Rename to ...
1658 (procfs_update_thread_list): ... this. Call prune_threads.
1659 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1660 comment.
1661 (ravenscar_wait): Adjust.
1662 (ravenscar_find_new_threads): Rename to ...
1663 (ravenscar_update_thread_list): ... this. Call prune_threads.
1664 (init_ravenscar_thread_ops): Adjust.
1665 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1666 (record_btrace_update_thread_list): ... this. Adjust comment.
1667 (init_record_btrace_ops): Adjust.
1668 * remote.c (remote_threads_info): Rename to ...
1669 (remote_update_thread_list): ... this. Call prune_threads.
1670 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1671 Adjust.
1672 * sol-thread.c (check_for_thread_db): Adjust.
1673 (sol_find_new_threads_callback): Rename to ...
1674 (sol_update_thread_list_callback): ... this.
1675 (sol_find_new_threads): Rename to ...
1676 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1677 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1678 * target-delegates.c: Regenerate.
1679 * target.c (target_find_new_threads): Rename to ...
1680 (target_update_thread_list): ... this.
1681 * target.h (struct target_ops): Rename to_find_new_threads field
1682 to to_update_thread_list.
1683 (target_find_new_threads): Rename to ...
1684 (target_update_thread_list): ... this.
1685 * thread.c (prune_threads): Make extern.
1686 (update_thread_list): Adjust.
1687
1688 2014-10-15 Pedro Alves <palves@redhat.com>
1689
1690 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1691 Add describing comment. Return -1 if the qL packet is not
1692 supported.
1693 (struct thread_item, thread_item_t): Move higher up in
1694 the file. Add comments.
1695 (struct threads_parsing_context): Move higher up in
1696 the file, add comments, and remote to ...
1697 (struct threads_listing_context): ... this.
1698 (remote_newthread_step): Don't add the thread to GDB's thread
1699 database here. Instead push it to the thread_listing_context
1700 list.
1701 (remote_find_new_threads): Rename to ...
1702 (remote_get_threads_with_ql): ... this. Add target_ops and
1703 targets_listing_context parameters. Pass down context.
1704 (start_thread): Adjust.
1705 (clear_threads_parsing_context): Rename to ...
1706 (clear_threads_listing_context): ... this.
1707 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1708 remote_threads_info.
1709 (remote_get_threads_with_qthreadinfo): Ditto.
1710 (remote_threads_info): Reimplement.
1711
1712 2014-10-15 Pedro Alves <palves@redhat.com>
1713
1714 * infrun.c (resume): Don't force displaced-stepping for all
1715 single-steps on software single-stepping archs.
1716
1717 2014-10-15 Pedro Alves <palves@redhat.com>
1718
1719 * breakpoint.c (single_step_breakpoints): Delete global.
1720 (insert_single_step_breakpoint): Adjust to store the breakpoint
1721 pointer in the current thread.
1722 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1723 (cancel_single_step_breakpoints): Delete functions.
1724 (breakpoint_has_location_inserted_here): Make extern.
1725 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1726 breakpoint list.
1727 * breakpoint.h (breakpoint_has_location_inserted_here): New
1728 declaration.
1729 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1730 (cancel_single_step_breakpoints): Remove declarations.
1731 * gdbthread.h (struct thread_control_state)
1732 <single_step_breakpoints>: New field.
1733 (delete_single_step_breakpoints)
1734 (thread_has_single_step_breakpoints_set)
1735 (thread_has_single_step_breakpoint_here): New declarations.
1736 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1737 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1738 (singlestep_pc): Delete globals.
1739 (infrun_thread_ptid_changed): Remove references to removed
1740 globals.
1741 (resume_cleanups): Delete the current thread's single-step
1742 breakpoints.
1743 (maybe_software_singlestep): Remove references to removed globals.
1744 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1745 delete_single_step_breakpoints.
1746 (init_wait_for_inferior): Remove references to removed globals.
1747 (delete_thread_infrun_breakpoints): Delete the thread's
1748 single-step breakpoints too.
1749 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1750 single-step breakpoints here.
1751 (delete_stopped_threads_single_step_breakpoints): New function.
1752 (adjust_pc_after_break): Adjust to use
1753 thread_has_single_step_breakpoints_set.
1754 (handle_inferior_event): Remove references to removed globals.
1755 Use delete_stopped_threads_single_step_breakpoints.
1756 (handle_signal_stop): Adjust to per-thread single-step
1757 breakpoints. Swap test order to do cheaper tests first.
1758 (switch_back_to_stepped_thread): Extend debug output. Remove
1759 references to removed globals.
1760 * record-full.c (record_full_wait_1): Adjust to per-thread
1761 single-step breakpoints.
1762 * thread.c (delete_single_step_breakpoints)
1763 (thread_has_single_step_breakpoints_set)
1764 (thread_has_single_step_breakpoint_here): New functions.
1765 (clear_thread_inferior_resources): Also delete the thread's
1766 single-step breakpoints.
1767
1768 2014-10-15 Pedro Alves <palves@redhat.com>
1769
1770 * thread.c (delete_thread_breakpoint): New function.
1771 (delete_step_resume_breakpoint)
1772 (delete_exception_resume_breakpoint): Use it.
1773 (delete_at_next_stop): New function.
1774 (clear_thread_inferior_resources): Use delete_at_next_stop.
1775
1776 2014-10-15 Pedro Alves <palves@redhat.com>
1777
1778 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1779 (breakpoint_inserted_here_p): ... here. Remove special case for
1780 software single-step breakpoints.
1781 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1782 (software_breakpoint_inserted_here_p): ... here. Remove special
1783 case for software single-step breakpoints.
1784 (bp_target_info_copy_insertion_state)
1785 (deprecated_insert_raw_breakpoint)
1786 (deprecated_remove_raw_breakpoint): Delete functions.
1787 * breakpoint.h (deprecated_insert_raw_breakpoint)
1788 (deprecated_remove_raw_breakpoint): Remove declarations.
1789
1790 2014-10-15 Pedro Alves <palves@redhat.com>
1791
1792 PR breakpoints/9649
1793 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1794 Delete array globals.
1795 (single_step_breakpoints): New global.
1796 (breakpoint_xfer_memory): Remove special handling for single-step
1797 breakpoints.
1798 (update_breakpoints_after_exec): Delete bp_single_step
1799 breakpoints.
1800 (detach_breakpoints): Remove special handling for single-step
1801 breakpoints.
1802 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1803 (bpstat_stop_status): Add comment.
1804 (bpstat_what, bptype_string, print_one_breakpoint_location)
1805 (adjust_breakpoint_address, init_bp_location): Handle
1806 bp_single_step.
1807 (new_single_step_breakpoint): New function.
1808 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1809 handling for single-step breakpoints.
1810 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1811 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1812 Rewrite.
1813 (detach_single_step_breakpoints, find_single_step_breakpoint):
1814 Delete functions.
1815 (breakpoint_has_location_inserted_here): New function.
1816 (single_step_breakpoint_inserted_here_p): Rewrite.
1817 * breakpoint.h: Remove FIXME.
1818 (enum bptype) <bp_single_step>: New enum value.
1819 (insert_single_step_breakpoint): Update comment.
1820 * infrun.c (resume_cleanups)
1821 (delete_step_thread_step_resume_breakpoint): Remove single-step
1822 breakpoints.
1823 (fetch_inferior_event): Install a cleanup that removes infrun
1824 breakpoints.
1825 (switch_back_to_stepped_thread) <expect thread advanced also>:
1826 Clear step-over info.
1827
1828 2014-10-15 Pedro Alves <palves@redhat.com>
1829
1830 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1831 (delete_thread_infrun_breakpoints): New function, with parts
1832 salvaged from delete_step_resume_breakpoint_callback.
1833 (delete_step_thread_step_resume_breakpoint): Delete.
1834 (for_each_just_stopped_thread_callback_func): New typedef.
1835 (for_each_just_stopped_thread): New function.
1836 (delete_just_stopped_threads_infrun_breakpoints): New function.
1837 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1838 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1839 ... this. Adjust.
1840 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1841
1842 2014-10-15 Pedro Alves <palves@redhat.com>
1843
1844 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1845 trying to step past a non-steppable watchpoint.
1846 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1847 field.
1848 * infrun.c (struct step_over_info): Add new field
1849 'nonsteppable_watchpoint_p' and adjust comments.
1850 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1851 Adjust.
1852 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1853 (stepping_past_nonsteppable_watchpoint): New function.
1854 (step_over_info_valid_p): Also return true if stepping past a
1855 nonsteppable watchpoint.
1856 (proceed): Adjust call to set_step_over_info. Remove reference to
1857 init_infwait_state.
1858 (init_wait_for_inferior): Remove reference to init_infwait_state.
1859 (waiton_ptid): Delete global.
1860 (struct execution_control_state)
1861 <stepped_after_stopped_by_watchpoint>: Delete field.
1862 (wait_for_inferior, fetch_inferior_event): Always pass
1863 minus_one_ptid to target_wait.
1864 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1865 field.
1866 (init_infwait_state): Delete function.
1867 (handle_inferior_event): Remove infwait_state handling.
1868 (handle_signal_stop) <watchpoints handling>: Adjust after
1869 stepped_after_stopped_by_watchpoint removal. Don't remove
1870 breakpoints here nor set infwait_state. Set the thread's
1871 stepping_over_watchpoint flag, and call keep_going instead.
1872 (keep_going): Handle stepping_over_watchpoint. Adjust
1873 set_step_over_info calls.
1874 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1875 function.
1876
1877 2014-10-15 Pedro Alves <palves@redhat.com>
1878
1879 * infrun.c (step_over_info_valid_p): New function.
1880 (resume): Use step_over_info_valid_p instead of checking the
1881 threads's trap_expected flag.
1882
1883 2014-10-15 Doug Evans <dje@google.com>
1884 Walfred Tedeschi <walfred.tedeschi@intel.com>
1885
1886 PR python/17364
1887 * python/lib/gdb/__init__.py (packages): Add "printer".
1888 * python/lib/gdb/command/bound_registers.py: Moved to ...
1889 * python/lib/gdb/printer/bound_registers.py: ... here.
1890 Add printer to global set of builtin printers. Rename printer from
1891 "bound" to "mpx_bound128".
1892 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1893 registered as global "builtin" printer.
1894 (add_builtin_pretty_printer): New function.
1895 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1896 gdb/printer/__init__.py.
1897
1898 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1899
1900 * Makefile.in (SFILES): Remove d-support.c.
1901 (COMMON_OBS): Remove d-support.o.
1902 * d-lang.h (d_parse_symbol): Remove declaration.
1903 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1904 * d-support.c: Remove file.
1905
1906 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1907
1908 * gdb/infrun.c (process_event_stop_test): Apply
1909 gdbarch_addr_bits_remove to longjmp resume address.
1910
1911 2014-10-15 Pedro Alves <palves@redhat.com>
1912
1913 * regformats/microblaze.dat: Delete file.
1914
1915 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1916
1917 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1918 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1919
1920 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1921
1922 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1923 as non-trivial.
1924
1925 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1926
1927 PR c++/13403
1928 PR c++/15154
1929 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1930 with qualified args.
1931
1932 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1933
1934 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1935 of the case where the second operand is a pointer.
1936 <BINOP_SUB>: Likewise.
1937
1938 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1939
1940 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1941 only if it is not NULL.
1942 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1943 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1944 (struct probe_ops) <clear_semaphore>: Likewise.
1945 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1946 not NULL.
1947 (stop_tracing): Likewise, for clear_semaphore.
1948
1949 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1950
1951 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1952 using language_c, instead of current_language.
1953
1954 2014-10-13 Doug Evans <dje@google.com>
1955
1956 * python/py-objfile.c (objfpy_initialize): New function.
1957 (objfpy_new, objfile_to_objfile_object): Call it.
1958 * python/py-progspace.c (pspy_initialize): New function.
1959 (pspy_new, pspace_to_pspace_object): Call it.
1960
1961 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1962 Jan Kratochvil <jan.kratochvil@redhat.com>
1963
1964 Fix "save breakpoints" for "catch" command.
1965 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1966 newline.
1967
1968 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1969
1970 Fix "save breakpoints" for "disable $bpnum" command.
1971 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1972
1973 2014-10-10 Pedro Alves <palves@redhat.com>
1974
1975 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1976 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1977 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1978 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1979 and been removed.
1980 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1981 * configure.ac: Remove references to IRIX.
1982 * configure.host: Add *-*-irix* to the obsolete hosts section.
1983 Remove all other references to irix.
1984 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1985 Delete files.
1986
1987 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1988
1989 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1990 isn't valid, release the tdesc arch data and return NULL.
1991
1992 2014-10-10 Pedro Alves <palves@redhat.com>
1993
1994 * linux-tdep.c: Include observer.h.
1995 (linux_inferior_data): New global.
1996 (struct linux_info): New structure.
1997 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1998 (get_linux_inferior_data): New functions.
1999 (linux_vsyscall_range): Rename to ...
2000 (linux_vsyscall_range_raw): ... this.
2001 (linux_vsyscall_range): New function; handles caching.
2002 (_initialize_linux_tdep): Register linux_inferior_data. Install
2003 inferior_exit and inferior_appeared observers.
2004
2005 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2006 Pedro Alves <palves@redhat.com>
2007
2008 PR symtab/14466
2009 * solib-svr4.c (svr4_read_so_list): Rename to ...
2010 (svr4_current_sos_1): ... this and change the function comment.
2011 (svr4_current_sos): New function.
2012
2013 2014-10-10 Pedro Alves <palves@redhat.com>
2014
2015 * arch-utils.c (default_vsyscall_range): New function.
2016 * arch-utils.h (default_vsyscall_range): New declaration.
2017 * gdbarch.sh (vsyscall_range): New hook.
2018 * gdbarch.h, gdbarch.c: Regenerate.
2019 * linux-tdep.c (linux_vsyscall_range): New function.
2020 (linux_init_abi): Install linux_vsyscall_range as
2021 vsyscall_range gdbarch hook.
2022 * memrange.c (address_in_mem_range): New function.
2023 * memrange.h (address_in_mem_range): New declaration.
2024 * symfile-mem.c (find_vdso_size): Delete function.
2025 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2026
2027 2014-10-10 Pedro Alves <palves@redhat.com>
2028
2029 * infrun.c (normal_stop): Fix typo in comment.
2030
2031 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2032
2033 PR tdep/9390
2034 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2035 typo when using logical AND to determine instruction type.
2036
2037 2014-10-09 Yao Qi <yao@codesourcery.com>
2038
2039 * infrun.c (handle_signal_stop): Remove local variable
2040 'printed'.
2041
2042 2014-10-08 Stan Shebs <stan@codesourcery.com>
2043
2044 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2045
2046 2014-10-08 Gary Benson <gbenson@redhat.com>
2047
2048 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2049
2050 2014-10-08 Gary Benson <gbenson@redhat.com>
2051
2052 * common/common-defs.h: Include common-exceptions.h.
2053 * exceptions.h: Do not include common-exceptions.h.
2054
2055 2014-10-08 Gary Benson <gbenson@redhat.com>
2056
2057 * common/common-defs.h: Include cleanups.h.
2058 * common/common-exceptions.c: Do not include cleanups.h.
2059 * utils.h: Likewise.
2060
2061 2014-10-08 Gary Benson <gbenson@redhat.com>
2062
2063 * ada-lang.c: Do not include exceptions.h.
2064 * ada-valprint.c: Likewise.
2065 * amd64-tdep.c: Likewise.
2066 * auto-load.c: Likewise.
2067 * block.c: Likewise.
2068 * break-catch-throw.c: Likewise.
2069 * breakpoint.c: Likewise.
2070 * btrace.c: Likewise.
2071 * c-lang.c: Likewise.
2072 * cli/cli-cmds.c: Likewise.
2073 * cli/cli-interp.c: Likewise.
2074 * cli/cli-script.c: Likewise.
2075 * completer.c: Likewise.
2076 * corefile.c: Likewise.
2077 * corelow.c: Likewise.
2078 * cp-abi.c: Likewise.
2079 * cp-support.c: Likewise.
2080 * cp-valprint.c: Likewise.
2081 * darwin-nat.c: Likewise.
2082 * dwarf2-frame-tailcall.c: Likewise.
2083 * dwarf2-frame.c: Likewise.
2084 * dwarf2loc.c: Likewise.
2085 * dwarf2read.c: Likewise.
2086 * eval.c: Likewise.
2087 * event-loop.c: Likewise.
2088 * event-top.c: Likewise.
2089 * f-valprint.c: Likewise.
2090 * frame-unwind.c: Likewise.
2091 * frame.c: Likewise.
2092 * gdbtypes.c: Likewise.
2093 * gnu-v2-abi.c: Likewise.
2094 * gnu-v3-abi.c: Likewise.
2095 * guile/scm-auto-load.c: Likewise.
2096 * guile/scm-breakpoint.c: Likewise.
2097 * guile/scm-cmd.c: Likewise.
2098 * guile/scm-frame.c: Likewise.
2099 * guile/scm-lazy-string.c: Likewise.
2100 * guile/scm-param.c: Likewise.
2101 * guile/scm-symbol.c: Likewise.
2102 * guile/scm-type.c: Likewise.
2103 * hppa-hpux-tdep.c: Likewise.
2104 * i386-tdep.c: Likewise.
2105 * inf-loop.c: Likewise.
2106 * infcall.c: Likewise.
2107 * infcmd.c: Likewise.
2108 * infrun.c: Likewise.
2109 * interps.c: Likewise.
2110 * interps.h: Likewise.
2111 * jit.c: Likewise.
2112 * linespec.c: Likewise.
2113 * linux-nat.c: Likewise.
2114 * linux-thread-db.c: Likewise.
2115 * m32r-rom.c: Likewise.
2116 * main.c: Likewise.
2117 * memory-map.c: Likewise.
2118 * mi/mi-cmd-break.c: Likewise.
2119 * mi/mi-cmd-stack.c: Likewise.
2120 * mi/mi-interp.c: Likewise.
2121 * mi/mi-main.c: Likewise.
2122 * monitor.c: Likewise.
2123 * nto-procfs.c: Likewise.
2124 * objc-lang.c: Likewise.
2125 * p-valprint.c: Likewise.
2126 * parse.c: Likewise.
2127 * ppc-linux-tdep.c: Likewise.
2128 * printcmd.c: Likewise.
2129 * probe.c: Likewise.
2130 * python/py-auto-load.c: Likewise.
2131 * python/py-breakpoint.c: Likewise.
2132 * python/py-cmd.c: Likewise.
2133 * python/py-finishbreakpoint.c: Likewise.
2134 * python/py-frame.c: Likewise.
2135 * python/py-framefilter.c: Likewise.
2136 * python/py-function.c: Likewise.
2137 * python/py-gdb-readline.c: Likewise.
2138 * python/py-inferior.c: Likewise.
2139 * python/py-infthread.c: Likewise.
2140 * python/py-lazy-string.c: Likewise.
2141 * python/py-linetable.c: Likewise.
2142 * python/py-param.c: Likewise.
2143 * python/py-prettyprint.c: Likewise.
2144 * python/py-symbol.c: Likewise.
2145 * python/py-type.c: Likewise.
2146 * python/py-value.c: Likewise.
2147 * python/python-internal.h: Likewise.
2148 * python/python.c: Likewise.
2149 * record-btrace.c: Likewise.
2150 * record-full.c: Likewise.
2151 * regcache.c: Likewise.
2152 * remote-fileio.c: Likewise.
2153 * remote-mips.c: Likewise.
2154 * remote.c: Likewise.
2155 * rs6000-aix-tdep.c: Likewise.
2156 * rs6000-nat.c: Likewise.
2157 * skip.c: Likewise.
2158 * solib-darwin.c: Likewise.
2159 * solib-dsbt.c: Likewise.
2160 * solib-frv.c: Likewise.
2161 * solib-ia64-hpux.c: Likewise.
2162 * solib-spu.c: Likewise.
2163 * solib-svr4.c: Likewise.
2164 * solib.c: Likewise.
2165 * spu-tdep.c: Likewise.
2166 * stack.c: Likewise.
2167 * stap-probe.c: Likewise.
2168 * symfile-mem.c: Likewise.
2169 * symmisc.c: Likewise.
2170 * target.c: Likewise.
2171 * thread.c: Likewise.
2172 * top.c: Likewise.
2173 * tracepoint.c: Likewise.
2174 * tui/tui-interp.c: Likewise.
2175 * typeprint.c: Likewise.
2176 * utils.c: Likewise.
2177 * valarith.c: Likewise.
2178 * valops.c: Likewise.
2179 * valprint.c: Likewise.
2180 * value.c: Likewise.
2181 * varobj.c: Likewise.
2182 * windows-nat.c: Likewise.
2183 * xml-support.c: Likewise.
2184
2185 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2186
2187 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2188 name implies.
2189 (extended_mips16_next_pc): Update accordingly.
2190
2191 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2192
2193 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2194 function.
2195 (micromips_instruction_is_compact_branch): Likewise.
2196 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2197 or a compact jump, reaching a jump delay slot, or seeing a
2198 second non-prologue instruction.
2199 (micromips_scan_prologue): Also terminate scanning upon seeing a
2200 compact branch or jump, or reaching a branch or jump delay slot.
2201 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2202 or jump delay slot, or seeing a second non-prologue instruction.
2203 (mips32_instruction_has_delay_slot): Retain instruction
2204 examination code only, update arguments accordingly and move
2205 instruction fetch pieces to...
2206 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2207 (micromips_instruction_has_delay_slot): Likewise and to...
2208 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2209 (mips16_instruction_has_delay_slot): Likewise and to...
2210 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2211 (mips_single_step_through_delay): Update accordingly.
2212 (mips_adjust_breakpoint_address): Likewise.
2213
2214 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2215
2216 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2217 !mustbe32 also return 1 for 32-bit instructions.
2218 (mips16_instruction_has_delay_slot): Likewise. Add an
2219 explanatory comment.
2220
2221 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2222
2223 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2224 symbols special.
2225
2226 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2227
2228 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2229 update comments.
2230 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2231 for the breakpoint's address. Don't preinitialize `placed_size'.
2232 (insert_bp_location): Set `reqstd_address' rather than
2233 `placed_address'.
2234 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2235 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2236 address.
2237 (bkpt_remove_location): Likewise.
2238 (deprecated_insert_raw_breakpoint): Likewise.
2239 (deprecated_remove_raw_breakpoint): Likewise.
2240 (find_single_step_breakpoint): Likewise.
2241 * mem-break.c (default_memory_insert_breakpoint): Use
2242 `reqstd_address' for the breakpoint's address. Don't set
2243 `placed_address' or `placed_size' if breakpoint contents couldn't
2244 have been determined.
2245 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2246 the breakpoint's address.
2247 (remote_insert_hw_breakpoint): Likewise. Don't set
2248 `placed_address' or `placed_size' if breakpoint couldn't have been
2249 set.
2250 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2251 `reqstd_address' for the breakpoint's address.
2252 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2253 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2254 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2255 * microblaze-linux-tdep.c
2256 (microblaze_linux_memory_remove_breakpoint): Likewise.
2257 * monitor.c (monitor_insert_breakpoint): Likewise.
2258 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2259 (procfs_insert_hw_breakpoint): Likewise.
2260 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2261 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2262 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2263 * remote-mips.c (mips_insert_breakpoint): Likewise.
2264 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2265
2266 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2267
2268 * valops.c (value_assign): Check for bit field assignments
2269 before calling architecture-specific register value
2270 conversion functions.
2271
2272 2014-10-03 Pierre Muller <muller@sourceware.org>
2273
2274 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2275
2276 2014-10-02 Pedro Alves <palves@redhat.com>
2277
2278 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2279 threads_are_executing.
2280 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2281 describing comment.
2282 * gdbthread.h (threads_are_executing): Declare.
2283 (handle_signal_stop) <random signals>: Don't print about the
2284 signal here if stopping.
2285 (end_stepping_range): Don't notify observers here.
2286 (normal_stop): Update the thread list. If stopped by a random
2287 signal or a stepping range ended, notify observers.
2288 * thread.c (threads_executing): New global.
2289 (init_thread_list): Clear 'threads_executing'.
2290 (set_executing): Set or clear 'threads_executing'.
2291 (threads_are_executing): New function.
2292 (update_threads_executing): New function.
2293 (update_thread_list): Use it.
2294
2295 2014-10-02 Pedro Alves <palves@redhat.com>
2296
2297 PR breakpoints/17431
2298 * breakpoint.c (update_breakpoints_after_exec): Don't create
2299 overlay, longjmp, std terminate nor exception breakpoints here.
2300
2301 2014-10-02 Pedro Alves <palves@redhat.com>
2302
2303 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2304 Adjust comments.
2305 * inferior.c (find_inferior_for_program_space): Give preference to
2306 the current inferior.
2307 * inferior.h (find_inferior_for_program_space): Update comment.
2308 * progspace.c (switch_to_program_space_and_thread): Prefer the
2309 current inferior if it's bound to the program space requested. If
2310 the inferior found doesn't have a PID yet, don't bother looking up
2311 a thread.
2312 * progspace.h (switch_to_program_space_and_thread): Adjust
2313 comment.
2314 * thread.c (any_thread_of_process, any_live_thread_of_process):
2315 Give preference to the current thread.
2316
2317 2014-10-01 Pedro Alves <palves@redhat.com>
2318
2319 * breakpoint.c (insert_bp_location): Error out if inserting a
2320 software breakpoint at a read-only address.
2321 * target.c (memory_xfer_check_region): New function, factored out
2322 from ...
2323 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2324 ULONGEST.
2325 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2326 against the memory region attributes.
2327
2328 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2329
2330 * NEWS: Announce new exit-code field in -list-thread-groups
2331 output.
2332 * inferior.c (exit_inferior_1): Don't clear exit code.
2333 (inferior_appeared): Clear exit code.
2334 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2335 code.
2336
2337 2014-10-01 Pedro Alves <palves@redhat.com>
2338
2339 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2340 GENERATED" along with emacs/vi read-only markers.
2341 * regformats/aarch64.dat: Regenerate.
2342 * regformats/arm-with-iwmmxt.dat: Regenerate.
2343 * regformats/arm-with-neon.dat: Regenerate.
2344 * regformats/arm-with-vfpv2.dat: Regenerate.
2345 * regformats/arm-with-vfpv3.dat: Regenerate.
2346 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2347 * regformats/i386/amd64-avx.dat: Regenerate.
2348 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2349 * regformats/i386/amd64-avx512.dat: Regenerate.
2350 * regformats/i386/amd64-linux.dat: Regenerate.
2351 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2352 * regformats/i386/amd64-mpx.dat: Regenerate.
2353 * regformats/i386/amd64.dat: Regenerate.
2354 * regformats/i386/i386-avx-linux.dat: Regenerate.
2355 * regformats/i386/i386-avx.dat: Regenerate.
2356 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2357 * regformats/i386/i386-avx512.dat: Regenerate.
2358 * regformats/i386/i386-linux.dat: Regenerate.
2359 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2360 * regformats/i386/i386-mmx.dat: Regenerate.
2361 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2362 * regformats/i386/i386-mpx.dat: Regenerate.
2363 * regformats/i386/i386.dat: Regenerate.
2364 * regformats/i386/x32-avx-linux.dat: Regenerate.
2365 * regformats/i386/x32-avx.dat: Regenerate.
2366 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2367 * regformats/i386/x32-avx512.dat: Regenerate.
2368 * regformats/i386/x32-linux.dat: Regenerate.
2369 * regformats/i386/x32.dat: Regenerate.
2370 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2371 * regformats/mips-dsp-linux.dat: Regenerate.
2372 * regformats/mips-linux.dat: Regenerate.
2373 * regformats/mips64-dsp-linux.dat: Regenerate.
2374 * regformats/mips64-linux.dat: Regenerate.
2375 * regformats/nios2-linux.dat: Regenerate.
2376 * regformats/rs6000/powerpc-32.dat: Regenerate.
2377 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2378 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2379 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2380 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2381 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2382 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2383 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2384 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2385 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2386 * regformats/s390-linux32.dat: Regenerate.
2387 * regformats/s390-linux32v1.dat: Regenerate.
2388 * regformats/s390-linux32v2.dat: Regenerate.
2389 * regformats/s390-linux64.dat: Regenerate.
2390 * regformats/s390-linux64v1.dat: Regenerate.
2391 * regformats/s390-linux64v2.dat: Regenerate.
2392 * regformats/s390-te-linux64.dat: Regenerate.
2393 * regformats/s390x-linux64.dat: Regenerate.
2394 * regformats/s390x-linux64v1.dat: Regenerate.
2395 * regformats/s390x-linux64v2.dat: Regenerate.
2396 * regformats/s390x-te-linux64.dat: Regenerate.
2397 * regformats/tic6x-c62x-linux.dat: Regenerate.
2398 * regformats/tic6x-c62x.dat: Regenerate.
2399 * regformats/tic6x-c64x-linux.dat: Regenerate.
2400 * regformats/tic6x-c64x.dat: Regenerate.
2401 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2402 * regformats/tic6x-c64xp.dat: Regenerate.
2403
2404 2014-10-01 Pedro Alves <palves@redhat.com>
2405
2406 * features/Makefile: Update comments.
2407 (XMLTOC): List all xml files we build C files from.
2408 (clean-cfiles): New rule.
2409
2410 2014-10-01 Pedro Alves <palves@redhat.com>
2411
2412 * features/i386/amd64-avx512-linux.c: Regenerate.
2413 * features/i386/amd64-avx512.c: Regenerate.
2414 * features/i386/x32-avx512-linux.c: Regenerate.
2415 * features/i386/x32-avx512.c: Regenerate.
2416
2417 2014-10-01 Pedro Alves <palves@redhat.com>
2418
2419 * features/Makefile (WHICH): Remove arm-with-m,
2420 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2421
2422 2014-10-01 Pedro Alves <palves@redhat.com>
2423
2424 * features/Makefile (clean): New rule.
2425
2426 2014-10-01 Pedro Alves <palves@redhat.com>
2427
2428 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2429 (zmm14h): Add missing end quotes.
2430
2431 2014-10-01 Pedro Alves <palves@redhat.com>
2432
2433 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2434 * features/aarch64.c: Regenerate.
2435
2436 2014-09-30 Don Breazeal <donb@codesourcery.com>
2437
2438 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2439 code so as to work with follow_fork_inferior.
2440 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2441 (inf_ttrace_create_inferior): Remove reference to
2442 inf_ttrace_vfork_ppid.
2443 (inf_ttrace_attach): Ditto.
2444 (inf_ttrace_detach): Ditto.
2445 (inf_ttrace_kill): Use current_inferior instead of
2446 inf_ttrace_vfork_ppid.
2447 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2448 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2449 inferior away from the parent.
2450 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2451 target_follow_fork.
2452 (follow_fork_inferior): New function.
2453 (follow_inferior_reset_breakpoints): Make function static.
2454 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2455 * linux-nat.c (linux_child_follow_fork): Move target-independent
2456 code to infrun.c:follow_fork_inferior.
2457
2458 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2459
2460 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2461 * gdbarch.c: Regenerate.
2462 * gdbarch.h: Likewise.
2463 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2464 gdbarch method 'regset_from_core_section'.
2465 (get_core_register_section): Remove handling for the case that
2466 regset == NULL and regset_from_core_section is defined.
2467 (get_core_registers): Drop check for deleted method.
2468 * procfs.c (procfs_do_thread_registers): Adjust comment.
2469
2470 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2471
2472 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2473 (linux_nat_make_corefile_notes): Remove.
2474 (linux_target_install_ops): Do not set target method
2475 'make_corefile_notes'.
2476 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2477 Remove field.
2478 (linux_corefile_thread_callback): Instead of args->collect, call
2479 linux_collect_thread_registers.
2480 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2481 NULL unless there is a regset iterator.
2482 (linux_make_corefile_notes_1): Remove.
2483 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2484 by linux_make_corefile_notes.
2485 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2486
2487 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2488
2489 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2490 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2491 Remove.
2492 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2493
2494 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2495
2496 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2497 (xtensa_iterate_over_regset_sections): New.
2498 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2499
2500 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2501
2502 * vax-tdep.c (vax_regset_from_core_section): Remove.
2503 (vax_iterate_over_regset_sections): New.
2504 (vax_gdbarch_init): Adjust gdbarch initialization.
2505
2506 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2507
2508 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2509 (tilegx_regset_from_core_section): Remove.
2510 (tilegx_iterate_over_regset_sections): New.
2511 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2512
2513 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2514
2515 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2516 (sparc_iterate_over_regset_sections): New.
2517 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2518 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2519 targets.
2520 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2521 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2522 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2523 target method 'make_corefile_notes'.
2524
2525 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2526
2527 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2528 'sizeof_gregset' and 'sizeof_fpregset'.
2529 * sh-tdep.c (sh_regset_from_core_section): Remove.
2530 (sh_iterate_over_regset_sections): New.
2531 (sh_gdbarch_init): Adjust gdbarch initialization.
2532 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2533 sizeof_fpregset.
2534 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2535 'sizeof_gregset'.
2536
2537 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2538
2539 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2540 (score7_linux_iterate_over_regset_sections): New.
2541 (score_gdbarch_init): Adjust gdbarch initialization.
2542
2543 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2544
2545 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2546 FreeBSD targets.
2547 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2548 method 'make_corefile_notes'.
2549 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2550 (ppcfbsd_regset_from_core_section): Remove.
2551 (ppcfbsd_iterate_over_regset_sections): New.
2552 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2553 initialization.
2554 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2555 (ppcnbsd_iterate_over_regset_sections): New.
2556 (ppcnbsd_init_abi): Adjust.
2557 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2558 (ppcobsd_iterate_over_regset_sections): New.
2559 (ppcobsd_init_abi): Adjust.
2560 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2561 (rs6000_aix_iterate_over_regset_sections): New.
2562 (rs6000_aix_init_osabi): Adjust.
2563
2564 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2565
2566 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2567 (nios2_regset_from_core_section): Remove.
2568 (nios2_iterate_over_regset_sections): New.
2569 (nios2_linux_init_abi): Adjust gdbarch initialization.
2570
2571 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2572
2573 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2574 (am33_iterate_over_regset_sections): New.
2575 (am33_linux_init_osabi): Adjust gdbarch initialization.
2576
2577 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2578
2579 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2580 (mips_linux_iterate_over_regset_sections): New.
2581 (mips_linux_init_abi): Adjust gdbarch initialization.
2582 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2583 (mips64obsd_iterate_over_regset_sections): New.
2584 (mips64obsd_init_abi): Adjust.
2585 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2586 (mipsnbsd_iterate_over_regset_sections): New.
2587 (mipsnbsd_init_abi): Adjust.
2588
2589 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2590
2591 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2592 (m88k_iterate_over_regset_sections): New.
2593 (m88k_gdbarch_init): Adjust gdbarch initialization.
2594
2595 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2596
2597 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2598 (ia64_linux_iterate_over_regset_sections): New.
2599 (ia64_linux_init_abi): Adjust gdbarch initialization.
2600
2601 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602
2603 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2604 (m68kbsd_iterate_over_regset_sections): New.
2605 (m68kbsd_init_abi): Adjust gdbarch initialization.
2606 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2607 (m68k_linux_iterate_over_regset_sections): New.
2608 (m68k_linux_init_abi): Adjust gdbarch initialization.
2609
2610 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2611
2612 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2613 (m32r_linux_regset_from_core_section): Remove.
2614 (m32r_linux_iterate_over_regset_sections): New.
2615 (m32r_linux_init_abi): Adjust gdbarch initialization.
2616
2617 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2618
2619 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2620 (amd64obsd_iterate_over_regset_sections): New.
2621 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2622 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2623 Remove.
2624 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2625 regset_from_core_section initialization.
2626 * i386-tdep.c (i386_regset_from_core_section): Remove.
2627 (i386_iterate_over_regset_sections): New.
2628 (i386_gdbarch_init): Adjust gdbarch initialization.
2629 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2630 (i386_iterate_over_regset_sections): New prototype.
2631 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2632 Remove.
2633 (i386obsd_aout_iterate_over_regset_sections): New.
2634 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2635 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2636 targets.
2637 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2638 (amd64fbsd_init_abi): Call fbsd_init_abi.
2639 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2640 (i386fbsd4_init_abi): Call fbsd_init_abi.
2641 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2642 target method 'make_corefile_notes'.
2643 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2644
2645 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2646
2647 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2648 (hppa_hpux_iterate_over_regset_sections): New.
2649 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2650 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2651 (hppa_linux_iterate_over_regset_sections): New.
2652 (hppa_linux_init_abi): Adjust.
2653 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2654 (hppanbsd_iterate_over_regset_sections): New.
2655 (hppanbsd_init_abi): Adjust.
2656 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2657 (hppaobsd_iterate_over_regset_sections): New.
2658 (hppaobsd_init_abi): Adjust.
2659
2660 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2661
2662 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2663 (frv_linux_iterate_over_regset_sections): New.
2664 (frv_linux_init_abi): Adjust gdbarch initialization.
2665
2666 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2667
2668 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2669 (armbsd_iterate_over_regset_sections): New prototype.
2670 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2671 (armbsd_iterate_over_regset_sections): New.
2672 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2673 initialization.
2674
2675 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2676
2677 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2678 (alpha_linux_iterate_over_regset_sections): New.
2679 (alpha_linux_init_abi): Adjust gdbarch initialization.
2680 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2681 prototype.
2682 (alphanbsd_iterate_over_regset_sections): New prototype.
2683
2684 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2685
2686 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2687 Remove.
2688 (aarch64_linux_iterate_over_regset_sections): New.
2689 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2690
2691 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2692
2693 * fbsd-tdep.c: New file.
2694 * fbsd-tdep.h: New file.
2695 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2696 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2697 (ALLDEPFILES): Add fbsd-tdep.c.
2698
2699 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2700
2701 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2702 parameter.
2703 * gdbarch.h: Regenerate.
2704 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2705 iterator.
2706 (get_core_register_section): Add parameter 'regset' and use it, if
2707 set. Add parameter 'min_size' and verify the bfd section size
2708 against it.
2709 (get_core_registers_cb): Add parameter 'regset' and pass it to
2710 get_core_register section. For the "standard" register sections
2711 ".reg" and ".reg2", set an appropriate default for human_name.
2712 (get_core_registers): Don't abort when the gdbarch has an iterator
2713 but no regset_from_core_section. Add NULL/0 for parameters
2714 'regset'/'min_size' in calls to get_core_register_section.
2715 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2716 'regset' and use it instead of calling the
2717 regset_from_core_section gdbarch method.
2718 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2719 * i386-tdep.c (i386_supply_xstateregset)
2720 (i386_collect_xstateregset, i386_xstateregset): Moved to
2721 i386-linux-tdep.c.
2722 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2723 .reg-xstate.
2724 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2725 core file support only if the regset iterator hasn't been set.
2726 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2727 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2728 Moved from i386-tdep.c and renamed to *_linux*.
2729 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2730 each callback invocation. Allow any .reg-xstate size when reading
2731 from a core file.
2732 * amd64-tdep.c (amd64_supply_xstateregset)
2733 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2734 amd64-linux-tdep.c.
2735 (amd64_regset_from_core_section): Remove.
2736 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2737 install an amd64-specific regset_from_core_section gdbarch method.
2738 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2739 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2740 Moved from amd64-tdep.c and renamed to *_linux*.
2741 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2742 to each callback invocation. Allow any .reg-xstate size when
2743 reading from a core file.
2744 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2745 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2746 each callback invocation.
2747 (arm_linux_init_abi): No longer set the regset_from_core_section
2748 gdbarch method.
2749 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2750 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2751 each callback invocation.
2752 (ppc_linux_init_abi): No longer set the regset_from_core_section
2753 gdbarch method.
2754 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2755 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2756 (s390_regset_from_core_section): Remove.
2757 (s390_iterate_over_regset_sections): Add regset parameter to each
2758 callback invocation.
2759 (s390_gdbarch_init): No longer set the regset_from_core_section
2760 gdbarch method. Drop initialization of deleted tdep fields.
2761
2762 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2763
2764 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2765 (amd64_linux_iterate_over_regset_sections): New.
2766 (amd64_linux_init_abi_common): Don't install the regset section
2767 list, but the new iterator in gdbarch.
2768 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2769 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2770 (arm_linux_iterate_over_regset_sections): ...here. New function.
2771 (arm_linux_init_abi): Set iterator instead of section list.
2772 * corelow.c (get_core_registers_cb): New function, logic moved
2773 from...
2774 (get_core_registers): ...loop body here. Use new iterator method
2775 instead of walking through the regset section list.
2776 * gdbarch.sh: Remove 'core_regset_sections'. New method
2777 'iterate_over_regset_sections'. New typedef
2778 'iterate_over_regset_sections_cb'.
2779 * gdbarch.c: Regenerate.
2780 * gdbarch.h: Likewise.
2781 * i386-linux-tdep.c (i386_linux_regset_sections)
2782 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2783 Remove.
2784 (i386_linux_iterate_over_regset_sections): New.
2785 (i386_linux_init_abi): Don't choose a regset section list, but
2786 install new iterator in gdbarch.
2787 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2788 (linux_collect_regset_section_cb): New function, logic moved
2789 from...
2790 (linux_collect_thread_registers): ...loop body here. Use iterator
2791 method instead of walking through list.
2792 (linux_make_corefile_notes_1): Check for presence of iterator
2793 method instead of regset section list.
2794 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2795 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2796 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2797 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2798 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2799 (ppc_linux_init_abi): Don't choose from above regset section
2800 lists, but install new iterator in gdbarch.
2801 * regset.h (struct core_regset_section): Remove.
2802 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2803 have_linux_v1, have_linux_v2, and have_tdb.
2804 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2805 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2806 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2807 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2808 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2809 (s390_iterate_over_regset_sections): ...here. New function. Use
2810 new tdep fields.
2811 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2812 regset section lists, but install new iterator.
2813
2814 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2815
2816 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2817
2818 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2819
2820 * progspace.c (print_program_space): Don't prune program spaces
2821 before printing them.
2822
2823 2014-09-25 Pedro Alves <palves@redhat.com>
2824
2825 * infrun.c (user_visible_resume_ptid): Don't check
2826 singlestep_breakpoints_inserted_p.
2827
2828 2014-09-25 Pedro Alves <palves@redhat.com>
2829
2830 * breakpoint.c (should_be_inserted): Add debug output.
2831
2832 2014-09-25 Pedro Alves <palves@redhat.com>
2833
2834 * infrun.c (stepping_past_instruction_at)
2835 (clear_exit_convenience_vars): Point at infrun.h instead of
2836 inferior.h.
2837 (handle_signal_stop): Fix typo.
2838
2839 2014-09-24 Yao Qi <yao@codesourcery.com>
2840
2841 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2842 bitmask.
2843
2844 2014-09-22 Gary Benson <gbenson@redhat.com>
2845
2846 * target.c (target_stop): Updated comment.
2847
2848 2014-09-22 Gary Benson <gbenson@redhat.com>
2849
2850 * target/target.h (target_stop_ptid): Renamed as...
2851 (target_stop_and_wait): New function. Updated comment.
2852 All uses updated.
2853 (target_continue_ptid): Renamed as...
2854 (target_continue_no_signal): New function. Updated comment.
2855 All uses updated.
2856
2857 2014-09-22 Pedro Alves <palves@redhat.com>
2858
2859 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2860 and "auto" merged.
2861 * breakpoint.c (enum ugll_insert_mode): New enum.
2862 (always_inserted_mode): Now a plain boolean.
2863 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2864 (breakpoints_always_inserted_mode): Delete.
2865 (breakpoints_should_be_inserted_now): New function.
2866 (insert_breakpoints): Pass UGLL_INSERT to
2867 update_global_location_list instead of calling
2868 insert_breakpoint_locations manually.
2869 (create_solib_event_breakpoint_1): New, factored out from ...
2870 (create_solib_event_breakpoint): ... this.
2871 (create_and_insert_solib_event_breakpoint): Use
2872 create_solib_event_breakpoint_1 instead of calling
2873 insert_breakpoint_locations manually.
2874 (update_global_location_list): Change parameter type from boolean
2875 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2876 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2877 (update_global_location_list_nothrow): Change parameter type from
2878 boolean to enum ugll_insert_mode.
2879 (_initialize_breakpoint): "breakpoint always-inserted" option is
2880 now a boolean command. Update help text.
2881 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2882 (breakpoints_should_be_inserted_now): New declaration.
2883 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2884 Remove breakpoints_always_inserted_mode check.
2885 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2886 * remote.c (remote_start_remote): Likewise.
2887
2888 2014-09-22 Pedro Alves <palves@redhat.com>
2889
2890 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2891 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2892 Instead, pass UGLL_INSERT to update_global_location_list.
2893 (update_global_location_list): Change parameter type from boolean
2894 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2895 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2896 (create_solib_event_breakpoint_1): New, factored out from ...
2897 (create_solib_event_breakpoint): ... this.
2898 (create_and_insert_solib_event_breakpoint): Use
2899 create_solib_event_breakpoint_1 instead of calling
2900 insert_breakpoint_locations manually.
2901 (update_global_location_list): Handle UGLL_INSERT.
2902
2903 2014-09-22 Pedro Alves <palves@redhat.com>
2904
2905 * breakpoint.c (enum ugll_insert_mode): New enum.
2906 (update_global_location_list)
2907 (update_global_location_list_nothrow): Change parameter type from
2908 boolean to enum ugll_insert_mode. All callers adjusted.
2909
2910 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2911
2912 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2913 SystemTap support in GDB.
2914
2915 2014-09-19 Don Breazeal <donb@codesourcery.com>
2916
2917 * linux-nat.c (linux_handle_extended_wait): Call
2918 linux_ptrace_get_extended_event.
2919 (wait_lwp): Call linux_is_extended_waitstatus.
2920 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2921 and linux_is_extended_waitstatus.
2922 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2923 linux_ptrace_get_extended_event.
2924 (linux_ptrace_get_extended_event): New function.
2925 (linux_is_extended_waitstatus): New function.
2926 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2927 (linux_is_extended_waitstatus): New declarations.
2928
2929 2014-09-19 Yao Qi <yao@codesourcery.com>
2930
2931 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2932 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2933 comments. Callers update.
2934 (dwarf_decode_lines): Likewise.
2935 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2936 comments. Skip the line table if 'lowpc' is greater than
2937 'address'. Don't check
2938 dwarf2_per_objfile->has_section_at_zero.
2939
2940 2014-09-18 Doug Evans <dje@google.com>
2941
2942 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2943 * python/py-symtab.c (stpy_get_producer): New function.
2944 (symtab_object_getset): Add "producer" attribute.
2945
2946 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2947
2948 PR gdb/17384
2949 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2950 (do_captured_read_memory_integer): Remove.
2951 (safe_read_memory_integer): Use target_read_memory directly instead
2952 of catching errors in do_captured_read_memory_integer.
2953
2954 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2955
2956 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2957 not gdb/doc.
2958
2959 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2960
2961 * objc-lang.c (find_implementation_from_class): Remove dead code.
2962
2963 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2964
2965 PR cli/7233
2966 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2967 "fprintf_unfiltered (gdb_stdlog...)".
2968
2969 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2970
2971 PR breakpoints/12526
2972 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2973 val_bitsize.
2974 * breakpoint.c (watch_command_1): Use these fields to retain
2975 bitfield information.
2976 (extract_bitfield_from_watchpoint_value): New function.
2977 (watchpoint_check): Use it.
2978 (update_watchpoint): Use it. Optimize the address and length of a
2979 HW watchpoint pointing to a bitfield.
2980 * value.h (unpack_value_bitfield): New prototype.
2981 * value.c (unpack_value_bitfield): Make extern.
2982
2983 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2984
2985 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2986 x86-dregs.o.
2987 * gnu-nat.c (inf_threads): New function.
2988 * gnu-nat.h (inf_threads_ftype): New typedef.
2989 (inf_threads): New declaration.
2990 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2991 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2992 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2993 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2994 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2995 (i386_gnu_dr_get_control): New functions.
2996 (reg_addr): New structure.
2997 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2998 i386 debugging register hooks.
2999 * NEWS: Mention this.
3000
3001 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3002
3003 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3004 vector data transfer instructions.
3005 (arm_record_coproc_data_proc): Updated.
3006
3007 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3008
3009 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3010 arm_record_exreg_ld_st_insn.
3011 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3012 load/store insns.
3013
3014 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3015
3016 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3017 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3018 processing instructions.
3019
3020 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3021
3022 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3023 for advance SIMD struct ld/st insn.
3024 (thumb2_record_decode_insn_handler): Replace stub handler with
3025 thumb2_record_asimd_struct_ld_st.
3026
3027 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3028
3029 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3030 for asimd, vfp and coprocessor insns.
3031 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3032 and coprocessor insns.
3033 (thumb2_record_coproc_insn): New function.
3034 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3035 handlers.
3036 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3037 opcode 110 insns.
3038
3039 2014-09-13 Doug Evans <xdje42@gmail.com>
3040
3041 * NEWS: Mention new "queue-signal" command.
3042 * infcmd.c (queue_signal_command): New function.
3043 (_initialize_infcmd): Add new queue-signal command.
3044
3045 2014-09-13 Doug Evans <xdje42@gmail.com>
3046
3047 * linux-nat.c (wait_lwp): Add debugging printf.
3048 (linux_nat_wait_1): Ditto.
3049
3050 2014-09-12 Pedro Alves <palves@redhat.com>
3051
3052 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3053 (create_and_insert_solib_event_breakpoint): New functions.
3054 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3055 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3056 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3057 (remove_dbx_link_breakpoint): Delete function.
3058 (insert_dbx_link_bpt_in_file): Use
3059 create_and_insert_solib_event_breakpoint instead of
3060 deprecated_insert_raw_breakpoint.
3061 (procfs_wait): Don't check whether we hit __dbx_link here.
3062 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3063 here.
3064 * solib-irix.c (base_breakpoint): Delete global.
3065 (disable_break): Delete function.
3066 (enable_break): Use create_solib_event_breakpoint
3067 instead of deprecated_insert_raw_breakpoint.
3068 (irix_solib_handle_event): New function.
3069 (irix_solib_create_inferior_hook): Don't run the target or disable
3070 the mapping-complete breakpoint here.
3071 (_initialize_irix_solib): Install irix_solib_handle_event as
3072 so_ops->handle_event hook.
3073
3074 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3075 Ulrich Weigand  <uweigand@de.ibm.com>
3076
3077 PR tdep/17379
3078 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3079 instead of read_memory_unsigned_integer.
3080
3081 2014-09-12 Gary Benson <gbenson@redhat.com>
3082
3083 * nat/linux-waitpid.c: Include common-defs.h.
3084 [GDBSERVER]: Add FIXME comment.
3085 [!GDBSERVER]: Don't include defs.h or signal.h.
3086 (linux_debug) [!GDBSERVER]: Remove empty block.
3087
3088 2014-09-12 Gary Benson <gbenson@redhat.com>
3089
3090 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3091 Don't include defs.h or server.h.
3092
3093 2014-09-12 Gary Benson <gbenson@redhat.com>
3094
3095 * nat/linux-btrace.c: Include common-defs.h.
3096 Don't include defs.h, server.h or gdbthread.h.
3097 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3098
3099 2014-09-12 Gary Benson <gbenson@redhat.com>
3100
3101 * common/agent.c: Include common-defs.h.
3102 Don't include defs.h or server.h.
3103 * common/buffer.c: Likewise.
3104 * common/common-debug.c: Likewise.
3105 * common/common-utils.c: Likewise.
3106 * common/errors.c: Likewise.
3107 * common/filestuff.c: Likewise.
3108 * common/format.c: Likewise.
3109 * common/gdb_vecs.c: Likewise.
3110 * common/print-utils.c: Likewise.
3111 * common/ptid.c: Likewise.
3112 * common/rsp-low.c: Likewise.
3113 * common/signals.c: Likewise.
3114 * common/vec.c: Likewise.
3115 * common/xml-utils.c: Likewise.
3116 * nat/linux-osdata.c: Likewise.
3117 * nat/linux-procfs.c: Likewise.
3118 * nat/linux-ptrace.c: Likewise.
3119 * nat/mips-linux-watch.c: Likewise.
3120 * target/waitstatus.c: Likewise.
3121
3122 2014-09-12 Tom Tromey <tromey@redhat.com>
3123 Gary Benson <gbenson@redhat.com>
3124
3125 * common/common-regcache.h: New file.
3126 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3127 * regcache.h: Include common-regcache.h.
3128 (regcache_read_pc): Don't declare.
3129 * regcache.c (get_thread_regcache_for_ptid): New function.
3130 * nat/linux-btrace.c: Don't include regcache.h.
3131 Include common-regcache.h.
3132 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3133
3134 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3135
3136 * regcache.h (struct regset): Declare.
3137
3138 2014-09-11 Pedro Alves <palves@redhat.com>
3139
3140 PR gdb/17347
3141 * main.c: Include "infrun.h".
3142 (catch_command_errors, catch_command_errors_const): Wait for the
3143 foreground command to complete.
3144 * top.c (maybe_wait_sync_command_done): New function, factored out
3145 from ...
3146 (maybe_wait_sync_command_done): ... here.
3147 * top.h (maybe_wait_sync_command_done): New declaration.
3148
3149 2014-09-11 Tom Tromey <tromey@redhat.com>
3150 Gary Benson <gbenson@redhat.com>
3151
3152 * common/symbol.h: New file.
3153 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3154 * minsyms.c (find_minimal_symbol_address): New function.
3155 * common/agent.c: Include common/symbol.h.
3156 [!GDBSERVER]: Don't include objfiles.h.
3157 (agent_look_up_symbols): Use find_minimal_symbol_address.
3158
3159 2014-09-11 Gary Benson <gbenson@redhat.com>
3160
3161 * target/target.h (target_stop_ptid, target_continue_ptid):
3162 Declare.
3163 * target.c (target_stop_ptid, target_continue_ptid): New
3164 functions.
3165 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3166 (agent_run_command): Always use target_stop_ptid and
3167 target_continue_ptid.
3168
3169 2014-09-11 Tom Tromey <tromey@redhat.com>
3170 Gary Benson <gbenson@redhat.com>
3171
3172 * target/target.h: New file.
3173 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3174 * target.h: Include target/target.h.
3175 (target_read_memory, target_write_memory): Don't declare.
3176 * target.c (target_read_uint32): New function.
3177 * common/agent.c: Include target/target.h.
3178 [!GDBSERVER]: Don't include target.h.
3179 (helper_thread_id): Type changed to uint32_t.
3180 (agent_get_helper_thread_id): Use target_read_uint32.
3181 (agent_run_command): Always use target_read_memory and
3182 target_write_memory.
3183 (agent_capability): Type changed to uint32_t.
3184 (agent_capability_check): Use target_read_uint32.
3185
3186 2014-09-11 Gary Benson <gbenson@redhat.com>
3187
3188 * common/common-debug.h (show_debug_regs): Declare.
3189 * common/common-debug.c (show_debug_regs): Define.
3190 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3191 all uses with show_debug_regs. Replace all uses that considered
3192 debug_hw_points as a multi-value integer with straight boolean
3193 uses.
3194 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3195 with show_debug_regs.
3196 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3197 all uses with show_debug_regs.
3198 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3199 uses with show_debug_regs.
3200
3201 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3202
3203 * findvar.c (address_from_register): Handle targets requiring
3204 a special conversion routine even for plain pointer types.
3205
3206 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3207
3208 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3209 (store_register): Do not call exec_one_dummy_insn.
3210
3211 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3212
3213 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3214 dereference it first. Use value_enclosing_type instead of
3215 value_type.
3216 (ada_array_length): Likewise.
3217
3218 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3219
3220 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3221 Adjust function implementation and documentation accordingly.
3222 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3223 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3224 Update call to ada_value_ptr_subscript.
3225
3226 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3227
3228 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3229 instead of VAL's type.
3230
3231 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3232
3233 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3234
3235 2014-09-09 Doug Evans <xdje42@gmail.com>
3236
3237 PR guile/17367
3238 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3239 last parameter to pkg-config, not first.
3240 * configure.ac: Pass --with-guile provided pkg-config path to
3241 GDB_GUILE_PROGRAM_NAMES.
3242 * configure: Regenerate.
3243
3244 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3245
3246 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3247 Bertazi".
3248
3249 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3250
3251 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3252 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3253 the list of sections determining GDB_OSABI_IRIX.
3254
3255 2014-09-09 James Hogan <james.hogan@imgtec.com>
3256
3257 * MAINTAINERS (Write After Approval): Add "James Hogan".
3258
3259 2014-09-09 James Hogan <james.hogan@imgtec.com>
3260
3261 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3262
3263 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3264
3265 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3266
3267 2014-09-08 Doug Evans <xdje42@gmail.com>
3268
3269 PR 17247
3270 * guile.c: #include <signal.h>.
3271 (_initialize_guile): Block SIGCHLD while initializing Guile.
3272
3273 Replaces the following, which is reverted.
3274
3275 2014-07-26 Doug Evans <xdje42@gmail.com>
3276
3277 PR 17185
3278 * configure.ac: Add check for header gc/gc.h.
3279 Add check for function setenv.
3280 * configure: Regenerate.
3281 * config.in: Regenerate.
3282 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3283
3284 2014-09-08 Doug Evans <xdje42@gmail.com>
3285
3286 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3287 with named constant. Fix style of pointer comparison.
3288 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3289
3290 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3291
3292 PR gdb/17035
3293 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3294 decide whether we display the command on "show user".
3295 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3296 printing command name.
3297 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3298 * cli/cli-decode.c (cli_user_command_p): Create helper function
3299 to verify whether cmd_list_element is a user-defined command.
3300
3301 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3302
3303 PR python/17355
3304 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3305 Fix goto out of TRY_CATCH.
3306
3307 2014-09-06 Doug Evans <xdje42@gmail.com>
3308 Tom Tromey <tromey@redhat.com>
3309
3310 PR 15276
3311 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3312 $_any_caller_matches.
3313 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3314 * python/lib/gdb/function/caller_is.py: New file.
3315
3316 2014-09-06 Doug Evans <xdje42@gmail.com>
3317
3318 * infcmd.c (program_info): Fix typo.
3319
3320 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3321
3322 PR gdb/17235
3323 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3324 'number'. New variable 'has_digit'. Rewrite code to deal with
3325 subexpressions on SDT probes.
3326
3327 2014-09-04 Pedro Alves <palves@redhat.com>
3328
3329 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3330 the input is only one character long.
3331
3332 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3333
3334 PR fortran/17237
3335 * f-valprint.c (f_val_print): Specify the correct print option to
3336 use when printing integer values.
3337
3338 2014-09-04 Gary Benson <gbenson@redhat.com>
3339
3340 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3341 Remove code to cope with LWPs wrapped as PIDs.
3342 Add assertions to ensure no wrapped LWPs are passed.
3343
3344 2014-09-04 Pedro Alves <palves@redhat.com>
3345
3346 * value.c (value_ranges_copy_adjusted): New function, factored out
3347 from ...
3348 (value_contents_copy_raw): ... here.
3349 (unpack_value_bits_as_long_1): Rename back to ...
3350 (unpack_bits_as_long): ... this. Remove 'original_value' and
3351 'result' parameters. Change return type to LONGEST.
3352 (unpack_value_bits_as_long): Delete.
3353 (unpack_value_field_as_long_1): Delete.
3354 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3355 (unpack_value_bitfield): New function.
3356 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3357 (value_fetch_lazy): Use unpack_value_bitfield.
3358 * value.h (unpack_value_bits_as_long): Delete declaration.
3359
3360 2014-09-03 Sasha Smundak <asmundak@google.com>
3361
3362 * python/py-frame.c (frapy_read_register): New function.
3363
3364 2014-09-03 James Hogan <james.hogan@imgtec.com>
3365
3366 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3367 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3368
3369 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3370
3371 PR python/16699
3372 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3373 function.
3374 (add_cmd): Set "completer_handle_brkchars" to NULL.
3375 * cli/cli-decode.h (struct cmd_list_element)
3376 <completer_handle_brkchars>: New field.
3377 * command.h (completer_ftype_void): New typedef.
3378 (set_cmd_completer_handle_brkchars): New prototype.
3379 * completer.c (set_gdb_completion_word_break_characters): New
3380 function.
3381 (complete_line_internal): Call "completer_handle_brkchars"
3382 callback from command.
3383 * completer.h: Include "command.h".
3384 (set_gdb_completion_word_break_characters): New prototype.
3385 * python/py-cmd.c (cmdpy_completer_helper): New function.
3386 (cmdpy_completer_handle_brkchars): New function.
3387 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3388 (cmdpy_init): Set completer_handle_brkchars to
3389 cmdpy_completer_handle_brkchars.
3390
3391 2014-09-03 Gary Benson <gbenson@redhat.com>
3392
3393 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3394 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3395 Loop conditions changed to equivalent form.
3396 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3397 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3398 ALL_DEBUG_ADDRESS_REGISTERS.
3399
3400 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3401
3402 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3403 description fix.
3404
3405 2014-09-02 Doug Evans <dje@google.com>
3406
3407 * typeprint.c (find_global_typedef): Fix comment.
3408
3409 2014-09-02 Gary Benson <gbenson@redhat.com>
3410
3411 * i386-nat.h: Renamed as...
3412 * x86-nat.h: New file. All type, function and variable name
3413 prefixes changed from "i386_" to "x86_". All references updated.
3414 * i386-nat.c: Renamed as...
3415 * x86-nat.c: New file. All type, function and variable name
3416 prefixes changed from "i386_" to "x86_". All references updated.
3417 * common/i386-xstate.h: Renamed as...
3418 * common/x86-xstate.h: New file. All type, function and variable
3419 name prefixes changed from "i386_" to "x86_". All references
3420 updated.
3421 * nat/i386-cpuid.h: Renamed as...
3422 * nat/x86-cpuid.h: New file. All type, function and variable name
3423 prefixes changed from "i386_" to "x86_". All references updated.
3424 * nat/i386-gcc-cpuid.h: Renamed as...
3425 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3426 name prefixes changed from "i386_" to "x86_". All references
3427 updated.
3428 * nat/i386-dregs.h: Renamed as...
3429 * nat/x86-dregs.h: New file. All type, function and variable name
3430 prefixes changed from "i386_" to "x86_". All references updated.
3431 * nat/i386-dregs.c: Renamed as...
3432 * nat/x86-dregs.c: New file. All type, function and variable name
3433 prefixes changed from "i386_" to "x86_". All references updated.
3434
3435 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3436
3437 * varobj.c (_initialize_varobj): Move to the end of file.
3438
3439 2014-08-29 Gary Benson <gbenson@redhat.com>
3440
3441 * common/common-exceptions.h: New file.
3442 * common/common-exceptions.c: Likewise.
3443 * Makefile.in (SFILES): Add common/common-exceptions.c.
3444 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3445 (COMMON_OBS): Add common-exceptions.o.
3446 (common-exceptions.o): New rule.
3447 * exceptions.h (common-exceptions.h): Include.
3448 (gdb_setjmp.h): Do not include.
3449 (return_reason): Moved to common-exceptions.h.
3450 (enum return_reason): Likewise.
3451 (RETURN_MASK): Likewise.
3452 (typedef return_mask): Likewise.
3453 (enum errors): Likewise.
3454 (struct gdb_exception): Likewise.
3455 (exceptions_state_mc_init): Likewise.
3456 (exceptions_state_mc_action_iter): Likewise.
3457 (exceptions_state_mc_action_iter_1): Likewise.
3458 (TRY_CATCH): Likewise.
3459 (throw_exception): Likewise.
3460 (throw_verror): Likewise.
3461 (throw_vquit): Likewise.
3462 (throw_error): Likewise.
3463 (throw_quit): Likewise.
3464 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3465 (enum catcher_action): Likewise.
3466 (struct catcher): Likewise.
3467 (current_catcher): Likewise.
3468 (catcher_list_size): Likewise.
3469 (exceptions_state_mc_init): Likewise.
3470 (catcher_pop): Likewise.
3471 (exceptions_state_mc): Likewise.
3472 (exceptions_state_mc_action_iter): Likewise.
3473 (exceptions_state_mc_action_iter_1): Likewise.
3474 (throw_exception): Likewise.
3475 (exception_messages): Likewise.
3476 (exception_messages_size): Likewise.
3477 (throw_it): Likewise.
3478 (throw_verror): Likewise.
3479 (throw_vquit): Likewise.
3480 (throw_error): Likewise.
3481 (throw_quit): Likewise.
3482 (prepare_to_throw_exception): New function.
3483
3484 2014-08-29 Gary Benson <gbenson@redhat.com>
3485
3486 * common/gdb_setjmp.h: New file.
3487 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3488 * configure.ac: Move sigsetjmp check...
3489 * common/common.m4: ...here.
3490 * configure: Regenerate.
3491 * cp-support.c (SIGJMP_BUF): Delete.
3492 (SIGSETJMP): Likewise.
3493 (SIGLONGJMP): Likewise.
3494 * exceptions.h (gdb_setjmp.h): Include.
3495 (setjmp.h): Do not include.
3496 (EXCEPTIONS_SIGJMP_BUF): Delete.
3497 (EXCEPTIONS_SIGSETJMP): Likewise.
3498 (EXCEPTIONS_SIGLONGJMP): Likewise.
3499 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3500 from gdb_setjmp.h.
3501 * exceptions.c: Likewise.
3502
3503 2014-08-29 Gary Benson <gbenson@redhat.com>
3504
3505 * cleanups.h: Moved to...
3506 * common/cleanups.h: New file.
3507 * cleanups.c: Moved to...
3508 * common/cleanups.c: New file. Include common-defs.h and
3509 cleanups.h. Do not include defs.h.
3510 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3511 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3512 (cleanups.o): New rule.
3513
3514 2014-08-29 Gary Benson <gbenson@redhat.com>
3515
3516 * common/errors.h (internal_warning): New declaration.
3517 (internal_vwarning): Likewise.
3518 * common/errors.c (internal_warning): New function.
3519 * utils.h (internal_warning): Don't declare.
3520 (internal_vwarning): Likewise.
3521 * utils.c (internal_warning): Removed.
3522
3523 2014-08-29 Gary Benson <gbenson@redhat.com>
3524
3525 * main.c (captured_main): Use warning during startup.
3526 Prefix startup warning messages with command name.
3527
3528 2014-08-29 Gary Benson <gbenson@redhat.com>
3529
3530 * main.c (captured_main): Handle usage errors with error.
3531
3532 2014-08-29 Gary Benson <gbenson@redhat.com>
3533
3534 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3535 exit pair with a call to error. Wrap the message with _().
3536
3537 2014-08-29 Gary Benson <gbenson@redhat.com>
3538
3539 * main.c (captured_main): Replace a fprintf/exit
3540 pair with a call to error. Wrap the message with _().
3541
3542 2014-08-29 Gary Benson <gbenson@redhat.com>
3543
3544 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3545 pairs with calls to error. Wrap the message with _().
3546
3547 2014-08-29 Gary Benson <gbenson@redhat.com>
3548
3549 * utils.c (vwarning): Protect calls to target_terminal_ours
3550 and wrap_here.
3551
3552 2014-08-29 Gary Benson <gbenson@redhat.com>
3553
3554 * exceptions.c (print_flush): Protect calls to
3555 target_terminal_ours and wrap_here.
3556
3557 2014-08-29 Gary Benson <gbenson@redhat.com>
3558
3559 * utils.h (filtered_printing_initialized): New declaration.
3560 * utils.c (abort_with_message): New function.
3561 (internal_vproblem): Use abort_with_message for first level
3562 recursive internal problems, and if gdb_stderr is not set up.
3563 Protect calls to target_terminal_ours, begin_line and query.
3564
3565 2014-08-28 Doug Evans <dje@google.com>
3566
3567 * symtab.c (in_prologue): Move definition to better spot.
3568 (skip_prologue_using_sal): Ditto.
3569
3570 2014-08-28 Doug Evans <dje@google.com>
3571
3572 * symtab.c (find_function_start_sal): Move definition to better spot.
3573
3574 2014-08-28 Yao Qi <yao@codesourcery.com>
3575
3576 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3577 found_stack_adjust in forward scan. Remove condition check
3578 on found_stack_adjust which is always true. Indent the code.
3579
3580 2014-08-28 Yao Qi <yao@codesourcery.com>
3581
3582 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3583 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3584 (dwarf_decode_lines): Remove argument
3585 want_line_info. Remove condition check on want_line_info.
3586 Callers update.
3587
3588 2014-08-27 Doug Evans <dje@google.com>
3589
3590 * dwarf2read.c (dwarf_record_line): Fix typo.
3591
3592 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3593
3594 * target.h (struct target_ops::to_terminal_save_ours): Remove
3595 declaration.
3596 (target_terminal_save_ours): Remove macro.
3597 * target-delegates.c: Regenerate.
3598 * inf-child.c (inf_child_target): Don't set the nonexistent
3599 field to_terminal_save_ours.
3600 * inferior.h (child_terminal_save_ours): Remove declaration.
3601 * terminal.h (gdb_save_tty_state): New declaration.
3602 * inflow.c (child_terminal_save_ours): Rename to ...
3603 (gdb_save_tty_state): ... this.
3604 * tui/tui.c: Include terminal.h.
3605 (tui_enable): Use gdb_save_tty_state instead of
3606 target_terminal_save_ours.
3607 (tui_disable): Likewise.
3608
3609 2014-08-25 Doug Evans <dje@google.com>
3610
3611 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3612 Pass NULL instead of 0 for context pointer.
3613
3614 2014-08-25 Yao Qi <yao@codesourcery.com>
3615
3616 * dwarf2read.c: Fix grammatical error.
3617
3618 2014-08-24 Yao Qi <yao@codesourcery.com>
3619
3620 * dwarf2read.c (scan_partial_symbols): Update comments.
3621 Rename argument 'need_pc' with 'set_addrmap'.
3622 (add_partial_namespace): Rename argument 'need_pc' with
3623 'set_addrmap'.
3624 (add_partial_module): Likewise.
3625 (add_partial_subprogram): Likewise. Update comments.
3626 (dwarf2_name): Fix typo.
3627
3628 2014-08-22 Doug Evans <dje@google.com>
3629
3630 PR 17276
3631 * dwarf2read.c (dwarf_record_line_p): New function.
3632 (dwarf_decode_lines_1): Ignore subsequent line number entries
3633 for the same line if any entry had a non-zero discriminator.
3634
3635 2014-08-22 Doug Evans <dje@google.com>
3636
3637 * buildsym.h (record_line_ftype): New typedef.
3638 (record_line): Use it.
3639 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3640 (dwarf_decode_lines_1): Call them.
3641
3642 2014-08-22 Yao Qi <yao@codesourcery.com>
3643
3644 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3645 (ctf_end): Remove code.
3646
3647 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3648
3649 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3650 (linux_make_corefile_notes): call update_thread_list, protected against
3651 exceptions.
3652
3653 2014-08-21 Pedro Alves <palves@redhat.com>
3654
3655 * infcmd.c (attach_command): Remove comment.
3656
3657 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3658
3659 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3660 unsigned LONGEST to ULONGEST.
3661
3662 2014-08-20 Pedro Alves <palves@redhat.com>
3663
3664 * Makefile.in (check-read1): New rule.
3665
3666 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3667
3668 * value.c (value_from_contents_and_address): Strip resolved_type's
3669 typedef layers before checking its TYPE_DATA_LOCATION.
3670
3671 2014-08-20 Pedro Alves <palves@redhat.com>
3672
3673 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3674
3675 2014-08-20 Yao Qi <yao@codesourcery.com>
3676
3677 * amd64-tdep.c (amd64_classify): Add a blank line after the
3678 example. Move "*/" to a new line.
3679 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3680 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3681 * dwarf2read.c (psymtab_include_file_name): Likewise.
3682
3683 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3684 Pedro Alves <palves@redhat.com>
3685
3686 PR symtab/14604
3687 PR symtab/14605
3688 * ada-lang.c (coerce_unspec_val_to_type): Use
3689 value_contents_copy_raw.
3690 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3691 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3692 * cp-valprint.c (cp_print_value_fields): Let the common printing
3693 code handle optimized out values.
3694 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3695 * d-valprint.c (dynamic_array_type): Use
3696 value_bits_any_optimized_out.
3697 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3698 check_any_valid fields.
3699 (check_pieced_value_bits): Delete and inline ...
3700 (check_pieced_synthetic_pointer): ... here.
3701 (check_pieced_value_validity): Delete.
3702 (check_pieced_value_invalid): Delete.
3703 (pieced_value_funcs): Remove check_validity and check_any_valid
3704 fields.
3705 (read_pieced_value): Use mark_value_bits_optimized_out.
3706 (write_pieced_value): Switch to use
3707 mark_value_bytes_optimized_out.
3708 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3709 of assuming the whole value is optimized out.
3710 * findvar.c (read_frame_register_value): Remove special handling
3711 of optimized out registers.
3712 (value_from_register): Use mark_value_bytes_optimized_out.
3713 * frame-unwind.c (frame_unwind_got_optimized): Use
3714 mark_value_bytes_optimized_out.
3715 * jv-valprint.c (java_value_print): Adjust.
3716 (java_print_value_fields): Let the common printing code handle
3717 optimized out values.
3718 * mips-tdep.c (mips_print_register): Remove special handling of
3719 optimized out registers.
3720 * opencl-lang.c (lval_func_check_validity): Delete.
3721 (lval_func_check_any_valid): Delete.
3722 (opencl_value_funcs): Remove check_validity and check_any_valid
3723 fields.
3724 * p-valprint.c (pascal_object_print_value_fields): Let the common
3725 printing code handle optimized out values.
3726 * stack.c (read_frame_arg): Remove special handling of optimized
3727 out values. Fetch both VAL and ENTRYVAL before comparing
3728 contents. Adjust to value_available_contents_eq rename.
3729 * valprint.c (valprint_check_validity)
3730 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3731 (val_print_array_elements): Adjust.
3732 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3733 (value_bits_any_optimized_out): New function.
3734 (value_entirely_covered_by_range_vector): New function, factored
3735 out from value_entirely_unavailable.
3736 (value_entirely_unavailable): Reimplement.
3737 (value_entirely_optimized_out): New function.
3738 (insert_into_bit_range_vector): New function, factored out from
3739 mark_value_bits_unavailable.
3740 (mark_value_bits_unavailable): Reimplement.
3741 (struct ranges_and_idx): New struct.
3742 (find_first_range_overlap_and_match): New function, factored out
3743 from value_available_contents_bits_eq.
3744 (value_available_contents_bits_eq): Rename to ...
3745 (value_contents_bits_eq): ... this. Check both unavailable
3746 contents and optimized out contents.
3747 (value_available_contents_eq): Rename to ...
3748 (value_contents_eq): ... this.
3749 (allocate_value_lazy): Remove reference to the old optimized_out
3750 boolean.
3751 (allocate_optimized_out_value): Use
3752 mark_value_bytes_optimized_out.
3753 (require_not_optimized_out): Adjust to check whether the
3754 optimized_out vec is empty.
3755 (ranges_copy_adjusted): New function, factored out from
3756 value_contents_copy_raw.
3757 (value_contents_copy_raw): Also copy the optimized out ranges.
3758 Assert the destination ranges aren't optimized out.
3759 (value_contents_copy): Update comment, remove call to
3760 require_not_optimized_out.
3761 (value_contents_equal): Adjust to check whether the optimized_out
3762 vec is empty.
3763 (set_value_optimized_out, value_optimized_out_const): Delete.
3764 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3765 New functions.
3766 (value_entirely_optimized_out, value_bits_valid): Delete.
3767 (value_copy): Take a VEC copy of the 'optimized_out' field.
3768 (value_primitive_field): Remove special handling of optimized out.
3769 (value_fetch_lazy): Assert that lazy values have no unavailable
3770 regions. Use value_bits_any_optimized_out. Remove some special
3771 handling for optimized out values.
3772 * value.h: Add intro comment about <optimized out> and
3773 <unavailable>.
3774 (struct lval_funcs): Remove check_validity and check_any_valid
3775 fields.
3776 (set_value_optimized_out, value_optimized_out_const): Remove.
3777 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3778 New declarations.
3779 (value_bits_any_optimized_out): New declaration.
3780 (value_bits_valid): Delete declaration.
3781 (value_available_contents_eq): Rename to ...
3782 (value_contents_eq): ... this, and extend comments.
3783
3784 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3785
3786 Fix -fsanitize=address on unreadable inferior strings.
3787 * valprint.c (val_print_string): Fix access before BUFFER.
3788
3789 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3790
3791 * target.c (target_struct_size): Remove.
3792 (target_struct_allocsize): Remove.
3793 (DEFAULT_ALLOCSIZE): Remove.
3794 (target_ops_p): New typedef.
3795 (DEF_VEC_P (target_ops_p)): New vector type.
3796 (target_structs): Change type to VEC (target_ops_p).
3797 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3798 (find_default_run_target): Rewrite for loop following changes to
3799 target_structs.
3800
3801 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3802
3803 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3804 Adjust code accordingly. Adjust function description comment.
3805
3806 2014-08-19 Yao Qi <yao@codesourcery.com>
3807
3808 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3809 types.
3810
3811 2014-08-19 Alan Modra <amodra@gmail.com>
3812
3813 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3814 * config.in: Regenerate.
3815 * configure: Regenerate.
3816
3817 2014-08-19 Tom Tromey <tromey@redhat.com>
3818 Gary Benson <gbenson@redhat.com>
3819
3820 * common/common-debug.h: New file.
3821 * common/common-debug.c: Likewise.
3822 * debug.c: Likewise.
3823 * Makefile.in (SFILES): Add common/common-debug.c.
3824 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3825 (COMMON_OBS): Add common-debug.o and debug.o.
3826 (common-debug.o): New rule.
3827 * common/common-defs.h: Include common-debug.h.
3828 * common/agent.c (debug_agent_printf): New function.
3829 (DEBUG_AGENT): Redefine.
3830 * nat/i386-dregs.c (debug_printf): Undefine.
3831
3832 2014-08-19 Gary Benson <gbenson@redhat.com>
3833
3834 * common/common-defs.h: Include print-utils.h.
3835 * utils.h: Do not include print-utils.h.
3836
3837 2014-08-19 Tom Tromey <tromey@redhat.com>
3838 Gary Benson <gbenson@redhat.com>
3839
3840 * common/common-types.h: New file.
3841 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3842 * common/common-defs.h: Include common-types.h.
3843 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3844 (ULONGEST): Remove.
3845
3846 2014-08-19 Tom Tromey <tromey@redhat.com>
3847 Gary Benson <gbenson@redhat.com>
3848
3849 * common/errors.h: New file.
3850 * common/errors.c: Likewise.
3851 * Makefile.in (SFILES): Add common/errors.c.
3852 (HFILES_NO_SRCDIR): Add common/errors.h.
3853 (COMMON_OBS): Add errors.o.
3854 (errors.o): New rule.
3855 * common/common-defs.h: Include errors.h.
3856 * utils.h (perror_with_name, error, verror, warning, vwarning):
3857 Don't declare.
3858 * common/common-utils.h: (malloc_failure, internal_error):
3859 Likewise.
3860
3861 2014-08-19 Gary Benson <gbenson@redhat.com>
3862
3863 * utils.c (internal_vproblem): Always print the message.
3864
3865 2014-08-18 Doug Evans <dje@google.com>
3866
3867 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3868
3869 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3870
3871 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3872 Return 0 if TYPE is dynamic.
3873 (print_range): Add handling of dynamic ranges.
3874
3875 2014-08-18 Keven Boell <keven.boell@intel.com>
3876 Joel Brobecker <brobecker@adacore.com>
3877
3878 * gdbtypes.h (struct main_type): Add field "data_location".
3879 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3880 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3881 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3882 a dynamic data location.
3883 (resolve_dynamic_type): Add DW_AT_data_location handling.
3884 (copy_recursive, copy_type): Copy the data_location information
3885 when present.
3886 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3887 * value.c (value_from_contents_and_address): Add
3888 DW_AT_data_location handling.
3889
3890 2014-08-18 Keven Boell <keven.boell@intel.com>
3891 Joel Brobecker <brobecker@adacore.com>
3892
3893 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3894 field "get_object_address".
3895 * dwarf2expr.c (execute_stack_op): Add handling for
3896 DW_OP_push_object_address.
3897 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3898 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3899 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3900 (dwarf_expr_get_obj_addr): New function.
3901 (dwarf_expr_ctx_funcs): Add get_object_address field.
3902 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3903 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3904 (dwarf2_evaluate_property): Add parameter "address". Use it.
3905 (needs_get_obj_addr): New function.
3906 (needs_frame_ctx_funcs): Add get_object_address field.
3907 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3908 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3909 (resolve_dynamic_array): Likewise.
3910
3911 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3912
3913 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3914 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3915 fixed value for records and unions for which some GNAT encodings
3916 are present.
3917
3918 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3919
3920 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3921 rewrite to avoid "else if" and "else" constructs. Should be
3922 a no-op in practice.
3923
3924 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3925
3926 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3927 of lexical block.
3928
3929 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3930
3931 PR c++/17132
3932 * eval.c: Update all calls to find_overload_match.
3933 * valarith.c: Likewise.
3934 (value_user_defined_cpp_op, value_user_defined_op): New
3935 argument NOSIDE. Update all callers.
3936 * valops.c (find_overload_match): New argument NOSIDE.
3937 * value.h (find_overload_match): Update signature.
3938
3939 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3940
3941 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3942 'items' methods instead of 'iteritems' method on dictionaries.
3943
3944 2014-08-15 Doug Evans <dje@google.com>
3945
3946 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3947 closer to use.
3948
3949 2014-08-15 Doug Evans <dje@google.com>
3950
3951 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3952
3953 2014-08-15 Doug Evans <dje@google.com>
3954
3955 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3956
3957 2014-08-15 Doug Evans <dje@google.com>
3958
3959 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3960 unused.
3961
3962 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3963
3964 * dcache.h: Include target.h, to avoid compile time warnings.
3965
3966 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3967
3968 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3969 frame_info" partial declaration.
3970 * gdbarch.h: Regenerate.
3971
3972 2014-08-15 Yao Qi <yao@codesourcery.com>
3973
3974 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3975 Add parameter 'decode_for_pst_p'. Callers update.
3976
3977 2014-08-13 Yao Qi <yao@codesourcery.com>
3978
3979 PR build/17104
3980 * configure.ac: Use local variable 'pos'.
3981 * configure: Regenerated.
3982
3983 2014-08-11 Doug Evans <dje@google.com>
3984
3985 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3986 message, it is redundant with "Reading symbols from ..." message.
3987
3988 2014-08-10 Doug Evans <xdje42@gmail.com>
3989
3990 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3991
3992 2014-08-09 Yao Qi <yao@codesourcery.com>
3993
3994 PR remote/9053
3995 * remote.c (remote_xfer_partial): Remove dead code.
3996
3997 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3998
3999 * ia64-linux-tdep.c: Include "regset.h".
4000 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4001 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4002 (ia64_linux_supply_fpregset): New function.
4003 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4004 (ia64_linux_regset_from_core_section): New function.
4005 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4006 method.
4007
4008 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4009
4010 * m68klinux-tdep.c: Include "regset.h".
4011 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4012 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4013 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4014 (m68k_linux_regset_from_core_section): New function.
4015 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4016 method.
4017
4018 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4019
4020 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4021 function. Move logic to...
4022 (tilegx_linux_regmap): ... this new register map.
4023 (tilegx_linux_regset): Refer to register map, replace supply
4024 method by regcache_supply_regset, and add collect method.
4025 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4026 TILEGX_FIRST_EASY_REGNUM.
4027
4028 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4029
4030 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4031 that calls regcache_supply_regset and handles the EPC register
4032 separately. Move main logic to...
4033 (score7_linux_gregmap): ... this new register map.
4034 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4035 (score7_linux_gregset): Refer to register map. Add collect method.
4036 (score7_linux_regset_from_core_section): Replace
4037 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4038 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4039 (struct regset): Delete unused forward declaraction.
4040 (struct pt_regs): Delete structure definition.
4041 (elf_gregset_t): Delete typedef.
4042
4043 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4044
4045 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4046 (nios2_core_regset): Add collect method.
4047
4048 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4049
4050 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4051 platform-independent and don't write to read-only input buffer.
4052 (m32r_linux_collect_gregset): New function.
4053 (m32r_linux_gregset): Add collect method.
4054
4055 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4056
4057 * hppa-linux-tdep.c (greg_map): Rename to...
4058 (hppa_linux_gregmap): ... this. Also convert to
4059 regcache_map_entry format.
4060 (hppa_linux_supply_regset): Delete function.
4061 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4062 (hppa_linux_fpregmap): ... this new register map.
4063 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4064 register map, replace supply method by regcache_supply_regset, and
4065 add collect method regcache_collect_regset.
4066
4067 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4068
4069 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4070 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4071 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4072 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4073 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4074 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4075 (frv_linux_supply_gregset): Replace main logic by call to
4076 regcache_supply_regset, but keep clearing gr32-gr63.
4077 (frv_linux_supply_fpregset): Delete function.
4078 (frv_linux_gregset): Refer to appropriate register map and add
4079 regcache_collect_regset as the collect method.
4080 (frv_linux_fpregset): Likewise. Also exchange the supply method
4081 by regcache_supply_regset.
4082
4083 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4084
4085 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4086 by call to alpha_supply_int_regs.
4087 (alpha_linux_collect_gregset): New function.
4088 (alpha_linux_supply_fpregset): Replace logic by call to
4089 alpha_supply_fp_regs.
4090 (alpha_linux_collect_fpregset): New function.
4091 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4092
4093 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4094
4095 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4096 by call to regcache_collect_regset.
4097 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4098 instead of aarch64_linux_supply_gregset/_fpregset.
4099 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4100 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4101 header file instead.
4102 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4103 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4104 functions. Move logic to ...
4105 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4106 register maps.
4107 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4108 refer to new register maps, replace *_regset_from_core by
4109 regcache_supply_regset, and also use regcache_collect_regset.
4110 * aarch64-linux-tdep.h: Include "regset.h".
4111 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4112 Delete prototypes.
4113 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4114 macros, moved from C source file.
4115 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4116 variable declarations.
4117
4118 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4119
4120 * s390-linux-nat.c: Include "regset.h".
4121 (regmap_gregset): Delete macro.
4122 (s390_64_regmap_gregset): New register map for
4123 regcache_supply/_collect_regset.
4124 (s390_64_gregset): New regset.
4125 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4126 (regmap_fpregset): Delete macro.
4127 (s390_native_supply, s390_native_collect): Delete functions.
4128 (supply_gregset, fill_gregset): Replace s390-specific regmap
4129 handling by a call to regcache_supply/_collect_regset.
4130 (supply_fpregset, fill_fpregset): Call regcache_supply/
4131 _collect_regset instead of s390_native_supply/_collect.
4132 (fetch_regset, store_regset): Likewise. Also change the last
4133 parameter to a regset instead of a regmap.
4134 (s390_linux_fetch_inferior_registers)
4135 (390_linux_store_inferior_registers): Adjust last parameter in
4136 calls to fetch_regset and store_regset.
4137 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4138 (s390_gregmap): ... this. Also make static const and convert to
4139 regcache_map_entry format.
4140 (s390x_regmap_gregset): Delete.
4141 (s390_regmap_fpregset): Rename to...
4142 (s390_fpregmap): ... this. Make static const and convert to
4143 regcache_map_entry format.
4144 (s390_regmap_upper, s390_regmap_last_break)
4145 (s390x_regmap_last_break, s390_regmap_system_call)
4146 (s390_regmap_tdb): Likewise.
4147 (s390_supply_regset, s390_collect_regset): Remove functions.
4148 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4149 s390_supply_regset.
4150 (s390_gregset, s390_fpregset, s390_upper_regset)
4151 (s390_last_break_regset, s390x_last_break_regset)
4152 (s390_system_call_regset, s390_tdb_regset): Make global and
4153 replace s390_supply/_collect_regset by regcache_supply/
4154 _collect_regset.
4155 (s390x_gregset): Delete.
4156 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4157 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4158 (s390_regmap_fpregset, s390_regmap_last_break)
4159 (s390x_regmap_last_break, s390_regmap_system_call)
4160 (s390_regmap_tdb): Delete global variable declarations.
4161 (s390_gregset, s390_fpregset, s390_last_break_regset)
4162 (s390x_last_break_regset, s390_system_call_regset)
4163 (s390_tdb_regset): New global variable declarations.
4164
4165 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4166
4167 * regcache.c: Include "regset.h".
4168 (regcache_transfer_regset): New local function.
4169 (regcache_supply_regset, regcache_collect_regset): New functions.
4170 * regcache.h (struct regcache_map_entry): New structure.
4171 (REGCACHE_MAP_SKIP): New enum value.
4172 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4173
4174 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4175
4176 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4177 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4178 (ppc_linux_collect_gregset ): Likewise.
4179 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4180 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4181 (ppc_collect_vrregset): Likewise.
4182 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4183 Likewise.
4184
4185 2014-08-07 Yao Qi <yao@codesourcery.com>
4186
4187 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4188 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4189 * remote.c (remote_read_bytes): Likewise.
4190
4191 2014-08-07 Yao Qi <yao@codesourcery.com>
4192
4193 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4194
4195 2014-08-07 Yao Qi <yao@codesourcery.com>
4196
4197 PR remote/17230
4198 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4199 TARGET_XFER_OK instead of 0.
4200
4201 2014-08-07 Gary Benson <gbenson@redhat.com>
4202
4203 * common/common-defs.h: Include errno.h.
4204 * defs.h: Do not include errno.h.
4205 * ada-typeprint.c: Likewise.
4206 * c-typeprint.c: Likewise.
4207 * core-regset.c: Likewise.
4208 * corefile.c: Likewise.
4209 * corelow.c: Likewise.
4210 * event-loop.c: Likewise.
4211 * f-typeprint.c: Likewise.
4212 * gnu-nat.c: Likewise.
4213 * go32-nat.c: Likewise.
4214 * i386gnu-nat.c: Likewise.
4215 * m2-typeprint.c: Likewise.
4216 * nat/linux-btrace.c: Likewise.
4217 * p-typeprint.c: Likewise.
4218 * procfs.c: Likewise.
4219 * remote-sim.c: Likewise.
4220 * rs6000-nat.c: Likewise.
4221 * target.c: Likewise.
4222 * typeprint.c: Likewise.
4223 * ui-file.c: Likewise.
4224 * valops.c: Likewise.
4225 * valprint.c: Likewise.
4226
4227 2014-08-07 Gary Benson <gbenson@redhat.com>
4228
4229 * common/common-defs.h: Include string.h.
4230 * aarch64-tdep.c: Do not include string.h.
4231 * ada-exp.y: Likewise.
4232 * ada-lang.c: Likewise.
4233 * ada-lex.l: Likewise.
4234 * ada-typeprint.c: Likewise.
4235 * ada-valprint.c: Likewise.
4236 * aix-thread.c: Likewise.
4237 * alpha-linux-tdep.c: Likewise.
4238 * alpha-mdebug-tdep.c: Likewise.
4239 * alpha-nat.c: Likewise.
4240 * alpha-osf1-tdep.c: Likewise.
4241 * alpha-tdep.c: Likewise.
4242 * alphanbsd-tdep.c: Likewise.
4243 * amd64-dicos-tdep.c: Likewise.
4244 * amd64-linux-tdep.c: Likewise.
4245 * amd64-nat.c: Likewise.
4246 * amd64-sol2-tdep.c: Likewise.
4247 * amd64fbsd-tdep.c: Likewise.
4248 * amd64obsd-tdep.c: Likewise.
4249 * arch-utils.c: Likewise.
4250 * arm-linux-nat.c: Likewise.
4251 * arm-linux-tdep.c: Likewise.
4252 * arm-tdep.c: Likewise.
4253 * arm-wince-tdep.c: Likewise.
4254 * armbsd-tdep.c: Likewise.
4255 * armnbsd-nat.c: Likewise.
4256 * armnbsd-tdep.c: Likewise.
4257 * armobsd-tdep.c: Likewise.
4258 * avr-tdep.c: Likewise.
4259 * ax-gdb.c: Likewise.
4260 * ax-general.c: Likewise.
4261 * bcache.c: Likewise.
4262 * bfin-tdep.c: Likewise.
4263 * breakpoint.c: Likewise.
4264 * build-id.c: Likewise.
4265 * buildsym.c: Likewise.
4266 * c-exp.y: Likewise.
4267 * c-lang.c: Likewise.
4268 * c-typeprint.c: Likewise.
4269 * c-valprint.c: Likewise.
4270 * charset.c: Likewise.
4271 * cli-out.c: Likewise.
4272 * cli/cli-cmds.c: Likewise.
4273 * cli/cli-decode.c: Likewise.
4274 * cli/cli-dump.c: Likewise.
4275 * cli/cli-interp.c: Likewise.
4276 * cli/cli-logging.c: Likewise.
4277 * cli/cli-script.c: Likewise.
4278 * cli/cli-setshow.c: Likewise.
4279 * cli/cli-utils.c: Likewise.
4280 * coffread.c: Likewise.
4281 * common/agent.c: Likewise.
4282 * common/buffer.c: Likewise.
4283 * common/buffer.h: Likewise.
4284 * common/common-utils.c: Likewise.
4285 * common/filestuff.c: Likewise.
4286 * common/filestuff.c: Likewise.
4287 * common/format.c: Likewise.
4288 * common/print-utils.c: Likewise.
4289 * common/rsp-low.c: Likewise.
4290 * common/signals.c: Likewise.
4291 * common/vec.h: Likewise.
4292 * common/xml-utils.c: Likewise.
4293 * core-regset.c: Likewise.
4294 * corefile.c: Likewise.
4295 * corelow.c: Likewise.
4296 * cp-abi.c: Likewise.
4297 * cp-name-parser.y: Likewise.
4298 * cp-support.c: Likewise.
4299 * cp-valprint.c: Likewise.
4300 * cris-tdep.c: Likewise.
4301 * d-exp.y: Likewise.
4302 * darwin-nat.c: Likewise.
4303 * dbxread.c: Likewise.
4304 * dcache.c: Likewise.
4305 * demangle.c: Likewise.
4306 * dicos-tdep.c: Likewise.
4307 * disasm.c: Likewise.
4308 * doublest.c: Likewise.
4309 * dsrec.c: Likewise.
4310 * dummy-frame.c: Likewise.
4311 * dwarf2-frame.c: Likewise.
4312 * dwarf2loc.c: Likewise.
4313 * dwarf2read.c: Likewise.
4314 * elfread.c: Likewise.
4315 * environ.c: Likewise.
4316 * eval.c: Likewise.
4317 * event-loop.c: Likewise.
4318 * exceptions.c: Likewise.
4319 * exec.c: Likewise.
4320 * expprint.c: Likewise.
4321 * f-exp.y: Likewise.
4322 * f-lang.c: Likewise.
4323 * f-typeprint.c: Likewise.
4324 * f-valprint.c: Likewise.
4325 * fbsd-nat.c: Likewise.
4326 * findcmd.c: Likewise.
4327 * findvar.c: Likewise.
4328 * fork-child.c: Likewise.
4329 * frame.c: Likewise.
4330 * frv-linux-tdep.c: Likewise.
4331 * frv-tdep.c: Likewise.
4332 * gdb.c: Likewise.
4333 * gdb_bfd.c: Likewise.
4334 * gdbarch.c: Likewise.
4335 * gdbarch.sh: Likewise.
4336 * gdbtypes.c: Likewise.
4337 * gnu-nat.c: Likewise.
4338 * gnu-v2-abi.c: Likewise.
4339 * gnu-v3-abi.c: Likewise.
4340 * go-exp.y: Likewise.
4341 * go-lang.c: Likewise.
4342 * go32-nat.c: Likewise.
4343 * guile/guile.c: Likewise.
4344 * guile/scm-auto-load.c: Likewise.
4345 * hppa-hpux-tdep.c: Likewise.
4346 * hppa-linux-nat.c: Likewise.
4347 * hppanbsd-tdep.c: Likewise.
4348 * hppaobsd-tdep.c: Likewise.
4349 * i386-cygwin-tdep.c: Likewise.
4350 * i386-dicos-tdep.c: Likewise.
4351 * i386-linux-tdep.c: Likewise.
4352 * i386-nto-tdep.c: Likewise.
4353 * i386-sol2-tdep.c: Likewise.
4354 * i386-tdep.c: Likewise.
4355 * i386bsd-tdep.c: Likewise.
4356 * i386gnu-nat.c: Likewise.
4357 * i386nbsd-tdep.c: Likewise.
4358 * i386obsd-tdep.c: Likewise.
4359 * i387-tdep.c: Likewise.
4360 * ia64-libunwind-tdep.c: Likewise.
4361 * ia64-linux-nat.c: Likewise.
4362 * inf-child.c: Likewise.
4363 * inf-ptrace.c: Likewise.
4364 * inf-ttrace.c: Likewise.
4365 * infcall.c: Likewise.
4366 * infcmd.c: Likewise.
4367 * inflow.c: Likewise.
4368 * infrun.c: Likewise.
4369 * interps.c: Likewise.
4370 * iq2000-tdep.c: Likewise.
4371 * irix5-nat.c: Likewise.
4372 * jv-exp.y: Likewise.
4373 * jv-lang.c: Likewise.
4374 * jv-typeprint.c: Likewise.
4375 * jv-valprint.c: Likewise.
4376 * language.c: Likewise.
4377 * linux-fork.c: Likewise.
4378 * linux-nat.c: Likewise.
4379 * lm32-tdep.c: Likewise.
4380 * m2-exp.y: Likewise.
4381 * m2-typeprint.c: Likewise.
4382 * m32c-tdep.c: Likewise.
4383 * m32r-linux-nat.c: Likewise.
4384 * m32r-linux-tdep.c: Likewise.
4385 * m32r-rom.c: Likewise.
4386 * m32r-tdep.c: Likewise.
4387 * m68hc11-tdep.c: Likewise.
4388 * m68k-tdep.c: Likewise.
4389 * m68kbsd-tdep.c: Likewise.
4390 * m68klinux-nat.c: Likewise.
4391 * m68klinux-tdep.c: Likewise.
4392 * m88k-tdep.c: Likewise.
4393 * machoread.c: Likewise.
4394 * macrocmd.c: Likewise.
4395 * main.c: Likewise.
4396 * mdebugread.c: Likewise.
4397 * mem-break.c: Likewise.
4398 * memattr.c: Likewise.
4399 * memory-map.c: Likewise.
4400 * mep-tdep.c: Likewise.
4401 * mi/mi-cmd-break.c: Likewise.
4402 * mi/mi-cmd-disas.c: Likewise.
4403 * mi/mi-cmd-env.c: Likewise.
4404 * mi/mi-cmd-stack.c: Likewise.
4405 * mi/mi-cmd-var.c: Likewise.
4406 * mi/mi-cmds.c: Likewise.
4407 * mi/mi-console.c: Likewise.
4408 * mi/mi-getopt.c: Likewise.
4409 * mi/mi-interp.c: Likewise.
4410 * mi/mi-main.c: Likewise.
4411 * mi/mi-parse.c: Likewise.
4412 * microblaze-rom.c: Likewise.
4413 * microblaze-tdep.c: Likewise.
4414 * mingw-hdep.c: Likewise.
4415 * minidebug.c: Likewise.
4416 * minsyms.c: Likewise.
4417 * mips-irix-tdep.c: Likewise.
4418 * mips-linux-tdep.c: Likewise.
4419 * mips-tdep.c: Likewise.
4420 * mips64obsd-tdep.c: Likewise.
4421 * mipsnbsd-tdep.c: Likewise.
4422 * mipsread.c: Likewise.
4423 * mn10300-linux-tdep.c: Likewise.
4424 * mn10300-tdep.c: Likewise.
4425 * monitor.c: Likewise.
4426 * moxie-tdep.c: Likewise.
4427 * mt-tdep.c: Likewise.
4428 * nat/linux-btrace.c: Likewise.
4429 * nat/linux-osdata.c: Likewise.
4430 * nat/linux-procfs.c: Likewise.
4431 * nat/linux-ptrace.c: Likewise.
4432 * nat/linux-waitpid.c: Likewise.
4433 * nbsd-tdep.c: Likewise.
4434 * nios2-linux-tdep.c: Likewise.
4435 * nto-procfs.c: Likewise.
4436 * nto-tdep.c: Likewise.
4437 * objc-lang.c: Likewise.
4438 * objfiles.c: Likewise.
4439 * opencl-lang.c: Likewise.
4440 * osabi.c: Likewise.
4441 * osdata.c: Likewise.
4442 * p-exp.y: Likewise.
4443 * p-lang.c: Likewise.
4444 * p-typeprint.c: Likewise.
4445 * parse.c: Likewise.
4446 * posix-hdep.c: Likewise.
4447 * ppc-linux-nat.c: Likewise.
4448 * ppc-sysv-tdep.c: Likewise.
4449 * ppcfbsd-tdep.c: Likewise.
4450 * ppcnbsd-tdep.c: Likewise.
4451 * ppcobsd-tdep.c: Likewise.
4452 * printcmd.c: Likewise.
4453 * procfs.c: Likewise.
4454 * prologue-value.c: Likewise.
4455 * python/py-auto-load.c: Likewise.
4456 * python/py-gdb-readline.c: Likewise.
4457 * ravenscar-thread.c: Likewise.
4458 * regcache.c: Likewise.
4459 * registry.c: Likewise.
4460 * remote-fileio.c: Likewise.
4461 * remote-m32r-sdi.c: Likewise.
4462 * remote-mips.c: Likewise.
4463 * remote-notif.c: Likewise.
4464 * remote-sim.c: Likewise.
4465 * remote.c: Likewise.
4466 * reverse.c: Likewise.
4467 * rs6000-aix-tdep.c: Likewise.
4468 * ser-base.c: Likewise.
4469 * ser-go32.c: Likewise.
4470 * ser-mingw.c: Likewise.
4471 * ser-pipe.c: Likewise.
4472 * ser-tcp.c: Likewise.
4473 * ser-unix.c: Likewise.
4474 * serial.c: Likewise.
4475 * sh-tdep.c: Likewise.
4476 * sh64-tdep.c: Likewise.
4477 * shnbsd-tdep.c: Likewise.
4478 * skip.c: Likewise.
4479 * sol-thread.c: Likewise.
4480 * solib-dsbt.c: Likewise.
4481 * solib-frv.c: Likewise.
4482 * solib-osf.c: Likewise.
4483 * solib-som.c: Likewise.
4484 * solib-spu.c: Likewise.
4485 * solib-target.c: Likewise.
4486 * solib.c: Likewise.
4487 * somread.c: Likewise.
4488 * source.c: Likewise.
4489 * sparc-nat.c: Likewise.
4490 * sparc-sol2-tdep.c: Likewise.
4491 * sparc-tdep.c: Likewise.
4492 * sparc64-tdep.c: Likewise.
4493 * sparc64fbsd-tdep.c: Likewise.
4494 * sparc64nbsd-tdep.c: Likewise.
4495 * sparcnbsd-tdep.c: Likewise.
4496 * spu-linux-nat.c: Likewise.
4497 * spu-multiarch.c: Likewise.
4498 * spu-tdep.c: Likewise.
4499 * stabsread.c: Likewise.
4500 * stack.c: Likewise.
4501 * std-regs.c: Likewise.
4502 * symfile.c: Likewise.
4503 * symmisc.c: Likewise.
4504 * symtab.c: Likewise.
4505 * target.c: Likewise.
4506 * thread.c: Likewise.
4507 * tilegx-linux-nat.c: Likewise.
4508 * tilegx-tdep.c: Likewise.
4509 * top.c: Likewise.
4510 * tracepoint.c: Likewise.
4511 * tui/tui-command.c: Likewise.
4512 * tui/tui-data.c: Likewise.
4513 * tui/tui-disasm.c: Likewise.
4514 * tui/tui-file.c: Likewise.
4515 * tui/tui-layout.c: Likewise.
4516 * tui/tui-out.c: Likewise.
4517 * tui/tui-regs.c: Likewise.
4518 * tui/tui-source.c: Likewise.
4519 * tui/tui-stack.c: Likewise.
4520 * tui/tui-win.c: Likewise.
4521 * tui/tui-windata.c: Likewise.
4522 * tui/tui-winsource.c: Likewise.
4523 * typeprint.c: Likewise.
4524 * ui-file.c: Likewise.
4525 * ui-out.c: Likewise.
4526 * user-regs.c: Likewise.
4527 * utils.c: Likewise.
4528 * v850-tdep.c: Likewise.
4529 * valarith.c: Likewise.
4530 * valops.c: Likewise.
4531 * valprint.c: Likewise.
4532 * value.c: Likewise.
4533 * varobj.c: Likewise.
4534 * vax-tdep.c: Likewise.
4535 * vaxnbsd-tdep.c: Likewise.
4536 * vaxobsd-tdep.c: Likewise.
4537 * windows-nat.c: Likewise.
4538 * xcoffread.c: Likewise.
4539 * xml-support.c: Likewise.
4540 * xstormy16-tdep.c: Likewise.
4541 * xtensa-linux-nat.c: Likewise.
4542
4543 2014-08-07 Gary Benson <gbenson@redhat.com>
4544
4545 * common/common-defs.h: Include gdb_assert.h.
4546 * aarch64-tdep.c: Do not include gdb_assert.h.
4547 * addrmap.c: Likewise.
4548 * aix-thread.c: Likewise.
4549 * alpha-linux-tdep.c: Likewise.
4550 * alpha-mdebug-tdep.c: Likewise.
4551 * alphanbsd-tdep.c: Likewise.
4552 * amd64-nat.c: Likewise.
4553 * amd64-tdep.c: Likewise.
4554 * amd64bsd-nat.c: Likewise.
4555 * amd64fbsd-nat.c: Likewise.
4556 * amd64fbsd-tdep.c: Likewise.
4557 * amd64nbsd-nat.c: Likewise.
4558 * amd64nbsd-tdep.c: Likewise.
4559 * amd64obsd-nat.c: Likewise.
4560 * amd64obsd-tdep.c: Likewise.
4561 * arch-utils.c: Likewise.
4562 * arm-tdep.c: Likewise.
4563 * armbsd-tdep.c: Likewise.
4564 * auxv.c: Likewise.
4565 * bcache.c: Likewise.
4566 * bfin-tdep.c: Likewise.
4567 * blockframe.c: Likewise.
4568 * breakpoint.c: Likewise.
4569 * bsd-kvm.c: Likewise.
4570 * bsd-uthread.c: Likewise.
4571 * buildsym.c: Likewise.
4572 * c-exp.y: Likewise.
4573 * c-lang.c: Likewise.
4574 * charset.c: Likewise.
4575 * cleanups.c: Likewise.
4576 * cli-out.c: Likewise.
4577 * cli/cli-decode.c: Likewise.
4578 * cli/cli-dump.c: Likewise.
4579 * cli/cli-logging.c: Likewise.
4580 * cli/cli-script.c: Likewise.
4581 * cli/cli-utils.c: Likewise.
4582 * coffread.c: Likewise.
4583 * common/common-utils.c: Likewise.
4584 * common/queue.h: Likewise.
4585 * common/signals.c: Likewise.
4586 * common/vec.h: Likewise.
4587 * complaints.c: Likewise.
4588 * completer.c: Likewise.
4589 * corelow.c: Likewise.
4590 * cp-abi.c: Likewise.
4591 * cp-name-parser.y: Likewise.
4592 * cp-namespace.c: Likewise.
4593 * cp-support.c: Likewise.
4594 * cris-tdep.c: Likewise.
4595 * dbxread.c: Likewise.
4596 * dictionary.c: Likewise.
4597 * doublest.c: Likewise.
4598 * dsrec.c: Likewise.
4599 * dummy-frame.c: Likewise.
4600 * dwarf2-frame-tailcall.c: Likewise.
4601 * dwarf2-frame.c: Likewise.
4602 * dwarf2expr.c: Likewise.
4603 * dwarf2loc.c: Likewise.
4604 * dwarf2read.c: Likewise.
4605 * eval.c: Likewise.
4606 * event-loop.c: Likewise.
4607 * exceptions.c: Likewise.
4608 * expprint.c: Likewise.
4609 * f-valprint.c: Likewise.
4610 * fbsd-nat.c: Likewise.
4611 * findvar.c: Likewise.
4612 * frame-unwind.c: Likewise.
4613 * frame.c: Likewise.
4614 * frv-tdep.c: Likewise.
4615 * gcore.c: Likewise.
4616 * gdb-dlfcn.c: Likewise.
4617 * gdb_bfd.c: Likewise.
4618 * gdbarch.c: Likewise.
4619 * gdbarch.sh: Likewise.
4620 * gdbtypes.c: Likewise.
4621 * gnu-nat.c: Likewise.
4622 * gnu-v3-abi.c: Likewise.
4623 * go-lang.c: Likewise.
4624 * guile/scm-exception.c: Likewise.
4625 * guile/scm-gsmob.c: Likewise.
4626 * guile/scm-lazy-string.c: Likewise.
4627 * guile/scm-math.c: Likewise.
4628 * guile/scm-pretty-print.c: Likewise.
4629 * guile/scm-safe-call.c: Likewise.
4630 * guile/scm-utils.c: Likewise.
4631 * guile/scm-value.c: Likewise.
4632 * h8300-tdep.c: Likewise.
4633 * hppa-hpux-nat.c: Likewise.
4634 * hppa-tdep.c: Likewise.
4635 * hppanbsd-tdep.c: Likewise.
4636 * hppaobsd-tdep.c: Likewise.
4637 * i386-darwin-nat.c: Likewise.
4638 * i386-darwin-tdep.c: Likewise.
4639 * i386-nto-tdep.c: Likewise.
4640 * i386-tdep.c: Likewise.
4641 * i386bsd-nat.c: Likewise.
4642 * i386fbsd-tdep.c: Likewise.
4643 * i386gnu-nat.c: Likewise.
4644 * i386nbsd-tdep.c: Likewise.
4645 * i386obsd-tdep.c: Likewise.
4646 * i387-tdep.c: Likewise.
4647 * ia64-libunwind-tdep.c: Likewise.
4648 * ia64-tdep.c: Likewise.
4649 * inf-ptrace.c: Likewise.
4650 * inf-ttrace.c: Likewise.
4651 * infcall.c: Likewise.
4652 * infcmd.c: Likewise.
4653 * infrun.c: Likewise.
4654 * inline-frame.c: Likewise.
4655 * interps.c: Likewise.
4656 * jv-lang.c: Likewise.
4657 * jv-typeprint.c: Likewise.
4658 * linux-fork.c: Likewise.
4659 * linux-nat.c: Likewise.
4660 * linux-thread-db.c: Likewise.
4661 * m32c-tdep.c: Likewise.
4662 * m32r-linux-nat.c: Likewise.
4663 * m32r-tdep.c: Likewise.
4664 * m68k-tdep.c: Likewise.
4665 * m68kbsd-nat.c: Likewise.
4666 * m68kbsd-tdep.c: Likewise.
4667 * m88k-tdep.c: Likewise.
4668 * machoread.c: Likewise.
4669 * macroexp.c: Likewise.
4670 * macrotab.c: Likewise.
4671 * maint.c: Likewise.
4672 * mdebugread.c: Likewise.
4673 * memory-map.c: Likewise.
4674 * mep-tdep.c: Likewise.
4675 * mi/mi-common.c: Likewise.
4676 * microblaze-tdep.c: Likewise.
4677 * mingw-hdep.c: Likewise.
4678 * mips-linux-nat.c: Likewise.
4679 * mips-linux-tdep.c: Likewise.
4680 * mips-tdep.c: Likewise.
4681 * mips64obsd-tdep.c: Likewise.
4682 * mipsnbsd-tdep.c: Likewise.
4683 * mn10300-linux-tdep.c: Likewise.
4684 * mn10300-tdep.c: Likewise.
4685 * moxie-tdep.c: Likewise.
4686 * mt-tdep.c: Likewise.
4687 * nat/linux-btrace.c: Likewise.
4688 * nat/linux-osdata.c: Likewise.
4689 * nat/linux-ptrace.c: Likewise.
4690 * nat/mips-linux-watch.c: Likewise.
4691 * nios2-linux-tdep.c: Likewise.
4692 * nios2-tdep.c: Likewise.
4693 * objc-lang.c: Likewise.
4694 * objfiles.c: Likewise.
4695 * obsd-nat.c: Likewise.
4696 * opencl-lang.c: Likewise.
4697 * osabi.c: Likewise.
4698 * parse.c: Likewise.
4699 * ppc-linux-nat.c: Likewise.
4700 * ppc-sysv-tdep.c: Likewise.
4701 * ppcfbsd-nat.c: Likewise.
4702 * ppcfbsd-tdep.c: Likewise.
4703 * ppcnbsd-nat.c: Likewise.
4704 * ppcnbsd-tdep.c: Likewise.
4705 * ppcobsd-nat.c: Likewise.
4706 * ppcobsd-tdep.c: Likewise.
4707 * printcmd.c: Likewise.
4708 * procfs.c: Likewise.
4709 * prologue-value.c: Likewise.
4710 * psymtab.c: Likewise.
4711 * python/py-lazy-string.c: Likewise.
4712 * python/py-value.c: Likewise.
4713 * regcache.c: Likewise.
4714 * reggroups.c: Likewise.
4715 * registry.c: Likewise.
4716 * remote-sim.c: Likewise.
4717 * remote.c: Likewise.
4718 * rs6000-aix-tdep.c: Likewise.
4719 * rs6000-tdep.c: Likewise.
4720 * s390-linux-tdep.c: Likewise.
4721 * score-tdep.c: Likewise.
4722 * ser-base.c: Likewise.
4723 * ser-mingw.c: Likewise.
4724 * sh-tdep.c: Likewise.
4725 * sh64-tdep.c: Likewise.
4726 * solib-darwin.c: Likewise.
4727 * solib-spu.c: Likewise.
4728 * solib-svr4.c: Likewise.
4729 * source.c: Likewise.
4730 * sparc-nat.c: Likewise.
4731 * sparc-sol2-tdep.c: Likewise.
4732 * sparc-tdep.c: Likewise.
4733 * sparc64-sol2-tdep.c: Likewise.
4734 * sparc64-tdep.c: Likewise.
4735 * sparc64fbsd-tdep.c: Likewise.
4736 * sparc64nbsd-tdep.c: Likewise.
4737 * sparc64obsd-tdep.c: Likewise.
4738 * sparcnbsd-tdep.c: Likewise.
4739 * sparcobsd-tdep.c: Likewise.
4740 * spu-multiarch.c: Likewise.
4741 * spu-tdep.c: Likewise.
4742 * stabsread.c: Likewise.
4743 * stack.c: Likewise.
4744 * symfile.c: Likewise.
4745 * symtab.c: Likewise.
4746 * target-descriptions.c: Likewise.
4747 * target-memory.c: Likewise.
4748 * target.c: Likewise.
4749 * tic6x-linux-tdep.c: Likewise.
4750 * tic6x-tdep.c: Likewise.
4751 * tilegx-linux-nat.c: Likewise.
4752 * tilegx-tdep.c: Likewise.
4753 * top.c: Likewise.
4754 * tramp-frame.c: Likewise.
4755 * tui/tui-out.c: Likewise.
4756 * tui/tui-winsource.c: Likewise.
4757 * ui-out.c: Likewise.
4758 * user-regs.c: Likewise.
4759 * utils.c: Likewise.
4760 * v850-tdep.c: Likewise.
4761 * valops.c: Likewise.
4762 * value.c: Likewise.
4763 * varobj.c: Likewise.
4764 * vax-nat.c: Likewise.
4765 * xml-syscall.c: Likewise.
4766 * xml-tdesc.c: Likewise.
4767 * xstormy16-tdep.c: Likewise.
4768 * xtensa-linux-nat.c: Likewise.
4769 * xtensa-tdep.c: Likewise.
4770
4771 2014-08-07 Gary Benson <gbenson@redhat.com>
4772
4773 * common/common-defs.h: Include common-utils.h.
4774 * defs.h: Do not include common-utils.h.
4775 * common/gdb_assert.h: Likewise.
4776 * darwin-nat.h: Likewise.
4777 * nat/linux-btrace.c: Likewise.
4778 * target/waitstatus.h: Likewise.
4779
4780 2014-08-07 Gary Benson <gbenson@redhat.com>
4781
4782 * common/common-defs.h: Include ptid.h.
4783 * defs.h: Do not include ptid.h.
4784 * inferior.h: Likewise.
4785 * infrun.h: Likewise.
4786 * nat/linux-btrace.h: Likewise.
4787 * nat/linux-osdata.h: Likewise.
4788 * target/waitstatus.h: Likewise.
4789
4790 2014-08-07 Gary Benson <gbenson@redhat.com>
4791
4792 * common/common-defs.h: Include gdb_locale.h.
4793 * defs.h: Do not include gdb_locale.h.
4794
4795 2014-08-07 Gary Benson <gbenson@redhat.com>
4796
4797 * common/common-defs.h: Include gdb/signals.h.
4798 * defs.h: Do not include gdb/signals.h.
4799
4800 2014-08-07 Gary Benson <gbenson@redhat.com>
4801
4802 * common/common-defs.h: Include pathmax.h.
4803 * defs.h: Do not include pathmax.h.
4804
4805 2014-08-07 Gary Benson <gbenson@redhat.com>
4806
4807 * common/common-defs.h: Include libiberty.h.
4808 * defs.h: Do not include libiberty.h.
4809 * common/queue.h: Likewise.
4810 * cp-name-parser.y: Likewise.
4811 * mi/mi-cmd-catch.c: Likewise.
4812 * python/python.c: Likewise.
4813
4814 2014-08-07 Gary Benson <gbenson@redhat.com>
4815
4816 * common/common-defs.h: Include ansidecl.h.
4817 * defs.h: Do not include ansidecl.h.
4818 * common/buffer.h: Likewise.
4819 * common/common-utils.h: Likewise.
4820
4821 2014-08-07 Gary Benson <gbenson@redhat.com>
4822
4823 * common/common-defs.h: Include stddef.h.
4824 * defs.h: Do not include stddef.h.
4825 * common/common-utils.h: Likewise.
4826 * amd64fbsd-nat.c: Likewise.
4827 * bcache.c: Likewise.
4828 * charset.c: Likewise.
4829 * common/buffer.h: Likewise.
4830 * common/vec.h: Likewise.
4831 * i386bsd-nat.c: Likewise.
4832 * nat/linux-btrace.h: Likewise.
4833 * ppcfbsd-nat.c: Likewise.
4834 * ppcnbsd-tdep.h: Likewise.
4835 * ppcobsd-nat.c: Likewise.
4836 * ppcobsd-tdep.h: Likewise.
4837 * python/py-gdb-readline.c: Likewise.
4838
4839 2014-08-07 Gary Benson <gbenson@redhat.com>
4840
4841 * common/common-defs.h: Include stdarg.h.
4842 * defs.h: Do not include stdarg.h.
4843 * ada-lang.c: Likewise.
4844 * common/common-utils.h: Likewise.
4845 * guile/scm-string.c: Likewise.
4846 * guile/scm-utils.c: Likewise.
4847 * m32c-tdep.c: Likewise.
4848
4849 2014-08-07 Gary Benson <gbenson@redhat.com>
4850
4851 * common/common-defs.h: Include stdlib.h.
4852 * defs.h: Do not include stdlib.h.
4853 * addrmap.c: Likewise.
4854 * bcache.c: Likewise.
4855 * common/buffer.c: Likewise.
4856 * common/common-utils.c: Likewise.
4857 * cp-name-parser.y: Likewise.
4858 * go32-nat.c: Likewise.
4859 * mn10300-linux-tdep.c: Likewise.
4860 * nat/linux-osdata.c: Likewise.
4861 * tui/tui.c: Likewise.
4862 * windows-nat.c: Likewise.
4863
4864 2014-08-07 Gary Benson <gbenson@redhat.com>
4865
4866 * common/common-defs.h: Include stdio.h.
4867 * defs.h: Do not include stdio.h.
4868 * ada-lang.c: Likewise.
4869 * common/buffer.c: Likewise.
4870 * common/common-utils.c: Likewise.
4871 * cp-name-parser.y: Likewise.
4872 * gnu-nat.c: Likewise.
4873 * go32-nat.c: Likewise.
4874 * i386gnu-nat.c: Likewise.
4875 * proc-api.c: Likewise.
4876 * proc-events.c: Likewise.
4877 * proc-flags.c: Likewise.
4878 * proc-why.c: Likewise.
4879 * python/python-internal.h: Likewise.
4880 * target-memory.c: Likewise.
4881 * tui/tui-io.c: Likewise.
4882 * tui/tui.c: Likewise.
4883
4884 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4885
4886 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4887 (scan_dyntag_auxv): Same.
4888
4889 2014-08-06 Yao Qi <yao@codesourcery.com>
4890
4891 * amd64-linux-nat.c: Remove duplicated include
4892 "x86-linux-nat.h".
4893 * i386-linux-nat.c: Likewise.
4894
4895 2014-08-06 Yao Qi <yao@codesourcery.com>
4896
4897 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4898 operand" with "Special opcode" in comments.
4899
4900 2014-08-05 Gary Benson <gbenson@redhat.com>
4901
4902 * interps.c (initialize_interps): Remove prototype.
4903 (interpreter_initialized): Remove static global.
4904 (interp_add): Do not call initialize_interps.
4905 (initialize_interps): Remove function.
4906
4907 2014-08-05 Gary Benson <gbenson@redhat.com>
4908
4909 * utils.c (vwarning): Remove spurious va_end.
4910
4911 2014-08-05 Alan Modra <amodra@gmail.com>
4912
4913 * charset.c (convert_between_encodings): Cast result of obstack_base.
4914 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4915 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4916 (read_unwind_info): Use size_t for some locals.
4917 * jit.c (finalize_symtab): Likewise.
4918 * utils.c (hashtab_obstack_allocate): Likewise.
4919 * symmisc.c (print_objfile_statistics): Update format strings.
4920
4921 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4922
4923 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4924 (Changes in GDB 7.8): ... here.
4925
4926 2014-08-04 Tom Tromey <tromey@redhat.com>
4927
4928 * target.c (set_targetdebug): New function.
4929 (initialize_targets): Pass set_targetdebug when creating "set
4930 debug target".
4931
4932 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4933
4934 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4935 if detecting a variable-sized field that is not the last field.
4936 Fix struct type length computation.
4937
4938 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4939
4940 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4941 Add debug trace.
4942
4943 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4944
4945 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4946 Remove "+ 8" offset in computation of CHAIN_VMA.
4947
4948 2014-07-31 Doug Evans <dje@google.com>
4949
4950 * inflow.c (child_terminal_inferior): Add comment.
4951 (child_terminal_ours_for_output): Add comment.
4952 (child_terminal_ours): Add comment.
4953 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4954 (linux_nat_terminal_ours): Add comment.
4955
4956 2014-07-31 Gary Benson <gbenson@redhat.com>
4957
4958 * common/btrace-common.h: Do not include defs.h or server.h.
4959 * nat/mips-linux-watch.h: Likewise.
4960 * gdb-dlfcn.h: Do not include defs.h.
4961 * tracefile.h: Likewise.
4962
4963 2014-07-30 Roland McGrath <mcgrathr@google.com>
4964
4965 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4966
4967 2014-07-30 Tom Tromey <tromey@redhat.com>
4968
4969 * bsd-kvm.c (bsd_kvm_open): Constify.
4970 * corelow.c (core_open): Constify.
4971 * ctf.c (ctf_open): Constify.
4972 * dbug-rom.c (dbug_open): Constify.
4973 * exec.c (exec_open): Constify.
4974 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4975 * microblaze-rom.c (picobug_open): Constify.
4976 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4977 Constify.
4978 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4979 * record-btrace.c (record_btrace_open): Constify.
4980 * record-full.c (record_full_core_open_1, record_full_open_1)
4981 (record_full_open): Constify.
4982 * remote-m32r-sdi.c (m32r_open): Constify.
4983 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4984 (rockhopper_open, lsi_open): Constify.
4985 * remote-sim.c (gdbsim_open): Constify.
4986 * remote.c (remote_open, extended_remote_open, remote_open_1):
4987 Constify.
4988 * target.h (struct target_ops) <to_open>: Make "arg" const.
4989 * tracefile-tfile.c (tfile_open): Constify.
4990
4991 2014-07-30 Tom Tromey <tromey@redhat.com>
4992
4993 * breakpoint.c (map_breakpoint_numbers): Update.
4994 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4995 (get_number_const): New function.
4996 (get_number): Rewrite using get_number_const.
4997 (init_number_or_range): Make "string" const.
4998 (number_is_in_list): Make "list" const.
4999 * cli/cli-utils.h (get_number_const): Declare.
5000 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5001 (init_number_or_range, number_is_in_list): Update.
5002 * printcmd.c (map_display_numbers): Update.
5003 * value.c (value_from_history_ref): Constify.
5004 * value.h (value_from_history_ref): Update.
5005
5006 2014-07-30 Tom Tromey <tromey@redhat.com>
5007
5008 * corefile.c (hook_type, call_extra_exec_file_hooks)
5009 (specify_exec_file_hook): Constify.
5010 * exec.c (exec_file_attach): Make "filename" const.
5011 * gdbcore.h (deprecated_exec_file_display_hook)
5012 (specify_exec_file_hook, exec_file_attach): Constify.
5013 * main.c (captured_main): Use catch_command_errors_const.
5014
5015 2014-07-30 Tom Tromey <tromey@redhat.com>
5016
5017 * target.c (open_target): New function.
5018 (add_target_with_completer, add_deprecated_target_alias): Use
5019 set_cmd_sfunc, set_cmd_context.
5020 (debug_to_open): Remove.
5021 (setup_target_debug): Update.
5022
5023 2014-07-30 Yao Qi <yao@codesourcery.com>
5024
5025 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5026 comments.
5027 * parse.c (exp_iterate): Update comments.
5028
5029 2014-07-30 Gary Benson <gbenson@redhat.com>
5030
5031 * common/common-defs.h: New file.
5032 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5033 * defs.h: Include common-defs.h.
5034 Do not include config.h or build-gnulib/config.h.
5035
5036 2014-07-30 Gary Benson <gbenson@redhat.com>
5037
5038 * common/common-utils.h: Do not include config.h.
5039 * nat/linux-btrace.h: Likewise.
5040
5041 2014-07-30 Gary Benson <gbenson@redhat.com>
5042
5043 * btrace.c: Include defs.h.
5044 * common/ptid.c: Include defs.h or server.h as appropriate.
5045 * nat/mips-linux-watch.c: Likewise.
5046
5047 2014-07-29 Tom Tromey <tromey@redhat.com>
5048
5049 * target.c (target_is_pushed): Simplify.
5050
5051 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5052
5053 GDB 7.8 released.
5054
5055 2014-07-29 Yao Qi <yao@codesourcery.com>
5056
5057 PR gdb/17206
5058 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5059
5060 2014-07-28 Doug Evans <xdje42@gmail.com>
5061
5062 PR guile/17203
5063 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5064 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5065 parameters.
5066
5067 2014-07-28 Will Newton <will.newton@linaro.org>
5068
5069 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5070 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5071 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5072 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5073 (THUMB2_EABI_SYSCALL): Likewise.
5074 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5075 struct tramp_frame.
5076 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5077 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5078
5079 2014-07-27 Doug Evans <xdje42@gmail.com>
5080
5081 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5082
5083 2014-07-27 Doug Evans <xdje42@gmail.com>
5084
5085 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5086
5087 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5088 Doug Evans <xdje42@gmail.com>
5089
5090 PR guile/17146
5091 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5092 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5093 * configure.ac: Try to use guild to compile an scm file, if it fails
5094 then disable guile support.
5095 * configure: Regenerate.
5096 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5097 GUILE_FILE_LIST.
5098 (GUILE_COMPILED_FILES): New variable.
5099 (GUILE_FILES) Update.
5100 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5101 (stamp-guile): Compile scm files.
5102 * guile/guile.c (boot_guile_support): New function.
5103 (standard_throw_args_p): New function.
5104 (print_standard_throw_error, print_throw_error): New functions.
5105 (handle_boot_error): New function.
5106 (initialize_scheme_side): Rewrite to call boot_guile_support.
5107 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5108 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5109
5110 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5111 Doug Evans <xdje42@gmail.com>
5112
5113 PR guile/17146
5114 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5115 * guile/lib/gdb/support.scm: New file.
5116 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5117 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5118 All uses updated.
5119 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5120 All uses updated.
5121 (%assert-type): Ditto, and renamed to assert-type.
5122 (%exception-print-style): Delete.
5123
5124 2014-07-26 Doug Evans <xdje42@gmail.com>
5125
5126 PR build/17105
5127 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5128 * configure: Regenerate.
5129 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5130 PYTHON_FILES.
5131 (PYTHON_FILES): New variable.
5132 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5133 (GUILE_FILES): New variable.
5134 (stamp-python, install-python, uninstall-python): Handle empty
5135 file list.
5136 (stamp-guile, install-guile, uninstall-guile): Ditto.
5137
5138 2014-07-26 Doug Evans <xdje42@gmail.com>
5139
5140 PR guile/17177
5141 * guile/lib/gdb.scm (pretty-printers): Export.
5142 (set-pretty-printers!): Export.
5143 * guile/lib/gdb/printing.scm (gdb module): Update.
5144 (prepend-pretty-printer!, append-pretty-printer!): Update.
5145 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5146 (pretty_printer_list_var): Delete.
5147 (pretty_printer_list): New static global.
5148 (gdbscm_pretty_printers): New function.
5149 (gdbscm_set_pretty_printers_x): New function.
5150 (ppscm_find_pretty_printer_from_gdb): Update.
5151 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5152 (gdbscm_initialize_pretty_printers): Update.
5153
5154 2014-07-26 Doug Evans <xdje42@gmail.com>
5155
5156 PR 17185
5157 * configure.ac: Add check for header gc/gc.h.
5158 Add check for function setenv.
5159 * configure: Regenerate.
5160 * config.in: Regenerate.
5161 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5162
5163 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5164
5165 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5166 variation in gdbarch matching.
5167
5168 2014-07-25 Tom Tromey <tromey@redhat.com>
5169
5170 * exec.c (using_exec_ops): Remove.
5171 (exec_close_1): Update. Remove extraneous block, reindent.
5172 (add_target_sections): Use target_is_pushed.
5173
5174 2014-07-25 Pedro Alves <palves@redhat.com>
5175
5176 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5177 * monitor.c (monitor_create_inferior): Likewise.
5178 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5179 * remote-sim.c (gdbsim_create_inferior): Likewise.
5180 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5181 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5182 * windows-nat.c (do_initial_windows_stuff): Likewise.
5183
5184 2014-07-25 Pedro Alves <palves@redhat.com>
5185
5186 * NEWS: Mention signal passing and "signal" command changes.
5187 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5188 comment.
5189 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5190 call.
5191 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5192 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5193 (jump_command): Adjust clear_proceed_status call.
5194 (signal_command): Warn if other thread that are resumed have
5195 signals that will be delivered. Adjust clear_proceed_status call.
5196 (until_next_command, finish_command)
5197 (proceed_after_attach_callback, attach_command_post_wait)
5198 (attach_command): Adjust clear_proceed_status call.
5199 * infrun.c (proceed_after_vfork_done): Likewise.
5200 (proceed_after_attach_callback): Adjust comment.
5201 (clear_proceed_status_thread): Clear stop_signal if not in pass
5202 state.
5203 (clear_proceed_status_callback): Delete.
5204 (clear_proceed_status): New 'step' parameter. Only clear the
5205 proceed status of threads the command being prepared is about to
5206 resume.
5207 (proceed): If passed in an explicit signal, override stop_signal
5208 with it. Don't pass the last stop signal to the thread we're
5209 resuming.
5210 (init_wait_for_inferior): Adjust clear_proceed_status call.
5211 (switch_back_to_stepped_thread): Clear the signal if it should not
5212 be passed.
5213 * infrun.h (clear_proceed_status): New 'step' parameter.
5214 (user_visible_resume_ptid): Add comment.
5215 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5216 signal is in pass state.
5217 * remote.c (append_pending_thread_resumptions): Likewise.
5218 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5219
5220 2014-07-25 Tom Tromey <tromey@redhat.com>
5221
5222 * target.h (target_stopped_data_address)
5223 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5224 parentheses.
5225
5226 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5227
5228 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5229 comments.
5230 (avr_pointer_to_address): Likewise.
5231
5232 2014-07-24 Tom Tromey <tromey@redhat.com>
5233
5234 * monitor.c (compile_pattern): Update.
5235 * target.h (struct target_ops) <to_shortname, to_longname,
5236 to_doc>: Now const.
5237
5238 2014-07-24 Tom Tromey <tromey@redhat.com>
5239
5240 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5241 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5242 (add_info_alias, add_com): Make "doc" const.
5243 (print_doc_line): Make "str" const.
5244 (delete_cmd): Update.
5245 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5246 (print_doc_line): Update.
5247 * cli/cli-script.c (document_command): Update.
5248 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5249 (add_com, add_info, add_info_alias): Update.
5250 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5251 * python/py-cmd.c (cmdpy_destroyer): Update.
5252
5253 2014-07-24 Tom Tromey <tromey@redhat.com>
5254
5255 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5256 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5257 (help_cmd_list): Constify.
5258 (lookup_cmd): Update.
5259 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5260 const.
5261 (help_cmd_list, apropos_cmd): Update.
5262 * cli/cli-script.c (show_user): Update.
5263 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5264 * cli/cli-setshow.h (cmd_show_list): Update.
5265 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5266 (cmd_show_list): Update.
5267 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5268 * python/py-cmd.c (cmdpy_destroyer): Update.
5269
5270 2014-07-24 Tom Tromey <tromey@redhat.com>
5271
5272 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5273 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5274 const.
5275 * command.h (deprecate_cmd): Update.
5276 * maint.c (maintenance_do_deprecate): Add casts.
5277
5278 2014-07-24 Tom Tromey <tromey@redhat.com>
5279
5280 * cli/cli-decode.c (help_cmd): Make parameter "const".
5281 * cli/cli-decode.h (help_cmd): Update.
5282
5283 2014-07-24 Tom Tromey <tromey@redhat.com>
5284
5285 * stack.c (up_silently_base, down_silently_base): Make argument
5286 const.
5287
5288 2014-07-24 Tom Tromey <tromey@redhat.com>
5289
5290 * solib.c (solib_add): Make "pattern" const.
5291 * solib.h (solib_add): Update.
5292
5293 2014-07-24 Tom Tromey <tromey@redhat.com>
5294
5295 * remote.c (remote_serial_open, print_packet, putpkt)
5296 (putpkt_binary): Constify.
5297 * remote.h (putpkt): Update.
5298
5299 2014-07-24 Tom Tromey <tromey@redhat.com>
5300
5301 * monitor.c (monitor_open): Make "args" const.
5302 * monitor.h (monitor_open): Update.
5303
5304 2014-07-24 Tom Tromey <tromey@redhat.com>
5305
5306 * maint.c (match_bfd_flags): Make "string" const.
5307 (print_bfd_section_info): Remove casts.
5308 (print_objfile_section_info): Make "string" const.
5309
5310 2014-07-24 Tom Tromey <tromey@redhat.com>
5311
5312 * inf-child.c (inf_child_open_target): Make "arg" const.
5313 * inf-child.h (inf_child_open_target): Update.
5314
5315 2014-07-24 Tom Tromey <tromey@redhat.com>
5316
5317 * environ.c (unset_in_environ): Make "var" const.
5318 * environ.h (unset_in_environ): Update.
5319
5320 2014-07-24 Tom Tromey <tromey@redhat.com>
5321
5322 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5323 Make "cmd" const.
5324 (scan_filename_with_cleanup): Likewise.
5325 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5326 Make arguments const.
5327 (restore_command): Update.
5328
5329 2014-07-24 Pedro Alves <palves@redhat.com>
5330
5331 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5332
5333 2014-07-24 Tom Tromey <tromey@redhat.com>
5334 Gary Benson <gbenson@redhat.com>
5335
5336 * nat/linux-ptrace.c (additional_flags): New global.
5337 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5338 additional_flags; don't check GDBSERVER.
5339 (linux_ptrace_set_additional_flags): New function.
5340 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5341 Declare.
5342 * linux-nat.c (_initialize_linux_nat): Call
5343 linux_ptrace_set_additional_flags.
5344
5345 2014-07-24 Tom Tromey <tromey@redhat.com>
5346
5347 * make-target-delegates (munge_type, write_debugmethod): New
5348 functions.
5349 (debug_names): New global.
5350 ($TARGET_DEBUG_PRINTER): New global.
5351 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5352 name.
5353 Write debug methods. Generate init_debug_target.
5354 * target-debug.h: New file.
5355 * target-delegates.c: Rebuild.
5356 * target.c: Include target-debug.h.
5357 (debug_target): Hoist definition.
5358 (target_kill, target_get_section_table, target_memory_map)
5359 (target_flash_erase, target_flash_done, target_detach)
5360 (target_disconnect, target_wait, target_resume)
5361 (target_pass_signals, target_program_signals, target_follow_fork)
5362 (target_mourn_inferior, target_search_memory)
5363 (target_thread_address_space, target_close)
5364 (target_find_new_threads, target_core_of_thread)
5365 (target_verify_memory, target_insert_mask_watchpoint)
5366 (target_remove_mask_watchpoint): Remove targetdebug code.
5367 (debug_to_post_attach, debug_to_prepare_to_store)
5368 (debug_to_files_info, debug_to_insert_breakpoint)
5369 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5370 (debug_to_region_ok_for_hw_watchpoint)
5371 (debug_to_can_accel_watchpoint_condition)
5372 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5373 (debug_to_watchpoint_addr_within_range)
5374 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5375 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5376 (debug_to_terminal_init, debug_to_terminal_inferior)
5377 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5378 (debug_to_terminal_save_ours, debug_to_terminal_info)
5379 (debug_to_load, debug_to_post_startup_inferior)
5380 (debug_to_insert_fork_catchpoint)
5381 (debug_to_remove_fork_catchpoint)
5382 (debug_to_insert_vfork_catchpoint)
5383 (debug_to_remove_vfork_catchpoint)
5384 (debug_to_insert_exec_catchpoint)
5385 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5386 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5387 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5388 (setup_target_debug): Call init_debug_target.
5389 * target.h (TARGET_DEBUG_PRINTER): New macro.
5390 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5391 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5392
5393 2014-07-24 Gary Benson <gbenson@redhat.com>
5394
5395 * exceptions.h (throw_vfatal): Renamed to...
5396 (throw_vquit): New declaration.
5397 (throw_quit): Likewise.
5398 * exceptions.c (throw_vfatal): Renamed to...
5399 (throw_vquit): New function.
5400 (throw_quit): Likewise.
5401 (throw_error): Call throw_verror rather than throw_it.
5402 * utils.h (vfatal): Removed.
5403 (fatal): Likewise.
5404 * utils.c (vfatal): Removed.
5405 (fatal): Likewise.
5406 (internal_verror): Replaced call to fatal with call to throw_quit.
5407 (quit): Replaced calls to fatal with calls to throw_quit.
5408
5409 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5410
5411 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5412 target_read_code.
5413
5414 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5415
5416 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5417 less than zero in conditional expression.
5418
5419 2014-07-23 Tom Tromey <tromey@redhat.com>
5420
5421 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5422 ($INTRO_PART): Don't match whitespace.
5423 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5424 argument matching.
5425 ($METHOD): Add $METHOD_TRAILER.
5426 (trim): Rewrite.
5427 (scan_target_h): New sub.
5428 Change main loop not to collect state.
5429 * target-delegates.c: Rebuild.
5430
5431 2014-07-23 Gary Benson <gbenson@redhat.com>
5432
5433 * cp-support.c (gdb_demangle): Fix build on systems without
5434 sigaltstack.
5435
5436 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5437
5438 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5439 for reference entry value target data value.
5440
5441 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5442
5443 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5444 value_available_contents_eq.
5445
5446 2014-07-22 Pedro Alves <palves@redhat.com>
5447
5448 * value.c (allocate_optimized_out_value): Don't mark value as
5449 non-lazy.
5450
5451 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5452
5453 * MAINTAINERS (Write After Approval): Update my email address.
5454
5455 2014-07-20 Doug Evans <dje@google.com>
5456
5457 PR server/17147
5458 * remote.c (putpkt_binary): Add text to error message.
5459
5460 2014-07-20 Yao Qi <yao@codesourcery.com>
5461
5462 * eval.c: Remove "Chill" from comments.
5463 * gdbtypes.h: Likewise.
5464 * symtab.h: Likewise.
5465
5466 2014-07-20 Yao Qi <yao@codesourcery.com>
5467
5468 * std-operator.def: Update comments to TERNOP_SLICE.
5469
5470 2014-07-20 Yao Qi <yao@codesourcery.com>
5471
5472 * std-operator.def: Remove BINOP_RANGE.
5473 * breakpoint.c (watchpoint_exp_is_const): Update.
5474 * expprint.c (dump_subexp_body_standard): Likewise.
5475 * eval.c (init_array_element): Remove dead code.
5476 (evaluate_subexp_standard): Likewise.
5477
5478 2014-07-20 Yao Qi <yao@codesourcery.com>
5479
5480 * std-operator.def: Remove BINOP_IN.
5481 * breakpoint.c (watchpoint_exp_is_const): Update.
5482 * eval.c (evaluate_subexp_standard): Likewise.
5483 * expprint.c (dump_subexp_body_standard): Likewise.
5484
5485 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5486
5487 * microblaze-tdep.c (microblaze_register_names): Add
5488 the rshr and rslr register names.
5489 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5490 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5491 Use of tdesc_numbered_register. Use of
5492 microblaze_register_g_packet_guesses. Use of
5493 tdesc_use_registers. Use of set_gdbarch_register_type.
5494 (microblaze_register_g_packet_guesses): New.
5495 * microblaze-tdep.h (microblaze_reg_num): Add
5496 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5497 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5498 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5499 * features/microblaze-core.xml: New file.
5500 * features/microblaze-stack-protect.xml: New file.
5501 * features/microblaze-with-stack-protect.c: New file.
5502 * features/microblaze-with-stack-protect.xml: New file.
5503 * features/microblaze.xml: New file.
5504 * features/microblaze.c: New file.
5505 * features/Makefile (microblaze-with-stack-protect): Add
5506 microblaze-with-stack-protect microblaze and microblaze-expedite.
5507 * regformats/microblaze-with-stack-protect.dat: New file.
5508 * regformats/microblaze.dat: New file.
5509 * doc/gdb.texinfo (MicroBlaze Features): Added.
5510
5511 2014-07-18 Tom Tromey <tromey@redhat.com>
5512
5513 * exec.c (exec_ops): Now static.
5514 * exec.h (exec_ops): Don't declare.
5515
5516 2014-07-18 Tom Tromey <tromey@redhat.com>
5517
5518 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5519 to find_target_beneath.
5520 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5521 find_target_beneath.
5522 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5523
5524 2014-07-18 Tom Tromey <tromey@redhat.com>
5525
5526 PR gdb/17130:
5527 * utils.c (quit): Use target_supports_terminal_ours.
5528 * target.h (target_supports_terminal_ours): Declare.
5529 * target.c (target_supports_delete_record): Don't check
5530 to_delete_record against NULL.
5531 (target_supports_terminal_ours): New function.
5532
5533 2014-07-18 Tom Tromey <tromey@redhat.com>
5534
5535 PR gdb/17130:
5536 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5537 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5538 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5539 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5540 * windows-nat.c (windows_xfer_partial): Always delegate.
5541 * record-btrace.c (record_btrace_xfer_partial): Simplify
5542 delegation.
5543 (record_btrace_fetch_registers, record_btrace_store_registers)
5544 (record_btrace_prepare_to_store, record_btrace_resume)
5545 (record_btrace_wait, record_btrace_find_new_threads)
5546 (record_btrace_thread_alive): Likewise.
5547 * procfs.c (procfs_xfer_partial): Always delegate.
5548 * corelow.c (core_xfer_partial): Always delegate.
5549 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5550
5551 2014-07-18 Tom Tromey <tromey@redhat.com>
5552
5553 * exec.c (exec_make_note_section): Move earlier.
5554
5555 2014-07-17 Doug Evans <dje@google.com>
5556
5557 PR gdb/17170
5558 * maint.c (count_symtabs_and_blocks): Handle NULL
5559 current_program_space.
5560 (report_command_stats): Check global enabled flag in addition to
5561 recorded enabled flag.
5562 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5563
5564 2014-07-16 Pedro Alves <palves@redhat.com>
5565
5566 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5567
5568 2014-07-16 Tom Tromey <tromey@redhat.com>
5569
5570 * target.h (struct target_ops) <to_delete_record>: Reformat
5571 comment.
5572
5573 2014-07-16 Tom Tromey <tromey@redhat.com>
5574
5575 * target-delegates.c: Rebuild.
5576
5577 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5578
5579 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5580 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5581 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5582 (avr_pointer_to_address): Likewise.
5583 (avr_address_class_type_flags): New function.
5584 (avr_address_class_type_flags_to_name): Likewise.
5585 (avr_address_class_name_to_type_flags): Likewise.
5586 (avr_gdbarch_init): Set address_class_type_flags,
5587 address_class_type_flags_to_name and
5588 address_class_name_to_type_flags.
5589
5590 2014-07-15 Pedro Alves <palves@redhat.com>
5591
5592 * linux-nat.c (kill_callback): Save errno and work with saved
5593 copy.
5594
5595 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5596
5597 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5598
5599 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5600
5601 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5602 breakpoint support correctly.
5603
5604 2014-07-14 Pedro Alves <palves@redhat.com>
5605
5606 * utils.c (prompt_for_continue): Call target_terminal_ours.
5607
5608 2014-07-14 Pedro Alves <palves@redhat.com>
5609
5610 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5611 catch_errors. Don't re-enable stdin or notify observers where,
5612 and rethrow error.
5613 (fetch_inferior_event_wrapper): Delete.
5614
5615 2014-07-14 Pedro Alves <palves@redhat.com>
5616
5617 PR gdb/17072
5618 * top.c: Include "inf-loop.h".
5619 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5620 field.
5621 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5622 was async before.
5623 (gdb_readline_wrapper): Store whether the target is async, and
5624 make it sync.
5625
5626 2014-07-14 Pedro Alves <palves@redhat.com>
5627
5628 PR gdb/17072
5629 * top.c (gdb_readline_wrapper_line): Tweak comment.
5630 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5631 the input handler callback.
5632
5633 2014-07-14 Pedro Alves <palves@redhat.com>
5634
5635 PR gdb/17072
5636 * main.c: Include event-top.h.
5637 (handle_command_errors): New function.
5638 (catch_command_errors, catch_command_errors_const): Use it.
5639
5640 2014-07-14 Pedro Alves <palves@redhat.com>
5641
5642 * exceptions.c (catch_command_errors, catch_command_errors_const):
5643 Moved to main.c.
5644 * exceptions.h (catch_command_errors_ftype)
5645 (catch_command_errors_const_ftype): Moved to main.c.
5646 (catch_command_errors, catch_command_errors_const): Delete
5647 declarations.
5648 * main.c (catch_command_errors_ftype)
5649 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5650 (catch_command_errors, catch_command_errors_const)): Moved here
5651 from exceptions.c and make static.
5652
5653 2014-07-14 Pedro Alves <palves@redhat.com>
5654
5655 * exceptions.c (print_any_exception): Delete.
5656 (catch_exceptions_with_msg): Use exception_print instead of
5657 print_any_exception.
5658 (catch_errors): Use exception_fprintf instead of
5659 print_any_exception.
5660 (catch_command_errors, catch_command_errors_const): Use
5661 exception_print instead of print_any_exception.
5662
5663 2014-07-14 Pedro Alves <palves@redhat.com>
5664
5665 * infcall.c (run_inferior_call): Set 'sync_execution' while
5666 running the inferior call.
5667
5668 2014-07-14 Pedro Alves <palves@redhat.com>
5669
5670 * value.c (value_contents_equal): Delete function.
5671 * value.h (value_contents_equal): Delete declaration.
5672
5673 2014-07-14 Tom Tromey <tromey@redhat.com>
5674
5675 PR exp/17106:
5676 * gdbtypes.c (is_dynamic_type_internal): New function, from
5677 is_dynamic_type.
5678 (is_dynamic_type): Rewrite.
5679 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5680 (resolve_dynamic_struct): Likewise.
5681 (resolve_dynamic_type_internal): New function, from
5682 resolve_dynamic_type.
5683 (resolve_dynamic_type): Rewrite.
5684
5685 2014-07-14 Tom Tromey <tromey@redhat.com>
5686
5687 * target.c (target_require_runnable): Also check record_stratum.
5688 Update comment.
5689
5690 2014-07-11 Yao Qi <yao@codesourcery.com>
5691
5692 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5693 thumb_instruction_restores_sp return true.
5694
5695 2014-07-11 Yao Qi <yao@codesourcery.com>
5696
5697 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5698 (thumb_in_function_epilogue_p): Call
5699 thumb_instruction_restores_sp.
5700
5701 2014-07-11 Yao Qi <yao@codesourcery.com>
5702
5703 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5704 'add sp, #imm'.
5705 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5706
5707 2014-07-11 Gary Benson <gbenson@redhat.com>
5708
5709 * amd64-linux-nat.c (gdbcore.h): Remove include.
5710 (regset.h): Likewise.
5711 (nat/linux-btrace.h): Likewise.
5712 (btrace.h): Likewise.
5713 (gdb_assert.h): Likewise.
5714 (string.h): Likewise.
5715 (sys/uio.h): Likewise.
5716 (sys/debugreg.h): Likewise.
5717 (sys/syscall.h): Likewise.
5718 (sys/procfs.h): Likewise.
5719 (sys/user.h): Likewise.
5720 (asm/ptrace.h): Likewise.
5721 (i386-nat.h): Likewise.
5722 * i386-linux-nat.c (i386-nat.h): Likewise.
5723 (regset.h): Likewise.
5724 (target.h): Likewise.
5725 (linux-nat.h): Likewise.
5726 (nat/linux-btrace.h): Likewise.
5727 (btrace.h): Likewise.
5728 (gdb_assert.h): Likewise.
5729 (string.h): Likewise.
5730 (sys/uio.h): Likewise.
5731 (sys/user.h): Likewise.
5732 (sys/procfs.h): Likewise.
5733 (sys/reg.h): Likewise.
5734 (sys/debugreg.h): Likewise.
5735 (ORIG_EAX): Remove definition.
5736
5737 2014-07-11 Gary Benson <gbenson@redhat.com>
5738
5739 * i386-linux-nat.h: New file.
5740 * x86-linux-nat.h: Likewise.
5741 * x86-linux-nat.c: Likewise.
5742 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5743 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5744 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5745 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5746 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5747 (PTRACE_SETREGSET): Likewise.
5748 (arch_lwp_info): Now in x86-linux-nat.c.
5749 (have_ptrace_getregset): Now in x86-linux-nat.h.
5750 (x86_linux_dr_get): Now in x86-linux-nat.c.
5751 (x86_linux_dr_set): Likewise.
5752 (x86_linux_dr_get_addr): Likewise.
5753 (x86_linux_dr_get_control): Likewise.
5754 (x86_linux_dr_get_status): Likewise.
5755 (update_debug_registers_callback): Likewise.
5756 (x86_linux_dr_set_control): Likewise.
5757 (x86_linux_dr_set_addr): Likewise.
5758 (x86_linux_prepare_to_resume): Likewise.
5759 (x86_linux_new_thread): Likewise.
5760 (x86_linux_new_fork): Likewise.
5761 (x86_linux_get_thread_area): Likewise.
5762 (super_post_startup_inferior): Likewise.
5763 (x86_linux_child_post_startup_inferior): Likewise.
5764 (AMD64_LINUX_USER64_CS): Likewise.
5765 (AMD64_LINUX_X32_DS): Likewise.
5766 (x86_linux_read_description): Likewise.
5767 (x86_linux_enable_btrace): Likewise.
5768 (x86_linux_disable_btrace): Likewise.
5769 (x86_linux_teardown_btrace): Likewise.
5770 (x86_linux_read_btrace): Likewise.
5771 (x86_linux_create_target): Likewise.
5772 (x86_linux_add_target): Likewise.
5773 * i386-linux-nat.c (x86-linux-nat.h): New include.
5774 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5775 (PTRACE_SETREGSET): Likewise.
5776 (arch_lwp_info): Now in x86-linux-nat.c.
5777 (have_ptrace_getregset): Now in x86-linux-nat.h.
5778 (x86_linux_dr_get): Now in x86-linux-nat.c.
5779 (x86_linux_dr_set): Likewise.
5780 (x86_linux_dr_get_addr): Likewise.
5781 (x86_linux_dr_get_control): Likewise.
5782 (x86_linux_dr_get_status): Likewise.
5783 (update_debug_registers_callback): Likewise.
5784 (x86_linux_dr_set_control): Likewise.
5785 (x86_linux_dr_set_addr): Likewise.
5786 (x86_linux_prepare_to_resume): Likewise.
5787 (x86_linux_new_thread): Likewise.
5788 (x86_linux_new_fork): Likewise.
5789 (x86_linux_get_thread_area): Likewise.
5790 (super_post_startup_inferior): Likewise.
5791 (x86_linux_child_post_startup_inferior): Likewise.
5792 (AMD64_LINUX_USER64_CS): Likewise.
5793 (AMD64_LINUX_X32_DS): Likewise.
5794 (x86_linux_read_description): Likewise.
5795 (x86_linux_enable_btrace): Likewise.
5796 (x86_linux_disable_btrace): Likewise.
5797 (x86_linux_teardown_btrace): Likewise.
5798 (x86_linux_read_btrace): Likewise.
5799 (x86_linux_create_target): Likewise.
5800 (x86_linux_add_target): Likewise.
5801
5802 2014-07-11 Gary Benson <gbenson@redhat.com>
5803
5804 * amd64-linux-nat.c: Comment and whitespace changes.
5805 * i386-linux-nat.c: Comment and whitespace changes.
5806
5807 2014-07-11 Gary Benson <gbenson@redhat.com>
5808
5809 * amd64-linux-nat.c (x86_linux_create_target): New function.
5810 (x86_linux_add_target): Likewise.
5811 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5812 * i386-linux-nat.c (x86_linux_create_target): New function.
5813 (x86_linux_add_target): Likewise.
5814 (_initialize_i386_linux_nat): Delegate to the above new functions.
5815
5816 2014-07-11 Gary Benson <gbenson@redhat.com>
5817
5818 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5819 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5820 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5821 (ps_get_thread_area): Delegate to the above.
5822
5823 2014-07-11 Gary Benson <gbenson@redhat.com>
5824
5825 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5826 x86_linux_read_description. All uses updated. amd64-specific
5827 code conditionalized. Conditionalized i386-specific code added.
5828 Redundant cast removed.
5829 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5830 x86_linux_read_description. All uses updated. i386-specific
5831 code conditionalized. Conditionalized amd64-specific code added.
5832 One sizeof replaced with the actual type it is describing.
5833
5834 2014-07-11 Gary Benson <gbenson@redhat.com>
5835
5836 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5837 x86_linux_dr_get. All uses updated.
5838 (amd64_linux_dr_set): Renamed to
5839 x86_linux_dr_set. All uses updated.
5840 (amd64_linux_dr_get_addr): Renamed to
5841 x86_linux_dr_get_addr. All uses updated.
5842 (amd64_linux_dr_get_control): Renamed to
5843 x86_linux_dr_get_control. All uses updated.
5844 (amd64_linux_dr_get_status): Renamed to
5845 x86_linux_dr_get_status. All uses updated.
5846 (amd64_linux_dr_set_control): Renamed to
5847 x86_linux_dr_set_control. All uses updated.
5848 (amd64_linux_dr_set_addr): Renamed to
5849 x86_linux_dr_set_addr. All uses updated.
5850 (amd64_linux_prepare_to_resume): Renamed to
5851 x86_linux_prepare_to_resume. All uses updated.
5852 (amd64_linux_new_thread): Renamed to
5853 x86_linux_new_thread. All uses updated.
5854 (amd64_linux_new_fork): Renamed to
5855 x86_linux_new_fork. All uses updated.
5856 (amd64_linux_child_post_startup_inferior): Renamed to
5857 x86_linux_child_post_startup_inferior. All uses updated.
5858 (amd64_linux_enable_btrace): Renamed to
5859 x86_linux_enable_btrace. All uses updated.
5860 (amd64_linux_disable_btrace): Renamed to
5861 x86_linux_disable_btrace. All uses updated.
5862 (amd64_linux_teardown_btrace): Renamed to
5863 x86_linux_teardown_btrace. All uses updated.
5864 (amd64_linux_read_btrace): Renamed to
5865 x86_linux_read_btrace. All uses updated.
5866 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5867 x86_linux_dr_get. All uses updated.
5868 (i386_linux_dr_set): Renamed to
5869 x86_linux_dr_set. All uses updated.
5870 (i386_linux_dr_get_addr): Renamed to
5871 x86_linux_dr_get_addr. All uses updated.
5872 (i386_linux_dr_get_control): Renamed to
5873 x86_linux_dr_get_control. All uses updated.
5874 (i386_linux_dr_get_status): Renamed to
5875 x86_linux_dr_get_status. All uses updated.
5876 (i386_linux_dr_set_control): Renamed to
5877 x86_linux_dr_set_control. All uses updated.
5878 (i386_linux_dr_set_addr): Renamed to
5879 x86_linux_dr_set_addr. All uses updated.
5880 (i386_linux_prepare_to_resume): Renamed to
5881 x86_linux_prepare_to_resume. All uses updated.
5882 (i386_linux_new_thread): Renamed to
5883 x86_linux_new_thread. All uses updated.
5884 (i386_linux_new_fork): Renamed to
5885 x86_linux_new_fork. All uses updated.
5886 (i386_linux_child_post_startup_inferior): Renamed to
5887 x86_linux_child_post_startup_inferior. All uses updated.
5888 (i386_linux_enable_btrace): Renamed to
5889 x86_linux_enable_btrace. All uses updated.
5890 (i386_linux_disable_btrace): Renamed to
5891 x86_linux_disable_btrace. All uses updated.
5892 (i386_linux_teardown_btrace): Renamed to
5893 x86_linux_teardown_btrace. All uses updated.
5894 (i386_linux_read_btrace): Renamed to
5895 x86_linux_read_btrace. All uses updated.
5896
5897 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5898
5899 * remote.c (extended_remote_post_attach): New function.
5900 (init_extended_remote_ops): Install it as to_post_attach method.
5901
5902 2014-07-09 Pedro Alves <palves@redhat.com>
5903
5904 * infcmd.c (attach_command_post_wait): Don't call
5905 target_terminal_inferior here.
5906 (attach_command): Call it here instead.
5907
5908 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5909
5910 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5911 field.
5912 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5913 from varobj.c, with additional checks.
5914 (c_varobj_ops): Fill in is_path_expr_parent field.
5915 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5916 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5917 field.
5918 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5919 ops method.
5920 (varobj_default_is_path_expr_parent): New function.
5921 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5922 (varobj_default_is_path_expr_parent): Declare new function.
5923
5924 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5925
5926 * infcmd.c (finish_backward): Turn internal error into normal error.
5927
5928 2014-07-07 Pedro Alves <palves@redhat.com>
5929
5930 PR gdb/17096
5931 * remote.c (async_handle_remote_sigint)
5932 (async_handle_remote_sigint_twice): Call
5933 gdb_call_async_signal_handler instead of
5934 mark_async_signal_handler.
5935
5936 2014-07-07 Tom Tromey <tromey@redhat.com>
5937
5938 * target-delegates.c: Rebuild.
5939 * target.c (target_info_record): Remove.
5940 * record.c (info_record_command): Unconditionally call
5941 to_info_record.
5942 * target.h (struct target_ops) <to_info_record>: Use
5943 TARGET_DEFAULT_IGNORE.
5944 (target_info_record): Remove.
5945
5946 2014-07-07 Tom Tromey <tromey@redhat.com>
5947
5948 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5949 TARGET_DEFAULT_NORETURN.
5950 * target.c (generic_tls_error): New function.
5951 (target_translate_tls_address): Don't search target stack.
5952 * target-delegates.c: Rebuild.
5953 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5954 stack.
5955 * linux-thread-db.c (thread_db_get_thread_local_address):
5956 Unconditionally call beneath target.
5957
5958 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5959
5960 * cli/cli-logging.c (pop_output_files): Assign targerr to
5961 gdb_stdtargerr.
5962
5963 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5964
5965 * MAINTAINERS (Write After Approval): Update my email address.
5966
5967 2014-07-02 Gary Benson <gbenson@redhat.com>
5968
5969 * proc-service.c (ps_xfer_memory): Update comment.
5970 (ps_pstop): Remove unused function.
5971 (ps_pcontinue): Likewise.
5972 (ps_lstop): Likewise.
5973 (ps_lcontinue): Likewise.
5974 (ps_lgetxregsize): Likewise.
5975 (ps_lgetxregs): Likewise.
5976 (ps_lsetxregs): Likewise.
5977 (ps_plog): Likewise.
5978 (ps_ptread): Likewise.
5979 (ps_ptwrite): Likewise.
5980
5981 2014-07-01 Mark Wielaard <mjw@redhat.com>
5982
5983 * dwarf2read.c (add_array_cv_type): New function.
5984 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5985 (read_tag_volatile_type): Likewise.
5986
5987 2014-07-01 Tom Tromey <tromey@redhat.com>
5988
5989 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5990 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5991 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5992 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5993 * command.h (cmd_cfunc_ftype): Move earlier.
5994 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5995 (add_com, add_info): Use cmd_cfunc_ftype.
5996
5997 2014-06-30 Tom Tromey <tromey@redhat.com>
5998
5999 * symtab.c (operator_chars): Make parameters and return type
6000 const.
6001 (file_matches): Make "files" const.
6002 (struct search_symbols_data) <files>: Now const.
6003 (search_symbols): Make "regexp" and "files" parameters const.
6004 Update.
6005 (symtab_symbol_info): Remove cast.
6006 (rbreak_command): Update.
6007 * symtab.h (search_symbols): Update.
6008
6009 2014-06-27 Yao Qi <yao@codesourcery.com>
6010
6011 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6012 Change parameter type to 'struct thread_info *'. Caller
6013 updated.
6014 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6015 Update declaration.
6016 * dummy-frame.c (struct dummy_frame_id): New.
6017 (dummy_frame_id_eq): New function.
6018 (struct dummy_frame) <id>: Change its type to 'struct
6019 dummy_frame_id'.
6020 (dummy_frame_push): Add parameter ptid and save it in
6021 dummy_frame_id.
6022 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6023 inferior_ptid.
6024 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6025 to inferior_ptid.
6026 (lookup_dummy_frame): Change parameter type to 'struct
6027 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6028 instead of frame_id_eq.
6029 (dummy_frame_pop): Add parameter ptid. Callers updated.
6030 Update comments. Compose dummy_frame_id and pass it to
6031 lookup_dummy_frame.
6032 (dummy_frame_discard): Add parameter ptid.
6033 (dummy_frame_sniffer): Compose dummy_frame_id and call
6034 dummy_frame_id_eq instead of frame_id_eq.
6035 (fprint_dummy_frames): Print ptid.
6036 * dummy-frame.h: Remove comments.
6037 (dummy_frame_push): Add ptid in declaration.
6038 (dummy_frame_pop, dummy_frame_discard): Likewise.
6039
6040 2014-06-26 Tom Tromey <tromey@redhat.com>
6041
6042 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6043 * command.h (error_no_arg): Update.
6044
6045 2014-06-26 Tom Tromey <tromey@redhat.com>
6046
6047 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6048 (do_show_command): Make "arg" const.
6049 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6050
6051 2014-06-26 Tom Tromey <tromey@redhat.com>
6052
6053 * record-full.c (record_full_get_bookmark): Make "args" const.
6054 (record_full_goto_bookmark): Make "raw_bookmark" const.
6055 * record.c (record_goto): New function.
6056 (cmd_record_goto): Use it. Now static.
6057 * record.h (record_goto): Declare.
6058 (cmd_record_goto): Remove declaration.
6059 * target-delegates.c: Rebuild.
6060 * target.h (struct target_ops) <to_get_bookmark,
6061 to_goto_bookmark>: Make parameter const.
6062
6063 2014-06-26 Tom Tromey <tromey@redhat.com>
6064
6065 * defs.h (generic_load): Update.
6066 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6067 * monitor.c (monitor_load): Make "args" const.
6068 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6069 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6070 const.
6071 (mips_load): Make "file" const.
6072 * remote-sim.c (gdbsim_load): Make "args" const.
6073 * remote.c (remote_load): Make "name" const.
6074 * symfile.c (generic_load): Make "args" const.
6075 * target-delegates.c: Rebuild.
6076 * target.c (target_load): Make "arg" const.
6077 (debug_to_load): Make "args" const.
6078 * target.h (struct target_ops) <to_load>: Make parameter const.
6079 (target_load): Update.
6080
6081 2014-06-26 Tom Tromey <tromey@redhat.com>
6082
6083 PR symtab/16902:
6084 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6085 (dwarf2_physname, read_partial_die)
6086 (guess_partial_die_structure_name, fixup_partial_die)
6087 (guess_full_die_structure_name, anonymous_struct_prefix)
6088 (dwarf2_name): Use per-BFD obstack.
6089
6090 2014-06-26 Yao Qi <yao@codesourcery.com>
6091
6092 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6093 dummyframe and this_id into inner block below.
6094
6095 2014-06-26 Yao Qi <yao@codesourcery.com>
6096
6097 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6098 with "signal_pass[0]" in the initialization of signal_pass.
6099
6100 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6101
6102 * record-btrace.c (record_btrace_generating_corefile)
6103 (record_btrace_prepare_to_generate_core)
6104 (record_btrace_done_generating_core): New.
6105 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6106 (record_btrace_store_registers, record_btrace_prepare_to_store):
6107 Forward request when generating a core file.
6108 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6109 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6110 to_done_generating_core.
6111
6112 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6113
6114 * target.h (target_ops) <to_prepare_to_generate_core>
6115 <to_done_generating_core>: New.
6116 (target_prepare_to_generate_core, target_done_generating_core): New.
6117 * target.c (target_prepare_to_generate_core)
6118 (target_done_generating_core): New.
6119 * target-delegates.c: Regenerate.
6120 * gcore.c: (write_gcore_file): Rename to ...
6121 (write_gcore_file_1): ...this.
6122 (write_gcore_file): Call target_prepare_to_generate_core
6123 and target_done_generating_core.
6124
6125 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6126
6127 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6128 * gcore.c (write_gcore_file): Free memory returned from
6129 make_corefile_notes.
6130 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6131 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6132
6133 2014-06-24 Yao Qi <yao@codesourcery.com>
6134
6135 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6136 (arm_linux_init_abi): Set skip_trampoline_code with
6137 gdbarch_skip_trampoline_code instead of
6138 find_solib_trampoline_target.
6139
6140 2014-06-24 Yao Qi <yao@codesourcery.com>
6141
6142 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6143 arm_skip_bx_reg returns non-zero.
6144
6145 2014-06-24 Yao Qi <yao@codesourcery.com>
6146
6147 * arm-tdep.c (arm_skip_bx_reg): New function.
6148 (arm_skip_stub): Call arm_skip_bx_reg.
6149
6150 2014-06-23 Don Breazeal <donb@codesourcery.com>
6151
6152 * MAINTAINERS: Add myself as write-after-approval maintainer.
6153
6154 2014-06-23 Pedro Alves <palves@redhat.com>
6155
6156 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6157 DR_CONTROL before setting DR0..DR3.
6158 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6159 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6160 bits of DR_CONTROL related to the debug register slot being
6161 disabled. If all slots are vacant, clear local slowdown as well,
6162 and assert DR_CONTROL is 0.
6163
6164 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6165
6166 * python/lib/gdb/command/xmethods.py
6167 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6168 current progspace only if the string "progspace" matches LOCUS_RE.
6169
6170 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6171
6172 Fix --with-system-readline with readline-6.3 patch 5.
6173 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6174 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6175 types.
6176
6177 2014-06-20 Tom Tromey <tromey@redhat.com>
6178
6179 * dwarf2read.c (dw2_get_real_path): Use correct type in
6180 OBSTACK_CALLOC.
6181 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6182
6183 2014-06-20 Gary Benson <gbenson@redhat.com>
6184
6185 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6186 * common/glibc_thread_db.h: Likewise.
6187 * common/i386-cpuid.h: Likewise.
6188 * common/i386-gcc-cpuid.h: Likewise.
6189 * common/linux-btrace.h: Likewise.
6190 * common/linux-osdata.h: Likewise.
6191 * common/linux-procfs.h: Likewise.
6192 * common/linux-ptrace.h: Likewise.
6193 * common/mips-linux-watch.h: Likewise.
6194 * common/linux-btrace.c: Moved to nat.
6195 * common/linux-osdata.c: Likewise.
6196 * common/linux-procfs.c: Likewise.
6197 * common/linux-ptrace.c: Likewise.
6198 * common/mips-linux-watch.c: Likewise.
6199 * nat/gdb_thread_db.h: Moved from common.
6200 * nat/glibc_thread_db.h: Likewise.
6201 * nat/i386-cpuid.h: Likewise.
6202 * nat/i386-gcc-cpuid.h: Likewise.
6203 * nat/linux-btrace.c: Likewise.
6204 * nat/linux-btrace.h: Likewise.
6205 * nat/linux-osdata.c: Likewise.
6206 * nat/linux-osdata.h: Likewise.
6207 * nat/linux-procfs.c: Likewise.
6208 * nat/linux-procfs.h: Likewise.
6209 * nat/linux-ptrace.c: Likewise.
6210 * nat/linux-ptrace.h: Likewise.
6211 * nat/mips-linux-watch.c: Likewise.
6212 * nat/mips-linux-watch.h: Likewise.
6213 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6214 (object file files): Reordered.
6215 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6216 of glibc_thread_db.h.
6217
6218 2014-06-20 Gary Benson <gbenson@redhat.com>
6219
6220 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6221 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6222 (i386_dr_low): Likewise.
6223 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6224 (i386_dr_low_set_addr): Likewise.
6225 (i386_dr_low_get_addr): Likewise.
6226 (i386_dr_low_can_set_control): Likewise.
6227 (i386_dr_low_set_control): Likewise.
6228 (i386_dr_low_get_control): Likewise.
6229 (i386_dr_low_get_status): Likewise.
6230 (i386_get_debug_register_length): Likewise.
6231 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6232 (i386_dr_low): Likewise.
6233 * nat/i386-dregs.c (i386-low.h): Remove include.
6234 (i386-nat.h): Likewise.
6235 (nat/i386-dregs.h): New include.
6236 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6237 (i386_dr_low_set_addr): Likewise.
6238 (i386_dr_low_get_addr): Likewise.
6239 (i386_dr_low_can_set_control): Likewise.
6240 (i386_dr_low_set_control): Likewise.
6241 (i386_dr_low_get_control): Likewise.
6242 (i386_dr_low_get_status): Likewise.
6243 (i386_get_debug_register_length): Likewise.
6244 (debug_hw_points): Likewise.
6245
6246 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6247
6248 * Makefile.in (SFILES): Add d-exp.y.
6249 (YYFILES): Add d-exp.c.
6250 (YYOBJ): Add d-exp.o.
6251 (local-maintainer-clean): Delete d-exp.c.
6252 * d-exp.y: New file.
6253 * d-lang.h (d_parse): New declaration.
6254 (d_error): New declaration.
6255 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6256 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6257 PREC_ORDER operators.
6258 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6259
6260 2014-06-19 Yao Qi <yao@codesourcery.com>
6261
6262 * gdbthread.h (any_running): Remove the declaration.
6263 * thread.c (any_running): Remove.
6264
6265 2014-06-19 Yao Qi <yao@codesourcery.com>
6266
6267 * gdbthread.h (struct thread_info) <state>: Change its type to
6268 'enum thread_state'. Update comments.
6269
6270 2014-06-19 Pedro Alves <palves@redhat.com>
6271
6272 * gdbthread.h (ALL_THREADS): Delete.
6273 (ALL_NON_EXITED_THREADS): New macro.
6274 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6275 instead of ALL_THREADS.
6276 * infrun.c (find_thread_needs_step_over)
6277 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6278 instead of ALL_THREADS.
6279 * record-btrace.c (record_btrace_open)
6280 (record_btrace_stop_recording, record_btrace_close)
6281 (record_btrace_is_replaying, record_btrace_resume)
6282 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6283 * remote.c (append_pending_thread_resumptions): Likewise.
6284 * thread.c (thread_apply_all_command): Likewise.
6285
6286 2014-06-19 Gary Benson <gbenson@redhat.com>
6287
6288 * i386-nat.c (i386_stopped_by_watchpoint):
6289 Use i386_dr_stopped_by_watchpoint.
6290 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6291 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6292
6293 2014-06-19 Gary Benson <gbenson@redhat.com>
6294
6295 * nat/i386-dregs.c: New file.
6296 * Makefile.in (i386-dregs.o): New rule.
6297 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6298 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6299 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6300 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6301 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6302 * config/i386/go32.mh (NATDEPFILES): Likewise.
6303 * config/i386/linux.mh (NATDEPFILES): Likewise.
6304 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6305 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6306 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6307 * i386-nat.h (debug_hw_points): New declaration.
6308 * i386-nat.c (breakpoint.h): Remove include.
6309 (command.h): Likewise.
6310 (target.h): Likewise.
6311 (gdb_assert.h): Likewise.
6312 (debug_hw_points): Made nonstatic.
6313 (debug_printf): Now in i386-dregs.c.
6314 (TARGET_HAS_DR_LEN_8): Likewise.
6315 (DR_CONTROL_SHIFT): Likewise.
6316 (DR_CONTROL_SIZE): Likewise.
6317 (DR_RW_EXECUTE): Likewise.
6318 (DR_RW_WRITE): Likewise.
6319 (DR_RW_READ): Likewise.
6320 (DR_RW_IORW): Likewise.
6321 (DR_LEN_1): Likewise.
6322 (DR_LEN_2): Likewise.
6323 (DR_LEN_4): Likewise.
6324 (DR_LEN_8): Likewise.
6325 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6326 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6327 (DR_ENABLE_SIZE): Likewise.
6328 (DR_LOCAL_SLOWDOWN): Likewise.
6329 (DR_GLOBAL_SLOWDOWN): Likewise.
6330 (DR_CONTROL_RESERVED): Likewise.
6331 (I386_DR_CONTROL_MASK): Likewise.
6332 (I386_DR_VACANT): Likewise.
6333 (I386_DR_LOCAL_ENABLE): Likewise.
6334 (I386_DR_GLOBAL_ENABLE): Likewise.
6335 (I386_DR_DISABLE): Likewise.
6336 (I386_DR_SET_RW_LEN): Likewise.
6337 (I386_DR_GET_RW_LEN): Likewise.
6338 (I386_DR_WATCH_HIT): Likewise.
6339 (i386_wp_op_t): Likewise.
6340 (i386_show_dr): Likewise.
6341 (i386_length_and_rw_bits): Likewise.
6342 (i386_insert_aligned_watchpoint): Likewise.
6343 (i386_remove_aligned_watchpoint): Likewise.
6344 (i386_handle_nonaligned_watchpoint): Likewise.
6345 (i386_update_inferior_debug_regs): Likewise.
6346 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6347 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6348 (i386_region_ok_for_watchpoint):
6349 Use i386_dr_region_ok_for_watchpoint.
6350 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6351
6352 2014-06-19 Gary Benson <gbenson@redhat.com>
6353
6354 * i386-nat.c (i386_insert_hw_breakpoint): Use
6355 i386_insert_watchpoint.
6356 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6357
6358 2014-06-19 Gary Benson <gbenson@redhat.com>
6359
6360 * i386-nat.c (i386_dr_show): Renamed to
6361 i386_show_dr and made static. All uses updated.
6362 (i386_dr_length_and_rw_bits): Renamed to
6363 i386_length_and_rw_bits and made static.
6364 All uses updated.
6365 (i386_dr_insert_aligned_watchpoint): Renamed to
6366 i386_insert_aligned_watchpoint and made static.
6367 All uses updated.
6368 (i386_dr_remove_aligned_watchpoint): Renamed to
6369 i386_remove_aligned_watchpoint and made static.
6370 All uses updated.
6371 (i386_dr_update_inferior_debug_regs): Renamed to
6372 i386_update_inferior_debug_regs and made static.
6373 All uses updated.
6374 * nat/i386-dregs.h (i386_dr_show): Removed.
6375 (i386_dr_length_and_rw_bits): Likewise.
6376 (i386_dr_insert_aligned_watchpoint): Likewise.
6377 (i386_dr_remove_aligned_watchpoint): Likewise.
6378 (i386_dr_update_inferior_debug_regs): Likewise.
6379
6380 2014-06-19 Gary Benson <gbenson@redhat.com>
6381
6382 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6383 * configure: Regenerate.
6384 * config.in: Likewise.
6385 * main.c (signal.h): New include.
6386 (setup_alternate_signal_stack): New function.
6387 (captured_main): Call the above.
6388 * cp-support.c (signal.h): New include.
6389 (catch_demangler_crashes): New flag.
6390 (SIGJMP_BUF): New define.
6391 (SIGSETJMP): Likewise.
6392 (SIGLONGJMP): Likewise.
6393 (gdb_demangle_jmp_buf): New static global.
6394 (gdb_demangle_attempt_core_dump): Likewise.
6395 (gdb_demangle_signal_handler): New function.
6396 (gdb_demangle): If catch_demangler_crashes is set, install the
6397 above signal handler before calling bfd_demangle, and restore
6398 the original signal handler afterwards. Display the offending
6399 symbol and call demangler_warning the first time a segmentation
6400 fault is caught.
6401 (_initialize_cp_support): New maint set/show command.
6402
6403 2014-06-19 Gary Benson <gbenson@redhat.com>
6404
6405 * utils.h (resource_limit_kind): New enum.
6406 (can_dump_core): New declaration.
6407 (warn_cant_dump_core): Likewise.
6408 (dump_core): Likewise.
6409 * utils.c (dump_core): Made nonstatic. Added new
6410 parameter "limit_kind".
6411 (can_dump_core): Made nonstatic. Moved printing code to...
6412 (warn_cant_dump_core): New function.
6413 (can_dump_core_warn): Likewise.
6414 (internal_vproblem): Replace calls to can_dump_core with
6415 calls to can_dump_core_warn. Supply new argument to each.
6416
6417 2014-06-19 Gary Benson <gbenson@redhat.com>
6418
6419 * utils.h (demangler_vwarning): New declaration.
6420 (demangler_warning): Likewise.
6421 * utils.c (struct internal_problem)
6422 <user_settable_should_quit>: New field.
6423 <user_settable_should_dump_core>: Likewise
6424 (internal_error_problem): Add values for above new fields.
6425 (internal_warning_problem): Likewise.
6426 (demangler_warning_problem): New static global.
6427 (demangler_vwarning): New function.
6428 (demangler_warning): Likewise.
6429 (add_internal_problem_command): Selectively add commands.
6430 (_initialize_utils): New internal problem command.
6431 * maint.c (maintenance_demangler_warning): New function.
6432 (_initialize_maint_cmds): New command.
6433
6434 2014-06-18 Tom Tromey <tromey@redhat.com>
6435
6436 * f-valprint.c (info_common_command_for_block): Update.
6437 * symtab.h (struct general_symbol_info) <common_block>: Now
6438 const.
6439
6440 2014-06-18 Tom Tromey <tromey@redhat.com>
6441
6442 * symtab.h (struct symtab) <blockvector>: Now const.
6443 * ada-lang.c (ada_add_global_exceptions): Update.
6444 * buildsym.c (augment_type_symtab): Update.
6445 * dwarf2read.c (dw2_lookup_symbol): Update.
6446 * jit.c (finalize_symtab): Update.
6447 * jv-lang.c (add_class_symtab_symbol): Update.
6448 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6449 Update.
6450 * objfiles.c (objfile_relocate1): Update.
6451 * psymtab.c (lookup_symbol_aux_psymtabs)
6452 (maintenance_check_psymtabs): Update.
6453 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6454 Update.
6455 * spu-tdep.c (spu_catch_start): Update.
6456 * symmisc.c (dump_symtab_1): Update.
6457 * symtab.c (lookup_global_symbol_from_objfile)
6458 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6459 (basic_lookup_transparent_type_quick)
6460 (basic_lookup_transparent_type, find_pc_sect_symtab)
6461 (find_pc_sect_line, search_symbols): Update.
6462 * block.c (find_block_in_blockvector): Make "bl" const.
6463 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6464 const.
6465 (blockvector_contains_pc): Make "bv" const.
6466 (block_for_pc_sect): Update.
6467 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6468 (blockvector_contains_pc): Update.
6469 * breakpoint.c (resolve_sal_pc): Update.
6470 * inline-frame.c (block_starting_point_at): Update.
6471
6472 2014-06-18 Tom Tromey <tromey@redhat.com>
6473
6474 * completer.c (complete_line): Make "line_buffer" const.
6475 * completer.h (complete_line): Update.
6476
6477 2014-06-18 Tom Tromey <tromey@redhat.com>
6478
6479 * symtab.c (add_macro_name): Remove unneeded cast.
6480
6481 2014-06-18 Tom Tromey <tromey@redhat.com>
6482
6483 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6484 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6485
6486 2014-06-18 Tom Tromey <tromey@redhat.com>
6487
6488 * probe.c (info_probes_for_ops): Make "arg" const.
6489 * probe.h (info_probes_for_ops): Update.
6490
6491 2014-06-18 Tom Tromey <tromey@redhat.com>
6492
6493 * varobj.c (varobj_create): Update.
6494 * valops.c (value_of_this): Update.
6495 * tracepoint.c (add_local_symbols, scope_info): Update.
6496 * symtab.h (struct general_symbol_info) <block>: Now const.
6497 * symtab.c (skip_prologue_sal)
6498 (default_make_symbol_completion_list_break_on)
6499 (skip_prologue_using_sal): Update.
6500 * stack.h (iterate_over_block_locals)
6501 (iterate_over_block_local_vars): Update.
6502 * stack.c (print_frame_args): Update.
6503 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6504 parameter const.
6505 (get_selected_block): Make return type const.
6506 * python/py-frame.c (frapy_block): Update.
6507 * python/py-block.c (gdbpy_block_for_pc): Update.
6508 * p-exp.y (%union) <bval>: Now const.
6509 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6510 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6511 * m2-exp.y (%union) <bval>: Now const.
6512 * linespec.c (get_current_search_block): Make return type const.
6513 (create_sals_line_offset, find_label_symbols): Update.
6514 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6515 Update.
6516 (block_starting_point_at): Make "block" const.
6517 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6518 (check_exception_resume): Update.
6519 * guile/scm-frame.c (gdbscm_frame_block): Update.
6520 * guile/scm-block.c (gdbscm_lookup_block): Update.
6521 * frame.h (get_frame_block): Update.
6522 (get_selected_block): Make return type const.
6523 * frame.c (frame_id_inner): Update.
6524 * f-valprint.c (info_common_command_for_block)
6525 (info_common_command): Update.
6526 * dwarf2loc.c (dwarf2_find_location_expression)
6527 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6528 (locexpr_describe_location_piece): Update.
6529 * c-exp.y (%union) <bval>: Now const.
6530 * breakpoint.c (resolve_sal_pc): Update.
6531 * blockframe.c (get_frame_block):Make return type const.
6532 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6533 (block_innermost_frame): Update.
6534 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6535 (block_for_pc, block_for_pc_sect): Update.
6536 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6537 'pblock' const.
6538 (block_for_pc_sect, block_for_pc): Make return type const.
6539 * ax-gdb.c (gen_expr): Update.
6540 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6541 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6542 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6543 (ada_read_var_value): Update.
6544 * ada-exp.y (struct name_info) <block>: Now const.
6545 (%union): Likewise.
6546 (block_lookup): Constify.
6547
6548 2014-06-18 Gary Benson <gbenson@redhat.com>
6549
6550 * nat/i386-dregs.h: New file.
6551 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6552 * i386-nat.h (i386-dregs.h): New include.
6553 (DR_FIRSTADDR): Now in i386-dregs.h.
6554 (DR_LASTADDR): Likewise.
6555 (DR_NADDR): Likewise.
6556 (DR_STATUS): Likewise.
6557 (DR_CONTROL): Likewise.
6558 (i386_debug_reg_state): Likewise.
6559 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6560
6561 2014-06-18 Don Breazeal <donb@codesourcery.com>
6562
6563 * breakpoint.c (set_longjmp_breakpoint): Call
6564 momentary_breakpoint_from_master with additional argument.
6565 (set_longjmp_breakpoint_for_call_dummy): Call
6566 momentary_breakpoint_from_master with additional argument.
6567 (set_std_terminate_breakpoint): Call
6568 momentary_breakpoint_from_master with additional argument.
6569 (momentary_breakpoint_from_master): Add argument to function
6570 definition and use it to initialize structure member flag.
6571 (clone_momentary_breakpoint): Call
6572 momentary_breakpoint_from_master with additional argument.
6573 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6574 member flags set in momentary_breakpoint_from_master.
6575
6576 2014-06-18 Gary Benson <gbenson@redhat.com>
6577
6578 * i386-nat.c (i386_show_dr): Renamed to
6579 i386_dr_show and made nonstatic. All uses updated.
6580 (i386_length_and_rw_bits): Renamed to
6581 i386_dr_length_and_rw_bits and made nonstatic.
6582 All uses updated.
6583 (i386_insert_aligned_watchpoint): Renamed to
6584 i386_dr_insert_aligned_watchpoint and made nonstatic.
6585 All uses updated.
6586 (i386_remove_aligned_watchpoint): Renamed to
6587 i386_dr_remove_aligned_watchpoint and made nonstatic.
6588 All uses updated.
6589 (i386_update_inferior_debug_regs): Renamed to
6590 i386_dr_update_inferior_debug_regs and made nonstatic.
6591 All uses updated.
6592
6593 2014-06-18 Gary Benson <gbenson@redhat.com>
6594
6595 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6596 (i386_dr_low_can_set_control): Likewise.
6597 (i386_dr_low_set_addr): Likewise.
6598 (i386_dr_low_set_control): Likewise.
6599 (i386_dr_low_get_addr): Likewise.
6600 (i386_dr_low_get_status): Likewise.
6601 (i386_dr_low_get_control): Likewise.
6602 (i386_insert_aligned_watchpoint): Use new macros.
6603 (i386_update_inferior_debug_regs): Likewise.
6604 (i386_stopped_data_address): Likewise.
6605
6606 2014-06-18 Gary Benson <gbenson@redhat.com>
6607
6608 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6609 New parameter. All uses updated.
6610
6611 2014-06-18 Gary Benson <gbenson@redhat.com>
6612
6613 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6614 All uses updated.
6615
6616 2014-06-18 Gary Benson <gbenson@redhat.com>
6617
6618 * i386-nat.c (debug_printf): New macro.
6619 (i386_get_debug_register_length): Likewise.
6620 (TARGET_HAS_DR_LEN_8): Use above macro.
6621 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6622 and printf_unfiltered. Use phex to format values.
6623
6624 2014-06-18 Gary Benson <gbenson@redhat.com>
6625
6626 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6627 Make const.
6628
6629 2014-06-18 Gary Benson <gbenson@redhat.com>
6630
6631 * i386-nat.c: Comment changes.
6632
6633 2014-06-18 Gary Benson <gbenson@redhat.com>
6634
6635 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6636
6637 2014-06-18 Gary Benson <gbenson@redhat.com>
6638
6639 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6640 (i386_insert_aligned_watchpoint): Likewise.
6641 (i386_remove_aligned_watchpoint): Likewise.
6642 (i386_handle_nonaligned_watchpoint): Likewise.
6643
6644 2014-06-18 Gary Benson <gbenson@redhat.com>
6645
6646 * i386-nat.c: Whitespace changes.
6647
6648 2014-06-17 Samuel Bronson <naesten@gmail.com>
6649
6650 * MAINTAINERS: Update Roland McGrath's email address.
6651 Thanks to Sergio Durigan Junior for pointing out that he left
6652 Red Hat a while ago, and giving me a current address.
6653
6654 2014-06-17 Tom Tromey <tromey@redhat.com>
6655
6656 * utils.h (savestring): Remove declaration.
6657
6658 2014-06-17 Tom Tromey <tromey@redhat.com>
6659
6660 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6661
6662 2014-06-16 Keith Seitz <keiths@redhat.com>
6663
6664 PR mi/15863
6665 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6666 to update the varobj if inferior_ptid is null_ptid.
6667
6668 2014-06-16 Tom Tromey <tromey@redhat.com>
6669
6670 * target.h (struct target_ops) <to_info_proc>: Make parameter
6671 const.
6672 (target_info_proc): Update.
6673 * target.c (target_info_proc): Make "args" const.
6674 * procfs.c (procfs_info_proc): Update.
6675 * linux-tdep.c (linux_info_proc): Update.
6676 (linux_core_info_proc_mappings): Make "args" const.
6677 (linux_core_info_proc): Update.
6678 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6679 * gdbarch.c: Rebuild.
6680 * gdbarch.h: Rebuild.
6681 * corelow.c (core_info_proc): Update.
6682
6683 2014-06-16 Tom Tromey <tromey@redhat.com>
6684
6685 * target.h (struct target_ops) <to_disconnect>: Make parameter
6686 const.
6687 (target_disconnect): Update.
6688 * target.c (target_disconnect): Make "args" const.
6689 * target-delegates.c: Rebuild.
6690 * remote.c (remote_disconnect): Update.
6691 * record.h (record_disconnect): Update.
6692 * record.c (record_disconnect): Update.
6693 * inf-child.c (inf_child_disconnect): Update.
6694
6695 2014-06-16 Tom Tromey <tromey@redhat.com>
6696
6697 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6698 * target.c (debug_to_rcmd, default_rcmd): Update.
6699 * target-delegates.c: Rebuild.
6700 * remote.c (remote_rcmd): Update.
6701 * monitor.c (monitor_rcmd): Update.
6702
6703 2014-06-16 Pedro Alves <palves@redhat.com>
6704
6705 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6706 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6707 have OBJF_SHARED set.
6708 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6709 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6710 instead of OBJF_USERLOADED.
6711 * objfiles.h (OBJF_SHARED): Update comment.
6712 (userloaded_objfile_contains_address_p): Rename to ...
6713 (shared_objfile_contains_address_p): ... this, and update
6714 comments.
6715 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6716 new objfile.
6717 (remove_symbol_file_command): Skip objfiles that don't have
6718 OBJF_SHARED set.
6719
6720 2014-06-16 Tom Tromey <tromey@redhat.com>
6721
6722 * minsyms.h (prim_record_minimal_symbol)
6723 (prim_record_minimal_symbol_and_info): Update comments.
6724
6725 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6726
6727 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6728 or --without-guile, according to how GDB was built.
6729
6730 2014-06-13 Tom Tromey <tromey@redhat.com>
6731
6732 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6733 to help_list.
6734 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6735 to help_list.
6736 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6737 help_list.
6738 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6739 help_list.Pass all_commands, not -1, to help_list.
6740 * cli/cli-dump.c (dump_command, append_command)
6741 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6742 (binary_dump_command, binary_append_command): Pass all_commands,
6743 not -1, to help_list.
6744 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6745 -1, to help_list.
6746 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6747 -1, to help_list.
6748 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6749 help_list.
6750 * top.c (set_history): Pass all_commands, not -1, to help_list.
6751 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6752 all_commands, not -1, to help_list.
6753 * symfile.c (overlay_command): Pass all_commands, not -1, to
6754 help_list.
6755 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6756 help_list.
6757 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6758 help_list.
6759 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6760 -1, to help_list.
6761 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6762 not -1, to help_list.
6763 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6764 not -1, to help_list.
6765 * maint.c (maintenance_command, maintenance_info_command)
6766 (maintenance_print_command, maintenance_set_cmd): Pass
6767 all_commands, not -1, to help_list.
6768 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6769 help_list.
6770 * language.c (set_check): Pass all_commands, not -1, to help_list.
6771 * infcmd.c (unset_command): Pass all_commands, not -1, to
6772 help_list.
6773 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6774 help_list.
6775 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6776 help_list.
6777 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6778 help_list.
6779 * breakpoint.c (save_command): Pass all_commands, not -1, to
6780 help_list.
6781 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6782 all_commands, not -1, to help_list.
6783
6784 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6785
6786 * regcache.c (struct register_to_invalidate): New structure.
6787 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6788 functions.
6789 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6790
6791 2014-06-12 Yao Qi <yao@codesourcery.com>
6792
6793 * varobj.c (varobj_get_num_children): Call
6794 varobj_is_dynamic_p.
6795 (varobj_list_children): Likewise.
6796 (varobj_update): Likewise. Update comments.
6797
6798 2014-06-12 Yao Qi <yao@codesourcery.com>
6799
6800 * varobj.c (varobj_pretty_printed_p): Rename to ...
6801 (varobj_is_dynamic_p): ... this. New function.
6802 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6803 (varobj_is_dynamic_p): Declare.
6804 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6805 (mi_print_value_p, varobj_update_one): Likewise.
6806
6807 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6808 Yao Qi <yao@codesourcery.com>
6809
6810 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6811 (varobj_get_iterator): Wrap up code for pretty-printer by
6812 "#if HAVE_PYTHON" and "#endif".
6813 (update_dynamic_varobj_children): Likewise.
6814
6815 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6816 Yao Qi <yao@codesourcery.com>
6817
6818 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6819 gdb_python_initialized is false. Move some code from varobj.c.
6820 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6821 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6822 (struct varobj_item): Moved to varobj-iter.h".
6823 (varobj_clear_saved_item): New function.
6824 (update_dynamic_varobj_children): Move python-related code to
6825 py-varobj.c.
6826 (free_variable): Call varobj_clear_saved_item and
6827 varobj_iter_delete.
6828
6829 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6830 Yao Qi <yao@codesourcery.com>
6831
6832 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6833 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6834 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6835 (py-varobj.o): New rule.
6836 * python/py-varobj.c: New file.
6837 * python/python-internal.h (py_varobj_get_iterator): Declare.
6838 * varobj-iter.h: New file.
6839 * varobj.c: Include "varobj-iter.h"
6840 (struct varobj) <child_iter>: Change its type from "PyObject *"
6841 to "struct varobj_iter *".
6842 <saved_item>: Likewise.
6843 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6844 [HAVE_PYTHON] (varobj_get_iterator): New function.
6845 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6846 python-specific code to python/py-varobj.c.
6847 (install_visualizer): Call varobj_iter_delete instead of
6848 Py_XDECREF.
6849 * varobj.h (varobj_ensure_python_env): Declare.
6850
6851 2014-06-12 Yao Qi <yao@codesourcery.com>
6852
6853 * varobj.c (struct varobj_item): New structure.
6854 (create_child_with_value): Update declaration.
6855 (varobj_add_child): Replace arguments 'name' and 'value' with
6856 'item'. All callers updated.
6857 (install_dynamic_child): Likewise.
6858 (update_dynamic_varobj_children): Likewise.
6859 (varobj_add_child): Likewise.
6860 (create_child_with_value): Likewise.
6861
6862 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6863
6864 * NEWS: Create a new section for the next release branch.
6865 Rename the section of the current branch, now that it has
6866 been cut.
6867
6868 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6869
6870 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6871 * version.in: Bump version to 7.8.50.DATE-cvs.
6872
6873 2014-06-11 Pedro Alves <palves@redhat.com>
6874
6875 PR remote/17028
6876 * ser-mingw.c (net_windows_socket_check_pending): New function.
6877 (net_windows_select_thread): Ignore spurious wakeups. Use
6878 net_windows_socket_check_pending.
6879 (net_windows_wait_handle): Check for pending events with
6880 ioctlsocket, through net_windows_socket_check_pending, instead of
6881 checking the socket's event.
6882
6883 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6884
6885 * python/python-internal.h (gdb_PyObject_GetAttrString)
6886 (gdb_PyObject_HasAttrString): New inline function definitions.
6887 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6888 char * of the second argument to PyObject_GetAttrString.
6889
6890 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6891
6892 * serial.c (serial_write): Fix index of character to be printed
6893 in call to serial_logchar when serial debug traces are enabled.
6894
6895 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6896
6897 * gdbtypes (resolve_dynamic_range): Add function description.
6898
6899 2014-06-09 Pedro Alves <palves@redhat.com>
6900
6901 * linux-nat.c (linux_child_follow_fork): Initialize status with
6902 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6903 inner block. Only pass the signal to PTRACE_DETACH if in pass
6904 state.
6905
6906 2014-06-09 Gary Benson <gbenson@redhat.com>
6907
6908 * common/signals.c (gdb_signal_from_host): Reorder to separate
6909 the always-available ANSI-standard signals from the signals that
6910 require checking.
6911 (do_gdb_signal_to_host): Likewise.
6912 * proc-events.c (signal_table): Likewise.
6913
6914 2014-06-08 Hui Zhu <hui@codesourcery.com>
6915
6916 * common/linux-ptrace.c (linux_disable_event_reporting): New
6917 function.
6918 * common/linux-ptrace.h (linux_disable_event_reporting): New
6919 declaration.
6920 * linux-nat.c (linux_child_follow_fork): Do a single step before
6921 detach.
6922
6923 2014-06-07 Keith Seitz <keiths@redhat.com>
6924
6925 Revert:
6926 PR c++/16253
6927 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6928 from symbol_matches_domain in symtab.c. All local callers
6929 of symbol_matches_domain updated.
6930 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6931 search STRUCT_DOMAIN.
6932 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6933 independently. standard_lookup will do that automatically.
6934 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6935 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6936 (cp_lookup_symbol_in_namespace): Likewise.
6937 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6938 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6939 may return a STRUCT_DOMAIN match.
6940 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6941 * cp-support.c: Include language.h.
6942 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6943 VAR_DOMAIN.
6944 * psymtab.c (match_partial_symbol): Compare the requested
6945 domain with the symbol's domain directly.
6946 (lookup_partial_symbol): Likewise.
6947 * symtab.c (lookup_symbol_in_language): Explain when/why
6948 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6949 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6950 appropriate languages.
6951 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6952 and moved to ada-lang.c
6953 (lookup_block_symbol): Explain that this function only returns
6954 symbol matching the requested DOMAIN.
6955 Compare the requested domain with the symbol's domain directly.
6956 (iterate_over_symbols): Compare the requested domain with the
6957 symbol's domain directly.
6958 * symtab.h (symbol_matches_domain): Remove.
6959
6960 2014-06-06 Doug Evans <xdje42@gmail.com>
6961
6962 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6963 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6964 (gdbscm_guile_version_is_at_least): Declare.
6965 (gdbscm_scm_string_to_int): Declare.
6966 * guile/guile.c (gdbscm_guile_major_version): New global.
6967 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6968 (guile_datadir): New static global.
6969 (gdbscm_guile_data_directory): New function.
6970 (initialize_scheme_side): Update.
6971 (misc_guile_functions): Add guile-data-directory.
6972 (initialize_gdb_module): Fetch guile version number.
6973 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6974 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6975 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6976 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6977 comments.
6978 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6979 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6980 * guile/scm-value.c (gdbscm_value_to_string): Only call
6981 scm_port_conversion_strategy if Guile version >= 2.0.6.
6982
6983 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6984
6985 * main.c (print_gdb_help): Add -q and --silent.
6986
6987 2014-06-06 Gary Benson <gbenson@redhat.com>
6988
6989 * common/signals.c: Remove preprocessor conditionals for
6990 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6991 SIGSEGV and SIGTERM.
6992 * proc-events.c: Likewise.
6993
6994 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6995
6996 * symfile.c (symfile_free_objfile): Remove restriction to
6997 OBJF_USERLOADED.
6998 * symfile-mem.c (symbol_file_add_from_memory): Call
6999 add_target_sections_of_objfile.
7000
7001 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7002
7003 * guile/scm-value.c (gdbscm_history_append_x): Use
7004 'vlscm_get_value_smob_arg_unsafe' instead of
7005 'vlscm_scm_to_value'.
7006
7007 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 PR mi/15806
7010 * utils.c (printchar): Don't escape at all if quoter is NUL.
7011 Update function documentation to clarify effect of parameter
7012 QUOTER.
7013 * remote.c (escape_buffer): Pass '\\' as the quoter to
7014 fputstrn_unfiltered.
7015 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7016 generate the output.
7017 (mi_solib_unloaded): Same.
7018
7019 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7020
7021 * development.sh: Delete.
7022 * Makefile.in (config.status): Adjust dependency on development.sh.
7023 * configure.ac: Adjust development.sh source call.
7024 * configure: Regenerate.
7025
7026 2014-06-04 Doug Evans <xdje42@gmail.com>
7027
7028 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7029 is_scheme_bkpt, spec.
7030 (bpscm_make_breakpoint_smob): Initialize new members.
7031 (gdbscm_create_breakpoint_x): Split into two ...
7032 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7033 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7034 (scheme_function breakpoint_functions): Update.
7035 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7036 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7037 register-breakpoint!.
7038
7039 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7040
7041 PR server/17023
7042 * mem-break.c (z_type_supported): Return zero if
7043 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7044
7045 2014-06-04 Tom Tromey <tromey@redhat.com>
7046
7047 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7048 value_from_contents_and_address_unresolved.
7049 (ada_template_to_fixed_record_type_1): Likewise.
7050 (ada_which_variant_applies): Likewise.
7051 * value.h (value_from_contents_and_address_unresolved): Declare.
7052 * value.c (value_from_contents_and_address_unresolved): New
7053 function.
7054 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7055 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7056 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7057
7058 2014-06-04 Tom Tromey <tromey@redhat.com>
7059
7060 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7061
7062 2014-06-04 Tom Tromey <tromey@redhat.com>
7063
7064 * procfs.c (procfs_attach): Make "args" const.
7065 * windows-nat.c (windows_attach): Make "args" const.
7066 * nto-procfs.c (procfs_attach): Make "args" const.
7067 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7068 * go32-nat.c (go32_attach): Make "args" const.
7069 * gnu-nat.c (gnu_attach): Make "args" const.
7070 * darwin-nat.c (darwin_attach): Make "args" const.
7071 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7072 * linux-nat.c (linux_nat_attach): Make "args" const.
7073 * remote.c (extended_remote_attach_1, extended_remote_attach):
7074 Make "args" const.
7075 * target.h (struct target_ops) <to_attach>: Make "args" const.
7076 (find_default_attach): Likewise.
7077 * utils.c (parse_pid_to_attach): Make "args" const.
7078 * utils.h (parse_pid_to_attach): Update.
7079
7080 2014-06-04 Tom Tromey <tromey@redhat.com>
7081
7082 * target-delegates.c: Rebuild.
7083 * target.c (default_thread_address_space): New function.
7084 (target_thread_address_space): Simplify.
7085 * target.h (struct target_ops) <to_thread_address_space>: Add
7086 TARGET_DEFAULT_FUNC.
7087
7088 2014-06-04 Doug Evans <xdje42@gmail.com>
7089
7090 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7091
7092 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7093
7094 * record-btrace.c: Include event-loop.h and inf-loop.h.
7095 (record_btrace_resume_exec_dir)
7096 (record_btrace_async_inferior_event_handler)
7097 (record_btrace_handle_async_inferior_event): New.
7098 (record_btrace_open): Create async event handler.
7099 (record_btrace_close): Delete async event handler.
7100 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7101 Mark async event handler.
7102 (record_btrace_execution_direction): New.
7103 (init_record_btrace_ops): Initialize to_execution_direction.
7104
7105 2014-06-03 Doug Evans <xdje42@gmail.com>
7106
7107 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7108 (gdbscm_make_parameter): Ditto.
7109
7110 2014-06-03 Doug Evans <dje@google.com>
7111
7112 * exec.c (exec_close_1): Call clear_section_table instead of
7113 resize_section_table.
7114 (clear_section_table): New function.
7115 (resize_section_table): Make static. Rename arg num_added to
7116 adjustment.
7117 * exec.h (clear_section_table): Declare.
7118 (resize_section_table): Delete.
7119 * progspace.c (release_program_space): Call clear_section_table
7120 instead of resize_section_table.
7121
7122 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7123
7124 * NEWS (Python Scripting): Add entry about the new xmethods
7125 feature.
7126
7127 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7128
7129 * python/py-xmethods.c: New file.
7130 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7131 (objfpy_dealloc): XDECREF on the new xmethods field.
7132 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7133 field.
7134 (objfpy_get_xmethods): New function.
7135 (objfile_getset): New entry 'xmethods'.
7136 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7137 (pspy_dealloc): XDECREF on the new xmethods field.
7138 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7139 field.
7140 (pspy_get_xmethods): New function.
7141 (pspace_getset): New entry 'xmethods'.
7142 * python/python-internal.h: Add declarations for new functions.
7143 * python/python.c (_initialize_python): Invoke
7144 gdbpy_initialize_xmethods.
7145 * python/lib/gdb/__init__.py (xmethods): New
7146 attribute.
7147 * python/lib/gdb/xmethod.py: New file.
7148 * python/lib/gdb/command/xmethods.py: New file.
7149
7150 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7151
7152 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7153 best match method returned by find_overload_match is an xmethod.
7154 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7155 the best matching operator returned by find_overload_match is an
7156 xmethod.
7157 * valops.c: #include "extension.h".
7158 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7159 Return void. The list of matching source methods is returned in
7160 "fn_list" and a vector of matching debug method workers is
7161 returned in "xm_worker_vec". Update all callers.
7162 (value_find_oload_method_list): Likewise.
7163 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7164 non-NULL, then the index of the best matching method in this
7165 vector is returned. Update all callers.
7166 (find_overload_match): Include xmethods while performing overload
7167 resolution.
7168
7169 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7170
7171 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7172 * extension-priv.h (struct extension_language_ops): Add the
7173 xmethod interface.
7174 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7175 get_matching_xmethod_workers, get_xmethod_argtypes,
7176 invoke_xmethod, free_xmethod_worker,
7177 free_xmethod_worker_vec): New functions.
7178 * extension.h: #include "common/vec.h".
7179 New function declarations.
7180 (struct xmethod_worker): New struct.
7181 (VEC (xmethod_worker_ptr)): New vector type.
7182 (xmethod_worker_ptr): New typedef.
7183 (xmethod_worker_vec): Likewise.
7184 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7185 builtin_type.
7186 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7187 (struct builtin_type): New field "xmethod".
7188 * valarith.c (value_ptradd): Assert that the value argument is not
7189 lval_xcallable.
7190 * valops.c (value_must_coerce_to_target): Return 0 for
7191 lval_xcallable values.
7192 * value.c (struct value): New field XM_WORKER in the field
7193 LOCATION.
7194 (value_address, value_raw_address): Return 0 for lval_xcallable
7195 values.
7196 (set_value_address): Assert that the value is not an
7197 lval_xcallable.
7198 (value_free): Free the associated xmethod worker when freeing
7199 lval_xcallable values.
7200 (set_value_component_location): Assert that the WHOLE value is not
7201 lval_xcallable.
7202 (value_of_xmethod, call_xmethod): New functions.
7203 * value.h: Declare "struct xmethod_worker".
7204 Declare new functions value_of_xmethod, call_xmethod.
7205
7206 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7207 Pedro Alves <palves@redhat.com>
7208
7209 PR breakpoints/17000
7210 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7211 New function, extracted from software_breakpoint_inserted_here_p.
7212 (software_breakpoint_inserted_here_p): Replace factored out code
7213 by call to find_non_raw_software_breakpoint_inserted_here.
7214 (bp_target_info_copy_insertion_state): New function.
7215 (bkpt_insert_location): Handle the case of a single-step
7216 breakpoint already inserted at the same address.
7217 (bkpt_remove_location): Handle the case of a single-step
7218 breakpoint still inserted at the same address.
7219 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7220 breakpoint already inserted at the same address.
7221 (deprecated_remove_raw_breakpoint): Handle the case of a
7222 non-raw breakpoint still inserted at the same address.
7223 (find_single_step_breakpoint): New function, extracted from
7224 single_step_breakpoint_inserted_here_p.
7225 (find_single_step_breakpoint): New function,
7226 factored out from single_step_breakpoint_inserted_here_p.
7227 (single_step_breakpoint_inserted_here_p): Reimplement.
7228
7229 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7230
7231 Pushed by Joel Brobecker <brobecker@adacore.com>
7232 * source.c (show_substitute_path_command): Fix display of matching
7233 substitution rules.
7234
7235 2014-06-03 Gary Benson <gbenson@redhat.com>
7236
7237 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7238
7239 2014-06-02 Doug Evans <xdje42@gmail.com>
7240
7241 Add parameter support for Guile.
7242 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7243 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7244 (scm-param.o): New rule.
7245 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7246 (gdbscm_misc_error): Declare.
7247 (gdbscm_canonicalize_command_name): Declare.
7248 (gdbscm_scm_to_host_string): Declare.
7249 (gdbscm_scm_from_host_string): Declare.
7250 (gdbscm_initialize_parameters): Declare.
7251 * guile/guile.c (initialize_gdb_module): Call
7252 gdbscm_initialize_parameters.
7253 * guile/lib/gdb.scm: Export parameter symbols.
7254 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7255 cmdscm_canonicalize_name and made public. All callers updated.
7256 * guile/scm-exception.c (gdbscm_misc_error): New function.
7257 * guile/scm-param.c: New file.
7258 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7259 (gdbscm_scm_to_host_string): New function.
7260 (gdbscm_scm_from_host_string): New function.
7261 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7262
7263 2014-06-02 Doug Evans <xdje42@gmail.com>
7264
7265 Add command support for Guile.
7266 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7267 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7268 (scm-cmd.o): New rule.
7269 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7270 (gdbscm_user_error_p): Declare.
7271 (gdbscm_parse_command_name): Declare.
7272 (gdbscm_valid_command_class_p): Declare.
7273 (gdbscm_initialize_commands): Declare.
7274 * guile/guile.c (initialize_gdb_module): Call
7275 gdbscm_initialize_commands.
7276 * guile/lib/gdb.scm: Export command symbols.
7277 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7278 (throw-user-error): New function.
7279 * guile/scm-cmd.c: New file.
7280 * guile/scm-exception.c (user_error_symbol): New static global.
7281 (gdbscm_user_error_p): New function.
7282 (gdbscm_initialize_exceptions): Set user_error_symbol.
7283 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7284
7285 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7286
7287 * top.c (command_loop): Handle comments here...
7288 (command_line_input): ... not here.
7289
7290 2014-06-02 Doug Evans <xdje42@gmail.com>
7291
7292 Add progspace support for Guile.
7293 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7294 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7295 (scm-progspace.o): New rule.
7296 * guile/guile-internal.h (pspace_smob): New typedef.
7297 (psscm_pspace_smob_pretty_printers): Declare.
7298 (psscm_pspace_smob_from_pspace): Declare.
7299 (psscm_scm_from_pspace): Declare.
7300 * guile/guile.c (initialize_gdb_module): Call
7301 gdbscm_initialize_pspaces.
7302 * guile/lib/gdb.scm: Export progspace symbols.
7303 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7304 support.
7305 (append-pretty-printer!): Ditto.
7306 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7307 Implement.
7308 * guile/scm-progspace.c: New file.
7309
7310 2014-06-03 Alan Modra <amodra@gmail.com>
7311
7312 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7313 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7314
7315 2014-06-02 Doug Evans <dje@google.com>
7316
7317 Add support for skeletonless type units.
7318 * dwarf2read.c (struct dwarf2_per_objfile): New member
7319 n_allocated_type_units.
7320 (struct dwarf2_per_objfile) <tu_stats>: New member
7321 nr_all_type_units_reallocs.
7322 (create_signatured_type_table_from_index): Initialize
7323 n_allocated_type_units
7324 (create_all_type_units): Ditto.
7325 (add_type_unit): Move up in file. New arg slot.
7326 All callers updated. Increase space for all_type_units more
7327 efficiently.
7328 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7329 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7330 (lookup_dwp_signatured_type): Ditto.
7331 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7332 All callers updated.
7333 (build_type_psymtabs_1): Leave type_unit_groups as
7334 NULL if no TUs present.
7335 (print_tu_stats): New function.
7336 (process_skeletonless_type_unit): New function.
7337 (process_dwo_file_for_skeletonless_type_units): New
7338 function.
7339 (process_skeletonless_type_units): New function.
7340 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7341 Call print tu_stats if debugging enabled.
7342
7343 2014-06-02 Pedro Alves <palves@redhat.com>
7344
7345 * breakpoint.c (build_target_command_list): Don't build a command
7346 list if we have any duplicate location that isn't a dprintf.
7347
7348 2014-06-02 Pedro Alves <palves@redhat.com>
7349
7350 * breakpoint.c (dprintf_breakpoint_hit): New function.
7351 (initialize_breakpoint_ops): Install it as dprintf's
7352 breakpoint_hit method.
7353
7354 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7355
7356 * source.c (substitute_path_rule_matches): Simplify using
7357 filename_ncmp instead of FILENAME_CMP.
7358
7359 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7360
7361 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7362
7363 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7364
7365 * configure.ac: When Guile is available, check for the
7366 availability of 'scm_new_smob'.
7367 * configure, config.h.in: Regenerate.
7368 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7369 function.
7370
7371 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7372
7373 * frame.c (struct frame_info): Add stop_string field.
7374 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7375 (get_prev_frame_always): Old content moved into
7376 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7377 TRY_CATCH, handle MEMORY_ERROR exceptions.
7378 (frame_stop_reason_string): New function definition.
7379 * frame.h (unwind_stop_reason_to_string): Extend comment to
7380 mention frame_stop_reason_string.
7381 (frame_stop_reason_string): New function declaration.
7382 * stack.c (frame_info): Switch to frame_stop_reason_string.
7383 (backtrace_command_1): Switch to frame_stop_reason_string.
7384 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7385 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7386 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7387
7388 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7389
7390 * frame.c (frame_stop_reason_string): Rename to ...
7391 (unwind_stop_reason_to_string): this.
7392 * frame.h (frame_stop_reason_string): Rename to ...
7393 (unwind_stop_reason_to_string): this.
7394 * stack.c (frame_info): Update call to frame_stop_reason_string.
7395 (backtrace_command_1): Likewise.
7396 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7397 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7398
7399 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7400
7401 * frame.c (remove_prev_frame): New function.
7402 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7403 remove_prev_frame.
7404
7405 2014-05-29 Pedro Alves <palves@redhat.com>
7406
7407 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7408 and make it const. When a single-step decays to a continue,
7409 clear 'step', not 'hw_step'. Pass whether the caller wanted
7410 to step to user_visible_resume_ptid, not what we ask the
7411 target to do.
7412
7413 2014-05-29 Pedro Alves <palves@redhat.com>
7414
7415 * infrun.c (process_event_stop_test, handle_step_into_function)
7416 (handle_step_into_function_backward): Adjust.
7417 Don't set the even thread's stop_step and call stop_waiting before
7418 calling end_stepping_range. Instead do that ...
7419 (end_stepping_range): ... here. Take an ecs pointer parameter.
7420
7421 2014-05-29 Pedro Alves <palves@redhat.com>
7422
7423 * infrun.c (stop_stepping): Rename to ...
7424 (stop_waiting): ... this.
7425 (proceed): Update comment.
7426 (process_event_stop_test, handle_inferior_event)
7427 (handle_signal_stop, handle_step_into_function)
7428 (handle_step_into_function_backward): Update.
7429
7430 2014-05-29 Pedro Alves <palves@redhat.com>
7431
7432 * infcall.c (run_inferior_call): Don't check whether the current
7433 thread is running after the proceed call.
7434
7435 2014-05-29 Pedro Alves <palves@redhat.com>
7436 Tom Tromey <tromey@redhat.com>
7437
7438 * NEWS: Mention "maint set target-async", "set mi-async", and that
7439 background execution commands are now always available.
7440 * target.h (target_async_permitted): Update comment.
7441 * target.c (target_async_permitted, target_async_permitted_1):
7442 Default to 1.
7443 (set_target_async_command): Rename to ...
7444 (maint_set_target_async_command): ... this.
7445 (show_target_async_command): Rename to ...
7446 (maint_show_target_async_command): ... this.
7447 (_initialize_target): Adjust.
7448 * infcmd.c (prepare_execution_command): Make extern.
7449 * inferior.h (prepare_execution_command): Declare.
7450 * infrun.c (set_observer_mode): Leave target async alone.
7451 * mi/mi-interp.c (mi_interpreter_init): Install
7452 mi_on_sync_execution_done as sync_execution_done observer.
7453 (mi_on_sync_execution_done): New function.
7454 (mi_execute_command_input_handler): Don't print the prompt if we
7455 just started a synchronous command with an async target.
7456 (mi_on_resume): Check sync_execution before printing prompt.
7457 * mi/mi-main.h (mi_async_p): Declare.
7458 * mi/mi-main.c: Include gdbcmd.h.
7459 (mi_async_p): New function.
7460 (mi_async, mi_async_1): New globals.
7461 (set_mi_async_command, show_mi_async_command, mi_async): New
7462 functions.
7463 (exec_continue): Call prepare_execution_command.
7464 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7465 (mi_execute_async_cli_command): Use mi_async_p.
7466 (_initialize_mi_main): Install "set mi-async". Make
7467 "target-async" a deprecated alias.
7468
7469 2014-05-29 Pedro Alves <palves@redhat.com>
7470
7471 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7472 (_initialize_cli_interp): Adjust.
7473 * event-loop.c: Include "observer.h".
7474 (start_event_loop): Notify 'command_error' observers instead of
7475 calling display_gdb_prompt. Remove FIXME comment.
7476 * event-top.c (display_gdb_prompt): Remove call into the
7477 interpreters.
7478 * inf-loop.c: Include "observer.h".
7479 (inferior_event_handler): Notify 'command_error' observers instead
7480 of calling display_gdb_prompt.
7481 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7482 observers instead of calling display_gdb_prompt.
7483 * interps.c (interp_set): Don't call display_gdb_prompt.
7484 (current_interp_display_prompt_p): Delete.
7485 * interps.h (interp_prompt_p): Delete declaration.
7486 (interp_prompt_p_ftype): Delete.
7487 (struct interp_procs) <prompt_proc_p>: Delete field.
7488 (current_interp_display_prompt_p): Delete declaration.
7489 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7490 (_initialize_mi_interp): Adjust.
7491 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7492 'command_error' observers.
7493 (tui_on_sync_execution_done, tui_on_command_error): New
7494 functions.
7495 (tui_display_prompt_p): Delete.
7496 (_initialize_tui_interp): Adjust.
7497
7498 2014-05-29 Pedro Alves <palves@redhat.com>
7499
7500 PR gdb/13860
7501 * cli/cli-interp.c: Include infrun.h and observer.h.
7502 (cli_uiout, cli_interp): New globals.
7503 (cli_on_signal_received, cli_on_end_stepping_range)
7504 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7505 functions.
7506 (cli_interpreter_init): Install them as 'end_stepping_range',
7507 'signal_received' 'signal_exited', 'exited' and 'no_history'
7508 observers.
7509 (_initialize_cli_interp): Remove cli_interp local.
7510 * infrun.c (handle_inferior_event): Call the several stop reason
7511 observers instead of printing the stop reason directly.
7512 (end_stepping_range): New function.
7513 (print_end_stepping_range_reason, print_signal_exited_reason)
7514 (print_exited_reason, print_signal_received_reason)
7515 (print_no_history_reason): Make static, and add an uiout
7516 parameter. Print to that instead of to CURRENT_UIOUT.
7517 * infrun.h (print_end_stepping_range_reason)
7518 (print_signal_exited_reason, print_exited_reason)
7519 (print_signal_received_reason print_no_history_reason): New
7520 declarations.
7521 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7522 'mi_uiout'.
7523 <cli_uiout>: New field.
7524 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7525 uiout for CLI output. Install 'signal_received',
7526 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7527 observers.
7528 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7529 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7530 (mi_on_no_history): New functions.
7531 (ui_out_free_cleanup): Delete function.
7532 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7533 instead use the one already stored in the MI interpreter data.
7534 (mi_ui_out): Adjust.
7535 * tui/tui-interp.c: Include infrun.h and observer.h.
7536 (tui_interp): New global.
7537 (tui_on_signal_received, tui_on_end_stepping_range)
7538 (tui_on_signal_exited, tui_on_exited)
7539 (tui_on_no_history): New functions.
7540 (tui_init): Install them as 'end_stepping_range',
7541 'signal_received' 'signal_exited', 'exited' and 'no_history'
7542 observers.
7543 (_initialize_tui_interp): Delete tui_interp local.
7544
7545 2014-05-29 Pedro Alves <palves@redhat.com>
7546
7547 PR gdb/15713
7548 * linux-nat.c (linux_nat_resume_callback): Rename the second
7549 parameter to 'except'. Skip LP if it points to EXCEPT.
7550 (linux_nat_resume): Don't mark the event lwp as not stopped
7551 before resuming sibling lwps. Instead ask
7552 linux_nat_resume_callback to skip the event lwp. Mark it as not
7553 stopped after actually resuming it.
7554 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7555 resuming it.
7556 (wait_lwp): Mark the lwp as stopped here.
7557 (stop_wait_callback): Mark the lwp as not stopped right after
7558 resuming it. Don't mark lwps as stopped here.
7559 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7560 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7561
7562 2014-05-29 Pedro Alves <palves@redhat.com>
7563
7564 PR PR15693
7565 * infrun.c (resume): Determine how much to resume depending on
7566 whether the caller wanted a step, not whether we can hardware step
7567 the target. Mark all threads that we intend to run as running,
7568 unless we're calling an inferior function.
7569 (normal_stop): If the thread is running an infcall, don't finish
7570 thread state.
7571 * target.c (target_resume): Don't mark threads as running here.
7572
7573 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7574
7575 * serial.c (_initialize_serial): Remove support for
7576 the "set remotebaud" and "show remotebaud" commands.
7577 * NEWS: Add entry documenting the removal of that command.
7578
7579 2014-05-28 Yao Qi <yao@codesourcery.com>
7580
7581 * charset.c: Fix typo in comments.
7582
7583 2014-05-27 Gary Benson <gbenson@redhat.com>
7584
7585 * utils.c (internal_vproblem): Prompt for a bug report.
7586
7587 2014-05-26 Andy Wingo <wingo@igalia.com>
7588
7589 * guile/scm-arch.c (arscm_mark_arch_smob):
7590 * guile/scm-block.c (bkscm_mark_block_smob)
7591 (bkscm_mark_block_syms_progress_smob):
7592 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7593 * guile/scm-exception.c (exscm_mark_exception_smob):
7594 * guile/scm-frame.c (frscm_mark_frame_smob):
7595 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7596 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7597 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7598 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7599 (ppscm_mark_pretty_printer_worker_smob):
7600 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7601 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7602 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7603 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7604 mark functions.
7605 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7606 function.
7607
7608 2014-05-26 Andy Wingo <wingo@igalia.com>
7609 Doug Evans <xdje42@gmail.com>
7610
7611 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7612 empty_base_class. All uses updated.
7613 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7614 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7615 Adapt all callers.
7616 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7617 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7618 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7619 (gdbscm_gsmob_has_property_p, add_property_name)
7620 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7621 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7622 (gdb-object-has-property?, gdb-object-properties): Remove.
7623 (gdb-object-kind): Renamed from gsmob-kind.
7624
7625 2014-05-26 Andy Wingo <wingo@igalia.com>
7626
7627 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7628 * configure: Regenerate.
7629
7630 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7631
7632 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7633
7634 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7635
7636 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7637 (replay_memory_access_read_only, replay_memory_access_read_write)
7638 (replay_memory_access_types, replay_memory_access)
7639 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7640 (cmd_set_record_btrace, cmd_show_record_btrace)
7641 (cmd_show_replay_memory_access): New.
7642 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7643 (record_btrace_remove_breakpoint): Replace
7644 record_btrace_allow_memory_access with replay_memory_access.
7645 (_initialize_record_btrace): Add commands.
7646 * NEWS: Announce it.
7647
7648 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7649
7650 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7651
7652 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7653
7654 * MAINTAINERS (Write After Approval): Move self back from
7655 paper trail.
7656
7657 2014-05-22 Pedro Alves <palves@redhat.com>
7658
7659 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7660 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7661 (disable_randomization, enum exec_direction_kind)
7662 (execution_direction, stop_registers, start_remote)
7663 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7664 (wait_for_inferior, normal_stop, get_last_target_status)
7665 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7666 (insert_step_resume_breakpoint_at_sal)
7667 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7668 (set_step_info, print_stop_event, signal_stop_state)
7669 (signal_print_state, signal_pass_state, signal_stop_update)
7670 (signal_print_update, signal_pass_update)
7671 (update_signals_program_target, clear_exit_convenience_vars)
7672 (displaced_step_dump_bytes, update_observer_mode)
7673 (signal_catch_update, gdb_signal_from_command): Move
7674 declarations ...
7675 * infrun.h: ... to this new file.
7676 * amd64-tdep.c: Include infrun.h.
7677 * annotate.c: Include infrun.h.
7678 * arch-utils.c: Include infrun.h.
7679 * arm-linux-tdep.c: Include infrun.h.
7680 * arm-tdep.c: Include infrun.h.
7681 * break-catch-sig.c: Include infrun.h.
7682 * breakpoint.c: Include infrun.h.
7683 * common/agent.c: Include infrun.h instead of inferior.h.
7684 * corelow.c: Include infrun.h.
7685 * event-top.c: Include infrun.h.
7686 * go32-nat.c: Include infrun.h.
7687 * i386-tdep.c: Include infrun.h.
7688 * inf-loop.c: Include infrun.h.
7689 * infcall.c: Include infrun.h.
7690 * infcmd.c: Include infrun.h.
7691 * infrun.c: Include infrun.h.
7692 * linux-fork.c: Include infrun.h.
7693 * linux-nat.c: Include infrun.h.
7694 * linux-thread-db.c: Include infrun.h.
7695 * monitor.c: Include infrun.h.
7696 * nto-tdep.c: Include infrun.h.
7697 * procfs.c: Include infrun.h.
7698 * record-btrace.c: Include infrun.h.
7699 * record-full.c: Include infrun.h.
7700 * remote-m32r-sdi.c: Include infrun.h.
7701 * remote-mips.c: Include infrun.h.
7702 * remote-notif.c: Include infrun.h.
7703 * remote-sim.c: Include infrun.h.
7704 * remote.c: Include infrun.h.
7705 * reverse.c: Include infrun.h.
7706 * rs6000-tdep.c: Include infrun.h.
7707 * s390-linux-tdep.c: Include infrun.h.
7708 * solib-irix.c: Include infrun.h.
7709 * solib-osf.c: Include infrun.h.
7710 * solib-svr4.c: Include infrun.h.
7711 * target.c: Include infrun.h.
7712 * top.c: Include infrun.h.
7713 * windows-nat.c: Include infrun.h.
7714 * mi/mi-interp.c: Include infrun.h.
7715 * mi/mi-main.c: Include infrun.h.
7716 * python/py-threadevent.c: Include infrun.h.
7717
7718 2014-05-22 Pedro Alves <palves@redhat.com>
7719
7720 * infrun.c (handle_inferior_event): Store the exit code for
7721 --return-child-result here, instead of ...
7722 (print_exited_reason): ... here.
7723
7724 2014-05-21 Pedro Alves <palves@redhat.com>
7725
7726 PR gdb/13860
7727 * gdbthread.h (struct thread_control_state): New field
7728 `command_interp'.
7729 * infrun.c (follow_fork): Copy the new thread control field to the
7730 child fork thread.
7731 (clear_proceed_status_thread): Clear the new thread control field.
7732 (proceed): Set the new thread control field.
7733 * interps.h (command_interp): Declare.
7734 * interps.c (command_interpreter): New global.
7735 (command_interp): New function.
7736 (interp_exec): Set `command_interpreter' while here.
7737 * cli-out.c (cli_uiout_dtor): New function.
7738 (cli_ui_out_impl): Install it.
7739 * mi/mi-interp.c: Include cli-out.h.
7740 (mi_cmd_interpreter_exec): Add comment.
7741 (restore_current_uiout_cleanup): New function.
7742 (ui_out_free_cleanup): New function.
7743 (mi_on_normal_stop): If finishing an execution command started by
7744 a CLI command, or any kind of breakpoint-like event triggered,
7745 print the stop event to the output (CLI) stream.
7746 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7747
7748 2014-05-21 Pedro Alves <palves@redhat.com>
7749
7750 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7751 current source line having changed.
7752 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7753 * infrun.c (normal_stop): Adjust call to
7754 set_current_sal_from_frame.
7755 * source.c (clear_lines_listed_range): New function.
7756 (set_current_source_symtab_and_line, identify_source_line): Clear
7757 the lines listed range.
7758 (line_info): Handle the first "info line" after the current source
7759 line having changed.
7760 * stack.c (print_stack_frame): Remove center handling.
7761 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7762 center sal.line.
7763
7764 2014-05-21 Pedro Alves <palves@redhat.com>
7765
7766 * inf-child.c (inf_child_mourn_inferior): New function.
7767 * inf-child.h (inf_child_mourn_inferior): New declaration.
7768 * darwin-nat.c (darwin_mourn_inferior): Use
7769 inf_child_mourn_inferior.
7770 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7771 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7772 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7773 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7774 * windows-nat.c (windows_mourn_inferior): Likewise.
7775
7776 2014-05-21 Doug Evans <xdje42@gmail.com>
7777
7778 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7779
7780 2014-05-21 Doug Evans <xdje42@gmail.com>
7781
7782 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7783 (gdbscm_out_of_range_error): Ditto.
7784 (gdbscm_memory_error): Ditto.
7785 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7786 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7787 (gdbscm_out_of_range_error): Update.
7788 (gdbscm_memory_error): Update.
7789 (gdbscm_scm_to_target_string_unsafe): Delete.
7790
7791 2014-05-21 Pedro Alves <palves@redhat.com>
7792
7793 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7794 globals.
7795 (inf_child_open_target): New function.
7796 (inf_child_open): Use inf_child_open_target to push the target
7797 instead of erroring out.
7798 (inf_child_disconnect, inf_child_close)
7799 (inf_child_maybe_unpush_target): New functions.
7800 (inf_child_target): Install inf_child_disconnect and
7801 inf_child_close. Store a pointer to the returned object.
7802 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7803 declarations.
7804 * target.c (auto_connect_native_target): New global.
7805 (show_default_run_target): New function.
7806 (find_default_run_target): Return NULL if automatically connecting
7807 to the native target is disabled.
7808 (_initialize_target): Install set/show auto-connect-native-target.
7809 * NEWS: Mention "set auto-connect-native-target", and "target
7810 native".
7811 * linux-nat.c (super_close): New global.
7812 (linux_nat_close): Call super_close.
7813 (linux_nat_add_target): Store a pointer to the base class's
7814 to_close method.
7815 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7816 inf_child_maybe_unpush.
7817 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7818 already pushed.
7819 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7820 the inferior. Use inf_child_maybe_unpush_target.
7821 (inf_ttrace_attach): Don't push the target if it is already
7822 pushed.
7823 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7824 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7825 after mourning the inferior. Use inf_child_maybe_unpush_target.
7826 (darwin_attach_pid): Don't push the target if it is already
7827 pushed.
7828 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7829 mourning the inferior. Use inf_child_maybe_unpush_target.
7830 (gnu_detach): Use inf_child_maybe_unpush_target.
7831 * go32-nat.c (go32_create_inferior): Don't push the target if it
7832 is already pushed.
7833 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7834 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7835 (procfs_open): Rename to ...
7836 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7837 comments. Can target_preopen before changing node. Call
7838 inf_child_open_target to push the target explicitly.
7839 (procfs_attach): Don't push the target if it is already pushed.
7840 (procfs_detach): Use inf_child_maybe_unpush_target.
7841 (procfs_create_inferior): Don't push the target if it is already
7842 pushed.
7843 (nto_native_ops): New global.
7844 (procfs_open): Reimplement.
7845 (procfs_native_open): New function.
7846 (init_procfs_targets): Install procfs_native_open as to_open of
7847 "target native". Store a pointer to the "native" target in
7848 nto_native_ops.
7849 * procfs.c (procfs_attach): Don't push the target if it is already
7850 pushed.
7851 (procfs_detach): Use inf_child_maybe_unpush_target.
7852 (procfs_mourn_inferior): Only unpush the target after mourning the
7853 inferior. Use inf_child_maybe_unpush_target.
7854 (procfs_init_inferior): Don't push the target if it is already
7855 pushed.
7856 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7857 if it is already pushed.
7858
7859 2014-05-21 Pedro Alves <palves@redhat.com>
7860
7861 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7862 and "procfs" targets are now called "native" instead.
7863
7864 2014-05-21 Pedro Alves <palves@redhat.com>
7865
7866 * go32-nat.c (go32_open): Delete.
7867 (go32_target): Don't override the to_open method.
7868
7869 2014-05-21 Pedro Alves <palves@redhat.com>
7870
7871 * nto-procfs.c (procfs_can_run): New function.
7872 (nto_procfs_ops): New global.
7873 (init_procfs_targets): New, based on procfs_target. Install
7874 "target native" in addition to "target procfs".
7875 (_initialize_procfs): Call init_procfs_targets instead of adding
7876 the target here.
7877
7878 2014-05-21 Pedro Alves <palves@redhat.com>
7879
7880 * windows-nat.c (windows_target): Don't override to_shortname,
7881 to_longname or to_doc.
7882
7883 2014-05-21 Pedro Alves <palves@redhat.com>
7884
7885 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7886 to_doc.
7887
7888 2014-05-21 Pedro Alves <palves@redhat.com>
7889
7890 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7891 to_shortname, to_longname or to_doc.
7892
7893 2014-05-21 Pedro Alves <palves@redhat.com>
7894
7895 * go32-nat.c (go32_target): Don't override to_shortname,
7896 to_longname or to_doc.
7897
7898 2014-05-21 Pedro Alves <palves@redhat.com>
7899
7900 * inf-child.c (inf_child_open): Remove mention of "child".
7901 (inf_child_target): Rename target to "native" instead of "child".
7902
7903 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7904
7905 * Makefile.in (SFILES): Delete "regset.c".
7906 (COMMON_OBS): Delete "regset.o".
7907 * regset.c: Remove.
7908 * regset.h (regset_alloc): Delete prototype.
7909
7910 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7911
7912 * sparc-linux-tdep.c (sparc32_linux_gregset)
7913 (sparc32_linux_fpregset): New static regset structures.
7914 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7915 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7916 'fpregset' fields.
7917 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7918 (sparc64_linux_fpregset): New static regset structures.
7919 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7920 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7921 New static regset structures.
7922 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7923 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7924 New static regset structures.
7925 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7926 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7927 New static regset structures.
7928 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7929 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7930 New static regset structures.
7931 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7932
7933 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7934
7935 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7936 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7937 register maps ("regmaps") from "*regset" to "*regmap". Do this
7938 for all regmap types and variables.
7939 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7940 (sparc32_linux_supply_core_gregset)
7941 (sparc32_linux_collect_core_gregset)
7942 (sparc32_linux_supply_core_fpregset)
7943 (sparc32_linux_collect_core_fpregset): Likewise.
7944 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7945 (sparc_gregmap, sparc_fpregmap): ... these.
7946 (sparc_supply_gregset, sparc_collect_gregset)
7947 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7948 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7949 (_initialize_sparc_nat): Rename regmaps.
7950 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7951 (sparc_gregmap, sparc_fpregmap): ... these.
7952 (sparc_supply_gregset, sparc_collect_gregset)
7953 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7954 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7955 Rename macros to...
7956 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7957 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7958 Likewise.
7959 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7960 Rename to...
7961 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7962 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7963 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7964 regmaps.
7965 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7966 (sparc32_bsd_fpregset): Rename to...
7967 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7968 (sparc32_bsd_fpregmap): ... these.
7969 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7970 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7971 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7972 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7973 (struct sparc_gregmap, struct sparc_fpregmap)
7974 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7975 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7976 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7977 (sparc32_supply_regset, sparc32_collect_gregset)
7978 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7979 prototypes.
7980 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7981 (sparc64_linux_ptrace_gregmap): ... this.
7982 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7983 (_initialize_sparc64_linux_nat): Rename regmaps.
7984 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7985 (sparc64_linux_core_gregmap): ... this.
7986 (sparc64_linux_supply_core_gregset)
7987 (sparc64_linux_collect_core_gregset)
7988 (sparc64_linux_supply_core_fpregset)
7989 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7990 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7991 (sparc64_sol2_fpregset): Rename to...
7992 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7993 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7994 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7995 regmaps.
7996 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7997 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7998 (sparc64_bsd_fpregset): Rename to...
7999 (struct sparc_gregmap, sparc64_sol2_gregmap)
8000 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8001 (sparc64_bsd_fpregmap): ... these.
8002 (sparc64_supply_gregset, sparc64_collect_gregset)
8003 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8004 prototypes.
8005 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8006 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8007 (sparc64fbsd_gregmap): ... this.
8008 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8009 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8010 Rename regmaps.
8011 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8012 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8013 (sparc64nbsd_collect_fpregset): Likewise.
8014 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8015 (sparc64nbsd_gregmap): ... this.
8016 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8017 regmaps.
8018 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8019 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8020 (sparc64obsd_gregmap): ... this.
8021 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8022 regmaps.
8023 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8024 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8025 (sparc32nbsd_gregmap): ... this.
8026 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8027 regmaps.
8028
8029 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8030
8031 * score-tdep.c (score7_linux_gregset): New static regset
8032 structure.
8033 (score7_linux_regset_from_core_section): Remove dynamic regset
8034 allocation.
8035 (score_gdbarch_init): Drop allocation of tdep structure.
8036 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8037
8038 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8039
8040 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8041 regset structures.
8042 (am33_regset_from_core_section): Remove dynamic regset
8043 allocations.
8044
8045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8046
8047 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8048 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8049 structures.
8050 (mips_linux_regset_from_core_section): Remove dynamic regset
8051 allocations.
8052 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8053 'gregset64', 'fpregset', and 'fpregset64'.
8054 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8055 deleted tdep fields.
8056
8057 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8058
8059 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8060 regset structures.
8061 (amd64_regset_from_core_section): Remove dynamic regset
8062 allocations.
8063 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8064 structure.
8065 (amd64obsd_regset_from_core_section): Remove dynamic regset
8066 allocation.
8067 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8068 Likewise.
8069 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8070 x86-common regset supply function.
8071 * i386-tdep.c (i386_collect_gregset): Make static.
8072 (i386_gregset): New global regset structure.
8073 (i386_fpregset, i386_xstateregset): New static regset structures.
8074 (i386_regset_from_core_section): Remove dynamic regset
8075 allocations.
8076 (i386_gdbarch_init): Remove initialization of tdep fields
8077 'gregset', 'fpregset', and 'xstateregset'.
8078 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8079 'fpregset', and 'xstateregset'.
8080 (i386_collect_gregset): Remove prototype.
8081 (i386_gregset): New declaration.
8082 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8083 structure.
8084 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8085 allocation.
8086
8087 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8088
8089 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8090 (arm_linux_vfpregset): New static regset structures.
8091 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8092 regset structures.
8093 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8094 and 'vfpregset' fields.
8095
8096 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8097
8098 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8099 (aarch64_linux_fpregset): New static regset structures.
8100 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8101 of regset structures.
8102 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8103 'fpregset' fields.
8104
8105 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8106
8107 * regset.h (struct regset): Remove gdbarch field.
8108 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8109 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8110 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8111 Likewise.
8112 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8113 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8114 (ppc32_linux_vsxregset): Likewise.
8115 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8116 via the regcache instead of the regset.
8117 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8118 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8119 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8120 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8121 Likewise.
8122
8123 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8124
8125 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8126 Constify structures.
8127 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8128 (alphanbsd_aout_gregset): Likewise.
8129 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8130 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8131 Likewise.
8132 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8133 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8134 Likewise.
8135 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8136 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8137 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8138 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8139 * m88k-tdep.c (m88k_gregset): Likewise.
8140 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8141 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8142 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8143 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8144 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8145 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8146 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8147 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8148 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8149 Likewise.
8150 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8151 * sh-tdep.h (sh_corefile_gregset): Likewise.
8152 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8153 * vax-tdep.c (vax_gregset): Likewise.
8154
8155 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8156
8157 Fix TLS access for -static -pthread.
8158 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8159 (try_thread_db_load_1): Initialize it.
8160 (thread_db_get_thread_local_address): Call it if LM is zero.
8161 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8162 * target.h (struct target_ops) (to_get_thread_local_address): Add
8163 load_module_addr comment.
8164
8165 2014-05-21 Pedro Alves <palves@redhat.com>
8166
8167 * dcache.c (dcache_read_memory_partial): If reading the cache line
8168 fails, fallback to reading just the memory the caller wanted.
8169
8170 2014-05-20 Doug Evans <dje@google.com>
8171
8172 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8173 instead of get_current_arch.
8174
8175 2014-05-20 Pedro Alves <palves@redhat.com>
8176
8177 * NEWS: Mention that compare-sections now works with all targets.
8178
8179 * remote.c (PACKET_qCRC): New enum value.
8180 (remote_verify_memory): Don't send qCRC if the target has no
8181 execution. Use packet_support/packet_ok. If the target doesn't
8182 support the qCRC packet, fallback to a deep memory copy.
8183 (compare_sections_command): Say "target image" instead of "remote
8184 executable".
8185 (_initialize_remote): Add PACKET_qCRC to the list of config
8186 packets that have no associated command. Extend comment.
8187 * target.c (simple_verify_memory, default_verify_memory): New
8188 function.
8189 * target.h (struct target_ops) <to_verify_memory>: Default to
8190 default_verify_memory.
8191 (simple_verify_memory): New declaration.
8192 * target-delegates.c: Regenerate.
8193
8194 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8195
8196 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8197
8198 2014-05-20 Hui Zhu <hui@codesourcery.com>
8199 Yao Qi <yao@codesourcery.com>
8200
8201 PR backtrace/16558
8202 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8203 and change address of sp and pc.
8204
8205 2014-05-19 Tom Tromey <tromey@redhat.com>
8206
8207 * gdbtypes.c (rank_function): Use XNEWVEC.
8208 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8209
8210 2014-05-19 Doug Evans <dje@google.com>
8211
8212 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8213 build_type_unit_groups and moved closer to only caller. Remove
8214 arguments. All references updated. Remove outdated .gdb_index
8215 comment.
8216 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8217 build_type_psymtabs_1.
8218
8219 2014-05-19 Doug Evans <dje@google.com>
8220
8221 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8222 n_type_unit_groups, all_type_unit_groups. All uses removed.
8223 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8224 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8225 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8226 (add_type_unit_group_to_table): Delete.
8227
8228 2014-05-19 Doug Evans <dje@google.com>
8229
8230 * eval.c (evaluate_subexp_standard): Add some comments.
8231
8232 2014-05-17 Doug Evans <xdje42@gmail.com>
8233
8234 * progspace.c (remove_program_space): Delete, unused.
8235 * progspace.h (remove_program_space): Ditto.
8236
8237 2014-05-17 Doug Evans <xdje42@gmail.com>
8238
8239 * inferior.c (prune_inferiors): Fix comment.
8240 (remove_inferior_command): Call prune_program_spaces.
8241
8242 2014-05-16 Doug Evans <dje@google.com>
8243
8244 New command line option -D.
8245 * NEWS: Mention it.
8246 * main.c (set_gdb_data_directory): New function.
8247 (captured_main): Recognize -D. Flag error for --data-directory "".
8248 Call set_gdb_data_directory.
8249 (print_gdb_help): Print --data-directory, -D.
8250 * main.h (set_gdb_data_directory): Declare.
8251 * top.c (staged_gdb_datadir): New static global.
8252 (set_gdb_datadir): Call set_gdb_data_directory
8253 (show_gdb_datadir): New function.
8254 (init_main): Update init of data-directory parameter.
8255
8256 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8257
8258 Import the "dirfd" gnulib module.
8259 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8260 * gnulib/aclocal.m4: Update.
8261 * gnulib/config.in: Update.
8262 * gnulib/configure: Update.
8263 * gnulib/import/Makefile.am: Update.
8264 * gnulib/import/Makefile.in: Update.
8265 * gnulib/import/dirfd.c: New.
8266 * gnulib/import/m4/dirfd.m4: New.
8267 * gnulib/import/m4/gnulib-cache.m4: Update.
8268 * gnulib/import/m4/gnulib-comp.m4: Update.
8269
8270 2014-05-16 Pierre Muller <muller@sourceware.org>
8271 Yao Qi <yao@codesourcery.com>
8272
8273 * valprint.c (print_wchar): Move the code on checking whether
8274 W is a printable wide char to the default branch of switch
8275 statement below. Call wchar_printable instead of gdb_iswprint.
8276
8277 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8278
8279 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8280 ldr.w and ldrd instructions.
8281
8282 2014-05-15 Doug Evans <dje@google.com>
8283
8284 * dwarf2read.c (read_structure_type): Delete outdated comments.
8285
8286 2014-05-14 Tom Tromey <tromey@redhat.com>
8287
8288 * macrocmd.c (print_macro_definition): Reindent.
8289
8290 2014-05-13 Doug Evans <xdje42@gmail.com>
8291
8292 * python/py-cmd.c (cmdpy_completer): Add comment.
8293 (completers): Make const.
8294
8295 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8296
8297 * infrun.c (resume): Remove should_resume (unused). Move up
8298 declaration of resume_ptid.
8299
8300 2014-05-13 Tom Tromey <tromey@redhat.com>
8301
8302 * language.h (unop_type_check): Remove.
8303 (binop_type_check): Don't declare.
8304
8305 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8306
8307 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8308 call to regcache_raw_collect.
8309
8310 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8311
8312 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8313 mi_console->quote as the quoting character.
8314
8315 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8316
8317 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8318
8319 2014-04-29 Tom Tromey <tromey@redhat.com>
8320
8321 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8322 "show debug varobj".
8323
8324 2014-05-07 Kyle McMartin <kyle@redhat.com>
8325
8326 Pushed by Joel Brobecker <brobecker@adacore.com>.
8327 * aarch64-tdep.c (aarch64_software_single_step): New function.
8328 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8329 with aarch64_software_single_step.
8330
8331 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8332
8333 GDB 7.7.1 released.
8334
8335 2014-05-05 Keith Seitz <keiths@redhat.com>
8336
8337 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8338 variable or history value is successfully parsed.
8339
8340 2014-05-05 Yao Qi <yao@codesourcery.com>
8341 Pedro Alves <palves@redhat.com>
8342
8343 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8344 address of blocks that intersects the requested range. Trim
8345 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8346 sections.
8347 * ctf.c (ctf_xfer_partial): Likewise.
8348
8349 2014-05-05 Yao Qi <yao@codesourcery.com>
8350
8351 * printcmd.c (display_command): Remove the check to
8352 target_has_execution.
8353
8354 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8355
8356 * ppcobsd-nat.c: Include "obsd-nat.h".
8357 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8358 add_target.
8359 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8360
8361 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8362
8363 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8364 and 16-bit signed and unsigned arguments. Update comment.
8365 (stap_parse_probe_arguments): Extend code to handle such
8366 arguments. Use warning instead of complaint to notify about
8367 unrecognized bitness.
8368
8369 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8370
8371 PR breakpoints/16889
8372 * stap-probe.c (stap_parse_probe_arguments): Simplify
8373 check for non-prefixed probes (i.e., probes whose
8374 arguments do not start with "N@"). Always set the
8375 argument type to a sane value.
8376
8377 2014-05-01 David Taylor <dtaylor@emc.com>
8378
8379 * remote.c (compare_sections_command): Add -r option to compare
8380 all loadable read-only sections.
8381
8382 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8383
8384 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8385 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8386 Update all callers.
8387 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8388 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8389 Remove unused CORE_ADDR argument. Update all callers.
8390
8391 2014-04-29 Pedro Alves <palves@redhat.com>
8392
8393 * remote.c (struct packet_config) <detect>: Extend comment.
8394 (add_packet_config_cmd): Don't set the config's detect or support
8395 fields here.
8396 (init_all_packet_configs): Also initialize the config's 'detect'
8397 field.
8398 (reset_all_packet_configs_support): New function.
8399 (remote_open_1): Call reset_all_packet_configs_support instead of
8400 init_all_packet_configs.
8401 (_initialize_remote): Initialize all packet configs. Assert that
8402 all packets have an associated command, except a few known
8403 outliers.
8404
8405 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8406
8407 * dwarf2read.c (read_subrange_type): Handle dynamic
8408 DW_AT_lower_bound attributes.
8409
8410 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8411
8412 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8413 dynamic bounds before computing its upper bound.
8414 (ada_discrete_type_low_bound): Same as above with the lower bound.
8415
8416 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8417
8418 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8419 range types. Adjust the array handling implementation to
8420 take advantage of this change.
8421 (resolve_dynamic_range): New function, mostly extracted from
8422 resolve_dynamic_bounds.
8423 (resolve_dynamic_array): New function, mostly extracted from
8424 resolve_dynamic_bounds.
8425 (resolve_dynamic_bounds): Delete.
8426 (resolve_dynamic_type): Reimplement. Add handling of
8427 TYPE_CODE_RANGE types.
8428
8429 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8430
8431 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8432 handling of parallel ___XA types.
8433
8434 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8435
8436 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8437 unnecessary second call to static_unwrap_type.
8438
8439 2014-04-27 Hui Zhu <hui@codesourcery.com>
8440
8441 * stack.c (print_frame_info): Call do_gdb_disassembly with
8442 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8443
8444 2014-04-26 Doug Evans <xdje42@gmail.com>
8445
8446 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8447
8448 2014-04-25 Pedro Alves <palves@redhat.com>
8449
8450 PR server/16255
8451 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8452 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8453 and newline from built string.
8454 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8455 (linux_ptrace_attach_fail_reason): ... this.
8456 * linux-nat.c (linux_nat_attach): Adjust to use
8457 linux_ptrace_attach_fail_reason.
8458
8459 2014-04-25 Pedro Alves <palves@redhat.com>
8460
8461 * remote.c (struct remote_state): Remove multi_process_aware,
8462 non_stop_aware, cond_tracepoints, cond_breakpoints,
8463 breakpoint_commands, fast_tracepoints, static_tracepoints,
8464 install_in_trace, disconnected_tracing,
8465 enable_disable_tracepoints, string_tracing, and
8466 augmented_libraries_svr4_read fields.
8467 (remote_multi_process_p): Move further below in the file.
8468 (struct packet_config): Add comments.
8469 (update_packet_config): Delete function.
8470 (show_packet_config_cmd): Use packet_config_support.
8471 (add_packet_config_cmd): Use NULL as set callback.
8472 (packet_ok): "set remote foo-packet"-style commands no longer
8473 change config->supported -- adjust.
8474 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8475 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8476 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8477 (PACKET_QNonStop, PACKET_multiprocess_feature)
8478 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8479 (PACKET_DisconnectedTracing_feature)
8480 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8481 (set_remote_protocol_packet_cmd): Delete function.
8482 (packet_config_support, packet_support): New functions.
8483 (set_remote_protocol_Z_packet_cmd): Don't call
8484 update_packet_config.
8485 (remote_query_attached, remote_pass_signals)
8486 (remote_program_signals, remote_threads_info)
8487 (remote_threads_extra_info, remote_start_remote): Use
8488 packet_support.
8489 (remote_start_remote): Use packet_config_support and
8490 packet_support.
8491 (init_all_packet_configs): Set all packets to unknown support,
8492 instead of calling update_packet_config.
8493 (remote_check_symbols): Use packet_support.
8494 (remote_supported_packet): Unconditionally set the packet config's
8495 support status.
8496 (remote_multi_process_feature, remote_non_stop_feature)
8497 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8498 (remote_breakpoint_commands_feature)
8499 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8500 (remote_install_in_trace_feature)
8501 (remote_disconnected_tracing_feature)
8502 (remote_enable_disable_tracepoint_feature)
8503 (remote_string_tracing_feature)
8504 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8505 (remote_protocol_features): Adjust to use remote_supported_packet
8506 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8507 "ConditionalTracepoints", "ConditionalBreakpoints",
8508 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8509 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8510 "EnableDisableTracepoints", and "tracenz".
8511 (remote_query_supported): Use packet_support.
8512 (remote_open_1): Adjust.
8513 (extended_remote_attach_1): Use packet_support. Switch on the
8514 result of packet_ok instead of checking whether the packet ended
8515 up disabled.
8516 (remote_vcont_resume): Use packet_support.
8517 (remote_resume, remote_stop_ns, fetch_register_using_p)
8518 (remote_prepare_to_store, store_register_using_P)
8519 (check_binary_download, remote_write_bytes): Use packet_support.
8520 (remote_vkill): Use packet_support. Switch on the result of
8521 packet_ok instead of checking whether the packet ended up
8522 disabled.
8523 (extended_remote_supports_disable_randomization): Use
8524 packet_support.
8525 (extended_remote_run): Switch on the result of packet_ok instead
8526 of checking whether the packet ended up disabled.
8527 (remote_insert_breakpoint, remote_remove_breakpoint)
8528 (remote_insert_watchpoint, remote_remove_watchpoint)
8529 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8530 packet_support.
8531 (remote_search_memory): Use packet_config_support.
8532 (remote_get_thread_local_address, remote_get_tib_address)
8533 (remote_hostio_send_command, remote_can_execute_reverse): Use
8534 packet_support.
8535 (remote_supports_cond_tracepoints)
8536 (remote_supports_cond_breakpoints)
8537 (remote_supports_fast_tracepoints)
8538 (remote_supports_static_tracepoints)
8539 (remote_supports_install_in_trace)
8540 (remote_supports_enable_disable_tracepoint)
8541 (remote_supports_string_tracing)
8542 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8543 the packet config says the feature is enabled or disabled.
8544 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8545 (remote_get_trace_status): Use packet_support.
8546 (remote_set_disconnected_tracing): Adjust to check whether the
8547 feature is enabled with packet_support.
8548 (remote_set_trace_buffer_size, remote_use_agent)
8549 (remote_can_use_agent, remote_supports_btrace): Use
8550 packet_support.
8551 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8552 Use packet_config_support.
8553 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8554 the packet config says the feature is enabled or disabled.
8555 (set_range_stepping): Use packet_support.
8556
8557 2014-04-25 Tom Tromey <tromey@redhat.com>
8558
8559 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8560 argument.
8561
8562 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8563
8564 * NEWS: Mention support for C99 variable length arrays.
8565
8566 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8567
8568 * ada-lang.c (standard_exc): Expand introductory comment.
8569
8570 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8571 Walfred Tedeschi <walfred.tedeschi@intel.com>
8572
8573 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8574 AVX512 registers.
8575 (amd64_linux_read_description): Add code to handle AVX512 xstate
8576 mask and return respective tdesc.
8577 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8578 and features/i386/x32-avx512-linux.c.
8579 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8580 (amd64_linux_core_read_description): Add code to handle AVX512
8581 xstate mask and return respective tdesc.
8582 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8583 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8584 calculation.
8585 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8586 (tdesc_amd64_avx512_linux): New prototype.
8587 (tdesc_x32_avx512_linux): Likewise.
8588 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8589 features/i386/x32-avx512.c.
8590 (amd64_ymm_avx512_names): New register names for pseudo
8591 registers YMM16-31.
8592 (amd64_ymmh_avx512_names): New register names for raw registers
8593 YMMH16-31.
8594 (amd64_k_names): New register names for K registers.
8595 (amd64_zmmh_names): New register names for ZMM raw registers.
8596 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8597 (amd64_xmm_avx512_names): New register names for XMM16-31
8598 registers.
8599 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8600 registers.
8601 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8602 if feature is present.
8603 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8604 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8605 (AMD64_NUM_REGS): Adjust to new number of registers.
8606 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8607 registers supplied via XSTATE by AVX512 registers.
8608 (i386_linux_read_description): Add case for AVX512.
8609 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8610 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8611 (i386_linux_core_read_description): Add case for AVX512.
8612 (i386_linux_init_abi): Install supported register note section
8613 for AVX512.
8614 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8615 AVX512.
8616 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8617 registers to be number of zmm7h + 1.
8618 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8619 * i386-tdep.c: Include features/i386/i386-avx512.c.
8620 (i386_zmm_names): Add ZMM pseudo register names array.
8621 (i386_zmmh_names): Add ZMM raw register names array.
8622 (i386_k_names): Add K raw register names array.
8623 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8624 registers. AVX512 has 16 more ZMM registers than there are YMM
8625 registers.
8626 (i386_zmmh_regnum_p): Add function to look up register number of
8627 ZMM raw registers.
8628 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8629 (i386_k_regnum_p): Likewise for K raw registers.
8630 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8631 registers added by AVX512.
8632 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8633 registers added by AVX512.
8634 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8635 added by AVX512.
8636 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8637 (i386_pseudo_register_name): Add ZMM pseudo registers.
8638 (i386_zmm_type): Construct and return vector registers type for ZMM
8639 registers.
8640 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8641 ZMM0-31 pseudo registers and K registers.
8642 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8643 and YMM16-31 registers from register cache.
8644 (i386_pseudo_register_write): Add code to write K, ZMM and
8645 YMM16-31 registers.
8646 (i386_register_reggroup_p): Add code to include/exclude AVX512
8647 registers in/from respective register groups.
8648 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8649 registers if feature is present in xcr0.
8650 (i386_gdbarch_init): Add code to initialize AVX512 feature
8651 variables in tdep structure, wire in pseudo registers and call
8652 initialize_tdesc_i386_avx512.
8653 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8654 variables.
8655 (i386_regnum): Add AVX512 registers.
8656 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8657 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8658 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8659 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8660 512 bits wide.
8661 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8662 (i386_ymm_avx512_regnum_p): Likewise.
8663 (i386_k_regnum_p): Likewise.
8664 (i386_zmm_regnum_p): Likewise.
8665 (i386_zmmh_regnum_p): Likewise.
8666 * i387-tdep.c : Update year in copyright notice.
8667 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8668 XSAVE buffer.
8669 (XSAVE_YMM_AVX512_ADDR): New macro.
8670 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8671 XSAVE buffer.
8672 (XSAVE_XMM_AVX512_ADDR): New macro.
8673 (xsave_avx512_k_offset): New table for K register offsets in
8674 XSAVE buffer.
8675 (XSAVE_AVX512_K_ADDR): New macro.
8676 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8677 in XSAVE buffer.
8678 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8679 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8680 buffer.
8681 (i387_collect_xsave): Add code to collect AVX512 registers from
8682 XSAVE buffer.
8683 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8684 of XMM16-31 registers.
8685 (I387_NUM_K_REGS): New define for number of K registers.
8686 (I387_K0_REGNUM): New define for K0 register number.
8687 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8688 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8689 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8690 registers.
8691 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8692 (I387_XMM16_REGNUM): New define for XMM16 register number.
8693 (I387_YMM0_REGNUM): New define for YMM0 register number.
8694 (I387_KEND_REGNUM): New define for last K register number.
8695 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8696 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8697 number.
8698 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8699 number.
8700 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8701 size.
8702 * features/Makefile: Add AVX512 related files.
8703 * features/i386/32bit-avx512.xml: New file.
8704 * features/i386/64bit-avx512.xml: Likewise.
8705 * features/i386/amd64-avx512-linux.c: Likewise.
8706 * features/i386/amd64-avx512-linux.xml: Likewise.
8707 * features/i386/amd64-avx512.c: Likewise.
8708 * features/i386/amd64-avx512.xml: Likewise.
8709 * features/i386/i386-avx512-linux.c: Likewise.
8710 * features/i386/i386-avx512-linux.xml: Likewise.
8711 * features/i386/i386-avx512.c: Likewise.
8712 * features/i386/i386-avx512.xml: Likewise.
8713 * features/i386/x32-avx512-linux.c: Likewise.
8714 * features/i386/x32-avx512-linux.xml: Likewise.
8715 * features/i386/x32-avx512.c: Likewise.
8716 * features/i386/x32-avx512.xml: Likewise.
8717 * regformats/i386/amd64-avx512-linux.dat: New file.
8718 * regformats/i386/amd64-avx512.dat: Likewise.
8719 * regformats/i386/i386-avx512-linux.dat: Likewise.
8720 * regformats/i386/i386-avx512.dat: Likewise.
8721 * regformats/i386/x32-avx512-linux.dat: Likewise.
8722 * regformats/i386/x32-avx512.dat: Likewise.
8723 * NEWS: Add note about new support for AVX512.
8724
8725
8726 2014-04-23 Pedro Alves <palves@redhat.com>
8727
8728 * breakpoint.c (insert_bp_location): Tolerate errors if the
8729 breakpoint is set in a user-loaded objfile.
8730 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8731 location is marked shlib_disabled. If the breakpoint is set in a
8732 user-loaded objfile is a GDB-side memory breakpoint, validate it
8733 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8734 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8735 flag.
8736 * mem-break.c (memory_validate_breakpoint): New function.
8737 * objfiles.c (userloaded_objfile_contains_address_p): New
8738 function.
8739 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8740 * target.h (memory_validate_breakpoint): New declaration.
8741
8742 2014-04-23 Pedro Alves <palves@redhat.com>
8743
8744 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8745 the breakpoint is set in a shared library, only suppress
8746 errors for software breakpoints, not hardware breakpoints.
8747
8748 2014-04-22 Pedro Alves <palves@redhat.com>
8749
8750 * infrun.c (schedlock_applies): New function, factored out from
8751 find_thread_needs_step_over.
8752 (find_thread_needs_step_over): Use it.
8753 (switch_back_to_stepped_thread): Always clear trap_expected if the
8754 step over is finished. Return early if scheduler locking applies.
8755 Look for the stepping thread and a potential step-over thread with
8756 a single loop.
8757 (currently_stepping_or_nexting_callback): Delete.
8758
8759 2014-04-22 Nick Clifton <nickc@redhat.com>
8760
8761 * NEWS: Mention that ARM sim now supports tracing.
8762
8763 2014-04-22 Yao Qi <yao@codesourcery.com>
8764
8765 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8766 to ...
8767 * tracefile.c (tracefile_fetch_registers): ... it. New
8768 function.
8769 * tracefile.h (tracefile_fetch_registers): Declare.
8770 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8771 tracefile_fetch_registers.
8772
8773 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8774
8775 PR gdb/14018
8776 * windows-nat.c (thread_rec): Don't display a warning when
8777 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8778 fails for any reason, set th->suspended to -1, so that we don't
8779 try to resume such a thread. Also, don't return NULL in these
8780 cases, to avoid completely ruin the session due to "PC register is
8781 not available" error.
8782 (do_windows_fetch_inferior_registers): Check errors in
8783 GetThreadContext call.
8784 (windows_continue): Accept an additional argument KILLED; if not
8785 zero, ignore errors in the SetThreadContext call, since the
8786 inferior was killed and is shutting down.
8787 (windows_resume, get_windows_debug_event)
8788 (windows_create_inferior, windows_mourn_inferior)
8789 (windows_kill_inferior): All callers of windows_continue changed
8790 to adjust to its new calling sequence.
8791
8792 2014-04-19 Yao Qi <yao@codesourcery.com>
8793
8794 * ctf.c (ctf_open): Call post_create_inferior.
8795
8796 2014-04-19 Yao Qi <yao@codesourcery.com>
8797
8798 * ctf.c (handle_id): New static variable.
8799 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8800 value. Get the declaration of event "register" and get length
8801 of field "contents".
8802
8803 2014-04-19 Yao Qi <yao@codesourcery.com>
8804
8805 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8806
8807 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8808
8809 * valops.c (oload_method_static): Remove unnecessary argument
8810 METHOD. Update all callers.
8811
8812 2014-04-18 Pedro alves <palves@redhat.com>
8813 Tom Tromey <tromey@redhat.com>
8814
8815 PR backtrace/15558
8816 * frame.c (get_prev_frame_1): Rename to ...
8817 (get_prev_frame_always): ... this, and make extern. Adjust.
8818 (skip_artificial_frames): Use get_prev_frame_always.
8819 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8820 (get_frame_unwind_stop_reason): Adjust to rename.
8821 * frame.h (get_prev_frame_always): Declare.
8822 * inline-frame.c: Include frame.h.
8823 (inline_frame_this_id): Use get_prev_frame_always.
8824
8825 2014-04-18 Tristan Gingold <gingold@adacore.com>
8826
8827 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8828 code by using bfd_mach_o_get_base_address.
8829
8830 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8831
8832 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8833 (spu_ax_pseudo_register_collect): New function.
8834 (spu_ax_pseudo_register_push_stack): Likewise.
8835 (spu_dwarf_reg_to_regnum): Likewise.
8836 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8837
8838 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8839
8840 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8841 Replace FRAME argument with FRAME_ID.
8842 * gdbarch.c, gdbarch.h: Regenerate.
8843 * findvar.c (default_value_from_register): Add GDBARCH argument;
8844 replace FRAME by FRAME_ID. No longer call get_frame_id.
8845 (value_from_register): Update call to gdbarch_value_from_register.
8846 * value.h (default_value_from_register): Update prototype.
8847 * s390-linux-tdep.c (s390_value_from_register): Update interface
8848 and call to default_value_from_register.
8849 * spu-tdep.c (spu_value_from_register): Likewise.
8850
8851 * findvar.c (address_from_register): Remove TYPE argument.
8852 Do not call value_from_register; use gdbarch_value_from_register
8853 with null_frame_id instead.
8854 * value.h (address_from_register): Update prototype.
8855 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8856 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8857 address_from_register interface change.
8858
8859 2014-04-17 Yao Qi <yao@codesourcery.com>
8860
8861 * gdbtypes.h: Update comments to link to types and macros'
8862 definitions.
8863
8864 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8865
8866 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8867
8868 2014-04-16 Keith Seitz <keiths@redhat.com>
8869
8870 PR gdb/15827
8871 * dwarf2read.c (skip_one_die): Check that all relative-offset
8872 sibling DIEs fall within range of the current reader's buffer.
8873 (read_partial_die): Likewise.
8874
8875 2014-04-16 Keith Seitz <keiths@redhat.com>
8876
8877 PR c++/16597
8878 * cp-namespace.c (lookup_symbol_file): If the type name of
8879 `this' is NULL, return immediately.
8880
8881 2014-04-14 Keith Seitz <keiths@redhat.com>
8882
8883 PR c++/16253
8884 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8885 from symbol_matches_domain in symtab.c. All local callers
8886 of symbol_matches_domain updated.
8887 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8888 search STRUCT_DOMAIN.
8889 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8890 independently. standard_lookup will do that automatically.
8891 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8892 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8893 (cp_lookup_symbol_in_namespace): Likewise.
8894 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8895 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8896 may return a STRUCT_DOMAIN match.
8897 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8898 * cp-support.c: Include language.h.
8899 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8900 VAR_DOMAIN.
8901 * psymtab.c (match_partial_symbol): Compare the requested
8902 domain with the symbol's domain directly.
8903 (lookup_partial_symbol): Likewise.
8904 * symtab.c (lookup_symbol_in_language): Explain when/why
8905 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8906 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8907 appropriate languages.
8908 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8909 and moved to ada-lang.c
8910 (lookup_block_symbol): Explain that this function only returns
8911 symbol matching the requested DOMAIN.
8912 Compare the requested domain with the symbol's domain directly.
8913 (iterate_over_symbols): Compare the requested domain with the
8914 symbol's domain directly.
8915 * symtab.h (symbol_matches_domain): Remove.
8916
8917 2014-04-14 Tom Tromey <tromey@redhat.com>
8918
8919 PR c++/15246:
8920 * c-exp.y (type_aggregate_p): New function.
8921 (qualified_name, classify_inner_name): Use it.
8922 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8923 and TYPE_TARGET_TYPE of an enum type.
8924 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8925 an enum type.
8926 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8927 handle TYPE_DECLARED_CLASS.
8928 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8929 types.
8930 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8931 * valops.c (enum_constant_from_type): New function.
8932 (value_aggregate_elt): Use it.
8933 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8934 TYPE_CODE_ENUM.
8935
8936 2014-04-14 Tom Tromey <tromey@redhat.com>
8937
8938 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8939 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8940 const.
8941 * value.h (value_aggregate_elt): Update.
8942
8943 2014-04-14 Tom Tromey <tromey@redhat.com>
8944
8945 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8946
8947 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8948
8949 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8950 (evaluate_subexp_standard): Pass noside argument.
8951 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8952 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8953 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8954 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8955 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8956
8957 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8958
8959 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8960 points to a constant blob.
8961
8962 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8963
8964 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8965 property and store it as the high bound and flag the range accordingly.
8966 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8967 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8968 * gdbtypes.h (enum range_flags): New enum.
8969 (struct range_bounds): Add flags member.
8970
8971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8972
8973 * c-typeprint.c (c_type_print_varspec_suffix): Added
8974 check for not yet resolved high bound. If unresolved, print
8975 "variable length" string to the console instead of random
8976 length.
8977
8978 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8979
8980 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8981 value.
8982 (ada_template_to_fixed_record_type_1): Likewise.
8983 (ada_to_fixed_type_1): Likewise.
8984 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8985 (cp_print_value): Likewise.
8986 * d-valprint.c (dynamic_array_type): Likewise.
8987 * findvar.c (address_of_variable): Likewise.
8988 * jv-valprint.c (java_value_print): Likewise.
8989 * valops.c (value_ind): Likewise.
8990 * value.c (coerce_ref): Likewise.
8991
8992 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8993
8994 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8995 value and retrieve the dynamic type size.
8996
8997 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8998
8999 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9000 passed to sizeof is dynamic evaluate the argument to compute the length.
9001
9002 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9003 Joel Brobecker <brobecker@adacore.com>
9004
9005 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9006 (dwarf2_evaluate_property): New function.
9007 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9008 * dwarf2read.c (attr_to_dynamic_prop): New function.
9009 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9010 attribute.
9011 * gdbtypes.c: Include dwarf2loc.h.
9012 (is_dynamic_type): New function.
9013 (resolve_dynamic_type): New function.
9014 (resolve_dynamic_bounds): New function.
9015 (get_type_length): New function.
9016 (check_typedef): Use get_type_length to compute type length.
9017 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9018 (TYPE_LOW_BOUND_KIND): New macro.
9019 (is_dynamic_type): New function prototype.
9020 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9021 to resolve dynamic properties of the type. Update comment.
9022 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9023
9024 2014-04-14 Richard Henderson <rth@redhat.com>
9025
9026 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9027
9028 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9029 Doug Evans <xdje42@gmail.com>
9030
9031 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9032 dereference TYPE_CODE_REF values.
9033
9034 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9035
9036 Revert the following changes due to regressions:
9037
9038 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9039 (dwarf2_evaluate_property): New function.
9040 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9041 * dwarf2read.c (attr_to_dynamic_prop): New function.
9042 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9043 attribute.
9044 * gdbtypes.c: Include dwarf2loc.h.
9045 (is_dynamic_type): New function.
9046 (resolve_dynamic_type): New function.
9047 (resolve_dynamic_bounds): New function.
9048 (get_type_length): New function.
9049 (check_typedef): Use get_type_length to compute type length.
9050 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9051 (TYPE_LOW_BOUND_KIND): New macro.
9052 (is_dynamic_type): New function prototype.
9053 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9054 to resolve dynamic properties of the type. Update comment.
9055 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9056
9057 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9058 passed to sizeof is dynamic evaluate the argument to compute the length.
9059
9060 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9061 value and retrieve the dynamic type size.
9062
9063 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9064 (ada_template_to_fixed_record_type_1): Likewise.
9065 (ada_to_fixed_type_1): Likewise.
9066 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9067 (cp_print_value): Likewise.
9068 * d-valprint.c (dynamic_array_type): Likewise.
9069 * eval.c (evaluate_subexp_with_coercion): Likewise.
9070 * findvar.c (address_of_variable): Likewise.
9071 * jv-valprint.c (java_value_print): Likewise.
9072 * valops.c (value_ind): Likewise.
9073 * value.c (coerce_ref): Likewise.
9074
9075 * c-typeprint.c (c_type_print_varspec_suffix): Added
9076 check for not yet resolved high bound. If unresolved, print
9077 "variable length" string to the console instead of random
9078 length.
9079
9080 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9081 property and store it as the high bound and flag the range accordingly.
9082 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9083 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9084 * gdbtypes.h (enum range_flags): New enum.
9085 (struct range_bounds): Add flags member.
9086
9087 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9088 points to a constant blob.
9089
9090 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9091 (evaluate_subexp_standard): Pass noside argument.
9092 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9093 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9094 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9095 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9096 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9097
9098 2014-04-11 Keith Seitz <keiths@redhat.com>
9099
9100 PR c++/16675
9101 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9102 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9103 reference types.
9104
9105 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9106
9107 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9108 (evaluate_subexp_standard): Pass noside argument.
9109 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9110 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9111 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9112 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9113 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9114
9115 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9116
9117 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9118 points to a constant blob.
9119
9120 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9121
9122 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9123 property and store it as the high bound and flag the range accordingly.
9124 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9125 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9126 * gdbtypes.h (enum range_flags): New enum.
9127 (struct range_bounds): Add flags member.
9128
9129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9130
9131 * c-typeprint.c (c_type_print_varspec_suffix): Added
9132 check for not yet resolved high bound. If unresolved, print
9133 "variable length" string to the console instead of random
9134 length.
9135
9136 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9137
9138 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9139 (ada_template_to_fixed_record_type_1): Likewise.
9140 (ada_to_fixed_type_1): Likewise.
9141 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9142 (cp_print_value): Likewise.
9143 * d-valprint.c (dynamic_array_type): Likewise.
9144 * eval.c (evaluate_subexp_with_coercion): Likewise.
9145 * findvar.c (address_of_variable): Likewise.
9146 * jv-valprint.c (java_value_print): Likewise.
9147 * valops.c (value_ind): Likewise.
9148 * value.c (coerce_ref): Likewise.
9149
9150 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9151
9152 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9153 value and retrieve the dynamic type size.
9154
9155 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9156
9157 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9158 passed to sizeof is dynamic evaluate the argument to compute the length.
9159
9160 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9161
9162 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9163 (dwarf2_evaluate_property): New function.
9164 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9165 * dwarf2read.c (attr_to_dynamic_prop): New function.
9166 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9167 attribute.
9168 * gdbtypes.c: Include dwarf2loc.h.
9169 (is_dynamic_type): New function.
9170 (resolve_dynamic_type): New function.
9171 (resolve_dynamic_bounds): New function.
9172 (get_type_length): New function.
9173 (check_typedef): Use get_type_length to compute type length.
9174 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9175 (TYPE_LOW_BOUND_KIND): New macro.
9176 (is_dynamic_type): New function prototype.
9177 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9178 to resolve dynamic properties of the type. Update comment.
9179 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9180
9181 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9182
9183 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9184 declaring high/low bounds and change uses accordingly. Call
9185 create_range_type instead of create_static_range_type.
9186 * gdbtypes.c (create_range_type): New function.
9187 (create_range_type): Convert bounds into struct bound_prop and pass
9188 them to create_range_type.
9189 * gdbtypes.h (struct bound_prop): New struct.
9190 (create_range_type): New function prototype.
9191 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9192 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9193 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9194 part of the bound.
9195 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9196
9197 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9198
9199 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9200 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9201 * ada-lang.c: All uses of create_range_type updated.
9202 * coffread.c: All uses of create_range_type updated.
9203 * dwarf2read.c: All uses of create_range_type updated.
9204 * f-exp.y: All uses of create_range_type updated.
9205 * m2-valprint.c: All uses of create_range_type updated.
9206 * mdebugread.c: All uses of create_range_type updated.
9207 * stabsread.c: All uses of create_range_type updated.
9208 * valops.c: All uses of create_range_type updated.
9209 * valprint.c: All uses of create_range_type updated.
9210
9211 2014-04-10 Pedro Alves <palves@redhat.com>
9212
9213 * breakpoint.c (single_step_breakpoints)
9214 (single_step_gdbarch): Move up in the file.
9215 (one_breakpoint_xfer_memory): New function, factored out from ...
9216 (breakpoint_xfer_memory): ... here. Also process single-step
9217 breakpoints.
9218
9219 2014-04-09 Tristan Gingold <gingold@adacore.com>
9220
9221 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9222 comments.
9223 (darwin_decode_exception_message): Free port only after use.
9224
9225 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9226
9227 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9228 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9229 when setting the size of call_length.
9230
9231 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9232
9233 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9234 dereference TYPE_CODE_REF values.
9235
9236 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9237
9238 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9239 end of warning message.
9240
9241 2014-04-03 Doug Evans <dje@google.com>
9242
9243 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9244 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9245
9246 2014-04-02 Alan Modra <amodra@gmail.com>
9247
9248 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9249 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9250 (struct symbol_file_add_from_memory_args): Add size field.
9251 (find_vdso_size): New function.
9252 (add_vsyscall_page): Attempt to find vdso size.
9253
9254 2014-04-01 Doug Evans <dje@google.com>
9255
9256 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9257
9258 2014-04-01 Tristan Gingold <gingold@adacore.com>
9259
9260 * darwin-nat.c (darwin_encode_reply): Add prototype.
9261 (darwin_decode_exception_message): Reply to unknown inferiors.
9262 (darwin_decode_message): Handle message by id. Ignore message
9263 to unknown inferior.
9264 (darwin_wait): Discard unknown messages, add debug trace.
9265
9266 2014-03-31 Doug Evans <dje@google.com>
9267
9268 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9269 comp_dir_string.
9270
9271 2014-03-31 Doug Evans <dje@google.com>
9272
9273 New option "set print symbol-loading".
9274 * NEWS: Mention it.
9275 * solib.c (solib_read_symbols): Only print symbol loading messages
9276 if requested.
9277 (solib_add): If symbol loading is in "brief" mode, notify user
9278 symbols are being loaded.
9279 (reload_shared_libraries_1): Ditto.
9280 * symfile.c (print_symbol_loading_off): New static global.
9281 (print_symbol_loading_brief): New static global.
9282 (print_symbol_loading_full): New static global.
9283 (print_symbol_loading_enums): New static global.
9284 (print_symbol_loading): New static global.
9285 (print_symbol_loading_p): New function.
9286 (symbol_file_add_with_addrs): Only print symbol loading messages
9287 if requested.
9288 (_initialize_symfile): Register "print symbol-loading" set/show
9289 command.
9290 * symfile.h (print_symbol_loading_p): Declare.
9291
9292 2014-03-30 Doug Evans <xdje42@gmail.com>
9293
9294 * infrun.c (set_last_target_status): New function.
9295 (handle_inferior_event): Call it.
9296
9297 2014-03-30 Doug Evans <xdje42@gmail.com>
9298
9299 * inferior.h (enum stop_kind): Improve comment.
9300
9301 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9302
9303 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9304 a reference, strip the reference layer before calling
9305 the lang_ops value_has_mutated callback.
9306
9307 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9308
9309 Remove some globals from our parser.
9310 * language.c (unk_lang_parser): Add "struct parser_state"
9311 argument.
9312 * language.h (struct language_defn) <la_parser>: Likewise.
9313 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9314 (initialize_expout): Add "struct parser_state" argument.
9315 Rewrite function to use the parser state.
9316 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9317 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9318 write_exp_elt_longcst, write_exp_elt_dblcst,
9319 write_exp_elt_decfloatcst, write_exp_elt_type,
9320 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9321 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9322 write_dollar_variable): Likewise.
9323 (parse_exp_in_context_1): Use parser state.
9324 (insert_type_address_space): Add "struct parser_state" argument.
9325 Use parser state.
9326 (increase_expout_size): New function.
9327 * parser-defs.h: Forward declare "struct language_defn" and
9328 "struct parser_state".
9329 (expout, expout_size, expout_ptr): Remove extern declarations.
9330 (parse_gdbarch, parse_language): Rewrite macro declarations to
9331 accept the parser state.
9332 (struct parser_state): New struct.
9333 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9334 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9335 write_exp_elt_decfloatcst, write_exp_elt_type,
9336 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9337 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9338 write_exp_msymbol, write_dollar_variable,
9339 mark_struct_expression, insert_type_address_space): Add "struct
9340 parser_state" argument.
9341 (increase_expout_size): New function.
9342 * utils.c (do_clear_parser_state): New function.
9343 (make_cleanup_clear_parser_state): Likewise.
9344 * utils.h (make_cleanup_clear_parser_state): New function
9345 prototype.
9346 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9347 Update calls to write_exp* in order to pass the parser state.
9348 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9349 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9350 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9351 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9352 * stap-probe.c (stap_parse_register_operand): Likewise.
9353 (stap_parse_single_operand): Likewise.
9354 (stap_parse_argument_1): Likewise.
9355 (stap_parse_argument): Use parser state.
9356 * stap-probe.h: Include "parser-defs.h".
9357 (struct stap_parse_info) <pstate>: New field.
9358 * c-exp.y (parse_type): Rewrite to use parser state.
9359 (yyparse): Redefine to c_parse_internal.
9360 (pstate): New global variable.
9361 (parse_number): Add "struct parser_state" argument.
9362 (write_destructor_name): Likewise.
9363 (type_exp): Update calls to write_exp* and similars in order to
9364 use parser state.
9365 (exp1, exp, variable, qualified_name, space_identifier,
9366 typename, typebase): Likewise.
9367 (write_destructor_name, parse_number, lex_one_token,
9368 classify_name, classify_inner_name, c_parse): Add "struct
9369 parser_state" argument. Update function to use parser state.
9370 * c-lang.h: Forward declare "struct parser_state".
9371 (c_parse): Add "struct parser_state" argument.
9372 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9373 (yyparse): Redefine macro to ada_parse_internal.
9374 (pstate): New variable.
9375 (write_int, write_object_renaming, write_var_or_type,
9376 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9377 type_int, type_long, type_long_long, type_float, type_double,
9378 type_long_double, type_char, type_boolean, type_system_address):
9379 Add "struct parser_state" argument.
9380 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9381 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9382 var_or_type, aggregate, aggregate_component_list,
9383 positional_list, others, component_group,
9384 component_associations): Update calls to write_exp* and similar
9385 functions in order to use parser state.
9386 (ada_parse, write_var_from_sym, write_int,
9387 write_exp_op_with_string, write_object_renaming,
9388 find_primitive_type, write_selectors, write_ambiguous_var,
9389 write_var_or_type, write_name_assoc, type_int, type_long,
9390 type_long_long, type_float, type_double, type_long_double,
9391 type_char, type_boolean, type_system_address): Add "struct
9392 parser_state" argument. Adjust function to use parser state.
9393 * ada-lang.c (parse): Likewise.
9394 * ada-lang.h: Forward declare "struct parser_state".
9395 (ada_parse): Add "struct parser_state" argument.
9396 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9397 calls to both functions.
9398 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9399 parser state.
9400 (yyparse): Redefine macro to f_parse_internal.
9401 (pstate): New variable.
9402 (parse_number): Add "struct parser_state" argument.
9403 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9404 and similars in order to use parser state.
9405 (parse_number): Adjust code to use parser state.
9406 (yylex): Likewise.
9407 (f_parse): New function.
9408 * f-lang.h: Forward declare "struct parser_state".
9409 (f_parse): Add "struct parser_state" argument.
9410 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9411 parser state.
9412 (yyparse): Redefine macro for java_parse_internal.
9413 (pstate): New variable.
9414 (push_expression_name, push_expression_name, insert_exp): Add
9415 "struct parser_state" argument.
9416 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9417 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9418 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9419 PostIncrementExpression, PostDecrementExpression,
9420 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9421 UnaryExpressionNotPlusMinus, CastExpression,
9422 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9423 RelationalExpression, EqualityExpression, AndExpression,
9424 ExclusiveOrExpression, InclusiveOrExpression,
9425 ConditionalAndExpression, ConditionalOrExpression,
9426 ConditionalExpression, Assignment, LeftHandSide): Update
9427 calls to write_exp* and similars in order to use parser state.
9428 (parse_number): Ajust code to use parser state.
9429 (yylex): Likewise.
9430 (java_parse): New function.
9431 (push_variable): Add "struct parser_state" argument. Adjust
9432 code to user parser state.
9433 (push_fieldnames, push_qualified_expression_name,
9434 push_expression_name, insert_exp): Likewise.
9435 * jv-lang.h: Forward declare "struct parser_state".
9436 (java_parse): Add "struct parser_state" argument.
9437 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9438 parser state.
9439 (yyparse): Redefine macro to m2_parse_internal.
9440 (pstate): New variable.
9441 (type_exp, exp, fblock, variable, type): Update calls to
9442 write_exp* and similars to use parser state.
9443 (yylex): Likewise.
9444 (m2_parse): New function.
9445 * m2-lang.h: Forward declare "struct parser_state".
9446 (m2_parse): Add "struct parser_state" argument.
9447 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9448 * objc-lang.h: Forward declare "struct parser_state".
9449 (end_msglist): Add "struct parser_state" argument.
9450 * p-exp.y (parse_type): Rewrite macro to use parser state.
9451 (yyparse): Redefine macro to pascal_parse_internal.
9452 (pstate): New variable.
9453 (parse_number): Add "struct parser_state" argument.
9454 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9455 write_exp* and similars in order to use parser state.
9456 (parse_number, yylex): Adjust code to use parser state.
9457 (pascal_parse): New function.
9458 * p-lang.h: Forward declare "struct parser_state".
9459 (pascal_parse): Add "struct parser_state" argument.
9460 * go-exp.y (parse_type): Rewrite macro to use parser state.
9461 (yyparse): Redefine macro to go_parse_internal.
9462 (pstate): New variable.
9463 (parse_number): Add "struct parser_state" argument.
9464 (type_exp, exp1, exp, variable, type): Update calls to
9465 write_exp* and similars in order to use parser state.
9466 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9467 to use parser state.
9468 (go_parse): Likewise.
9469 * go-lang.h: Forward declare "struct parser_state".
9470 (go_parse): Add "struct parser_state" argument.
9471
9472 2014-03-27 Doug Evans <dje@google.com>
9473
9474 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9475
9476 2014-03-27 Doug Evans <dje@google.com>
9477
9478 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9479 Remove argument abbrev_section. All callers updated.
9480
9481 2014-03-27 Doug Evans <dje@google.com>
9482
9483 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9484 addr_base, ranges_base.
9485
9486 2014-03-26 Keith Seitz <keiths@redhat.com>
9487
9488 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9489 types, not VAR_DOMAIN.
9490
9491 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9492
9493 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9494 "ra" registers.
9495 * features/nios2-linux.c: Regenerated.
9496 * features/nios2.c: Regenerated.
9497
9498 2014-03-25 Pedro Alves <palves@redhat.com>
9499
9500 * cli/cli-script.c (script_from_file): Force the interpreter to
9501 sync mode.
9502
9503 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9504
9505 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9506 small stack allocation.
9507
9508 2014-03-24 Tristan Gingold <gingold@adacore.com>
9509
9510 * darwin-nat.c (exc_server): Remove unused prototype.
9511 (darwin_dump_message): Correctly display data on x86_64.
9512 (darwin_encode_reply): Fix style.
9513 Add comments and fix indentation.
9514
9515 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9516
9517 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9518
9519 2014-03-22 Doug Evans <xdje42@gmail.com>
9520
9521 * infcmd.c: Whitespace fixes.
9522 (interrupt_command): Merge two function comments into one.
9523
9524 2014-03-22 Doug Evans <xdje42@gmail.com>
9525
9526 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9527 All uses updated.
9528
9529 2014-03-22 Yao Qi <yao@codesourcery.com>
9530
9531 * remote.c (target_read_live_memory): Remove.
9532 (memory_xfer_live_readonly_partial): Rename it to
9533 remote_xfer_live_readonly_partial. Remove argument 'object'.
9534 All callers updated. Call remote_read_bytes_1
9535 instead of target_read_live_memory.
9536 * tracepoint.c (set_traceframe_number): Remove.
9537 (make_cleanup_restore_traceframe_number): Likewise .
9538 * tracepoint.h (set_traceframe_number): Remove declaration.
9539 (make_cleanup_restore_traceframe_number): Likewise.
9540
9541 2014-03-22 Yao Qi <yao@codesourcery.com>
9542
9543 * remote.c (remote_read_bytes): Move code on reading from the
9544 remote stub to ...
9545 (remote_read_bytes_1): ... here. New function.
9546
9547 2014-03-22 Yao Qi <yao@codesourcery.com>
9548
9549 * ctf.c (ctf_xfer_partial): Check the return value of
9550 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9551 return TARGET_XFER_UNAVAILABLE.
9552 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9553 * target.c (target_read_live_memory): Move it to remote.c.
9554 (memory_xfer_live_readonly_partial): Likewise.
9555 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9556 * remote.c (target_read_live_memory): Moved from target.c.
9557 (memory_xfer_live_readonly_partial): Likewise.
9558 (remote_read_bytes): Factored out from
9559 memory_xfer_partial_1.
9560
9561 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9562
9563 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9564 NULL pointer.
9565
9566 2014-03-21 Pedro Alves <palves@redhat.com>
9567
9568 * infrun.c (normal_stop): Extend comment.
9569
9570 2014-03-21 Hui Zhu <hui@codesourcery.com>
9571 Pedro Alves <palves@redhat.com>
9572
9573 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9574 static buffer.
9575 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9576 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9577 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9578
9579 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9580
9581 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9582 `z' formatted output modifier.
9583
9584 2014-03-20 Tom Tromey <tromey@redhat.com>
9585 Sergio Durigan Junior <sergiodj@redhat.com>
9586
9587 * probe.c (parse_probes): Turn assert into an ordinary error.
9588 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9589 exceptions when parsing probes. Rearrange the code for clarity.
9590
9591 2014-03-20 Tom Tromey <tromey@redhat.com>
9592
9593 PR gdb/14135
9594 * top.c (execute_command): Only dispatch events if the command
9595 started the target.
9596
9597 2014-03-20 Tom Tromey <tromey@redhat.com>
9598
9599 PR cli/15718
9600 * infcall.c: Include event-top.h.
9601 (run_inferior_call): Call async_disable_stdin if needed.
9602
9603 2014-03-20 Pedro Alves <palves@redhat.com>
9604
9605 * infrun.c (prepare_to_proceed): Delete.
9606 (thread_still_needs_step_over): New function.
9607 (find_thread_needs_step_over): New function.
9608 (proceed): If the current thread needs a step-over, set its
9609 steping_over_breakpoint flag. Adjust to use
9610 find_thread_needs_step_over instead of prepare_to_proceed.
9611 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9612 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9613 breakpoint.
9614 (switch_back_to_stepped_thread): Step over breakpoints of all
9615 threads not the stepping thread, before switching back to the
9616 stepping thread.
9617
9618 2014-03-20 Pedro Alves <palves@redhat.com>
9619
9620 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9621 extern.
9622 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9623 * infrun.c (saved_singlestep_ptid)
9624 (stepping_past_singlestep_breakpoint): Delete.
9625 (resume): Remove stepping_past_singlestep_breakpoint handling.
9626 (proceed): Store the prev_pc of the stepping thread too.
9627 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9628 singlestep_pc.
9629 (enum infwait_states): Delete infwait_thread_hop_state.
9630 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9631 field.
9632 (handle_inferior_event): Adjust.
9633 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9634 handling and the thread-hop code. Before removing single-step
9635 breakpoints, check whether the thread hit a single-step breakpoint
9636 of another thread. If it did, the trap is not a random signal.
9637 (switch_back_to_stepped_thread): If the event thread hit a
9638 single-step breakpoint, unblock it before switching to the
9639 stepping thread. Handle the case of the stepped thread having
9640 advanced already.
9641 (keep_going): Handle the case of the current thread moving past a
9642 single-step breakpoint.
9643
9644 2014-03-20 Pedro Alves <palves@redhat.com>
9645
9646 PR breakpoints/7143
9647 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9648 are being stepped over.
9649 (breakpoint_address_match): Make extern.
9650 * breakpoint.h (breakpoint_address_match): New declaration.
9651 * inferior.h (stepping_past_instruction_at): New declaration.
9652 * infrun.c (struct step_over_info): New type.
9653 (step_over_info): New global.
9654 (set_step_over_info, clear_step_over_info)
9655 (stepping_past_instruction_at): New functions.
9656 (handle_inferior_event): Clear the step-over info when
9657 trap_expected is cleared.
9658 (resume): Remove now stale comment.
9659 (clear_proceed_status): Clear step-over info.
9660 (proceed): Adjust step-over handling to set or clear the step-over
9661 info instead of removing all breakpoints.
9662 (handle_signal_stop): When setting up a thread-hop, don't remove
9663 breakpoints here.
9664 (stop_stepping): Clear step-over info.
9665 (keep_going): Adjust step-over handling to set or clear step-over
9666 info and then always inserting breakpoints, instead of removing
9667 all breakpoints when stepping over one.
9668
9669 2014-03-20 Pedro Alves <palves@redhat.com>
9670
9671 * infrun.c (previous_inferior_ptid): Adjust comment.
9672 (deferred_step_ptid): Delete.
9673 (infrun_thread_ptid_changed, prepare_to_proceed)
9674 (init_wait_for_inferior): Adjust.
9675 (handle_signal_stop): Delete deferred_step_ptid handling.
9676
9677 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9678
9679 PR gdb/15358
9680 * defs.h (sync_quit_force_run): New declaration.
9681 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9682 * event-top.c (async_sigterm_handler): New declaration.
9683 (async_sigterm_token): New variable.
9684 (async_init_signals): Create also async_sigterm_token.
9685 (async_sigterm_handler): New function.
9686 (sync_quit_force_run): New variable.
9687 (handle_sigterm): Replace quit_force call by other calls.
9688 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9689
9690 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9691
9692 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9693 offset into SPE pseudo registers.
9694
9695 2014-03-18 Pedro Alves <palves@redhat.com>
9696
9697 PR gdb/13860
9698 * inferior.h (print_stop_event): Declare.
9699 * infrun.c (print_stop_event): New, factored out from ...
9700 (normal_stop): ... this.
9701 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9702 of bpstat_print/print_stack_frame.
9703
9704 2014-03-17 Tom Tromey <tromey@redhat.com>
9705
9706 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9707
9708 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9709
9710 * ada-lang.c (decode_constrained_packed_array): Perform a
9711 minimal coercion for reference with coerce_ref instead of
9712 ada_coerce_ref.
9713
9714 2014-03-17 Tristan Gingold <gingold@adacore.com>
9715
9716 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9717 (darwin_solib_create_inferior_hook): Emit a warning if version
9718 is unhandled.
9719
9720 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9721
9722 * python/py-value.c (get_field_flag): Cast flag_name argument to
9723 PyObject_GetAttrString to support Python 2.4.
9724
9725 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9726
9727 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9728 (Global Maintainers): Remove Jan Kratochvil.
9729
9730 2014-03-14 Pedro Alves <palves@redhat.com>
9731
9732 * inferior.h (terminal_ours_for_output): Rename to ...
9733 (child_terminal_ours_for_output): ... this.
9734 (terminal_save_ours): Rename to ...
9735 (child_terminal_save_ours): ... this.
9736 (terminal_ours): Rename to ...
9737 (child_terminal_ours): ... this.
9738 (terminal_inferior): Rename to ...
9739 (child_terminal_inferior): ... this.
9740 (terminal_init_inferior): Rename to ...
9741 (child_terminal_init_inferior): ... this.
9742 (terminal_init_inferior_with_pgrp): Rename to ...
9743 (child_terminal_init_inferior_with_pgrp): ... this.
9744 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9745 (child_terminal_init_with_pgrp): ... this.
9746 (terminal_save_ours): Rename to ...
9747 (child_terminal_save_ours): ... this.
9748 (terminal_init_inferior): Rename to ...
9749 (child_terminal_init): ... this. Adjust.
9750 (terminal_inferior): Rename to ...
9751 (child_terminal_inferior): ... this.
9752 (terminal_ours_for_output): Rename to ...
9753 (child_terminal_ours_for_output): ... this. Adjust.
9754 (terminal_ours): Rename to ...
9755 (child_terminal_ours): ... this.
9756 (terminal_ours_1): Rename to ...
9757 (child_terminal_ours_1): ... this. Adjust.
9758 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9759 * windows-nat.c (do_initial_windows_stuff): Adjust.
9760 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9761 (gnu_terminal_init): ... this. Adjust.
9762 (gnu_target): Adjust.
9763 * inf-child.c (inf_child_target): Adjust.
9764
9765 2014-03-13 Doug Evans <xdje42@gmail.com>
9766
9767 PR guile/16612
9768 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9769 new eq?-hashtab.
9770
9771 2014-03-13 Doug Evans <xdje42@gmail.com>
9772
9773 * value.c (record_latest_value): Call release_value_or_incref
9774 instead of release_value.
9775
9776 2014-03-13 Pedro Alves <palves@redhat.com>
9777
9778 * procfs.c (procfs_target): Don't override to_shortname,
9779 to_longname or to_doc.
9780
9781 2014-03-13 Pedro Alves <palves@redhat.com>
9782
9783 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9784 Unix in user visible strings.
9785
9786 2014-03-12 Stan Shebs <stan@codesourcery.com>
9787
9788 * gdbtypes.h: Annotate comments for Doxygen, add a page
9789 block comment with some general info.
9790
9791 2014-03-12 Pedro Alves <palves@redhat.com>
9792
9793 * infcmd.c (prepare_execution_command): New function, factored out
9794 from several execution commands.
9795 (run_command_1, continue_command, step_1, jump_command)
9796 (signal_command, until_command, advance_command, finish_command)
9797 (attach_command): Use prepare_execution_command.
9798
9799 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9800
9801 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9802 (MAX_BPTS): Define.
9803 (MAX_WPTS): Define.
9804 (struct arm_linux_thread_points): Removed.
9805 (struct arm_linux_process_info): New.
9806 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9807 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9808 (arm_linux_find_breakpoints_by_tid): Removed.
9809 (struct arch_lwp_info): New.
9810 (arm_linux_find_process_pid): New functions.
9811 (arm_linux_add_process): New functions.
9812 (arm_linux_process_info_get): New functions.
9813 (arm_linux_forget_process): New function.
9814 (arm_linux_get_debug_reg_state): New function.
9815 (struct update_registers_data): New.
9816 (update_registers_callback): New function.
9817 (arm_linux_insert_hw_breakpoint1): Updated.
9818 (arm_linux_remove_hw_breakpoint1): Updated.
9819 (arm_linux_insert_hw_breakpoint): Updated.
9820 (arm_linux_remove_hw_breakpoint): Updated.
9821 (arm_linux_insert_watchpoint): Updated.
9822 (arm_linux_remove_watchpoint): Updated.
9823 (arm_linux_new_thread): Updated.
9824 (arm_linux_prepare_to_resume): New function.
9825 (arm_linux_new_fork): New function.
9826 (_initialize_arm_linux_nat): Updated.
9827
9828 2014-03-12 Pedro Alves <palves@redhat.com>
9829
9830 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9831
9832 2014-03-12 Tom Tromey <tromey@redhat.com>
9833
9834 * inf-child.c (return_zero): New function.
9835 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9836 * aix-thread.c (aix_thread_inferior_created): New function.
9837 (aix_thread_attach): Remove.
9838 (init_aix_thread_ops): Don't set to_attach.
9839 (_initialize_aix_thread): Register inferior_created observer.
9840 * corelow.c (init_core_ops): Don't set to_attach or
9841 to_create_inferior.
9842 * exec.c (init_exec_ops): Don't set to_attach or
9843 to_create_inferior.
9844 * infcmd.c (run_command_1): Use find_run_target. Make direct
9845 target calls.
9846 (attach_command): Use find_attach_target. Make direct target
9847 calls.
9848 * record-btrace.c (init_record_btrace_ops): Don't set
9849 to_create_inferior.
9850 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9851 Remove.
9852 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9853 set to_create_inferior.
9854 * target.c (complete_target_initialization): Add assertion.
9855 (target_create_inferior): Remove.
9856 (find_default_attach, find_default_create_inferior): Remove.
9857 (find_attach_target, find_run_target): New functions.
9858 (find_default_is_async_p, find_default_can_async_p)
9859 (target_supports_non_stop, target_attach): Remove.
9860 (init_dummy_target): Don't set to_create_inferior or
9861 to_supports_non_stop.
9862 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9863 TARGET_DEFAULT_FUNC.
9864 <to_create_inferior>: Add comment.
9865 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9866 TARGET_DEFAULT_RETURN.
9867 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9868 (find_attach_target, find_run_target): Declare.
9869 (target_create_inferior): Remove.
9870 (target_has_execution_1): Update comment.
9871 (target_supports_non_stop): Remove.
9872 * target-delegates.c: Rebuild.
9873
9874 2014-03-12 Pedro Alves <palves@redhat.com>
9875
9876 * inf-child.h: Update comment to not mention Unix.
9877
9878 2014-03-12 Pedro Alves <palves@redhat.com>
9879
9880 * inf-child.c: Update top comment to not mention Unix. Add
9881 generic comment describing how this target is meant to be used.
9882 (inf_child_post_attach, inf_child_post_startup_inferior)
9883 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9884 Unix in comment.
9885
9886 2014-03-12 Pedro Alves <palves@redhat.com>
9887
9888 * nto-procfs.c: Include inf-child.h.
9889 (procfs_ops): Delete global.
9890 (procfs_can_run): Delete method.
9891 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9892 target pointer instead of referencing procfs_ops.
9893 (procfs_prepare_to_store): Delete.
9894 (init_procfs_ops): Delete function.
9895 (procfs_target): New function, based on init_procfs_ops, but
9896 inherit inf_child_target.
9897 (_initialize_procfs): Use procfs_target.
9898
9899 2014-03-12 Pedro Alves <palves@redhat.com>
9900
9901 * windows-nat.c: Include inf-child.h.
9902 (windows_ops): Delete global.
9903 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9904 methods.
9905 (init_windows_ops): Delete function.
9906 (windows_target): New function, based on init_windows_ops, but
9907 inherit inf_child_target.
9908 (_initialize_windows_nat): Use windows_target. Install x86
9909 specific target methods here.
9910
9911 2014-03-10 Doug Evans <xdje42@gmail.com>
9912
9913 * guile/guile.c (call_initialize_gdb_module): New function.
9914 (initialize_guile): Replace call to scm_init_guile with call to
9915 scm_with_guile.
9916
9917 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9918
9919 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9920 in call to TYPE_CODE macro.
9921
9922 2014-03-10 Jerome Guitton <guitton@adacore.com>
9923
9924 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9925 Resolve tagged types to full view.
9926
9927 2014-03-10 Hui Zhu <hui@codesourcery.com>
9928
9929 * target.h (target_insert_breakpoint): Remove "hardware" from its
9930 comments.
9931
9932 2014-03-07 Doug Evans <dje@google.com>
9933
9934 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9935
9936 2014-03-07 Doug Evans <dje@google.com>
9937
9938 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9939 Remove unused local comp_dir_attr. Assert exactly one of
9940 stub_comp_unit_die, stub_comp_dir is non-NULL.
9941
9942 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9943
9944 * target.h (complete_target_initialization, add_target):
9945 Add comment.
9946
9947 2014-03-07 Pedro Alves <palves@redhat.com>
9948
9949 * go32-nat.c: Include inf-child.h.
9950 (go32_ops): Delete global.
9951 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9952 Delete methods.
9953 (go32_create_inferior): Push the passed in target pointer instead
9954 of referencing go32_ops.
9955 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9956 (go32_target): New function, based on init_go32_ops, but inherit
9957 inf_child_target.
9958 (_initialize_go32_nat): Use go32_target. Move parts of
9959 init_go32_ops here.
9960
9961 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9962
9963 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9964 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9965 SYMBOL_VALUE_ADDRESS.
9966 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9967
9968 2014-03-06 Yao Qi <yao@codesourcery.com>
9969
9970 * breakpoint.c (get_tracepoint_by_number): Remove argument
9971 optional_p. All callers updated. Adjust comments. Update
9972 output message.
9973 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9974
9975 2014-03-06 Yao Qi <yao@codesourcery.com>
9976
9977 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9978 early if get_number returns zero. Use 'p' instead of 'args'.
9979
9980 2014-03-06 Yao Qi <yao@codesourcery.com>
9981
9982 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9983 message.
9984
9985 2014-03-06 Yao Qi <yao@codesourcery.com>
9986
9987 PR breakpoints/16508
9988 * tracepoint.c (check_trace_running): New function.
9989 (trace_find_command): Move code to check_trace_running and
9990 call check_trace_running.
9991 (trace_find_pc_command): Likewise.
9992 (trace_find_tracepoint_command): Likewise.
9993 (trace_find_line_command): Likewise.
9994 (trace_find_range_command): Likewise.
9995 * tracepoint.h (check_trace_running): Likewise.
9996 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9997
9998 2014-03-06 Yao Qi <yao@codesourcery.com>
9999
10000 * target.h (struct target_ops) <to_traceframe_info>: Use
10001 TARGET_DEFAULT_NORETURN (tcomplain ()).
10002 * target-delegates.c: Regenerated.
10003
10004 2014-03-05 Pedro Alves <palves@redhat.com>
10005
10006 PR gdb/16575
10007 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10008 void. Update comment.
10009 (dcache_xfer_memory): Delete.
10010 (dcache_read_memory_partial): New, based on the read bits of
10011 dcache_xfer_memory.
10012 (dcache_update): Add status parameter. Use ULONGEST for len, and
10013 adjust. Discard cache lines if the reason for the update was
10014 error.
10015 * dcache.h (dcache_xfer_memory): Delete declaration.
10016 (dcache_read_memory_partial): New declaration.
10017 (dcache_update): Update prototype.
10018 * target.c (raw_memory_xfer_partial): Update the dcache here.
10019 (memory_xfer_partial_1): Don't handle dcache writes here.
10020
10021 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10022
10023 * remote-sim.c (gdbsim_load): Add const to prog.
10024
10025 2014-03-03 Tom Tromey <tromey@redhat.com>
10026
10027 * elfread.c (probe_key): Change to bfd_data.
10028 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10029 now per-BFD, not per-objfile.
10030 * stap-probe.c (stap_probe_destroy): Update comment.
10031 (handle_stap_probe): Allocate on the per-BFD obstack.
10032
10033 2014-03-03 Tom Tromey <tromey@redhat.com>
10034
10035 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10036 * breakpoint.c (create_longjmp_master_breakpoint): Use
10037 get_probe_address.
10038 (add_location_to_breakpoint, bkpt_probe_insert_location)
10039 (bkpt_probe_remove_location): Update.
10040 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10041 * elfread.c (elf_symfile_relocate_probe): Remove.
10042 (elf_probe_fns): Update.
10043 (insert_exception_resume_breakpoint): Change type of "probe"
10044 parameter to bound_probe.
10045 (check_exception_resume): Update.
10046 * objfiles.c (objfile_relocate1): Don't relocate probes.
10047 * probe.c (bound_probe_s): New typedef.
10048 (parse_probes): Use get_probe_address. Set sal's objfile.
10049 (find_probe_by_pc): Return a bound_probe.
10050 (collect_probes): Return a VEC(bound_probe_s).
10051 (compare_probes): Update.
10052 (gen_ui_out_table_header_info): Change type of "probes"
10053 parameter. Update.
10054 (info_probes_for_ops): Update.
10055 (get_probe_address): New function.
10056 (probe_safe_evaluate_at_pc): Update.
10057 * probe.h (struct probe_ops) <get_probe_address>: New field.
10058 <set_semaphore, clear_semaphore>: Add objfile parameter.
10059 (struct probe) <objfile>: Remove field.
10060 <arch>: New field.
10061 <address>: Update comment.
10062 (struct bound_probe): New.
10063 (find_probe_by_pc): Return a bound_probe.
10064 (get_probe_address): Declare.
10065 * solib-svr4.c (struct probe_and_action) <address>: New field.
10066 (hash_probe_and_action, equal_probe_and_action): Update.
10067 (register_solib_event_probe): Add address parameter.
10068 (solib_event_probe_at): Update.
10069 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10070 get_probe_address.
10071 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10072 (stap_get_probe_address): New function.
10073 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10074 (compile_probe_arg): Update.
10075 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10076 address.
10077 (handle_stap_probe): Don't relocate the probe.
10078 (stap_relocate): Remove.
10079 (stap_gen_info_probes_table_values): Update.
10080 (stap_probe_ops): Remove stap_relocate.
10081 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10082 (debug_sym_probe_fns): Update.
10083 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10084 * symtab.c (init_sal): Use memset.
10085 * symtab.h (struct symtab_and_line) <objfile>: New field.
10086 * tracepoint.c (start_tracing, stop_tracing): Update.
10087
10088 2014-03-03 Tom Tromey <tromey@redhat.com>
10089
10090 * probe.h (parse_probes, find_probe_by_pc)
10091 (find_probes_in_objfile): Fix comments.
10092
10093 2014-03-02 Doug Evans <xdje42@gmail.com>
10094
10095 * infrun.c (handle_signal_stop): Replace test for
10096 TARGET_WAITKIND_STOPPED with an assert.
10097
10098 2014-03-02 Doug Evans <xdje42@gmail.com>
10099
10100 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10101
10102 2014-03-02 Doug Evans <xdje42@gmail.com>
10103
10104 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10105
10106 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10107
10108 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10109
10110 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10111
10112 * i386obsd-nat.c: Include "obsd-nat.h".
10113 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10114 add_target.
10115 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10116
10117 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10118
10119 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10120
10121 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10122
10123 * mips64obsd-nat.c: Include "obsd-nath".
10124 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10125 add_target
10126 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10127
10128 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10129
10130 * amd64obsd-nat.c: Include "obsd-nat,h.
10131 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10132 add_target.
10133 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10134
10135 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10136
10137 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10138 (find_overload_match): Update call to find_oload_champ.
10139 (find_oload_champ_namespace_loop): Likewise
10140
10141 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10142
10143 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10144
10145 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10146 * config/sparc/obsd64.mh: New file.
10147 * sparc64obsd-nat.c: New file.
10148
10149 * obsd-nat.h: New file.
10150 * obsd-nat.c: New file.
10151 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10152 (ALLDEPFILES): Add obsd-nat.c.
10153
10154 2014-02-28 Tom Tromey <tromey@redhat.com>
10155
10156 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10157 * cli-out.h (cli_ui_out_impl): Now const.
10158 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10159 * ui-out.c (struct ui_out) <impl>: Now const.
10160 (default_ui_out_impl): Now const.
10161 (ui_out_new): Make 'impl' parameter const.
10162 * ui-out.h (ui_out_new): Update.
10163
10164 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10165
10166 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10167
10168 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10169
10170 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10171
10172 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10173
10174 Additional PR 8882 fix.
10175 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10176
10177 2014-02-27 Pedro Alves <palves@redhat.com>
10178
10179 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10180 isn't set.
10181
10182 2014-02-27 Pedro Alves <palves@redhat.com>
10183
10184 PR 12702
10185 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10186 * nat/linux-waitpid.c: Include string.h.
10187 (status_to_str): Moved here and made extern.
10188 * nat/linux-waitpid.h (status_to_str): New declaration.
10189
10190 2014-02-27 Hui Zhu <hui@codesourcery.com>
10191
10192 PR 12702
10193 * infrun.c (ptid_match): Move ...
10194 * common/ptid.c (ptid_match): ... here.
10195 * inferior.h (ptid_match): Move ...
10196 * common/ptid.h (ptid_match): ... here.
10197
10198 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10199
10200 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10201 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10202 gdb_target_obs.
10203
10204 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10205
10206 * obsd-tdep.c (obsd_auxv_parse): New function.
10207 (obsd_init_abi): Set auxv_parse.
10208
10209 * gdbarch.sh (auxv_parse): New.
10210 * gdbarch.h: Regenerated.
10211 * gdbarch.c: Regenerated.
10212 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10213
10214 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10215
10216 * guile/scm-value.c (gdbscm_history_append_x): New function.
10217 (value_functions): Add it.
10218
10219 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10220
10221 * dwarf2read.c (attr_value_as_address): New function.
10222 (dwarf2_find_base_address, read_call_site_scope): Use
10223 attr_value_as_address in place of DW_ADDR.
10224 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10225 the low and high addresses. Slight rework of the handling
10226 of the high pc being a constant form, and limit it to
10227 DWARF verson 4 or higher.
10228 (dwarf2_record_block_ranges): Likewise.
10229 (read_partial_die): Likewise.
10230 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10231
10232 2014-02-26 Tom Tromey <tromey@redhat.com>
10233
10234 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10235
10236 2014-02-26 Tom Tromey <tromey@redhat.com>
10237
10238 * elfread.c (elf_read_minimal_symbols): Return early if
10239 minimal symbols have already been read. Add "ei" parameter.
10240 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10241 * minsyms.c (prim_record_minimal_symbol_full): Update.
10242 * objfiles.h (struct objstats) <n_minsyms>: Move...
10243 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10244 * symmisc.c (print_objfile_statistics): Update.
10245
10246 2014-02-26 Tom Tromey <tromey@redhat.com>
10247
10248 * elfread.c (elf_read_minimal_symbols): New function, from
10249 elf_symfile_read.
10250 (elf_symfile_read): Call it.
10251
10252 2014-02-26 Tom Tromey <tromey@redhat.com>
10253
10254 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10255 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10256 (lookup_minimal_symbol_solib_trampoline)
10257 (lookup_minimal_symbol_by_pc_section_1)
10258 (lookup_minimal_symbol_and_objfile): Update.
10259 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10260 Don't allocate a minimal symbol if minsyms have already been read.
10261 (build_minimal_symbol_hash_tables): Update.
10262 (install_minimal_symbols): Do nothing if minsyms already read.
10263 Use the per-BFD obstack.
10264 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10265 * objfiles.c (allocate_objfile): Call
10266 terminate_minimal_symbol_table later.
10267 (have_minimal_symbols): Update.
10268 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10269 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10270 Move from struct objfile.
10271 <minsyms_read>: New field.
10272 (struct objfile) <msymbols, minimal_symbol_count,
10273 msymbol_hash, msymbol_demangled_hash>: Move.
10274 (ALL_OBJFILE_MSYMBOLS): Update.
10275 * symfile.c (read_symbols): Set minsyms_read.
10276 (reread_symbols): Update.
10277 * symmisc.c (dump_objfile, dump_msymbols): Update.
10278
10279 2014-02-26 Tom Tromey <tromey@redhat.com>
10280
10281 * minsyms.c (msymbols_sort): Remove.
10282 * minsyms.h (msymbols_sort): Remove.
10283 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10284 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10285 * elfread.c (elf_symtab_read): Don't add section offsets.
10286 * xcoffread.c (record_minimal_symbol): Don't add section offset
10287 to minimal symbol address.
10288 * somread.c (text_offset, data_offset): Remove.
10289 (som_symtab_read): Don't add section offsets to minimal symbol
10290 addresses.
10291 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10292 Don't add section offsets to minimal symbols.
10293 * coffread.c (coff_symtab_read): Don't add section offsets
10294 to minimal symbol addresses.
10295 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10296 to minimal symbol addresses.
10297 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10298 section offset to minimal symbol addresses.
10299 * mdebugread.c (parse_partial_symbols): Don't add section
10300 offset to minimal symbol addresses.
10301 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10302 offset to minimal symbol addresses.
10303
10304 2014-02-26 Tom Tromey <tromey@redhat.com>
10305
10306 * ada-lang.c (ada_main_name): Update.
10307 (ada_add_standard_exceptions): Update.
10308 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10309 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10310 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10311 * auxv.c (ld_so_xfer_auxv): Update.
10312 * avr-tdep.c (avr_scan_prologue): Update.
10313 * ax-gdb.c (gen_var_ref): Update.
10314 * blockframe.c (get_pc_function_start)
10315 (find_pc_partial_function_gnu_ifunc): Update.
10316 * breakpoint.c (create_overlay_event_breakpoint)
10317 (create_longjmp_master_breakpoint)
10318 (create_std_terminate_master_breakpoint)
10319 (create_exception_master_breakpoint): Update.
10320 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10321 * c-valprint.c (c_val_print): Update.
10322 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10323 * common/agent.c (agent_look_up_symbols): Update.
10324 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10325 * dwarf2loc.c (call_site_to_target_addr): Update.
10326 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10327 * elfread.c (elf_gnu_ifunc_record_cache)
10328 (elf_gnu_ifunc_resolve_by_got): Update.
10329 * findvar.c (default_read_var_value): Update.
10330 * frame.c (inside_main_func): Update.
10331 * frv-tdep.c (frv_frame_this_id): Update.
10332 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10333 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10334 Update.
10335 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10336 (hppa_hpux_find_dummy_bpaddr): Update.
10337 * hppa-tdep.c (hppa_symbol_address): Update.
10338 * infcmd.c (until_next_command): Update.
10339 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10340 Update.
10341 * linespec.c (minsym_found, add_minsym): Update.
10342 * linux-nat.c (get_signo): Update.
10343 * linux-thread-db.c (inferior_has_bug): Update.
10344 * m32c-tdep.c (m32c_return_value)
10345 (m32c_m16c_address_to_pointer): Update.
10346 * m32r-tdep.c (m32r_frame_this_id): Update.
10347 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10348 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10349 * maint.c (maintenance_translate_address): Update.
10350 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10351 (frob_address): New function.
10352 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10353 frob_address. Rename parameter to "pc_in".
10354 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10355 addresses.
10356 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10357 Update.
10358 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10359 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10360 * objc-lang.c (find_objc_msgsend): Update.
10361 * objfiles.c (objfile_relocate1): Update.
10362 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10363 * p-valprint.c (pascal_val_print): Update.
10364 * parse.c (write_exp_msymbol): Update.
10365 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10366 (ppc_elfv2_skip_entrypoint): Update.
10367 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10368 * printcmd.c (build_address_symbolic, msym_info)
10369 (address_info): Update.
10370 * proc-service.c (ps_pglobal_lookup): Update.
10371 * psymtab.c (find_pc_sect_psymtab_closer)
10372 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10373 Change msymbol parameter to bound_minimal_symbol.
10374 * ravenscar-thread.c (get_running_thread_id): Update.
10375 * remote.c (remote_check_symbols): Update.
10376 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10377 address.
10378 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10379 * solib-dsbt.c (lm_base): Update.
10380 * solib-frv.c (lm_base, main_got): Update.
10381 * solib-irix.c (locate_base): Update.
10382 * solib-som.c (som_solib_create_inferior_hook)
10383 (link_map_start): Update.
10384 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10385 * solib-svr4.c (elf_locate_base, enable_break): Update.
10386 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10387 (flush_ea_cache): Update.
10388 * stabsread.c (define_symbol, scan_file_globals): Update.
10389 * stack.c (find_frame_funname): Update.
10390 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10391 (debug_qf_find_pc_sect_symtab): Update.
10392 * symfile.c (simple_read_overlay_table)
10393 (simple_overlay_update): Update.
10394 * symfile.h (struct quick_symbol_functions)
10395 <find_pc_sect_symtab>: Change type of msymbol to
10396 bound_minimal_symbol.
10397 * symmisc.c (dump_msymbols): Update.
10398 * symtab.c (find_pc_sect_symtab_via_partial)
10399 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10400 (search_symbols, print_msymbol_info): Update.
10401 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10402 (MSYMBOL_VALUE_ADDRESS): Redefine.
10403 (BMSYMBOL_VALUE_ADDRESS): New macro.
10404 * tracepoint.c (scope_info): Update.
10405 * tui/tui-disasm.c (tui_find_disassembly_address)
10406 (tui_get_begin_asm_address): Update.
10407 * valops.c (find_function_in_inferior): Update.
10408 * value.c (value_static_field, value_fn_field): Update.
10409
10410 2014-02-26 Tom Tromey <tromey@redhat.com>
10411
10412 * ada-lang.c (ada_update_initial_language): Update.
10413 (ada_main_name, ada_has_this_exception_support): Update.
10414 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10415 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10416 * arm-tdep.c (arm_skip_stub): Update.
10417 * auxv.c (ld_so_xfer_auxv): Update.
10418 * avr-tdep.c (avr_scan_prologue): Update.
10419 * ax-gdb.c (gen_var_ref): Update.
10420 * breakpoint.c (struct breakpoint_objfile_data)
10421 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10422 type to bound_minimal_symbol.
10423 (create_overlay_event_breakpoint)
10424 (create_longjmp_master_breakpoint)
10425 (create_std_terminate_master_breakpoint)
10426 (create_exception_master_breakpoint): Update.
10427 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10428 * c-exp.y (classify_name): Update.
10429 * coffread.c (coff_symfile_read): Update.
10430 * common/agent.c (agent_look_up_symbols): Update.
10431 * d-lang.c (d_main_name): Update.
10432 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10433 * dec-thread.c (enable_dec_thread): Update.
10434 * dwarf2loc.c (call_site_to_target_addr): Update.
10435 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10436 * eval.c (evaluate_subexp_standard): Update.
10437 * findvar.c (struct minsym_lookup_data) <result>: Change type
10438 to bound_minimal_symbol.
10439 <objfile>: Remove.
10440 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10441 * frame.c (inside_main_func): Update.
10442 * frv-tdep.c (frv_frame_this_id): Update.
10443 * gcore.c (call_target_sbrk): Update.
10444 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10445 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10446 Update.
10447 * go-lang.c (go_main_name): Update.
10448 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10449 (hppa_hpux_find_import_stub_for_addr): Update.
10450 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10451 Update. Change return type.
10452 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10453 type.
10454 * jit.c (jit_breakpoint_re_set_internal): Update.
10455 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10456 Update.
10457 * linux-nat.c (get_signo): Update.
10458 * linux-thread-db.c (inferior_has_bug): Update
10459 * m32c-tdep.c (m32c_return_value)
10460 (m32c_m16c_address_to_pointer): Update.
10461 * m32r-tdep.c (m32r_frame_this_id): Update.
10462 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10463 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10464 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10465 lookup_minimal_symbol. Change return type.
10466 (lookup_minimal_symbol): Remove.
10467 (lookup_bound_minimal_symbol): Update.
10468 (lookup_minimal_symbol_text): Change return type.
10469 (lookup_minimal_symbol_solib_trampoline): Change return type.
10470 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10471 (lookup_minimal_symbol_solib_trampoline): Change return type.
10472 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10473 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10474 (value_nsstring, find_imps): Update.
10475 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10476 * p-lang.c (pascal_main_name): Update.
10477 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10478 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10479 * proc-service.c (ps_pglobal_lookup): Update.
10480 * ravenscar-thread.c (get_running_thread_msymbol): Change
10481 return type.
10482 (has_ravenscar_runtime, get_running_thread_id): Update.
10483 * remote.c (remote_check_symbols): Update.
10484 * sol-thread.c (ps_pglobal_lookup): Update.
10485 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10486 * solib-dsbt.c (lm_base): Update.
10487 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10488 Update.
10489 * solib-irix.c (locate_base): Update.
10490 * solib-som.c (som_solib_create_inferior_hook)
10491 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10492 Update.
10493 * solib-spu.c (spu_enable_break): Update.
10494 * solib-svr4.c (elf_locate_base, enable_break): Update.
10495 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10496 (flush_ea_cache): Update.
10497 * stabsread.c (define_symbol): Update.
10498 * symfile.c (simple_read_overlay_table): Update.
10499 * symtab.c (find_pc_sect_line): Update.
10500 * tracepoint.c (scope_info): Update.
10501 * tui-disasm.c (tui_get_begin_asm_address): Update.
10502 * value.c (value_static_field): Update.
10503
10504 2014-02-26 Tom Tromey <tromey@redhat.com>
10505
10506 * minsyms.c (prim_record_minimal_symbol_full): Use
10507 SET_MSYMBOL_VALUE_ADDRESS.
10508 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10509 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10510 SET_MSYMBOL_VALUE_ADDRESS.
10511 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10512 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10513
10514 2014-02-26 Tom Tromey <tromey@redhat.com>
10515
10516 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10517 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10518 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10519 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10520 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10521 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10522 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10523 * ada-lang.c (ada_main_name): Update.
10524 (ada_lookup_simple_minsym): Update.
10525 (ada_make_symbol_completion_list): Update.
10526 (ada_add_standard_exceptions): Update.
10527 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10528 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10529 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10530 * arm-tdep.c (skip_prologue_function): Update.
10531 (arm_skip_stack_protector, arm_skip_stub): Update.
10532 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10533 (arm_wince_skip_main_prologue): Update.
10534 * auxv.c (ld_so_xfer_auxv): Update.
10535 * avr-tdep.c (avr_scan_prologue): Update.
10536 * ax-gdb.c (gen_var_ref): Update.
10537 * block.c (call_site_for_pc): Update.
10538 * blockframe.c (get_pc_function_start): Update.
10539 (find_pc_partial_function_gnu_ifunc): Update.
10540 * breakpoint.c (create_overlay_event_breakpoint): Update.
10541 (create_longjmp_master_breakpoint): Update.
10542 (create_std_terminate_master_breakpoint): Update.
10543 (create_exception_master_breakpoint): Update.
10544 (resolve_sal_pc): Update.
10545 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10546 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10547 Update.
10548 * c-valprint.c (c_val_print): Update.
10549 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10550 * coffread.c (coff_symfile_read): Update.
10551 * common/agent.c (agent_look_up_symbols): Update.
10552 * dbxread.c (find_stab_function_addr): Update.
10553 (end_psymtab): Update.
10554 * dwarf2loc.c (call_site_to_target_addr): Update.
10555 (func_verify_no_selftailcall): Update.
10556 (tailcall_dump): Update.
10557 (call_site_find_chain_1): Update.
10558 (dwarf_expr_reg_to_entry_parameter): Update.
10559 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10560 (elf_gnu_ifunc_resolve_by_got): Update.
10561 * f-valprint.c (info_common_command): Update.
10562 * findvar.c (read_var_value): Update.
10563 * frame.c (get_prev_frame_1): Update.
10564 (inside_main_func): Update.
10565 * frv-tdep.c (frv_skip_main_prologue): Update.
10566 (frv_frame_this_id): Update.
10567 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10568 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10569 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10570 (gnuv3_skip_trampoline): Update.
10571 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10572 (hppa64_hpux_in_solib_call_trampoline): Update.
10573 (hppa_hpux_skip_trampoline_code): Update.
10574 (hppa64_hpux_search_dummy_call_sequence): Update.
10575 (hppa_hpux_find_import_stub_for_addr): Update.
10576 (hppa_hpux_find_dummy_bpaddr): Update.
10577 * hppa-tdep.c (hppa_symbol_address)
10578 (hppa_lookup_stub_minimal_symbol): Update.
10579 * i386-tdep.c (i386_skip_main_prologue): Update.
10580 (i386_pe_skip_trampoline_code): Update.
10581 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10582 * infcall.c (get_function_name): Update.
10583 * infcmd.c (until_next_command): Update.
10584 * jit.c (jit_breakpoint_re_set_internal): Update.
10585 (jit_inferior_init): Update.
10586 * linespec.c (minsym_found): Update.
10587 (add_minsym): Update.
10588 * linux-fork.c (info_checkpoints_command): Update.
10589 * linux-nat.c (get_signo): Update.
10590 * linux-thread-db.c (inferior_has_bug): Update.
10591 * m32c-tdep.c (m32c_return_value): Update.
10592 (m32c_m16c_address_to_pointer): Update.
10593 (m32c_m16c_pointer_to_address): Update.
10594 * m32r-tdep.c (m32r_frame_this_id): Update.
10595 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10596 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10597 * maint.c (maintenance_translate_address): Update.
10598 * minsyms.c (add_minsym_to_hash_table): Update.
10599 (add_minsym_to_demangled_hash_table): Update.
10600 (msymbol_objfile): Update.
10601 (lookup_minimal_symbol): Update.
10602 (iterate_over_minimal_symbols): Update.
10603 (lookup_minimal_symbol_text): Update.
10604 (lookup_minimal_symbol_by_pc_name): Update.
10605 (lookup_minimal_symbol_solib_trampoline): Update.
10606 (lookup_minimal_symbol_by_pc_section_1): Update.
10607 (lookup_minimal_symbol_and_objfile): Update.
10608 (prim_record_minimal_symbol_full): Update.
10609 (compare_minimal_symbols): Update.
10610 (compact_minimal_symbols): Update.
10611 (build_minimal_symbol_hash_tables): Update.
10612 (install_minimal_symbols): Update.
10613 (terminate_minimal_symbol_table): Update.
10614 (find_solib_trampoline_target): Update.
10615 (minimal_symbol_upper_bound): Update.
10616 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10617 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10618 (mips_skip_pic_trampoline_code): Update.
10619 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10620 * objc-lang.c (selectors_info): Update.
10621 (classes_info): Update.
10622 (find_methods): Update.
10623 (find_imps): Update.
10624 (find_objc_msgsend): Update.
10625 * objfiles.c (objfile_relocate1): Update.
10626 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10627 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10628 * p-valprint.c (pascal_val_print): Update.
10629 * parse.c (write_exp_msymbol): Update.
10630 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10631 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10632 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10633 * printcmd.c (build_address_symbolic): Update.
10634 (sym_info): Update.
10635 (address_info): Update.
10636 * proc-service.c (ps_pglobal_lookup): Update.
10637 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10638 (find_pc_sect_psymtab): Update.
10639 * python/py-framefilter.c (py_print_frame): Update.
10640 * ravenscar-thread.c (get_running_thread_id): Update.
10641 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10642 Update.
10643 * remote.c (remote_check_symbols): Update.
10644 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10645 (rs6000_skip_trampoline_code): Update.
10646 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10647 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10648 * solib-dsbt.c (lm_base): Update.
10649 * solib-frv.c (lm_base): Update.
10650 (main_got): Update.
10651 * solib-irix.c (locate_base): Update.
10652 * solib-som.c (som_solib_create_inferior_hook): Update.
10653 (som_solib_desire_dynamic_linker_symbols): Update.
10654 (link_map_start): Update.
10655 * solib-spu.c (spu_enable_break): Update.
10656 (ocl_enable_break): Update.
10657 * solib-svr4.c (elf_locate_base): Update.
10658 (enable_break): Update.
10659 * spu-tdep.c (spu_get_overlay_table): Update.
10660 (spu_catch_start): Update.
10661 (flush_ea_cache): Update.
10662 * stabsread.c (define_symbol): Update.
10663 (scan_file_globals): Update.
10664 * stack.c (find_frame_funname): Update.
10665 (frame_info): Update.
10666 * symfile.c (simple_read_overlay_table): Update.
10667 (simple_overlay_update): Update.
10668 * symmisc.c (dump_msymbols): Update.
10669 * symtab.c (fixup_section): Update.
10670 (find_pc_sect_line): Update.
10671 (skip_prologue_sal): Update.
10672 (search_symbols): Update.
10673 (print_msymbol_info): Update.
10674 (rbreak_command): Update.
10675 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10676 (completion_list_objc_symbol): Update.
10677 (default_make_symbol_completion_list_break_on): Update.
10678 * tracepoint.c (scope_info): Update.
10679 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10680 (tui_get_begin_asm_address): Update.
10681 * valops.c (find_function_in_inferior): Update.
10682 * value.c (value_static_field): Update.
10683 (value_fn_field): Update.
10684
10685 2014-02-26 Tom Tromey <tromey@redhat.com>
10686
10687 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10688 bound minimal symbols. Move code that knows about minsym
10689 table layout...
10690 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10691 function.
10692 * minsyms.h (minimal_symbol_upper_bound): Declare.
10693 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10694 minimal_symbol_upper_bound.
10695
10696 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10697
10698 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10699 Use the type's name if its basic type does not have a tag.
10700
10701 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10702
10703 * dwarf2read.c (read_subrange_type): Add comment.
10704
10705 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10706
10707 * dwarf2read.c (update_enumeration_type_from_children): New
10708 function, mostly extracted from process_structure_scope.
10709 (read_enumeration_type): Call update_enumeration_type_from_children.
10710 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10711 and flag_flag_enum fields.
10712
10713 2014-02-26 Pedro Alves <palves@redhat.com>
10714
10715 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10716 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10717 to_xfer_partial method.
10718
10719 2014-02-26 Pedro Alves <palves@redhat.com>
10720
10721 * target.c (complete_target_initialization): Don't install
10722 default_xfer_partial as to_xfer_partial hook.
10723 (nomemory): Delete.
10724 (update_current_target): Don't INHERIT nor de_fault
10725 deprecated_xfer_memory. Delete de_fault macro.
10726 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10727 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10728 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10729 field.
10730
10731 2014-02-26 Pedro Alves <palves@redhat.com>
10732
10733 * go32-nat.c (my_write_child): New function.
10734 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10735 (go32_xfer_partial): New function.
10736 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10737 Instead install a to_xfer_partial hook.
10738
10739 2014-02-26 Pedro Alves <palves@redhat.com>
10740
10741 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10742 to_xfer_partial helper. Rewrite.
10743 (procfs_xfer_partial): New function.
10744 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10745 Install a to_xfer_partial hook.
10746
10747 2014-02-26 Pedro Alves <palves@redhat.com>
10748
10749 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10750 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10751 (m32r_xfer_partial): New function.
10752 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10753 Install a to_xfer_partial hook.
10754
10755 2014-02-26 Pedro Alves <palves@redhat.com>
10756
10757 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10758 helper.
10759 (mips_xfer_partial): New function.
10760 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10761 hook. Install a to_xfer_partial hook.
10762
10763 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10764
10765 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10766 * gdbtypes.c (create_array_type_with_stride): New function,
10767 renaming create_array_type, but with an added parameter
10768 called "bit_stride".
10769 (create_array_type): Re-implement using
10770 create_array_type_with_stride.
10771 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10772 and DW_AT_bit_stride attributes.
10773
10774 2014-02-26 Pedro Alves <palves@redhat.com>
10775
10776 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10777 task-specific breakpoints.
10778
10779 2014-02-25 Pedro Alves <palves@redhat.com>
10780
10781 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10782 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10783
10784 2014-02-25 Stan Shebs <stan@codesourcery.com>
10785
10786 * defs.h: Annotate comments for Doxygen.
10787
10788 2014-02-25 Tom Tromey <tromey@redhat.com>
10789
10790 * target.h (target_ignore): Don't declare.
10791 * target.c (target_ignore): Remove.
10792
10793 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10794
10795 PR gdb/16626
10796 * auto-load.c (auto_load_objfile_script_1): Change filename to
10797 debugfile.
10798
10799 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10800
10801 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10802 documentation. Adjust prototype to match the target_ops
10803 to_xfer_partial method. Adjust implementation accordingly.
10804
10805 2014-02-25 Hui Zhu <hui@codesourcery.com>
10806
10807 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10808 to_traceframe_info.
10809
10810 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10811
10812 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10813 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10814 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10815 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10816 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10817 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10818 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10819 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10820 New constants.
10821 (rl78_register_type): Use a data pointer type for SP and
10822 new pseudo registers mentioned above. Use a 16 bit integer
10823 type for all other register pairs.
10824 (rl78_register_name, rl78_g10_register_name): Update for
10825 new pseudo registers.
10826 (rl78_pseudo_register_read): Likewise.
10827 (rl78_pseudo_register_write): Likewise.
10828 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10829 to the newly added pseudo registers.
10830
10831 2014-02-24 Doug Evans <dje@google.com>
10832
10833 * value.c (record_latest_value): Fix comment.
10834 * printcmd.c (print_command_1): Remove code to handle -1 return from
10835 record_latest_value.
10836
10837 2014-02-24 Pedro Alves <palves@redhat.com>
10838
10839 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10840 deprecated_xfer_memory hook.
10841 (procfs_xfer_partial): Call procfs_xfer_memory instead
10842 of the deprecated_xfer_memory target hook.
10843 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10844 helper.
10845
10846 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10847
10848 * windows-nat.c (windows_xfer_shared_libraries): Return
10849 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10850 requested object is TARGET_OBJECT_LIBRARIES.
10851
10852 2014-02-24 Yao Qi <yao@codesourcery.com>
10853
10854 * target.h (enum target_xfer_status)
10855 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10856 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10857 explicitly. New.
10858 * corefile.c (memory_error_message): User updated.
10859 * exec.c (section_table_read_available_memory): Likewise.
10860 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10861 * target.c (target_xfer_status_to_string): Likewise.
10862 (raw_memory_xfer_partial): Likewise.
10863 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10864 * valops.c (read_value_memory): Likewise.
10865 * exec.h: Update comments.
10866
10867 2014-02-24 Yao Qi <yao@codesourcery.com>
10868
10869 * target.c (target_xfer_status_to_string): Rename argument err
10870 to status.
10871 * target.h (target_xfer_status_to_string): Update declaration.
10872 Replace target_xfer_error_to_string with
10873 target_xfer_status_to_string in comment.
10874
10875 2014-02-24 Yao Qi <yao@codesourcery.com>
10876
10877 * mips-linux-nat.c (super_close): Update its type.
10878 (mips_linux_close): Pass 'self' to super_close.
10879
10880 2014-02-24 Yao Qi <yao@codesourcery.com>
10881
10882 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10883 * corefile.c (read_memory): Adjusted.
10884 * target.c (target_write_with_progress): Adjusted.
10885
10886 2014-02-23 Yao Qi <yao@codesourcery.com>
10887
10888 Revert two patches:
10889
10890 2013-10-25 Yao Qi <yao@codesourcery.com>
10891
10892 * remote.c (remote_traceframe_info): Return early if
10893 traceframe is not selected.
10894
10895 2013-07-19 Yao Qi <yao@codesourcery.com>
10896
10897 * target.c (update_current_target): Change the default action
10898 of 'to_traceframe_info' from tcomplain to return_zero.
10899 * target.h (struct target_ops) <to_traceframe_info>: Add more
10900 comments.
10901
10902 2014-02-23 Yao Qi <yao@codesourcery.com>
10903
10904 * valops.c (read_value_memory): Rewrite it. Call
10905 target_xfer_partial in a loop.
10906 * exec.h (section_table_available_memory): Remove declaration.
10907 Move comments to ...
10908 * exec.c (section_table_available_memory): ... here. Make it
10909 static.
10910
10911 2014-02-23 Yao Qi <yao@codesourcery.com>
10912
10913 * exec.c (section_table_read_available_memory): New function.
10914 * exec.h (section_table_read_available_memory): Declare.
10915 * ctf.c (ctf_xfer_partial): Call
10916 section_table_read_available_memory.
10917 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10918
10919 2014-02-23 Yao Qi <yao@codesourcery.com>
10920
10921 * ctf.c (ctf_xfer_partial): Move code to ...
10922 * exec.c (exec_read_partial_read_only): ... it. New function.
10923 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10924 * tracefile.c: Include "exec.h".
10925 * exec.h (exec_read_partial_read_only): Declare.
10926
10927 2014-02-23 Yao Qi <yao@codesourcery.com>
10928
10929 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10930 (tfile_has_memory): Remove.
10931 (init_tfile_ops): Don't set fields to_has_all_memory and
10932 to_has_memory of tfile_ops.
10933 * tracefile.c (tracefile_has_all_memory): New function.
10934 (tracefile_has_memory): New function.
10935 (init_tracefile_ops): Initialize fields to_has_all_memory and
10936 to_has_memory of 'ops'.
10937
10938 2014-02-23 Yao Qi <yao@codesourcery.com>
10939
10940 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10941 (ctf_thread_alive, ctf_get_trace_status): Remove.
10942 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10943 init_tracefile_ops.
10944 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10945 (tfile_has_stack, tfile_has_registers): Remove.
10946 (tfile_thread_alive): Remove.
10947 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10948 init_tracefile_ops.
10949 * tracefile.c (tracefile_has_stack): New function.
10950 (tracefile_has_registers): New function.
10951 (tracefile_thread_alive): New function.
10952 (tracefile_get_trace_status): New function.
10953 (init_tracefile_ops): New function.
10954 * tracefile.h (init_tracefile_ops): Declare.
10955
10956 2014-02-23 Yao Qi <yao@codesourcery.com>
10957
10958 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10959 (O_LARGEFILE): Likewise.
10960 (tfile_ops): Likewise.
10961 (TRACE_HEADER_SIZE): Likewise.
10962 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10963 (cur_data_size): Likewise.
10964 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10965 (tfile_close, tfile_files_info): Likewise.
10966 (tfile_get_trace_status): Likewise.
10967 (tfile_get_tracepoint_status): Likewise.
10968 (tfile_get_traceframe_address): Likewise.
10969 (tfile_trace_find, match_blocktype): Likewise.
10970 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10971 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10972 (tfile_get_trace_state_variable_value): Likewise.
10973 (tfile_has_all_memory, tfile_has_memory): Likewise.
10974 (tfile_has_stack, tfile_has_registers): Likewise.
10975 (tfile_thread_alive, build_traceframe_info): Likewise.
10976 (tfile_traceframe_info, init_tfile_ops): Likewise.
10977 (_initialize_tracepoint): Don't call init_tfile_ops
10978 and add_target_with_completer.
10979 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10980 exec.h, completer.h and filenames.h.
10981 (_initialize_tracefile_tfile): New function.
10982
10983 2014-02-23 Yao Qi <yao@codesourcery.com>
10984
10985 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10986 tracefile-tfile.o.
10987 (HFILES_NO_SRCDIR): Add tracefile.h.
10988 * ctf.c: Include "tracefile.h".
10989 * tracefile.h: New file.
10990 * tracefile.c: New file
10991 * tracefile-tfile.c: New file.
10992 * tracepoint.c: Include "tracefile.h".
10993 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10994 (stop_reason_names): Add const.
10995 (trace_file_writer_xfree): Move it to tracefile.c.
10996 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10997 (trace_save_ctf): Likewise.
10998 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10999 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11000 (tfile_write_header, tfile_write_regblock_type): Likewise.
11001 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11002 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11003 (tfile_write_raw_data, tfile_end): Likewise.
11004 (tfile_trace_file_writer_new): Likewise.
11005 (free_uploaded_tp): Make it extern.
11006 (free_uploaded_tsv): Make it extern.
11007 (_initialize_tracepoint): Move code to register command 'tsave'
11008 to tracefile.c.
11009 * tracepoint.h (stop_reason_names): Declare.
11010 (struct trace_frame_write_ops): Move it to tracefile.h.
11011 (struct trace_file_write_ops): Likewise.
11012 (struct trace_file_writer): Likewise.
11013 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11014
11015 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11016
11017 PR gdb/16594
11018 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11019 process name.
11020 (get_cores_used_by_process): New parameter num_cores, use it.
11021 (linux_xfer_osdata_processes): Pass num_cores to it.
11022 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11023 process name.
11024
11025 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11026
11027 * target.c (memory_xfer_partial): Fix length arg in call to
11028 breakpoint_xfer_memory.
11029
11030 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11031
11032 PR tdep/16397
11033 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11034 number comes after the + or - signs. Adjust length of register
11035 name to be extracted.
11036
11037 2014-02-20 Tom Tromey <tromey@redhat.com>
11038
11039 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11040 (ada_varobj_ops): Mark "extern".
11041
11042 2014-02-20 Tom Tromey <tromey@redhat.com>
11043
11044 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11045
11046 2014-02-20 Doug Evans <xdje42@gmail.com>
11047
11048 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11049 All callers updated.
11050 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11051 All callers updated.
11052 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11053 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11054
11055 2014-02-20 lin zuojian <manjian2006@gmail.com>
11056 Joel Brobecker <brobecker@adacore.com>
11057 Doug Evans <xdje42@gmail.com>
11058
11059 PR symtab/16581
11060 * dwarf2read.c (struct die_info): New member in_process.
11061 (reset_die_in_process): New function.
11062 (process_die): Set it at the start, reset when returning.
11063 (inherit_abstract_dies): Only call process_die if origin_child_die
11064 not already being processed.
11065
11066 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11067
11068 * windows-nat.c (handle_unload_dll): Add function documentation.
11069 (do_initial_windows_stuff): Add comment explaining why we wait
11070 until after inferior initialization has finished before
11071 processing all DLLs.
11072
11073 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11074
11075 * windows-nat.c (get_module_name): Delete.
11076 (windows_get_exec_module_filename): New function, mostly
11077 inspired from get_module_name.
11078 (windows_pid_to_exec_file): Replace call to get_module_name
11079 by call to windows_get_exec_module_filename.
11080
11081 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11082
11083 * windows-nat.c (handle_load_dll): Rewrite this function's
11084 introductory comment. Remove code using get_module_name
11085 to get the DLL's name.
11086
11087 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11088
11089 * windows-nat.c (get_windows_debug_event): Ignore
11090 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11091 if windows_initialization_done == 0.
11092 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11093 Adjust implementation to always load all DLLs.
11094 (do_initial_windows_stuff): Replace call to
11095 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11096
11097 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11098
11099 * windows-nat.c (_initialize_windows_nat): Deprecate the
11100 "dll-symbols" command. Turn the "add-shared-symbol-files"
11101 and "assf" aliases into commands, and deprecate them as well.
11102 * NEWS: Add entry explaining that "dll-symbols" and its two
11103 aliases are now deprecated.
11104
11105 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11106
11107 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11108 new-line in debug string. Remove trailing spaces.
11109
11110 2014-02-19 Stan Shebs <stan@codesourcery.com>
11111
11112 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11113
11114 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11115
11116 * NEWS: Add entry for the new feature
11117 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11118 and class values.
11119
11120 2014-02-19 Stan Shebs <stan@codesourcery.com>
11121
11122 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11123
11124 2014-02-19 Pedro Alves <palves@redhat.com>
11125
11126 * common/ptid.h (struct ptid): Mention that process_stratum
11127 targets should prefer ptid.lwp.
11128
11129 2014-02-19 Pedro Alves <palves@redhat.com>
11130
11131 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11132 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11133 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11134 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11135 store remote thread ids rather than ptid.tid.
11136 (_initialize_remote): Adjust.
11137
11138 2014-02-19 Tom Tromey <tromey@redhat.com>
11139
11140 * target.c (target_get_unwinder): Rewrite.
11141 (target_get_tailcall_unwinder): Rewrite.
11142 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11143 (record_btrace_to_get_tailcall_unwinder): New function.
11144 (init_record_btrace_ops): Update.
11145 * target.h (struct target_ops) <to_get_unwinder,
11146 to_get_tailcall_unwinder>: Now function pointers. Use
11147 TARGET_DEFAULT_RETURN.
11148
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11152 argument.
11153 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11154
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11156
11157 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11158 directly.
11159 * target-delegates.c: Rebuild.
11160 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11161 TARGET_DEFAULT_FUNC.
11162 * target.c (default_target_decr_pc_after_break): Rename from
11163 forward_target_decr_pc_after_break. Simplify.
11164 (target_decr_pc_after_break): Rely on delegation.
11165
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11167
11168 * target.c (update_current_target): Do not INHERIT to_doc or
11169 to_magic. Do not de_fault to_open or to_close.
11170
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * gcore.h (objfile_find_memory_regions): Declare.
11174 * gcore.c (objfile_find_memory_regions): No longer static. Add
11175 "self" argument.
11176 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11177 * exec.c: Include gcore.h.
11178 (exec_set_find_memory_regions): Remove.
11179 (exec_find_memory_regions): Remove.
11180 (exec_do_find_memory_regions): Remove.
11181 (init_exec_ops): Update.
11182 * defs.h (exec_set_find_memory_regions): Remove.
11183
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11185
11186 * target-delegates.c: Rebuild.
11187 * target.h (struct target_ops) <to_extra_thread_info,
11188 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11189 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11190 not 0, in TARGET_DEFAULT_RETURN.
11191
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * target.c (complete_target_initialization): Remove casts. Use
11195 return_zero_has_execution.
11196 (return_zero): Add "ignore" argument.
11197 (return_zero_has_execution): New function.
11198 (init_dummy_target): Remove casts. Use
11199 return_zero_has_execution.
11200
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * target.c (update_current_target): Update comments. Do not
11204 INHERIT to_stratum.
11205
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11209 needed.
11210 * corelow.c (core_read_description): Delegate when needed.
11211 * remote.c (remote_read_description): Delegate when needed.
11212 * target-delegates.c: Rebuild.
11213 * target.c (target_read_description): Rewrite.
11214 * target.h (struct target_ops) <to_read_description>: Update
11215 comment. Use TARGET_DEFAULT_RETURN.
11216
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target-delegates.c: Rebuild.
11220 * target.c (update_current_target): Don't inherit or default
11221 to_can_run.
11222 (find_default_run_target): Check against delegate_can_run.
11223 * target.h (struct target_ops) <to_can_run>: Use
11224 TARGET_DEFAULT_RETURN.
11225
11226 2014-02-19 Tom Tromey <tromey@redhat.com>
11227
11228 * target-delegates.c: Rebuild.
11229 * target.c (target_disconnect): Unconditionally delegate.
11230 * target.h (struct target_ops) <to_disconnect>: Use
11231 TARGET_DEFAULT_NORETURN.
11232
11233 2014-02-19 Tom Tromey <tromey@redhat.com>
11234
11235 * record.c (record_stop): Unconditionally delegate.
11236 * target-delegates.c: Rebuild.
11237 * target.c (target_stop_recording): Unconditionally delegate.
11238 * target.h (struct target_ops) <to_stop_recording>: Use
11239 TARGET_DEFAULT_IGNORE.
11240
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11242
11243 * target-delegates.c: Rebuild.
11244 * target.c (target_enable_btrace): Unconditionally delegate.
11245 * target.h (struct target_ops) <to_enable_btrace>: 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_read_btrace): Unconditionally delegate.
11252 * target.h (struct target_ops) <to_read_btrace>: 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_teardown_btrace): Unconditionally delegate.
11259 * target.h (struct target_ops) <to_teardown_btrace>: 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_disable_btrace): Unconditionally delegate.
11266 * target.h (struct target_ops) <to_disable_btrace>: Use
11267 TARGET_DEFAULT_NORETURN.
11268
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target-delegates.c: Rebuild.
11272 * target.c (default_search_memory): New function.
11273 (simple_search_memory): Update comment.
11274 (target_search_memory): Unconditionally delegate.
11275 * target.h (struct target_ops) <to_search_memory>: Use
11276 TARGET_DEFAULT_FUNC.
11277
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11279
11280 * auxv.c (default_auxv_parse): No longer static.
11281 (target_auxv_parse): Unconditionally delegate.
11282 * auxv.h (default_auxv_parse): Declare.
11283 * target-delegates.c: Rebuild.
11284 * target.c: Include auxv.h.
11285 * target.h (struct target_ops) <to_auxv_parse>: Use
11286 TARGET_DEFAULT_FUNC.
11287
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11289
11290 * target-delegates.c: Rebuild.
11291 * target.c (target_memory_map): Unconditionally delegate.
11292 * target.h (struct target_ops) <to_memory_map>: Use
11293 TARGET_DEFAULT_RETURN.
11294
11295 2014-02-19 Tom Tromey <tromey@redhat.com>
11296
11297 * target-delegates.c: Rebuild.
11298 * target.c (target_thread_alive): Unconditionally delegate.
11299 * target.h (struct target_ops) <to_thread_alive>: Use
11300 TARGET_DEFAULT_RETURN.
11301
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11303
11304 * target-delegates.c: Rebuild.
11305 * target.c (target_save_record): Unconditionally delegate.
11306 * target.h (struct target_ops) <to_save_record>: Use
11307 TARGET_DEFAULT_NORETURN.
11308
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target-delegates.c: Rebuild.
11312 * target.c (target_delete_record): Unconditionally delegate.
11313 * target.h (struct target_ops) <to_delete_record>: Use
11314 TARGET_DEFAULT_NORETURN.
11315
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * target-delegates.c: Rebuild.
11319 * target.c (target_record_is_replaying): Unconditionally
11320 delegate.
11321 * target.h (struct target_ops) <to_record_is_replaying>: Use
11322 TARGET_DEFAULT_RETURN.
11323
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target-delegates.c: Rebuild.
11327 * target.c (target_goto_record_begin): Unconditionally delegate.
11328 * target.h (struct target_ops) <to_goto_record_begin>: Use
11329 TARGET_DEFAULT_NORETURN.
11330
11331 2014-02-19 Tom Tromey <tromey@redhat.com>
11332
11333 * target-delegates.c: Rebuild.
11334 * target.c (target_goto_record_end): Unconditionally delegate.
11335 * target.h (struct target_ops) <to_goto_record_end>: Use
11336 TARGET_DEFAULT_NORETURN.
11337
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target-delegates.c: Rebuild.
11341 * target.c (target_goto_record): Unconditionally delegate.
11342 * target.h (struct target_ops) <to_goto_record>: Use
11343 TARGET_DEFAULT_NORETURN.
11344
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * target-delegates.c: Rebuild.
11348 * target.c (target_insn_history): Unconditionally delegate.
11349 * target.h (struct target_ops) <to_insn_history>: Use
11350 TARGET_DEFAULT_NORETURN.
11351
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target-delegates.c: Rebuild.
11355 * target.c (target_insn_history_from): Unconditionally delegate.
11356 * target.h (struct target_ops) <to_insn_history_from>: Use
11357 TARGET_DEFAULT_NORETURN.
11358
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target-delegates.c: Rebuild.
11362 * target.c (target_insn_history_range): Unconditionally delegate.
11363 * target.h (struct target_ops) <to_insn_history_range>: Use
11364 TARGET_DEFAULT_NORETURN.
11365
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11367
11368 * target-delegates.c: Rebuild.
11369 * target.c (target_call_history): Unconditionally delegate.
11370 * target.h (struct target_ops) <to_call_history>: Use
11371 TARGET_DEFAULT_NORETURN.
11372
11373 2014-02-19 Tom Tromey <tromey@redhat.com>
11374
11375 * target-delegates.c: Rebuild.
11376 * target.c (target_call_history_from): Unconditionally delegate.
11377 * target.h (struct target_ops) <to_call_history_from>: Use
11378 TARGET_DEFAULT_NORETURN.
11379
11380 2014-02-19 Tom Tromey <tromey@redhat.com>
11381
11382 * target-delegates.c: Rebuild.
11383 * target.c (target_call_history_range): Unconditionally delegate.
11384 * target.h (struct target_ops) <to_call_history_range>: Use
11385 TARGET_DEFAULT_NORETURN.
11386
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11388
11389 * target-delegates.c: Rebuild.
11390 * target.c (target_verify_memory): Unconditionally delegate.
11391 * target.h (struct target_ops) <to_verify_memory>: Use
11392 TARGET_DEFAULT_NORETURN.
11393
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target-delegates.c: Rebuild.
11397 * target.c (target_core_of_thread): Unconditionally delegate.
11398 * target.h (struct target_ops) <to_core_of_thread>: Use
11399 TARGET_DEFAULT_RETURN.
11400
11401 2014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target-delegates.c: Rebuild.
11404 * target.c (target_flash_done): Unconditionally delegate.
11405 * target.h (struct target_ops) <to_flash_done>: Use
11406 TARGET_DEFAULT_NORETURN.
11407
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * target-delegates.c: Rebuild.
11411 * target.c (target_flash_erase): Unconditionally delegate.
11412 * target.h (struct target_ops) <to_flash_erase>: Use
11413 TARGET_DEFAULT_NORETURN.
11414
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target-delegates.c: Rebuild.
11418 * target.c (target_get_section_table): Unconditionally delegate.
11419 * target.h (struct target_ops) <to_get_section_table>: Use
11420 TARGET_DEFAULT_RETURN.
11421
11422 2014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target-delegates.c: Rebuild.
11425 * target.c (target_pid_to_str): Unconditionally delegate.
11426 (init_dummy_target): Don't initialize to_pid_to_str.
11427 (default_pid_to_str): Rename from dummy_pid_to_str.
11428 * target.h (struct target_ops) <to_pid_to_str>: Use
11429 TARGET_DEFAULT_FUNC.
11430
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target-delegates.c: Rebuild.
11434 * target.c (target_find_new_threads): Unconditionally delegate.
11435 * target.h (struct target_ops) <to_find_new_threads>: Use
11436 TARGET_DEFAULT_RETURN.
11437
11438 2014-02-19 Tom Tromey <tromey@redhat.com>
11439
11440 * target-delegates.c: Rebuild.
11441 * target.c (target_program_signals): Unconditionally delegate.
11442 * target.h (struct target_ops) <to_program_signals>: Use
11443 TARGET_DEFAULT_IGNORE.
11444
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * target-delegates.c: Rebuild.
11448 * target.c (target_pass_signals): Unconditionally delegate.
11449 * target.h (struct target_ops) <to_pass_signals>: Use
11450 TARGET_DEFAULT_IGNORE.
11451
11452 2014-02-19 Tom Tromey <tromey@redhat.com>
11453
11454 * target-delegates.c: Rebuild.
11455 * target.c (default_mourn_inferior): New function.
11456 (target_mourn_inferior): Unconditionally delegate.
11457 * target.h (struct target_ops) <to_mourn_inferior>: Use
11458 TARGET_DEFAULT_FUNC.
11459
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11461
11462 * target-delegates.c: Rebuild.
11463 * target.c (default_follow_fork): New function.
11464 (target_follow_fork): Unconditionally delegate.
11465 * target.h (struct target_ops) <to_follow_fork>: Use
11466 TARGET_DEFAULT_FUNC.
11467
11468 2014-02-19 Tom Tromey <tromey@redhat.com>
11469
11470 * target-delegates.c: Rebuild.
11471 * target.c (target_kill): Unconditionally delegate.
11472 * target.h (struct target_ops) <to_kill>: Use
11473 TARGET_DEFAULT_NORETURN.
11474
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (target_masked_watch_num_registers): Unconditionally
11479 delegate.
11480 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11481 Use TARGET_DEFAULT_RETURN.
11482
11483 2014-02-19 Tom Tromey <tromey@redhat.com>
11484
11485 * target-delegates.c: Rebuild.
11486 * target.c (target_remove_mask_watchpoint): Unconditionally
11487 delegate.
11488 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11489 TARGET_DEFAULT_RETURN.
11490
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target-delegates.c: Rebuild.
11494 * target.c (target_insert_mask_watchpoint): Unconditionally
11495 delegate.
11496 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11497 TARGET_DEFAULT_RETURN.
11498
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11500
11501 * target-delegates.c: Rebuild.
11502 * target.c (target_ranged_break_num_registers): Unconditionally
11503 delegate.
11504 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11505 Use TARGET_DEFAULT_RETURN.
11506
11507 2014-02-19 Tom Tromey <tromey@redhat.com>
11508
11509 * target-delegates.c: Rebuild.
11510 * target.c (target_fetch_registers): Unconditionally delegate.
11511 * target.h (struct target_ops) <to_fetch_registers>: Use
11512 TARGET_DEFAULT_NORETURN.
11513
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target-delegates.c: Rebuild.
11517 * target.c (update_current_target): Don't inherit or default
11518 to_stop.
11519 * target.h (struct target_ops) <to_stop>: Use
11520 TARGET_DEFAULT_IGNORE.
11521
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target-delegates.c: Rebuild.
11525 * target.c (update_current_target): Don't inherit or default
11526 to_can_run_breakpoint_commands.
11527 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11528 Use TARGET_DEFAULT_RETURN.
11529
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_supports_evaluation_of_breakpoint_conditions.
11535 * target.h (struct target_ops)
11536 <to_supports_evaluation_of_breakpoint_conditions>: Use
11537 TARGET_DEFAULT_RETURN.
11538
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target-delegates.c: Rebuild.
11542 * target.c (update_current_target): Don't inherit or default
11543 to_augmented_libraries_svr4_read.
11544 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11545 Use TARGET_DEFAULT_RETURN.
11546
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target-delegates.c: Rebuild.
11550 * target.c (update_current_target): Don't inherit or default
11551 to_can_use_agent.
11552 * target.h (struct target_ops) <to_can_use_agent>: Use
11553 TARGET_DEFAULT_RETURN.
11554
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * target-delegates.c: Rebuild.
11558 * target.c (update_current_target): Don't inherit or default
11559 to_use_agent.
11560 * target.h (struct target_ops) <to_use_agent>: Use
11561 TARGET_DEFAULT_NORETURN.
11562
11563 2014-02-19 Tom Tromey <tromey@redhat.com>
11564
11565 * target-delegates.c: Rebuild.
11566 * target.c (update_current_target): Don't inherit or default
11567 to_traceframe_info.
11568 (return_null): Remove.
11569 * target.h (struct target_ops) <to_traceframe_info>: Use
11570 TARGET_DEFAULT_RETURN.
11571
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11573
11574 * target-delegates.c: Rebuild.
11575 * target.c (update_current_target): Don't inherit or default
11576 to_static_tracepoint_markers_by_strid.
11577 * target.h (struct target_ops)
11578 <to_static_tracepoint_markers_by_strid>: 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_static_tracepoint_marker_at.
11586 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11587 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_set_permissions.
11594 * target.h (struct target_ops) <to_set_permissions>: Use
11595 TARGET_DEFAULT_IGNORE.
11596
11597 2014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target-delegates.c: Rebuild.
11600 * target.c (update_current_target): Don't inherit or default
11601 to_get_tib_address.
11602 * target.h (struct target_ops) <to_get_tib_address>: Use
11603 TARGET_DEFAULT_NORETURN.
11604
11605 2014-02-19 Tom Tromey <tromey@redhat.com>
11606
11607 * target-delegates.c: Rebuild.
11608 * target.c (update_current_target): Don't inherit or default
11609 to_set_trace_notes.
11610 * target.h (struct target_ops) <to_set_trace_notes>: Use
11611 TARGET_DEFAULT_RETURN.
11612
11613 2014-02-19 Tom Tromey <tromey@redhat.com>
11614
11615 * target-delegates.c: Rebuild.
11616 * target.c (update_current_target): Don't initialize
11617 to_set_trace_buffer_size.
11618 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11619 TARGET_DEFAULT_IGNORE.
11620
11621 2014-02-19 Tom Tromey <tromey@redhat.com>
11622
11623 * target-delegates.c: Rebuild.
11624 * target.c (update_current_target): Don't inherit or default
11625 to_set_circular_trace_buffer.
11626 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11627 TARGET_DEFAULT_IGNORE.
11628
11629 2014-02-19 Tom Tromey <tromey@redhat.com>
11630
11631 * target-delegates.c: Rebuild.
11632 * target.c (update_current_target): Don't inherit or default
11633 to_set_disconnected_tracing.
11634 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11635 TARGET_DEFAULT_IGNORE.
11636
11637 2014-02-19 Tom Tromey <tromey@redhat.com>
11638
11639 * target-delegates.c: Rebuild.
11640 * target.c (update_current_target): Don't inherit or default
11641 to_get_min_fast_tracepoint_insn_len.
11642 (return_minus_one): Remove.
11643 * target.h (struct target_ops)
11644 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11645
11646 2014-02-19 Tom Tromey <tromey@redhat.com>
11647
11648 * target-delegates.c: Rebuild.
11649 * target.c (update_current_target): Don't inherit or default
11650 to_get_raw_trace_data.
11651 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11652 TARGET_DEFAULT_NORETURN.
11653
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11655
11656 * target-delegates.c: Rebuild.
11657 * target.c (update_current_target): Don't inherit or default
11658 to_upload_trace_state_variables.
11659 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11660 Use TARGET_DEFAULT_RETURN.
11661
11662 2014-02-19 Tom Tromey <tromey@redhat.com>
11663
11664 * target-delegates.c: Rebuild.
11665 * target.c (update_current_target): Don't inherit or default
11666 to_upload_tracepoints.
11667 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11668 TARGET_DEFAULT_RETURN.
11669
11670 2014-02-19 Tom Tromey <tromey@redhat.com>
11671
11672 * target-delegates.c: Rebuild.
11673 * target.c (update_current_target): Don't inherit or default
11674 to_save_trace_data.
11675 * target.h (struct target_ops) <to_save_trace_data>: Use
11676 TARGET_DEFAULT_NORETURN.
11677
11678 2014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target-delegates.c: Rebuild.
11681 * target.c (update_current_target): Don't inherit or default
11682 to_get_trace_state_variable_value.
11683 * target.h (struct target_ops)
11684 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11685
11686 2014-02-19 Tom Tromey <tromey@redhat.com>
11687
11688 * target-delegates.c: Rebuild.
11689 * target.c (update_current_target): Don't inherit or default
11690 to_trace_find.
11691 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11692
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target-delegates.c: Rebuild.
11696 * target.c (update_current_target): Don't inherit or default
11697 to_trace_stop.
11698 * target.h (struct target_ops) <to_trace_stop>: Use
11699 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
11706 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11707 TARGET_DEFAULT_NORETURN.
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_trace_status.
11714 * target.h (struct target_ops) <to_get_trace_status>: Use
11715 TARGET_DEFAULT_RETURN.
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_trace_start.
11722 * target.h (struct target_ops) <to_trace_start>: Use
11723 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
11730 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11731 Use TARGET_DEFAULT_NORETURN.
11732
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target-delegates.c: Rebuild.
11736 * target.c (update_current_target): Don't inherit or default
11737 to_disable_tracepoint.
11738 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11739 TARGET_DEFAULT_NORETURN.
11740
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target-delegates.c: Rebuild.
11744 * target.c (update_current_target): Don't inherit or default
11745 to_enable_tracepoint.
11746 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11747 TARGET_DEFAULT_NORETURN.
11748
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target-delegates.c: Rebuild.
11752 * target.c (update_current_target): Don't inherit or default
11753 to_download_trace_state_variable.
11754 * target.h (struct target_ops) <to_download_trace_state_variable>:
11755 Use TARGET_DEFAULT_NORETURN.
11756
11757 2014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target-delegates.c: Rebuild.
11760 * target.c (update_current_target): Don't inherit or default
11761 to_can_download_tracepoint.
11762 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11763 TARGET_DEFAULT_RETURN.
11764
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11766
11767 * target-delegates.c: Rebuild.
11768 * target.c (update_current_target): Don't inherit or default
11769 to_download_tracepoint.
11770 * target.h (struct target_ops) <to_download_tracepoint>: Use
11771 TARGET_DEFAULT_NORETURN.
11772
11773 2014-02-19 Tom Tromey <tromey@redhat.com>
11774
11775 * target-delegates.c: Rebuild.
11776 * target.c (update_current_target): Don't inherit or default
11777 to_trace_init.
11778 * target.h (struct target_ops) <to_trace_init>: Use
11779 TARGET_DEFAULT_RETURN.
11780
11781 2014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target-delegates.c: Rebuild.
11784 * target.c (update_current_target): Don't inherit or default
11785 to_supports_string_tracing.
11786 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11787 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
11794 * target.h (struct target_ops)
11795 <to_supports_enable_disable_tracepoint>: Use
11796 TARGET_DEFAULT_RETURN.
11797
11798 2014-02-19 Tom Tromey <tromey@redhat.com>
11799
11800 * target-delegates.c: Rebuild.
11801 * target.c (update_current_target): Don't inherit or default
11802 to_supports_multi_process.
11803 * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
11811 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11812 TARGET_DEFAULT_FUNC.
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_thread_architecture.
11819 * target.h (struct target_ops) <to_thread_architecture>: Use
11820 TARGET_DEFAULT_FUNC.
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_execution_direction.
11827 * target.h (struct target_ops) <to_execution_direction>: Use
11828 TARGET_DEFAULT_FUNC.
11829
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11834 to_can_execute_reverse.
11835 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11836 TARGET_DEFAULT_RETURN.
11837 (target_can_execute_reverse): Unconditionally delegate.
11838
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target-delegates.c: Rebuild.
11842 * target.c (update_current_target): Don't inherit or default
11843 to_goto_bookmark.
11844 (dummy_goto_bookmark): Remove.
11845 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11846 * target.h (struct target_ops) <to_goto_bookmark>: Use
11847 TARGET_DEFAULT_NORETURN.
11848
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target-delegates.c: Rebuild.
11852 * target.c (update_current_target): Don't inherit or default
11853 to_get_bookmark.
11854 (dummy_get_bookmark): Remove.
11855 (init_dummy_target): Don't inherit or default to_get_bookmark.
11856 * target.h (struct target_ops) <to_get_bookmark>: Use
11857 TARGET_DEFAULT_NORETURN
11858
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target-delegates.c: Rebuild.
11862 * target.c (update_current_target): Don't inherit or default
11863 to_make_corefile_notes.
11864 (init_dummy_target): Don't initialize to_make_corefile_notes.
11865 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11866 TARGET_DEFAULT_FUNC.
11867
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11869
11870 * target-delegates.c: Rebuild.
11871 * target.c (update_current_target): Don't inherit or default
11872 to_find_memory_regions.
11873 (init_dummy_target): Don't initialize to_find_memory_regions.
11874 * target.h (struct target_ops) <to_find_memory_regions>: Use
11875 TARGET_DEFAULT_FUNC.
11876
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target-delegates.c: Rebuild.
11880 * target.c (update_current_target): Don't inherit or default
11881 to_log_command.
11882 * target.h (struct target_ops) <to_log_command>: Use
11883 TARGET_DEFAULT_IGNORE.
11884 (target_log_command): Unconditionally delegate.
11885
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target-delegates.c: Rebuild.
11889 * target.c (update_current_target): Don't inherit or default
11890 to_pid_to_exec_file.
11891 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11892 TARGET_DEFAULT_RETURN.
11893
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * target-delegates.c: Rebuild.
11897 * target.c (update_current_target): Don't inherit or default
11898 to_thread_name.
11899 (target_thread_name): Unconditionally delegate.
11900 * target.h (struct target_ops) <to_thread_name>: Use
11901 TARGET_DEFAULT_RETURN.
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_extra_thread_info.
11908 * target.h (struct target_ops) <to_extra_thread_info>: Use
11909 TARGET_DEFAULT_RETURN.
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_has_exited.
11916 * target.h (struct target_ops) <to_has_exited>: Use
11917 TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
11924 (return_one): Remove.
11925 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11926 TARGET_DEFAULT_RETURN.
11927
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (update_current_target): Don't inherit or default
11932 to_insert_exec_catchpoint.
11933 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11934 TARGET_DEFAULT_RETURN.
11935
11936 2014-01-08 Tom Tromey <tromey@redhat.com>
11937
11938 * target-delegates.c: Rebuild.
11939 * target.c (update_current_target): Don't inherit or default
11940 to_insert_exec_catchpoint.
11941 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11942 TARGET_DEFAULT_RETURN.
11943
11944 2014-02-19 Tom Tromey <tromey@redhat.com>
11945
11946 * target-delegates.c: Rebuild.
11947 * target.c (update_current_target): Don't inherit or default
11948 to_remove_vfork_catchpoint.
11949 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11950 TARGET_DEFAULT_RETURN.
11951
11952 2014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target-delegates.c: Rebuild.
11955 * target.c (update_current_target): Don't inherit or default
11956 to_insert_vfork_catchpoint.
11957 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11958 TARGET_DEFAULT_RETURN.
11959
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11961
11962 * target-delegates.c: Rebuild.
11963 * target.c (update_current_target): Don't inherit or default
11964 to_remove_fork_catchpoint.
11965 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11966 TARGET_DEFAULT_RETURN.
11967
11968 2014-02-19 Tom Tromey <tromey@redhat.com>
11969
11970 * target-delegates.c: Rebuild.
11971 * target.c (update_current_target): Don't inherit or default
11972 to_insert_fork_catchpoint.
11973 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11974 TARGET_DEFAULT_RETURN.
11975
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11977
11978 * target-delegates.c: Rebuild.
11979 * target.c (update_current_target): Don't inherit or default
11980 to_post_startup_inferior.
11981 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11982 TARGET_DEFAULT_IGNORE.
11983
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target-delegates.c: Rebuild.
11987 * target.c (update_current_target): Don't inherit or default
11988 to_load.
11989 * target.h (struct target_ops) <to_load>: Use
11990 TARGET_DEFAULT_NORETURN.
11991
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target-delegates.c: Rebuild.
11995 * target.c (update_current_target): Don't inherit or default
11996 to_terminal_info.
11997 * target.h (struct target_ops) <to_terminal_info>: Use
11998 TARGET_DEFAULT_FUNC.
11999
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target-delegates.c: Rebuild.
12003 * target.c (update_current_target): Don't inherit or default
12004 to_terminal_save_ours.
12005 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12006 TARGET_DEFAULT_IGNORE.
12007
12008 2014-02-19 Tom Tromey <tromey@redhat.com>
12009
12010 * target-delegates.c: Rebuild.
12011 * target.c (update_current_target): Don't inherit or default
12012 to_terminal_ours.
12013 * target.h (struct target_ops) <to_terminal_ours>: Use
12014 TARGET_DEFAULT_IGNORE.
12015
12016 2014-02-19 Tom Tromey <tromey@redhat.com>
12017
12018 * target-delegates.c: Rebuild.
12019 * target.c (update_current_target): Don't inherit or default
12020 to_terminal_ours_for_output.
12021 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12022 TARGET_DEFAULT_IGNORE.
12023
12024 2014-02-19 Tom Tromey <tromey@redhat.com>
12025
12026 * target-delegates.c: Rebuild.
12027 * target.c (update_current_target): Don't inherit or default
12028 to_terminal_inferior.
12029 * target.h (struct target_ops) <to_terminal_inferior>: Use
12030 TARGET_DEFAULT_IGNORE.
12031
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12033
12034 * target-delegates.c: Rebuild.
12035 * target.c (update_current_target): Don't inherit or default
12036 to_terminal_init.
12037 * target.h (struct target_ops) <to_terminal_init>: Use
12038 TARGET_DEFAULT_IGNORE.
12039
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target-delegates.c: Rebuild.
12043 * target.c (update_current_target): Don't inherit or default
12044 to_can_accel_watchpoint_condition.
12045 * target.h (struct target_ops)
12046 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12047
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12049
12050 * target-delegates.c: Rebuild.
12051 * target.c (update_current_target): Don't inherit or default
12052 to_region_ok_for_hw_watchpoint.
12053 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12054 Use TARGET_DEFAULT_FUNC.
12055
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target-delegates.c: Rebuild.
12059 * target.c (update_current_target): Don't inherit or default
12060 to_watchpoint_addr_within_range.
12061 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12062 Use TARGET_DEFAULT_FUNC.
12063
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target-delegates.c: Rebuild.
12067 * target.c (update_current_target): Don't inherit or default
12068 to_remove_watchpoint.
12069 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12070 TARGET_DEFAULT_NORETURN.
12071
12072 2014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target-delegates.c: Rebuild.
12075 * target.c (update_current_target): Don't inherit or default
12076 to_insert_watchpoint.
12077 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12078 TARGET_DEFAULT_RETURN.
12079
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12081
12082 * target-delegates.c: Rebuild.
12083 * target.c (update_current_target): Don't inherit or default
12084 to_remove_hw_breakpoint.
12085 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12086 TARGET_DEFAULT_RETURN.
12087
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12089
12090 * target-delegates.c: Rebuild.
12091 * target.c (update_current_target): Don't inherit or default
12092 to_insert_hw_breakpoint.
12093 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12094 TARGET_DEFAULT_RETURN.
12095
12096 2014-02-19 Tom Tromey <tromey@redhat.com>
12097
12098 * target-delegates.c: Rebuild.
12099 * target.c (update_current_target): Don't inherit or default
12100 to_can_use_hw_breakpoint.
12101 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12102 TARGET_DEFAULT_RETURN.
12103
12104 2014-02-19 Tom Tromey <tromey@redhat.com>
12105
12106 * target-delegates.c: Rebuild.
12107 * target.c (update_current_target): Don't inherit or default
12108 to_files_info.
12109 * target.h (struct target_ops) <to_files_info>: Use
12110 TARGET_DEFAULT_IGNORE.
12111
12112 2014-02-19 Tom Tromey <tromey@redhat.com>
12113
12114 * target-delegates.c: Rebuild.
12115 * target.c (update_current_target): Don't inherit or default
12116 to_store.
12117 * target.h (struct target_ops) <to_store>: Use
12118 TARGET_DEFAULT_NORETURN.
12119
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target-delegates.c: Rebuild.
12123 * target.c (update_current_target): Don't inherit or default
12124 to_post_attach.
12125 * target.h (struct target_ops) <to_post_attach>: Use
12126 TARGET_DEFAULT_IGNORE.
12127
12128 2014-02-19 Tom Tromey <tromey@redhat.com>
12129
12130 * target-delegates.c: Rebuild.
12131 * target.c (update_current_target): Don't inherit or default
12132 to_rcmd.
12133 (default_rcmd): New function.
12134 (do_monitor_command): Unconditionally delegate.
12135 * target.h (struct target_ops) <to_rmcd>: Use
12136 TARGET_DEFAULT_FUNC.
12137
12138 2014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target-delegates.c: Rebuild.
12141 * target.c (init_dummy_target): Don't initialize to_attach.
12142 (target_attach): Unconditionally delegate.
12143 * target.h (struct target_ops) <to_attach>: Use
12144 TARGET_DEFAULT_FUNC.
12145
12146 2014-02-19 Tom Tromey <tromey@redhat.com>
12147
12148 * target-delegates.c: Rebuild.
12149 * target.c (target_detach): Unconditionally delegate.
12150 (init_dummy_target): Don't initialize to_detach.
12151 * target.h (struct target_ops) <to_detach>: Use
12152 TARGET_DEFAULT_IGNORE.
12153
12154 2014-02-19 Tom Tromey <tromey@redhat.com>
12155
12156 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12157 Add argument.
12158 (target_augmented_libraries_svr4_read): Add argument.
12159 * target.c (update_current_target): Update.
12160 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12161 argument.
12162
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target.h (struct target_ops) <to_call_history_range>: Add
12166 argument.
12167 * target.c (target_call_history_range): Add argument.
12168 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12169 argument.
12170 (record_btrace_call_history_from): Update.
12171
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * target.h (struct target_ops) <to_call_history_from>: Add
12175 argument.
12176 * target.c (target_call_history_from): Add argument.
12177 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12178 argument.
12179
12180 2014-02-19 Tom Tromey <tromey@redhat.com>
12181
12182 * target.h (struct target_ops) <to_call_history>: Add argument.
12183 * target.c (target_call_history): Add argument.
12184 * record-btrace.c (record_btrace_call_history): Add 'self'
12185 argument.
12186
12187 2014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target.h (struct target_ops) <to_insn_history_range>: Add
12190 argument.
12191 * target.c (target_insn_history_range): Add argument.
12192 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12193 argument.
12194 (record_btrace_insn_history_from): Update.
12195
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * target.h (struct target_ops) <to_insn_history_from>: Add
12199 argument.
12200 * target.c (target_insn_history_from): Add argument.
12201 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12202 argument.
12203
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12205
12206 * target.h (struct target_ops) <to_insn_history>: Add argument.
12207 * target.c (target_insn_history): Add argument.
12208 * record-btrace.c (record_btrace_insn_history): Add 'self'
12209 argument.
12210
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * target.h (struct target_ops) <to_goto_record>: Add argument.
12214 * target.c (target_goto_record): Add argument.
12215 * record-full.c (record_full_goto): Add 'self' argument.
12216 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12217
12218 2014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12221 * target.c (target_goto_record_end): Add argument.
12222 * record-full.c (record_full_goto_end): Add 'self' argument.
12223 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12224
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target.h (struct target_ops) <to_goto_record_begin>: Add
12228 argument.
12229 * target.c (target_goto_record_begin): Add argument.
12230 * record-full.c (record_full_goto_begin): Add 'self' argument.
12231 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12232 argument.
12233
12234 2014-02-19 Tom Tromey <tromey@redhat.com>
12235
12236 * target.h (struct target_ops) <to_record_is_replaying>: Add
12237 argument.
12238 * target.c (target_record_is_replaying): Add argument.
12239 * record-full.c (record_full_is_replaying): Add 'self' argument.
12240 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12241 argument.
12242 (record_btrace_xfer_partial, record_btrace_store_registers)
12243 (record_btrace_prepare_to_store, record_btrace_resume)
12244 (record_btrace_wait, record_btrace_decr_pc_after_break)
12245 (record_btrace_find_new_threads, record_btrace_thread_alive):
12246 Update.
12247
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12249
12250 * target.h (struct target_ops) <to_delete_record>: Add argument.
12251 * target.c (target_delete_record): Add argument.
12252 * record-full.c (record_full_delete): Add 'self' argument.
12253
12254 2014-02-19 Tom Tromey <tromey@redhat.com>
12255
12256 * target.h (struct target_ops) <to_save_record>: Add argument.
12257 * target.c (target_save_record): Add argument.
12258 * record-full.c (record_full_save): Add 'self' argument.
12259 (record_full_save): Add 'self' argument.
12260
12261 2014-02-19 Tom Tromey <tromey@redhat.com>
12262
12263 * target.h (struct target_ops) <to_info_record>: Add argument.
12264 * target.c (target_info_record): Add argument.
12265 * record.c (info_record_command): Add argument.
12266 * record-full.c (record_full_info): Add 'self' argument.
12267 * record-btrace.c (record_btrace_info): Add 'self' argument.
12268
12269 2014-02-19 Tom Tromey <tromey@redhat.com>
12270
12271 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12272 * target.c (target_stop_recording): Add argument.
12273 * record.c (record_stop): Add argument.
12274 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12275 argument.
12276
12277 2014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12280 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12281 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12282 argument.
12283 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12284 (_initialize_amd64_linux_nat): Use it.
12285 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12286 (_initialize_i386_linux_nat): Use it.
12287
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12291 * target.c (target_teardown_btrace): Add argument.
12292 * remote.c (remote_teardown_btrace): Add 'self' argument.
12293 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12294 argument.
12295 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12296 argument.
12297
12298 2014-02-19 Tom Tromey <tromey@redhat.com>
12299
12300 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12301 * target.c (target_disable_btrace): Add argument.
12302 * remote.c (remote_disable_btrace): Add 'self' argument.
12303 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12304 argument.
12305 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12306 argument.
12307
12308 2014-02-19 Tom Tromey <tromey@redhat.com>
12309
12310 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12311 * target.c (target_enable_btrace): Add argument.
12312 * remote.c (remote_enable_btrace): Add 'self' argument.
12313 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12314 argument.
12315 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12316 argument.
12317
12318 2014-02-19 Tom Tromey <tromey@redhat.com>
12319
12320 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12321 (target_can_use_agent): Add argument.
12322 * target.c (update_current_target): Update.
12323 * remote.c (remote_can_use_agent): Add 'self' argument.
12324 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12325
12326 2014-02-19 Tom Tromey <tromey@redhat.com>
12327
12328 * target.h (struct target_ops) <to_use_agent>: Add argument.
12329 (target_use_agent): Add argument.
12330 * target.c (update_current_target): Update.
12331 * remote.c (remote_use_agent): Add 'self' argument.
12332 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12333
12334 2014-02-19 Tom Tromey <tromey@redhat.com>
12335
12336 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12337 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12338 (target_traceframe_info): Add argument.
12339 * target.c (update_current_target): Update.
12340 * remote.c (remote_traceframe_info): Add 'self' argument.
12341 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12342
12343 2014-02-19 Tom Tromey <tromey@redhat.com>
12344
12345 * target.h (target_static_tracepoint_markers_by_strid): Add
12346 argument.
12347 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12348 'self' argument.
12349 * target.c (update_current_target): Update.
12350 * remote.c (struct target_ops)
12351 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12352 * linux-nat.c (struct target_ops)
12353 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12354
12355 2014-02-19 Tom Tromey <tromey@redhat.com>
12356
12357 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12358 Add argument.
12359 (target_static_tracepoint_marker_at): Add argument.
12360 * target.c (update_current_target): Update.
12361 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12362 argument.
12363
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12367 (target_set_permissions): Add argument.
12368 * target.c (update_current_target): Update.
12369 * remote.c (remote_set_permissions): Add 'self' argument.
12370 (remote_start_remote): Update.
12371
12372 2014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12375 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12376 (target_get_tib_address): Add argument.
12377 * target.c (update_current_target): Update.
12378 * remote.c (remote_get_tib_address): Add 'self' argument.
12379
12380 2014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12383 (target_set_trace_notes): Add argument.
12384 * target.c (update_current_target): Update.
12385 * remote.c (remote_set_trace_notes): Add 'self' argument.
12386
12387 2014-02-19 Tom Tromey <tromey@redhat.com>
12388
12389 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12390 argument.
12391 (target_set_trace_buffer_size): Add argument.
12392 * target.c (update_current_target): Update.
12393 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12394
12395 2014-02-19 Tom Tromey <tromey@redhat.com>
12396
12397 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12398 argument.
12399 (target_set_circular_trace_buffer): Add argument.
12400 * target.c (update_current_target): Update.
12401 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12402 argument.
12403
12404 2014-02-19 Tom Tromey <tromey@redhat.com>
12405
12406 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12407 argument.
12408 (target_set_disconnected_tracing): Add argument.
12409 * target.c (update_current_target): Update.
12410 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12411
12412 2014-02-19 Tom Tromey <tromey@redhat.com>
12413
12414 * target.h (struct target_ops)
12415 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12416 (target_get_min_fast_tracepoint_insn_len): Add argument.
12417 * target.c (update_current_target): Update.
12418 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12419 argument.
12420
12421 2014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12424 argument.
12425 (target_get_raw_trace_data): Add argument.
12426 * target.c (update_current_target): Update.
12427 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12428
12429 2014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12432 Add argument.
12433 (target_upload_trace_state_variables): Add argument.
12434 * target.c (update_current_target): Update.
12435 * remote.c (remote_upload_trace_state_variables): Add 'self'
12436 argument.
12437 (remote_start_remote): Update.
12438
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12440
12441 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12442 argument.
12443 (target_upload_tracepoints): Add argument.
12444 * target.c (update_current_target): Update.
12445 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12446 (remote_start_remote): Update.
12447
12448 2014-02-19 Tom Tromey <tromey@redhat.com>
12449
12450 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12451 (target_save_trace_data): Add argument.
12452 * target.c (update_current_target): Update.
12453 * remote.c (remote_save_trace_data): Add 'self' argument.
12454
12455 2014-02-19 Tom Tromey <tromey@redhat.com>
12456
12457 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12458 argument.
12459 * target.h (struct target_ops)
12460 <to_get_trace_state_variable_value>: Add argument.
12461 (target_get_trace_state_variable_value): Add argument.
12462 * target.c (update_current_target): Update.
12463 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12464 argument.
12465 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12466
12467 2014-02-19 Tom Tromey <tromey@redhat.com>
12468
12469 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12470 * target.h (struct target_ops) <to_trace_find>: Add argument.
12471 (target_trace_find): Add argument.
12472 * target.c (update_current_target): Update.
12473 * remote.c (remote_trace_find): Add 'self' argument.
12474 * ctf.c (ctf_trace_find): Add 'self' argument.
12475
12476 2014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12479 (target_trace_stop): Add argument.
12480 * target.c (update_current_target): Update.
12481 * remote.c (remote_trace_stop): Add 'self' argument.
12482
12483 2014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12486 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12487 argument.
12488 (target_get_tracepoint_status): Add argument.
12489 * target.c (update_current_target): Update.
12490 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12491
12492 2014-02-19 Tom Tromey <tromey@redhat.com>
12493
12494 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12495 * target.h (struct target_ops) <to_get_trace_status>: Add
12496 argument.
12497 (target_get_trace_status): Add argument.
12498 * target.c (update_current_target): Update.
12499 * remote.c (remote_get_trace_status): Add 'self' argument.
12500 (remote_start_remote, remote_can_download_tracepoint): Update.
12501 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12502
12503 2014-02-19 Tom Tromey <tromey@redhat.com>
12504
12505 * target.h (struct target_ops) <to_trace_start>: Add argument.
12506 (target_trace_start): Add argument.
12507 * target.c (update_current_target): Update.
12508 * remote.c (remote_trace_start): Add 'self' argument.
12509
12510 2014-02-19 Tom Tromey <tromey@redhat.com>
12511
12512 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12513 Add argument.
12514 (target_trace_set_readonly_regions): Add argument.
12515 * target.c (update_current_target): Update.
12516 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12517 argument.
12518
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12520
12521 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12522 argument.
12523 (target_disable_tracepoint): Add argument.
12524 * target.c (update_current_target): Update.
12525 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12526
12527 2014-02-19 Tom Tromey <tromey@redhat.com>
12528
12529 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12530 argument.
12531 (target_enable_tracepoint): Add argument.
12532 * target.c (update_current_target): Update.
12533 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12534
12535 2014-02-19 Tom Tromey <tromey@redhat.com>
12536
12537 * target.h (struct target_ops) <to_download_trace_state_variable>:
12538 Add argument.
12539 (target_download_trace_state_variable): Add argument.
12540 * target.c (update_current_target): Update.
12541 * remote.c (remote_download_trace_state_variable): Add 'self'
12542 argument.
12543
12544 2014-02-19 Tom Tromey <tromey@redhat.com>
12545
12546 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12547 argument.
12548 (target_can_download_tracepoint): Add argument.
12549 * target.c (update_current_target): Update.
12550 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12551
12552 2014-02-19 Tom Tromey <tromey@redhat.com>
12553
12554 * target.h (struct target_ops) <to_download_tracepoint>: Add
12555 argument.
12556 (target_download_tracepoint): Add argument.
12557 * target.c (update_current_target): Update.
12558 * remote.c (remote_download_tracepoint): Add 'self' argument.
12559
12560 2014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target.h (struct target_ops) <to_trace_init>: Add argument.
12563 (target_trace_init): Add argument.
12564 * target.c (update_current_target): Update.
12565 * remote.c (remote_trace_init): Add 'self' argument.
12566
12567 2014-02-19 Tom Tromey <tromey@redhat.com>
12568
12569 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12570 * target.c (target_fileio_readlink): Add argument.
12571 * remote.c (remote_hostio_readlink): Add 'self' argument.
12572 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12573
12574 2014-02-19 Tom Tromey <tromey@redhat.com>
12575
12576 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12577 * target.c (target_fileio_unlink): Add argument.
12578 * remote.c (remote_hostio_unlink): Add 'self' argument.
12579 (remote_file_delete): Update.
12580 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12581
12582 2014-02-19 Tom Tromey <tromey@redhat.com>
12583
12584 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12585 * target.c (target_fileio_close): Add argument.
12586 * remote.c (remote_hostio_close): Add 'self' argument.
12587 (remote_hostio_close_cleanup): Update.
12588 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12589 Update.
12590 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12591
12592 2014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12595 * target.c (target_fileio_pread): Add argument.
12596 * remote.c (remote_hostio_pread): Add 'self' argument.
12597 (remote_bfd_iovec_pread, remote_file_get): Update.
12598 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12599
12600 2014-02-19 Tom Tromey <tromey@redhat.com>
12601
12602 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12603 * target.c (target_fileio_pwrite): Add argument.
12604 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12605 (remote_file_put): Update.
12606 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12607
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12609
12610 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12611 * target.c (target_fileio_open): Add argument.
12612 * remote.c (remote_hostio_open): Add 'self' argument.
12613 (remote_bfd_iovec_open): Add 'self' argument.
12614 (remote_file_put): Add 'self' argument.
12615 (remote_file_get): Add 'self' argument.
12616 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12617
12618 2014-02-19 Tom Tromey <tromey@redhat.com>
12619
12620 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12621 Add argument.
12622 (target_can_run_breakpoint_commands): Add argument.
12623 * target.c (update_current_target): Update.
12624 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12625 argument.
12626 (remote_insert_breakpoint): Add 'self' argument.
12627 (remote_insert_hw_breakpoint): Add 'self' argument.
12628 (remote_can_run_breakpoint_commands): Add 'self' argument.
12629
12630 2014-02-19 Tom Tromey <tromey@redhat.com>
12631
12632 * target.h (struct target_ops)
12633 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12634 (target_supports_evaluation_of_breakpoint_conditions): Add
12635 argument.
12636 * target.c (update_current_target): Update.
12637 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12638 argument.
12639 (remote_insert_breakpoint): Add 'self' argument.
12640 (remote_insert_hw_breakpoint): Add 'self' argument.
12641 (remote_supports_cond_breakpoints): Add 'self' argument.
12642
12643 2014-02-19 Tom Tromey <tromey@redhat.com>
12644
12645 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12646 argument.
12647 (target_supports_string_tracing): Add argument.
12648 * target.c (update_current_target): Update.
12649 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12650
12651 2014-02-19 Tom Tromey <tromey@redhat.com>
12652
12653 * target.h (struct target_ops)
12654 <to_supports_disable_randomization>: Add argument.
12655 * target.c (find_default_supports_disable_randomization): Add
12656 argument.
12657 (target_supports_disable_randomization): Add argument.
12658 (find_default_supports_disable_randomization): Add 'self'
12659 argument.
12660 * remote.c (extended_remote_supports_disable_randomization): Add
12661 'self' argument.
12662 (remote_supports_disable_randomization): Add 'self' argument.
12663 (extended_remote_create_inferior): Update.
12664 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12665 'self' argument.
12666
12667 2014-02-19 Tom Tromey <tromey@redhat.com>
12668
12669 * target.h (struct target_ops)
12670 <to_supports_enable_disable_tracepoint>: Add argument.
12671 (target_supports_enable_disable_tracepoint): Add argument.
12672 * target.c (update_current_target): Update.
12673 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12674 argument.
12675
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * target.h (struct target_ops) <to_supports_multi_process>: Add
12679 argument.
12680 (target_supports_multi_process): Add argument.
12681 * target.c (update_current_target): Update.
12682 * remote.c (remote_supports_multi_process): Add 'self' argument.
12683 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12684 argument.
12685 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12686 argument.
12687
12688 2014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * target.h (struct target_ops) <to_execution_direction>: Add
12691 argument.
12692 (target_execution_direction): Add argument.
12693 * target.c (default_execution_direction): Add 'self' argument.
12694 * record-full.c (record_full_execution_direction): Add 'self'
12695 argument.
12696
12697 2014-02-19 Tom Tromey <tromey@redhat.com>
12698
12699 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12700 argument.
12701 (target_can_execute_reverse): Add argument.
12702 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12703 * record-full.c (record_full_can_execute_reverse): Add 'self'
12704 argument.
12705 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12706 argument.
12707
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12711 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12712 argument.
12713 (target_get_ada_task_ptid): Add argument.
12714 * target.c (update_current_target): Update.
12715 (default_get_ada_task_ptid): Add 'self' argument.
12716 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12717 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12718 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12719 argument.
12720 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12721 argument.
12722 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12723 argument.
12724 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12725 argument.
12726 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12727 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12728 argument.
12729
12730 2014-02-19 Tom Tromey <tromey@redhat.com>
12731
12732 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12733 (target_goto_bookmark): Add argument.
12734 * target.c (dummy_goto_bookmark): Add 'self' argument.
12735 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12736
12737 2014-02-19 Tom Tromey <tromey@redhat.com>
12738
12739 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12740 (target_get_bookmark): Add argument.
12741 * target.c (dummy_get_bookmark): Add 'self' argument.
12742 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12743
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12745
12746 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12747 argument.
12748 (target_make_corefile_notes): Add argument.
12749 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12750 * procfs.c (procfs_make_note_section): Add 'self' argument.
12751 (procfs_make_note_section): Add 'self' argument.
12752 (procfs_make_note_section): Add 'self' argument.
12753 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12754 argument.
12755 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12756 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12757 * exec.c (exec_make_note_section): Add 'self' argument.
12758 (exec_make_note_section): Add 'self' argument.
12759
12760 2014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * target.h (struct target_ops) <to_find_memory_regions>: Add
12763 argument.
12764 (target_find_memory_regions): Add argument.
12765 * target.c (dummy_find_memory_regions): Add 'self' argument.
12766 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12767 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12768 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12769 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12770 * exec. (exec_do_find_memory_regions): New global.
12771 (exec_set_find_memory_regions): Rewrite.
12772 (exec_find_memory_regions): New function.
12773 (init_exec_ops): Use exec_find_memory_regions.
12774
12775 2014-02-19 Tom Tromey <tromey@redhat.com>
12776
12777 * target.h (struct target_ops) <to_supports_non_stop>: Add
12778 argument.
12779 * target.c (find_default_supports_non_stop): Add argument.
12780 (target_supports_non_stop): Add argument.
12781 (find_default_supports_non_stop): Add 'self' argument.
12782 * remote.c (remote_supports_non_stop): Add 'self' argument.
12783 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12784
12785 2014-02-19 Tom Tromey <tromey@redhat.com>
12786
12787 * target.h (struct target_ops) <to_log_command>: Add argument.
12788 (target_log_command): Add argument.
12789 * serial.h (serial_log_command): Add 'self' argument.
12790 * serial.c (serial_log_command): Add 'self' argument.
12791
12792 2014-02-19 Tom Tromey <tromey@redhat.com>
12793
12794 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12795 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12796 argument.
12797 (target_pid_to_exec_file): Add argument.
12798 * target.c (debug_to_pid_to_exec_file): Add argument.
12799 (update_current_target): Update.
12800 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12801 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12802 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12803 (linux_handle_extended_wait): Update.
12804 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12805 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12806 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12807 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12808
12809 2014-02-19 Tom Tromey <tromey@redhat.com>
12810
12811 * target.h (struct target_ops) <to_rcmd>: Add argument.
12812 (target_rcmd): Add argument.
12813 * target.c (debug_to_rcmd): Add argument.
12814 (update_current_target, do_monitor_command): Update.
12815 * remote.c (remote_rcmd): Add 'self' argument.
12816 * monitor.c (monitor_rcmd): Add 'self' argument.
12817
12818 2014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 * windows-nat.c (windows_stop): Add 'self' argument.
12821 * target.h (struct target_ops) <to_stop>: Add argument.
12822 * target.c (target_stop): Add argument.
12823 (debug_to_stop): Add argument.
12824 (update_current_target): Update.
12825 * remote.c (remote_stop): Add 'self' argument.
12826 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12827 (gdbsim_cntrl_c): Update.
12828 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12829 * procfs.c (procfs_stop): Add 'self' argument.
12830 * nto-procfs.c (procfs_stop): Add 'self' argument.
12831 * monitor.c (monitor_stop): Add 'self' argument.
12832 (monitor_open): Update.
12833 * linux-nat.c (linux_nat_stop): Add argument.
12834 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12835 * gnu-nat.c (gnu_stop): Add 'self' argument.
12836 * darwin-nat.c (darwin_stop): Add 'self' argument.
12837
12838 2014-02-19 Tom Tromey <tromey@redhat.com>
12839
12840 * target.h (struct target_ops) <to_thread_name>: Add argument.
12841 * target.c (target_thread_name): Add argument.
12842 (update_current_target): Update.
12843 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12844
12845 2014-02-19 Tom Tromey <tromey@redhat.com>
12846
12847 * target.h (struct target_ops) <to_extra_thread_info>: Add
12848 argument.
12849 (target_extra_thread_info): Add argument.
12850 * target.c (update_current_target): Update.
12851 * remote.c (remote_threads_extra_info): Add 'self' argument.
12852 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12853 argument.
12854 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12855 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12856 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12857 argument.
12858 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12859 argument.
12860 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12861 argument.
12862 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12863 argument.
12864
12865 2014-02-19 Tom Tromey <tromey@redhat.com>
12866
12867 * target.h (struct target_ops) <to_program_signals>: Add argument.
12868 * target.c (target_program_signals): Add argument.
12869 * remote.c (remote_program_signals): Add 'self' argument.
12870
12871 2014-02-19 Tom Tromey <tromey@redhat.com>
12872
12873 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12874 * target.c (target_pass_signals): Add argument.
12875 * remote.c (remote_pass_signals): Add 'self' argument.
12876 (remote_start_remote): Update.
12877 * procfs.c (procfs_pass_signals): Add 'self' argument.
12878 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12879 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12880 (linux_nat_create_inferior, linux_nat_attach): Update.
12881
12882 2014-02-19 Tom Tromey <tromey@redhat.com>
12883
12884 * windows-nat.c (windows_can_run): Add 'self' argument.
12885 * target.h (struct target_ops) <to_can_run>: Add argument.
12886 (target_can_run): Add argument.
12887 * target.c (debug_to_can_run): Add argument.
12888 (update_current_target): Update.
12889 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12890 * inf-child.c (inf_child_can_run): Add 'self' argument.
12891 * go32-nat.c (go32_can_run): Add 'self' argument.
12892
12893 2014-02-19 Tom Tromey <tromey@redhat.com>
12894
12895 * target.h (struct target_ops) <to_has_exited>: Add argument.
12896 (target_has_exited): Add argument.
12897 * target.c (debug_to_has_exited): Add argument.
12898 (update_current_target): Update.
12899
12900 2014-02-19 Tom Tromey <tromey@redhat.com>
12901
12902 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12903 argument.
12904 (target_set_syscall_catchpoint): Add argument.
12905 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12906 argument.
12907 * target.c (update_current_target): Update.
12908
12909 2014-02-19 Tom Tromey <tromey@redhat.com>
12910
12911 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12912 argument.
12913 (target_remove_exec_catchpoint): Add argument.
12914 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12915 (update_current_target): Update.
12916 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12917 argument.
12918
12919 2014-02-19 Tom Tromey <tromey@redhat.com>
12920
12921 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12922 argument.
12923 (target_insert_exec_catchpoint): Add argument.
12924 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12925 (update_current_target): Update.
12926 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12927 argument.
12928
12929 2014-02-19 Tom Tromey <tromey@redhat.com>
12930
12931 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12932 argument.
12933 (target_remove_vfork_catchpoint): Add argument.
12934 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12935 (update_current_target): Update.
12936 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12937 argument.
12938
12939 2014-02-19 Tom Tromey <tromey@redhat.com>
12940
12941 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12942 argument.
12943 (target_insert_vfork_catchpoint): Add argument.
12944 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12945 (update_current_target): Update.
12946 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12947 argument.
12948
12949 2014-02-19 Tom Tromey <tromey@redhat.com>
12950
12951 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12952 argument.
12953 (target_remove_fork_catchpoint): Add argument.
12954 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12955 (update_current_target): Update.
12956 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12957 argument.
12958
12959 2014-02-19 Tom Tromey <tromey@redhat.com>
12960
12961 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12962 argument.
12963 (target_insert_fork_catchpoint): Add argument.
12964 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12965 (update_current_target): Update.
12966 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12967 argument.
12968
12969 2014-02-19 Tom Tromey <tromey@redhat.com>
12970
12971 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12972 argument.
12973 (target_post_startup_inferior): Add argument.
12974 * target.c (debug_to_post_startup_inferior): Add argument.
12975 (update_current_target): Update.
12976 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12977 argument.
12978 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12979 argument.
12980 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12981 argument.
12982 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12983 argument.
12984 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12985 'self' argument.
12986 (super_post_startup_inferior): Likewise.
12987 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12988 'self' argument.
12989 (super_post_startup_inferior): Likewise.
12990 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12991 Add 'self' argument.
12992 (super_post_startup_inferior): Likewise.
12993
12994 2014-02-19 Tom Tromey <tromey@redhat.com>
12995
12996 * target.h (struct target_ops) <to_load>: Add argument.
12997 * target.c (target_load): Add argument.
12998 (debug_to_load): Add argument.
12999 (update_current_target): Update.
13000 * remote.c (remote_load): Add 'self' argument.
13001 * remote-sim.c (gdbsim_load): Add 'self' argument.
13002 * remote-mips.c (mips_load): Add 'self' argument.
13003 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13004 * monitor.c (monitor_load): Add 'self' argument.
13005 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13006
13007 2014-02-19 Tom Tromey <tromey@redhat.com>
13008
13009 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13010 (target_terminal_info): Add argument.
13011 * target.c (debug_to_terminal_info): Add argument.
13012 (default_terminal_info): Likewise.
13013 * inflow.c (child_terminal_info): Add 'self' argument.
13014 * inferior.h (child_terminal_info): Add 'self' argument.
13015 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13016
13017 2014-02-19 Tom Tromey <tromey@redhat.com>
13018
13019 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13020 argument.
13021 (target_terminal_save_ours): Add argument.
13022 * target.c (debug_to_terminal_save_ours): Add argument.
13023 (update_current_target): Update.
13024 * inflow.c (terminal_save_ours): Add 'self' argument.
13025 * inferior.h (terminal_save_ours): Add 'self' argument.
13026
13027 2014-02-19 Tom Tromey <tromey@redhat.com>
13028
13029 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13030 (target_terminal_ours): Add argument.
13031 * target.c (debug_to_terminal_ours): Add argument.
13032 (update_current_target): Update.
13033 * remote.c (remote_terminal_ours): Add 'self' argument.
13034 (remote_close): Update.
13035 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13036 * inflow.c (terminal_ours): Add 'self' argument.
13037 * inferior.h (terminal_ours): Add 'self' argument.
13038 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13039
13040 2014-02-19 Pedro Alves <palves@redhat.com>
13041 Tom Tromey <tromey@redhat.com>
13042
13043 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13044 argument.
13045 (target_terminal_ours_for_output): Add argument.
13046 * target.c (debug_to_terminal_ours_for_output): Add argument.
13047 (update_current_target): Update.
13048 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13049 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13050 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13051
13052 2014-02-19 Tom Tromey <tromey@redhat.com>
13053
13054 * target.h (struct target_ops) <to_terminal_inferior>: Add
13055 argument.
13056 * target.c (target_terminal_inferior): Add argument.
13057 (update_current_target): Update.
13058 * remote.c (remote_terminal_inferior): Add 'self' argument.
13059 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13060 * inflow.c (terminal_inferior): Add 'self' argument.
13061 * inferior.h (terminal_inferior): Add 'self' argument.
13062 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13063 (go32_terminal_inferior): Add 'self' argument.
13064
13065 2014-02-19 Tom Tromey <tromey@redhat.com>
13066
13067 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13068 (target_terminal_init): Add argument.
13069 * target.c (debug_to_terminal_init): Add argument.
13070 (update_current_target): Update.
13071 * inflow.c (terminal_init_inferior): Add 'self' argument.
13072 * inferior.h (terminal_init_inferior): Add 'self' argument.
13073 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13074 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13075
13076 2014-02-19 Tom Tromey <tromey@redhat.com>
13077
13078 * target.h (struct target_ops)
13079 <to_can_accel_watchpoint_condition>: Add argument.
13080 (target_can_accel_watchpoint_condition): Add argument.
13081 * target.c (debug_to_can_accel_watchpoint_condition): Add
13082 argument.
13083 (update_current_target): Update.
13084 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13085 'self' argument.
13086
13087 2014-02-19 Tom Tromey <tromey@redhat.com>
13088
13089 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13090 Add argument.
13091 (target_region_ok_for_hw_watchpoint): Add argument.
13092 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13093 (default_region_ok_for_hw_watchpoint): Add argument.
13094 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13095 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13096 argument.
13097 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13098 argument.
13099 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13100 argument.
13101 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13102 'self' argument.
13103 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13104 'self' argument.
13105 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13106 'self' argument.
13107 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13108 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13109 'self' argument.
13110 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13111 Add 'self' argument.
13112
13113 2014-02-19 Tom Tromey <tromey@redhat.com>
13114
13115 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13116 argument.
13117 (target_insert_watchpoint): Add argument.
13118 * target.c (debug_to_insert_watchpoint): Add argument.
13119 (update_current_target): Update.
13120 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13121 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13122 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13123 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13124 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13125 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13126 argument.
13127 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13128 (procfs_insert_hw_watchpoint): Add 'self' argument.
13129 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13130 argument.
13131 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13132 argument.
13133 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13134 argument.
13135 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13136 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13137 argument.
13138 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13139 'self' argument.
13140
13141 2014-02-19 Tom Tromey <tromey@redhat.com>
13142
13143 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13144 argument.
13145 (target_remove_watchpoint): Add argument.
13146 * target.c (debug_to_remove_watchpoint): Add argument.
13147 (update_current_target): Update.
13148 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13149 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13150 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13151 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13152 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13153 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13154 argument.
13155 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13156 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13157 argument.
13158 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13159 argument.
13160 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13161 argument.
13162 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13163 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13164 argument.
13165 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13166 'self' argument.
13167
13168 2014-02-19 Tom Tromey <tromey@redhat.com>
13169
13170 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13171 argument.
13172 (target_remove_hw_breakpoint): Add argument.
13173 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13174 (update_current_target): Update.
13175 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13176 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13177 argument.
13178 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13179 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13180 argument.
13181 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13182 'self' argument.
13183
13184 2014-02-19 Tom Tromey <tromey@redhat.com>
13185
13186 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13187 argument.
13188 (target_insert_hw_breakpoint): Add argument.
13189 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13190 (update_current_target): Update.
13191 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13192 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13193 argument.
13194 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13195 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13196 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13197 argument.
13198 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13199 'self' argument.
13200
13201 2014-02-19 Tom Tromey <tromey@redhat.com>
13202
13203 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13204 argument.
13205 (target_can_use_hardware_watchpoint): Add argument.
13206 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13207 (update_current_target): Update.
13208 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13209 argument.
13210 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13211 argument.
13212 * remote.c (remote_check_watch_resources): Add 'self' argument.
13213 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13214 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13215 argument.
13216 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13217 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13218 argument.
13219 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13220 argument.
13221 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13222 argument.
13223 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13224 argument.
13225 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13226 argument.
13227 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13228 argument.
13229 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13230 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13231 argument.
13232 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13233 'self' argument.
13234
13235 2014-02-19 Tom Tromey <tromey@redhat.com>
13236
13237 * target.h (struct target_ops) <to_post_attach>: Add argument.
13238 (target_post_attach): Add argument.
13239 * target.c (debug_to_post_attach): Add argument.
13240 (update_current_target): Update.
13241 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13242 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13243 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13244 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13245 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13246
13247 2014-02-19 Tom Tromey <tromey@redhat.com>
13248
13249 * windows-nat.c (windows_close): Add 'self' argument.
13250 * tracepoint.c (tfile_close): Add 'self' argument.
13251 * target.h (struct target_ops) <to_close>: Add argument.
13252 * target.c (target_close): Add argument.
13253 (update_current_target): Update.
13254 * remote.c (remote_close): Add 'self' argument.
13255 * remote-sim.c (gdbsim_close): Add 'self' argument.
13256 * remote-mips.c (mips_close): Add 'self' argument.
13257 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13258 * record-full.c (record_full_close): Add 'self' argument.
13259 * record-btrace.c (record_btrace_close): Add 'self' argument.
13260 * monitor.h (monitor_close): Add 'self' argument.
13261 * monitor.c (monitor_close): Add 'self' argument.
13262 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13263 * linux-nat.c (linux_nat_close): Add argument.
13264 * go32-nat.c (go32_close): Add 'self' argument.
13265 * exec.c (exec_close_1): Add 'self' argument.
13266 * ctf.c (ctf_close): Add 'self' argument.
13267 * corelow.c (core_close): Add 'self' argument.
13268 (core_close_cleanup): Update.
13269 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13270 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13271
13272 2014-02-19 Tom Tromey <tromey@redhat.com>
13273
13274 * remote.c (remote_load): New function.
13275 (init_remote_ops): Use it.
13276
13277 2014-02-19 Tom Tromey <tromey@redhat.com>
13278
13279 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13280 argument.
13281 * common/linux-btrace.h (linux_supports_btrace): Update.
13282 * remote.c (remote_supports_btrace): Add "self" argument.
13283 * target-delegates.c: Rebuild.
13284 * target.c (target_supports_btrace): Remove.
13285 * target.h (struct target_ops) <to_supports_btrace>: Add
13286 target_ops argument.
13287 (target_supports_btrace): New define.
13288
13289 2014-02-19 Tom Tromey <tromey@redhat.com>
13290
13291 * record-full.c (record_full_beneath_to_resume_ops)
13292 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13293 (record_full_beneath_to_wait)
13294 (record_full_beneath_to_store_registers_ops)
13295 (record_full_beneath_to_store_registers)
13296 (record_full_beneath_to_xfer_partial_ops)
13297 (record_full_beneath_to_xfer_partial)
13298 (record_full_beneath_to_insert_breakpoint_ops)
13299 (record_full_beneath_to_insert_breakpoint)
13300 (record_full_beneath_to_remove_breakpoint_ops)
13301 (record_full_beneath_to_remove_breakpoint)
13302 (record_full_beneath_to_stopped_by_watchpoint)
13303 (record_full_beneath_to_stopped_data_address)
13304 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13305 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13306 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13307 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13308 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13309 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13310 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13311 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13312 (record_full_resume, record_full_wait_1)
13313 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13314 (record_full_store_registers, record_full_xfer_partial)
13315 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13316 (record_full_async, record_full_core_xfer_partial): Use target
13317 delegation.
13318 * target-delegates.c: Rebuild.
13319 * target.c (current_xfer_partial): Remove.
13320 (update_current_target): Do not INHERIT or de_fault
13321 to_insert_breakpoint, to_remove_breakpoint,
13322 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13323 to_is_async_p, to_async. Do not set to_xfer_partial field.
13324 (default_xfer_partial): Simplify.
13325 (current_xfer_partial): Remove.
13326 (target_wait, target_resume): Simplify.
13327 (find_default_can_async_p, find_default_is_async_p): Update.
13328 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13329 to_xfer_partial, to_stopped_by_watchpoint,
13330 to_stopped_data_address.
13331 (target_store_registers): Simplify.
13332 (forward_target_remove_breakpoint)
13333 (forward_target_insert_breakpoint): Remove.
13334 (target_remove_breakpoint, target_insert_breakpoint)
13335 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13336 * target.h (struct target_ops) <to_resume, to_wait,
13337 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13338 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13339 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13340 markup.
13341 (forward_target_remove_breakpoint)
13342 (forward_target_insert_breakpoint): Remove.
13343 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13344 directly.
13345 (record_btrace_insert_breakpoint): Delegate directly.
13346
13347 2014-02-19 Tom Tromey <tromey@redhat.com>
13348
13349 PR build/7701:
13350 * target-delegates.c: New file.
13351 * target.c: Include target-delegates.c.
13352 (init_dummy_target): Call install_dummy_methods.
13353 (complete_target_initialization): Call install_delegators.
13354 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13355 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13356 * make-target-delegates: New file.
13357
13358 2014-02-19 Tom Tromey <tromey@redhat.com>
13359
13360 * record.c (find_record_target): Use find_target_at.
13361 * target.c (find_target_at): New function.
13362 * target.h (find_target_at): Declare.
13363
13364 2014-02-19 Tom Tromey <tromey@redhat.com>
13365
13366 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13367 Add 'ops' argument.
13368 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13369 'ops' argument.
13370 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13371 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13372 'ops' argument.
13373 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13374 argument.
13375 * linux-nat.c (save_sigtrap): Update.
13376 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13377 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13378 (linux_nat_close): Update.
13379 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13380 argument.
13381 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13382 argument.
13383 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13384 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13385 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13386 (tmp_to_async): Add 'ops' argument.
13387 (record_full_stopped_by_watchpoint, record_full_async)
13388 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13389 argument.
13390 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13391 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13392 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13393 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13394 (remote_is_async_p, remote_async): Add 'ops' argument.
13395 (remote_stopped_data_address): Update.
13396 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13397 * target.c (update_current_target)
13398 (find_default_can_async_p, find_default_is_async_p): Update.
13399 (init_dummy_target): Update.
13400 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13401 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13402 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13403 (target_can_async_p, target_is_async_p, target_async)
13404 (target_stopped_by_watchpoint): Update.
13405
13406 2014-02-19 Yao Qi <yao@codesourcery.com>
13407
13408 PR gdb/16220
13409 * gdbarch.sh: Remove startup_gdbarch.
13410 * gdbarch.c: Regenerated.
13411 * gdbarch.h: Likewise.
13412
13413 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13414
13415 * rl78-tdep.c (rl78_g10_register_name): New function.
13416 (rl78_return_value): Add g10 support.
13417 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13418 g10.
13419
13420 2014-02-17 Doug Evans <xdje42@gmail.com>
13421
13422 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13423 (SUBDIR_GUILE_SRCS): Ditto.
13424 (scm-gsmob.o): Ditto.
13425
13426 2014-02-17 Yao Qi <yao@codesourcery.com>
13427
13428 * gnu-nat.c (ILL_RPC): Declare defined function.
13429
13430 2014-02-17 Yao Qi <yao@codesourcery.com>
13431
13432 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13433 mach_msg_type_number_t.
13434 (gnu_write_inferior): Likewise.
13435
13436 2014-02-17 Yao Qi <yao@codesourcery.com>
13437
13438 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13439 in format string.
13440 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13441 (inf_validate_procs, inf_signal): Likewise.
13442 (S_exception_raise_request): Likewise.
13443 (do_mach_notify_dead_name): Likewise.
13444 (steal_exc_port): Likewise.
13445 (gnu_read_inferior): Change 'copy_count''s type to
13446 mach_msg_type_number_t.
13447 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13448 format string.
13449
13450 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13451
13452 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13453 flag. Adjust all users; in particular...
13454 (gnu_wait): ..., don't decrement its value in here...
13455 (gnu_create_inferior): ..., and instead set the flag in here,
13456 around the startup_inferior call, and call that one with
13457 START_INFERIOR_TRAPS_EXPECTED.
13458
13459 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13460 (ILL_RPC): ... new macro.
13461 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13462 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13463 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13464 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13465 functions with ILL_RPC macro.
13466 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13467 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13468 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13469 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13470 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13471 (S_proc_getlogin_reply, S_proc_getsid_reply)
13472 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13473 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13474 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13475 (S_proc_getnports_reply, S_proc_is_important_reply)
13476 (S_proc_get_code_reply): New stub functions, generated with
13477 ILL_RPC macro.
13478
13479 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13480 collected the type check structures.
13481
13482 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13483
13484 2014-02-14 Doug Evans <dje@google.com>
13485
13486 * target.c (target_write_partial): Fix result type.
13487
13488 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13489
13490 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13491 the proper offsets to access fpregset_t.
13492
13493 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13494
13495 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13496 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13497 * h8300-tdep.c (setmachinelist): Remove global.
13498 * hppa-tdep.c (hppa_sigtramp): Remove global.
13499 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13500 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13501 * ravenscar-thread.c (update_target_observer): Remove global.
13502 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13503
13504 2014-02-12 Tom Tromey <tromey@redhat.com>
13505
13506 * common/rsp-low.c: Update comments.
13507 * common/rsp-low.h: Update comments.
13508
13509 2014-02-12 Tom Tromey <tromey@redhat.com>
13510
13511 * common/rsp-low.c (convert_ascii_to_int): Remove.
13512 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13513
13514 2014-02-12 Tom Tromey <tromey@redhat.com>
13515
13516 * common/rsp-low.h (unhexify): Don't declare.
13517 * common/rsp-low.c (unhexify): Remove.
13518
13519 2014-02-12 Tom Tromey <tromey@redhat.com>
13520
13521 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13522 * common/rsp-low.c (convert_int_to_ascii): Remove.
13523
13524 2014-02-12 Tom Tromey <tromey@redhat.com>
13525
13526 * common/rsp-low.h (hexify): Don't declare.
13527 * common/rsp-low.c (hexify): Remove.
13528
13529 2014-02-12 Tom Tromey <tromey@redhat.com>
13530
13531 * common/rsp-low.c (hexify): Never take strlen of argument.
13532
13533 2014-02-12 Tom Tromey <tromey@redhat.com>
13534
13535 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13536 * remote.c (extended_remote_run, remote_rcmd)
13537 (remote_download_trace_state_variable, remote_save_trace_data)
13538 (remote_set_trace_notes): Update.
13539 * tracepoint.c (encode_source_string, tfile_write_status)
13540 (tfile_write_uploaded_tsv): Update.
13541
13542 2014-02-12 Tom Tromey <tromey@redhat.com>
13543
13544 * tracepoint.c: Include rsp-low.h.
13545 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13546 * remote.c: Include rsp-low.h.
13547 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13548 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13549 (remote_unescape_input): Move to common/rsp-low.c.
13550 * common/rsp-low.h: New file.
13551 * common/rsp-low.c: New file.
13552 * Makefile.in (SFILES): Add common/rsp-low.c.
13553 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13554 (COMMON_OBS): Add rsp-low.o.
13555 (rsp-low.o): New target.
13556
13557 2014-02-12 Tom Tromey <tromey@redhat.com>
13558
13559 * utils.h: Include print-utils.h.
13560 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13561 (int_string, core_addr_to_string, core_addr_to_string_nz)
13562 (hex_string, hex_string_custom): Don't declare.
13563 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13564 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13565 (hex_string_custom, int_string, core_addr_to_string)
13566 (core_addr_to_string_nz, host_address_to_string): Move to
13567 common/print-utils.c.
13568 * common/print-utils.h: New file.
13569 * common/print-utils.c: New file
13570 * Makefile.in (SFILES): Add common/print-utils.c.
13571 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13572 (COMMON_OBS): Add print-utils.o.
13573 (print-utils.o): New target.
13574
13575 2014-02-12 Tom Tromey <tromey@redhat.com>
13576
13577 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13578
13579 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13580
13581 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13582
13583 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13584
13585 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13586 if a PT_IO ptrace request returns sucessfully but indicates that 0
13587 bytes were transferred.
13588
13589 2014-02-12 Pedro Alves <palves@redhat.com>
13590 Kevin Buettner <kevinb@redhat.com>
13591
13592 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13593 TYPE_INSTANCE_FLAG_CODE_SPACE.
13594
13595 2014-02-12 Pedro Alves <palves@redhat.com>
13596
13597 * h8300-tdep.c (pseudo_from_raw_register)
13598 (raw_from_pseudo_register): New functions.
13599 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13600 them.
13601
13602 2014-02-12 Pedro Alves <palves@redhat.com>
13603
13604 * h8300-tdep.c (h8300_register_sim_regno): New function.
13605 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13606 gdbarch_register_sim_regno hook.
13607
13608 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13609
13610 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13611
13612 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13613
13614 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13615
13616 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13617
13618 * obsd-tdep.h (obsd_init_abi): New prototype.
13619 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13620 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13621 (obsd_init_abi): New functions.
13622 * i386obsd-tdep.c: Include "obsd-tdep.h".
13623 (i386obsd_init_abi): Call obsd_init_abi.
13624 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13625 (amd64obsd_init_abi): Call obsd_init_abi.
13626 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13627 obsd-tdep.c to gdb_target_obs.
13628
13629 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13630
13631 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13632 double float arguments to 16-byte in the argument slots.
13633
13634 2014-02-11 Doug Evans <xdje42@gmail.com>
13635
13636 * configure.ac: Don't crash if pkg-config is not found and guile
13637 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13638 in guile checks.
13639 * configure: Regenerate.
13640
13641 2014-02-11 Yao Qi <yao@codesourcery.com>
13642
13643 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13644 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13645 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13646 * gnu-nat.c (gnu_xfer_memory): Likewise.
13647 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13648 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13649 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13650 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13651
13652 2014-02-11 Yao Qi <yao@codesourcery.com>
13653
13654 * target.h (enum target_xfer_error): Rename to ...
13655 (enum target_xfer_status): ... it. New. All users updated.
13656 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13657 New.
13658 (TARGET_XFER_STATUS_ERROR_P): New macro.
13659 (target_xfer_error_to_string): Remove declaration.
13660 (target_xfer_status_to_string): Declare.
13661 (target_xfer_partial_ftype): Adjust it.
13662 (struct target_ops) <to_xfer_partial>: Return
13663 target_xfer_status. Add argument xfered_len. Update
13664 comments.
13665 * target.c (target_xfer_error_to_string): Rename to ...
13666 (target_xfer_status_to_string): ... it. New. All callers
13667 updated.
13668 (target_read_live_memory): Likewise. Call target_xfer_partial
13669 instead of target_read.
13670 (memory_xfer_live_readonly_partial): Return
13671 target_xfer_status. Add argument xfered_len.
13672 (raw_memory_xfer_partial): Likewise.
13673 (memory_xfer_partial_1): Likewise.
13674 (memory_xfer_partial): Likewise.
13675 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13676 properly. Update debug message.
13677 (default_xfer_partial, current_xfer_partial): Likewise.
13678 (target_write_partial): Likewise.
13679 (target_read_partial): Likewise. All callers updated.
13680 (read_whatever_is_readable): Likewise.
13681 (target_write_with_progress): Likewise.
13682 (target_read_alloc_1): Likewise.
13683
13684 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13685 * auxv.c (procfs_xfer_auxv): Likewise.
13686 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13687 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13688 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13689 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13690 * corefile.c (read_memory): Adjust.
13691 * corelow.c (core_xfer_partial): Likewise.
13692 * ctf.c (ctf_xfer_partial): Likewise.
13693 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13694 updated.
13695 (darwin_xfer_partial): Likewise.
13696 * exec.c (section_table_xfer_memory_partial): Likewise. All
13697 callers updated.
13698 (exec_xfer_partial): Likewise.
13699 * exec.h (section_table_xfer_memory_partial): Update
13700 declaration.
13701 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13702 negative.
13703 (gnu_xfer_partial): Likewise.
13704 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13705 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13706 (ia64_hpux_xfer_solib_got): Likewise.
13707 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13708 type of 'partial_len' to ULONGEST.
13709 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13710 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13711 (linux_nat_xfer_partial): Likewise.
13712 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13713 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13714 * monitor.c (monitor_xfer_memory): Likewise.
13715 (monitor_xfer_partial): Likewise.
13716 * procfs.c (procfs_xfer_partial): Likewise.
13717 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13718 * record-full.c (record_full_xfer_partial): Likewise.
13719 (record_full_core_xfer_partial): Likewise.
13720 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13721 (gdbsim_xfer_partial): Likewise.
13722 * remote.c (remote_write_bytes_aux): Likewise. All callers
13723 updated.
13724 (remote_write_bytes, remote_read_bytes): Likewise. All
13725 callers updated.
13726 (remote_flash_erase): Likewise. All callers updated.
13727 (remote_write_qxfer): Likewise. All callers updated.
13728 (remote_read_qxfer): Likewise. All callers updated.
13729 (remote_xfer_partial): Likewise.
13730 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13731 (rs6000_xfer_shared_libraries): Likewise.
13732 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13733 (sol_thread_xfer_partial): Likewise.
13734 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13735 (sparc_xfer_partial): Likewise.
13736 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13737 updated.
13738 (spu_xfer_partial): Likewise.
13739 * spu-multiarch.c (spu_xfer_partial): Likewise.
13740 * tracepoint.c (tfile_xfer_partial): Likewise.
13741 * windows-nat.c (windows_xfer_memory): Likewise.
13742 (windows_xfer_shared_libraries): Likewise.
13743 (windows_xfer_partial): Likewise.
13744 * valprint.c: Replace 'target_xfer_error' with
13745 'target_xfer_status' in comments.
13746
13747 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13748
13749 Checked in by Joel Brobecker <brobecker@adacore.com>.
13750 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13751
13752 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13753
13754 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13755 function parameters.
13756
13757 2014-02-10 Will Newton <will.newton@linaro.org>
13758
13759 * elfread.c (elf_rel_plt_read): Look for a .got section if
13760 looking up .got.plt fails.
13761 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13762 on address passed to elf_gnu_ifunc_record_cache.
13763 (elf_gnu_ifunc_resolve_addr): Likewise.
13764 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13765
13766 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13767
13768 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13769 (X_RETTURN): New macro.
13770 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13771
13772 * sparc64-tdep.c (sparc64_init_abi): Hook
13773 sparc_in_function_epilogue_p.
13774
13775 2014-02-10 Gary Benson <gbenson@redhat.com>
13776
13777 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13778 Rename name_matcher to symbol_matcher.
13779
13780 2014-02-10 Gary Benson <gbenson@redhat.com>
13781
13782 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13783 Use expand_symtabs_file_matcher_ftype and
13784 expand_symtabs_symbol_matcher_ftype.
13785
13786 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13787
13788 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13789 (struct ada_symbol_cache): New.
13790 (ada_free_symbol_cache): Forward declare.
13791 (struct ada_pspace_data): New.
13792 (ada_pspace_data_handle): New static global.
13793 (get_ada_pspace_data, ada_pspace_data_cleanup)
13794 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13795 (cache_space, cache): Delete, now folded inside struct
13796 ada_pspace_data.
13797 (ada_get_symbol_cache): New function.
13798 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13799 implementation.
13800 (_initialize_ada_language): Remove initialization of cache_space.
13801 Move call to observer_attach_inferior_exit up, grouping it
13802 with the other observer registrations inside this function.
13803 Rename command to be more general. Add call to
13804 register_program_space_data_with_cleanup.
13805
13806 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13807
13808 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13809 ada_new_objfile_observer.
13810 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13811 (_initialize_tasks): Update uses of ada_new_objfile_observer
13812 and ada_tasks_normal_stop_observer.
13813
13814 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13815
13816 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13817 returned by the 'Length attribute to integer.
13818
13819 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13820
13821 * ada-lang.c (_initialize_ada_language): Initialize
13822 cache_space obstack.
13823
13824 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13825
13826 * ada-lang.c (HASH_SIZE): New macro.
13827 (struct cache_entry): New type.
13828 (cache_space, cache): New static globals.
13829 (ada_clear_symbol_cache, find_entry): New functions.
13830 (lookup_cached_symbol, cache_symbol): Implement.
13831 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13832 (_initialize_ada_language): Attach ada_new_objfile_observer
13833 and ada_free_objfile_observer.
13834
13835 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13836
13837 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13838 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13839 struct block * parameter.
13840 (ada_lookup_symbol_list_worker): Constify local variable "block".
13841 Remove cast which is no longer necessary.
13842
13843 2014-02-10 Doug Evans <xdje42@gmail.com>
13844
13845 Add Guile as an extension language.
13846 * NEWS: Mention Guile scripting.
13847 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13848 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13849 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13850 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13851 (CLIBS): Add GUILE_LIBS.
13852 (install-guile): New rule.
13853 (guile.o): New rule.
13854 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13855 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13856 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13857 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13858 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13859 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13860 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13861 * configure.ac: New option --with-guile.
13862 * configure: Regenerate.
13863 * config.in: Regenerate.
13864 * auto-load.c: Remove #include "python/python.h". Add #include
13865 "gdb/section-scripts.h".
13866 (source_section_scripts): Handle Guile scripts.
13867 (_initialize_auto_load): Add name of Guile objfile script to
13868 scripts-directory help text.
13869 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13870 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13871 (struct breakpoint): New member scm_bp_object.
13872 * defs.h (enum command_control_type): New value guile_control.
13873 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13874 "extension.h".
13875 (show_user): Update comment.
13876 (_initialize_cli_cmds): Update help text for "show user". Update help
13877 text for max-user-call-depth.
13878 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13879 "extension.h".
13880 (multi_line_command_p): Add guile_control.
13881 (print_command_lines): Handle guile_control.
13882 (execute_control_command, recurse_read_control_structure): Ditto.
13883 (process_next_line): Recognize "guile" commands.
13884 * disasm.c (gdb_disassemble_info): Make non-static.
13885 * disasm.h: #include "dis-asm.h".
13886 (struct gdbarch): Add forward decl.
13887 (gdb_disassemble_info): Declare.
13888 * extension.c: #include "guile/guile.h".
13889 (extension_languages): Add guile.
13890 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13891 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13892 * gdbtypes.c (get_unsigned_type_max): New function.
13893 (get_signed_type_minmax): New function.
13894 * gdbtypes.h (get_unsigned_type_max): Declare.
13895 (get_signed_type_minmax): Declare.
13896 * guile/README: New file.
13897 * guile/guile-internal.h: New file.
13898 * guile/guile.c: New file.
13899 * guile/guile.h: New file.
13900 * guile/scm-arch.c: New file.
13901 * guile/scm-auto-load.c: New file.
13902 * guile/scm-block.c: New file.
13903 * guile/scm-breakpoint.c: New file.
13904 * guile/scm-disasm.c: New file.
13905 * guile/scm-exception.c: New file.
13906 * guile/scm-frame.c: New file.
13907 * guile/scm-gsmob.c: New file.
13908 * guile/scm-iterator.c: New file.
13909 * guile/scm-lazy-string.c: New file.
13910 * guile/scm-math.c: New file.
13911 * guile/scm-objfile.c: New file.
13912 * guile/scm-ports.c: New file.
13913 * guile/scm-pretty-print.c: New file.
13914 * guile/scm-safe-call.c: New file.
13915 * guile/scm-string.c: New file.
13916 * guile/scm-symbol.c: New file.
13917 * guile/scm-symtab.c: New file.
13918 * guile/scm-type.c: New file.
13919 * guile/scm-utils.c: New file.
13920 * guile/scm-value.c: New file.
13921 * guile/lib/gdb.scm: New file.
13922 * guile/lib/gdb/boot.scm: New file.
13923 * guile/lib/gdb/experimental.scm: New file.
13924 * guile/lib/gdb/init.scm: New file.
13925 * guile/lib/gdb/iterator.scm: New file.
13926 * guile/lib/gdb/printing.scm: New file.
13927 * guile/lib/gdb/types.scm: New file.
13928 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13929 (VPATH): Add $(GUILE_SRCDIR).
13930 (GUILE_DIR): New variable.
13931 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13932 (all): Add stamp-guile dependency.
13933 (stamp-guile): New rule.
13934 (clean-guile, install-guile, uninstall-guile): New rules.
13935 (install-only): Add install-guile dependency.
13936 (uninstall): Add uninstall-guile dependency.
13937 (clean): Add clean-guile dependency.
13938
13939 2014-02-09 Doug Evans <xdje42@gmail.com>
13940
13941 Revert this patch (which I approved, mea culpa).
13942
13943 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13944
13945 * Makefile.in (all-lib): Remove.
13946 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13947
13948 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13949
13950 Fix Python stack corruption.
13951 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13952 gdb_py_longest.
13953
13954 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13955
13956 * Makefile.in (all-lib): Remove.
13957 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13958
13959 2014-02-07 Doug Evans <dje@google.com>
13960
13961 * extension-priv.h (extension_language_script_ops): Add comment.
13962 (extension_language_ops): Add comment.
13963 (active_ext_lang_state): Fix typo in comment.
13964
13965 2014-02-07 Pedro Alves <palves@redhat.com>
13966
13967 PR breakpoints/16292
13968 * infrun.c (handle_signal_stop) <signal arrives while stepping
13969 over a breakpoint>: Switch back to the stepping thread.
13970
13971 2014-02-07 Yao Qi <yao@codesourcery.com>
13972
13973 * target.c (target_xfer_partial): Return zero if LEN is zero.
13974
13975 2014-02-07 Yao Qi <yao@codesourcery.com>
13976
13977 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13978 (ld_so_xfer_auxv): Likewise.
13979 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13980 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13981 * corelow.c (core_xfer_partial): Likewise.
13982 * ctf.c (ctf_xfer_partial): Likewise.
13983 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13984 (darwin_xfer_partial): Likewise.
13985 * exec.c (exec_xfer_partial): Likewise.
13986 * gnu-nat.c (gnu_xfer_partial): Likewise.
13987 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13988 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13989 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13990 * linux-nat.c (linux_xfer_siginfo): Likewise.
13991 (linux_proc_xfer_spu): Likewise.
13992 * procfs.c (procfs_xfer_partial): Likewise.
13993 * record-full.c (record_full_xfer_partial): Likewise.
13994 (record_full_core_xfer_partial): Likewise.
13995 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13996 * remote.c (remote_write_qxfer): Likewise.
13997 (remote_write_qxfer, remote_read_qxfer): Likewise.
13998 (remote_xfer_partial): Likewise.
13999 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14000 (rs6000_xfer_shared_libraries): Likewise.
14001 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14002 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14003 (spu_xfer_partial): Likewise.
14004 * target.c (memory_xfer_partial_1): Likewise.
14005 * tracepoint.c (tfile_xfer_partial): Likewise.
14006 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14007 (windows_xfer_partial): Likewise.
14008
14009 2014-02-07 Yao Qi <yao@codesourcery.com>
14010
14011 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14012 comments.
14013 (core_xfer_shared_libraries_aix): Likewise.
14014 * gdbarch.c, gdbarch.h: Regenerated.
14015 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14016 ULONGEST. Change 'len_avail' type to ULONGEST.
14017 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14018 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14019 declaration.
14020 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14021
14022 2014-02-07 Yao Qi <yao@codesourcery.com>
14023
14024 * corefile.c (memory_error): Get 'exception' from ERR and pass
14025 'exception' to throw_error.
14026
14027 2014-02-06 Doug Evans <xdje42@gmail.com>
14028
14029 * configure.ac (libpython checking): Remove all but python.o from
14030 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14031 * configure: Regenerate.
14032
14033 * Makefile.in (SFILES): Add extension.c.
14034 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14035 (COMMON_OBS): Add extension.o.
14036 * extension.h: New file.
14037 * extension-priv.h: New file.
14038 * extension.c: New file.
14039
14040 * python/python-internal.h: #include "extension.h".
14041 (gdbpy_auto_load_enabled): Declare.
14042 (gdbpy_apply_val_pretty_printer): Declare.
14043 (gdbpy_apply_frame_filter): Declare.
14044 (gdbpy_preserve_values): Declare.
14045 (gdbpy_breakpoint_cond_says_stop): Declare.
14046 (gdbpy_breakpoint_has_cond): Declare.
14047 (void source_python_script_for_objfile): Delete.
14048 * python/python.c: #include "extension-priv.h".
14049 Delete inclusion of "observer.h".
14050 (extension_language_python): Moved here and renamed from
14051 script_language_python in py-auto-load.c.
14052 Redefined to be of type extension_language_defn.
14053 (python_extension_script_ops): New global.
14054 (python_extension_ops): New global.
14055 (struct python_env): New member previous_active.
14056 (restore_python_env): Call restore_active_ext_lang.
14057 (ensure_python_env): Call set_active_ext_lang.
14058 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14059 New arg extlang.
14060 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14061 New arg extlang.
14062 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14063 New arg extlang.
14064 (gdbpy_eval_from_control_command): Renamed from
14065 eval_python_from_control_command, made static. New arg extlang.
14066 (gdbpy_source_script) Renamed from source_python_script, made static.
14067 New arg extlang.
14068 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14069 result to int. New arg extlang.
14070 (gdbpy_source_objfile_script): Renamed from
14071 source_python_script_for_objfile, made static. New arg extlang.
14072 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14073 static. New args extlang, extlang_printers. Change result type to
14074 "void".
14075 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14076 static. New arg extlang. Rename arg printers to extlang_printers
14077 and change type to ext_lang_type_printers *.
14078 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14079 static. Replace argument arg with extlang, extlang_printers.
14080 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14081 (!HAVE_PYTHON, source_python_script): Delete.
14082 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14083 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14084 (!HAVE_PYTHON, start_type_printers): Delete.
14085 (!HAVE_PYTHON, apply_type_printers): Delete.
14086 (!HAVE_PYTHON, free_type_printers): Delete.
14087 (_initialize_python): Delete call to observer_attach_before_prompt.
14088 (finalize_python): Set/restore active extension language.
14089 (gdbpy_finish_initialization) Renamed from
14090 finish_python_initialization, made static. New arg extlang.
14091 (gdbpy_initialized): New function.
14092 * python/python.h: #include "extension.h". Delete #include
14093 "value.h", "mi/mi-cmds.h".
14094 (extension_language_python): Declare.
14095 (GDBPY_AUTO_FILE_NAME): Delete.
14096 (enum py_bt_status): Moved to extension.h and renamed to
14097 ext_lang_bt_status.
14098 (enum frame_filter_flags): Moved to extension.h.
14099 (enum py_frame_args): Moved to extension.h and renamed to
14100 ext_lang_frame_args.
14101 (finish_python_initialization): Delete.
14102 (eval_python_from_control_command): Delete.
14103 (source_python_script): Delete.
14104 (apply_val_pretty_printer): Delete.
14105 (apply_frame_filter): Delete.
14106 (preserve_python_values): Delete.
14107 (gdbpy_script_language_defn): Delete.
14108 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14109 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14110
14111 * auto-load.c: #include "extension.h".
14112 (GDB_AUTO_FILE_NAME): Delete.
14113 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14114 (script_language_gdb): Delete, moved to extension.c and renamed to
14115 extension_language_gdb.
14116 (source_gdb_script_for_objfile): Delete.
14117 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14118 (loaded_script): Change type of language member to
14119 struct extension_language_defn *.
14120 (init_loaded_scripts_info): Initialize
14121 unsupported_script_warning_printed.
14122 (maybe_add_script): Make static. Change type of language arg to
14123 struct extension_language_defn *.
14124 (clear_section_scripts): Reset unsupported_script_warning_printed.
14125 (auto_load_objfile_script_1): Rewrite to use extension language API.
14126 (auto_load_objfile_script): Make public. Remove support-compiled-in
14127 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14128 (source_section_scripts): Rewrite to use extension language API.
14129 (load_auto_scripts_for_objfile): Rewrite to use
14130 auto_load_scripts_for_objfile.
14131 (collect_matching_scripts_data): Change type of language member to
14132 struct extension_language_defn *.
14133 (auto_load_info_scripts): Change type of language arg to
14134 struct extension_language_defn *.
14135 (unsupported_script_warning_print): New function.
14136 (script_not_found_warning_print): Make static.
14137 (_initialize_auto_load): Rewrite construction of scripts-directory
14138 help.
14139 * auto-load.h (struct objfile): Add forward decl.
14140 (struct script_language): Delete.
14141 (struct auto_load_pspace_info): Add forward decl.
14142 (struct extension_language_defn): Add forward decl.
14143 (maybe_add_script): Delete.
14144 (auto_load_objfile_script): Declare.
14145 (script_not_found_warning_print): Delete.
14146 (auto_load_info_scripts): Update prototype.
14147 (auto_load_gdb_scripts_enabled): Declare.
14148 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14149 auto_load_python_scripts_enabled and made public.
14150 (script_language_python): Delete, moved to python.c.
14151 (gdbpy_script_language_defn): Delete.
14152 (info_auto_load_python_scripts): Update to use
14153 extension_language_python.
14154
14155 * breakpoint.c (condition_command): Replace call to
14156 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14157 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14158 with call to breakpoint_ext_lang_cond_says_stop.
14159 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14160 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14161 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14162 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14163 New arg slang.
14164 (local_setattro): Print name of extension language with existing
14165 stop condition.
14166
14167 * valprint.c (val_print, value_print): Update to call
14168 apply_ext_lang_val_pretty_printer.
14169 * cp-valprint.c (cp_print_value): Update call to
14170 apply_ext_lang_val_pretty_printer.
14171 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14172 (gdbpy_apply_val_pretty_printer): Renamed from
14173 apply_val_pretty_printer. New arg extlang.
14174 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14175
14176 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14177 extension language API.
14178 * cli/cli-script.c (execute_control_command): Update to call
14179 eval_ext_lang_from_control_command.
14180
14181 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14182 enum ext_lang_bt_status values. Update call to
14183 apply_ext_lang_frame_filter.
14184 (mi_cmd_stack_list_locals): Ditto.
14185 (mi_cmd_stack_list_args): Ditto.
14186 (mi_cmd_stack_list_variables): Ditto.
14187 * mi/mi-main.c: Delete #include "python/python-internal.h".
14188 Add #include "extension.h".
14189 (mi_cmd_list_features): Replace reference to python internal variable
14190 gdb_python_initialized with call to ext_lang_initialized_p.
14191
14192 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14193 Update to use enum ext_lang_frame_args. Update to call
14194 apply_ext_lang_frame_filter.
14195 * python/py-framefilter.c (extract_sym): Update to use enum
14196 ext_lang_bt_status.
14197 (extract_value, py_print_type, py_print_value): Ditto.
14198 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14199 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14200 (py_print_frame): Ditto.
14201 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14202 New arg extlang. Update to use enum ext_lang_bt_status.
14203
14204 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14205 finish_python_initialization. Replace with call to
14206 finish_ext_lang_initialization.
14207
14208 * typeprint.c (do_free_global_table): Update to call
14209 free_ext_lang_type_printers.
14210 (create_global_typedef_table): Update to call
14211 start_ext_lang_type_printers.
14212 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14213 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14214 (type_print_options): Change type of global_printers from "void *"
14215 to "struct ext_lang_type_printers *".
14216
14217 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14218 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14219 (gdbpy_preserve_values): Renamed from preserve_python_values.
14220 New arg extlang.
14221 (!HAVE_PYTHON, preserve_python_values): Delete.
14222
14223 * utils.c (quit_flag): Delete, moved to extension.c.
14224 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14225 extension.c.
14226
14227 * eval.c: Delete #include "python/python.h".
14228 * main.c: Delete #include "python/python.h".
14229
14230 * defs.h: Update comment.
14231
14232 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14233
14234 GDB 7.7 released.
14235
14236 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14237
14238 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14239 defined.
14240
14241 2014-02-05 Yao Qi <yao@codesourcery.com>
14242
14243 * remote.c (remote_pass_signals): Remove local 'buf' and use
14244 rs->buf.
14245 (remote_program_signals): Likewise.
14246
14247 2014-02-05 Yao Qi <yao@codesourcery.com>
14248
14249 * ctf.c: Include "inferior.h" and "gdbthread.h".
14250 (CTF_PID): A new macro.
14251 (ctf_open): Call inferior_appeared and add_thread_silent.
14252 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14253 (ctf_thread_alive): New function.
14254 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14255
14256 2014-02-05 Yao Qi <yao@codesourcery.com>
14257
14258 Revert this patch:
14259
14260 2013-05-24 Yao Qi <yao@codesourcery.com>
14261
14262 * tracepoint.c (TFILE_PID): Remove.
14263 (tfile_open): Don't add thread and inferior.
14264 (tfile_close): Don't set 'inferior_ptid'. Don't call
14265 exit_inferior_silent.
14266 (tfile_thread_alive): Remove.
14267 (init_tfile_ops): Don't set field 'to_thread_alive' of
14268 tfile_ops.
14269
14270 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14271
14272 * remote.c (remote_start_remote): Call remote_check_symbols even
14273 if only symbol-file (not file) has been given.
14274
14275 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14276
14277 * gdbarch.sh (skip_entrypoint): New callback.
14278 * gdbarch.c, gdbarch.h: Regenerate.
14279 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14280 * infrun.c (fill_in_stop_func): Likewise.
14281 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14282 (ppc_elfv2_elf_make_msymbol_special): New function.
14283 (ppc_elfv2_skip_entrypoint): Likewise.
14284 (ppc_linux_init_abi): Install them for ELFv2.
14285
14286 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14287
14288 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14289 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14290 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14291 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14292 structures returned in GPRs.
14293
14294 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14295
14296 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14297 offset to the stack parameter list for the ELFv2 ABI.
14298
14299 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14300
14301 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14302 set_gdbarch_convert_from_func_ptr_addr and
14303 set_gdbarch_elf_make_msymbol_special for ELFv1.
14304 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14305 function descriptors on ELFv1.
14306 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14307 set up r12 at function entry.
14308
14309 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14310
14311 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14312 (struct gdbarch_tdep): New member elf_abi.
14313
14314 * rs6000-tdep.c: Include "elf/ppc64.h".
14315 (rs6000_gdbarch_init): Detect ELF ABI version.
14316
14317 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14318
14319 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14320 within a register pair holding a DFP 128-bit value on little-endian.
14321 (ppc64_sysv_abi_return_value_base): Likewise.
14322 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14323 (dfp_pseudo_register_write): Likewise.
14324
14325 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14326
14327 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14328 offset on little-endian when passing _Decimal32.
14329 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14330
14331 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14332
14333 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14334 of the overlapped FP register within the VSX register on little-
14335 endian platforms.
14336 (efpr_pseudo_register_write): Likewise.
14337
14338 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14339
14340 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14341 offset on little-endian when passing small structures.
14342
14343 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14344
14345 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14346 (struct ppc64_sysv_argpos): New data structure.
14347 (ppc64_sysv_abi_push_float): Remove.
14348 (ppc64_sysv_abi_push_val): New function.
14349 (ppc64_sysv_abi_push_integer): Likewise.
14350 (ppc64_sysv_abi_push_freg): Likewise.
14351 (ppc64_sysv_abi_push_vreg): Likewise.
14352 (ppc64_sysv_abi_push_param): Likewise.
14353 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14354 (ppc64_sysv_abi_return_value_base): New function.
14355 (ppc64_sysv_abi_return_value): Refactor to use it.
14356
14357 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14358
14359 * NEWS: Document new target powerpc64le-*-linux*.
14360
14361 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14362
14363 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14364 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14365 core dumps.
14366 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14367 register set used in ELF core dumps. Add floating-point register set.
14368
14369 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14370
14371 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14372 dwarf2_to_gdb[] table using symbolic constants. Adjust
14373 penultimate entry from number representing the PC register
14374 to symbolic constant representing the MDR register. Add
14375 constant for the PC register to the end of the table.
14376
14377 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14378
14379 * bsd-kvm.c: Include <sys/param.h>
14380
14381 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14382
14383 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14384
14385 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14386
14387 * ada-lang.h (clear_ada_sym_cache): Delete.
14388
14389 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14390
14391 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14392
14393 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14394
14395 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14396 the sigreturn register save area only if the syscall is
14397 sigreturn.
14398
14399 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14400
14401 * valops.c (value_slice): Minor reformatting.
14402
14403 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14404
14405 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14406
14407 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14408
14409 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14410 New static globals.
14411 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14412 (ada_ignore_descriptive_types_p): New static global.
14413 (find_parallel_type_by_descriptive_type): Return immediately
14414 if ada_ignore_descriptive_types_p is set.
14415 (_initialize_ada_language): Register new commands "maintenance
14416 set ada", "maintenance show ada", "maintenance set ada
14417 ignore-descriptive-types" and "maintenance show ada
14418 ignore-descriptive-types".
14419 * NEWS: Add entry for new "maint ada set/show
14420 ignore-descriptive-types" commands.
14421
14422 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14423
14424 * record-btrace.c (record_btrace_close): Call btrace_teardown
14425 for all threads.
14426
14427 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14428
14429 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14430 "ui-out.h".
14431
14432 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14433
14434 * ada-typeprint (type_is_full_subrange_of_target_type):
14435 New function.
14436 (print_range): Add parameter bounds_prefered_p. If not set,
14437 try printing range types using the name of their base type.
14438 (print_range_type): Add parameter bounds_prefered_p.
14439 Use it in call to print_range.
14440 (print_array_type, ada_print_type): Update calls to print_range
14441 and print_range_type.
14442
14443 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14444
14445 * ada-typeprint.c (print_array_type, print_choices, print_range)
14446 (print_range_bound, print_dynamic_range_bound, print_range_type):
14447 Remove declaration.
14448
14449 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14450
14451 * ada-typeprint.c (print_range): Add missing empty line
14452 after local declaration.
14453
14454 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14455
14456 * ada-valprint.c (print_optional_low_bound): Get index_type's
14457 target type for as long as it is a TYPE_CODE_RANGE.
14458
14459 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14460
14461 * procfs.c (procfs_make_note_section): Remove assertion and
14462 associated comment.
14463
14464 2014-01-24 Yao Qi <yao@codesourcery.com>
14465
14466 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14467 * corelow.c (get_core_siginfo): Likewise.
14468
14469 2014-01-24 Yao Qi <yao@codesourcery.com>
14470
14471 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14472 ULONGEST. Don't check 'len' is negative.
14473 (remote_write_bytes): Change type of 'len' to ULONGEST.
14474
14475 2014-01-23 Tom Tromey <tromey@redhat.com>
14476
14477 PR python/16485:
14478 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14479 Handle exception from frame.block.
14480 (FrameVars.fetch_frame_locals): Likewise.
14481
14482 2014-01-23 Tom Tromey <tromey@redhat.com>
14483
14484 PR python/16487:
14485 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14486 on a NULL pointer. Move "goto error" to correct place.
14487
14488 2014-01-23 Tom Tromey <tromey@redhat.com>
14489
14490 PR python/16491:
14491 * python/py-framefilter.c (apply_frame_filter): Call
14492 ensure_python_env after computing gdbarch.
14493
14494 2014-01-23 Yao Qi <yao@codesourcery.com>
14495
14496 * target.c (raw_memory_xfer_partial): Change argument type
14497 from void * to gdb_byte *.
14498 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14499
14500 2014-01-22 Doug Evans <dje@google.com>
14501
14502 New gdbserver option --debug-format=timestamp.
14503 * NEWS: Mention it.
14504
14505 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14506
14507 * syscalls/s390x-linux.xml: New file.
14508 * syscalls/s390-linux.xml: New file.
14509 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14510 (XML_SYSCALL_FILENAME_S390X): Likewise.
14511 (op_svc): New enum value for SVC opcode.
14512 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14513 (s390_linux_get_syscall_number): New function.
14514 (s390_gdbarch_init): Register '*get_syscall_number' and the
14515 syscall xml file name.
14516 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14517 "s390-linux.xml" and "s390x-linux.xml".
14518 * NEWS: Announce new feature.
14519
14520 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14521
14522 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14523
14524 2014-01-22 Pedro Alves <palves@redhat.com>
14525
14526 * xtensa-config.c: Include defs.h.
14527
14528 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14529
14530 * common/common-utils.h: Add "ARI:" comment beside __func__
14531 reference.
14532
14533 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14534
14535 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14536 documentation a bit.
14537
14538 2014-01-21 Roland McGrath <mcgrathr@google.com>
14539
14540 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14541 * configure: Regenerate.
14542 * aclocal.m4: Regenerate.
14543 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14544 New substituted variables.
14545 (install-strip): New target.
14546 (INSTALL_SCRIPT): New substituted variable.
14547 (FLAGS_TO_PASS): Add it.
14548 (install-only): Use $(INSTALL_SCRIPT) rather than
14549 $(INSTALL_PROGRAM) for gcore.
14550
14551 2014-01-20 Tom Tromey <tromey@redhat.com>
14552
14553 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14554 together.
14555
14556 2014-01-20 Tom Tromey <tromey@redhat.com>
14557
14558 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14559 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14560 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14561 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14562 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14563 (struct cmd_list_element) <flags>: Remove.
14564 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14565 doc_allocated>: New fields.
14566 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14567 bitfields.
14568 * maint.c (maintenance_do_deprecate): Update.
14569 * top.c (execute_command): Update.
14570
14571 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14572
14573 * xtensa-linux-nat.c: Include asm/ptrace.h.
14574
14575 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14576
14577 * Makefile.in (SFILES): Add d-support.c.
14578 (COMMON_OBS): Add d-support.o.
14579 * d-lang.h (d_parse_symbol): Add comment, now defined in
14580 d-support.c.
14581 * d-lang.c (parse_call_convention)
14582 (parse_attributes, parse_function_types)
14583 (parse_function_args, parse_type, parse_identifier)
14584 (call_convention_p, d_parse_symbol): Move functions to ...
14585 * d-support.c: ... New file.
14586
14587 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14588
14589 * d-lang.h (d_parse_symbol): Add declaration.
14590 * d-lang.c (extract_identifiers)
14591 (extract_type_info): Remove functions.
14592 (parse_call_convention, parse_attributes)
14593 (parse_function_types, parse_function_args)
14594 (parse_type, parse_identifier, call_convention_p)
14595 (d_parse_symbol): New functions.
14596 (d_demangle): Use d_parse_symbol to demangle D symbols.
14597
14598 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14599
14600 * d-lang.h (struct builtin_d_type): New data type.
14601 (builtin_d_type): Add declaration.
14602 * d-lang.c (d_language_arch_info, build_d_types)
14603 (builtin_d_type): New functions.
14604 (enum d_primitive_types): New data type.
14605 (d_language_defn): Change c_language_arch_info to
14606 d_language_arch_info.
14607 (d_type_data): New static variable.
14608 (_initialize_d_language): Initialize d_type_data.
14609
14610 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14611
14612 * d-lang.h (d_main_name): Add declaration.
14613 * d-lang.c (d_main_name): New function.
14614 * symtab.c (find_main_name): Add call to d_main_name.
14615
14616 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14617
14618 * d-lang.c (d_language_defn): Change macro_expansion_c to
14619 macro_expansion_no.
14620
14621 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14622
14623 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14624
14625 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14626
14627 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14628 gdb_exception" declaration.
14629 * remote.c (getpkt_or_notif_sane): Likewise.
14630
14631 2014-01-17 Doug Evans <dje@google.com>
14632
14633 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14634 function, contents of dirnames_to_char_ptr_vec_append moved here.
14635 (delim_string_to_char_ptr_vec): New function.
14636 (dirnames_to_char_ptr_vec_append): Rewrite.
14637 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14638
14639 2014-01-17 Doug Evans <dje@google.com>
14640
14641 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14642 and moved here ...
14643 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14644 #include "common-utils.h".
14645 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14646 * common/vec.h (VEC_ASSERT_PASS): Update.
14647 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14648 (MACH_CHECK_ERROR): Update.
14649
14650 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14651
14652 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14653 comments.
14654 * gdbarch.h: Regenerate.
14655
14656 2014-01-16 Tom Tromey <tromey@redhat.com>
14657
14658 * value.c (struct value) <regnum>: Move earlier.
14659
14660 2014-01-16 Tom Tromey <tromey@redhat.com>
14661
14662 * remote.c (extended_remote_create_inferior): Rename from
14663 extended_remote_create_inferior_1. Add "ops" argument. Remove
14664 old implementation.
14665
14666 2014-01-16 Pedro Alves <palves@redhat.com>
14667
14668 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14669 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14670 the backchain.
14671
14672 2014-01-16 Doug Evans <dje@google.com>
14673
14674 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14675
14676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14677
14678 * btrace.h (btrace_thread_flag): New.
14679 (struct btrace_thread_info) <flags>: New.
14680 * record-btrace.c (record_btrace_resume_thread)
14681 (record_btrace_find_thread_to_move, btrace_step_no_history)
14682 (btrace_step_stopped, record_btrace_start_replaying)
14683 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14684 (record_btrace_find_resume_thread): New.
14685 (record_btrace_resume, record_btrace_wait): Extend.
14686 (record_btrace_can_execute_reverse): New.
14687 (record_btrace_open): Fail in non-stop mode.
14688 (record_btrace_set_replay): Split into this, ...
14689 (record_btrace_stop_replaying): ... this, ...
14690 (record_btrace_clear_histories): ... and this.
14691 (init_record_btrace_ops): Init to_can_execute_reverse.
14692 * NEWS: Announce it.
14693
14694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14695
14696 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14697 (forward_target_decr_pc_after_break)
14698 (target_decr_pc_after_break): New.
14699 * target.c (forward_target_decr_pc_after_break)
14700 (target_decr_pc_after_break): New.
14701 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14702 instead of gdbarch_decr_pc_after_break.
14703 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14704 instead of gdbarch_decr_pc_after_break.
14705 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14706 instead of gdbarch_decr_pc_after_break.
14707 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14708 instead of gdbarch_decr_pc_after_break.
14709 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14710 instead of gdbarch_decr_pc_after_break.
14711 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14712 instead of gdbarch_decr_pc_after_break.
14713
14714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14715
14716 * btrace.c: Include regcache.h.
14717 (btrace_add_pc): New.
14718 (btrace_enable): Call btrace_add_pc.
14719 (btrace_is_empty): New.
14720 * btrace.h (btrace_is_empty): New.
14721 * record-btrace.c (require_btrace, record_btrace_info): Call
14722 btrace_is_empty.
14723
14724 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14725
14726 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14727 Support delta reads.
14728 (linux_disable_btrace): Change return type.
14729 * common/linux-btrace.h (linux_read_btrace): Change parameters
14730 and return type to allow error reporting. Update users.
14731 (linux_disable_btrace): Change return type. Update users.
14732 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14733 New.
14734 (btrace_error): New.
14735 (btrace_block) <begin>: Comment on BEGIN == 0.
14736 * btrace.c (btrace_compute_ftrace): Start from the end of
14737 the current trace.
14738 (btrace_stitch_trace, btrace_clear_history): New.
14739 (btrace_fetch): Read delta trace, return if replaying.
14740 (btrace_clear): Move clear history code to btrace_clear_history.
14741 (parse_xml_btrace): Throw an error if parsing failed.
14742 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14743 and return type to allow error reporting.
14744 (target_read_btrace): Change parameters and return type to allow
14745 error reporting.
14746 * target.c (target_read_btrace): Update.
14747 * remote.c (remote_read_btrace): Support delta reads. Pass
14748 errors on.
14749 * NEWS: Announce it.
14750
14751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14752
14753 * record.h (record_btrace_frame_unwind)
14754 (record_btrace_tailcall_frame_unwind): New declarations.
14755 * dwarf2-frame: Include record.h
14756 (dwarf2_frame_cfa): Throw an error for btrace frames.
14757 * record-btrace.c: Include hashtab.h.
14758 (btrace_get_bfun_name): New.
14759 (btrace_call_history): Call btrace_get_bfun_name.
14760 (struct btrace_frame_cache): New.
14761 (bfcache): New.
14762 (bfcache_hash, bfcache_eq, bfcache_new): New.
14763 (btrace_get_frame_function): New.
14764 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14765 (record_btrace_frame_this_id): Compute own id.
14766 (record_btrace_frame_prev_register): Provide PC, throw_error
14767 for all other registers.
14768 (record_btrace_frame_sniffer): Detect btrace frames.
14769 (record_btrace_tailcall_frame_sniffer): New.
14770 (record_btrace_frame_dealloc_cache): New.
14771 (record_btrace_frame_unwind): Add new functions.
14772 (record_btrace_tailcall_frame_unwind): New.
14773 (_initialize_record_btrace): Allocate cache.
14774 * btrace.c (btrace_clear): Call reinit_frame_cache.
14775 * NEWS: Announce it.
14776
14777 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14778
14779 * record-btrace.c (record_btrace_set_replay)
14780 (record_btrace_goto_begin, record_btrace_goto_end)
14781 (record_btrace_goto): New.
14782 (init_record_btrace_ops): Initialize them.
14783 * NEWS: Announce it.
14784
14785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14786
14787 * record-btrace.c (record_btrace_find_new_threads)
14788 (record_btrace_thread_alive): New.
14789 (init_record_btrace_ops): Initialize to_find_new_threads and
14790 to_thread_alive.
14791
14792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14793
14794 * record-btrace.c (record_btrace_resume): New.
14795 (record_btrace_wait): New.
14796 (init_record_btrace_ops): Initialize to_wait and to_resume.
14797
14798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14799
14800 * record-btrace.c (record_btrace_xfer_partial)
14801 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14802 (record_btrace_allow_memory_access): New.
14803 (init_record_btrace_ops): Initialize new methods.
14804 * target.c (raw_memory_xfer_partial): Bail out if target reports
14805 that this memory is not available.
14806
14807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14808
14809 * target.h (target_ops) <to_insert_breakpoint>
14810 <to_remove_breakpoint>: Add target_ops parameter.
14811 (forward_target_insert_breakpoint): New.
14812 (forward_target_remove_breakpoint): New.
14813 (memory_remove_breakpoint, memory_insert_breakpoint):
14814 Add target_ops parameter.
14815 * target.c (target_insert_breakpoint): Split into this and ...
14816 (forward_target_insert_breakpoint): ... this.
14817 (target_remove_breakpoint): Split into this and ...
14818 (forward_target_remove_breakpoint): ... this.
14819 (debug_to_insert_breakpoint): Add target_ops parameter.
14820 Call forward_target_insert_breakpoint.
14821 (debug_to_remove_breakpoint): Add target_ops parameter.
14822 Call forward_target_remove_breakpoint.
14823 (update_current_target): Do not inherit or default to_insert_breakpoint
14824 and to_remove_breakpoint.
14825 * corelow.c (ignore): Add target_ops parameter.
14826 * exec.c (ignore): Add target_ops parameter.
14827 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14828 Add target_ops parameter.
14829 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14830 Add target_ops parameter.
14831 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14832 Add target_ops parameter.
14833 * record-full.c (record_full_beneath_to_insert_breakpoint)
14834 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14835 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14836 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14837 (record_full_core_remove_breakpoint): Add target_ops parameter.
14838 Update users.
14839 (record_full_beneath_to_insert_breakpoint_ops)
14840 (record_full_beneath_to_remove_breakpoint_ops)
14841 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14842 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14843 tmp_to_remove_breakpoint_ops,
14844 record_full_beneath_to_insert_breakpoint_ops, and
14845 record_full_beneath_to_remove_breakpoint_ops.
14846 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14847 (m32r_remove_breakpoint): Add target_ops parameter.
14848 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14849 Add target_ops parameter.
14850 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14851 Add target_ops parameter.
14852
14853 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14854 Markus Metzger <markus.t.metzger@intel.com>
14855
14856 * record-btrace.c: Include frame-unwind.h.
14857 (record_btrace_frame_unwind_stop_reason)
14858 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14859 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14860 New.
14861 (init_record_btrace_ops): Install it.
14862
14863 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14864
14865 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14866 get_prev_frame_1.
14867
14868 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14869
14870 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14871 earlier.
14872
14873 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14874
14875 * frame-unwind.c: Include target.h.
14876 (frame_unwind_try_unwinder): New function with code from ...
14877 (frame_unwind_find_by_frame): ... here. New variable
14878 unwinder_from_target, call also target_get_unwinder)
14879 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14880 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14881 * target.h (struct target_ops): New fields to_get_unwinder and
14882 to_get_tailcall_unwinder.
14883 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14884
14885 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14886
14887 * record-btrace.c (record_btrace_fetch_registers)
14888 (record_btrace_store_registers)
14889 (record_btrace_to_prepare_to_store): New.
14890 (init_record_btrace_ops): Add the above.
14891
14892 2014-01-16 Tom Tromey <tromey@redhat.com>
14893
14894 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14895 * target.h (struct target_ops) <to_prepare_to_store>: Add
14896 argument.
14897 (target_prepare_to_store): Add argument.
14898 * target.c (debug_to_prepare_to_store): Add argument.
14899 (update_current_target): Update.
14900 * remote.c (remote_prepare_to_store): Add 'self' argument.
14901 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14902 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14903 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14904 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14905 argument.
14906 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14907 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14908 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14909 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14910 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14911
14912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14913
14914 * btrace.h (replay) <replay>: New.
14915 (btrace_is_replaying): New.
14916 * btrace.c (btrace_clear): Free replay iterator.
14917 (btrace_is_replaying): New.
14918 * record-btrace.c (record_btrace_is_replaying): New.
14919 (record_btrace_info): Print insn number if replaying.
14920 (record_btrace_insn_history): Start at replay position.
14921 (record_btrace_call_history): Start at replay position.
14922 (init_record_btrace_ops): Init to_record_is_replaying.
14923
14924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14925
14926 * record-btrace.c (record_btrace_insn_history_range): Include
14927 end.
14928 (record_btrace_insn_history_from): Adjust range.
14929 (record_btrace_call_history_range): Include
14930 end.
14931 (record_btrace_call_history_from): Adjust range.
14932 * NEWS: Announce changes.
14933
14934 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14935
14936 * record.h (enum record_print_flag)
14937 <record_print_indent_calls>: New.
14938 * record.c (get_call_history_modifiers): Recognize /c modifier.
14939 (_initialize_record): Document /c modifier.
14940 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14941 Reorder fields. Optionally indent the function name. Update
14942 all users.
14943 * NEWS: Announce changes.
14944
14945 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14946
14947 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14948
14949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14950
14951 * btrace.c (ftrace_new_function): Start counting at one.
14952 * record-btrace.c (record_btrace_info): Adjust number of calls
14953 and insns.
14954 * NEWS: Announce it.
14955
14956 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14957
14958 * record-btrace.c (btrace_call_history_insn_range): Print
14959 insn range as [begin, end].
14960
14961 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14962
14963 * btrace.h (struct btrace_func_link): New.
14964 (enum btrace_function_flag): New.
14965 (struct btrace_inst): Rename to ...
14966 (struct btrace_insn): ...this. Update all users.
14967 (struct btrace_func) <ibegin, iend>: Remove.
14968 (struct btrace_func_link): New.
14969 (struct btrace_func): Rename to ...
14970 (struct btrace_function): ...this. Update all users.
14971 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14972 (number, level, flags>: New.
14973 (struct btrace_insn_iterator): Rename to ...
14974 (struct btrace_insn_history): ...this.
14975 Update all users.
14976 (struct btrace_insn_iterator, btrace_call_iterator): New.
14977 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14978 (struct btrace_target_info) <begin, end, level>
14979 <insn_history, call_history>: New.
14980 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14981 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14982 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14983 (btrace_call_number, btrace_call_begin, btrace_call_end)
14984 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14985 (btrace_find_function_by_number, btrace_set_insn_history)
14986 (btrace_set_call_history): New.
14987 * btrace.c (btrace_init_insn_iterator)
14988 (btrace_init_func_iterator, compute_itrace): Remove.
14989 (ftrace_print_function_name, ftrace_print_filename)
14990 (ftrace_skip_file): Change
14991 parameter to const.
14992 (ftrace_init_func): Remove.
14993 (ftrace_debug): Use new btrace_function fields.
14994 (ftrace_function_switched): Also consider gaining and
14995 losing symbol information).
14996 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14997 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14998 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14999 New.
15000 (ftrace_new_function): Move. Remove debug print.
15001 (ftrace_update_lines, ftrace_update_insns): New.
15002 (ftrace_update_function): Check for call, ret, and jump.
15003 (compute_ftrace): Renamed to ...
15004 (btrace_compute_ftrace): ...this. Rewritten to compute call
15005 stack.
15006 (btrace_fetch, btrace_clear): Updated.
15007 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15008 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15009 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15010 (btrace_call_number, btrace_call_begin, btrace_call_end)
15011 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15012 (btrace_find_function_by_number, btrace_set_insn_history)
15013 (btrace_set_call_history): New.
15014 * record-btrace.c (require_btrace): Use new btrace thread
15015 info fields.
15016 (record_btrace_info, btrace_insn_history)
15017 (record_btrace_insn_history, record_btrace_insn_history_range):
15018 Use new btrace thread info fields and new iterator.
15019 (btrace_func_history_src_line): Rename to ...
15020 (btrace_call_history_src_line): ...this. Use new btrace
15021 thread info fields.
15022 (btrace_func_history): Rename to ...
15023 (btrace_call_history): ...this. Use new btrace thread info
15024 fields and new iterator.
15025 (record_btrace_call_history, record_btrace_call_history_range):
15026 Use new btrace thread info fields and new iterator.
15027
15028 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15029
15030 * frame.h (frame_id_build_unavailable_stack_special): New.
15031 * frame.c (frame_id_build_unavailable_stack_special): New.
15032
15033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15034
15035 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15036 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15037 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15038 to gdbarch.
15039 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15040 (i386_insn_is_jump, i386_jmp_p): New.
15041 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15042 insn_is_jump to gdbarch.
15043 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15044 * gdbarch.h: Regenerated.
15045 * gdbarch.c: Regenerated.
15046 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15047 (default_insn_is_jump): New.
15048 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15049 (default_insn_is_jump): New.
15050
15051 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15052
15053 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15054 Change to ...
15055 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15056 (btrace_read_type) <btrace_read_new>: Change to ...
15057 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15058
15059 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15060
15061 * common/linux-btrace.c (linux_read_btrace): Free trace from
15062 previous iteration.
15063
15064 2014-01-15 Doug Evans <dje@google.com>
15065
15066 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15067 uint32_t.
15068
15069 2014-01-15 Tom Tromey <tromey@redhat.com>
15070
15071 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15072 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15073 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15074 (set_objfile_main_name): New function.
15075 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15076 language_of_main>: New fields.
15077 (set_objfile_main_name): Declare.
15078 * symtab.c (find_main_name): Loop over objfiles to find the main
15079 name and language.
15080 (set_main_name): Now static.
15081 (get_main_info): Add comment.
15082 * symtab.h (set_main_name): Don't declare.
15083
15084 2014-01-15 Tom Tromey <tromey@redhat.com>
15085
15086 * symtab.c (main_progspace_key): New global.
15087 (struct main_info): New.
15088 (name_of_main, language_of_main): Remove.
15089 (get_main_info, main_info_cleanup): New function.
15090 (set_main_name, main_name, main_language): Use get_main_info.
15091 (_initialize_symtab): Initialize main_progspace_key.
15092
15093 2014-01-15 Tom Tromey <tromey@redhat.com>
15094
15095 * dbxread.c (process_one_symbol): Update.
15096 * dwarf2read.c (read_partial_die): Update.
15097 * symfile.c (set_initial_language): Call main_language.
15098 * symtab.c (language_of_main): Now static.
15099 (set_main_name): Add 'lang' parameter.
15100 (find_main_name): Update.
15101 (main_language): New function.
15102 (symtab_observer_executable_changed): Update.
15103 * symtab.h (set_main_name): Update.
15104 (language_of_main): Remove.
15105 (main_language): Declare.
15106
15107 2014-01-15 Tom Tromey <tromey@redhat.com>
15108
15109 * symfile.c (init_entry_point_info): Use new "initialized" field.
15110 Update.
15111 * objfiles.h (struct entry_point) <initialized>: New field.
15112 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15113 (struct objfile) <ei>: ...here. Remove.
15114 * objfiles.c (entry_point_address_query): Update.
15115
15116 2014-01-15 Tom Tromey <tromey@redhat.com>
15117
15118 * objfiles.c (entry_point_address_query): Relocate entry point
15119 address.
15120 (objfile_relocate1): Do not relocate entry point address.
15121 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15122 <the_bfd_section_index>: New field.
15123 * symfile.c (init_entry_point_info): Find the entry point's
15124 section.
15125
15126 2014-01-15 Tom Tromey <tromey@redhat.com>
15127
15128 * solib-frv.c (enable_break): Use entry_point_address_query.
15129
15130 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15131
15132 * NEWS: Add note on improved process record-replay on
15133 arm*-linux* targets.
15134
15135 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15136
15137 * arm-tdep.c (enum arm_record_result): New enum.
15138 (arm_record_unsupported_insn): New function.
15139 (arm_record_coproc_data_proc): Removed.
15140 (thumb2_record_ld_st_multiple): New function.
15141 (thumb2_record_ld_st_dual_ex_tbb): New function.
15142 (thumb2_record_data_proc_sreg_mimm): New function.
15143 (thumb2_record_ps_dest_generic): New function.
15144 (thumb2_record_branch_misc_cntrl): New function.
15145 (thumb2_record_str_single_data): New function.
15146 (thumb2_record_ld_mem_hints): New function.
15147 (thumb2_record_ld_word): New function.
15148 (thumb2_record_lmul_lmla_div): New function.
15149 (thumb2_record_decode_insn_handler): New function.
15150 (decode_insn): Add thumb32 instruction handlers.
15151
15152 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15153
15154 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15155 (struct arm_linux_record_tdep): Declare.
15156 (arm_canonicalize_syscall): New function.
15157 (arm_all_but_pc_registers_record): New function.
15158 (arm_linux_syscall_record): New function.
15159 (arm_linux_init_abi): Add syscall recording constructs.
15160 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15161 decoding. (arm_record_coproc_data_proc): Update arm syscall
15162 decoding.
15163 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15164 <arm_syscall_record>: New field.
15165 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15166 gdb_target_obs.
15167
15168 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15169
15170 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15171 register for push instruction recording.
15172
15173 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15174
15175 * arm-tdep.c (thumb_record_misc): Update to correct logical
15176 error while recording ldm, ldmia and pop instructions.
15177
15178 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15179
15180 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15181
15182 2014-01-15 Pedro Alves <palves@redhat.com>
15183
15184 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15185 (go32_resume, go32_fetch_registers, store_register)
15186 (go32_store_registers, go32_prepare_to_store)
15187 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15188 (go32_create_inferior, go32_can_run, go32_terminal_init)
15189 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15190 declarations.
15191
15192 2014-01-15 Tom Tromey <tromey@redhat.com>
15193
15194 * target.h (async_callback_ftype): New typedef.
15195 (struct target_ops) <to_async>: Use it.
15196
15197 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15198
15199 * python/py-value.c (get_field_type): Remove unnecessary curly
15200 braces for single-statement if block.
15201
15202 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15203
15204 * python/py-type.c (convert_field): Add missing empty line
15205 after declarations.
15206
15207 2014-01-14 Doug Evans <dje@google.com>
15208
15209 * symfile.h (expand_symtabs_matching): Renamed from
15210 expand_partial_symbol_names. Update prototype.
15211 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15212 * symfile.c (expand_symtabs_matching): Renamed from
15213 expand_partial_symbol_names. New args file_matcher, kind.
15214 Rename arg fun to symbol_matcher.
15215 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15216 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15217 ada_expand_partial_symbol_name.
15218 (ada_make_symbol_completion_list): Update to call
15219 expand_symtabs_matching.
15220 (ada_add_global_exceptions): Call expand_symtabs_matching.
15221 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15222 call map_symbol_filenames.
15223 * symtab.c (sources_info): Update to call map_symbol_filenames.
15224 (search_symbols): Call expand_symtabs_matching.
15225 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15226 (default_make_symbol_completion_list_break_on): Update to call
15227 expand_symtabs_matching.
15228 (make_source_files_completion_list): Update to call
15229 map_symbol_filenames.
15230
15231 2014-01-14 Doug Evans <dje@google.com>
15232
15233 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15234 (expand_symtabs_symbol_matcher_ftype): New typedef.
15235 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15236 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15237 * symfile.c (expand_partial_symbol_names): Update to use
15238 expand_symtabs_symbol_matcher_ftype.
15239 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15240 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15241 Arg name_matcher renamed to symbol_matcher.
15242 * psymtab.c (recursively_search_psymtabs): Update to use
15243 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15244 sym_matcher.
15245 (expand_symtabs_matching_via_partial): Update to use
15246 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15247 Arg name_matcher renamed to symbol_matcher.
15248
15249 2014-01-14 Doug Evans <dje@google.com>
15250
15251 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15252 (map_partial_symbol_filenames): Ditto.
15253 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15254 (map_partial_symbol_filenames): Ditto.
15255 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15256 (map_partial_symbol_filenames): Ditto.
15257 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15258 (map_partial_symbol_filenames): Ditto.
15259 * symtab.c: Delete #include "psymtab.h".
15260
15261 2014-01-14 Pedro Alves <palves@redhat.com>
15262 Tom Tromey <tromey@redhat.com>
15263
15264 * infrun.c (use_displaced_stepping): Use find_record_target
15265 instead of RECORD_IS_USED.
15266 (adjust_pc_after_break): Use record_full_is_used instead of
15267 RECORD_IS_USED.
15268 * record-btrace.c (record_btrace_open): Call record_preopen
15269 instead of checking RECORD_IS_USED.
15270 * record-full.c (record_full_shortname)
15271 (record_full_core_shortname): New globals.
15272 (record_full_is_used): New function.
15273 (find_full_open): Call record_preopen instead of checking
15274 RECORD_IS_USED.
15275 (init_record_full_ops): Set the target's shortname to
15276 record_full_shortname.
15277 (init_record_full_core_ops): Set the target's shortname to
15278 record_full_core_shortname.
15279 * record-full.h (record_full_is_used): Declare.
15280 * record.c (find_record_target): Make extern.
15281 (record_preopen): New function.
15282 * record.h (RECORD_IS_USED): Delete macro.
15283 (find_record_target, record_preopen): Declare functions.
15284
15285 2014-01-14 Yao Qi <yao@codesourcery.com>
15286
15287 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15288 'len''s type to ULONGEST.
15289 (core_xfer_shared_libraries_aix): Likewise.
15290 * gdbarch.c, gdbarch.h: Regenerated.
15291 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15292 Change type of 'len' to ULONGEST.
15293 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15294 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15295
15296 2014-01-14 Yao Qi <yao@codesourcery.com>
15297
15298 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15299 type of 'len' to ULONGEST.
15300 (linux_xfer_osdata_processgroups): Likewise.
15301 (linux_xfer_osdata_threads): Likewise.
15302 (linux_xfer_osdata_fds): Likewise.
15303 (linux_xfer_osdata_isockets): Likewise.
15304 (linux_xfer_osdata_shm): Likewise.
15305 (linux_xfer_osdata_sem): Likewise.
15306 (linux_xfer_osdata_msg): Likewise.
15307 (linux_common_xfer_osdata): Likewise.
15308 (struct osdata_type) <getter>: Likewise.
15309 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15310 the declaration.
15311
15312 2014-01-14 Yao Qi <yao@codesourcery.com>
15313
15314 * target.h (target_xfer_partial_ftype): Update.
15315 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15316 ULONGEST.
15317 * aix-thread.c (aix_thread_xfer_partial): Change type of
15318 argument 'len' to ULONGEST.
15319 * auxv.c (procfs_xfer_auxv): Likewise.
15320 (ld_so_xfer_auxv): Likewise.
15321 (memory_xfer_auxv): Likewise.
15322 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15323 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15324 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15325 * corelow.c (core_xfer_partial): Likewise.
15326 * ctf.c (ctf_xfer_partial): Likewise.
15327 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15328 '%u'.
15329 (darwin_read_dyld_info): Likewise.
15330 (darwin_xfer_partial): Likewise.
15331 * exec.c (section_table_xfer_memory_partial): Likewise.
15332 (exec_xfer_partial): Likewise.
15333 * exec.h (section_table_xfer_memory_partial): Update
15334 declaration.
15335 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15336 instead of plongest.
15337 (gnu_xfer_partial): Likewise.
15338 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15339 (ia64_hpux_xfer_solib_got): Likewise.
15340 (ia64_hpux_xfer_partial): Likewise.
15341 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15342 * inf-ptrace.c (inf_ptrace_xfer_partial):
15343 * inf-ttrace.c (inf_ttrace_xfer_partial):
15344 * linux-nat.c (linux_xfer_siginfo): Likewise.
15345 (linux_nat_xfer_partial): Likewise.
15346 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15347 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15348 * monitor.c (monitor_xfer_memory): Likewise.
15349 (monitor_xfer_partial): Likewise.
15350 * procfs.c (procfs_xfer_partial): Likewise.
15351 * record-full.c (record_full_xfer_partial): Likewise.
15352 (record_full_core_xfer_partial): Likewise.
15353 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15354 instead of plongest.
15355 (gdbsim_xfer_partial): Likewise.
15356 * remote.c (remote_xfer_partial): Likewise.
15357 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15358 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15359 declaration.
15360 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15361 (rs6000_xfer_shared_libraries): Likewise.
15362 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15363 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15364 (sparc_xfer_partial): Likewise.
15365 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15366 (spu_xfer_partial): Likewise.
15367 * spu-multiarch.c (spu_xfer_partial): Likewise.
15368 * target.c (target_read_live_memory): Likewise.
15369 (memory_xfer_live_readonly_partial): Likewise.
15370 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15371 (target_xfer_partial, default_xfer_partial): Likewise.
15372 (current_xfer_partial): Likewise.
15373 * tracepoint.c (tfile_xfer_partial): Likewise.
15374 * windows-nat.c (windows_xfer_memory): Likewise. Call
15375 pulongest instead of plongest.
15376 (windows_xfer_partial): Likewise.
15377 (windows_xfer_shared_libraries): Likewise.
15378
15379 2014-01-14 Yao Qi <yao@codesourcery.com>
15380
15381 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15382 target_xfer_partial_ftype.
15383
15384 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15385
15386 PR python/15464
15387 PR python/16113
15388 * valops.c (value_struct_elt_bitpos): New function
15389 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15390 object to 'None' if the field name is an empty string ("").
15391 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15392 attribute to look for a field when 'name' is 'None'.
15393 (get_field_type): New function
15394
15395 2014-01-13 Doug Evans <dje@google.com>
15396
15397 PR symtab/16426
15398 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15399 (try_open_dwop_file): Ditto.
15400 * gdb_bfd.c: #include "vec.h".
15401 (bfdp): New typedef.
15402 (struct gdb_bfd_data): New member included_bfds.
15403 (gdb_bfd_unref): Unref all included bfds.
15404 (gdb_bfd_record_inclusion): New function.
15405 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15406
15407 2014-01-13 Tom Tromey <tromey@redhat.com>
15408
15409 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15410
15411 2014-01-13 Tom Tromey <tromey@redhat.com>
15412
15413 * defs.h (use_windows): Remove.
15414 * gdb.c (main): Update.
15415 * main.c (captured_main, gdb_main): Update.
15416 * main.h (struct captured_main_args) <use_windows>: Remove.
15417 * top.c (use_windows): Remove.
15418
15419 2014-01-13 Tom Tromey <tromey@redhat.com>
15420
15421 * defs.h (deprecated_flush_hook): Remove.
15422
15423 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15424
15425 PR threads/16216
15426 * linux-thread-db.c (try_thread_db_load): Add parameter
15427 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15428 (try_thread_db_load_from_pdir_1): Move it there from here.
15429 (try_thread_db_load_from_sdir): Update caller.
15430 (try_thread_db_load_from_dir): Move it there from here.
15431
15432 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15433
15434 * regformats/regdat.sh: Always rewrite the register file.
15435
15436 2014-01-13 Pedro Alves <palves@redhat.com>
15437
15438 * Makefile.in (CHECK_HEADERS): New variable.
15439 (check-headers:): New rule.
15440
15441 2014-01-13 Tom Tromey <tromey@redhat.com>
15442
15443 * cli/cli-setshow.c (do_set_command): Update.
15444 * defs.h (deprecated_set_hook): Remove.
15445 * top.c (deprecated_set_hook): Remove.
15446
15447 2014-01-13 Pedro Alves <palves@redhat.com>
15448
15449 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15450 the tracepoint if the PC is a pseudo-register.
15451
15452 2014-01-13 Tom Tromey <tromey@redhat.com>
15453
15454 * defs.h (XCALLOC): Remove.
15455 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15456 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15457 * dwarf2loc.c (allocate_piece_closure): Likewise.
15458 * elfread.c (elf_symfile_segments): Likewise.
15459 (elf_symfile_segments): Likewise.
15460 * gdbtypes.c (copy_type_recursive): Likewise.
15461 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15462 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15463 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15464 XCALLOC.
15465 * mt-tdep.c (mt_gdbarch_init): Likewise.
15466 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15467 XCALLOC.
15468 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15469 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15470 * registry.c (registry_alloc_data): Likewise.
15471 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15472 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15473 * serial.c (serial_fdopen_ops): Likewise.
15474 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15475 XCALLOC.
15476 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15477 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15478 not XCALLOC.
15479
15480 2014-01-13 Tom Tromey <tromey@redhat.com>
15481
15482 * defs.h (XMALLOC): Remove.
15483 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15484 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15485 * cli-out.c (struct ui_out *): Likewise.
15486 * cli/cli-dump.c (add_dump_command): Likewise.
15487 (add_dump_command): Likewise.
15488 * complaints.c (get_complaints): Likewise.
15489 (find_complaint): Likewise.
15490 * dwarf2-frame.c (execute_cfa_program): Likewise.
15491 * dwarf2read.c (abbrev_table_read_table): Likewise.
15492 * gdbarch.sh: Likewise.
15493 * gdbarch.c: Rebuild.
15494 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15495 * interps.c (interp_new): Likewise.
15496 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15497 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15498 * mi/mi-console.c (mi_console_file_new): Likewise.
15499 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15500 * mi/mi-out.c (mi_out_new): Likewise.
15501 * mi/mi-parse.c (mi_parse): Likewise.
15502 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15503 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15504 * observer.c (xalloc_observer_list_node): Likewise.
15505 * regcache.c (regcache_xmalloc_1): Likewise.
15506 * reggroups.c (reggroup_new): Likewise.
15507 (_initialize_reggroup): Likewise.
15508 * registry.c (register_data_with_cleanup): Likewise.
15509 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15510 * ser-base.c (serial_ttystate): Likewise.
15511 * ser-mingw.c (make_pipe_state): Likewise.
15512 * ser-pipe.c (pipe_open): Likewise.
15513 * serial.c (serial_open): Likewise.
15514 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15515 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15516 (tui_alloc_win_info): Likewise.
15517 (tui_add_content_elements): Likewise.
15518 * tui/tui-file.c (tui_file_new): Likewise.
15519 * tui/tui-out.c (tui_out_new): Likewise.
15520 * ui-file.c (mem_file_new): Likewise.
15521 * ui-out.c (push_level): Likewise.
15522 (make_cleanup_ui_out_end): Likewise.
15523 (append_header_to_list): Likewise.
15524 (ui_out_new): Likewise.
15525 * user-regs.c (user_reg_add_builtin): Likewise.
15526
15527 2014-01-13 Tom Tromey <tromey@redhat.com>
15528
15529 * defs.h (XZALLOC): Remove.
15530 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15531 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15532 (get_ada_tasks_inferior_data): Likewise.
15533 * auto-load.c (get_auto_load_pspace_data): Likewise.
15534 * auxv.c (get_auxv_inferior_data): Likewise.
15535 * bfd-target.c (target_bfd_reopen): Likewise.
15536 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15537 (deprecated_insert_raw_breakpoint): Likewise.
15538 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15539 * corelow.c (core_open): Likewise.
15540 * darwin-nat.c (darwin_check_new_threads): Likewise.
15541 (darwin_attach_pid): Likewise.
15542 * dummy-frame.c (dummy_frame_push): Likewise.
15543 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15544 * dwarf2loc.c (allocate_piece_closure): Likewise.
15545 * elfread.c (elf_symfile_segments): Likewise.
15546 * eval.c (ptrmath_type_p): Likewise.
15547 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15548 * gdbtypes.c (alloc_type_arch): Likewise.
15549 (alloc_type_instance): Likewise.
15550 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15551 * inf-child.c (inf_child_can_use_agent): Likewise.
15552 * inflow.c (get_inflow_inferior_data): Likewise.
15553 * infrun.c (save_infcall_suspend_state): Likewise.
15554 * jit.c (jit_reader_load): Likewise.
15555 (get_jit_objfile_data): Likewise.
15556 (get_jit_program_space_data): Likewise.
15557 (jit_object_open_impl): Likewise.
15558 (jit_symtab_open_impl): Likewise.
15559 (jit_block_open_impl): Likewise.
15560 (jit_frame_sniffer): Likewise.
15561 * linux-fork.c (add_fork): Likewise.
15562 * maint.c (make_command_stats_cleanup): Likewise.
15563 * objfiles.c (get_objfile_pspace_data): Likewise.
15564 * opencl-lang.c (struct lval_closure): Likewise.
15565 * osdata.c (osdata_start_osdata): Likewise.
15566 * progspace.c (new_address_space): Likewise.
15567 (add_program_space): Likewise.
15568 * remote-sim.c (get_sim_inferior_data): Likewise.
15569 * sh-tdep.c (sh_gdbarch_init): Likewise.
15570 * skip.c (Ignore): Likewise.
15571 (skip_delete_command): Likewise.
15572 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15573 (library_list_start_library): Likewise.
15574 (solib_aix_current_sos): Likewise.
15575 * solib-darwin.c (get_darwin_info): Likewise.
15576 (darwin_current_sos): Likewise.
15577 * solib-dsbt.c (get_dsbt_info): Likewise.
15578 * solib-ia64-hpux.c (new_so_list): Likewise.
15579 (ia64_hpux_get_solib_linkage_addr): Likewise.
15580 * solib-spu.c (append_ocl_sos): Likewise.
15581 (spu_current_sos): Likewise.
15582 * solib-svr4.c (get_svr4_info): Likewise.
15583 (svr4_keep_data_in_core): Likewise.
15584 (library_list_start_library): Likewise.
15585 (svr4_default_sos): Likewise.
15586 (svr4_read_so_list): Likewise.
15587 * solib-target.c (library_list_start_library): Likewise.
15588 (solib_target_current_sos): Likewise.
15589 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15590 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15591 * symfile.c (default_symfile_segments): Likewise.
15592 * target-descriptions.c (tdesc_data_init): Likewise.
15593 (tdesc_create_reg): Likewise.
15594 (struct tdesc_type *): Likewise.
15595 (tdesc_create_vector): Likewise.
15596 (tdesc_set_struct_size): Likewise.
15597 (struct tdesc_type *): Likewise.
15598 (tdesc_free_feature): Likewise.
15599 (tdesc_create_feature): Likewise.
15600 * windows-nat.c (windows_add_thread): Likewise.
15601 (windows_make_so): Likewise.
15602 * xml-support.c (gdb_xml_body_text): Likewise.
15603 (gdb_xml_create_parser_and_cleanup): Likewise.
15604 (xml_process_xincludes): Likewise.
15605 * xml-syscall.c (allocate_syscalls_info): Likewise.
15606 (syscall_create_syscall_desc): Likewise.
15607
15608 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15609
15610 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15611 function, with code from i386_stap_parse_special_token.
15612 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15613 (i386_stap_parse_special_token): Move code to the two functions
15614 above; simplify it.
15615
15616 2014-01-09 Pedro Alves <palves@redhat.com>
15617 Hui Zhu <hui@codesourcery.com>
15618
15619 PR gdb/16101
15620 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15621 bp_err_string. Don't mark the location shlib_disabled if the
15622 error thrown wasn't a generic or memory error. Catch errors
15623 thrown while inserting breakpoints in overlayed code. Output
15624 error message of software breakpoints.
15625 * remote.c (remote_insert_breakpoint): If this breakpoint has
15626 target-side commands but this stub doesn't support Z0 packets,
15627 throw NOT_SUPPORTED_ERROR error.
15628 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15629 * target.h (target_insert_breakpoint): Extend comment.
15630 (target_insert_hw_breakpoint): Add comment.
15631
15632 2014-01-08 Pedro Alves <palves@redhat.com>
15633
15634 * remote.c (remote_add_thread): Add threads silently if starting
15635 up.
15636 (remote_notice_new_inferior): If in all-stop, and starting up,
15637 don't call notice_new_inferior.
15638 (get_current_thread): New function, factored out from ...
15639 (add_current_inferior_and_thread): ... this. Adjust.
15640 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15641 found any thread, then select the remote's current thread as GDB's
15642 current thread too.
15643
15644 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15645
15646 * NEWS: Create a new section for the next release branch.
15647 Rename the section of the current branch, now that it has
15648 been cut.
15649
15650 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15651
15652 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15653 * version.in: Bump version to 7.7.50.DATE-cvs.
15654
15655 2014-01-08 Yao Qi <yao@codesourcery.com>
15656
15657 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15658 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15659 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15660
15661 2014-01-08 Yao Qi <yao@codesourcery.com>
15662
15663 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15664 return value of bfd_get_filename to symbol_file_add_from_bfd.
15665
15666 2014-01-08 Pierre Muller <muller@sourceware.org>
15667
15668 Fix PR16201.
15669 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15670 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15671 to prim_record_mininal_symbol_and_info.
15672 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15673 in call to prim_record_minimal_symbol_and_info.
15674 (read_pe_exported_syms): Set index field of section_data.
15675
15676 2014-01-07 Andrew Pinski <apinski@cavium.com>
15677
15678 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15679 * features/aarch64.c: Regenerate.
15680
15681 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15682
15683 * target.c (return_null): Define.
15684 (update_current_target): Use it instead of return_zero for
15685 functions that return a pointer.
15686
15687 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15688
15689 * source.c (add_path): Fix check for duplicated paths in the previously
15690 included paths.
15691
15692 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15693
15694 * ada-lang.c: Remove duplicated include statements.
15695 * alphabsd-nat.c: Ditto.
15696 * amd64-darwin-tdep.c: Ditto.
15697 * amd64fbsd-nat.c: Ditto.
15698 * auto-load.c: Ditto.
15699 * ax-gdb.c: Ditto.
15700 * breakpoint.c: Ditto.
15701 * dbxread.c: Ditto.
15702 * fork-child.c: Ditto.
15703 * gdb_usleep.c: Ditto.
15704 * i386-darwin-tdep.c: Ditto.
15705 * i386fbsd-nat.c: Ditto.
15706 * infcmd.c: Ditto.
15707 * inferior.c: Ditto.
15708 * jv-lang.c: Ditto.
15709 * linux-nat.c: Ditto.
15710 * linux-tdep.c: Ditto.
15711 * m68kbsd-nat.c: Ditto.
15712 * m68klinux-nat.c: Ditto.
15713 * microblaze-tdep.c: Ditto.
15714 * mips-linux-tdep.c: Ditto.
15715 * mn10300-tdep.c: Ditto.
15716 * nto-tdep.c: Ditto.
15717 * opencl-lang.c: Ditto.
15718 * osdata.c: Ditto.
15719 * printcmd.c: Ditto.
15720 * regcache.c: Ditto.
15721 * remote-m32r-sdi.c: Ditto.
15722 * remote.c: Ditto.
15723 * symfile.c: Ditto.
15724 * symtab.c: Ditto.
15725 * tilegx-linux-nat.c: Ditto.
15726 * tilegx-tdep.c: Ditto.
15727 * tracepoint.c: Ditto.
15728 * valops.c: Ditto.
15729 * vaxbsd-nat.c: Ditto.
15730 * windows-nat.c: Ditto.
15731 * xtensa-tdep.c: Ditto.
15732
15733 2014-01-07 Yao Qi <yao@codesourcery.com>
15734
15735 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15736
15737 2014-01-07 Yao Qi <yao@codesourcery.com>
15738 Joel Brobecker <brobecker@adacore.com>
15739
15740 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15741 (pdc_write_regs): Likewise.
15742 (fetch_regs_kernel_thread): Likewise.
15743 (store_regs_kernel_thread): Likewise.
15744
15745 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15746
15747 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15748 tagged type objects to their actual type.
15749
15750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15751
15752 * ada-valprint.c (print_field_values): Add "language" parameter.
15753 Update calls to print_field_values and print_variant_part.
15754 Pass new parameter "language" in call to val_print instead
15755 of "current_language". Replace call to ada_val_print by call
15756 to val_print.
15757 (print_variant_part): Add "language" parameter.
15758 (ada_val_print_struct_union): Update call to print_field_values.
15759
15760 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15761
15762 * ada-valprint.c (ui_memcpy): Delete.
15763 (ada_print_floating): Update documentation. Add empty line
15764 between between function documentation and implementation.
15765 Delete variable "buffer". Use ui_file_xstrdup in place of
15766 ui_file_put. Minor adjustments following this change.
15767
15768 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15769
15770 * ada-valprint.c (ada_val_print_string): New function,
15771 extracted from ada_val_print_array.
15772 (ada_val_print_array): Replace extracted code by call
15773 to ada_val_print_string followed by a return. Move
15774 "else" branch to the function's top block.
15775
15776 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15777
15778 * ada-valprint.c (ada_val_print_array): Move implementation
15779 down. Rename parameter "offset" and "val" into "offset_aligned"
15780 and "original_value" respectively. Add parameter "offset".
15781
15782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15783
15784 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15785 re-organizing the code. Change the "???" message printed
15786 when target type is a TYPE_CODE_UNDEF into
15787 "<ref to undefined type>".
15788
15789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15790
15791 * ada-valprint.c (print_record): Delete, implementation inlined...
15792 (ada_val_print_struct_union): ... here. Remove call to
15793 ada_check_typedef in inlined implementation.
15794
15795 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15796
15797 * ada-valprint.c (ada_val_print_gnat_array): New function,
15798 extracted from ada_val_print_1;
15799 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15800 (ada_val_print_flt, ada_val_print_struct_union)
15801 (ada_val_print_ref): Likewise.
15802 (ada_val_print_1): Delete variables i and elttype.
15803 Replace extracted-out code by call to corresponding
15804 new functions.
15805
15806 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15807
15808 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15809
15810 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15811
15812 * ada-valprint.c (ada_val_print_1): Replace calls to
15813 ada_val_print_1 by calls to val_print.
15814
15815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15816
15817 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15818 Update calls to self accordingly. Replace calls to c_val_print
15819 by calls to val_print.
15820
15821 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15822
15823 * ada-valprint.c (print_record): Delete declaration.
15824 (adjust_type_signedness, ada_val_print_1): Likewise.
15825 (ada_val_print): Move function implementation down.
15826 (print_variant_part, print_field_values, print_record):
15827 Move function implementation up.
15828
15829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15830
15831 * python/py-type.c (typy_get_name): New function.
15832 (type_object_getset): Add entry for attribute "name".
15833 * NEWS: Add entry mentioning this new attribute.
15834
15835 2014-01-07 Yao Qi <yao@codesourcery.com>
15836
15837 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15838 statement.
15839
15840 2014-01-07 Yao Qi <yao@codesourcery.com>
15841
15842 * gnu-nat.c (info_port_rights): Add qualifier const to
15843 argument args.
15844
15845 2014-01-07 Yao Qi <yao@codesourcery.com>
15846
15847 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15848
15849 2014-01-07 Yao Qi <yao@codesourcery.com>
15850
15851 * gnu-nat.c (make_inf) Update declaration.
15852 (make_inf): Make it static.
15853 (inf_set_traced): Likewise.
15854 (inf_port_to_thread, inf_task_died_status): Likewise.
15855
15856 2014-01-07 Yao Qi <yao@codesourcery.com>
15857
15858 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15859
15860 2014-01-07 Yao Qi <yao@codesourcery.com>
15861
15862 * gnu-nat.c (_initialize_gnu_nat): Declare.
15863
15864 2014-01-07 Yao Qi <yao@codesourcery.com>
15865
15866 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15867 'enum bfd_endian'.
15868 (struct gdbarch_info) <byte_order>: Change type to
15869 'enum bfd_endian'.
15870 <byte_order_for_code>: Likewise.
15871 * gdbarch.c, gdbarch.h: Regenerated.
15872
15873 2014-01-06 Sasha Smundak <asmundak@google.com>
15874
15875 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15876
15877 2014-01-06 Tom Tromey <tromey@redhat.com>
15878
15879 * doublest.c (convert_doublest_to_floatformat): Use const, not
15880 CONST.
15881 * somread.c (som_symtab_read): Likewise.
15882
15883 2014-01-07 Hui Zhu <hui@codesourcery.com>
15884
15885 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15886 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15887 (gdb_bfd_fopen): Ditto.
15888 (gdb_bfd_openr): Ditto.
15889 (gdb_bfd_openw): Ditto.
15890 (gdb_bfd_openr_iovec): Ditto.
15891 (gdb_bfd_fdopenr): Ditto.
15892 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15893 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15894 with xstrdup.
15895 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15896 with xstrdup.
15897 * symfile-mem.c (symbol_file_add_from_memory): Removed
15898 gdb_bfd_stash_filename.
15899
15900 2014-01-03 Doug Evans <dje@google.com>
15901
15902 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15903 output.
15904
15905 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15906
15907 Update year range in copyright notice of all files.
15908
15909 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15910
15911 * top.c (print_gdb_version): Set copyright year to 2014.
15912
15913 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15914
15915 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15916
15917 For older changes see ChangeLog-2013.
15918 \f
15919 Local Variables:
15920 mode: change-log
15921 left-margin: 8
15922 fill-column: 74
15923 version-control: never
15924 coding: utf-8
15925 End:
This page took 0.351068 seconds and 4 git commands to generate.